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 ||
7678 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7680 cat >>confdefs.h <<\_ACEOF
7681 #define HAVE_SSTREAM 1
7684 echo "$as_me:$LINENO: result: yes" >&5
7685 echo "${ECHO_T}yes" >&6
7687 echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6
7691 CFLAGS="$CFLAGS -Wall"
7692 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7693 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7694 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7695 if test "${enable_verbose_warnings+set}" = set; then
7696 enableval="$enable_verbose_warnings"
7697 case "$enableval" in
7699 echo "$as_me:$LINENO: result: yes" >&5
7700 echo "${ECHO_T}yes" >&6
7701 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7704 echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7709 echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7714 echo "$as_me:$LINENO: checking static executables" >&5
7715 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7716 # Check whether --enable-static or --disable-static was given.
7717 if test "${enable_static+set}" = set; then
7718 enableval="$enable_static"
7719 case "$enableval" in
7721 echo "$as_me:$LINENO: result: yes" >&5
7722 echo "${ECHO_T}yes" >&6
7723 CFLAGS="$CFLAGS --static"
7726 echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6
7731 echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6
7737 # Check whether --with-lam or --without-lam was given.
7738 if test "${with_lam+set}" = set; then
7740 if test "$withval" != "no" ; then
7746 if test "$withval" != "no" ; then
7747 if test "$prefix" != "NONE" ; then
7748 trylamdir="$trylamdir $prefix"
7751 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7752 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7753 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7754 if test -x "$testlamdir/bin/hcp" ; then
7755 if test "$testlamdir" != "/usr"; then
7756 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7757 CFLAGS="$CFLAGS -I$testlamdir/include"
7759 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7760 lamdir="$testlamdir"
7767 echo "$as_me:$LINENO: result: $lamdir" >&5
7768 echo "${ECHO_T}$lamdir" >&6
7770 echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6
7776 # Check whether --with-ctn or --without-ctn was given.
7777 if test "${with_ctn+set}" = set; then
7779 if test "$withval" != "no" ; then
7785 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7786 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7787 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7788 echo "$as_me:$LINENO: result: disabled" >&5
7789 echo "${ECHO_T}disabled" >&6
7791 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7792 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7793 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7794 if test -f "$testctndir/libctn.a" ; then
7795 LDFLAGS="$LDFLAGS -L$testctndir"
7800 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7801 if test -f "$testctndir/ctn_os.h" ; then
7802 CFLAGS="$CFLAGS -I$testctndir"
7807 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7810 cat >>confdefs.h <<\_ACEOF
7811 #define HAVE_CTN_DICOM 1
7814 echo "$as_me:$LINENO: result: yes" >&5
7815 echo "${ECHO_T}yes" >&6
7817 echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6
7822 echo "$as_me:$LINENO: checking for web access" >&5
7823 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7825 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7826 if test "${with_cgibin_dir+set}" = set; then
7827 withval="$with_cgibin_dir"
7828 cgibindir=$withval ;
7832 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7833 if test "${with_cgibin_url+set}" = set; then
7834 withval="$with_cgibin_url"
7835 cgibinurl=$withval ;
7839 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7840 if test "${with_webdata_dir+set}" = set; then
7841 withval="$with_webdata_dir"
7842 webdatadir=$withval ;
7846 # Check whether --with-webdata-url or --without-webdata-url was given.
7847 if test "${with_webdata_url+set}" = set; then
7848 withval="$with_webdata_url"
7849 webdataurl=$withval ;
7853 # Check whether --with-html-dir or --without-html-dir was given.
7854 if test "${with_html_dir+set}" = set; then
7855 withval="$with_html_dir"
7859 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7860 cgiprograms="ctsim.cgi ctsim.conf"
7864 if test -n "$htmldir" ; then
7865 htmldata=simulate.html
7870 if test -n "$htmldir"; then
7878 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7881 echo "$as_me:$LINENO: result: yes" >&5
7882 echo "${ECHO_T}yes" >&6
7883 if test -z "$cgibindir" ; then
7884 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7885 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7886 { (exit 1); exit 1; }; }
7887 elif test -z "$cgibinurl" ; then
7888 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7889 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7890 { (exit 1); exit 1; }; }
7891 elif test -z "$webdatadir" ; then
7892 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7893 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7894 { (exit 1); exit 1; }; }
7895 elif test -z "$webdataurl" ; then
7896 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7897 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7898 { (exit 1); exit 1; }; }
7899 elif test -z "$htmldir" ; then
7900 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7901 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7902 { (exit 1); exit 1; }; }
7905 echo "$as_me:$LINENO: result: no" >&5
7906 echo "${ECHO_T}no" >&6
7911 if test -n "$lamdir"; then
7920 echo "$as_me:$LINENO: checking for X" >&5
7921 echo $ECHO_N "checking for X... $ECHO_C" >&6
7924 # Check whether --with-x or --without-x was given.
7925 if test "${with_x+set}" = set; then
7929 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7930 if test "x$with_x" = xno; then
7931 # The user explicitly disabled X.
7934 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7935 # Both variables are already set.
7938 if test "${ac_cv_have_x+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 # One or both of the vars are not set, and there is no cached value.
7942 ac_x_includes=no ac_x_libraries=no
7944 if mkdir conftest.dir; then
7946 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7947 cat >Imakefile <<'_ACEOF'
7949 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7951 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7952 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7953 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7954 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7955 for ac_extension in a so sl; do
7956 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7957 test -f $ac_im_libdir/libX11.$ac_extension; then
7958 ac_im_usrlibdir=$ac_im_libdir; break
7961 # Screen out bogus values from the imake configuration. They are
7962 # bogus both because they are the default anyway, and because
7963 # using them would break gcc on systems where it needs fixed includes.
7964 case $ac_im_incroot in
7966 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7968 case $ac_im_usrlibdir in
7970 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7977 # Standard set of common directories for X headers.
7978 # Check X11 before X11Rn because it is often a symlink to the current release.
7990 /usr/local/X11/include
7991 /usr/local/X11R6/include
7992 /usr/local/X11R5/include
7993 /usr/local/X11R4/include
7995 /usr/local/include/X11
7996 /usr/local/include/X11R6
7997 /usr/local/include/X11R5
7998 /usr/local/include/X11R4
8002 /usr/XFree86/include/X11
8006 /usr/unsupported/include
8008 /usr/local/x11r5/include
8009 /usr/lpp/Xamples/include
8011 /usr/openwin/include
8012 /usr/openwin/share/include'
8014 if test "$ac_x_includes" = no; then
8015 # Guess where to find include files, by looking for Intrinsic.h.
8016 # First, try using that file with no special directory specified.
8017 cat >conftest.$ac_ext <<_ACEOF
8018 #line $LINENO "configure"
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 #include <X11/Intrinsic.h>
8026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } >/dev/null; then
8034 if test -s conftest.err; then
8035 ac_cpp_err=$ac_c_preproc_warn_flag
8042 if test -z "$ac_cpp_err"; then
8043 # We can compile using X headers with no special include directory.
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 for ac_dir in $ac_x_header_dirs; do
8050 if test -r "$ac_dir/X11/Intrinsic.h"; then
8051 ac_x_includes=$ac_dir
8056 rm -f conftest.err conftest.$ac_ext
8057 fi # $ac_x_includes = no
8059 if test "$ac_x_libraries" = no; then
8060 # Check for the libraries.
8061 # See if we find them without any special options.
8062 # Don't add to $LIBS permanently.
8065 cat >conftest.$ac_ext <<_ACEOF
8066 #line $LINENO "configure"
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 #include <X11/Intrinsic.h>
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest$ac_exeext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8094 # We can link X programs with no special library path.
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8101 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8103 # Don't even attempt the hair of trying to link an X program!
8104 for ac_extension in a so sl; do
8105 if test -r $ac_dir/libXt.$ac_extension; then
8106 ac_x_libraries=$ac_dir
8112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8113 fi # $ac_x_libraries = no
8115 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8116 # Didn't find X anywhere. Cache the known absence of X.
8117 ac_cv_have_x="have_x=no"
8119 # Record where we found X for the cache.
8120 ac_cv_have_x="have_x=yes \
8121 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8126 eval "$ac_cv_have_x"
8129 if test "$have_x" != yes; then
8130 echo "$as_me:$LINENO: result: $have_x" >&5
8131 echo "${ECHO_T}$have_x" >&6
8134 # If each of the values was on the command line, it overrides each guess.
8135 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8136 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8137 # Update the cache value to reflect the command line values.
8138 ac_cv_have_x="have_x=yes \
8139 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8140 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8141 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8144 if test "$no_x" = yes; then
8145 # Not all programs may use this symbol, but it does not hurt to define it.
8147 cat >>confdefs.h <<\_ACEOF
8148 #define X_DISPLAY_MISSING 1
8151 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8153 if test -n "$x_includes"; then
8154 X_CFLAGS="$X_CFLAGS -I$x_includes"
8157 # It would also be nice to do this for all -L options, not just this one.
8158 if test -n "$x_libraries"; then
8159 X_LIBS="$X_LIBS -L$x_libraries"
8160 # For Solaris; some versions of Sun CC require a space after -R and
8161 # others require no space. Words are not sufficient . . . .
8162 case `(uname -sr) 2>/dev/null` in
8164 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8165 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8166 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8167 cat >conftest.$ac_ext <<_ACEOF
8168 #line $LINENO "configure"
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8185 (eval $ac_link) 2>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } &&
8189 { ac_try='test -s conftest$ac_exeext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8203 if test $ac_R_nospace = yes; then
8204 echo "$as_me:$LINENO: result: no" >&5
8205 echo "${ECHO_T}no" >&6
8206 X_LIBS="$X_LIBS -R$x_libraries"
8208 LIBS="$ac_xsave_LIBS -R $x_libraries"
8209 cat >conftest.$ac_ext <<_ACEOF
8210 #line $LINENO "configure"
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -s conftest$ac_exeext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8245 if test $ac_R_space = yes; then
8246 echo "$as_me:$LINENO: result: yes" >&5
8247 echo "${ECHO_T}yes" >&6
8248 X_LIBS="$X_LIBS -R $x_libraries"
8250 echo "$as_me:$LINENO: result: neither works" >&5
8251 echo "${ECHO_T}neither works" >&6
8258 # Check for system-dependent libraries X programs must link with.
8259 # Do this before checking for the system-independent R6 libraries
8260 # (-lICE), since we may need -lsocket or whatever for X linking.
8262 if test "$ISC" = yes; then
8263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8265 # Martyn Johnson says this is needed for Ultrix, if the X
8266 # libraries were built with DECnet support. And Karl Berry says
8267 # the Alpha needs dnet_stub (dnet does not exist).
8268 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8269 cat >conftest.$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8277 /* Override any gcc2 internal prototype to avoid an error. */
8281 /* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8283 char XOpenDisplay ();
8292 rm -f conftest.$ac_objext conftest$ac_exeext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8294 (eval $ac_link) 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -s conftest$ac_exeext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8310 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8311 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 ac_check_lib_save_LIBS=$LIBS
8316 cat >conftest.$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8324 /* Override any gcc2 internal prototype to avoid an error. */
8328 /* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341 (eval $ac_link) 2>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -s conftest$ac_exeext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_cv_lib_dnet_dnet_ntoa=yes
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 ac_cv_lib_dnet_dnet_ntoa=no
8358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8359 LIBS=$ac_check_lib_save_LIBS
8361 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8362 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8363 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8364 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8367 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8368 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8369 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8370 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 ac_check_lib_save_LIBS=$LIBS
8374 LIBS="-ldnet_stub $LIBS"
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8383 /* Override any gcc2 internal prototype to avoid an error. */
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8410 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_lib_dnet_stub_dnet_ntoa=no
8417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8418 LIBS=$ac_check_lib_save_LIBS
8420 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8421 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8422 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8423 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8429 LIBS="$ac_xsave_LIBS"
8431 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8432 # to get the SysV transport functions.
8433 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8435 # The nsl library prevents programs from opening the X display
8436 # on Irix 5.2, according to T.E. Dickey.
8437 # The functions gethostbyname, getservbyname, and inet_addr are
8438 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8439 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8440 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8441 if test "${ac_cv_func_gethostbyname+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8445 #line $LINENO "configure"
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 /* System header to define __stub macros and hopefully few prototypes,
8452 which can conflict with char gethostbyname (); below.
8453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8454 <limits.h> exists even on freestanding compilers. */
8456 # include <limits.h>
8458 # include <assert.h>
8460 /* Override any gcc2 internal prototype to avoid an error. */
8465 /* We use char because int might match the return type of a gcc2
8466 builtin and then its argument prototype would still apply. */
8467 char gethostbyname ();
8468 /* The GNU C library defines this for functions which it implements
8469 to always fail with ENOSYS. Some functions are actually named
8470 something starting with __ and the normal name is an alias. */
8471 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8474 char (*f) () = gethostbyname;
8483 return f != gethostbyname;
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_func_gethostbyname=yes
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 ac_cv_func_gethostbyname=no
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8510 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8512 if test $ac_cv_func_gethostbyname = no; then
8513 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8514 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8515 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 ac_check_lib_save_LIBS=$LIBS
8520 cat >conftest.$ac_ext <<_ACEOF
8521 #line $LINENO "configure"
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8528 /* Override any gcc2 internal prototype to avoid an error. */
8532 /* We use char because int might match the return type of a gcc2
8533 builtin and then its argument prototype would still apply. */
8534 char gethostbyname ();
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8545 (eval $ac_link) 2>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -s conftest$ac_exeext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_lib_nsl_gethostbyname=yes
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8560 ac_cv_lib_nsl_gethostbyname=no
8562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8563 LIBS=$ac_check_lib_save_LIBS
8565 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8566 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8567 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8571 if test $ac_cv_lib_nsl_gethostbyname = no; then
8572 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8573 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8574 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 ac_check_lib_save_LIBS=$LIBS
8579 cat >conftest.$ac_ext <<_ACEOF
8580 #line $LINENO "configure"
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8587 /* Override any gcc2 internal prototype to avoid an error. */
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8593 char gethostbyname ();
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -s conftest$ac_exeext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 ac_cv_lib_bsd_gethostbyname=yes
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 ac_cv_lib_bsd_gethostbyname=no
8621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8622 LIBS=$ac_check_lib_save_LIBS
8624 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8625 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8626 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8627 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8633 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8634 # socket/setsockopt and other routines are undefined under SCO ODT
8635 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8636 # on later versions), says Simon Leinen: it contains gethostby*
8637 # variants that don't use the name server (or something). -lsocket
8638 # must be given before -lnsl if both are needed. We assume that
8639 # if connect needs -lnsl, so does gethostbyname.
8640 echo "$as_me:$LINENO: checking for connect" >&5
8641 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8642 if test "${ac_cv_func_connect+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 cat >conftest.$ac_ext <<_ACEOF
8646 #line $LINENO "configure"
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 /* System header to define __stub macros and hopefully few prototypes,
8653 which can conflict with char connect (); below.
8654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8655 <limits.h> exists even on freestanding compilers. */
8657 # include <limits.h>
8659 # include <assert.h>
8661 /* Override any gcc2 internal prototype to avoid an error. */
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8669 /* The GNU C library defines this for functions which it implements
8670 to always fail with ENOSYS. Some functions are actually named
8671 something starting with __ and the normal name is an alias. */
8672 #if defined (__stub_connect) || defined (__stub___connect)
8675 char (*f) () = connect;
8684 return f != connect;
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } &&
8695 { ac_try='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_cv_func_connect=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_func_connect=no
8708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8710 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8711 echo "${ECHO_T}$ac_cv_func_connect" >&6
8713 if test $ac_cv_func_connect = no; then
8714 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8715 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8716 if test "${ac_cv_lib_socket_connect+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 ac_check_lib_save_LIBS=$LIBS
8720 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8721 cat >conftest.$ac_ext <<_ACEOF
8722 #line $LINENO "configure"
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8729 /* Override any gcc2 internal prototype to avoid an error. */
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -s conftest$ac_exeext'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; }; then
8756 ac_cv_lib_socket_connect=yes
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 ac_cv_lib_socket_connect=no
8763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8764 LIBS=$ac_check_lib_save_LIBS
8766 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8767 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8768 if test $ac_cv_lib_socket_connect = yes; then
8769 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8774 # Guillermo Gomez says -lposix is necessary on A/UX.
8775 echo "$as_me:$LINENO: checking for remove" >&5
8776 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8777 if test "${ac_cv_func_remove+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8781 #line $LINENO "configure"
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787 /* System header to define __stub macros and hopefully few prototypes,
8788 which can conflict with char remove (); below.
8789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8790 <limits.h> exists even on freestanding compilers. */
8792 # include <limits.h>
8794 # include <assert.h>
8796 /* Override any gcc2 internal prototype to avoid an error. */
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8804 /* The GNU C library defines this for functions which it implements
8805 to always fail with ENOSYS. Some functions are actually named
8806 something starting with __ and the normal name is an alias. */
8807 #if defined (__stub_remove) || defined (__stub___remove)
8810 char (*f) () = remove;
8824 rm -f conftest.$ac_objext conftest$ac_exeext
8825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8826 (eval $ac_link) 2>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_func_remove=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_cv_func_remove=no
8843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8845 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8846 echo "${ECHO_T}$ac_cv_func_remove" >&6
8848 if test $ac_cv_func_remove = no; then
8849 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8850 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8851 if test "${ac_cv_lib_posix_remove+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 ac_check_lib_save_LIBS=$LIBS
8855 LIBS="-lposix $LIBS"
8856 cat >conftest.$ac_ext <<_ACEOF
8857 #line $LINENO "configure"
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8864 /* Override any gcc2 internal prototype to avoid an error. */
8868 /* We use char because int might match the return type of a gcc2
8869 builtin and then its argument prototype would still apply. */
8879 rm -f conftest.$ac_objext conftest$ac_exeext
8880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8881 (eval $ac_link) 2>&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_lib_posix_remove=yes
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8896 ac_cv_lib_posix_remove=no
8898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8899 LIBS=$ac_check_lib_save_LIBS
8901 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8902 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8903 if test $ac_cv_lib_posix_remove = yes; then
8904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8909 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8910 echo "$as_me:$LINENO: checking for shmat" >&5
8911 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8912 if test "${ac_cv_func_shmat+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8916 #line $LINENO "configure"
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 /* System header to define __stub macros and hopefully few prototypes,
8923 which can conflict with char shmat (); below.
8924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8925 <limits.h> exists even on freestanding compilers. */
8927 # include <limits.h>
8929 # include <assert.h>
8931 /* Override any gcc2 internal prototype to avoid an error. */
8936 /* We use char because int might match the return type of a gcc2
8937 builtin and then its argument prototype would still apply. */
8939 /* The GNU C library defines this for functions which it implements
8940 to always fail with ENOSYS. Some functions are actually named
8941 something starting with __ and the normal name is an alias. */
8942 #if defined (__stub_shmat) || defined (__stub___shmat)
8945 char (*f) () = shmat;
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8961 (eval $ac_link) 2>&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -s conftest$ac_exeext'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 ac_cv_func_shmat=yes
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8980 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8981 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8983 if test $ac_cv_func_shmat = no; then
8984 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8985 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8986 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 ac_check_lib_save_LIBS=$LIBS
8991 cat >conftest.$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8999 /* Override any gcc2 internal prototype to avoid an error. */
9003 /* We use char because int might match the return type of a gcc2
9004 builtin and then its argument prototype would still apply. */
9014 rm -f conftest.$ac_objext conftest$ac_exeext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9016 (eval $ac_link) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -s conftest$ac_exeext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 ac_cv_lib_ipc_shmat=yes
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_lib_ipc_shmat=no
9033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9034 LIBS=$ac_check_lib_save_LIBS
9036 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9037 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9038 if test $ac_cv_lib_ipc_shmat = yes; then
9039 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9045 # Check for libraries that X11R6 Xt/Xaw programs need.
9046 ac_save_LDFLAGS=$LDFLAGS
9047 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9048 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9049 # check for ICE first), but we must link in the order -lSM -lICE or
9050 # we get undefined symbols. So assume we have SM if we have ICE.
9051 # These have to be linked with before -lX11, unlike the other
9052 # libraries we check for below, so use a different variable.
9053 # John Interrante, Karl Berry
9054 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9055 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9056 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 ac_check_lib_save_LIBS=$LIBS
9060 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9061 cat >conftest.$ac_ext <<_ACEOF
9062 #line $LINENO "configure"
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9069 /* Override any gcc2 internal prototype to avoid an error. */
9073 /* We use char because int might match the return type of a gcc2
9074 builtin and then its argument prototype would still apply. */
9075 char IceConnectionNumber ();
9079 IceConnectionNumber ();
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086 (eval $ac_link) 2>&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } &&
9090 { ac_try='test -s conftest$ac_exeext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_cv_lib_ICE_IceConnectionNumber=yes
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 ac_cv_lib_ICE_IceConnectionNumber=no
9103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9104 LIBS=$ac_check_lib_save_LIBS
9106 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9107 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9108 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9109 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9112 LDFLAGS=$ac_save_LDFLAGS
9123 X_TOOLKIT_LIBS="-lXt"
9124 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9126 our_saved_LDFLAGS="$LDFLAGS"
9127 LDFLAGS="$X_LIBS $LDFLAGS"
9128 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9129 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9130 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9133 ac_check_lib_save_LIBS=$LIBS
9134 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9135 cat >conftest.$ac_ext <<_ACEOF
9136 #line $LINENO "configure"
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9143 /* Override any gcc2 internal prototype to avoid an error. */
9147 /* We use char because int might match the return type of a gcc2
9148 builtin and then its argument prototype would still apply. */
9149 char XtToolkitThreadInitialize ();
9153 XtToolkitThreadInitialize ();
9158 rm -f conftest.$ac_objext conftest$ac_exeext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9160 (eval $ac_link) 2>&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -s conftest$ac_exeext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9180 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9181 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9182 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9184 cat >>confdefs.h <<\_ACEOF
9185 #define X_THREAD_SUPPORT 1
9190 LDFLAGS="$our_saved_LDFLAGS"
9194 if test "x$no_x" = "xyes"; then
9202 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9205 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9207 echo "$as_me:$LINENO: checking for X" >&5
9208 echo $ECHO_N "checking for X... $ECHO_C" >&6
9209 if test "$no_x" != "yes" ; then
9211 cat >>confdefs.h <<\_ACEOF
9215 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9216 my_includes="$my_includes -I/usr/X11R6/include"
9217 ctlib_graphics="$ctlibs_base -lctgraphics"
9218 echo "$as_me:$LINENO: result: yes" >&5
9219 echo "${ECHO_T}yes" >&6
9220 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9221 if test "$libgl" = "true" ; then
9222 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
9223 if test "$wxwin" = "true" ; then
9224 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9227 if test "$wxwin" = "true" ; then
9229 cat >>confdefs.h <<\_ACEOF
9244 echo "$as_me:$LINENO: result: no" >&5
9245 echo "${ECHO_T}no" >&6
9248 if test "$png" = "true" ; then
9249 ctlibs_tools="$ctlibs_tools -lpng"
9251 if test "$zlib" = "true" ; then
9252 ctlibs_tools="$ctlibs_tools -lz"
9254 if test "$fftw" = "true" ; then
9255 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9257 if test "$ctn" = "true"; then
9258 ctlibs_tools="$ctlibs_tools -lctn"
9261 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9262 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9263 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-ldmallocxx $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 ac_cv_lib_dmallocxx_main=yes
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_lib_dmallocxx_main=no
9304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9307 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9308 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9309 if test $ac_cv_lib_dmallocxx_main = yes; then
9315 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9316 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9317 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9318 if test "${enable_dmalloc+set}" = set; then
9319 enableval="$enable_dmalloc"
9320 case "${enableval}" in
9321 yes) usedmalloc=true
9322 echo "$as_me:$LINENO: result: yes" >&5
9323 echo "${ECHO_T}yes" >&6
9325 no) usedmalloc=false
9326 echo "$as_me:$LINENO: result: no" >&5
9327 echo "${ECHO_T}no" >&6
9329 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9330 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9334 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6
9338 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9339 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_DMALLOC 1
9345 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9346 echo "${ECHO_T}Using dmalloc" >&6
9349 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9350 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9351 if test "${ac_cv_lib_efence_main+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 ac_check_lib_save_LIBS=$LIBS
9355 LIBS="-lefence $LIBS"
9356 cat >conftest.$ac_ext <<_ACEOF
9357 #line $LINENO "configure"
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9373 rm -f conftest.$ac_objext conftest$ac_exeext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9375 (eval $ac_link) 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_lib_efence_main=yes
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 ac_cv_lib_efence_main=no
9392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9393 LIBS=$ac_check_lib_save_LIBS
9395 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9396 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9397 if test $ac_cv_lib_efence_main = yes; then
9403 echo "$as_me:$LINENO: checking for enable-efence" >&5
9404 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9405 # Check whether --enable-efence or --disable-efence was given.
9406 if test "${enable_efence+set}" = set; then
9407 enableval="$enable_efence"
9408 case "${enableval}" in
9410 echo "$as_me:$LINENO: result: yes" >&5
9411 echo "${ECHO_T}yes" >&6
9414 echo "$as_me:$LINENO: result: no" >&5
9415 echo "${ECHO_T}no" >&6
9417 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9418 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9422 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9423 echo "${ECHO_T}no" >&6
9426 if test "$efence" = "true" -a "$useefence" = "true" ; then
9427 ctlibs_tools="$ctlibs_tools -lefence"
9429 cat >>confdefs.h <<\_ACEOF
9430 #define HAVE_EFENCE 1
9433 echo "$as_me:$LINENO: result: Using efence" >&5
9434 echo "${ECHO_T}Using efence" >&6
9437 if test "$wxwin" = "true" ; then
9438 if test "$wx_gtk" = "true" ; then
9439 wxcflags=`$wxconfig --cflags`
9440 wxlibs=`$wxconfig --libs`
9442 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9443 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9445 CFLAGS="$CFLAGS -I../include $wxcflags"
9446 ctlib_graphics="$ctlib_graphics $wxlibs"
9450 HAVE_WXWINDOWS_TRUE=
9451 HAVE_WXWINDOWS_FALSE='#'
9453 HAVE_WXWINDOWS_TRUE='#'
9454 HAVE_WXWINDOWS_FALSE=
9460 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9461 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9464 if test -n "$lamdir" ; then
9465 lamprograms="ctsimtext-lam"
9473 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"
9476 cat >confcache <<\_ACEOF
9477 # This file is a shell script that caches the results of configure
9478 # tests run on this system so they can be shared between configure
9479 # scripts and configure runs, see configure's option --config-cache.
9480 # It is not useful on other systems. If it contains results you don't
9481 # want to keep, you may remove or edit it.
9483 # config.status only pays attention to the cache file if you give it
9484 # the --recheck option to rerun configure.
9486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9492 # The following way of writing the cache mishandles newlines in values,
9493 # but we know of no workaround that is simple, portable, and efficient.
9494 # So, don't put newlines in cache variables' values.
9495 # Ultrix sh set writes to stderr and can't be redirected directly,
9496 # and sets the high bit in the cache file unless we assign to the vars.
9499 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9501 # `set' does not quote correctly, so add quotes (double-quote
9502 # substitution turns \\\\ into \\, and sed turns \\ into \).
9505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9508 # `set' quotes correctly as required by POSIX, so do not add quotes.
9510 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9517 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9519 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9521 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9522 if test -w $cache_file; then
9523 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9524 cat confcache >$cache_file
9526 echo "not updating unwritable cache $cache_file"
9531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9532 # Let make expand exec_prefix.
9533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9535 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9536 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9537 # trailing colons and then remove the whole line if VPATH becomes empty
9538 # (actually we leave an empty line to preserve line numbers).
9539 if test "x$srcdir" = x.; then
9540 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9541 s/:*\$(srcdir):*/:/;
9542 s/:*\${srcdir}:*/:/;
9544 s/^\([^=]*=[ ]*\):*/\1/;
9550 DEFS=-DHAVE_CONFIG_H
9554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9555 # 1. Remove the extension, and $U if already installed.
9556 ac_i=`echo "$ac_i" |
9557 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9559 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9560 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9564 LTLIBOBJS=$ac_ltlibobjs
9568 : ${CONFIG_STATUS=./config.status}
9569 ac_clean_files_save=$ac_clean_files
9570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9571 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9572 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9573 cat >$CONFIG_STATUS <<_ACEOF
9575 # Generated by $as_me.
9576 # Run this file to recreate the current configuration.
9577 # Compiler output produced by configure, useful for debugging
9578 # configure, is in config.log if it exists.
9583 SHELL=\${CONFIG_SHELL-$SHELL}
9586 cat >>$CONFIG_STATUS <<\_ACEOF
9587 ## --------------------- ##
9588 ## M4sh Initialization. ##
9589 ## --------------------- ##
9591 # Be Bourne compatible
9592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9596 # is contrary to our usage. Disable this feature.
9597 alias -g '${1+"$@"}'='"$@"'
9598 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9602 # Support unset when possible.
9603 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9610 # Work around bugs in pre-3.0 UWIN ksh.
9611 $as_unset ENV MAIL MAILPATH
9618 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9619 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9620 LC_TELEPHONE LC_TIME
9622 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9623 eval $as_var=C; export $as_var
9629 # Required to use basename.
9630 if expr a : '\(a\)' >/dev/null 2>&1; then
9636 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9637 as_basename=basename
9643 # Name of the executable.
9644 as_me=`$as_basename "$0" ||
9645 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9646 X"$0" : 'X\(//\)$' \| \
9647 X"$0" : 'X\(/\)$' \| \
9648 . : '\(.\)' 2>/dev/null ||
9650 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9651 /^X\/\(\/\/\)$/{ s//\1/; q; }
9652 /^X\/\(\/\).*/{ s//\1/; q; }
9656 # PATH needs CR, and LINENO needs CR and PATH.
9657 # Avoid depending upon Character Ranges.
9658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9661 as_cr_digits='0123456789'
9662 as_cr_alnum=$as_cr_Letters$as_cr_digits
9664 # The user is always right.
9665 if test "${PATH_SEPARATOR+set}" != set; then
9666 echo "#! /bin/sh" >conf$$.sh
9667 echo "exit 0" >>conf$$.sh
9669 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9680 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9681 test "x$as_lineno_1" != "x$as_lineno_2" &&
9682 test "x$as_lineno_3" = "x$as_lineno_2" || {
9683 # Find who we are. Look in the path if we contain no path at all
9686 *[\\/]* ) as_myself=$0 ;;
9687 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 test -z "$as_dir" && as_dir=.
9692 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9697 # We did not find ourselves, most probably we were run as `sh COMMAND'
9698 # in which case we are not to be found in the path.
9699 if test "x$as_myself" = x; then
9702 if test ! -f "$as_myself"; then
9703 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9704 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9705 { (exit 1); exit 1; }; }
9707 case $CONFIG_SHELL in
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9713 test -z "$as_dir" && as_dir=.
9714 for as_base in sh bash ksh sh5; do
9717 if ("$as_dir/$as_base" -c '
9720 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9721 test "x$as_lineno_1" != "x$as_lineno_2" &&
9722 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9723 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9724 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9725 CONFIG_SHELL=$as_dir/$as_base
9727 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9735 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9736 # uniformly replaced by the line number. The first 'sed' inserts a
9737 # line-number line before each line; the second 'sed' does the real
9738 # work. The second script uses 'N' to pair each line-number line
9739 # with the numbered line, and appends trailing '-' during
9740 # substitution so that $LINENO is not a special case at line end.
9741 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9742 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9743 sed '=' <$as_myself |
9748 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9751 s,^['$as_cr_digits']*\n,,
9753 chmod +x $as_me.lineno ||
9754 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9755 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9756 { (exit 1); exit 1; }; }
9758 # Don't try to exec as it changes $[0], causing all sort of problems
9759 # (the dirname of $[0] is not the place where we might find the
9760 # original and so on. Autoconf is especially sensible to this).
9762 # Exit status is that of the last command.
9767 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9768 *c*,-n*) ECHO_N= ECHO_C='
9770 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9771 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9774 if expr a : '\(a\)' >/dev/null 2>&1; then
9780 rm -f conf$$ conf$$.exe conf$$.file
9782 if ln -s conf$$.file conf$$ 2>/dev/null; then
9783 # We could just check for DJGPP; but this test a) works b) is more generic
9784 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9785 if test -f conf$$.exe; then
9786 # Don't use ln at all; we don't have any links
9791 elif ln conf$$.file conf$$ 2>/dev/null; then
9796 rm -f conf$$ conf$$.exe conf$$.file
9798 if mkdir -p . 2>/dev/null; then
9804 as_executable_p="test -f"
9806 # Sed expression to map a string onto a valid CPP name.
9807 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9809 # Sed expression to map a string onto a valid variable name.
9810 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9814 # We need space, tab and new line, in precisely that order.
9824 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9825 # report actual input values of CONFIG_FILES etc. instead of their
9826 # values after options handling. Logging --version etc. is OK.
9830 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9831 ## Running $as_me. ##
9836 This file was extended by $as_me, which was
9837 generated by GNU Autoconf 2.57. Invocation command line was
9839 CONFIG_FILES = $CONFIG_FILES
9840 CONFIG_HEADERS = $CONFIG_HEADERS
9841 CONFIG_LINKS = $CONFIG_LINKS
9842 CONFIG_COMMANDS = $CONFIG_COMMANDS
9846 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9850 # Files that config.status was made for.
9851 if test -n "$ac_config_files"; then
9852 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9855 if test -n "$ac_config_headers"; then
9856 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9859 if test -n "$ac_config_links"; then
9860 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9863 if test -n "$ac_config_commands"; then
9864 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9867 cat >>$CONFIG_STATUS <<\_ACEOF
9870 \`$as_me' instantiates files from templates according to the
9871 current configuration.
9873 Usage: $0 [OPTIONS] [FILE]...
9875 -h, --help print this help, then exit
9876 -V, --version print version number, then exit
9877 -q, --quiet do not print progress messages
9878 -d, --debug don't remove temporary files
9879 --recheck update $as_me by reconfiguring in the same conditions
9880 --file=FILE[:TEMPLATE]
9881 instantiate the configuration file FILE
9882 --header=FILE[:TEMPLATE]
9883 instantiate the configuration header FILE
9885 Configuration files:
9888 Configuration headers:
9891 Configuration commands:
9894 Report bugs to <bug-autoconf@gnu.org>."
9897 cat >>$CONFIG_STATUS <<_ACEOF
9900 configured by $0, generated by GNU Autoconf 2.57,
9901 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9903 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9904 Free Software Foundation, Inc.
9905 This config.status script is free software; the Free Software Foundation
9906 gives unlimited permission to copy, distribute and modify it."
9911 cat >>$CONFIG_STATUS <<\_ACEOF
9912 # If no file are specified by the user, then we need to provide default
9913 # value. By we need to know if files were specified by the user.
9919 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9920 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9928 *) # This is not an option, so the user has probably given explicit
9931 ac_need_defaults=false;;
9935 # Handling of the options.
9937 cat >>$CONFIG_STATUS <<\_ACEOF
9938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9940 --version | --vers* | -V )
9941 echo "$ac_cs_version"; exit 0 ;;
9943 # Conflict between --help and --header
9944 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9945 Try \`$0 --help' for more information." >&5
9946 echo "$as_me: error: ambiguous option: $1
9947 Try \`$0 --help' for more information." >&2;}
9948 { (exit 1); exit 1; }; };;
9949 --help | --hel | -h )
9950 echo "$ac_cs_usage"; exit 0 ;;
9951 --debug | --d* | -d )
9953 --file | --fil | --fi | --f )
9955 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9956 ac_need_defaults=false;;
9957 --header | --heade | --head | --hea )
9959 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9960 ac_need_defaults=false;;
9961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9962 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9966 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9967 Try \`$0 --help' for more information." >&5
9968 echo "$as_me: error: unrecognized option: $1
9969 Try \`$0 --help' for more information." >&2;}
9970 { (exit 1); exit 1; }; } ;;
9972 *) ac_config_targets="$ac_config_targets $1" ;;
9978 ac_configure_extra_args=
9980 if $ac_cs_silent; then
9982 ac_configure_extra_args="$ac_configure_extra_args --silent"
9986 cat >>$CONFIG_STATUS <<_ACEOF
9987 if \$ac_cs_recheck; then
9988 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9989 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9994 cat >>$CONFIG_STATUS <<_ACEOF
9996 # INIT-COMMANDS section.
10005 cat >>$CONFIG_STATUS <<\_ACEOF
10006 for ac_config_target in $ac_config_targets
10008 case "$ac_config_target" in
10009 # Handling of arguments.
10010 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10011 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10012 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10013 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10014 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10015 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10016 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10017 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10018 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10019 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10020 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10021 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10022 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10023 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10024 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10025 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10026 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10027 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10028 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10029 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10031 { (exit 1); exit 1; }; };;
10035 # If the user did not use the arguments to specify the items to instantiate,
10036 # then the envvar interface is used. Set only those that are not.
10037 # We use the long form for the default assignment because of an extremely
10038 # bizarre bug on SunOS 4.1.3.
10039 if $ac_need_defaults; then
10040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10045 # Have a temporary directory for convenience. Make it in the build tree
10046 # simply because there is no reason to put it here, and in addition,
10047 # creating and moving files from /tmp can sometimes cause problems.
10048 # Create a temporary directory, and hook for its removal unless debugging.
10051 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10052 trap '{ (exit 1); exit 1; }' 1 2 13 15
10055 # Create a (secure) tmp directory for tmp files.
10058 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10059 test -n "$tmp" && test -d "$tmp"
10062 tmp=./confstat$$-$RANDOM
10063 (umask 077 && mkdir $tmp)
10066 echo "$me: cannot create a temporary directory in ." >&2
10067 { (exit 1); exit 1; }
10072 cat >>$CONFIG_STATUS <<_ACEOF
10075 # CONFIG_FILES section.
10078 # No need to generate the scripts if there are no CONFIG_FILES.
10079 # This happens for instance when ./config.status config.h
10080 if test -n "\$CONFIG_FILES"; then
10081 # Protect against being on the right side of a sed subst in config.status.
10082 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10083 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10084 s,@SHELL@,$SHELL,;t t
10085 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10086 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10087 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10088 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10089 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10090 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10091 s,@exec_prefix@,$exec_prefix,;t t
10092 s,@prefix@,$prefix,;t t
10093 s,@program_transform_name@,$program_transform_name,;t t
10094 s,@bindir@,$bindir,;t t
10095 s,@sbindir@,$sbindir,;t t
10096 s,@libexecdir@,$libexecdir,;t t
10097 s,@datadir@,$datadir,;t t
10098 s,@sysconfdir@,$sysconfdir,;t t
10099 s,@sharedstatedir@,$sharedstatedir,;t t
10100 s,@localstatedir@,$localstatedir,;t t
10101 s,@libdir@,$libdir,;t t
10102 s,@includedir@,$includedir,;t t
10103 s,@oldincludedir@,$oldincludedir,;t t
10104 s,@infodir@,$infodir,;t t
10105 s,@mandir@,$mandir,;t t
10106 s,@build_alias@,$build_alias,;t t
10107 s,@host_alias@,$host_alias,;t t
10108 s,@target_alias@,$target_alias,;t t
10109 s,@DEFS@,$DEFS,;t t
10110 s,@ECHO_C@,$ECHO_C,;t t
10111 s,@ECHO_N@,$ECHO_N,;t t
10112 s,@ECHO_T@,$ECHO_T,;t t
10113 s,@LIBS@,$LIBS,;t t
10114 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10115 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10116 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10117 s,@PACKAGE@,$PACKAGE,;t t
10118 s,@VERSION@,$VERSION,;t t
10119 s,@ACLOCAL@,$ACLOCAL,;t t
10120 s,@AUTOCONF@,$AUTOCONF,;t t
10121 s,@AUTOMAKE@,$AUTOMAKE,;t t
10122 s,@AUTOHEADER@,$AUTOHEADER,;t t
10123 s,@MAKEINFO@,$MAKEINFO,;t t
10124 s,@SET_MAKE@,$SET_MAKE,;t t
10126 s,@RANLIB@,$RANLIB,;t t
10127 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10129 s,@CFLAGS@,$CFLAGS,;t t
10130 s,@LDFLAGS@,$LDFLAGS,;t t
10131 s,@CPPFLAGS@,$CPPFLAGS,;t t
10132 s,@ac_ct_CC@,$ac_ct_CC,;t t
10133 s,@EXEEXT@,$EXEEXT,;t t
10134 s,@OBJEXT@,$OBJEXT,;t t
10136 s,@CXXFLAGS@,$CXXFLAGS,;t t
10137 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10138 s,@wxconfig@,$wxconfig,;t t
10139 s,@build@,$build,;t t
10140 s,@build_cpu@,$build_cpu,;t t
10141 s,@build_vendor@,$build_vendor,;t t
10142 s,@build_os@,$build_os,;t t
10143 s,@host@,$host,;t t
10144 s,@host_cpu@,$host_cpu,;t t
10145 s,@host_vendor@,$host_vendor,;t t
10146 s,@host_os@,$host_os,;t t
10148 s,@EGREP@,$EGREP,;t t
10149 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10150 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10151 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10152 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10153 s,@lamdir@,$lamdir,;t t
10154 s,@mpienable@,$mpienable,;t t
10155 s,@cgibindir@,$cgibindir,;t t
10156 s,@cgibinurl@,$cgibinurl,;t t
10157 s,@webdatadir@,$webdatadir,;t t
10158 s,@webdataurl@,$webdataurl,;t t
10159 s,@htmldir@,$htmldir,;t t
10160 s,@cgiprograms@,$cgiprograms,;t t
10161 s,@htmldata@,$htmldata,;t t
10162 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10163 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10164 s,@webenabled@,$webenabled,;t t
10165 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10166 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10167 s,@X_CFLAGS@,$X_CFLAGS,;t t
10168 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10169 s,@X_LIBS@,$X_LIBS,;t t
10170 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10171 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10172 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10173 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10174 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10175 s,@my_includes@,$my_includes,;t t
10176 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10177 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10178 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10179 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10180 s,@wxcflags@,$wxcflags,;t t
10181 s,@wxlibs@,$wxlibs,;t t
10182 s,@ctlibs@,$ctlibs,;t t
10183 s,@lamprograms@,$lamprograms,;t t
10184 s,@lamdefs@,$lamdefs,;t t
10185 s,@LIBOBJS@,$LIBOBJS,;t t
10186 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10191 cat >>$CONFIG_STATUS <<\_ACEOF
10192 # Split the substitutions into bite-sized pieces for seds with
10193 # small command number limits, like on Digital OSF/1 and HP-UX.
10194 ac_max_sed_lines=48
10195 ac_sed_frag=1 # Number of current file.
10196 ac_beg=1 # First line for current file.
10197 ac_end=$ac_max_sed_lines # Line after last line for current file.
10200 while $ac_more_lines; do
10201 if test $ac_beg -gt 1; then
10202 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10204 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10206 if test ! -s $tmp/subs.frag; then
10207 ac_more_lines=false
10209 # The purpose of the label and of the branching condition is to
10210 # speed up the sed processing (if there are no `@' at all, there
10211 # is no need to browse any of the substitutions).
10212 # These are the two extra sed commands mentioned above.
10214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10215 if test -z "$ac_sed_cmds"; then
10216 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10218 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10220 ac_sed_frag=`expr $ac_sed_frag + 1`
10222 ac_end=`expr $ac_end + $ac_max_sed_lines`
10225 if test -z "$ac_sed_cmds"; then
10228 fi # test -n "$CONFIG_FILES"
10231 cat >>$CONFIG_STATUS <<\_ACEOF
10232 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10235 - | *:- | *:-:* ) # input from stdin
10237 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10239 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10241 * ) ac_file_in=$ac_file.in ;;
10244 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10245 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10247 X"$ac_file" : 'X\(//\)[^/]' \| \
10248 X"$ac_file" : 'X\(//\)$' \| \
10249 X"$ac_file" : 'X\(/\)' \| \
10250 . : '\(.\)' 2>/dev/null ||
10252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10253 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10254 /^X\(\/\/\)$/{ s//\1/; q; }
10255 /^X\(\/\).*/{ s//\1/; q; }
10257 { if $as_mkdir_p; then
10262 while test ! -d "$as_dir"; do
10263 as_dirs="$as_dir $as_dirs"
10264 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10266 X"$as_dir" : 'X\(//\)[^/]' \| \
10267 X"$as_dir" : 'X\(//\)$' \| \
10268 X"$as_dir" : 'X\(/\)' \| \
10269 . : '\(.\)' 2>/dev/null ||
10271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10273 /^X\(\/\/\)$/{ s//\1/; q; }
10274 /^X\(\/\).*/{ s//\1/; q; }
10277 test ! -n "$as_dirs" || mkdir $as_dirs
10278 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10279 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10280 { (exit 1); exit 1; }; }; }
10284 if test "$ac_dir" != .; then
10285 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10286 # A "../" for each directory in $ac_dir_suffix.
10287 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10289 ac_dir_suffix= ac_top_builddir=
10293 .) # No --srcdir option. We are building in place.
10295 if test -z "$ac_top_builddir"; then
10298 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10300 [\\/]* | ?:[\\/]* ) # Absolute path.
10301 ac_srcdir=$srcdir$ac_dir_suffix;
10302 ac_top_srcdir=$srcdir ;;
10303 *) # Relative path.
10304 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10305 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10307 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10309 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10310 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10311 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10312 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10317 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10320 if test x"$ac_file" != x-; then
10321 { echo "$as_me:$LINENO: creating $ac_file" >&5
10322 echo "$as_me: creating $ac_file" >&6;}
10325 # Let's still pretend it is `configure' which instantiates (i.e., don't
10326 # use $as_me), people would be surprised to read:
10327 # /* config.h. Generated by config.status. */
10328 if test x"$ac_file" = x-; then
10331 configure_input="$ac_file. "
10333 configure_input=$configure_input"Generated from `echo $ac_file_in |
10334 sed 's,.*/,,'` by configure."
10336 # First look for the input files in the build tree, otherwise in the
10338 ac_file_inputs=`IFS=:
10339 for f in $ac_file_in; do
10341 -) echo $tmp/stdin ;;
10343 # Absolute (can't be DOS-style, as IFS=:)
10344 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10345 echo "$as_me: error: cannot find input file: $f" >&2;}
10346 { (exit 1); exit 1; }; }
10349 if test -f "$f"; then
10352 elif test -f "$srcdir/$f"; then
10357 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10358 echo "$as_me: error: cannot find input file: $f" >&2;}
10359 { (exit 1); exit 1; }; }
10362 done` || { (exit 1); exit 1; }
10364 cat >>$CONFIG_STATUS <<_ACEOF
10368 cat >>$CONFIG_STATUS <<\_ACEOF
10370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10371 s,@configure_input@,$configure_input,;t t
10372 s,@srcdir@,$ac_srcdir,;t t
10373 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10374 s,@top_srcdir@,$ac_top_srcdir,;t t
10375 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10376 s,@builddir@,$ac_builddir,;t t
10377 s,@abs_builddir@,$ac_abs_builddir,;t t
10378 s,@top_builddir@,$ac_top_builddir,;t t
10379 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10380 s,@INSTALL@,$ac_INSTALL,;t t
10381 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10383 if test x"$ac_file" != x-; then
10384 mv $tmp/out $ac_file
10392 cat >>$CONFIG_STATUS <<\_ACEOF
10395 # CONFIG_HEADER section.
10398 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10399 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10401 # ac_d sets the value in "#define NAME VALUE" lines.
10402 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10403 ac_dB='[ ].*$,\1#\2'
10406 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10407 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10408 ac_uB='$,\1#\2define\3'
10412 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10413 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10415 - | *:- | *:-:* ) # input from stdin
10417 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10419 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10420 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10421 * ) ac_file_in=$ac_file.in ;;
10424 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10425 echo "$as_me: creating $ac_file" >&6;}
10427 # First look for the input files in the build tree, otherwise in the
10429 ac_file_inputs=`IFS=:
10430 for f in $ac_file_in; do
10432 -) echo $tmp/stdin ;;
10434 # Absolute (can't be DOS-style, as IFS=:)
10435 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10436 echo "$as_me: error: cannot find input file: $f" >&2;}
10437 { (exit 1); exit 1; }; }
10440 if test -f "$f"; then
10443 elif test -f "$srcdir/$f"; then
10448 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10449 echo "$as_me: error: cannot find input file: $f" >&2;}
10450 { (exit 1); exit 1; }; }
10453 done` || { (exit 1); exit 1; }
10454 # Remove the trailing spaces.
10455 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10459 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10460 # `conftest.undefs', that substitutes the proper values into
10461 # config.h.in to produce config.h. The first handles `#define'
10462 # templates, and the second `#undef' templates.
10463 # And first: Protect against being on the right side of a sed subst in
10464 # config.status. Protect against being in an unquoted here document
10465 # in config.status.
10466 rm -f conftest.defines conftest.undefs
10467 # Using a here document instead of a string reduces the quoting nightmare.
10468 # Putting comments in sed scripts is not portable.
10470 # `end' is used to avoid that the second main sed command (meant for
10471 # 0-ary CPP macros) applies to n-ary macro definitions.
10472 # See the Autoconf documentation for `clear'.
10473 cat >confdef2sed.sed <<\_ACEOF
10478 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10480 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10483 # If some macros were called several times there might be several times
10484 # the same #defines, which is useless. Nevertheless, we may not want to
10485 # sort them, since we want the *last* AC-DEFINE to be honored.
10486 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10487 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10488 rm -f confdef2sed.sed
10490 # This sed command replaces #undef with comments. This is necessary, for
10491 # example, in the case of _POSIX_SOURCE, which is predefined and required
10492 # on some systems where configure will not decide to define it.
10493 cat >>conftest.undefs <<\_ACEOF
10494 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10497 # Break up conftest.defines because some shells have a limit on the size
10498 # of here documents, and old seds have small limits too (100 cmds).
10499 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10500 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10501 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10502 echo ' :' >>$CONFIG_STATUS
10503 rm -f conftest.tail
10504 while grep . conftest.defines >/dev/null
10506 # Write a limited-size here document to $tmp/defines.sed.
10507 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10508 # Speed up: don't consider the non `#define' lines.
10509 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10510 # Work around the forget-to-reset-the-flag bug.
10511 echo 't clr' >>$CONFIG_STATUS
10512 echo ': clr' >>$CONFIG_STATUS
10513 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10515 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10517 mv $tmp/out $tmp/in
10519 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10520 rm -f conftest.defines
10521 mv conftest.tail conftest.defines
10523 rm -f conftest.defines
10524 echo ' fi # grep' >>$CONFIG_STATUS
10525 echo >>$CONFIG_STATUS
10527 # Break up conftest.undefs because some shells have a limit on the size
10528 # of here documents, and old seds have small limits too (100 cmds).
10529 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10530 rm -f conftest.tail
10531 while grep . conftest.undefs >/dev/null
10533 # Write a limited-size here document to $tmp/undefs.sed.
10534 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10535 # Speed up: don't consider the non `#undef'
10536 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10537 # Work around the forget-to-reset-the-flag bug.
10538 echo 't clr' >>$CONFIG_STATUS
10539 echo ': clr' >>$CONFIG_STATUS
10540 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10542 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10544 mv $tmp/out $tmp/in
10546 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10547 rm -f conftest.undefs
10548 mv conftest.tail conftest.undefs
10550 rm -f conftest.undefs
10552 cat >>$CONFIG_STATUS <<\_ACEOF
10553 # Let's still pretend it is `configure' which instantiates (i.e., don't
10554 # use $as_me), people would be surprised to read:
10555 # /* config.h. Generated by config.status. */
10556 if test x"$ac_file" = x-; then
10557 echo "/* Generated by configure. */" >$tmp/config.h
10559 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10561 cat $tmp/in >>$tmp/config.h
10563 if test x"$ac_file" != x-; then
10564 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10565 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10566 echo "$as_me: $ac_file is unchanged" >&6;}
10568 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10570 X"$ac_file" : 'X\(//\)[^/]' \| \
10571 X"$ac_file" : 'X\(//\)$' \| \
10572 X"$ac_file" : 'X\(/\)' \| \
10573 . : '\(.\)' 2>/dev/null ||
10575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10577 /^X\(\/\/\)$/{ s//\1/; q; }
10578 /^X\(\/\).*/{ s//\1/; q; }
10580 { if $as_mkdir_p; then
10585 while test ! -d "$as_dir"; do
10586 as_dirs="$as_dir $as_dirs"
10587 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10589 X"$as_dir" : 'X\(//\)[^/]' \| \
10590 X"$as_dir" : 'X\(//\)$' \| \
10591 X"$as_dir" : 'X\(/\)' \| \
10592 . : '\(.\)' 2>/dev/null ||
10594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10596 /^X\(\/\/\)$/{ s//\1/; q; }
10597 /^X\(\/\).*/{ s//\1/; q; }
10600 test ! -n "$as_dirs" || mkdir $as_dirs
10601 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10602 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10603 { (exit 1); exit 1; }; }; }
10606 mv $tmp/config.h $ac_file
10610 rm -f $tmp/config.h
10614 cat >>$CONFIG_STATUS <<\_ACEOF
10617 # CONFIG_COMMANDS section.
10619 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10620 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10621 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10622 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10623 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10624 X"$ac_dest" : 'X\(//\)[^/]' \| \
10625 X"$ac_dest" : 'X\(//\)$' \| \
10626 X"$ac_dest" : 'X\(/\)' \| \
10627 . : '\(.\)' 2>/dev/null ||
10629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10631 /^X\(\/\/\)$/{ s//\1/; q; }
10632 /^X\(\/\).*/{ s//\1/; q; }
10636 if test "$ac_dir" != .; then
10637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10638 # A "../" for each directory in $ac_dir_suffix.
10639 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10641 ac_dir_suffix= ac_top_builddir=
10645 .) # No --srcdir option. We are building in place.
10647 if test -z "$ac_top_builddir"; then
10650 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10652 [\\/]* | ?:[\\/]* ) # Absolute path.
10653 ac_srcdir=$srcdir$ac_dir_suffix;
10654 ac_top_srcdir=$srcdir ;;
10655 *) # Relative path.
10656 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10657 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10659 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10661 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10662 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10663 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10664 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10667 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10668 echo "$as_me: executing $ac_dest commands" >&6;}
10670 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10675 cat >>$CONFIG_STATUS <<\_ACEOF
10677 { (exit 0); exit 0; }
10679 chmod +x $CONFIG_STATUS
10680 ac_clean_files=$ac_clean_files_save
10683 # configure is writing to config.log, and then calls config.status.
10684 # config.status does its own redirection, appending to config.log.
10685 # Unfortunately, on DOS this fails, as config.log is still kept open
10686 # by configure, so config.status won't be able to write to it; its
10687 # output is simply discarded. So we exec the FD to /dev/null,
10688 # effectively closing config.log, so it can be properly (re)opened and
10689 # appended to by config.status. When coming back to configure, we
10690 # need to make the FD available again.
10691 if test "$no_create" != yes; then
10693 ac_config_status_args=
10694 test "$silent" = yes &&
10695 ac_config_status_args="$ac_config_status_args --quiet"
10697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10700 # would make configure fail if this is the last instruction.
10701 $ac_cs_success || { (exit 1); exit 1; }