2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AWK RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE wxcflags wxlibs ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --program-prefix=PREFIX prepend PREFIX to installed program names
843 --program-suffix=SUFFIX append SUFFIX to installed program names
844 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 --x-includes=DIR X include files are in DIR
848 --x-libraries=DIR X library files are in DIR
851 --build=BUILD configure for building on BUILD [guessed]
852 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 if test -n "$ac_init_help"; then
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-debug Turn on debugging
864 --enable-verbose-warnings
865 Enable verbose compiler warnings.
867 Enable static executables.
868 --enable-dmalloc Use dmalloc memory allocation
869 --enable-efence Use ElectricFence memory allocation
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-lam=PATH Set path of LAM MPI
875 --with-ctn=PATH Set path of CTN DICOM library
876 --with-cgibin-dir=PATH Set path of CGI binaries directory
877 --with-cgibin-url=PATH Set URL path of CGI binaries
878 --with-webdata-dir=PATH Set path of webdata
879 --with-webdata-url=PATH Set URL path of webdata
880 --with-html-dir=PATH Set directory of html files
881 --with-x use the X Window System
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
890 CXX C++ compiler command
891 CXXFLAGS C++ compiler flags
894 Use these variables to override the choices made by `configure' or to help
895 it to find libraries and programs with nonstandard names/locations.
900 if test "$ac_init_help" = "recursive"; then
901 # If there are subdirs, report their specific --help.
903 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904 test -d $ac_dir || continue
907 if test "$ac_dir" != .; then
908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909 # A "../" for each directory in $ac_dir_suffix.
910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912 ac_dir_suffix= ac_top_builddir=
916 .) # No --srcdir option. We are building in place.
918 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923 [\\/]* | ?:[\\/]* ) # Absolute path.
924 ac_srcdir=$srcdir$ac_dir_suffix;
925 ac_top_srcdir=$srcdir ;;
927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
932 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
933 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
934 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
935 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
938 # Check for guested configure; otherwise get Cygnus style configure.
939 if test -f $ac_srcdir/configure.gnu; then
941 $SHELL $ac_srcdir/configure.gnu --help=recursive
942 elif test -f $ac_srcdir/configure; then
944 $SHELL $ac_srcdir/configure --help=recursive
945 elif test -f $ac_srcdir/configure.ac ||
946 test -f $ac_srcdir/configure.in; then
950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956 test -n "$ac_init_help" && exit 0
957 if $ac_init_version; then
960 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
961 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
972 It was created by $as_me, which was
973 generated by GNU Autoconf 2.57. Invocation command line was
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Strip out --silent because we don't want to record it for future runs.
1026 # Also quote any args containing shell meta-characters.
1027 # Make two passes to allow for proper duplicate-argument suppression.
1032 ac_must_keep_next=false
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1061 -* ) ac_must_keep_next=true ;;
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log. We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1085 ## ---------------- ##
1086 ## Cache variables. ##
1087 ## ---------------- ##
1090 # The following way of writing the cache mishandles newlines in values,
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 ## ----------------- ##
1109 ## Output variables. ##
1110 ## ----------------- ##
1113 for ac_var in $ac_subst_vars
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1120 if test -n "$ac_subst_files"; then
1127 for ac_var in $ac_subst_files
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1135 if test -s confdefs.h; then
1142 sed "/^$/d" confdefs.h | sort
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1149 rm -f core core.* *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1153 for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1159 rm -rf conftest* confdefs.h
1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1163 # Predefined preprocessor variables.
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_NAME "$PACKAGE_NAME"
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_STRING "$PACKAGE_STRING"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1190 # Let the site file select an alternate cache file if it wants to.
1191 # Prefer explicitly selected file to automatically selected ones.
1192 if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202 echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
1208 if test -r "$cache_file"; then
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213 echo "$as_me: loading cache $cache_file" >&6;}
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221 echo "$as_me: creating cache $cache_file" >&6;}
1225 # Check that the precious variables saved in the cache have kept the same
1227 ac_cache_corrupted=false
1228 for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249 echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251 echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1268 if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301 am__api_version="1.4"
1303 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1304 if test -f $ac_dir/install-sh; then
1306 ac_install_sh="$ac_aux_dir/install-sh -c"
1308 elif test -f $ac_dir/install.sh; then
1310 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 elif test -f $ac_dir/shtool; then
1314 ac_install_sh="$ac_aux_dir/shtool install -c"
1318 if test -z "$ac_aux_dir"; then
1319 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1320 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1321 { (exit 1); exit 1; }; }
1323 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1324 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1325 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327 # Find a good install program. We prefer a C program (faster),
1328 # so one script is as good as another. But avoid the broken or
1329 # incompatible versions:
1330 # SysV /etc/install, /usr/sbin/install
1331 # SunOS /usr/etc/install
1332 # IRIX /sbin/install
1334 # AmigaOS /C/install, which installs bootblocks on floppy discs
1335 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1336 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1337 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1338 # ./install, which can be erroneously created by make from ./install.sh.
1339 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1340 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1341 if test -z "$INSTALL"; then
1342 if test "${ac_cv_path_install+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1349 test -z "$as_dir" && as_dir=.
1350 # Account for people who put trailing slashes in PATH elements.
1352 ./ | .// | /cC/* | \
1353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1356 # OSF1 and SCO ODT 3.0 have their own names for install.
1357 # Don't use installbsd from OSF since it installs stuff as root
1359 for ac_prog in ginstall scoinst install; do
1360 for ac_exec_ext in '' $ac_executable_extensions; do
1361 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1362 if test $ac_prog = install &&
1363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1364 # AIX install. It has an incompatible calling convention.
1366 elif test $ac_prog = install &&
1367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1368 # program-specific install script used by HP pwplus--don't use.
1371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1383 if test "${ac_cv_path_install+set}" = set; then
1384 INSTALL=$ac_cv_path_install
1386 # As a last resort, use the slow shell script. We don't cache a
1387 # path for INSTALL within a source directory, because that will
1388 # break other packages using the cache if that directory is
1389 # removed, or if the path is relative.
1390 INSTALL=$ac_install_sh
1393 echo "$as_me:$LINENO: result: $INSTALL" >&5
1394 echo "${ECHO_T}$INSTALL" >&6
1396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1397 # It thinks the first close brace ends the variable substitution.
1398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1404 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1405 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1408 echo timestamp > conftestfile
1409 # Do `set' in a subshell so we don't clobber the current shell's
1410 # arguments. Must try -L first in case configure is actually a
1411 # symlink; some systems play weird games with the mod time of symlinks
1412 # (eg FreeBSD returns the mod time of the symlink's containing
1415 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1416 if test "$*" = "X"; then
1418 set X `ls -t $srcdir/configure conftestfile`
1420 if test "$*" != "X $srcdir/configure conftestfile" \
1421 && test "$*" != "X conftestfile $srcdir/configure"; then
1423 # If neither matched, then we have a broken ls. This can happen
1424 # if, for instance, CONFIG_SHELL is bash and it inherits a
1425 # broken ls alias from the environment. This has actually
1426 # happened. Such a system could not be considered "sane".
1427 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1428 alias in your environment" >&5
1429 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1430 alias in your environment" >&2;}
1431 { (exit 1); exit 1; }; }
1434 test "$2" = conftestfile
1440 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1441 Check your system clock" >&5
1442 echo "$as_me: error: newly created file is older than distributed files!
1443 Check your system clock" >&2;}
1444 { (exit 1); exit 1; }; }
1447 echo "$as_me:$LINENO: result: yes" >&5
1448 echo "${ECHO_T}yes" >&6
1449 test "$program_prefix" != NONE &&
1450 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1451 # Use a double $ so make ignores it.
1452 test "$program_suffix" != NONE &&
1453 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1454 # Double any \ or $. echo might interpret backslashes.
1455 # By default was `s,x,x', remove it if useless.
1456 cat <<\_ACEOF >conftest.sed
1457 s/[\\$]/&&/g;s/;s,x,x,$//
1459 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1462 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1463 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1464 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1465 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 cat >conftest.make <<\_ACEOF
1470 @echo 'ac_maketemp="$(MAKE)"'
1472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1473 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1474 if test -n "$ac_maketemp"; then
1475 eval ac_cv_prog_make_${ac_make}_set=yes
1477 eval ac_cv_prog_make_${ac_make}_set=no
1481 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1482 echo "$as_me:$LINENO: result: yes" >&5
1483 echo "${ECHO_T}yes" >&6
1486 echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488 SET_MAKE="MAKE=${MAKE-make}"
1496 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1497 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1498 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1499 { (exit 1); exit 1; }; }
1502 cat >>confdefs.h <<_ACEOF
1503 #define PACKAGE "$PACKAGE"
1507 cat >>confdefs.h <<_ACEOF
1508 #define VERSION "$VERSION"
1513 missing_dir=`cd $ac_aux_dir && pwd`
1514 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1515 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1516 # Run test in a subshell; some versions of sh will print an error if
1517 # an executable is not found, even if stderr is redirected.
1518 # Redirect stdin to placate older versions of autoconf. Sigh.
1519 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1520 ACLOCAL=aclocal-${am__api_version}
1521 echo "$as_me:$LINENO: result: found" >&5
1522 echo "${ECHO_T}found" >&6
1524 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1525 echo "$as_me:$LINENO: result: missing" >&5
1526 echo "${ECHO_T}missing" >&6
1529 echo "$as_me:$LINENO: checking for working autoconf" >&5
1530 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1531 # Run test in a subshell; some versions of sh will print an error if
1532 # an executable is not found, even if stderr is redirected.
1533 # Redirect stdin to placate older versions of autoconf. Sigh.
1534 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1536 echo "$as_me:$LINENO: result: found" >&5
1537 echo "${ECHO_T}found" >&6
1539 AUTOCONF="$missing_dir/missing autoconf"
1540 echo "$as_me:$LINENO: result: missing" >&5
1541 echo "${ECHO_T}missing" >&6
1544 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1545 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1546 # Run test in a subshell; some versions of sh will print an error if
1547 # an executable is not found, even if stderr is redirected.
1548 # Redirect stdin to placate older versions of autoconf. Sigh.
1549 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1550 AUTOMAKE=automake-${am__api_version}
1551 echo "$as_me:$LINENO: result: found" >&5
1552 echo "${ECHO_T}found" >&6
1554 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1555 echo "$as_me:$LINENO: result: missing" >&5
1556 echo "${ECHO_T}missing" >&6
1559 echo "$as_me:$LINENO: checking for working autoheader" >&5
1560 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1561 # Run test in a subshell; some versions of sh will print an error if
1562 # an executable is not found, even if stderr is redirected.
1563 # Redirect stdin to placate older versions of autoconf. Sigh.
1564 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1565 AUTOHEADER=autoheader
1566 echo "$as_me:$LINENO: result: found" >&5
1567 echo "${ECHO_T}found" >&6
1569 AUTOHEADER="$missing_dir/missing autoheader"
1570 echo "$as_me:$LINENO: result: missing" >&5
1571 echo "${ECHO_T}missing" >&6
1574 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1575 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1576 # Run test in a subshell; some versions of sh will print an error if
1577 # an executable is not found, even if stderr is redirected.
1578 # Redirect stdin to placate older versions of autoconf. Sigh.
1579 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1581 echo "$as_me:$LINENO: result: found" >&5
1582 echo "${ECHO_T}found" >&6
1584 MAKEINFO="$missing_dir/missing makeinfo"
1585 echo "$as_me:$LINENO: result: missing" >&5
1586 echo "${ECHO_T}missing" >&6
1591 ac_config_headers="$ac_config_headers config.h"
1593 ac_config_commands="$ac_config_commands default-1"
1596 for ac_prog in gawk mawk nawk awk
1598 # Extract the first word of "$ac_prog", so it can be a program name with args.
1599 set dummy $ac_prog; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_AWK+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$AWK"; then
1606 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_AWK="$ac_prog"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 if test -n "$AWK"; then
1626 echo "$as_me:$LINENO: result: $AWK" >&5
1627 echo "${ECHO_T}$AWK" >&6
1629 echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1633 test -n "$AWK" && break
1636 # Find a good install program. We prefer a C program (faster),
1637 # so one script is as good as another. But avoid the broken or
1638 # incompatible versions:
1639 # SysV /etc/install, /usr/sbin/install
1640 # SunOS /usr/etc/install
1641 # IRIX /sbin/install
1643 # AmigaOS /C/install, which installs bootblocks on floppy discs
1644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647 # ./install, which can be erroneously created by make from ./install.sh.
1648 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1649 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1650 if test -z "$INSTALL"; then
1651 if test "${ac_cv_path_install+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 # Account for people who put trailing slashes in PATH elements.
1661 ./ | .// | /cC/* | \
1662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1665 # OSF1 and SCO ODT 3.0 have their own names for install.
1666 # Don't use installbsd from OSF since it installs stuff as root
1668 for ac_prog in ginstall scoinst install; do
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1671 if test $ac_prog = install &&
1672 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1673 # AIX install. It has an incompatible calling convention.
1675 elif test $ac_prog = install &&
1676 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1677 # program-specific install script used by HP pwplus--don't use.
1680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1692 if test "${ac_cv_path_install+set}" = set; then
1693 INSTALL=$ac_cv_path_install
1695 # As a last resort, use the slow shell script. We don't cache a
1696 # path for INSTALL within a source directory, because that will
1697 # break other packages using the cache if that directory is
1698 # removed, or if the path is relative.
1699 INSTALL=$ac_install_sh
1702 echo "$as_me:$LINENO: result: $INSTALL" >&5
1703 echo "${ECHO_T}$INSTALL" >&6
1705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1706 # It thinks the first close brace ends the variable substitution.
1707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1709 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 cat >conftest.make <<\_ACEOF
1721 @echo 'ac_maketemp="$(MAKE)"'
1723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1725 if test -n "$ac_maketemp"; then
1726 eval ac_cv_prog_make_${ac_make}_set=yes
1728 eval ac_cv_prog_make_${ac_make}_set=no
1732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1733 echo "$as_me:$LINENO: result: yes" >&5
1734 echo "${ECHO_T}yes" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 SET_MAKE="MAKE=${MAKE-make}"
1742 if test -n "$ac_tool_prefix"; then
1743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_RANLIB+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 if test -n "$RANLIB"; then
1751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 RANLIB=$ac_cv_prog_RANLIB
1770 if test -n "$RANLIB"; then
1771 echo "$as_me:$LINENO: result: $RANLIB" >&5
1772 echo "${ECHO_T}$RANLIB" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1779 if test -z "$ac_cv_prog_RANLIB"; then
1780 ac_ct_RANLIB=$RANLIB
1781 # Extract the first word of "ranlib", so it can be a program name with args.
1782 set dummy ranlib; ac_word=$2
1783 echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 if test -n "$ac_ct_RANLIB"; then
1789 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 test -z "$as_dir" && as_dir=.
1796 for ac_exec_ext in '' $ac_executable_extensions; do
1797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798 ac_cv_prog_ac_ct_RANLIB="ranlib"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1808 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1809 if test -n "$ac_ct_RANLIB"; then
1810 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1811 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1813 echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1817 RANLIB=$ac_ct_RANLIB
1819 RANLIB="$ac_cv_prog_RANLIB"
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_CC"; then
1867 # Extract the first word of "gcc", so it can be a program name with args.
1868 set dummy gcc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="gcc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1907 if test -z "$CC"; then
1908 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1910 set dummy ${ac_tool_prefix}cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_CC="${ac_tool_prefix}cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 if test -n "$CC"; then
1937 echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1945 if test -z "$ac_cv_prog_CC"; then
1947 # Extract the first word of "cc", so it can be a program name with args.
1948 set dummy cc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 if test -n "$ac_ct_CC"; then
1955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_ac_ct_CC="cc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1988 if test -z "$CC"; then
1989 # Extract the first word of "cc", so it can be a program name with args.
1990 set dummy cc; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2008 ac_prog_rejected=yes
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 if test $ac_prog_rejected = yes; then
2019 # We found a bogon in the path, so make sure we never use it.
2020 set dummy $ac_cv_prog_CC
2022 if test $# != 0; then
2023 # We chose a different compiler from the bogus one.
2024 # However, it has the same basename, so the bogon will be chosen
2025 # first if we set CC to just the basename; use the full file name.
2027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$CC"; then
2043 if test -n "$ac_tool_prefix"; then
2046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2081 test -n "$CC" && break
2084 if test -z "$CC"; then
2088 # Extract the first word of "$ac_prog", so it can be a program name with args.
2089 set dummy $ac_prog; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_ac_ct_CC="$ac_prog"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2123 test -n "$ac_ct_CC" && break
2132 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2138 # Provide some information about the compiler.
2139 echo "$as_me:$LINENO:" \
2140 "checking for C compiler version" >&5
2141 ac_compiler=`set X $ac_compile; echo $2`
2142 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2143 (eval $ac_compiler --version </dev/null >&5) 2>&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }
2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2148 (eval $ac_compiler -v </dev/null >&5) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2152 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2153 (eval $ac_compiler -V </dev/null >&5) 2>&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }
2158 cat >conftest.$ac_ext <<_ACEOF
2159 #line $LINENO "configure"
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2174 ac_clean_files_save=$ac_clean_files
2175 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176 # Try to create an executable without -o first, disregard a.out.
2177 # It will help us diagnose broken compilers, and finding out an intuition
2179 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2180 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2181 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2182 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2183 (eval $ac_link_default) 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 # Find the output, starting from the most likely. This scheme is
2188 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2191 # Be careful to initialize this variable, since it used to be cached.
2192 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2194 # b.out is created by i960 compilers.
2195 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2197 test -f "$ac_file" || continue
2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2202 # This is the source file.
2205 # We found the default executable, but exeext='' is most
2209 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210 # FIXME: I believe we export ac_cv_exeext for Libtool,
2211 # but it would be cool to find out if it's true. Does anybody
2212 # maintain Libtool? --akim.
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2223 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: C compiler cannot create executables
2226 See \`config.log' for more details." >&2;}
2227 { (exit 77); exit 77; }; }
2230 ac_exeext=$ac_cv_exeext
2231 echo "$as_me:$LINENO: result: $ac_file" >&5
2232 echo "${ECHO_T}$ac_file" >&6
2234 # Check the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2237 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2238 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2239 # If not cross compiling, check that we can run a simple program.
2240 if test "$cross_compiling" != yes; then
2241 if { ac_try='./$ac_file'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 if test "$cross_compiling" = maybe; then
2252 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2262 echo "$as_me:$LINENO: result: yes" >&5
2263 echo "${ECHO_T}yes" >&6
2265 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266 ac_clean_files=$ac_clean_files_save
2267 # Check the compiler produces executables we can run. If not, either
2268 # the compiler is broken, or we cross compile.
2269 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2271 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272 echo "${ECHO_T}$cross_compiling" >&6
2274 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2277 (eval $ac_link) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
2281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2285 for ac_file in conftest.exe conftest conftest.*; do
2286 test -f "$ac_file" || continue
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&5
2298 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2303 rm -f conftest$ac_cv_exeext
2304 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2305 echo "${ECHO_T}$ac_cv_exeext" >&6
2307 rm -f conftest.$ac_ext
2308 EXEEXT=$ac_cv_exeext
2310 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2311 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2312 if test "${ac_cv_objext+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #line $LINENO "configure"
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2331 rm -f conftest.o conftest.obj
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then
2337 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2357 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2358 echo "${ECHO_T}$ac_cv_objext" >&6
2359 OBJEXT=$ac_cv_objext
2361 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2367 #line $LINENO "configure"
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2404 rm -f conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #line $LINENO "configure"
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2454 rm -f conftest.$ac_objext conftest.$ac_ext
2456 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2457 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2458 if test "$ac_test_CFLAGS" = set; then
2459 CFLAGS=$ac_save_CFLAGS
2460 elif test $ac_cv_prog_cc_g = yes; then
2461 if test "$GCC" = yes; then
2467 if test "$GCC" = yes; then
2473 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2474 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 ac_cv_prog_cc_stdc=no
2480 cat >conftest.$ac_ext <<_ACEOF
2481 #line $LINENO "configure"
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2489 #include <sys/types.h>
2490 #include <sys/stat.h>
2491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2492 struct buf { int x; };
2493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2494 static char *e (p, i)
2500 static char *f (char * (*g) (char **, int), char **p, ...)
2505 s = g (p, va_arg (v,int));
2509 int test (int i, double x);
2510 struct s1 {int (*f) (int a);};
2511 struct s2 {int (*f) (double a);};
2512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2523 # Don't try gcc -ansi; that turns off useful extensions and
2524 # breaks some systems' header files.
2525 # AIX -qlanglvl=ansi
2526 # Ultrix and OSF/1 -std1
2527 # HP-UX 10.20 and later -Ae
2528 # HP-UX older versions -Aa -D_HPUX_SOURCE
2529 # SVR4 -Xc -D__EXTENSIONS__
2530 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2532 CC="$ac_save_CC $ac_arg"
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2545 ac_cv_prog_cc_stdc=$ac_arg
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2552 rm -f conftest.$ac_objext
2554 rm -f conftest.$ac_ext conftest.$ac_objext
2559 case "x$ac_cv_prog_cc_stdc" in
2561 echo "$as_me:$LINENO: result: none needed" >&5
2562 echo "${ECHO_T}none needed" >&6 ;;
2564 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2565 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2566 CC="$CC $ac_cv_prog_cc_stdc" ;;
2569 # Some people use a C++ compiler to compile C. Since we use `exit',
2570 # in C++ we need to declare it. In case someone uses the same compiler
2571 # for both compiling C and C++ we need to have the C++ compiler decide
2572 # the declaration of exit, since it's the most demanding environment.
2573 cat >conftest.$ac_ext <<_ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 for ac_declaration in \
2592 '#include <stdlib.h>' \
2593 'extern "C" void std::exit (int) throw (); using std::exit;' \
2594 'extern "C" void std::exit (int); using std::exit;' \
2595 'extern "C" void exit (int) throw ();' \
2596 'extern "C" void exit (int);' \
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636 cat >conftest.$ac_ext <<_ACEOF
2637 #line $LINENO "configure"
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2670 rm -f conftest.$ac_objext conftest.$ac_ext
2673 if test -n "$ac_declaration"; then
2674 echo '#ifdef __cplusplus' >>confdefs.h
2675 echo $ac_declaration >>confdefs.h
2676 echo '#endif' >>confdefs.h
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.$ac_objext conftest.$ac_ext
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692 ac_cpp='$CXXCPP $CPPFLAGS'
2693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2696 if test -n "$ac_tool_prefix"; then
2697 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_CXX+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$CXX"; then
2707 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 if test -n "$CXX"; then
2727 echo "$as_me:$LINENO: result: $CXX" >&5
2728 echo "${ECHO_T}$CXX" >&6
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2734 test -n "$CXX" && break
2737 if test -z "$CXX"; then
2739 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$ac_ct_CXX"; then
2749 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_ac_ct_CXX="$ac_prog"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2768 if test -n "$ac_ct_CXX"; then
2769 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2770 echo "${ECHO_T}$ac_ct_CXX" >&6
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2776 test -n "$ac_ct_CXX" && break
2778 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2784 # Provide some information about the compiler.
2785 echo "$as_me:$LINENO:" \
2786 "checking for C++ compiler version" >&5
2787 ac_compiler=`set X $ac_compile; echo $2`
2788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2789 (eval $ac_compiler --version </dev/null >&5) 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }
2793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2794 (eval $ac_compiler -v </dev/null >&5) 2>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }
2798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2799 (eval $ac_compiler -V </dev/null >&5) 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }
2804 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2805 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2806 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 cat >conftest.$ac_ext <<_ACEOF
2810 #line $LINENO "configure"
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2847 rm -f conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2851 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2852 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2853 GXX=`test $ac_compiler_gnu = yes && echo yes`
2854 ac_test_CXXFLAGS=${CXXFLAGS+set}
2855 ac_save_CXXFLAGS=$CXXFLAGS
2857 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2858 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cxx_g+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 cat >conftest.$ac_ext <<_ACEOF
2863 #line $LINENO "configure"
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_cv_prog_cxx_g=yes
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2897 rm -f conftest.$ac_objext conftest.$ac_ext
2899 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2900 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2901 if test "$ac_test_CXXFLAGS" = set; then
2902 CXXFLAGS=$ac_save_CXXFLAGS
2903 elif test $ac_cv_prog_cxx_g = yes; then
2904 if test "$GXX" = yes; then
2910 if test "$GXX" = yes; then
2916 for ac_declaration in \
2918 '#include <stdlib.h>' \
2919 'extern "C" void std::exit (int) throw (); using std::exit;' \
2920 'extern "C" void std::exit (int); using std::exit;' \
2921 'extern "C" void exit (int) throw ();' \
2922 'extern "C" void exit (int);' \
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f conftest.$ac_objext conftest.$ac_ext
2962 cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2996 rm -f conftest.$ac_objext conftest.$ac_ext
2999 if test -n "$ac_declaration"; then
3000 echo '#ifdef __cplusplus' >>confdefs.h
3001 echo $ac_declaration >>confdefs.h
3002 echo '#endif' >>confdefs.h
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3013 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3014 if test "${ac_cv_c_bigendian+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 # See if sys/param.h defines the BYTE_ORDER macro.
3018 cat >conftest.$ac_ext <<_ACEOF
3019 #line $LINENO "configure"
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3025 #include <sys/types.h>
3026 #include <sys/param.h>
3031 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 # It does; now see whether it defined to BIG_ENDIAN or not.
3052 cat >conftest.$ac_ext <<_ACEOF
3053 #line $LINENO "configure"
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <sys/types.h>
3060 #include <sys/param.h>
3065 #if BYTE_ORDER != BIG_ENDIAN
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -s conftest.$ac_objext'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_cv_c_bigendian=yes
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3090 ac_cv_c_bigendian=no
3092 rm -f conftest.$ac_objext conftest.$ac_ext
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 # It does not; compile a test program.
3098 if test "$cross_compiling" = yes; then
3099 # try to guess the endianness by grepping values into an object file
3100 ac_cv_c_bigendian=unknown
3101 cat >conftest.$ac_ext <<_ACEOF
3102 #line $LINENO "configure"
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3109 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3110 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3111 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3112 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3113 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3117 _ascii (); _ebcdic ();
3122 rm -f conftest.$ac_objext
3123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124 (eval $ac_compile) 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3135 ac_cv_c_bigendian=yes
3137 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3138 if test "$ac_cv_c_bigendian" = unknown; then
3139 ac_cv_c_bigendian=no
3141 # finding both strings is unlikely to happen, but who knows?
3142 ac_cv_c_bigendian=unknown
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 rm -f conftest.$ac_objext conftest.$ac_ext
3152 cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3162 /* Are we little or big endian? From Harbison&Steele. */
3166 char c[sizeof (long)];
3169 exit (u.c[sizeof (long) - 1] == 1);
3172 rm -f conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174 (eval $ac_link) 2>&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_c_bigendian=no
3185 echo "$as_me: program exited with status $ac_status" >&5
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3190 ac_cv_c_bigendian=yes
3192 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3195 rm -f conftest.$ac_objext conftest.$ac_ext
3197 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3198 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3199 case $ac_cv_c_bigendian in
3202 cat >>confdefs.h <<\_ACEOF
3203 #define WORDS_BIGENDIAN 1
3209 { { echo "$as_me:$LINENO: error: unknown endianness
3210 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3211 echo "$as_me: error: unknown endianness
3212 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3213 { (exit 1); exit 1; }; } ;;
3217 # Extract the first word of "wx-config", so it can be a program name with args.
3218 set dummy wx-config; ac_word=$2
3219 echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_path_wxconfig+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 wxconfig=$ac_cv_path_wxconfig
3248 if test -n "$wxconfig"; then
3249 echo "$as_me:$LINENO: result: $wxconfig" >&5
3250 echo "${ECHO_T}$wxconfig" >&6
3252 echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3257 # Make sure we can run config.sub.
3258 $ac_config_sub sun4 >/dev/null 2>&1 ||
3259 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3260 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3261 { (exit 1); exit 1; }; }
3263 echo "$as_me:$LINENO: checking build system type" >&5
3264 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3265 if test "${ac_cv_build+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 ac_cv_build_alias=$build_alias
3269 test -z "$ac_cv_build_alias" &&
3270 ac_cv_build_alias=`$ac_config_guess`
3271 test -z "$ac_cv_build_alias" &&
3272 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3273 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3274 { (exit 1); exit 1; }; }
3275 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3276 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3277 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3278 { (exit 1); exit 1; }; }
3281 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3282 echo "${ECHO_T}$ac_cv_build" >&6
3284 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3285 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3286 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3289 echo "$as_me:$LINENO: checking host system type" >&5
3290 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3291 if test "${ac_cv_host+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 ac_cv_host_alias=$host_alias
3295 test -z "$ac_cv_host_alias" &&
3296 ac_cv_host_alias=$ac_cv_build_alias
3297 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3298 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3299 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3300 { (exit 1); exit 1; }; }
3303 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3304 echo "${ECHO_T}$ac_cv_host" >&6
3306 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3307 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3308 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3311 echo "$as_me:$LINENO: checking for inline" >&5
3312 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3313 if test "${ac_cv_c_inline+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 for ac_kw in inline __inline__ __inline; do
3318 cat >conftest.$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3327 static $ac_kw foo_t static_foo () {return 0; }
3328 $ac_kw foo_t foo () {return 0; }
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } &&
3338 { ac_try='test -s conftest.$ac_objext'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 ac_cv_c_inline=$ac_kw; break
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3350 rm -f conftest.$ac_objext conftest.$ac_ext
3354 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3355 echo "${ECHO_T}$ac_cv_c_inline" >&6
3356 case $ac_cv_c_inline in
3359 cat >>confdefs.h <<\_ACEOF
3363 *) cat >>confdefs.h <<_ACEOF
3364 #define inline $ac_cv_c_inline
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3375 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3376 # On Suns, sometimes $CPP names a directory.
3377 if test -n "$CPP" && test -d "$CPP"; then
3380 if test -z "$CPP"; then
3381 if test "${ac_cv_prog_CPP+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 # Double quotes because CPP needs to be expanded
3385 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388 for ac_c_preproc_warn_flag in '' yes
3390 # Use a header file that comes with gcc, so configuring glibc
3391 # with a fresh cross-compiler works.
3392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393 # <limits.h> exists even on freestanding compilers.
3394 # On the NeXT, cc -E runs the code through the compiler's parser,
3395 # not just through cpp. "Syntax error" is here to catch this case.
3396 cat >conftest.$ac_ext <<_ACEOF
3397 #line $LINENO "configure"
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3404 # include <limits.h>
3406 # include <assert.h>
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3426 if test -z "$ac_cpp_err"; then
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Broken: fails on valid input.
3435 rm -f conftest.err conftest.$ac_ext
3437 # OK, works on sane cases. Now check whether non-existent headers
3438 # can be detected and how.
3439 cat >conftest.$ac_ext <<_ACEOF
3440 #line $LINENO "configure"
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <ac_nonexistent.h>
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev/null; then
3456 if test -s conftest.err; then
3457 ac_cpp_err=$ac_c_preproc_warn_flag
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Passes both tests.
3475 rm -f conftest.err conftest.$ac_ext
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3492 echo "$as_me:$LINENO: result: $CPP" >&5
3493 echo "${ECHO_T}$CPP" >&6
3495 for ac_c_preproc_warn_flag in '' yes
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3511 # include <limits.h>
3513 # include <assert.h>
3517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null; then
3525 if test -s conftest.err; then
3526 ac_cpp_err=$ac_c_preproc_warn_flag
3533 if test -z "$ac_cpp_err"; then
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 # Broken: fails on valid input.
3542 rm -f conftest.err conftest.$ac_ext
3544 # OK, works on sane cases. Now check whether non-existent headers
3545 # can be detected and how.
3546 cat >conftest.$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 #include <ac_nonexistent.h>
3555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3558 grep -v '^ *+' conftest.er1 >conftest.err
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev/null; then
3563 if test -s conftest.err; then
3564 ac_cpp_err=$ac_c_preproc_warn_flag
3571 if test -z "$ac_cpp_err"; then
3572 # Broken: success on invalid input.
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 # Passes both tests.
3582 rm -f conftest.err conftest.$ac_ext
3585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3586 rm -f conftest.err conftest.$ac_ext
3587 if $ac_preproc_ok; then
3590 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3591 See \`config.log' for more details." >&5
3592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&2;}
3594 { (exit 1); exit 1; }; }
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 echo "$as_me:$LINENO: checking for egrep" >&5
3605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606 if test "${ac_cv_prog_egrep+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610 then ac_cv_prog_egrep='grep -E'
3611 else ac_cv_prog_egrep='egrep'
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616 EGREP=$ac_cv_prog_egrep
3619 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3620 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3621 if test "${ac_cv_header_stdc+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 cat >conftest.$ac_ext <<_ACEOF
3625 #line $LINENO "configure"
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3644 rm -f conftest.$ac_objext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646 (eval $ac_compile) 2>&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -s conftest.$ac_objext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 ac_cv_header_stdc=yes
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 ac_cv_header_stdc=no
3663 rm -f conftest.$ac_objext conftest.$ac_ext
3665 if test $ac_cv_header_stdc = yes; then
3666 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3667 cat >conftest.$ac_ext <<_ACEOF
3668 #line $LINENO "configure"
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3678 $EGREP "memchr" >/dev/null 2>&1; then
3681 ac_cv_header_stdc=no
3687 if test $ac_cv_header_stdc = yes; then
3688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line $LINENO "configure"
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3700 $EGREP "free" >/dev/null 2>&1; then
3703 ac_cv_header_stdc=no
3709 if test $ac_cv_header_stdc = yes; then
3710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3711 if test "$cross_compiling" = yes; then
3714 cat >conftest.$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3722 #if ((' ' & 0x0FF) == 0x020)
3723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3726 # define ISLOWER(c) \
3727 (('a' <= (c) && (c) <= 'i') \
3728 || ('j' <= (c) && (c) <= 'r') \
3729 || ('s' <= (c) && (c) <= 'z'))
3730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3738 for (i = 0; i < 256; i++)
3739 if (XOR (islower (i), ISLOWER (i))
3740 || toupper (i) != TOUPPER (i))
3745 rm -f conftest$ac_exeext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3747 (eval $ac_link) 2>&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3758 echo "$as_me: program exited with status $ac_status" >&5
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3763 ac_cv_header_stdc=no
3765 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3769 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3770 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3771 if test $ac_cv_header_stdc = yes; then
3773 cat >>confdefs.h <<\_ACEOF
3774 #define STDC_HEADERS 1
3779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3790 inttypes.h stdint.h unistd.h
3792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793 echo "$as_me:$LINENO: checking for $ac_header" >&5
3794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 cat >conftest.$ac_ext <<_ACEOF
3799 #line $LINENO "configure"
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 $ac_includes_default
3807 #include <$ac_header>
3809 rm -f conftest.$ac_objext
3810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811 (eval $ac_compile) 2>&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -s conftest.$ac_objext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 eval "$as_ac_Header=yes"
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 eval "$as_ac_Header=no"
3828 rm -f conftest.$ac_objext conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833 cat >>confdefs.h <<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3842 echo "$as_me:$LINENO: checking for short" >&5
3843 echo $ECHO_N "checking for short... $ECHO_C" >&6
3844 if test "${ac_cv_type_short+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 cat >conftest.$ac_ext <<_ACEOF
3848 #line $LINENO "configure"
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854 $ac_includes_default
3866 rm -f conftest.$ac_objext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_type_short=yes
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3885 rm -f conftest.$ac_objext conftest.$ac_ext
3887 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3888 echo "${ECHO_T}$ac_cv_type_short" >&6
3890 echo "$as_me:$LINENO: checking size of short" >&5
3891 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3892 if test "${ac_cv_sizeof_short+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 if test "$ac_cv_type_short" = yes; then
3896 # The cast to unsigned long works around a bug in the HP C Compiler
3897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3899 # This bug is HP SR number 8606223364.
3900 if test "$cross_compiling" = yes; then
3901 # Depending upon the size, compute the lo and hi bounds.
3902 cat >conftest.$ac_ext <<_ACEOF
3903 #line $LINENO "configure"
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 $ac_includes_default
3913 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3920 rm -f conftest.$ac_objext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922 (eval $ac_compile) 2>&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -s conftest.$ac_objext'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3934 cat >conftest.$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 $ac_includes_default
3945 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3964 ac_hi=$ac_mid; break
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 ac_lo=`expr $ac_mid + 1`
3970 if test $ac_lo -le $ac_mid; then
3974 ac_mid=`expr 2 '*' $ac_mid + 1`
3976 rm -f conftest.$ac_objext conftest.$ac_ext
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 cat >conftest.$ac_ext <<_ACEOF
3983 #line $LINENO "configure"
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 $ac_includes_default
3993 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4000 rm -f conftest.$ac_objext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4002 (eval $ac_compile) 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } &&
4006 { ac_try='test -s conftest.$ac_objext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4014 cat >conftest.$ac_ext <<_ACEOF
4015 #line $LINENO "configure"
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 $ac_includes_default
4025 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_lo=$ac_mid; break
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 ac_hi=`expr '(' $ac_mid ')' - 1`
4050 if test $ac_mid -le $ac_hi; then
4054 ac_mid=`expr 2 '*' $ac_mid`
4056 rm -f conftest.$ac_objext conftest.$ac_ext
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4064 rm -f conftest.$ac_objext conftest.$ac_ext
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4067 # Binary search between lo and hi bounds.
4068 while test "x$ac_lo" != "x$ac_hi"; do
4069 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4070 cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 $ac_includes_default
4081 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 ac_lo=`expr '(' $ac_mid ')' + 1`
4107 rm -f conftest.$ac_objext conftest.$ac_ext
4110 ?*) ac_cv_sizeof_short=$ac_lo;;
4111 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4112 See \`config.log' for more details." >&5
4113 echo "$as_me: error: cannot compute sizeof (short), 77
4114 See \`config.log' for more details." >&2;}
4115 { (exit 1); exit 1; }; } ;;
4118 if test "$cross_compiling" = yes; then
4119 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4120 See \`config.log' for more details." >&5
4121 echo "$as_me: error: cannot run test program while cross compiling
4122 See \`config.log' for more details." >&2;}
4123 { (exit 1); exit 1; }; }
4125 cat >conftest.$ac_ext <<_ACEOF
4126 #line $LINENO "configure"
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4132 $ac_includes_default
4133 long longval () { return (long) (sizeof (short)); }
4134 unsigned long ulongval () { return (long) (sizeof (short)); }
4141 FILE *f = fopen ("conftest.val", "w");
4144 if (((long) (sizeof (short))) < 0)
4146 long i = longval ();
4147 if (i != ((long) (sizeof (short))))
4149 fprintf (f, "%ld\n", i);
4153 unsigned long i = ulongval ();
4154 if (i != ((long) (sizeof (short))))
4156 fprintf (f, "%lu\n", i);
4158 exit (ferror (f) || fclose (f) != 0);
4164 rm -f conftest$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166 (eval $ac_link) 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 ac_cv_sizeof_short=`cat conftest.val`
4177 echo "$as_me: program exited with status $ac_status" >&5
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4183 See \`config.log' for more details." >&5
4184 echo "$as_me: error: cannot compute sizeof (short), 77
4185 See \`config.log' for more details." >&2;}
4186 { (exit 1); exit 1; }; }
4188 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4193 ac_cv_sizeof_short=0
4196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4197 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4198 cat >>confdefs.h <<_ACEOF
4199 #define SIZEOF_SHORT $ac_cv_sizeof_short
4203 echo "$as_me:$LINENO: checking for int" >&5
4204 echo $ECHO_N "checking for int... $ECHO_C" >&6
4205 if test "${ac_cv_type_int+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 $ac_includes_default
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4246 rm -f conftest.$ac_objext conftest.$ac_ext
4248 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4249 echo "${ECHO_T}$ac_cv_type_int" >&6
4251 echo "$as_me:$LINENO: checking size of int" >&5
4252 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4253 if test "${ac_cv_sizeof_int+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 if test "$ac_cv_type_int" = yes; then
4257 # The cast to unsigned long works around a bug in the HP C Compiler
4258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4260 # This bug is HP SR number 8606223364.
4261 if test "$cross_compiling" = yes; then
4262 # Depending upon the size, compute the lo and hi bounds.
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 $ac_includes_default
4274 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4295 cat >conftest.$ac_ext <<_ACEOF
4296 #line $LINENO "configure"
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4306 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_hi=$ac_mid; break
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 ac_lo=`expr $ac_mid + 1`
4331 if test $ac_lo -le $ac_mid; then
4335 ac_mid=`expr 2 '*' $ac_mid + 1`
4337 rm -f conftest.$ac_objext conftest.$ac_ext
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 cat >conftest.$ac_ext <<_ACEOF
4344 #line $LINENO "configure"
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 $ac_includes_default
4354 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4375 cat >conftest.$ac_ext <<_ACEOF
4376 #line $LINENO "configure"
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 $ac_includes_default
4386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4393 rm -f conftest.$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4405 ac_lo=$ac_mid; break
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 ac_hi=`expr '(' $ac_mid ')' - 1`
4411 if test $ac_mid -le $ac_hi; then
4415 ac_mid=`expr 2 '*' $ac_mid`
4417 rm -f conftest.$ac_objext conftest.$ac_ext
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4425 rm -f conftest.$ac_objext conftest.$ac_ext
4427 rm -f conftest.$ac_objext conftest.$ac_ext
4428 # Binary search between lo and hi bounds.
4429 while test "x$ac_lo" != "x$ac_hi"; do
4430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4431 cat >conftest.$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4442 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_lo=`expr '(' $ac_mid ')' + 1`
4468 rm -f conftest.$ac_objext conftest.$ac_ext
4471 ?*) ac_cv_sizeof_int=$ac_lo;;
4472 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4473 See \`config.log' for more details." >&5
4474 echo "$as_me: error: cannot compute sizeof (int), 77
4475 See \`config.log' for more details." >&2;}
4476 { (exit 1); exit 1; }; } ;;
4479 if test "$cross_compiling" = yes; then
4480 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4481 See \`config.log' for more details." >&5
4482 echo "$as_me: error: cannot run test program while cross compiling
4483 See \`config.log' for more details." >&2;}
4484 { (exit 1); exit 1; }; }
4486 cat >conftest.$ac_ext <<_ACEOF
4487 #line $LINENO "configure"
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4494 long longval () { return (long) (sizeof (int)); }
4495 unsigned long ulongval () { return (long) (sizeof (int)); }
4502 FILE *f = fopen ("conftest.val", "w");
4505 if (((long) (sizeof (int))) < 0)
4507 long i = longval ();
4508 if (i != ((long) (sizeof (int))))
4510 fprintf (f, "%ld\n", i);
4514 unsigned long i = ulongval ();
4515 if (i != ((long) (sizeof (int))))
4517 fprintf (f, "%lu\n", i);
4519 exit (ferror (f) || fclose (f) != 0);
4525 rm -f conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527 (eval $ac_link) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 ac_cv_sizeof_int=`cat conftest.val`
4538 echo "$as_me: program exited with status $ac_status" >&5
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4543 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4544 See \`config.log' for more details." >&5
4545 echo "$as_me: error: cannot compute sizeof (int), 77
4546 See \`config.log' for more details." >&2;}
4547 { (exit 1); exit 1; }; }
4549 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4557 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4558 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4559 cat >>confdefs.h <<_ACEOF
4560 #define SIZEOF_INT $ac_cv_sizeof_int
4564 echo "$as_me:$LINENO: checking for long" >&5
4565 echo $ECHO_N "checking for long... $ECHO_C" >&6
4566 if test "${ac_cv_type_long+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 cat >conftest.$ac_ext <<_ACEOF
4570 #line $LINENO "configure"
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 $ac_includes_default
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4607 rm -f conftest.$ac_objext conftest.$ac_ext
4609 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4610 echo "${ECHO_T}$ac_cv_type_long" >&6
4612 echo "$as_me:$LINENO: checking size of long" >&5
4613 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4614 if test "${ac_cv_sizeof_long+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 if test "$ac_cv_type_long" = yes; then
4618 # The cast to unsigned long works around a bug in the HP C Compiler
4619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4621 # This bug is HP SR number 8606223364.
4622 if test "$cross_compiling" = yes; then
4623 # Depending upon the size, compute the lo and hi bounds.
4624 cat >conftest.$ac_ext <<_ACEOF
4625 #line $LINENO "configure"
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 $ac_includes_default
4635 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4642 rm -f conftest.$ac_objext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4644 (eval $ac_compile) 2>&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -s conftest.$ac_objext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4656 cat >conftest.$ac_ext <<_ACEOF
4657 #line $LINENO "configure"
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 $ac_includes_default
4667 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_hi=$ac_mid; break
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 ac_lo=`expr $ac_mid + 1`
4692 if test $ac_lo -le $ac_mid; then
4696 ac_mid=`expr 2 '*' $ac_mid + 1`
4698 rm -f conftest.$ac_objext conftest.$ac_ext
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 $ac_includes_default
4715 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4722 rm -f conftest.$ac_objext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724 (eval $ac_compile) 2>&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 $ac_includes_default
4747 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4754 rm -f conftest.$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -s conftest.$ac_objext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_lo=$ac_mid; break
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4771 ac_hi=`expr '(' $ac_mid ')' - 1`
4772 if test $ac_mid -le $ac_hi; then
4776 ac_mid=`expr 2 '*' $ac_mid`
4778 rm -f conftest.$ac_objext conftest.$ac_ext
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4786 rm -f conftest.$ac_objext conftest.$ac_ext
4788 rm -f conftest.$ac_objext conftest.$ac_ext
4789 # Binary search between lo and hi bounds.
4790 while test "x$ac_lo" != "x$ac_hi"; do
4791 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4792 cat >conftest.$ac_ext <<_ACEOF
4793 #line $LINENO "configure"
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 $ac_includes_default
4803 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_lo=`expr '(' $ac_mid ')' + 1`
4829 rm -f conftest.$ac_objext conftest.$ac_ext
4832 ?*) ac_cv_sizeof_long=$ac_lo;;
4833 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4834 See \`config.log' for more details." >&5
4835 echo "$as_me: error: cannot compute sizeof (long), 77
4836 See \`config.log' for more details." >&2;}
4837 { (exit 1); exit 1; }; } ;;
4840 if test "$cross_compiling" = yes; then
4841 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4842 See \`config.log' for more details." >&5
4843 echo "$as_me: error: cannot run test program while cross compiling
4844 See \`config.log' for more details." >&2;}
4845 { (exit 1); exit 1; }; }
4847 cat >conftest.$ac_ext <<_ACEOF
4848 #line $LINENO "configure"
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 $ac_includes_default
4855 long longval () { return (long) (sizeof (long)); }
4856 unsigned long ulongval () { return (long) (sizeof (long)); }
4863 FILE *f = fopen ("conftest.val", "w");
4866 if (((long) (sizeof (long))) < 0)
4868 long i = longval ();
4869 if (i != ((long) (sizeof (long))))
4871 fprintf (f, "%ld\n", i);
4875 unsigned long i = ulongval ();
4876 if (i != ((long) (sizeof (long))))
4878 fprintf (f, "%lu\n", i);
4880 exit (ferror (f) || fclose (f) != 0);
4886 rm -f conftest$ac_exeext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888 (eval $ac_link) 2>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_sizeof_long=`cat conftest.val`
4899 echo "$as_me: program exited with status $ac_status" >&5
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4905 See \`config.log' for more details." >&5
4906 echo "$as_me: error: cannot compute sizeof (long), 77
4907 See \`config.log' for more details." >&2;}
4908 { (exit 1); exit 1; }; }
4910 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4918 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4919 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4920 cat >>confdefs.h <<_ACEOF
4921 #define SIZEOF_LONG $ac_cv_sizeof_long
4925 echo "$as_me:$LINENO: checking for float" >&5
4926 echo $ECHO_N "checking for float... $ECHO_C" >&6
4927 if test "${ac_cv_type_float+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 cat >conftest.$ac_ext <<_ACEOF
4931 #line $LINENO "configure"
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 $ac_includes_default
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_type_float=yes
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4968 rm -f conftest.$ac_objext conftest.$ac_ext
4970 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4971 echo "${ECHO_T}$ac_cv_type_float" >&6
4973 echo "$as_me:$LINENO: checking size of float" >&5
4974 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4975 if test "${ac_cv_sizeof_float+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 if test "$ac_cv_type_float" = yes; then
4979 # The cast to unsigned long works around a bug in the HP C Compiler
4980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4982 # This bug is HP SR number 8606223364.
4983 if test "$cross_compiling" = yes; then
4984 # Depending upon the size, compute the lo and hi bounds.
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 $ac_includes_default
4996 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5017 cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 $ac_includes_default
5028 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5035 rm -f conftest.$ac_objext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -s conftest.$ac_objext'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_hi=$ac_mid; break
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5052 ac_lo=`expr $ac_mid + 1`
5053 if test $ac_lo -le $ac_mid; then
5057 ac_mid=`expr 2 '*' $ac_mid + 1`
5059 rm -f conftest.$ac_objext conftest.$ac_ext
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 $ac_includes_default
5076 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5083 rm -f conftest.$ac_objext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085 (eval $ac_compile) 2>&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } &&
5089 { ac_try='test -s conftest.$ac_objext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5097 cat >conftest.$ac_ext <<_ACEOF
5098 #line $LINENO "configure"
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 $ac_includes_default
5108 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5115 rm -f conftest.$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117 (eval $ac_compile) 2>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } &&
5121 { ac_try='test -s conftest.$ac_objext'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5127 ac_lo=$ac_mid; break
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 ac_hi=`expr '(' $ac_mid ')' - 1`
5133 if test $ac_mid -le $ac_hi; then
5137 ac_mid=`expr 2 '*' $ac_mid`
5139 rm -f conftest.$ac_objext conftest.$ac_ext
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5147 rm -f conftest.$ac_objext conftest.$ac_ext
5149 rm -f conftest.$ac_objext conftest.$ac_ext
5150 # Binary search between lo and hi bounds.
5151 while test "x$ac_lo" != "x$ac_hi"; do
5152 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5153 cat >conftest.$ac_ext <<_ACEOF
5154 #line $LINENO "configure"
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 $ac_includes_default
5164 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -s conftest.$ac_objext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188 ac_lo=`expr '(' $ac_mid ')' + 1`
5190 rm -f conftest.$ac_objext conftest.$ac_ext
5193 ?*) ac_cv_sizeof_float=$ac_lo;;
5194 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5195 See \`config.log' for more details." >&5
5196 echo "$as_me: error: cannot compute sizeof (float), 77
5197 See \`config.log' for more details." >&2;}
5198 { (exit 1); exit 1; }; } ;;
5201 if test "$cross_compiling" = yes; then
5202 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5203 See \`config.log' for more details." >&5
5204 echo "$as_me: error: cannot run test program while cross compiling
5205 See \`config.log' for more details." >&2;}
5206 { (exit 1); exit 1; }; }
5208 cat >conftest.$ac_ext <<_ACEOF
5209 #line $LINENO "configure"
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 $ac_includes_default
5216 long longval () { return (long) (sizeof (float)); }
5217 unsigned long ulongval () { return (long) (sizeof (float)); }
5224 FILE *f = fopen ("conftest.val", "w");
5227 if (((long) (sizeof (float))) < 0)
5229 long i = longval ();
5230 if (i != ((long) (sizeof (float))))
5232 fprintf (f, "%ld\n", i);
5236 unsigned long i = ulongval ();
5237 if (i != ((long) (sizeof (float))))
5239 fprintf (f, "%lu\n", i);
5241 exit (ferror (f) || fclose (f) != 0);
5247 rm -f conftest$ac_exeext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5249 (eval $ac_link) 2>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_sizeof_float=`cat conftest.val`
5260 echo "$as_me: program exited with status $ac_status" >&5
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5266 See \`config.log' for more details." >&5
5267 echo "$as_me: error: cannot compute sizeof (float), 77
5268 See \`config.log' for more details." >&2;}
5269 { (exit 1); exit 1; }; }
5271 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5276 ac_cv_sizeof_float=0
5279 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5280 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5281 cat >>confdefs.h <<_ACEOF
5282 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5286 echo "$as_me:$LINENO: checking for double" >&5
5287 echo $ECHO_N "checking for double... $ECHO_C" >&6
5288 if test "${ac_cv_type_double+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 cat >conftest.$ac_ext <<_ACEOF
5292 #line $LINENO "configure"
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 $ac_includes_default
5304 if (sizeof (double))
5310 rm -f conftest.$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } &&
5316 { ac_try='test -s conftest.$ac_objext'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
5322 ac_cv_type_double=yes
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 ac_cv_type_double=no
5329 rm -f conftest.$ac_objext conftest.$ac_ext
5331 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5332 echo "${ECHO_T}$ac_cv_type_double" >&6
5334 echo "$as_me:$LINENO: checking size of double" >&5
5335 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5336 if test "${ac_cv_sizeof_double+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 if test "$ac_cv_type_double" = yes; then
5340 # The cast to unsigned long works around a bug in the HP C Compiler
5341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5343 # This bug is HP SR number 8606223364.
5344 if test "$cross_compiling" = yes; then
5345 # Depending upon the size, compute the lo and hi bounds.
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line $LINENO "configure"
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5357 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5378 cat >conftest.$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5389 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_hi=$ac_mid; break
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_lo=`expr $ac_mid + 1`
5414 if test $ac_lo -le $ac_mid; then
5418 ac_mid=`expr 2 '*' $ac_mid + 1`
5420 rm -f conftest.$ac_objext conftest.$ac_ext
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 cat >conftest.$ac_ext <<_ACEOF
5427 #line $LINENO "configure"
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5437 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 $ac_includes_default
5469 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5476 rm -f conftest.$ac_objext
5477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478 (eval $ac_compile) 2>&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 ac_lo=$ac_mid; break
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_hi=`expr '(' $ac_mid ')' - 1`
5494 if test $ac_mid -le $ac_hi; then
5498 ac_mid=`expr 2 '*' $ac_mid`
5500 rm -f conftest.$ac_objext conftest.$ac_ext
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5508 rm -f conftest.$ac_objext conftest.$ac_ext
5510 rm -f conftest.$ac_objext conftest.$ac_ext
5511 # Binary search between lo and hi bounds.
5512 while test "x$ac_lo" != "x$ac_hi"; do
5513 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5514 cat >conftest.$ac_ext <<_ACEOF
5515 #line $LINENO "configure"
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 $ac_includes_default
5525 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_lo=`expr '(' $ac_mid ')' + 1`
5551 rm -f conftest.$ac_objext conftest.$ac_ext
5554 ?*) ac_cv_sizeof_double=$ac_lo;;
5555 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: cannot compute sizeof (double), 77
5558 See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; } ;;
5562 if test "$cross_compiling" = yes; then
5563 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5564 See \`config.log' for more details." >&5
5565 echo "$as_me: error: cannot run test program while cross compiling
5566 See \`config.log' for more details." >&2;}
5567 { (exit 1); exit 1; }; }
5569 cat >conftest.$ac_ext <<_ACEOF
5570 #line $LINENO "configure"
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 $ac_includes_default
5577 long longval () { return (long) (sizeof (double)); }
5578 unsigned long ulongval () { return (long) (sizeof (double)); }
5585 FILE *f = fopen ("conftest.val", "w");
5588 if (((long) (sizeof (double))) < 0)
5590 long i = longval ();
5591 if (i != ((long) (sizeof (double))))
5593 fprintf (f, "%ld\n", i);
5597 unsigned long i = ulongval ();
5598 if (i != ((long) (sizeof (double))))
5600 fprintf (f, "%lu\n", i);
5602 exit (ferror (f) || fclose (f) != 0);
5608 rm -f conftest$ac_exeext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610 (eval $ac_link) 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_sizeof_double=`cat conftest.val`
5621 echo "$as_me: program exited with status $ac_status" >&5
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5627 See \`config.log' for more details." >&5
5628 echo "$as_me: error: cannot compute sizeof (double), 77
5629 See \`config.log' for more details." >&2;}
5630 { (exit 1); exit 1; }; }
5632 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5637 ac_cv_sizeof_double=0
5640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5641 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5642 cat >>confdefs.h <<_ACEOF
5643 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5649 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5650 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5651 if test "${ac_cv_lib_z_deflate+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 ac_check_lib_save_LIBS=$LIBS
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5664 /* Override any gcc2 internal prototype to avoid an error. */
5668 /* We use char because int might match the return type of a gcc2
5669 builtin and then its argument prototype would still apply. */
5679 rm -f conftest.$ac_objext conftest$ac_exeext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5681 (eval $ac_link) 2>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -s conftest$ac_exeext'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5691 ac_cv_lib_z_deflate=yes
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 ac_cv_lib_z_deflate=no
5698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5699 LIBS=$ac_check_lib_save_LIBS
5701 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5702 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5703 if test $ac_cv_lib_z_deflate = yes; then
5706 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5707 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5711 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5712 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5713 if test "${ac_cv_lib_m_sin+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 ac_check_lib_save_LIBS=$LIBS
5718 cat >conftest.$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5726 /* Override any gcc2 internal prototype to avoid an error. */
5730 /* We use char because int might match the return type of a gcc2
5731 builtin and then its argument prototype would still apply. */
5741 rm -f conftest.$ac_objext conftest$ac_exeext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5743 (eval $ac_link) 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } &&
5747 { ac_try='test -s conftest$ac_exeext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5761 LIBS=$ac_check_lib_save_LIBS
5763 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5764 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5765 if test $ac_cv_lib_m_sin = yes; then
5766 cat >>confdefs.h <<_ACEOF
5774 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5775 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5776 if test "${ac_cv_lib_curses_main+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 ac_check_lib_save_LIBS=$LIBS
5780 LIBS="-lcurses $LIBS"
5781 cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5798 rm -f conftest.$ac_objext conftest$ac_exeext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5800 (eval $ac_link) 2>&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -s conftest$ac_exeext'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 ac_cv_lib_curses_main=yes
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 ac_cv_lib_curses_main=no
5817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5818 LIBS=$ac_check_lib_save_LIBS
5820 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5821 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5822 if test $ac_cv_lib_curses_main = yes; then
5828 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5829 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5830 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 ac_check_lib_save_LIBS=$LIBS
5834 LIBS="-lncurses $LIBS"
5835 cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854 (eval $ac_link) 2>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -s conftest$ac_exeext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_cv_lib_ncurses_main=yes
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 ac_cv_lib_ncurses_main=no
5871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5872 LIBS=$ac_check_lib_save_LIBS
5874 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5875 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5876 if test $ac_cv_lib_ncurses_main = yes; then
5882 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5883 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5884 if test "${ac_cv_lib_readline_main+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 ac_check_lib_save_LIBS=$LIBS
5888 LIBS="-lreadline -lcurses $LIBS"
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5906 rm -f conftest.$ac_objext conftest$ac_exeext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5908 (eval $ac_link) 2>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -s conftest$ac_exeext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_cv_lib_readline_main=yes
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_cv_lib_readline_main=no
5925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5926 LIBS=$ac_check_lib_save_LIBS
5928 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5929 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5930 if test $ac_cv_lib_readline_main = yes; then
5933 cat >>confdefs.h <<\_ACEOF
5934 #define HAVE_READLINE 1
5942 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
5943 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
5944 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_check_lib_save_LIBS=$LIBS
5948 LIBS="-lwx_gtk-2.4 $LIBS"
5949 cat >conftest.$ac_ext <<_ACEOF
5950 #line $LINENO "configure"
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5966 rm -f conftest.$ac_objext conftest$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968 (eval $ac_link) 2>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -s conftest$ac_exeext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_cv_lib_wx_gtk_2_4_main=yes
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 ac_cv_lib_wx_gtk_2_4_main=no
5985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5986 LIBS=$ac_check_lib_save_LIBS
5988 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
5989 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
5990 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
5991 wxwin=true; wx_gtk=true;
5992 cat >>confdefs.h <<\_ACEOF
5993 #define HAVE_WXWINDOWS 1
5998 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
5999 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6000 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 ac_check_lib_save_LIBS=$LIBS
6004 LIBS="-lwx_mac-2.4 $LIBS"
6005 cat >conftest.$ac_ext <<_ACEOF
6006 #line $LINENO "configure"
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6022 rm -f conftest.$ac_objext conftest$ac_exeext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6024 (eval $ac_link) 2>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -s conftest$ac_exeext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_lib_wx_mac_2_4_main=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_cv_lib_wx_mac_2_4_main=no
6041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6042 LIBS=$ac_check_lib_save_LIBS
6044 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6045 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6046 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6047 wxwin=true; wx_mac=true;
6048 cat >>confdefs.h <<\_ACEOF
6049 #define HAVE_WXWINDOWS 1
6054 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6055 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6056 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_check_lib_save_LIBS=$LIBS
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line $LINENO "configure"
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6069 /* Override any gcc2 internal prototype to avoid an error. */
6073 /* We use char because int might match the return type of a gcc2
6074 builtin and then its argument prototype would still apply. */
6084 rm -f conftest.$ac_objext conftest$ac_exeext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6086 (eval $ac_link) 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -s conftest$ac_exeext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_lib_fftw_fftw_one=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 ac_cv_lib_fftw_fftw_one=no
6103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6107 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6108 if test $ac_cv_lib_fftw_fftw_one = yes; then
6110 cat >>confdefs.h <<\_ACEOF
6118 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6119 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6120 if test "${ac_cv_lib_GL_main+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 ac_check_lib_save_LIBS=$LIBS
6124 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6125 cat >conftest.$ac_ext <<_ACEOF
6126 #line $LINENO "configure"
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6142 rm -f conftest.$ac_objext conftest$ac_exeext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144 (eval $ac_link) 2>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -s conftest$ac_exeext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_lib_GL_main=yes
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ac_cv_lib_GL_main=no
6161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6162 LIBS=$ac_check_lib_save_LIBS
6164 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6165 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6166 if test $ac_cv_lib_GL_main = yes; then
6172 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6173 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6174 if test "${ac_cv_lib_pthread_main+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 ac_check_lib_save_LIBS=$LIBS
6178 LIBS="-lpthread $LIBS"
6179 cat >conftest.$ac_ext <<_ACEOF
6180 #line $LINENO "configure"
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_lib_pthread_main=yes
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_cv_lib_pthread_main=no
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_check_lib_save_LIBS
6218 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6219 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6220 if test $ac_cv_lib_pthread_main = yes; then
6227 if test "$zlib" = "true" ; then
6228 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6229 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6230 if test "${ac_cv_lib_png_main+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 ac_check_lib_save_LIBS=$LIBS
6234 LIBS="-lpng -lz -lm $LIBS"
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line $LINENO "configure"
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6252 rm -f conftest.$ac_objext conftest$ac_exeext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6254 (eval $ac_link) 2>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -s conftest$ac_exeext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_lib_png_main=yes
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 ac_cv_lib_png_main=no
6271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6272 LIBS=$ac_check_lib_save_LIBS
6274 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6275 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6276 if test $ac_cv_lib_png_main = yes; then
6278 cat >>confdefs.h <<\_ACEOF
6288 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6290 if test "${ac_cv_header_stdc+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_cv_header_stdc=yes
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6330 ac_cv_header_stdc=no
6332 rm -f conftest.$ac_objext conftest.$ac_ext
6334 if test $ac_cv_header_stdc = yes; then
6335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6336 cat >conftest.$ac_ext <<_ACEOF
6337 #line $LINENO "configure"
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "memchr" >/dev/null 2>&1; then
6350 ac_cv_header_stdc=no
6356 if test $ac_cv_header_stdc = yes; then
6357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6358 cat >conftest.$ac_ext <<_ACEOF
6359 #line $LINENO "configure"
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369 $EGREP "free" >/dev/null 2>&1; then
6372 ac_cv_header_stdc=no
6378 if test $ac_cv_header_stdc = yes; then
6379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6380 if test "$cross_compiling" = yes; then
6383 cat >conftest.$ac_ext <<_ACEOF
6384 #line $LINENO "configure"
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 #if ((' ' & 0x0FF) == 0x020)
6392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6395 # define ISLOWER(c) \
6396 (('a' <= (c) && (c) <= 'i') \
6397 || ('j' <= (c) && (c) <= 'r') \
6398 || ('s' <= (c) && (c) <= 'z'))
6399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6407 for (i = 0; i < 256; i++)
6408 if (XOR (islower (i), ISLOWER (i))
6409 || toupper (i) != TOUPPER (i))
6414 rm -f conftest$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416 (eval $ac_link) 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6427 echo "$as_me: program exited with status $ac_status" >&5
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6432 ac_cv_header_stdc=no
6434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6439 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6440 if test $ac_cv_header_stdc = yes; then
6442 cat >>confdefs.h <<\_ACEOF
6443 #define STDC_HEADERS 1
6472 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
6474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476 echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484 # Is the header compilable?
6485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6487 cat >conftest.$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6495 #include <$ac_header>
6497 rm -f conftest.$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499 (eval $ac_compile) 2>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -s conftest.$ac_objext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_header_compiler=yes
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 ac_header_compiler=no
6516 rm -f conftest.$ac_objext conftest.$ac_ext
6517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6518 echo "${ECHO_T}$ac_header_compiler" >&6
6520 # Is the header present?
6521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6523 cat >conftest.$ac_ext <<_ACEOF
6524 #line $LINENO "configure"
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <$ac_header>
6532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6535 grep -v '^ *+' conftest.er1 >conftest.err
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } >/dev/null; then
6540 if test -s conftest.err; then
6541 ac_cpp_err=$ac_c_preproc_warn_flag
6548 if test -z "$ac_cpp_err"; then
6549 ac_header_preproc=yes
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 ac_header_preproc=no
6556 rm -f conftest.err conftest.$ac_ext
6557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6558 echo "${ECHO_T}$ac_header_preproc" >&6
6560 # So? What about this header?
6561 case $ac_header_compiler:$ac_header_preproc in
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6569 ## ------------------------------------ ##
6570 ## Report this to bug-autoconf@gnu.org. ##
6571 ## ------------------------------------ ##
6574 sed "s/^/$as_me: WARNING: /" >&2
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6585 ## ------------------------------------ ##
6586 ## Report this to bug-autoconf@gnu.org. ##
6587 ## ------------------------------------ ##
6590 sed "s/^/$as_me: WARNING: /" >&2
6593 echo "$as_me:$LINENO: checking for $ac_header" >&5
6594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 eval "$as_ac_Header=$ac_header_preproc"
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6605 cat >>confdefs.h <<_ACEOF
6606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6614 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6615 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6616 if test "${ac_cv_c_const+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 cat >conftest.$ac_ext <<_ACEOF
6620 #line $LINENO "configure"
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6630 /* FIXME: Include the comments suggested by Paul. */
6632 /* Ultrix mips cc rejects this. */
6633 typedef int charset[2];
6635 /* SunOS 4.1.1 cc rejects this. */
6636 char const *const *ccp;
6638 /* NEC SVR4.0.2 mips cc rejects this. */
6639 struct point {int x, y;};
6640 static struct point const zero = {0,0};
6641 /* AIX XL C 1.02.0.0 rejects this.
6642 It does not let you subtract one const X* pointer from another in
6643 an arm of an if-expression whose if-part is not a constant
6645 const char *g = "string";
6646 ccp = &g + (g ? g-g : 0);
6647 /* HPUX 7.0 cc rejects these. */
6650 ccp = (char const *const *) p;
6651 { /* SCO 3.2v4 cc rejects this. */
6653 char const *s = 0 ? (char *) 0 : (char const *) 0;
6657 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6659 const int *foo = &x[0];
6662 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6663 typedef const int *iptr;
6667 { /* AIX XL C 1.02.0.0 rejects this saying
6668 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6669 struct s { int j; const int *ap[3]; };
6670 struct s *b; b->j = 5;
6672 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -s conftest.$ac_objext'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; }; then
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6703 echo "${ECHO_T}$ac_cv_c_const" >&6
6704 if test $ac_cv_c_const = no; then
6706 cat >>confdefs.h <<\_ACEOF
6712 echo "$as_me:$LINENO: checking for off_t" >&5
6713 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6714 if test "${ac_cv_type_off_t+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 $ac_includes_default
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -s conftest.$ac_objext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 ac_cv_type_off_t=yes
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6755 rm -f conftest.$ac_objext conftest.$ac_ext
6757 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6758 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6759 if test $ac_cv_type_off_t = yes; then
6763 cat >>confdefs.h <<_ACEOF
6769 echo "$as_me:$LINENO: checking for size_t" >&5
6770 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6771 if test "${ac_cv_type_size_t+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 cat >conftest.$ac_ext <<_ACEOF
6775 #line $LINENO "configure"
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 $ac_includes_default
6787 if (sizeof (size_t))
6793 rm -f conftest.$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795 (eval $ac_compile) 2>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -s conftest.$ac_objext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_type_size_t=yes
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_cv_type_size_t=no
6812 rm -f conftest.$ac_objext conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6815 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6816 if test $ac_cv_type_size_t = yes; then
6820 cat >>confdefs.h <<_ACEOF
6821 #define size_t unsigned
6826 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6827 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6828 if test "${ac_cv_struct_tm+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 cat >conftest.$ac_ext <<_ACEOF
6832 #line $LINENO "configure"
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 #include <sys/types.h>
6844 struct tm *tp; tp->tm_sec;
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851 (eval $ac_compile) 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -s conftest.$ac_objext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_cv_struct_tm=time.h
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 ac_cv_struct_tm=sys/time.h
6868 rm -f conftest.$ac_objext conftest.$ac_ext
6870 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6871 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6872 if test $ac_cv_struct_tm = sys/time.h; then
6874 cat >>confdefs.h <<\_ACEOF
6875 #define TM_IN_SYS_TIME 1
6882 for ac_func in vprintf
6884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6885 echo "$as_me:$LINENO: checking for $ac_func" >&5
6886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6887 if eval "test \"\${$as_ac_var+set}\" = set"; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 /* System header to define __stub macros and hopefully few prototypes,
6898 which can conflict with char $ac_func (); below.
6899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6900 <limits.h> exists even on freestanding compilers. */
6902 # include <limits.h>
6904 # include <assert.h>
6906 /* Override any gcc2 internal prototype to avoid an error. */
6911 /* We use char because int might match the return type of a gcc2
6912 builtin and then its argument prototype would still apply. */
6914 /* The GNU C library defines this for functions which it implements
6915 to always fail with ENOSYS. Some functions are actually named
6916 something starting with __ and the normal name is an alias. */
6917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6920 char (*f) () = $ac_func;
6929 return f != $ac_func;
6934 rm -f conftest.$ac_objext conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -s conftest$ac_exeext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 eval "$as_ac_var=yes"
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 eval "$as_ac_var=no"
6953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6957 if test `eval echo '${'$as_ac_var'}'` = yes; then
6958 cat >>confdefs.h <<_ACEOF
6959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6962 echo "$as_me:$LINENO: checking for _doprnt" >&5
6963 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6964 if test "${ac_cv_func__doprnt+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >conftest.$ac_ext <<_ACEOF
6968 #line $LINENO "configure"
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 /* System header to define __stub macros and hopefully few prototypes,
6975 which can conflict with char _doprnt (); below.
6976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6977 <limits.h> exists even on freestanding compilers. */
6979 # include <limits.h>
6981 # include <assert.h>
6983 /* Override any gcc2 internal prototype to avoid an error. */
6988 /* We use char because int might match the return type of a gcc2
6989 builtin and then its argument prototype would still apply. */
6991 /* The GNU C library defines this for functions which it implements
6992 to always fail with ENOSYS. Some functions are actually named
6993 something starting with __ and the normal name is an alias. */
6994 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6997 char (*f) () = _doprnt;
7006 return f != _doprnt;
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -s conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_func__doprnt=yes
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 ac_cv_func__doprnt=no
7030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7032 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7033 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7034 if test $ac_cv_func__doprnt = yes; then
7036 cat >>confdefs.h <<\_ACEOF
7037 #define HAVE_DOPRNT 1
7053 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7056 echo "$as_me:$LINENO: checking for $ac_func" >&5
7057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7058 if eval "test \"\${$as_ac_var+set}\" = set"; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 cat >conftest.$ac_ext <<_ACEOF
7062 #line $LINENO "configure"
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 /* System header to define __stub macros and hopefully few prototypes,
7069 which can conflict with char $ac_func (); below.
7070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071 <limits.h> exists even on freestanding compilers. */
7073 # include <limits.h>
7075 # include <assert.h>
7077 /* Override any gcc2 internal prototype to avoid an error. */
7082 /* We use char because int might match the return type of a gcc2
7083 builtin and then its argument prototype would still apply. */
7085 /* The GNU C library defines this for functions which it implements
7086 to always fail with ENOSYS. Some functions are actually named
7087 something starting with __ and the normal name is an alias. */
7088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 char (*f) () = $ac_func;
7100 return f != $ac_func;
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107 (eval $ac_link) 2>&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } &&
7111 { ac_try='test -s conftest$ac_exeext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 eval "$as_ac_var=yes"
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 eval "$as_ac_var=no"
7124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7128 if test `eval echo '${'$as_ac_var'}'` = yes; then
7129 cat >>confdefs.h <<_ACEOF
7130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7136 echo "$as_me:$LINENO: checking for basename" >&5
7137 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7138 if test "${ac_cv_func_basename+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 cat >conftest.$ac_ext <<_ACEOF
7142 #line $LINENO "configure"
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 /* System header to define __stub macros and hopefully few prototypes,
7149 which can conflict with char basename (); below.
7150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7151 <limits.h> exists even on freestanding compilers. */
7153 # include <limits.h>
7155 # include <assert.h>
7157 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7165 /* The GNU C library defines this for functions which it implements
7166 to always fail with ENOSYS. Some functions are actually named
7167 something starting with __ and the normal name is an alias. */
7168 #if defined (__stub_basename) || defined (__stub___basename)
7171 char (*f) () = basename;
7180 return f != basename;
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187 (eval $ac_link) 2>&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -s conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_cv_func_basename=yes
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_func_basename=no
7204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7206 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7207 echo "${ECHO_T}$ac_cv_func_basename" >&6
7209 echo "$as_me:$LINENO: checking for setjmp" >&5
7210 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7211 if test "${ac_cv_func_setjmp+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 /* System header to define __stub macros and hopefully few prototypes,
7222 which can conflict with char setjmp (); below.
7223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224 <limits.h> exists even on freestanding compilers. */
7226 # include <limits.h>
7228 # include <assert.h>
7230 /* Override any gcc2 internal prototype to avoid an error. */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7238 /* The GNU C library defines this for functions which it implements
7239 to always fail with ENOSYS. Some functions are actually named
7240 something starting with __ and the normal name is an alias. */
7241 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7244 char (*f) () = setjmp;
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260 (eval $ac_link) 2>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -s conftest$ac_exeext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_func_setjmp=yes
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7275 ac_cv_func_setjmp=no
7277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7279 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7280 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7282 echo "$as_me:$LINENO: checking for setpriority" >&5
7283 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7284 if test "${ac_cv_func_setpriority+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 cat >conftest.$ac_ext <<_ACEOF
7288 #line $LINENO "configure"
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7294 /* System header to define __stub macros and hopefully few prototypes,
7295 which can conflict with char setpriority (); below.
7296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7297 <limits.h> exists even on freestanding compilers. */
7299 # include <limits.h>
7301 # include <assert.h>
7303 /* Override any gcc2 internal prototype to avoid an error. */
7308 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */
7310 char setpriority ();
7311 /* The GNU C library defines this for functions which it implements
7312 to always fail with ENOSYS. Some functions are actually named
7313 something starting with __ and the normal name is an alias. */
7314 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7317 char (*f) () = setpriority;
7326 return f != setpriority;
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333 (eval $ac_link) 2>&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_func_setpriority=yes
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_cv_func_setpriority=no
7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7352 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7353 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7355 echo "$as_me:$LINENO: checking for time" >&5
7356 echo $ECHO_N "checking for time... $ECHO_C" >&6
7357 if test "${ac_cv_func_time+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 cat >conftest.$ac_ext <<_ACEOF
7361 #line $LINENO "configure"
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 /* System header to define __stub macros and hopefully few prototypes,
7368 which can conflict with char time (); below.
7369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7370 <limits.h> exists even on freestanding compilers. */
7372 # include <limits.h>
7374 # include <assert.h>
7376 /* Override any gcc2 internal prototype to avoid an error. */
7381 /* We use char because int might match the return type of a gcc2
7382 builtin and then its argument prototype would still apply. */
7384 /* The GNU C library defines this for functions which it implements
7385 to always fail with ENOSYS. Some functions are actually named
7386 something starting with __ and the normal name is an alias. */
7387 #if defined (__stub_time) || defined (__stub___time)
7390 char (*f) () = time;
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7425 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7426 echo "${ECHO_T}$ac_cv_func_time" >&6
7428 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7429 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7430 if test "${ac_cv_func_gettimeofday+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 cat >conftest.$ac_ext <<_ACEOF
7434 #line $LINENO "configure"
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 /* System header to define __stub macros and hopefully few prototypes,
7441 which can conflict with char gettimeofday (); below.
7442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7443 <limits.h> exists even on freestanding compilers. */
7445 # include <limits.h>
7447 # include <assert.h>
7449 /* Override any gcc2 internal prototype to avoid an error. */
7454 /* We use char because int might match the return type of a gcc2
7455 builtin and then its argument prototype would still apply. */
7456 char gettimeofday ();
7457 /* The GNU C library defines this for functions which it implements
7458 to always fail with ENOSYS. Some functions are actually named
7459 something starting with __ and the normal name is an alias. */
7460 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7463 char (*f) () = gettimeofday;
7472 return f != gettimeofday;
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try='test -s conftest$ac_exeext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 ac_cv_func_gettimeofday=yes
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 ac_cv_func_gettimeofday=no
7496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7499 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7501 echo "$as_me:$LINENO: checking for getopt" >&5
7502 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7503 if test "${ac_cv_func_getopt+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 cat >conftest.$ac_ext <<_ACEOF
7507 #line $LINENO "configure"
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 /* System header to define __stub macros and hopefully few prototypes,
7514 which can conflict with char getopt (); below.
7515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7516 <limits.h> exists even on freestanding compilers. */
7518 # include <limits.h>
7520 # include <assert.h>
7522 /* Override any gcc2 internal prototype to avoid an error. */
7527 /* We use char because int might match the return type of a gcc2
7528 builtin and then its argument prototype would still apply. */
7530 /* The GNU C library defines this for functions which it implements
7531 to always fail with ENOSYS. Some functions are actually named
7532 something starting with __ and the normal name is an alias. */
7533 #if defined (__stub_getopt) || defined (__stub___getopt)
7536 char (*f) () = getopt;
7550 rm -f conftest.$ac_objext conftest$ac_exeext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552 (eval $ac_link) 2>&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } &&
7556 { ac_try='test -s conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_func_getopt=yes
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7567 ac_cv_func_getopt=no
7569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7571 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7572 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7573 if test $ac_cv_func_getopt = yes; then
7580 if test "${OSTYPE}" = "cygwin" ; then
7583 echo "$as_me:$LINENO: checking for getopt_long" >&5
7584 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7585 if test "${ac_cv_func_getopt_long+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 cat >conftest.$ac_ext <<_ACEOF
7589 #line $LINENO "configure"
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 /* System header to define __stub macros and hopefully few prototypes,
7596 which can conflict with char getopt_long (); below.
7597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7598 <limits.h> exists even on freestanding compilers. */
7600 # include <limits.h>
7602 # include <assert.h>
7604 /* Override any gcc2 internal prototype to avoid an error. */
7609 /* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */
7611 char getopt_long ();
7612 /* The GNU C library defines this for functions which it implements
7613 to always fail with ENOSYS. Some functions are actually named
7614 something starting with __ and the normal name is an alias. */
7615 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7618 char (*f) () = getopt_long;
7627 return f != getopt_long;
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try='test -s conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_cv_func_getopt_long=yes
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 ac_cv_func_getopt_long=no
7651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7653 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7654 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7655 if test $ac_cv_func_getopt_long = yes; then
7663 if test "${getopt_long}" = "false" ; then
7664 my_includes="$my_includes -I../getopt"
7666 cat >>confdefs.h <<\_ACEOF
7667 #define HAVE_GETOPT_LONG 1
7670 ctlibs_base="$ctlibs_base -lgetopt"
7671 LDFLAGS="$LDFLAGS -L../getopt"
7675 INCLUDED_GETOPT_LONG_TRUE=
7676 INCLUDED_GETOPT_LONG_FALSE='#'
7678 INCLUDED_GETOPT_LONG_TRUE='#'
7679 INCLUDED_GETOPT_LONG_FALSE=
7683 if test "${readline}" = "true" ; then
7684 ctlibs_base="$ctlibs_base -lreadline"
7685 if test "${ncurses}" = "true"; then
7686 ctlibs_base="$ctlibs_base -lncurses"
7687 elif test "${curses}" = "true"; then
7688 ctlibs_base="$ctlibs_base -lcurses"
7692 echo "$as_me:$LINENO: checking debug" >&5
7693 echo $ECHO_N "checking debug... $ECHO_C" >&6
7694 # Check whether --enable-debug or --disable-debug was given.
7695 if test "${enable_debug+set}" = set; then
7696 enableval="$enable_debug"
7697 case "${enableval}" in
7699 echo "$as_me:$LINENO: result: yes" >&5
7700 echo "${ECHO_T}yes" >&6
7703 echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7706 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7707 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7711 debug=false; echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6
7716 if test "$debug" = "true"; then
7724 if test "$datadir" != "" ; then
7725 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7728 if test "$debug" = "true" ; then
7729 CFLAGS="$CFLAGS -g -DDEBUG"
7731 cat >>confdefs.h <<\_ACEOF
7736 CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
7738 cat >>confdefs.h <<\_ACEOF
7744 if test "${pthread}" = "true" ; then
7746 cat >>confdefs.h <<\_ACEOF
7747 #define HAVE_WXTHREADS 1
7752 echo "$as_me:$LINENO: checking sstream" >&5
7753 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7754 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7755 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
7756 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_SSTREAM 1
7762 echo "$as_me:$LINENO: result: yes" >&5
7763 echo "${ECHO_T}yes" >&6
7765 echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6
7770 CFLAGS="$CFLAGS -Wall"
7771 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7772 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7773 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7774 if test "${enable_verbose_warnings+set}" = set; then
7775 enableval="$enable_verbose_warnings"
7776 case "$enableval" in
7778 echo "$as_me:$LINENO: result: yes" >&5
7779 echo "${ECHO_T}yes" >&6
7780 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7783 echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6
7788 echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6
7793 echo "$as_me:$LINENO: checking static executables" >&5
7794 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7795 # Check whether --enable-static or --disable-static was given.
7796 if test "${enable_static+set}" = set; then
7797 enableval="$enable_static"
7798 case "$enableval" in
7800 echo "$as_me:$LINENO: result: yes" >&5
7801 echo "${ECHO_T}yes" >&6
7802 CFLAGS="$CFLAGS --static"
7805 echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6
7810 echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6
7816 # Check whether --with-lam or --without-lam was given.
7817 if test "${with_lam+set}" = set; then
7819 if test "$withval" != "no" ; then
7825 if test "$withval" != "no" ; then
7826 if test "$prefix" != "NONE" ; then
7827 trylamdir="$trylamdir $prefix"
7830 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7831 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7832 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7833 if test -x "$testlamdir/bin/hcp" ; then
7834 if test "$testlamdir" != "/usr"; then
7835 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7836 CFLAGS="$CFLAGS -I$testlamdir/include"
7838 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7839 lamdir="$testlamdir"
7846 echo "$as_me:$LINENO: result: $lamdir" >&5
7847 echo "${ECHO_T}$lamdir" >&6
7849 echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6
7855 # Check whether --with-ctn or --without-ctn was given.
7856 if test "${with_ctn+set}" = set; then
7858 if test "$withval" != "no" ; then
7864 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7865 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7866 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7867 echo "$as_me:$LINENO: result: disabled" >&5
7868 echo "${ECHO_T}disabled" >&6
7870 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7871 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7872 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7873 if test -f "$testctndir/libctn.a" ; then
7874 LDFLAGS="$LDFLAGS -L$testctndir"
7879 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7880 if test -f "$testctndir/ctn_os.h" ; then
7881 CFLAGS="$CFLAGS -I$testctndir"
7886 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7889 cat >>confdefs.h <<\_ACEOF
7890 #define HAVE_CTN_DICOM 1
7893 echo "$as_me:$LINENO: result: yes" >&5
7894 echo "${ECHO_T}yes" >&6
7896 echo "$as_me:$LINENO: result: no" >&5
7897 echo "${ECHO_T}no" >&6
7901 echo "$as_me:$LINENO: checking for web access" >&5
7902 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7904 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7905 if test "${with_cgibin_dir+set}" = set; then
7906 withval="$with_cgibin_dir"
7907 cgibindir=$withval ;
7911 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7912 if test "${with_cgibin_url+set}" = set; then
7913 withval="$with_cgibin_url"
7914 cgibinurl=$withval ;
7918 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7919 if test "${with_webdata_dir+set}" = set; then
7920 withval="$with_webdata_dir"
7921 webdatadir=$withval ;
7925 # Check whether --with-webdata-url or --without-webdata-url was given.
7926 if test "${with_webdata_url+set}" = set; then
7927 withval="$with_webdata_url"
7928 webdataurl=$withval ;
7932 # Check whether --with-html-dir or --without-html-dir was given.
7933 if test "${with_html_dir+set}" = set; then
7934 withval="$with_html_dir"
7938 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7939 cgiprograms="ctsim.cgi ctsim.conf"
7943 if test -n "$htmldir" ; then
7944 htmldata=simulate.html
7949 if test -n "$htmldir"; then
7957 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7960 echo "$as_me:$LINENO: result: yes" >&5
7961 echo "${ECHO_T}yes" >&6
7962 if test -z "$cgibindir" ; then
7963 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7964 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7965 { (exit 1); exit 1; }; }
7966 elif test -z "$cgibinurl" ; then
7967 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7968 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7969 { (exit 1); exit 1; }; }
7970 elif test -z "$webdatadir" ; then
7971 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7972 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7973 { (exit 1); exit 1; }; }
7974 elif test -z "$webdataurl" ; then
7975 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7976 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7977 { (exit 1); exit 1; }; }
7978 elif test -z "$htmldir" ; then
7979 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7980 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7981 { (exit 1); exit 1; }; }
7984 echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7990 if test -n "$lamdir"; then
7999 echo "$as_me:$LINENO: checking for X" >&5
8000 echo $ECHO_N "checking for X... $ECHO_C" >&6
8003 # Check whether --with-x or --without-x was given.
8004 if test "${with_x+set}" = set; then
8008 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8009 if test "x$with_x" = xno; then
8010 # The user explicitly disabled X.
8013 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8014 # Both variables are already set.
8017 if test "${ac_cv_have_x+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 # One or both of the vars are not set, and there is no cached value.
8021 ac_x_includes=no ac_x_libraries=no
8023 if mkdir conftest.dir; then
8025 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8026 cat >Imakefile <<'_ACEOF'
8028 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8030 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8032 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8033 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8034 for ac_extension in a so sl; do
8035 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8036 test -f $ac_im_libdir/libX11.$ac_extension; then
8037 ac_im_usrlibdir=$ac_im_libdir; break
8040 # Screen out bogus values from the imake configuration. They are
8041 # bogus both because they are the default anyway, and because
8042 # using them would break gcc on systems where it needs fixed includes.
8043 case $ac_im_incroot in
8045 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8047 case $ac_im_usrlibdir in
8049 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8056 # Standard set of common directories for X headers.
8057 # Check X11 before X11Rn because it is often a symlink to the current release.
8069 /usr/local/X11/include
8070 /usr/local/X11R6/include
8071 /usr/local/X11R5/include
8072 /usr/local/X11R4/include
8074 /usr/local/include/X11
8075 /usr/local/include/X11R6
8076 /usr/local/include/X11R5
8077 /usr/local/include/X11R4
8081 /usr/XFree86/include/X11
8085 /usr/unsupported/include
8087 /usr/local/x11r5/include
8088 /usr/lpp/Xamples/include
8090 /usr/openwin/include
8091 /usr/openwin/share/include'
8093 if test "$ac_x_includes" = no; then
8094 # Guess where to find include files, by looking for Intrinsic.h.
8095 # First, try using that file with no special directory specified.
8096 cat >conftest.$ac_ext <<_ACEOF
8097 #line $LINENO "configure"
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <X11/Intrinsic.h>
8105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108 grep -v '^ *+' conftest.er1 >conftest.err
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } >/dev/null; then
8113 if test -s conftest.err; then
8114 ac_cpp_err=$ac_c_preproc_warn_flag
8121 if test -z "$ac_cpp_err"; then
8122 # We can compile using X headers with no special include directory.
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 for ac_dir in $ac_x_header_dirs; do
8129 if test -r "$ac_dir/X11/Intrinsic.h"; then
8130 ac_x_includes=$ac_dir
8135 rm -f conftest.err conftest.$ac_ext
8136 fi # $ac_x_includes = no
8138 if test "$ac_x_libraries" = no; then
8139 # Check for the libraries.
8140 # See if we find them without any special options.
8141 # Don't add to $LIBS permanently.
8144 cat >conftest.$ac_ext <<_ACEOF
8145 #line $LINENO "configure"
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #include <X11/Intrinsic.h>
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -s conftest$ac_exeext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8173 # We can link X programs with no special library path.
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8180 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8182 # Don't even attempt the hair of trying to link an X program!
8183 for ac_extension in a so sl; do
8184 if test -r $ac_dir/libXt.$ac_extension; then
8185 ac_x_libraries=$ac_dir
8191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8192 fi # $ac_x_libraries = no
8194 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8195 # Didn't find X anywhere. Cache the known absence of X.
8196 ac_cv_have_x="have_x=no"
8198 # Record where we found X for the cache.
8199 ac_cv_have_x="have_x=yes \
8200 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8205 eval "$ac_cv_have_x"
8208 if test "$have_x" != yes; then
8209 echo "$as_me:$LINENO: result: $have_x" >&5
8210 echo "${ECHO_T}$have_x" >&6
8213 # If each of the values was on the command line, it overrides each guess.
8214 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8215 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8216 # Update the cache value to reflect the command line values.
8217 ac_cv_have_x="have_x=yes \
8218 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8219 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8220 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8223 if test "$no_x" = yes; then
8224 # Not all programs may use this symbol, but it does not hurt to define it.
8226 cat >>confdefs.h <<\_ACEOF
8227 #define X_DISPLAY_MISSING 1
8230 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8232 if test -n "$x_includes"; then
8233 X_CFLAGS="$X_CFLAGS -I$x_includes"
8236 # It would also be nice to do this for all -L options, not just this one.
8237 if test -n "$x_libraries"; then
8238 X_LIBS="$X_LIBS -L$x_libraries"
8239 # For Solaris; some versions of Sun CC require a space after -R and
8240 # others require no space. Words are not sufficient . . . .
8241 case `(uname -sr) 2>/dev/null` in
8243 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8244 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8245 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8246 cat >conftest.$ac_ext <<_ACEOF
8247 #line $LINENO "configure"
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8282 if test $ac_R_nospace = yes; then
8283 echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6
8285 X_LIBS="$X_LIBS -R$x_libraries"
8287 LIBS="$ac_xsave_LIBS -R $x_libraries"
8288 cat >conftest.$ac_ext <<_ACEOF
8289 #line $LINENO "configure"
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8324 if test $ac_R_space = yes; then
8325 echo "$as_me:$LINENO: result: yes" >&5
8326 echo "${ECHO_T}yes" >&6
8327 X_LIBS="$X_LIBS -R $x_libraries"
8329 echo "$as_me:$LINENO: result: neither works" >&5
8330 echo "${ECHO_T}neither works" >&6
8337 # Check for system-dependent libraries X programs must link with.
8338 # Do this before checking for the system-independent R6 libraries
8339 # (-lICE), since we may need -lsocket or whatever for X linking.
8341 if test "$ISC" = yes; then
8342 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8344 # Martyn Johnson says this is needed for Ultrix, if the X
8345 # libraries were built with DECnet support. And Karl Berry says
8346 # the Alpha needs dnet_stub (dnet does not exist).
8347 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8348 cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8356 /* Override any gcc2 internal prototype to avoid an error. */
8360 /* We use char because int might match the return type of a gcc2
8361 builtin and then its argument prototype would still apply. */
8362 char XOpenDisplay ();
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -s conftest$ac_exeext'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8389 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8390 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 ac_check_lib_save_LIBS=$LIBS
8395 cat >conftest.$ac_ext <<_ACEOF
8396 #line $LINENO "configure"
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8403 /* Override any gcc2 internal prototype to avoid an error. */
8407 /* We use char because int might match the return type of a gcc2
8408 builtin and then its argument prototype would still apply. */
8418 rm -f conftest.$ac_objext conftest$ac_exeext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8420 (eval $ac_link) 2>&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_lib_dnet_dnet_ntoa=yes
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_cv_lib_dnet_dnet_ntoa=no
8437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8438 LIBS=$ac_check_lib_save_LIBS
8440 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8441 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8442 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8443 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8446 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8447 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8448 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8449 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 ac_check_lib_save_LIBS=$LIBS
8453 LIBS="-ldnet_stub $LIBS"
8454 cat >conftest.$ac_ext <<_ACEOF
8455 #line $LINENO "configure"
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8462 /* Override any gcc2 internal prototype to avoid an error. */
8466 /* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -s conftest$ac_exeext'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 ac_cv_lib_dnet_stub_dnet_ntoa=no
8496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8499 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8500 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8501 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8502 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508 LIBS="$ac_xsave_LIBS"
8510 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8511 # to get the SysV transport functions.
8512 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8514 # The nsl library prevents programs from opening the X display
8515 # on Irix 5.2, according to T.E. Dickey.
8516 # The functions gethostbyname, getservbyname, and inet_addr are
8517 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8518 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8519 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8520 if test "${ac_cv_func_gethostbyname+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8524 #line $LINENO "configure"
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8530 /* System header to define __stub macros and hopefully few prototypes,
8531 which can conflict with char gethostbyname (); below.
8532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8533 <limits.h> exists even on freestanding compilers. */
8535 # include <limits.h>
8537 # include <assert.h>
8539 /* Override any gcc2 internal prototype to avoid an error. */
8544 /* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8546 char gethostbyname ();
8547 /* The GNU C library defines this for functions which it implements
8548 to always fail with ENOSYS. Some functions are actually named
8549 something starting with __ and the normal name is an alias. */
8550 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8553 char (*f) () = gethostbyname;
8562 return f != gethostbyname;
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8569 (eval $ac_link) 2>&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -s conftest$ac_exeext'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 ac_cv_func_gethostbyname=yes
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8584 ac_cv_func_gethostbyname=no
8586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8588 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8589 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8591 if test $ac_cv_func_gethostbyname = no; then
8592 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8593 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8594 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 ac_check_lib_save_LIBS=$LIBS
8599 cat >conftest.$ac_ext <<_ACEOF
8600 #line $LINENO "configure"
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8607 /* Override any gcc2 internal prototype to avoid an error. */
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8613 char gethostbyname ();
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624 (eval $ac_link) 2>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -s conftest$ac_exeext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_cv_lib_nsl_gethostbyname=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 ac_cv_lib_nsl_gethostbyname=no
8641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8644 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8645 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8646 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8650 if test $ac_cv_lib_nsl_gethostbyname = no; then
8651 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8652 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8653 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 ac_check_lib_save_LIBS=$LIBS
8658 cat >conftest.$ac_ext <<_ACEOF
8659 #line $LINENO "configure"
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8666 /* Override any gcc2 internal prototype to avoid an error. */
8670 /* We use char because int might match the return type of a gcc2
8671 builtin and then its argument prototype would still apply. */
8672 char gethostbyname ();
8681 rm -f conftest.$ac_objext conftest$ac_exeext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683 (eval $ac_link) 2>&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -s conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_lib_bsd_gethostbyname=yes
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 ac_cv_lib_bsd_gethostbyname=no
8700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8703 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8704 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8705 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8712 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8713 # socket/setsockopt and other routines are undefined under SCO ODT
8714 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8715 # on later versions), says Simon Leinen: it contains gethostby*
8716 # variants that don't use the name server (or something). -lsocket
8717 # must be given before -lnsl if both are needed. We assume that
8718 # if connect needs -lnsl, so does gethostbyname.
8719 echo "$as_me:$LINENO: checking for connect" >&5
8720 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8721 if test "${ac_cv_func_connect+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 /* System header to define __stub macros and hopefully few prototypes,
8732 which can conflict with char connect (); below.
8733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8734 <limits.h> exists even on freestanding compilers. */
8736 # include <limits.h>
8738 # include <assert.h>
8740 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8748 /* The GNU C library defines this for functions which it implements
8749 to always fail with ENOSYS. Some functions are actually named
8750 something starting with __ and the normal name is an alias. */
8751 #if defined (__stub_connect) || defined (__stub___connect)
8754 char (*f) () = connect;
8763 return f != connect;
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_func_connect=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_func_connect=no
8787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8789 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8790 echo "${ECHO_T}$ac_cv_func_connect" >&6
8792 if test $ac_cv_func_connect = no; then
8793 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8794 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8795 if test "${ac_cv_lib_socket_connect+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 ac_check_lib_save_LIBS=$LIBS
8799 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8800 cat >conftest.$ac_ext <<_ACEOF
8801 #line $LINENO "configure"
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 /* Override any gcc2 internal prototype to avoid an error. */
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -s conftest$ac_exeext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 ac_cv_lib_socket_connect=yes
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_cv_lib_socket_connect=no
8842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8843 LIBS=$ac_check_lib_save_LIBS
8845 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8846 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8847 if test $ac_cv_lib_socket_connect = yes; then
8848 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8853 # Guillermo Gomez says -lposix is necessary on A/UX.
8854 echo "$as_me:$LINENO: checking for remove" >&5
8855 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8856 if test "${ac_cv_func_remove+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 cat >conftest.$ac_ext <<_ACEOF
8860 #line $LINENO "configure"
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8866 /* System header to define __stub macros and hopefully few prototypes,
8867 which can conflict with char remove (); below.
8868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8869 <limits.h> exists even on freestanding compilers. */
8871 # include <limits.h>
8873 # include <assert.h>
8875 /* Override any gcc2 internal prototype to avoid an error. */
8880 /* We use char because int might match the return type of a gcc2
8881 builtin and then its argument prototype would still apply. */
8883 /* The GNU C library defines this for functions which it implements
8884 to always fail with ENOSYS. Some functions are actually named
8885 something starting with __ and the normal name is an alias. */
8886 #if defined (__stub_remove) || defined (__stub___remove)
8889 char (*f) () = remove;
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_func_remove=yes
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 ac_cv_func_remove=no
8922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8924 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8925 echo "${ECHO_T}$ac_cv_func_remove" >&6
8927 if test $ac_cv_func_remove = no; then
8928 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8929 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8930 if test "${ac_cv_lib_posix_remove+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 ac_check_lib_save_LIBS=$LIBS
8934 LIBS="-lposix $LIBS"
8935 cat >conftest.$ac_ext <<_ACEOF
8936 #line $LINENO "configure"
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8943 /* Override any gcc2 internal prototype to avoid an error. */
8947 /* We use char because int might match the return type of a gcc2
8948 builtin and then its argument prototype would still apply. */
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8960 (eval $ac_link) 2>&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
8964 { ac_try='test -s conftest$ac_exeext'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 ac_cv_lib_posix_remove=yes
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_cv_lib_posix_remove=no
8977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8980 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8981 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8982 if test $ac_cv_lib_posix_remove = yes; then
8983 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8988 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8989 echo "$as_me:$LINENO: checking for shmat" >&5
8990 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8991 if test "${ac_cv_func_shmat+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 cat >conftest.$ac_ext <<_ACEOF
8995 #line $LINENO "configure"
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 /* System header to define __stub macros and hopefully few prototypes,
9002 which can conflict with char shmat (); below.
9003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9004 <limits.h> exists even on freestanding compilers. */
9006 # include <limits.h>
9008 # include <assert.h>
9010 /* Override any gcc2 internal prototype to avoid an error. */
9015 /* We use char because int might match the return type of a gcc2
9016 builtin and then its argument prototype would still apply. */
9018 /* The GNU C library defines this for functions which it implements
9019 to always fail with ENOSYS. Some functions are actually named
9020 something starting with __ and the normal name is an alias. */
9021 #if defined (__stub_shmat) || defined (__stub___shmat)
9024 char (*f) () = shmat;
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
9044 { ac_try='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_cv_func_shmat=yes
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9059 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9060 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9062 if test $ac_cv_func_shmat = no; then
9063 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9064 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9065 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 ac_check_lib_save_LIBS=$LIBS
9070 cat >conftest.$ac_ext <<_ACEOF
9071 #line $LINENO "configure"
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9078 /* Override any gcc2 internal prototype to avoid an error. */
9082 /* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095 (eval $ac_link) 2>&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -s conftest$ac_exeext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 ac_cv_lib_ipc_shmat=yes
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 ac_cv_lib_ipc_shmat=no
9112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9113 LIBS=$ac_check_lib_save_LIBS
9115 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9116 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9117 if test $ac_cv_lib_ipc_shmat = yes; then
9118 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9124 # Check for libraries that X11R6 Xt/Xaw programs need.
9125 ac_save_LDFLAGS=$LDFLAGS
9126 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9127 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9128 # check for ICE first), but we must link in the order -lSM -lICE or
9129 # we get undefined symbols. So assume we have SM if we have ICE.
9130 # These have to be linked with before -lX11, unlike the other
9131 # libraries we check for below, so use a different variable.
9132 # John Interrante, Karl Berry
9133 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9134 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9135 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 ac_check_lib_save_LIBS=$LIBS
9139 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9140 cat >conftest.$ac_ext <<_ACEOF
9141 #line $LINENO "configure"
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9148 /* Override any gcc2 internal prototype to avoid an error. */
9152 /* We use char because int might match the return type of a gcc2
9153 builtin and then its argument prototype would still apply. */
9154 char IceConnectionNumber ();
9158 IceConnectionNumber ();
9163 rm -f conftest.$ac_objext conftest$ac_exeext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -s conftest$ac_exeext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_cv_lib_ICE_IceConnectionNumber=yes
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9180 ac_cv_lib_ICE_IceConnectionNumber=no
9182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_check_lib_save_LIBS
9185 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9186 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9187 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9188 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9191 LDFLAGS=$ac_save_LDFLAGS
9202 X_TOOLKIT_LIBS="-lXt"
9203 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9205 our_saved_LDFLAGS="$LDFLAGS"
9206 LDFLAGS="$X_LIBS $LDFLAGS"
9207 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9208 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9209 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 ac_check_lib_save_LIBS=$LIBS
9213 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9214 cat >conftest.$ac_ext <<_ACEOF
9215 #line $LINENO "configure"
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9222 /* Override any gcc2 internal prototype to avoid an error. */
9226 /* We use char because int might match the return type of a gcc2
9227 builtin and then its argument prototype would still apply. */
9228 char XtToolkitThreadInitialize ();
9232 XtToolkitThreadInitialize ();
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239 (eval $ac_link) 2>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9259 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9260 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9261 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9263 cat >>confdefs.h <<\_ACEOF
9264 #define X_THREAD_SUPPORT 1
9269 LDFLAGS="$our_saved_LDFLAGS"
9273 if test "x$no_x" = "xyes"; then
9281 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9284 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9286 echo "$as_me:$LINENO: checking for X" >&5
9287 echo $ECHO_N "checking for X... $ECHO_C" >&6
9288 if test "$no_x" != "yes" ; then
9290 cat >>confdefs.h <<\_ACEOF
9294 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9295 my_includes="$my_includes -I/usr/X11R6/include"
9296 ctlib_graphics="$ctlibs_base -lctgraphics"
9297 echo "$as_me:$LINENO: result: yes" >&5
9298 echo "${ECHO_T}yes" >&6
9299 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9300 if test "$libgl" = "true" ; then
9301 # Removed "-lglut" for Mac OS X compilation
9302 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9303 if test "$wxwin" = "true" ; then
9305 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9306 elif "$wx_mac" ; then
9307 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9311 if test "$wxwin" = "true" ; then
9313 cat >>confdefs.h <<\_ACEOF
9328 echo "$as_me:$LINENO: result: no" >&5
9329 echo "${ECHO_T}no" >&6
9332 if test "$png" = "true" ; then
9333 ctlibs_tools="$ctlibs_tools -lpng"
9335 if test "$zlib" = "true" ; then
9336 ctlibs_tools="$ctlibs_tools -lz"
9338 if test "$fftw" = "true" ; then
9339 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9341 if test "$ctn" = "true"; then
9342 ctlibs_tools="$ctlibs_tools -lctn"
9345 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9346 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9347 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 ac_check_lib_save_LIBS=$LIBS
9351 LIBS="-ldmallocxx $LIBS"
9352 cat >conftest.$ac_ext <<_ACEOF
9353 #line $LINENO "configure"
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9369 rm -f conftest.$ac_objext conftest$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371 (eval $ac_link) 2>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -s conftest$ac_exeext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_lib_dmallocxx_main=yes
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_cv_lib_dmallocxx_main=no
9388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9391 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9392 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9393 if test $ac_cv_lib_dmallocxx_main = yes; then
9399 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9400 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9401 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9402 if test "${enable_dmalloc+set}" = set; then
9403 enableval="$enable_dmalloc"
9404 case "${enableval}" in
9405 yes) usedmalloc=true
9406 echo "$as_me:$LINENO: result: yes" >&5
9407 echo "${ECHO_T}yes" >&6
9409 no) usedmalloc=false
9410 echo "$as_me:$LINENO: result: no" >&5
9411 echo "${ECHO_T}no" >&6
9413 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9414 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9418 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9419 echo "${ECHO_T}no" >&6
9422 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9423 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_DMALLOC 1
9429 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9430 echo "${ECHO_T}Using dmalloc" >&6
9433 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9434 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9435 if test "${ac_cv_lib_efence_main+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 ac_check_lib_save_LIBS=$LIBS
9439 LIBS="-lefence $LIBS"
9440 cat >conftest.$ac_ext <<_ACEOF
9441 #line $LINENO "configure"
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -s conftest$ac_exeext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 ac_cv_lib_efence_main=yes
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 ac_cv_lib_efence_main=no
9476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9477 LIBS=$ac_check_lib_save_LIBS
9479 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9480 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9481 if test $ac_cv_lib_efence_main = yes; then
9487 echo "$as_me:$LINENO: checking for enable-efence" >&5
9488 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9489 # Check whether --enable-efence or --disable-efence was given.
9490 if test "${enable_efence+set}" = set; then
9491 enableval="$enable_efence"
9492 case "${enableval}" in
9494 echo "$as_me:$LINENO: result: yes" >&5
9495 echo "${ECHO_T}yes" >&6
9498 echo "$as_me:$LINENO: result: no" >&5
9499 echo "${ECHO_T}no" >&6
9501 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9502 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9506 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9507 echo "${ECHO_T}no" >&6
9510 if test "$efence" = "true" -a "$useefence" = "true" ; then
9511 ctlibs_tools="$ctlibs_tools -lefence"
9513 cat >>confdefs.h <<\_ACEOF
9514 #define HAVE_EFENCE 1
9517 echo "$as_me:$LINENO: result: Using efence" >&5
9518 echo "${ECHO_T}Using efence" >&6
9521 if test "$wxwin" = "true" ; then
9522 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
9523 wxcflags=`$wxconfig --cflags`
9524 wxlibs=`$wxconfig --libs`
9526 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9527 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9529 CFLAGS="$CFLAGS -I../include $wxcflags"
9530 ctlib_graphics="$ctlib_graphics $wxlibs"
9534 HAVE_WXWINDOWS_TRUE=
9535 HAVE_WXWINDOWS_FALSE='#'
9537 HAVE_WXWINDOWS_TRUE='#'
9538 HAVE_WXWINDOWS_FALSE=
9544 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9545 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9548 if test -n "$lamdir" ; then
9549 lamprograms="ctsimtext-lam"
9557 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"
9560 cat >confcache <<\_ACEOF
9561 # This file is a shell script that caches the results of configure
9562 # tests run on this system so they can be shared between configure
9563 # scripts and configure runs, see configure's option --config-cache.
9564 # It is not useful on other systems. If it contains results you don't
9565 # want to keep, you may remove or edit it.
9567 # config.status only pays attention to the cache file if you give it
9568 # the --recheck option to rerun configure.
9570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9576 # The following way of writing the cache mishandles newlines in values,
9577 # but we know of no workaround that is simple, portable, and efficient.
9578 # So, don't put newlines in cache variables' values.
9579 # Ultrix sh set writes to stderr and can't be redirected directly,
9580 # and sets the high bit in the cache file unless we assign to the vars.
9583 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9585 # `set' does not quote correctly, so add quotes (double-quote
9586 # substitution turns \\\\ into \\, and sed turns \\ into \).
9589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9592 # `set' quotes correctly as required by POSIX, so do not add quotes.
9594 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9603 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9605 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9606 if test -w $cache_file; then
9607 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9608 cat confcache >$cache_file
9610 echo "not updating unwritable cache $cache_file"
9615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9616 # Let make expand exec_prefix.
9617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9619 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9620 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9621 # trailing colons and then remove the whole line if VPATH becomes empty
9622 # (actually we leave an empty line to preserve line numbers).
9623 if test "x$srcdir" = x.; then
9624 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9625 s/:*\$(srcdir):*/:/;
9626 s/:*\${srcdir}:*/:/;
9628 s/^\([^=]*=[ ]*\):*/\1/;
9634 DEFS=-DHAVE_CONFIG_H
9638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9639 # 1. Remove the extension, and $U if already installed.
9640 ac_i=`echo "$ac_i" |
9641 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9643 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9644 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9648 LTLIBOBJS=$ac_ltlibobjs
9652 : ${CONFIG_STATUS=./config.status}
9653 ac_clean_files_save=$ac_clean_files
9654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9655 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9656 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9657 cat >$CONFIG_STATUS <<_ACEOF
9659 # Generated by $as_me.
9660 # Run this file to recreate the current configuration.
9661 # Compiler output produced by configure, useful for debugging
9662 # configure, is in config.log if it exists.
9667 SHELL=\${CONFIG_SHELL-$SHELL}
9670 cat >>$CONFIG_STATUS <<\_ACEOF
9671 ## --------------------- ##
9672 ## M4sh Initialization. ##
9673 ## --------------------- ##
9675 # Be Bourne compatible
9676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9679 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9680 # is contrary to our usage. Disable this feature.
9681 alias -g '${1+"$@"}'='"$@"'
9682 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9686 # Support unset when possible.
9687 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9694 # Work around bugs in pre-3.0 UWIN ksh.
9695 $as_unset ENV MAIL MAILPATH
9702 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9703 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9704 LC_TELEPHONE LC_TIME
9706 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9707 eval $as_var=C; export $as_var
9713 # Required to use basename.
9714 if expr a : '\(a\)' >/dev/null 2>&1; then
9720 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9721 as_basename=basename
9727 # Name of the executable.
9728 as_me=`$as_basename "$0" ||
9729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9730 X"$0" : 'X\(//\)$' \| \
9731 X"$0" : 'X\(/\)$' \| \
9732 . : '\(.\)' 2>/dev/null ||
9734 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9735 /^X\/\(\/\/\)$/{ s//\1/; q; }
9736 /^X\/\(\/\).*/{ s//\1/; q; }
9740 # PATH needs CR, and LINENO needs CR and PATH.
9741 # Avoid depending upon Character Ranges.
9742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9745 as_cr_digits='0123456789'
9746 as_cr_alnum=$as_cr_Letters$as_cr_digits
9748 # The user is always right.
9749 if test "${PATH_SEPARATOR+set}" != set; then
9750 echo "#! /bin/sh" >conf$$.sh
9751 echo "exit 0" >>conf$$.sh
9753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9764 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9765 test "x$as_lineno_1" != "x$as_lineno_2" &&
9766 test "x$as_lineno_3" = "x$as_lineno_2" || {
9767 # Find who we are. Look in the path if we contain no path at all
9770 *[\\/]* ) as_myself=$0 ;;
9771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 test -z "$as_dir" && as_dir=.
9776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9781 # We did not find ourselves, most probably we were run as `sh COMMAND'
9782 # in which case we are not to be found in the path.
9783 if test "x$as_myself" = x; then
9786 if test ! -f "$as_myself"; then
9787 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9788 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9789 { (exit 1); exit 1; }; }
9791 case $CONFIG_SHELL in
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9797 test -z "$as_dir" && as_dir=.
9798 for as_base in sh bash ksh sh5; do
9801 if ("$as_dir/$as_base" -c '
9804 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9805 test "x$as_lineno_1" != "x$as_lineno_2" &&
9806 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9807 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9808 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9809 CONFIG_SHELL=$as_dir/$as_base
9811 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9820 # uniformly replaced by the line number. The first 'sed' inserts a
9821 # line-number line before each line; the second 'sed' does the real
9822 # work. The second script uses 'N' to pair each line-number line
9823 # with the numbered line, and appends trailing '-' during
9824 # substitution so that $LINENO is not a special case at line end.
9825 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9826 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9827 sed '=' <$as_myself |
9832 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9835 s,^['$as_cr_digits']*\n,,
9837 chmod +x $as_me.lineno ||
9838 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9840 { (exit 1); exit 1; }; }
9842 # Don't try to exec as it changes $[0], causing all sort of problems
9843 # (the dirname of $[0] is not the place where we might find the
9844 # original and so on. Autoconf is especially sensible to this).
9846 # Exit status is that of the last command.
9851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9852 *c*,-n*) ECHO_N= ECHO_C='
9854 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9855 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9858 if expr a : '\(a\)' >/dev/null 2>&1; then
9864 rm -f conf$$ conf$$.exe conf$$.file
9866 if ln -s conf$$.file conf$$ 2>/dev/null; then
9867 # We could just check for DJGPP; but this test a) works b) is more generic
9868 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9869 if test -f conf$$.exe; then
9870 # Don't use ln at all; we don't have any links
9875 elif ln conf$$.file conf$$ 2>/dev/null; then
9880 rm -f conf$$ conf$$.exe conf$$.file
9882 if mkdir -p . 2>/dev/null; then
9888 as_executable_p="test -f"
9890 # Sed expression to map a string onto a valid CPP name.
9891 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9893 # Sed expression to map a string onto a valid variable name.
9894 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9898 # We need space, tab and new line, in precisely that order.
9908 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9909 # report actual input values of CONFIG_FILES etc. instead of their
9910 # values after options handling. Logging --version etc. is OK.
9914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9915 ## Running $as_me. ##
9920 This file was extended by $as_me, which was
9921 generated by GNU Autoconf 2.57. Invocation command line was
9923 CONFIG_FILES = $CONFIG_FILES
9924 CONFIG_HEADERS = $CONFIG_HEADERS
9925 CONFIG_LINKS = $CONFIG_LINKS
9926 CONFIG_COMMANDS = $CONFIG_COMMANDS
9930 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9934 # Files that config.status was made for.
9935 if test -n "$ac_config_files"; then
9936 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9939 if test -n "$ac_config_headers"; then
9940 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9943 if test -n "$ac_config_links"; then
9944 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9947 if test -n "$ac_config_commands"; then
9948 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9951 cat >>$CONFIG_STATUS <<\_ACEOF
9954 \`$as_me' instantiates files from templates according to the
9955 current configuration.
9957 Usage: $0 [OPTIONS] [FILE]...
9959 -h, --help print this help, then exit
9960 -V, --version print version number, then exit
9961 -q, --quiet do not print progress messages
9962 -d, --debug don't remove temporary files
9963 --recheck update $as_me by reconfiguring in the same conditions
9964 --file=FILE[:TEMPLATE]
9965 instantiate the configuration file FILE
9966 --header=FILE[:TEMPLATE]
9967 instantiate the configuration header FILE
9969 Configuration files:
9972 Configuration headers:
9975 Configuration commands:
9978 Report bugs to <bug-autoconf@gnu.org>."
9981 cat >>$CONFIG_STATUS <<_ACEOF
9984 configured by $0, generated by GNU Autoconf 2.57,
9985 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9987 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9988 Free Software Foundation, Inc.
9989 This config.status script is free software; the Free Software Foundation
9990 gives unlimited permission to copy, distribute and modify it."
9995 cat >>$CONFIG_STATUS <<\_ACEOF
9996 # If no file are specified by the user, then we need to provide default
9997 # value. By we need to know if files were specified by the user.
10003 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10004 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10012 *) # This is not an option, so the user has probably given explicit
10015 ac_need_defaults=false;;
10019 # Handling of the options.
10021 cat >>$CONFIG_STATUS <<\_ACEOF
10022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10024 --version | --vers* | -V )
10025 echo "$ac_cs_version"; exit 0 ;;
10027 # Conflict between --help and --header
10028 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10029 Try \`$0 --help' for more information." >&5
10030 echo "$as_me: error: ambiguous option: $1
10031 Try \`$0 --help' for more information." >&2;}
10032 { (exit 1); exit 1; }; };;
10033 --help | --hel | -h )
10034 echo "$ac_cs_usage"; exit 0 ;;
10035 --debug | --d* | -d )
10037 --file | --fil | --fi | --f )
10039 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10040 ac_need_defaults=false;;
10041 --header | --heade | --head | --hea )
10043 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10044 ac_need_defaults=false;;
10045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10049 # This is an error.
10050 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10051 Try \`$0 --help' for more information." >&5
10052 echo "$as_me: error: unrecognized option: $1
10053 Try \`$0 --help' for more information." >&2;}
10054 { (exit 1); exit 1; }; } ;;
10056 *) ac_config_targets="$ac_config_targets $1" ;;
10062 ac_configure_extra_args=
10064 if $ac_cs_silent; then
10066 ac_configure_extra_args="$ac_configure_extra_args --silent"
10070 cat >>$CONFIG_STATUS <<_ACEOF
10071 if \$ac_cs_recheck; then
10072 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10073 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10078 cat >>$CONFIG_STATUS <<_ACEOF
10080 # INIT-COMMANDS section.
10089 cat >>$CONFIG_STATUS <<\_ACEOF
10090 for ac_config_target in $ac_config_targets
10092 case "$ac_config_target" in
10093 # Handling of arguments.
10094 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10095 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10096 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10097 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10098 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10099 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10100 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10101 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10102 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10103 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10104 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10105 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10106 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10107 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10108 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10109 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10110 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10111 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10112 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10113 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10114 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10115 { (exit 1); exit 1; }; };;
10119 # If the user did not use the arguments to specify the items to instantiate,
10120 # then the envvar interface is used. Set only those that are not.
10121 # We use the long form for the default assignment because of an extremely
10122 # bizarre bug on SunOS 4.1.3.
10123 if $ac_need_defaults; then
10124 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10125 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10126 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10129 # Have a temporary directory for convenience. Make it in the build tree
10130 # simply because there is no reason to put it here, and in addition,
10131 # creating and moving files from /tmp can sometimes cause problems.
10132 # Create a temporary directory, and hook for its removal unless debugging.
10135 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10136 trap '{ (exit 1); exit 1; }' 1 2 13 15
10139 # Create a (secure) tmp directory for tmp files.
10142 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10143 test -n "$tmp" && test -d "$tmp"
10146 tmp=./confstat$$-$RANDOM
10147 (umask 077 && mkdir $tmp)
10150 echo "$me: cannot create a temporary directory in ." >&2
10151 { (exit 1); exit 1; }
10156 cat >>$CONFIG_STATUS <<_ACEOF
10159 # CONFIG_FILES section.
10162 # No need to generate the scripts if there are no CONFIG_FILES.
10163 # This happens for instance when ./config.status config.h
10164 if test -n "\$CONFIG_FILES"; then
10165 # Protect against being on the right side of a sed subst in config.status.
10166 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10167 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10168 s,@SHELL@,$SHELL,;t t
10169 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10170 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10171 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10172 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10173 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10174 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10175 s,@exec_prefix@,$exec_prefix,;t t
10176 s,@prefix@,$prefix,;t t
10177 s,@program_transform_name@,$program_transform_name,;t t
10178 s,@bindir@,$bindir,;t t
10179 s,@sbindir@,$sbindir,;t t
10180 s,@libexecdir@,$libexecdir,;t t
10181 s,@datadir@,$datadir,;t t
10182 s,@sysconfdir@,$sysconfdir,;t t
10183 s,@sharedstatedir@,$sharedstatedir,;t t
10184 s,@localstatedir@,$localstatedir,;t t
10185 s,@libdir@,$libdir,;t t
10186 s,@includedir@,$includedir,;t t
10187 s,@oldincludedir@,$oldincludedir,;t t
10188 s,@infodir@,$infodir,;t t
10189 s,@mandir@,$mandir,;t t
10190 s,@build_alias@,$build_alias,;t t
10191 s,@host_alias@,$host_alias,;t t
10192 s,@target_alias@,$target_alias,;t t
10193 s,@DEFS@,$DEFS,;t t
10194 s,@ECHO_C@,$ECHO_C,;t t
10195 s,@ECHO_N@,$ECHO_N,;t t
10196 s,@ECHO_T@,$ECHO_T,;t t
10197 s,@LIBS@,$LIBS,;t t
10198 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10199 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10200 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10201 s,@PACKAGE@,$PACKAGE,;t t
10202 s,@VERSION@,$VERSION,;t t
10203 s,@ACLOCAL@,$ACLOCAL,;t t
10204 s,@AUTOCONF@,$AUTOCONF,;t t
10205 s,@AUTOMAKE@,$AUTOMAKE,;t t
10206 s,@AUTOHEADER@,$AUTOHEADER,;t t
10207 s,@MAKEINFO@,$MAKEINFO,;t t
10208 s,@SET_MAKE@,$SET_MAKE,;t t
10210 s,@RANLIB@,$RANLIB,;t t
10211 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10213 s,@CFLAGS@,$CFLAGS,;t t
10214 s,@LDFLAGS@,$LDFLAGS,;t t
10215 s,@CPPFLAGS@,$CPPFLAGS,;t t
10216 s,@ac_ct_CC@,$ac_ct_CC,;t t
10217 s,@EXEEXT@,$EXEEXT,;t t
10218 s,@OBJEXT@,$OBJEXT,;t t
10220 s,@CXXFLAGS@,$CXXFLAGS,;t t
10221 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10222 s,@wxconfig@,$wxconfig,;t t
10223 s,@build@,$build,;t t
10224 s,@build_cpu@,$build_cpu,;t t
10225 s,@build_vendor@,$build_vendor,;t t
10226 s,@build_os@,$build_os,;t t
10227 s,@host@,$host,;t t
10228 s,@host_cpu@,$host_cpu,;t t
10229 s,@host_vendor@,$host_vendor,;t t
10230 s,@host_os@,$host_os,;t t
10232 s,@EGREP@,$EGREP,;t t
10233 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10234 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10235 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10236 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10237 s,@lamdir@,$lamdir,;t t
10238 s,@mpienable@,$mpienable,;t t
10239 s,@cgibindir@,$cgibindir,;t t
10240 s,@cgibinurl@,$cgibinurl,;t t
10241 s,@webdatadir@,$webdatadir,;t t
10242 s,@webdataurl@,$webdataurl,;t t
10243 s,@htmldir@,$htmldir,;t t
10244 s,@cgiprograms@,$cgiprograms,;t t
10245 s,@htmldata@,$htmldata,;t t
10246 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10247 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10248 s,@webenabled@,$webenabled,;t t
10249 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10250 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10251 s,@X_CFLAGS@,$X_CFLAGS,;t t
10252 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10253 s,@X_LIBS@,$X_LIBS,;t t
10254 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10255 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10256 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10257 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10258 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10259 s,@my_includes@,$my_includes,;t t
10260 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10261 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10262 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10263 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10264 s,@wxcflags@,$wxcflags,;t t
10265 s,@wxlibs@,$wxlibs,;t t
10266 s,@ctlibs@,$ctlibs,;t t
10267 s,@lamprograms@,$lamprograms,;t t
10268 s,@lamdefs@,$lamdefs,;t t
10269 s,@LIBOBJS@,$LIBOBJS,;t t
10270 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10275 cat >>$CONFIG_STATUS <<\_ACEOF
10276 # Split the substitutions into bite-sized pieces for seds with
10277 # small command number limits, like on Digital OSF/1 and HP-UX.
10278 ac_max_sed_lines=48
10279 ac_sed_frag=1 # Number of current file.
10280 ac_beg=1 # First line for current file.
10281 ac_end=$ac_max_sed_lines # Line after last line for current file.
10284 while $ac_more_lines; do
10285 if test $ac_beg -gt 1; then
10286 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10288 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10290 if test ! -s $tmp/subs.frag; then
10291 ac_more_lines=false
10293 # The purpose of the label and of the branching condition is to
10294 # speed up the sed processing (if there are no `@' at all, there
10295 # is no need to browse any of the substitutions).
10296 # These are the two extra sed commands mentioned above.
10298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10299 if test -z "$ac_sed_cmds"; then
10300 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10302 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10304 ac_sed_frag=`expr $ac_sed_frag + 1`
10306 ac_end=`expr $ac_end + $ac_max_sed_lines`
10309 if test -z "$ac_sed_cmds"; then
10312 fi # test -n "$CONFIG_FILES"
10315 cat >>$CONFIG_STATUS <<\_ACEOF
10316 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10317 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10319 - | *:- | *:-:* ) # input from stdin
10321 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10322 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10323 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10324 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10325 * ) ac_file_in=$ac_file.in ;;
10328 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10329 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10331 X"$ac_file" : 'X\(//\)[^/]' \| \
10332 X"$ac_file" : 'X\(//\)$' \| \
10333 X"$ac_file" : 'X\(/\)' \| \
10334 . : '\(.\)' 2>/dev/null ||
10336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10338 /^X\(\/\/\)$/{ s//\1/; q; }
10339 /^X\(\/\).*/{ s//\1/; q; }
10341 { if $as_mkdir_p; then
10346 while test ! -d "$as_dir"; do
10347 as_dirs="$as_dir $as_dirs"
10348 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10350 X"$as_dir" : 'X\(//\)[^/]' \| \
10351 X"$as_dir" : 'X\(//\)$' \| \
10352 X"$as_dir" : 'X\(/\)' \| \
10353 . : '\(.\)' 2>/dev/null ||
10355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10357 /^X\(\/\/\)$/{ s//\1/; q; }
10358 /^X\(\/\).*/{ s//\1/; q; }
10361 test ! -n "$as_dirs" || mkdir $as_dirs
10362 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10363 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10364 { (exit 1); exit 1; }; }; }
10368 if test "$ac_dir" != .; then
10369 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10370 # A "../" for each directory in $ac_dir_suffix.
10371 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10373 ac_dir_suffix= ac_top_builddir=
10377 .) # No --srcdir option. We are building in place.
10379 if test -z "$ac_top_builddir"; then
10382 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10384 [\\/]* | ?:[\\/]* ) # Absolute path.
10385 ac_srcdir=$srcdir$ac_dir_suffix;
10386 ac_top_srcdir=$srcdir ;;
10387 *) # Relative path.
10388 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10389 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10391 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10393 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10394 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10395 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10396 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10400 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10401 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10404 if test x"$ac_file" != x-; then
10405 { echo "$as_me:$LINENO: creating $ac_file" >&5
10406 echo "$as_me: creating $ac_file" >&6;}
10409 # Let's still pretend it is `configure' which instantiates (i.e., don't
10410 # use $as_me), people would be surprised to read:
10411 # /* config.h. Generated by config.status. */
10412 if test x"$ac_file" = x-; then
10415 configure_input="$ac_file. "
10417 configure_input=$configure_input"Generated from `echo $ac_file_in |
10418 sed 's,.*/,,'` by configure."
10420 # First look for the input files in the build tree, otherwise in the
10422 ac_file_inputs=`IFS=:
10423 for f in $ac_file_in; do
10425 -) echo $tmp/stdin ;;
10427 # Absolute (can't be DOS-style, as IFS=:)
10428 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10429 echo "$as_me: error: cannot find input file: $f" >&2;}
10430 { (exit 1); exit 1; }; }
10433 if test -f "$f"; then
10436 elif test -f "$srcdir/$f"; then
10441 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10442 echo "$as_me: error: cannot find input file: $f" >&2;}
10443 { (exit 1); exit 1; }; }
10446 done` || { (exit 1); exit 1; }
10448 cat >>$CONFIG_STATUS <<_ACEOF
10452 cat >>$CONFIG_STATUS <<\_ACEOF
10454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10455 s,@configure_input@,$configure_input,;t t
10456 s,@srcdir@,$ac_srcdir,;t t
10457 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10458 s,@top_srcdir@,$ac_top_srcdir,;t t
10459 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10460 s,@builddir@,$ac_builddir,;t t
10461 s,@abs_builddir@,$ac_abs_builddir,;t t
10462 s,@top_builddir@,$ac_top_builddir,;t t
10463 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10464 s,@INSTALL@,$ac_INSTALL,;t t
10465 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10467 if test x"$ac_file" != x-; then
10468 mv $tmp/out $ac_file
10476 cat >>$CONFIG_STATUS <<\_ACEOF
10479 # CONFIG_HEADER section.
10482 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10483 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10485 # ac_d sets the value in "#define NAME VALUE" lines.
10486 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10487 ac_dB='[ ].*$,\1#\2'
10490 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10491 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10492 ac_uB='$,\1#\2define\3'
10496 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10497 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10499 - | *:- | *:-:* ) # input from stdin
10501 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10502 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10503 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10504 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10505 * ) ac_file_in=$ac_file.in ;;
10508 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10509 echo "$as_me: creating $ac_file" >&6;}
10511 # First look for the input files in the build tree, otherwise in the
10513 ac_file_inputs=`IFS=:
10514 for f in $ac_file_in; do
10516 -) echo $tmp/stdin ;;
10518 # Absolute (can't be DOS-style, as IFS=:)
10519 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10520 echo "$as_me: error: cannot find input file: $f" >&2;}
10521 { (exit 1); exit 1; }; }
10524 if test -f "$f"; then
10527 elif test -f "$srcdir/$f"; then
10532 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10533 echo "$as_me: error: cannot find input file: $f" >&2;}
10534 { (exit 1); exit 1; }; }
10537 done` || { (exit 1); exit 1; }
10538 # Remove the trailing spaces.
10539 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10543 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10544 # `conftest.undefs', that substitutes the proper values into
10545 # config.h.in to produce config.h. The first handles `#define'
10546 # templates, and the second `#undef' templates.
10547 # And first: Protect against being on the right side of a sed subst in
10548 # config.status. Protect against being in an unquoted here document
10549 # in config.status.
10550 rm -f conftest.defines conftest.undefs
10551 # Using a here document instead of a string reduces the quoting nightmare.
10552 # Putting comments in sed scripts is not portable.
10554 # `end' is used to avoid that the second main sed command (meant for
10555 # 0-ary CPP macros) applies to n-ary macro definitions.
10556 # See the Autoconf documentation for `clear'.
10557 cat >confdef2sed.sed <<\_ACEOF
10562 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10564 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10567 # If some macros were called several times there might be several times
10568 # the same #defines, which is useless. Nevertheless, we may not want to
10569 # sort them, since we want the *last* AC-DEFINE to be honored.
10570 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10571 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10572 rm -f confdef2sed.sed
10574 # This sed command replaces #undef with comments. This is necessary, for
10575 # example, in the case of _POSIX_SOURCE, which is predefined and required
10576 # on some systems where configure will not decide to define it.
10577 cat >>conftest.undefs <<\_ACEOF
10578 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10581 # Break up conftest.defines because some shells have a limit on the size
10582 # of here documents, and old seds have small limits too (100 cmds).
10583 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10584 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10585 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10586 echo ' :' >>$CONFIG_STATUS
10587 rm -f conftest.tail
10588 while grep . conftest.defines >/dev/null
10590 # Write a limited-size here document to $tmp/defines.sed.
10591 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10592 # Speed up: don't consider the non `#define' lines.
10593 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10594 # Work around the forget-to-reset-the-flag bug.
10595 echo 't clr' >>$CONFIG_STATUS
10596 echo ': clr' >>$CONFIG_STATUS
10597 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10599 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10601 mv $tmp/out $tmp/in
10603 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10604 rm -f conftest.defines
10605 mv conftest.tail conftest.defines
10607 rm -f conftest.defines
10608 echo ' fi # grep' >>$CONFIG_STATUS
10609 echo >>$CONFIG_STATUS
10611 # Break up conftest.undefs because some shells have a limit on the size
10612 # of here documents, and old seds have small limits too (100 cmds).
10613 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10614 rm -f conftest.tail
10615 while grep . conftest.undefs >/dev/null
10617 # Write a limited-size here document to $tmp/undefs.sed.
10618 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10619 # Speed up: don't consider the non `#undef'
10620 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10621 # Work around the forget-to-reset-the-flag bug.
10622 echo 't clr' >>$CONFIG_STATUS
10623 echo ': clr' >>$CONFIG_STATUS
10624 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10626 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10628 mv $tmp/out $tmp/in
10630 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10631 rm -f conftest.undefs
10632 mv conftest.tail conftest.undefs
10634 rm -f conftest.undefs
10636 cat >>$CONFIG_STATUS <<\_ACEOF
10637 # Let's still pretend it is `configure' which instantiates (i.e., don't
10638 # use $as_me), people would be surprised to read:
10639 # /* config.h. Generated by config.status. */
10640 if test x"$ac_file" = x-; then
10641 echo "/* Generated by configure. */" >$tmp/config.h
10643 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10645 cat $tmp/in >>$tmp/config.h
10647 if test x"$ac_file" != x-; then
10648 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10649 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10650 echo "$as_me: $ac_file is unchanged" >&6;}
10652 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10654 X"$ac_file" : 'X\(//\)[^/]' \| \
10655 X"$ac_file" : 'X\(//\)$' \| \
10656 X"$ac_file" : 'X\(/\)' \| \
10657 . : '\(.\)' 2>/dev/null ||
10659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10661 /^X\(\/\/\)$/{ s//\1/; q; }
10662 /^X\(\/\).*/{ s//\1/; q; }
10664 { if $as_mkdir_p; then
10669 while test ! -d "$as_dir"; do
10670 as_dirs="$as_dir $as_dirs"
10671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10673 X"$as_dir" : 'X\(//\)[^/]' \| \
10674 X"$as_dir" : 'X\(//\)$' \| \
10675 X"$as_dir" : 'X\(/\)' \| \
10676 . : '\(.\)' 2>/dev/null ||
10678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10680 /^X\(\/\/\)$/{ s//\1/; q; }
10681 /^X\(\/\).*/{ s//\1/; q; }
10684 test ! -n "$as_dirs" || mkdir $as_dirs
10685 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10686 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10687 { (exit 1); exit 1; }; }; }
10690 mv $tmp/config.h $ac_file
10694 rm -f $tmp/config.h
10698 cat >>$CONFIG_STATUS <<\_ACEOF
10701 # CONFIG_COMMANDS section.
10703 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10704 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10705 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10706 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10707 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10708 X"$ac_dest" : 'X\(//\)[^/]' \| \
10709 X"$ac_dest" : 'X\(//\)$' \| \
10710 X"$ac_dest" : 'X\(/\)' \| \
10711 . : '\(.\)' 2>/dev/null ||
10713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10715 /^X\(\/\/\)$/{ s//\1/; q; }
10716 /^X\(\/\).*/{ s//\1/; q; }
10720 if test "$ac_dir" != .; then
10721 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10722 # A "../" for each directory in $ac_dir_suffix.
10723 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10725 ac_dir_suffix= ac_top_builddir=
10729 .) # No --srcdir option. We are building in place.
10731 if test -z "$ac_top_builddir"; then
10734 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10736 [\\/]* | ?:[\\/]* ) # Absolute path.
10737 ac_srcdir=$srcdir$ac_dir_suffix;
10738 ac_top_srcdir=$srcdir ;;
10739 *) # Relative path.
10740 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10741 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10743 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10745 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10746 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10747 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10748 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10751 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10752 echo "$as_me: executing $ac_dest commands" >&6;}
10754 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10759 cat >>$CONFIG_STATUS <<\_ACEOF
10761 { (exit 0); exit 0; }
10763 chmod +x $CONFIG_STATUS
10764 ac_clean_files=$ac_clean_files_save
10767 # configure is writing to config.log, and then calls config.status.
10768 # config.status does its own redirection, appending to config.log.
10769 # Unfortunately, on DOS this fails, as config.log is still kept open
10770 # by configure, so config.status won't be able to write to it; its
10771 # output is simply discarded. So we exec the FD to /dev/null,
10772 # effectively closing config.log, so it can be properly (re)opened and
10773 # appended to by config.status. When coming back to configure, we
10774 # need to make the FD available again.
10775 if test "$no_create" != yes; then
10777 ac_config_status_args=
10778 test "$silent" = yes &&
10779 ac_config_status_args="$ac_config_status_args --quiet"
10781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10784 # would make configure fail if this is the last instruction.
10785 $ac_cs_success || { (exit 1); exit 1; }