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_gtk=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
7502 if test "${OSTYPE}" = "cygwin" ; then
7505 echo "$as_me:$LINENO: checking for getopt_long" >&5
7506 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7507 if test "${ac_cv_func_getopt_long+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 cat >conftest.$ac_ext <<_ACEOF
7511 #line $LINENO "configure"
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 /* System header to define __stub macros and hopefully few prototypes,
7518 which can conflict with char getopt_long (); below.
7519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7520 <limits.h> exists even on freestanding compilers. */
7522 # include <limits.h>
7524 # include <assert.h>
7526 /* Override any gcc2 internal prototype to avoid an error. */
7531 /* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7533 char getopt_long ();
7534 /* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7540 char (*f) () = getopt_long;
7549 return f != getopt_long;
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_cv_func_getopt_long=yes
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_func_getopt_long=no
7573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7575 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7576 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7577 if test $ac_cv_func_getopt_long = yes; then
7585 if test "${getopt_long}" = "false" ; then
7586 my_includes="$my_includes -I../getopt"
7588 cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_GETOPT_LONG 1
7592 ctlibs_base="$ctlibs_base -lgetopt"
7593 LDFLAGS="$LDFLAGS -L../getopt"
7597 INCLUDED_GETOPT_LONG_TRUE=
7598 INCLUDED_GETOPT_LONG_FALSE='#'
7600 INCLUDED_GETOPT_LONG_TRUE='#'
7601 INCLUDED_GETOPT_LONG_FALSE=
7605 if test "${readline}" = "true" ; then
7606 ctlibs_base="$ctlibs_base -lreadline"
7607 if test "${ncurses}" = "true"; then
7608 ctlibs_base="$ctlibs_base -lncurses"
7609 elif test "${curses}" = "true"; then
7610 ctlibs_base="$ctlibs_base -lcurses"
7614 echo "$as_me:$LINENO: checking debug" >&5
7615 echo $ECHO_N "checking debug... $ECHO_C" >&6
7616 # Check whether --enable-debug or --disable-debug was given.
7617 if test "${enable_debug+set}" = set; then
7618 enableval="$enable_debug"
7619 case "${enableval}" in
7621 echo "$as_me:$LINENO: result: yes" >&5
7622 echo "${ECHO_T}yes" >&6
7625 echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6
7628 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7629 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7633 debug=false; echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6
7638 if test "$debug" = "true"; then
7646 if test "$datadir" != "" ; then
7647 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7650 if test "$debug" = "true" ; then
7651 CFLAGS="$CFLAGS -g -DDEBUG"
7653 cat >>confdefs.h <<\_ACEOF
7658 CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
7660 cat >>confdefs.h <<\_ACEOF
7666 if test "${pthread}" = "true" ; then
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_WXTHREADS 1
7674 echo "$as_me:$LINENO: checking sstream" >&5
7675 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7676 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7677 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_SSTREAM 1
7683 echo "$as_me:$LINENO: result: yes" >&5
7684 echo "${ECHO_T}yes" >&6
7686 echo "$as_me:$LINENO: result: no" >&5
7687 echo "${ECHO_T}no" >&6
7690 CFLAGS="$CFLAGS -Wall"
7691 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7692 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7693 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7694 if test "${enable_verbose_warnings+set}" = set; then
7695 enableval="$enable_verbose_warnings"
7696 case "$enableval" in
7698 echo "$as_me:$LINENO: result: yes" >&5
7699 echo "${ECHO_T}yes" >&6
7700 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7703 echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7708 echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7713 echo "$as_me:$LINENO: checking static executables" >&5
7714 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7715 # Check whether --enable-static or --disable-static was given.
7716 if test "${enable_static+set}" = set; then
7717 enableval="$enable_static"
7718 case "$enableval" in
7720 echo "$as_me:$LINENO: result: yes" >&5
7721 echo "${ECHO_T}yes" >&6
7722 CFLAGS="$CFLAGS --static"
7725 echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7730 echo "$as_me:$LINENO: result: no" >&5
7731 echo "${ECHO_T}no" >&6
7736 # Check whether --with-lam or --without-lam was given.
7737 if test "${with_lam+set}" = set; then
7739 if test "$withval" != "no" ; then
7745 if test "$withval" != "no" ; then
7746 if test "$prefix" != "NONE" ; then
7747 trylamdir="$trylamdir $prefix"
7750 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7751 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7752 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7753 if test -x "$testlamdir/bin/hcp" ; then
7754 if test "$testlamdir" != "/usr"; then
7755 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7756 CFLAGS="$CFLAGS -I$testlamdir/include"
7758 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7759 lamdir="$testlamdir"
7766 echo "$as_me:$LINENO: result: $lamdir" >&5
7767 echo "${ECHO_T}$lamdir" >&6
7769 echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6
7775 # Check whether --with-ctn or --without-ctn was given.
7776 if test "${with_ctn+set}" = set; then
7778 if test "$withval" != "no" ; then
7784 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7785 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7786 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7787 echo "$as_me:$LINENO: result: disabled" >&5
7788 echo "${ECHO_T}disabled" >&6
7790 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7791 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7792 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7793 if test -f "$testctndir/libctn.a" ; then
7794 LDFLAGS="$LDFLAGS -L$testctndir"
7799 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7800 if test -f "$testctndir/ctn_os.h" ; then
7801 CFLAGS="$CFLAGS -I$testctndir"
7806 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7809 cat >>confdefs.h <<\_ACEOF
7810 #define HAVE_CTN_DICOM 1
7813 echo "$as_me:$LINENO: result: yes" >&5
7814 echo "${ECHO_T}yes" >&6
7816 echo "$as_me:$LINENO: result: no" >&5
7817 echo "${ECHO_T}no" >&6
7821 echo "$as_me:$LINENO: checking for web access" >&5
7822 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7824 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7825 if test "${with_cgibin_dir+set}" = set; then
7826 withval="$with_cgibin_dir"
7827 cgibindir=$withval ;
7831 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7832 if test "${with_cgibin_url+set}" = set; then
7833 withval="$with_cgibin_url"
7834 cgibinurl=$withval ;
7838 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7839 if test "${with_webdata_dir+set}" = set; then
7840 withval="$with_webdata_dir"
7841 webdatadir=$withval ;
7845 # Check whether --with-webdata-url or --without-webdata-url was given.
7846 if test "${with_webdata_url+set}" = set; then
7847 withval="$with_webdata_url"
7848 webdataurl=$withval ;
7852 # Check whether --with-html-dir or --without-html-dir was given.
7853 if test "${with_html_dir+set}" = set; then
7854 withval="$with_html_dir"
7858 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7859 cgiprograms="ctsim.cgi ctsim.conf"
7863 if test -n "$htmldir" ; then
7864 htmldata=simulate.html
7869 if test -n "$htmldir"; then
7877 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7880 echo "$as_me:$LINENO: result: yes" >&5
7881 echo "${ECHO_T}yes" >&6
7882 if test -z "$cgibindir" ; then
7883 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7884 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7885 { (exit 1); exit 1; }; }
7886 elif test -z "$cgibinurl" ; then
7887 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7888 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7889 { (exit 1); exit 1; }; }
7890 elif test -z "$webdatadir" ; then
7891 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7892 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7893 { (exit 1); exit 1; }; }
7894 elif test -z "$webdataurl" ; then
7895 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7896 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7897 { (exit 1); exit 1; }; }
7898 elif test -z "$htmldir" ; then
7899 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7900 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7901 { (exit 1); exit 1; }; }
7904 echo "$as_me:$LINENO: result: no" >&5
7905 echo "${ECHO_T}no" >&6
7910 if test -n "$lamdir"; then
7919 echo "$as_me:$LINENO: checking for X" >&5
7920 echo $ECHO_N "checking for X... $ECHO_C" >&6
7923 # Check whether --with-x or --without-x was given.
7924 if test "${with_x+set}" = set; then
7928 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7929 if test "x$with_x" = xno; then
7930 # The user explicitly disabled X.
7933 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7934 # Both variables are already set.
7937 if test "${ac_cv_have_x+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 # One or both of the vars are not set, and there is no cached value.
7941 ac_x_includes=no ac_x_libraries=no
7943 if mkdir conftest.dir; then
7945 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7946 cat >Imakefile <<'_ACEOF'
7948 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7950 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7951 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7952 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7953 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7954 for ac_extension in a so sl; do
7955 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7956 test -f $ac_im_libdir/libX11.$ac_extension; then
7957 ac_im_usrlibdir=$ac_im_libdir; break
7960 # Screen out bogus values from the imake configuration. They are
7961 # bogus both because they are the default anyway, and because
7962 # using them would break gcc on systems where it needs fixed includes.
7963 case $ac_im_incroot in
7965 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7967 case $ac_im_usrlibdir in
7969 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7976 # Standard set of common directories for X headers.
7977 # Check X11 before X11Rn because it is often a symlink to the current release.
7989 /usr/local/X11/include
7990 /usr/local/X11R6/include
7991 /usr/local/X11R5/include
7992 /usr/local/X11R4/include
7994 /usr/local/include/X11
7995 /usr/local/include/X11R6
7996 /usr/local/include/X11R5
7997 /usr/local/include/X11R4
8001 /usr/XFree86/include/X11
8005 /usr/unsupported/include
8007 /usr/local/x11r5/include
8008 /usr/lpp/Xamples/include
8010 /usr/openwin/include
8011 /usr/openwin/share/include'
8013 if test "$ac_x_includes" = no; then
8014 # Guess where to find include files, by looking for Intrinsic.h.
8015 # First, try using that file with no special directory specified.
8016 cat >conftest.$ac_ext <<_ACEOF
8017 #line $LINENO "configure"
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 #include <X11/Intrinsic.h>
8025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } >/dev/null; then
8033 if test -s conftest.err; then
8034 ac_cpp_err=$ac_c_preproc_warn_flag
8041 if test -z "$ac_cpp_err"; then
8042 # We can compile using X headers with no special include directory.
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 for ac_dir in $ac_x_header_dirs; do
8049 if test -r "$ac_dir/X11/Intrinsic.h"; then
8050 ac_x_includes=$ac_dir
8055 rm -f conftest.err conftest.$ac_ext
8056 fi # $ac_x_includes = no
8058 if test "$ac_x_libraries" = no; then
8059 # Check for the libraries.
8060 # See if we find them without any special options.
8061 # Don't add to $LIBS permanently.
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 #include <X11/Intrinsic.h>
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8082 (eval $ac_link) 2>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -s conftest$ac_exeext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8093 # We can link X programs with no special library path.
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8100 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8102 # Don't even attempt the hair of trying to link an X program!
8103 for ac_extension in a so sl; do
8104 if test -r $ac_dir/libXt.$ac_extension; then
8105 ac_x_libraries=$ac_dir
8111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8112 fi # $ac_x_libraries = no
8114 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8115 # Didn't find X anywhere. Cache the known absence of X.
8116 ac_cv_have_x="have_x=no"
8118 # Record where we found X for the cache.
8119 ac_cv_have_x="have_x=yes \
8120 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8125 eval "$ac_cv_have_x"
8128 if test "$have_x" != yes; then
8129 echo "$as_me:$LINENO: result: $have_x" >&5
8130 echo "${ECHO_T}$have_x" >&6
8133 # If each of the values was on the command line, it overrides each guess.
8134 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8135 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8136 # Update the cache value to reflect the command line values.
8137 ac_cv_have_x="have_x=yes \
8138 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8139 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8140 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8143 if test "$no_x" = yes; then
8144 # Not all programs may use this symbol, but it does not hurt to define it.
8146 cat >>confdefs.h <<\_ACEOF
8147 #define X_DISPLAY_MISSING 1
8150 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8152 if test -n "$x_includes"; then
8153 X_CFLAGS="$X_CFLAGS -I$x_includes"
8156 # It would also be nice to do this for all -L options, not just this one.
8157 if test -n "$x_libraries"; then
8158 X_LIBS="$X_LIBS -L$x_libraries"
8159 # For Solaris; some versions of Sun CC require a space after -R and
8160 # others require no space. Words are not sufficient . . . .
8161 case `(uname -sr) 2>/dev/null` in
8163 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8164 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8165 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8166 cat >conftest.$ac_ext <<_ACEOF
8167 #line $LINENO "configure"
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184 (eval $ac_link) 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8202 if test $ac_R_nospace = yes; then
8203 echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6
8205 X_LIBS="$X_LIBS -R$x_libraries"
8207 LIBS="$ac_xsave_LIBS -R $x_libraries"
8208 cat >conftest.$ac_ext <<_ACEOF
8209 #line $LINENO "configure"
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8224 rm -f conftest.$ac_objext conftest$ac_exeext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8226 (eval $ac_link) 2>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8244 if test $ac_R_space = yes; then
8245 echo "$as_me:$LINENO: result: yes" >&5
8246 echo "${ECHO_T}yes" >&6
8247 X_LIBS="$X_LIBS -R $x_libraries"
8249 echo "$as_me:$LINENO: result: neither works" >&5
8250 echo "${ECHO_T}neither works" >&6
8257 # Check for system-dependent libraries X programs must link with.
8258 # Do this before checking for the system-independent R6 libraries
8259 # (-lICE), since we may need -lsocket or whatever for X linking.
8261 if test "$ISC" = yes; then
8262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8264 # Martyn Johnson says this is needed for Ultrix, if the X
8265 # libraries were built with DECnet support. And Karl Berry says
8266 # the Alpha needs dnet_stub (dnet does not exist).
8267 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8268 cat >conftest.$ac_ext <<_ACEOF
8269 #line $LINENO "configure"
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8276 /* Override any gcc2 internal prototype to avoid an error. */
8280 /* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8282 char XOpenDisplay ();
8291 rm -f conftest.$ac_objext conftest$ac_exeext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8293 (eval $ac_link) 2>&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8309 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8310 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 ac_check_lib_save_LIBS=$LIBS
8315 cat >conftest.$ac_ext <<_ACEOF
8316 #line $LINENO "configure"
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8323 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8338 rm -f conftest.$ac_objext conftest$ac_exeext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8340 (eval $ac_link) 2>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -s conftest$ac_exeext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_cv_lib_dnet_dnet_ntoa=yes
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_cv_lib_dnet_dnet_ntoa=no
8357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8358 LIBS=$ac_check_lib_save_LIBS
8360 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8361 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8362 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8363 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8366 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8367 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8368 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8369 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 ac_check_lib_save_LIBS=$LIBS
8373 LIBS="-ldnet_stub $LIBS"
8374 cat >conftest.$ac_ext <<_ACEOF
8375 #line $LINENO "configure"
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8382 /* Override any gcc2 internal prototype to avoid an error. */
8386 /* We use char because int might match the return type of a gcc2
8387 builtin and then its argument prototype would still apply. */
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8399 (eval $ac_link) 2>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 ac_cv_lib_dnet_stub_dnet_ntoa=no
8416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8420 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8421 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8422 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8428 LIBS="$ac_xsave_LIBS"
8430 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8431 # to get the SysV transport functions.
8432 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8434 # The nsl library prevents programs from opening the X display
8435 # on Irix 5.2, according to T.E. Dickey.
8436 # The functions gethostbyname, getservbyname, and inet_addr are
8437 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8438 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8439 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8440 if test "${ac_cv_func_gethostbyname+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8444 #line $LINENO "configure"
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 /* System header to define __stub macros and hopefully few prototypes,
8451 which can conflict with char gethostbyname (); below.
8452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8453 <limits.h> exists even on freestanding compilers. */
8455 # include <limits.h>
8457 # include <assert.h>
8459 /* Override any gcc2 internal prototype to avoid an error. */
8464 /* We use char because int might match the return type of a gcc2
8465 builtin and then its argument prototype would still apply. */
8466 char gethostbyname ();
8467 /* The GNU C library defines this for functions which it implements
8468 to always fail with ENOSYS. Some functions are actually named
8469 something starting with __ and the normal name is an alias. */
8470 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8473 char (*f) () = gethostbyname;
8482 return f != gethostbyname;
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -s conftest$ac_exeext'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; }; then
8499 ac_cv_func_gethostbyname=yes
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8504 ac_cv_func_gethostbyname=no
8506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8509 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8511 if test $ac_cv_func_gethostbyname = no; then
8512 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8513 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8514 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 ac_check_lib_save_LIBS=$LIBS
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8527 /* Override any gcc2 internal prototype to avoid an error. */
8531 /* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8533 char gethostbyname ();
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544 (eval $ac_link) 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 ac_cv_lib_nsl_gethostbyname=yes
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 ac_cv_lib_nsl_gethostbyname=no
8561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8562 LIBS=$ac_check_lib_save_LIBS
8564 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8565 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8566 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8567 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8570 if test $ac_cv_lib_nsl_gethostbyname = no; then
8571 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8572 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8573 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 ac_check_lib_save_LIBS=$LIBS
8578 cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8586 /* Override any gcc2 internal prototype to avoid an error. */
8590 /* We use char because int might match the return type of a gcc2
8591 builtin and then its argument prototype would still apply. */
8592 char gethostbyname ();
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_lib_bsd_gethostbyname=yes
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_lib_bsd_gethostbyname=no
8620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8621 LIBS=$ac_check_lib_save_LIBS
8623 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8624 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8625 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8626 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8632 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8633 # socket/setsockopt and other routines are undefined under SCO ODT
8634 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8635 # on later versions), says Simon Leinen: it contains gethostby*
8636 # variants that don't use the name server (or something). -lsocket
8637 # must be given before -lnsl if both are needed. We assume that
8638 # if connect needs -lnsl, so does gethostbyname.
8639 echo "$as_me:$LINENO: checking for connect" >&5
8640 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8641 if test "${ac_cv_func_connect+set}" = set; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 cat >conftest.$ac_ext <<_ACEOF
8645 #line $LINENO "configure"
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 /* System header to define __stub macros and hopefully few prototypes,
8652 which can conflict with char connect (); below.
8653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654 <limits.h> exists even on freestanding compilers. */
8656 # include <limits.h>
8658 # include <assert.h>
8660 /* Override any gcc2 internal prototype to avoid an error. */
8665 /* We use char because int might match the return type of a gcc2
8666 builtin and then its argument prototype would still apply. */
8668 /* The GNU C library defines this for functions which it implements
8669 to always fail with ENOSYS. Some functions are actually named
8670 something starting with __ and the normal name is an alias. */
8671 #if defined (__stub_connect) || defined (__stub___connect)
8674 char (*f) () = connect;
8683 return f != connect;
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_func_connect=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_func_connect=no
8707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8709 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8710 echo "${ECHO_T}$ac_cv_func_connect" >&6
8712 if test $ac_cv_func_connect = no; then
8713 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8714 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8715 if test "${ac_cv_lib_socket_connect+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 ac_check_lib_save_LIBS=$LIBS
8719 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8720 cat >conftest.$ac_ext <<_ACEOF
8721 #line $LINENO "configure"
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8728 /* Override any gcc2 internal prototype to avoid an error. */
8732 /* We use char because int might match the return type of a gcc2
8733 builtin and then its argument prototype would still apply. */
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745 (eval $ac_link) 2>&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -s conftest$ac_exeext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 ac_cv_lib_socket_connect=yes
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 ac_cv_lib_socket_connect=no
8762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8763 LIBS=$ac_check_lib_save_LIBS
8765 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8766 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8767 if test $ac_cv_lib_socket_connect = yes; then
8768 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8773 # Guillermo Gomez says -lposix is necessary on A/UX.
8774 echo "$as_me:$LINENO: checking for remove" >&5
8775 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8776 if test "${ac_cv_func_remove+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 /* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char remove (); below.
8788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 <limits.h> exists even on freestanding compilers. */
8791 # include <limits.h>
8793 # include <assert.h>
8795 /* Override any gcc2 internal prototype to avoid an error. */
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8803 /* The GNU C library defines this for functions which it implements
8804 to always fail with ENOSYS. Some functions are actually named
8805 something starting with __ and the normal name is an alias. */
8806 #if defined (__stub_remove) || defined (__stub___remove)
8809 char (*f) () = remove;
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_func_remove=yes
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_cv_func_remove=no
8842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8844 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8845 echo "${ECHO_T}$ac_cv_func_remove" >&6
8847 if test $ac_cv_func_remove = no; then
8848 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8849 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8850 if test "${ac_cv_lib_posix_remove+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lposix $LIBS"
8855 cat >conftest.$ac_ext <<_ACEOF
8856 #line $LINENO "configure"
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8863 /* Override any gcc2 internal prototype to avoid an error. */
8867 /* We use char because int might match the return type of a gcc2
8868 builtin and then its argument prototype would still apply. */
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
8884 { ac_try='test -s conftest$ac_exeext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_lib_posix_remove=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_cv_lib_posix_remove=no
8897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8898 LIBS=$ac_check_lib_save_LIBS
8900 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8901 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8902 if test $ac_cv_lib_posix_remove = yes; then
8903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8908 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8909 echo "$as_me:$LINENO: checking for shmat" >&5
8910 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8911 if test "${ac_cv_func_shmat+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 cat >conftest.$ac_ext <<_ACEOF
8915 #line $LINENO "configure"
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8921 /* System header to define __stub macros and hopefully few prototypes,
8922 which can conflict with char shmat (); below.
8923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8924 <limits.h> exists even on freestanding compilers. */
8926 # include <limits.h>
8928 # include <assert.h>
8930 /* Override any gcc2 internal prototype to avoid an error. */
8935 /* We use char because int might match the return type of a gcc2
8936 builtin and then its argument prototype would still apply. */
8938 /* The GNU C library defines this for functions which it implements
8939 to always fail with ENOSYS. Some functions are actually named
8940 something starting with __ and the normal name is an alias. */
8941 #if defined (__stub_shmat) || defined (__stub___shmat)
8944 char (*f) () = shmat;
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_func_shmat=yes
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8979 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8980 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8982 if test $ac_cv_func_shmat = no; then
8983 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8984 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8985 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 ac_check_lib_save_LIBS=$LIBS
8990 cat >conftest.$ac_ext <<_ACEOF
8991 #line $LINENO "configure"
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8998 /* Override any gcc2 internal prototype to avoid an error. */
9002 /* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9013 rm -f conftest.$ac_objext conftest$ac_exeext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015 (eval $ac_link) 2>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -s conftest$ac_exeext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_lib_ipc_shmat=yes
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9030 ac_cv_lib_ipc_shmat=no
9032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9033 LIBS=$ac_check_lib_save_LIBS
9035 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9036 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9037 if test $ac_cv_lib_ipc_shmat = yes; then
9038 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9044 # Check for libraries that X11R6 Xt/Xaw programs need.
9045 ac_save_LDFLAGS=$LDFLAGS
9046 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9047 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9048 # check for ICE first), but we must link in the order -lSM -lICE or
9049 # we get undefined symbols. So assume we have SM if we have ICE.
9050 # These have to be linked with before -lX11, unlike the other
9051 # libraries we check for below, so use a different variable.
9052 # John Interrante, Karl Berry
9053 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9054 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9055 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 ac_check_lib_save_LIBS=$LIBS
9059 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9060 cat >conftest.$ac_ext <<_ACEOF
9061 #line $LINENO "configure"
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9068 /* Override any gcc2 internal prototype to avoid an error. */
9072 /* We use char because int might match the return type of a gcc2
9073 builtin and then its argument prototype would still apply. */
9074 char IceConnectionNumber ();
9078 IceConnectionNumber ();
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_cv_lib_ICE_IceConnectionNumber=yes
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 ac_cv_lib_ICE_IceConnectionNumber=no
9102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9103 LIBS=$ac_check_lib_save_LIBS
9105 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9106 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9107 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9108 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9111 LDFLAGS=$ac_save_LDFLAGS
9122 X_TOOLKIT_LIBS="-lXt"
9123 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9125 our_saved_LDFLAGS="$LDFLAGS"
9126 LDFLAGS="$X_LIBS $LDFLAGS"
9127 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9128 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9129 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 ac_check_lib_save_LIBS=$LIBS
9133 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9134 cat >conftest.$ac_ext <<_ACEOF
9135 #line $LINENO "configure"
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9142 /* Override any gcc2 internal prototype to avoid an error. */
9146 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9148 char XtToolkitThreadInitialize ();
9152 XtToolkitThreadInitialize ();
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159 (eval $ac_link) 2>&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9174 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9179 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9180 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9181 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9183 cat >>confdefs.h <<\_ACEOF
9184 #define X_THREAD_SUPPORT 1
9189 LDFLAGS="$our_saved_LDFLAGS"
9193 if test "x$no_x" = "xyes"; then
9201 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9204 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9206 echo "$as_me:$LINENO: checking for X" >&5
9207 echo $ECHO_N "checking for X... $ECHO_C" >&6
9208 if test "$no_x" != "yes" ; then
9210 cat >>confdefs.h <<\_ACEOF
9214 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9215 ctlib_graphics="$ctlibs_base -lctgraphics"
9216 echo "$as_me:$LINENO: result: yes" >&5
9217 echo "${ECHO_T}yes" >&6
9218 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9219 if test "$libgl" = "true" ; then
9220 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
9221 if test "$wxwin" = "true" ; then
9222 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9225 if test "$wxwin" = "true" ; then
9227 cat >>confdefs.h <<\_ACEOF
9242 echo "$as_me:$LINENO: result: no" >&5
9243 echo "${ECHO_T}no" >&6
9246 if test "$png" = "true" ; then
9247 ctlibs_tools="$ctlibs_tools -lpng"
9249 if test "$zlib" = "true" ; then
9250 ctlibs_tools="$ctlibs_tools -lz"
9252 if test "$fftw" = "true" ; then
9253 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9255 if test "$ctn" = "true"; then
9256 ctlibs_tools="$ctlibs_tools -lctn"
9259 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9260 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9261 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 ac_check_lib_save_LIBS=$LIBS
9265 LIBS="-ldmallocxx $LIBS"
9266 cat >conftest.$ac_ext <<_ACEOF
9267 #line $LINENO "configure"
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9283 rm -f conftest.$ac_objext conftest$ac_exeext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9285 (eval $ac_link) 2>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_lib_dmallocxx_main=yes
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_cv_lib_dmallocxx_main=no
9302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9303 LIBS=$ac_check_lib_save_LIBS
9305 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9306 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9307 if test $ac_cv_lib_dmallocxx_main = yes; then
9313 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9314 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9315 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9316 if test "${enable_dmalloc+set}" = set; then
9317 enableval="$enable_dmalloc"
9318 case "${enableval}" in
9319 yes) usedmalloc=true
9320 echo "$as_me:$LINENO: result: yes" >&5
9321 echo "${ECHO_T}yes" >&6
9323 no) usedmalloc=false
9324 echo "$as_me:$LINENO: result: no" >&5
9325 echo "${ECHO_T}no" >&6
9327 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9328 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9332 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9333 echo "${ECHO_T}no" >&6
9336 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9337 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9339 cat >>confdefs.h <<\_ACEOF
9340 #define HAVE_DMALLOC 1
9343 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9344 echo "${ECHO_T}Using dmalloc" >&6
9347 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9348 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9349 if test "${ac_cv_lib_efence_main+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-lefence $LIBS"
9354 cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9373 (eval $ac_link) 2>&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -s conftest$ac_exeext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_cv_lib_efence_main=yes
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_cv_lib_efence_main=no
9390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9393 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9394 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9395 if test $ac_cv_lib_efence_main = yes; then
9401 echo "$as_me:$LINENO: checking for enable-efence" >&5
9402 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9403 # Check whether --enable-efence or --disable-efence was given.
9404 if test "${enable_efence+set}" = set; then
9405 enableval="$enable_efence"
9406 case "${enableval}" in
9408 echo "$as_me:$LINENO: result: yes" >&5
9409 echo "${ECHO_T}yes" >&6
9412 echo "$as_me:$LINENO: result: no" >&5
9413 echo "${ECHO_T}no" >&6
9415 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9416 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9420 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9421 echo "${ECHO_T}no" >&6
9424 if test "$efence" = "true" -a "$useefence" = "true" ; then
9425 ctlibs_tools="$ctlibs_tools -lefence"
9427 cat >>confdefs.h <<\_ACEOF
9428 #define HAVE_EFENCE 1
9431 echo "$as_me:$LINENO: result: Using efence" >&5
9432 echo "${ECHO_T}Using efence" >&6
9435 if test "$wxwin" = "true" ; then
9436 if test "$wx_gtk" = "true" ; then
9437 wxcflags=`$wxconfig --cflags`
9438 wxlibs=`$wxconfig --libs`
9440 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9441 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9443 CFLAGS="$CFLAGS -I../include $wxcflags"
9444 ctlib_graphics="$ctlib_graphics $wxlibs"
9448 HAVE_WXWINDOWS_TRUE=
9449 HAVE_WXWINDOWS_FALSE='#'
9451 HAVE_WXWINDOWS_TRUE='#'
9452 HAVE_WXWINDOWS_FALSE=
9458 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9459 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9462 if test -n "$lamdir" ; then
9463 lamprograms="ctsimtext-lam"
9471 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"
9474 cat >confcache <<\_ACEOF
9475 # This file is a shell script that caches the results of configure
9476 # tests run on this system so they can be shared between configure
9477 # scripts and configure runs, see configure's option --config-cache.
9478 # It is not useful on other systems. If it contains results you don't
9479 # want to keep, you may remove or edit it.
9481 # config.status only pays attention to the cache file if you give it
9482 # the --recheck option to rerun configure.
9484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9490 # The following way of writing the cache mishandles newlines in values,
9491 # but we know of no workaround that is simple, portable, and efficient.
9492 # So, don't put newlines in cache variables' values.
9493 # Ultrix sh set writes to stderr and can't be redirected directly,
9494 # and sets the high bit in the cache file unless we assign to the vars.
9497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9499 # `set' does not quote correctly, so add quotes (double-quote
9500 # substitution turns \\\\ into \\, and sed turns \\ into \).
9503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9506 # `set' quotes correctly as required by POSIX, so do not add quotes.
9508 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9517 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9519 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9520 if test -w $cache_file; then
9521 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9522 cat confcache >$cache_file
9524 echo "not updating unwritable cache $cache_file"
9529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9530 # Let make expand exec_prefix.
9531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9533 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9534 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9535 # trailing colons and then remove the whole line if VPATH becomes empty
9536 # (actually we leave an empty line to preserve line numbers).
9537 if test "x$srcdir" = x.; then
9538 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9539 s/:*\$(srcdir):*/:/;
9540 s/:*\${srcdir}:*/:/;
9542 s/^\([^=]*=[ ]*\):*/\1/;
9548 DEFS=-DHAVE_CONFIG_H
9552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9553 # 1. Remove the extension, and $U if already installed.
9554 ac_i=`echo "$ac_i" |
9555 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9557 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9558 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9562 LTLIBOBJS=$ac_ltlibobjs
9566 : ${CONFIG_STATUS=./config.status}
9567 ac_clean_files_save=$ac_clean_files
9568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9569 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9570 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9571 cat >$CONFIG_STATUS <<_ACEOF
9573 # Generated by $as_me.
9574 # Run this file to recreate the current configuration.
9575 # Compiler output produced by configure, useful for debugging
9576 # configure, is in config.log if it exists.
9581 SHELL=\${CONFIG_SHELL-$SHELL}
9584 cat >>$CONFIG_STATUS <<\_ACEOF
9585 ## --------------------- ##
9586 ## M4sh Initialization. ##
9587 ## --------------------- ##
9589 # Be Bourne compatible
9590 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9593 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9594 # is contrary to our usage. Disable this feature.
9595 alias -g '${1+"$@"}'='"$@"'
9596 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9600 # Support unset when possible.
9601 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9608 # Work around bugs in pre-3.0 UWIN ksh.
9609 $as_unset ENV MAIL MAILPATH
9616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9618 LC_TELEPHONE LC_TIME
9620 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9621 eval $as_var=C; export $as_var
9627 # Required to use basename.
9628 if expr a : '\(a\)' >/dev/null 2>&1; then
9634 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9635 as_basename=basename
9641 # Name of the executable.
9642 as_me=`$as_basename "$0" ||
9643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9644 X"$0" : 'X\(//\)$' \| \
9645 X"$0" : 'X\(/\)$' \| \
9646 . : '\(.\)' 2>/dev/null ||
9648 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9649 /^X\/\(\/\/\)$/{ s//\1/; q; }
9650 /^X\/\(\/\).*/{ s//\1/; q; }
9654 # PATH needs CR, and LINENO needs CR and PATH.
9655 # Avoid depending upon Character Ranges.
9656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9659 as_cr_digits='0123456789'
9660 as_cr_alnum=$as_cr_Letters$as_cr_digits
9662 # The user is always right.
9663 if test "${PATH_SEPARATOR+set}" != set; then
9664 echo "#! /bin/sh" >conf$$.sh
9665 echo "exit 0" >>conf$$.sh
9667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9679 test "x$as_lineno_1" != "x$as_lineno_2" &&
9680 test "x$as_lineno_3" = "x$as_lineno_2" || {
9681 # Find who we are. Look in the path if we contain no path at all
9684 *[\\/]* ) as_myself=$0 ;;
9685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 test -z "$as_dir" && as_dir=.
9690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9695 # We did not find ourselves, most probably we were run as `sh COMMAND'
9696 # in which case we are not to be found in the path.
9697 if test "x$as_myself" = x; then
9700 if test ! -f "$as_myself"; then
9701 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9702 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9703 { (exit 1); exit 1; }; }
9705 case $CONFIG_SHELL in
9707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9711 test -z "$as_dir" && as_dir=.
9712 for as_base in sh bash ksh sh5; do
9715 if ("$as_dir/$as_base" -c '
9718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9719 test "x$as_lineno_1" != "x$as_lineno_2" &&
9720 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9721 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9722 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9723 CONFIG_SHELL=$as_dir/$as_base
9725 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9734 # uniformly replaced by the line number. The first 'sed' inserts a
9735 # line-number line before each line; the second 'sed' does the real
9736 # work. The second script uses 'N' to pair each line-number line
9737 # with the numbered line, and appends trailing '-' during
9738 # substitution so that $LINENO is not a special case at line end.
9739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9740 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9741 sed '=' <$as_myself |
9746 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9749 s,^['$as_cr_digits']*\n,,
9751 chmod +x $as_me.lineno ||
9752 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9753 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9754 { (exit 1); exit 1; }; }
9756 # Don't try to exec as it changes $[0], causing all sort of problems
9757 # (the dirname of $[0] is not the place where we might find the
9758 # original and so on. Autoconf is especially sensible to this).
9760 # Exit status is that of the last command.
9765 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9766 *c*,-n*) ECHO_N= ECHO_C='
9768 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9769 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9772 if expr a : '\(a\)' >/dev/null 2>&1; then
9778 rm -f conf$$ conf$$.exe conf$$.file
9780 if ln -s conf$$.file conf$$ 2>/dev/null; then
9781 # We could just check for DJGPP; but this test a) works b) is more generic
9782 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9783 if test -f conf$$.exe; then
9784 # Don't use ln at all; we don't have any links
9789 elif ln conf$$.file conf$$ 2>/dev/null; then
9794 rm -f conf$$ conf$$.exe conf$$.file
9796 if mkdir -p . 2>/dev/null; then
9802 as_executable_p="test -f"
9804 # Sed expression to map a string onto a valid CPP name.
9805 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9807 # Sed expression to map a string onto a valid variable name.
9808 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9812 # We need space, tab and new line, in precisely that order.
9822 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9823 # report actual input values of CONFIG_FILES etc. instead of their
9824 # values after options handling. Logging --version etc. is OK.
9828 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9829 ## Running $as_me. ##
9834 This file was extended by $as_me, which was
9835 generated by GNU Autoconf 2.57. Invocation command line was
9837 CONFIG_FILES = $CONFIG_FILES
9838 CONFIG_HEADERS = $CONFIG_HEADERS
9839 CONFIG_LINKS = $CONFIG_LINKS
9840 CONFIG_COMMANDS = $CONFIG_COMMANDS
9844 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9848 # Files that config.status was made for.
9849 if test -n "$ac_config_files"; then
9850 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9853 if test -n "$ac_config_headers"; then
9854 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9857 if test -n "$ac_config_links"; then
9858 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9861 if test -n "$ac_config_commands"; then
9862 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9865 cat >>$CONFIG_STATUS <<\_ACEOF
9868 \`$as_me' instantiates files from templates according to the
9869 current configuration.
9871 Usage: $0 [OPTIONS] [FILE]...
9873 -h, --help print this help, then exit
9874 -V, --version print version number, then exit
9875 -q, --quiet do not print progress messages
9876 -d, --debug don't remove temporary files
9877 --recheck update $as_me by reconfiguring in the same conditions
9878 --file=FILE[:TEMPLATE]
9879 instantiate the configuration file FILE
9880 --header=FILE[:TEMPLATE]
9881 instantiate the configuration header FILE
9883 Configuration files:
9886 Configuration headers:
9889 Configuration commands:
9892 Report bugs to <bug-autoconf@gnu.org>."
9895 cat >>$CONFIG_STATUS <<_ACEOF
9898 configured by $0, generated by GNU Autoconf 2.57,
9899 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9901 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9902 Free Software Foundation, Inc.
9903 This config.status script is free software; the Free Software Foundation
9904 gives unlimited permission to copy, distribute and modify it."
9909 cat >>$CONFIG_STATUS <<\_ACEOF
9910 # If no file are specified by the user, then we need to provide default
9911 # value. By we need to know if files were specified by the user.
9917 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9918 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9926 *) # This is not an option, so the user has probably given explicit
9929 ac_need_defaults=false;;
9933 # Handling of the options.
9935 cat >>$CONFIG_STATUS <<\_ACEOF
9936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9938 --version | --vers* | -V )
9939 echo "$ac_cs_version"; exit 0 ;;
9941 # Conflict between --help and --header
9942 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9943 Try \`$0 --help' for more information." >&5
9944 echo "$as_me: error: ambiguous option: $1
9945 Try \`$0 --help' for more information." >&2;}
9946 { (exit 1); exit 1; }; };;
9947 --help | --hel | -h )
9948 echo "$ac_cs_usage"; exit 0 ;;
9949 --debug | --d* | -d )
9951 --file | --fil | --fi | --f )
9953 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9954 ac_need_defaults=false;;
9955 --header | --heade | --head | --hea )
9957 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9958 ac_need_defaults=false;;
9959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9964 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9965 Try \`$0 --help' for more information." >&5
9966 echo "$as_me: error: unrecognized option: $1
9967 Try \`$0 --help' for more information." >&2;}
9968 { (exit 1); exit 1; }; } ;;
9970 *) ac_config_targets="$ac_config_targets $1" ;;
9976 ac_configure_extra_args=
9978 if $ac_cs_silent; then
9980 ac_configure_extra_args="$ac_configure_extra_args --silent"
9984 cat >>$CONFIG_STATUS <<_ACEOF
9985 if \$ac_cs_recheck; then
9986 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9987 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9992 cat >>$CONFIG_STATUS <<_ACEOF
9994 # INIT-COMMANDS section.
10003 cat >>$CONFIG_STATUS <<\_ACEOF
10004 for ac_config_target in $ac_config_targets
10006 case "$ac_config_target" in
10007 # Handling of arguments.
10008 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10009 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10010 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10011 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10012 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10013 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10014 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10015 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10016 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10017 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10018 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10019 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10020 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10021 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10022 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10023 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10024 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10025 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10026 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10027 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10028 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10029 { (exit 1); exit 1; }; };;
10033 # If the user did not use the arguments to specify the items to instantiate,
10034 # then the envvar interface is used. Set only those that are not.
10035 # We use the long form for the default assignment because of an extremely
10036 # bizarre bug on SunOS 4.1.3.
10037 if $ac_need_defaults; then
10038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10040 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10043 # Have a temporary directory for convenience. Make it in the build tree
10044 # simply because there is no reason to put it here, and in addition,
10045 # creating and moving files from /tmp can sometimes cause problems.
10046 # Create a temporary directory, and hook for its removal unless debugging.
10049 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10050 trap '{ (exit 1); exit 1; }' 1 2 13 15
10053 # Create a (secure) tmp directory for tmp files.
10056 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10057 test -n "$tmp" && test -d "$tmp"
10060 tmp=./confstat$$-$RANDOM
10061 (umask 077 && mkdir $tmp)
10064 echo "$me: cannot create a temporary directory in ." >&2
10065 { (exit 1); exit 1; }
10070 cat >>$CONFIG_STATUS <<_ACEOF
10073 # CONFIG_FILES section.
10076 # No need to generate the scripts if there are no CONFIG_FILES.
10077 # This happens for instance when ./config.status config.h
10078 if test -n "\$CONFIG_FILES"; then
10079 # Protect against being on the right side of a sed subst in config.status.
10080 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10081 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10082 s,@SHELL@,$SHELL,;t t
10083 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10084 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10085 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10086 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10087 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10088 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10089 s,@exec_prefix@,$exec_prefix,;t t
10090 s,@prefix@,$prefix,;t t
10091 s,@program_transform_name@,$program_transform_name,;t t
10092 s,@bindir@,$bindir,;t t
10093 s,@sbindir@,$sbindir,;t t
10094 s,@libexecdir@,$libexecdir,;t t
10095 s,@datadir@,$datadir,;t t
10096 s,@sysconfdir@,$sysconfdir,;t t
10097 s,@sharedstatedir@,$sharedstatedir,;t t
10098 s,@localstatedir@,$localstatedir,;t t
10099 s,@libdir@,$libdir,;t t
10100 s,@includedir@,$includedir,;t t
10101 s,@oldincludedir@,$oldincludedir,;t t
10102 s,@infodir@,$infodir,;t t
10103 s,@mandir@,$mandir,;t t
10104 s,@build_alias@,$build_alias,;t t
10105 s,@host_alias@,$host_alias,;t t
10106 s,@target_alias@,$target_alias,;t t
10107 s,@DEFS@,$DEFS,;t t
10108 s,@ECHO_C@,$ECHO_C,;t t
10109 s,@ECHO_N@,$ECHO_N,;t t
10110 s,@ECHO_T@,$ECHO_T,;t t
10111 s,@LIBS@,$LIBS,;t t
10112 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10113 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10114 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10115 s,@PACKAGE@,$PACKAGE,;t t
10116 s,@VERSION@,$VERSION,;t t
10117 s,@ACLOCAL@,$ACLOCAL,;t t
10118 s,@AUTOCONF@,$AUTOCONF,;t t
10119 s,@AUTOMAKE@,$AUTOMAKE,;t t
10120 s,@AUTOHEADER@,$AUTOHEADER,;t t
10121 s,@MAKEINFO@,$MAKEINFO,;t t
10122 s,@SET_MAKE@,$SET_MAKE,;t t
10124 s,@RANLIB@,$RANLIB,;t t
10125 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10127 s,@CFLAGS@,$CFLAGS,;t t
10128 s,@LDFLAGS@,$LDFLAGS,;t t
10129 s,@CPPFLAGS@,$CPPFLAGS,;t t
10130 s,@ac_ct_CC@,$ac_ct_CC,;t t
10131 s,@EXEEXT@,$EXEEXT,;t t
10132 s,@OBJEXT@,$OBJEXT,;t t
10134 s,@CXXFLAGS@,$CXXFLAGS,;t t
10135 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10136 s,@wxconfig@,$wxconfig,;t t
10137 s,@build@,$build,;t t
10138 s,@build_cpu@,$build_cpu,;t t
10139 s,@build_vendor@,$build_vendor,;t t
10140 s,@build_os@,$build_os,;t t
10141 s,@host@,$host,;t t
10142 s,@host_cpu@,$host_cpu,;t t
10143 s,@host_vendor@,$host_vendor,;t t
10144 s,@host_os@,$host_os,;t t
10146 s,@EGREP@,$EGREP,;t t
10147 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10148 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10149 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10150 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10151 s,@lamdir@,$lamdir,;t t
10152 s,@mpienable@,$mpienable,;t t
10153 s,@cgibindir@,$cgibindir,;t t
10154 s,@cgibinurl@,$cgibinurl,;t t
10155 s,@webdatadir@,$webdatadir,;t t
10156 s,@webdataurl@,$webdataurl,;t t
10157 s,@htmldir@,$htmldir,;t t
10158 s,@cgiprograms@,$cgiprograms,;t t
10159 s,@htmldata@,$htmldata,;t t
10160 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10161 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10162 s,@webenabled@,$webenabled,;t t
10163 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10164 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10165 s,@X_CFLAGS@,$X_CFLAGS,;t t
10166 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10167 s,@X_LIBS@,$X_LIBS,;t t
10168 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10169 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10170 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10171 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10172 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10173 s,@my_includes@,$my_includes,;t t
10174 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10175 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10176 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10177 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10178 s,@wxcflags@,$wxcflags,;t t
10179 s,@wxlibs@,$wxlibs,;t t
10180 s,@ctlibs@,$ctlibs,;t t
10181 s,@lamprograms@,$lamprograms,;t t
10182 s,@lamdefs@,$lamdefs,;t t
10183 s,@LIBOBJS@,$LIBOBJS,;t t
10184 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10189 cat >>$CONFIG_STATUS <<\_ACEOF
10190 # Split the substitutions into bite-sized pieces for seds with
10191 # small command number limits, like on Digital OSF/1 and HP-UX.
10192 ac_max_sed_lines=48
10193 ac_sed_frag=1 # Number of current file.
10194 ac_beg=1 # First line for current file.
10195 ac_end=$ac_max_sed_lines # Line after last line for current file.
10198 while $ac_more_lines; do
10199 if test $ac_beg -gt 1; then
10200 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10202 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10204 if test ! -s $tmp/subs.frag; then
10205 ac_more_lines=false
10207 # The purpose of the label and of the branching condition is to
10208 # speed up the sed processing (if there are no `@' at all, there
10209 # is no need to browse any of the substitutions).
10210 # These are the two extra sed commands mentioned above.
10212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10213 if test -z "$ac_sed_cmds"; then
10214 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10216 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10218 ac_sed_frag=`expr $ac_sed_frag + 1`
10220 ac_end=`expr $ac_end + $ac_max_sed_lines`
10223 if test -z "$ac_sed_cmds"; then
10226 fi # test -n "$CONFIG_FILES"
10229 cat >>$CONFIG_STATUS <<\_ACEOF
10230 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10233 - | *:- | *:-:* ) # input from stdin
10235 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10237 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10239 * ) ac_file_in=$ac_file.in ;;
10242 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10243 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10245 X"$ac_file" : 'X\(//\)[^/]' \| \
10246 X"$ac_file" : 'X\(//\)$' \| \
10247 X"$ac_file" : 'X\(/\)' \| \
10248 . : '\(.\)' 2>/dev/null ||
10250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10252 /^X\(\/\/\)$/{ s//\1/; q; }
10253 /^X\(\/\).*/{ s//\1/; q; }
10255 { if $as_mkdir_p; then
10260 while test ! -d "$as_dir"; do
10261 as_dirs="$as_dir $as_dirs"
10262 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10264 X"$as_dir" : 'X\(//\)[^/]' \| \
10265 X"$as_dir" : 'X\(//\)$' \| \
10266 X"$as_dir" : 'X\(/\)' \| \
10267 . : '\(.\)' 2>/dev/null ||
10269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10271 /^X\(\/\/\)$/{ s//\1/; q; }
10272 /^X\(\/\).*/{ s//\1/; q; }
10275 test ! -n "$as_dirs" || mkdir $as_dirs
10276 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10278 { (exit 1); exit 1; }; }; }
10282 if test "$ac_dir" != .; then
10283 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10284 # A "../" for each directory in $ac_dir_suffix.
10285 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10287 ac_dir_suffix= ac_top_builddir=
10291 .) # No --srcdir option. We are building in place.
10293 if test -z "$ac_top_builddir"; then
10296 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10298 [\\/]* | ?:[\\/]* ) # Absolute path.
10299 ac_srcdir=$srcdir$ac_dir_suffix;
10300 ac_top_srcdir=$srcdir ;;
10301 *) # Relative path.
10302 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10303 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10305 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10307 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10308 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10309 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10310 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10315 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10318 if test x"$ac_file" != x-; then
10319 { echo "$as_me:$LINENO: creating $ac_file" >&5
10320 echo "$as_me: creating $ac_file" >&6;}
10323 # Let's still pretend it is `configure' which instantiates (i.e., don't
10324 # use $as_me), people would be surprised to read:
10325 # /* config.h. Generated by config.status. */
10326 if test x"$ac_file" = x-; then
10329 configure_input="$ac_file. "
10331 configure_input=$configure_input"Generated from `echo $ac_file_in |
10332 sed 's,.*/,,'` by configure."
10334 # First look for the input files in the build tree, otherwise in the
10336 ac_file_inputs=`IFS=:
10337 for f in $ac_file_in; do
10339 -) echo $tmp/stdin ;;
10341 # Absolute (can't be DOS-style, as IFS=:)
10342 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10343 echo "$as_me: error: cannot find input file: $f" >&2;}
10344 { (exit 1); exit 1; }; }
10347 if test -f "$f"; then
10350 elif test -f "$srcdir/$f"; then
10355 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10356 echo "$as_me: error: cannot find input file: $f" >&2;}
10357 { (exit 1); exit 1; }; }
10360 done` || { (exit 1); exit 1; }
10362 cat >>$CONFIG_STATUS <<_ACEOF
10366 cat >>$CONFIG_STATUS <<\_ACEOF
10368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10369 s,@configure_input@,$configure_input,;t t
10370 s,@srcdir@,$ac_srcdir,;t t
10371 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10372 s,@top_srcdir@,$ac_top_srcdir,;t t
10373 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10374 s,@builddir@,$ac_builddir,;t t
10375 s,@abs_builddir@,$ac_abs_builddir,;t t
10376 s,@top_builddir@,$ac_top_builddir,;t t
10377 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10378 s,@INSTALL@,$ac_INSTALL,;t t
10379 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10381 if test x"$ac_file" != x-; then
10382 mv $tmp/out $ac_file
10390 cat >>$CONFIG_STATUS <<\_ACEOF
10393 # CONFIG_HEADER section.
10396 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10397 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10399 # ac_d sets the value in "#define NAME VALUE" lines.
10400 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10401 ac_dB='[ ].*$,\1#\2'
10404 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10405 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10406 ac_uB='$,\1#\2define\3'
10410 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10413 - | *:- | *:-:* ) # input from stdin
10415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10419 * ) ac_file_in=$ac_file.in ;;
10422 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10423 echo "$as_me: creating $ac_file" >&6;}
10425 # First look for the input files in the build tree, otherwise in the
10427 ac_file_inputs=`IFS=:
10428 for f in $ac_file_in; do
10430 -) echo $tmp/stdin ;;
10432 # Absolute (can't be DOS-style, as IFS=:)
10433 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10434 echo "$as_me: error: cannot find input file: $f" >&2;}
10435 { (exit 1); exit 1; }; }
10438 if test -f "$f"; then
10441 elif test -f "$srcdir/$f"; then
10446 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10447 echo "$as_me: error: cannot find input file: $f" >&2;}
10448 { (exit 1); exit 1; }; }
10451 done` || { (exit 1); exit 1; }
10452 # Remove the trailing spaces.
10453 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10457 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10458 # `conftest.undefs', that substitutes the proper values into
10459 # config.h.in to produce config.h. The first handles `#define'
10460 # templates, and the second `#undef' templates.
10461 # And first: Protect against being on the right side of a sed subst in
10462 # config.status. Protect against being in an unquoted here document
10463 # in config.status.
10464 rm -f conftest.defines conftest.undefs
10465 # Using a here document instead of a string reduces the quoting nightmare.
10466 # Putting comments in sed scripts is not portable.
10468 # `end' is used to avoid that the second main sed command (meant for
10469 # 0-ary CPP macros) applies to n-ary macro definitions.
10470 # See the Autoconf documentation for `clear'.
10471 cat >confdef2sed.sed <<\_ACEOF
10476 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10478 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10481 # If some macros were called several times there might be several times
10482 # the same #defines, which is useless. Nevertheless, we may not want to
10483 # sort them, since we want the *last* AC-DEFINE to be honored.
10484 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10485 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10486 rm -f confdef2sed.sed
10488 # This sed command replaces #undef with comments. This is necessary, for
10489 # example, in the case of _POSIX_SOURCE, which is predefined and required
10490 # on some systems where configure will not decide to define it.
10491 cat >>conftest.undefs <<\_ACEOF
10492 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10495 # Break up conftest.defines because some shells have a limit on the size
10496 # of here documents, and old seds have small limits too (100 cmds).
10497 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10498 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10499 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10500 echo ' :' >>$CONFIG_STATUS
10501 rm -f conftest.tail
10502 while grep . conftest.defines >/dev/null
10504 # Write a limited-size here document to $tmp/defines.sed.
10505 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10506 # Speed up: don't consider the non `#define' lines.
10507 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10508 # Work around the forget-to-reset-the-flag bug.
10509 echo 't clr' >>$CONFIG_STATUS
10510 echo ': clr' >>$CONFIG_STATUS
10511 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10513 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10515 mv $tmp/out $tmp/in
10517 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10518 rm -f conftest.defines
10519 mv conftest.tail conftest.defines
10521 rm -f conftest.defines
10522 echo ' fi # grep' >>$CONFIG_STATUS
10523 echo >>$CONFIG_STATUS
10525 # Break up conftest.undefs because some shells have a limit on the size
10526 # of here documents, and old seds have small limits too (100 cmds).
10527 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10528 rm -f conftest.tail
10529 while grep . conftest.undefs >/dev/null
10531 # Write a limited-size here document to $tmp/undefs.sed.
10532 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10533 # Speed up: don't consider the non `#undef'
10534 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10535 # Work around the forget-to-reset-the-flag bug.
10536 echo 't clr' >>$CONFIG_STATUS
10537 echo ': clr' >>$CONFIG_STATUS
10538 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10540 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10542 mv $tmp/out $tmp/in
10544 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10545 rm -f conftest.undefs
10546 mv conftest.tail conftest.undefs
10548 rm -f conftest.undefs
10550 cat >>$CONFIG_STATUS <<\_ACEOF
10551 # Let's still pretend it is `configure' which instantiates (i.e., don't
10552 # use $as_me), people would be surprised to read:
10553 # /* config.h. Generated by config.status. */
10554 if test x"$ac_file" = x-; then
10555 echo "/* Generated by configure. */" >$tmp/config.h
10557 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10559 cat $tmp/in >>$tmp/config.h
10561 if test x"$ac_file" != x-; then
10562 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10563 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10564 echo "$as_me: $ac_file is unchanged" >&6;}
10566 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10568 X"$ac_file" : 'X\(//\)[^/]' \| \
10569 X"$ac_file" : 'X\(//\)$' \| \
10570 X"$ac_file" : 'X\(/\)' \| \
10571 . : '\(.\)' 2>/dev/null ||
10573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10575 /^X\(\/\/\)$/{ s//\1/; q; }
10576 /^X\(\/\).*/{ s//\1/; q; }
10578 { if $as_mkdir_p; then
10583 while test ! -d "$as_dir"; do
10584 as_dirs="$as_dir $as_dirs"
10585 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10587 X"$as_dir" : 'X\(//\)[^/]' \| \
10588 X"$as_dir" : 'X\(//\)$' \| \
10589 X"$as_dir" : 'X\(/\)' \| \
10590 . : '\(.\)' 2>/dev/null ||
10592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10594 /^X\(\/\/\)$/{ s//\1/; q; }
10595 /^X\(\/\).*/{ s//\1/; q; }
10598 test ! -n "$as_dirs" || mkdir $as_dirs
10599 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10600 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10601 { (exit 1); exit 1; }; }; }
10604 mv $tmp/config.h $ac_file
10608 rm -f $tmp/config.h
10612 cat >>$CONFIG_STATUS <<\_ACEOF
10615 # CONFIG_COMMANDS section.
10617 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10618 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10619 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10620 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10621 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10622 X"$ac_dest" : 'X\(//\)[^/]' \| \
10623 X"$ac_dest" : 'X\(//\)$' \| \
10624 X"$ac_dest" : 'X\(/\)' \| \
10625 . : '\(.\)' 2>/dev/null ||
10627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10629 /^X\(\/\/\)$/{ s//\1/; q; }
10630 /^X\(\/\).*/{ s//\1/; q; }
10634 if test "$ac_dir" != .; then
10635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10636 # A "../" for each directory in $ac_dir_suffix.
10637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10639 ac_dir_suffix= ac_top_builddir=
10643 .) # No --srcdir option. We are building in place.
10645 if test -z "$ac_top_builddir"; then
10648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10650 [\\/]* | ?:[\\/]* ) # Absolute path.
10651 ac_srcdir=$srcdir$ac_dir_suffix;
10652 ac_top_srcdir=$srcdir ;;
10653 *) # Relative path.
10654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10655 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10657 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10659 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10660 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10661 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10662 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10665 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10666 echo "$as_me: executing $ac_dest commands" >&6;}
10668 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10673 cat >>$CONFIG_STATUS <<\_ACEOF
10675 { (exit 0); exit 0; }
10677 chmod +x $CONFIG_STATUS
10678 ac_clean_files=$ac_clean_files_save
10681 # configure is writing to config.log, and then calls config.status.
10682 # config.status does its own redirection, appending to config.log.
10683 # Unfortunately, on DOS this fails, as config.log is still kept open
10684 # by configure, so config.status won't be able to write to it; its
10685 # output is simply discarded. So we exec the FD to /dev/null,
10686 # effectively closing config.log, so it can be properly (re)opened and
10687 # appended to by config.status. When coming back to configure, we
10688 # need to make the FD available again.
10689 if test "$no_create" != yes; then
10691 ac_config_status_args=
10692 test "$silent" = yes &&
10693 ac_config_status_args="$ac_config_status_args --quiet"
10695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10698 # would make configure fail if this is the last instruction.
10699 $ac_cs_success || { (exit 1); exit 1; }