2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.56.
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.56. 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 # On the NeXT, cc -E runs the code through the compiler's parser,
3393 # not just through cpp. "Syntax error" is here to catch this case.
3394 cat >conftest.$ac_ext <<_ACEOF
3395 #line $LINENO "configure"
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_c_preproc_warn_flag
3420 if test -z "$ac_cpp_err"; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 # Broken: fails on valid input.
3429 rm -f conftest.err conftest.$ac_ext
3431 # OK, works on sane cases. Now check whether non-existent headers
3432 # can be detected and how.
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line $LINENO "configure"
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <ac_nonexistent.h>
3442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3458 if test -z "$ac_cpp_err"; then
3459 # Broken: success on invalid input.
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 # Passes both tests.
3469 rm -f conftest.err conftest.$ac_ext
3472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3473 rm -f conftest.err conftest.$ac_ext
3474 if $ac_preproc_ok; then
3486 echo "$as_me:$LINENO: result: $CPP" >&5
3487 echo "${ECHO_T}$CPP" >&6
3489 for ac_c_preproc_warn_flag in '' yes
3491 # Use a header file that comes with gcc, so configuring glibc
3492 # with a fresh cross-compiler works.
3493 # On the NeXT, cc -E runs the code through the compiler's parser,
3494 # not just through cpp. "Syntax error" is here to catch this case.
3495 cat >conftest.$ac_ext <<_ACEOF
3496 #line $LINENO "configure"
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } >/dev/null; then
3513 if test -s conftest.err; then
3514 ac_cpp_err=$ac_c_preproc_warn_flag
3521 if test -z "$ac_cpp_err"; then
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Broken: fails on valid input.
3530 rm -f conftest.err conftest.$ac_ext
3532 # OK, works on sane cases. Now check whether non-existent headers
3533 # can be detected and how.
3534 cat >conftest.$ac_ext <<_ACEOF
3535 #line $LINENO "configure"
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include <ac_nonexistent.h>
3543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } >/dev/null; then
3551 if test -s conftest.err; then
3552 ac_cpp_err=$ac_c_preproc_warn_flag
3559 if test -z "$ac_cpp_err"; then
3560 # Broken: success on invalid input.
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3566 # Passes both tests.
3570 rm -f conftest.err conftest.$ac_ext
3573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574 rm -f conftest.err conftest.$ac_ext
3575 if $ac_preproc_ok; then
3578 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3579 See \`config.log' for more details." >&5
3580 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3581 See \`config.log' for more details." >&2;}
3582 { (exit 1); exit 1; }; }
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 echo "$as_me:$LINENO: checking for egrep" >&5
3593 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3594 if test "${ac_cv_prog_egrep+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3598 then ac_cv_prog_egrep='grep -E'
3599 else ac_cv_prog_egrep='egrep'
3602 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3603 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3604 EGREP=$ac_cv_prog_egrep
3607 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3608 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3609 if test "${ac_cv_header_stdc+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 cat >conftest.$ac_ext <<_ACEOF
3613 #line $LINENO "configure"
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_cv_header_stdc=yes
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 ac_cv_header_stdc=no
3651 rm -f conftest.$ac_objext conftest.$ac_ext
3653 if test $ac_cv_header_stdc = yes; then
3654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3655 cat >conftest.$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 $EGREP "memchr" >/dev/null 2>&1; then
3669 ac_cv_header_stdc=no
3675 if test $ac_cv_header_stdc = yes; then
3676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3677 cat >conftest.$ac_ext <<_ACEOF
3678 #line $LINENO "configure"
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3688 $EGREP "free" >/dev/null 2>&1; then
3691 ac_cv_header_stdc=no
3697 if test $ac_cv_header_stdc = yes; then
3698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3699 if test "$cross_compiling" = yes; then
3702 cat >conftest.$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3710 #if ((' ' & 0x0FF) == 0x020)
3711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3714 # define ISLOWER(c) \
3715 (('a' <= (c) && (c) <= 'i') \
3716 || ('j' <= (c) && (c) <= 'r') \
3717 || ('s' <= (c) && (c) <= 'z'))
3718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3726 for (i = 0; i < 256; i++)
3727 if (XOR (islower (i), ISLOWER (i))
3728 || toupper (i) != TOUPPER (i))
3733 rm -f conftest$ac_exeext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3746 echo "$as_me: program exited with status $ac_status" >&5
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3751 ac_cv_header_stdc=no
3753 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3757 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3758 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3759 if test $ac_cv_header_stdc = yes; then
3761 cat >>confdefs.h <<\_ACEOF
3762 #define STDC_HEADERS 1
3767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3778 inttypes.h stdint.h unistd.h
3780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3781 echo "$as_me:$LINENO: checking for $ac_header" >&5
3782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 cat >conftest.$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3793 $ac_includes_default
3795 #include <$ac_header>
3797 rm -f conftest.$ac_objext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -s conftest.$ac_objext'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 eval "$as_ac_Header=yes"
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 eval "$as_ac_Header=no"
3816 rm -f conftest.$ac_objext conftest.$ac_ext
3818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821 cat >>confdefs.h <<_ACEOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3830 echo "$as_me:$LINENO: checking for short" >&5
3831 echo $ECHO_N "checking for short... $ECHO_C" >&6
3832 if test "${ac_cv_type_short+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 cat >conftest.$ac_ext <<_ACEOF
3836 #line $LINENO "configure"
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 $ac_includes_default
3854 rm -f conftest.$ac_objext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } &&
3860 { ac_try='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_type_short=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3873 rm -f conftest.$ac_objext conftest.$ac_ext
3875 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3876 echo "${ECHO_T}$ac_cv_type_short" >&6
3878 echo "$as_me:$LINENO: checking size of short" >&5
3879 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3880 if test "${ac_cv_sizeof_short+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 if test "$ac_cv_type_short" = yes; then
3884 # The cast to unsigned long works around a bug in the HP C Compiler
3885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3887 # This bug is HP SR number 8606223364.
3888 if test "$cross_compiling" = yes; then
3889 # Depending upon the size, compute the lo and hi bounds.
3890 cat >conftest.$ac_ext <<_ACEOF
3891 #line $LINENO "configure"
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 $ac_includes_default
3901 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -s conftest.$ac_objext'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3922 cat >conftest.$ac_ext <<_ACEOF
3923 #line $LINENO "configure"
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 $ac_includes_default
3933 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3940 rm -f conftest.$ac_objext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942 (eval $ac_compile) 2>&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try='test -s conftest.$ac_objext'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 ac_hi=$ac_mid; break
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 ac_lo=`expr $ac_mid + 1`
3958 if test $ac_lo -le $ac_mid; then
3962 ac_mid=`expr 2 '*' $ac_mid + 1`
3964 rm -f conftest.$ac_objext conftest.$ac_ext
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 cat >conftest.$ac_ext <<_ACEOF
3971 #line $LINENO "configure"
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 $ac_includes_default
3981 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3988 rm -f conftest.$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4002 cat >conftest.$ac_ext <<_ACEOF
4003 #line $LINENO "configure"
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 $ac_includes_default
4013 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -s conftest.$ac_objext'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 ac_lo=$ac_mid; break
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 ac_hi=`expr '(' $ac_mid ')' - 1`
4038 if test $ac_mid -le $ac_hi; then
4042 ac_mid=`expr 2 '*' $ac_mid`
4044 rm -f conftest.$ac_objext conftest.$ac_ext
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4052 rm -f conftest.$ac_objext conftest.$ac_ext
4054 rm -f conftest.$ac_objext conftest.$ac_ext
4055 # Binary search between lo and hi bounds.
4056 while test "x$ac_lo" != "x$ac_hi"; do
4057 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4058 cat >conftest.$ac_ext <<_ACEOF
4059 #line $LINENO "configure"
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 $ac_includes_default
4069 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4076 rm -f conftest.$ac_objext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ac_lo=`expr '(' $ac_mid ')' + 1`
4095 rm -f conftest.$ac_objext conftest.$ac_ext
4098 ?*) ac_cv_sizeof_short=$ac_lo;;
4099 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4100 See \`config.log' for more details." >&5
4101 echo "$as_me: error: cannot compute sizeof (short), 77
4102 See \`config.log' for more details." >&2;}
4103 { (exit 1); exit 1; }; } ;;
4106 if test "$cross_compiling" = yes; then
4107 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4108 See \`config.log' for more details." >&5
4109 echo "$as_me: error: cannot run test program while cross compiling
4110 See \`config.log' for more details." >&2;}
4111 { (exit 1); exit 1; }; }
4113 cat >conftest.$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 $ac_includes_default
4121 long longval () { return (long) (sizeof (short)); }
4122 unsigned long ulongval () { return (long) (sizeof (short)); }
4129 FILE *f = fopen ("conftest.val", "w");
4132 if (((long) (sizeof (short))) < 0)
4134 long i = longval ();
4135 if (i != ((long) (sizeof (short))))
4137 fprintf (f, "%ld\n", i);
4141 unsigned long i = ulongval ();
4142 if (i != ((long) (sizeof (short))))
4144 fprintf (f, "%lu\n", i);
4146 exit (ferror (f) || fclose (f) != 0);
4152 rm -f conftest$ac_exeext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4154 (eval $ac_link) 2>&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 ac_cv_sizeof_short=`cat conftest.val`
4165 echo "$as_me: program exited with status $ac_status" >&5
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4171 See \`config.log' for more details." >&5
4172 echo "$as_me: error: cannot compute sizeof (short), 77
4173 See \`config.log' for more details." >&2;}
4174 { (exit 1); exit 1; }; }
4176 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4181 ac_cv_sizeof_short=0
4184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4185 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4186 cat >>confdefs.h <<_ACEOF
4187 #define SIZEOF_SHORT $ac_cv_sizeof_short
4191 echo "$as_me:$LINENO: checking for int" >&5
4192 echo $ECHO_N "checking for int... $ECHO_C" >&6
4193 if test "${ac_cv_type_int+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 cat >conftest.$ac_ext <<_ACEOF
4197 #line $LINENO "configure"
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203 $ac_includes_default
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -s conftest.$ac_objext'
4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4234 rm -f conftest.$ac_objext conftest.$ac_ext
4236 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4237 echo "${ECHO_T}$ac_cv_type_int" >&6
4239 echo "$as_me:$LINENO: checking size of int" >&5
4240 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4241 if test "${ac_cv_sizeof_int+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 if test "$ac_cv_type_int" = yes; then
4245 # The cast to unsigned long works around a bug in the HP C Compiler
4246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4248 # This bug is HP SR number 8606223364.
4249 if test "$cross_compiling" = yes; then
4250 # Depending upon the size, compute the lo and hi bounds.
4251 cat >conftest.$ac_ext <<_ACEOF
4252 #line $LINENO "configure"
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 $ac_includes_default
4262 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4283 cat >conftest.$ac_ext <<_ACEOF
4284 #line $LINENO "configure"
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 $ac_includes_default
4294 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4301 rm -f conftest.$ac_objext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303 (eval $ac_compile) 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 ac_hi=$ac_mid; break
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 ac_lo=`expr $ac_mid + 1`
4319 if test $ac_lo -le $ac_mid; then
4323 ac_mid=`expr 2 '*' $ac_mid + 1`
4325 rm -f conftest.$ac_objext conftest.$ac_ext
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 $ac_includes_default
4342 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4363 cat >conftest.$ac_ext <<_ACEOF
4364 #line $LINENO "configure"
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4374 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4381 rm -f conftest.$ac_objext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4383 (eval $ac_compile) 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_lo=$ac_mid; break
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_hi=`expr '(' $ac_mid ')' - 1`
4399 if test $ac_mid -le $ac_hi; then
4403 ac_mid=`expr 2 '*' $ac_mid`
4405 rm -f conftest.$ac_objext conftest.$ac_ext
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4413 rm -f conftest.$ac_objext conftest.$ac_ext
4415 rm -f conftest.$ac_objext conftest.$ac_ext
4416 # Binary search between lo and hi bounds.
4417 while test "x$ac_lo" != "x$ac_hi"; do
4418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4419 cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 $ac_includes_default
4430 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -s conftest.$ac_objext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 ac_lo=`expr '(' $ac_mid ')' + 1`
4456 rm -f conftest.$ac_objext conftest.$ac_ext
4459 ?*) ac_cv_sizeof_int=$ac_lo;;
4460 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4461 See \`config.log' for more details." >&5
4462 echo "$as_me: error: cannot compute sizeof (int), 77
4463 See \`config.log' for more details." >&2;}
4464 { (exit 1); exit 1; }; } ;;
4467 if test "$cross_compiling" = yes; then
4468 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4469 See \`config.log' for more details." >&5
4470 echo "$as_me: error: cannot run test program while cross compiling
4471 See \`config.log' for more details." >&2;}
4472 { (exit 1); exit 1; }; }
4474 cat >conftest.$ac_ext <<_ACEOF
4475 #line $LINENO "configure"
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 $ac_includes_default
4482 long longval () { return (long) (sizeof (int)); }
4483 unsigned long ulongval () { return (long) (sizeof (int)); }
4490 FILE *f = fopen ("conftest.val", "w");
4493 if (((long) (sizeof (int))) < 0)
4495 long i = longval ();
4496 if (i != ((long) (sizeof (int))))
4498 fprintf (f, "%ld\n", i);
4502 unsigned long i = ulongval ();
4503 if (i != ((long) (sizeof (int))))
4505 fprintf (f, "%lu\n", i);
4507 exit (ferror (f) || fclose (f) != 0);
4513 rm -f conftest$ac_exeext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4515 (eval $ac_link) 2>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_cv_sizeof_int=`cat conftest.val`
4526 echo "$as_me: program exited with status $ac_status" >&5
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4532 See \`config.log' for more details." >&5
4533 echo "$as_me: error: cannot compute sizeof (int), 77
4534 See \`config.log' for more details." >&2;}
4535 { (exit 1); exit 1; }; }
4537 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4545 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4546 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4547 cat >>confdefs.h <<_ACEOF
4548 #define SIZEOF_INT $ac_cv_sizeof_int
4552 echo "$as_me:$LINENO: checking for long" >&5
4553 echo $ECHO_N "checking for long... $ECHO_C" >&6
4554 if test "${ac_cv_type_long+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 cat >conftest.$ac_ext <<_ACEOF
4558 #line $LINENO "configure"
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4564 $ac_includes_default
4576 rm -f conftest.$ac_objext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578 (eval $ac_compile) 2>&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } &&
4582 { ac_try='test -s conftest.$ac_objext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4595 rm -f conftest.$ac_objext conftest.$ac_ext
4597 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4598 echo "${ECHO_T}$ac_cv_type_long" >&6
4600 echo "$as_me:$LINENO: checking size of long" >&5
4601 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4602 if test "${ac_cv_sizeof_long+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 if test "$ac_cv_type_long" = yes; then
4606 # The cast to unsigned long works around a bug in the HP C Compiler
4607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4609 # This bug is HP SR number 8606223364.
4610 if test "$cross_compiling" = yes; then
4611 # Depending upon the size, compute the lo and hi bounds.
4612 cat >conftest.$ac_ext <<_ACEOF
4613 #line $LINENO "configure"
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 $ac_includes_default
4623 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4644 cat >conftest.$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4655 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_hi=$ac_mid; break
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 ac_lo=`expr $ac_mid + 1`
4680 if test $ac_lo -le $ac_mid; then
4684 ac_mid=`expr 2 '*' $ac_mid + 1`
4686 rm -f conftest.$ac_objext conftest.$ac_ext
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 cat >conftest.$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 $ac_includes_default
4703 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4724 cat >conftest.$ac_ext <<_ACEOF
4725 #line $LINENO "configure"
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4731 $ac_includes_default
4735 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4742 rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744 (eval $ac_compile) 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_lo=$ac_mid; break
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_hi=`expr '(' $ac_mid ')' - 1`
4760 if test $ac_mid -le $ac_hi; then
4764 ac_mid=`expr 2 '*' $ac_mid`
4766 rm -f conftest.$ac_objext conftest.$ac_ext
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4774 rm -f conftest.$ac_objext conftest.$ac_ext
4776 rm -f conftest.$ac_objext conftest.$ac_ext
4777 # Binary search between lo and hi bounds.
4778 while test "x$ac_lo" != "x$ac_hi"; do
4779 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4780 cat >conftest.$ac_ext <<_ACEOF
4781 #line $LINENO "configure"
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787 $ac_includes_default
4791 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 ac_lo=`expr '(' $ac_mid ')' + 1`
4817 rm -f conftest.$ac_objext conftest.$ac_ext
4820 ?*) ac_cv_sizeof_long=$ac_lo;;
4821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4822 See \`config.log' for more details." >&5
4823 echo "$as_me: error: cannot compute sizeof (long), 77
4824 See \`config.log' for more details." >&2;}
4825 { (exit 1); exit 1; }; } ;;
4828 if test "$cross_compiling" = yes; then
4829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4830 See \`config.log' for more details." >&5
4831 echo "$as_me: error: cannot run test program while cross compiling
4832 See \`config.log' for more details." >&2;}
4833 { (exit 1); exit 1; }; }
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 $ac_includes_default
4843 long longval () { return (long) (sizeof (long)); }
4844 unsigned long ulongval () { return (long) (sizeof (long)); }
4851 FILE *f = fopen ("conftest.val", "w");
4854 if (((long) (sizeof (long))) < 0)
4856 long i = longval ();
4857 if (i != ((long) (sizeof (long))))
4859 fprintf (f, "%ld\n", i);
4863 unsigned long i = ulongval ();
4864 if (i != ((long) (sizeof (long))))
4866 fprintf (f, "%lu\n", i);
4868 exit (ferror (f) || fclose (f) != 0);
4874 rm -f conftest$ac_exeext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4876 (eval $ac_link) 2>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_cv_sizeof_long=`cat conftest.val`
4887 echo "$as_me: program exited with status $ac_status" >&5
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4892 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4893 See \`config.log' for more details." >&5
4894 echo "$as_me: error: cannot compute sizeof (long), 77
4895 See \`config.log' for more details." >&2;}
4896 { (exit 1); exit 1; }; }
4898 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4907 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4908 cat >>confdefs.h <<_ACEOF
4909 #define SIZEOF_LONG $ac_cv_sizeof_long
4913 echo "$as_me:$LINENO: checking for float" >&5
4914 echo $ECHO_N "checking for float... $ECHO_C" >&6
4915 if test "${ac_cv_type_float+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 cat >conftest.$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4925 $ac_includes_default
4937 rm -f conftest.$ac_objext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939 (eval $ac_compile) 2>&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -s conftest.$ac_objext'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4949 ac_cv_type_float=yes
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4956 rm -f conftest.$ac_objext conftest.$ac_ext
4958 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4959 echo "${ECHO_T}$ac_cv_type_float" >&6
4961 echo "$as_me:$LINENO: checking size of float" >&5
4962 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4963 if test "${ac_cv_sizeof_float+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 if test "$ac_cv_type_float" = yes; then
4967 # The cast to unsigned long works around a bug in the HP C Compiler
4968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4970 # This bug is HP SR number 8606223364.
4971 if test "$cross_compiling" = yes; then
4972 # Depending upon the size, compute the lo and hi bounds.
4973 cat >conftest.$ac_ext <<_ACEOF
4974 #line $LINENO "configure"
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 $ac_includes_default
4984 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5005 cat >conftest.$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 $ac_includes_default
5016 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 ac_hi=$ac_mid; break
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_lo=`expr $ac_mid + 1`
5041 if test $ac_lo -le $ac_mid; then
5045 ac_mid=`expr 2 '*' $ac_mid + 1`
5047 rm -f conftest.$ac_objext conftest.$ac_ext
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5053 cat >conftest.$ac_ext <<_ACEOF
5054 #line $LINENO "configure"
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5064 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5071 rm -f conftest.$ac_objext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 $ac_includes_default
5096 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5103 rm -f conftest.$ac_objext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5105 (eval $ac_compile) 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_lo=$ac_mid; break
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5120 ac_hi=`expr '(' $ac_mid ')' - 1`
5121 if test $ac_mid -le $ac_hi; then
5125 ac_mid=`expr 2 '*' $ac_mid`
5127 rm -f conftest.$ac_objext conftest.$ac_ext
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5135 rm -f conftest.$ac_objext conftest.$ac_ext
5137 rm -f conftest.$ac_objext conftest.$ac_ext
5138 # Binary search between lo and hi bounds.
5139 while test "x$ac_lo" != "x$ac_hi"; do
5140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5141 cat >conftest.$ac_ext <<_ACEOF
5142 #line $LINENO "configure"
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 $ac_includes_default
5152 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest.$ac_objext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5173 echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5176 ac_lo=`expr '(' $ac_mid ')' + 1`
5178 rm -f conftest.$ac_objext conftest.$ac_ext
5181 ?*) ac_cv_sizeof_float=$ac_lo;;
5182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5183 See \`config.log' for more details." >&5
5184 echo "$as_me: error: cannot compute sizeof (float), 77
5185 See \`config.log' for more details." >&2;}
5186 { (exit 1); exit 1; }; } ;;
5189 if test "$cross_compiling" = yes; then
5190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5191 See \`config.log' for more details." >&5
5192 echo "$as_me: error: cannot run test program while cross compiling
5193 See \`config.log' for more details." >&2;}
5194 { (exit 1); exit 1; }; }
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 $ac_includes_default
5204 long longval () { return (long) (sizeof (float)); }
5205 unsigned long ulongval () { return (long) (sizeof (float)); }
5212 FILE *f = fopen ("conftest.val", "w");
5215 if (((long) (sizeof (float))) < 0)
5217 long i = longval ();
5218 if (i != ((long) (sizeof (float))))
5220 fprintf (f, "%ld\n", i);
5224 unsigned long i = ulongval ();
5225 if (i != ((long) (sizeof (float))))
5227 fprintf (f, "%lu\n", i);
5229 exit (ferror (f) || fclose (f) != 0);
5235 rm -f conftest$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 ac_cv_sizeof_float=`cat conftest.val`
5248 echo "$as_me: program exited with status $ac_status" >&5
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5254 See \`config.log' for more details." >&5
5255 echo "$as_me: error: cannot compute sizeof (float), 77
5256 See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
5259 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5264 ac_cv_sizeof_float=0
5267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5268 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5269 cat >>confdefs.h <<_ACEOF
5270 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5274 echo "$as_me:$LINENO: checking for double" >&5
5275 echo $ECHO_N "checking for double... $ECHO_C" >&6
5276 if test "${ac_cv_type_double+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 cat >conftest.$ac_ext <<_ACEOF
5280 #line $LINENO "configure"
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5292 if (sizeof (double))
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -s conftest.$ac_objext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_cv_type_double=yes
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 ac_cv_type_double=no
5317 rm -f conftest.$ac_objext conftest.$ac_ext
5319 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5320 echo "${ECHO_T}$ac_cv_type_double" >&6
5322 echo "$as_me:$LINENO: checking size of double" >&5
5323 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5324 if test "${ac_cv_sizeof_double+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 if test "$ac_cv_type_double" = yes; then
5328 # The cast to unsigned long works around a bug in the HP C Compiler
5329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5331 # This bug is HP SR number 8606223364.
5332 if test "$cross_compiling" = yes; then
5333 # Depending upon the size, compute the lo and hi bounds.
5334 cat >conftest.$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 $ac_includes_default
5345 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354 (eval $ac_compile) 2>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -s conftest.$ac_objext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5366 cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5377 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -s conftest.$ac_objext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5396 ac_hi=$ac_mid; break
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ac_lo=`expr $ac_mid + 1`
5402 if test $ac_lo -le $ac_mid; then
5406 ac_mid=`expr 2 '*' $ac_mid + 1`
5408 rm -f conftest.$ac_objext conftest.$ac_ext
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 $ac_includes_default
5425 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5432 rm -f conftest.$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5446 cat >conftest.$ac_ext <<_ACEOF
5447 #line $LINENO "configure"
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 $ac_includes_default
5457 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5464 rm -f conftest.$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466 (eval $ac_compile) 2>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -s conftest.$ac_objext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_lo=$ac_mid; break
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_hi=`expr '(' $ac_mid ')' - 1`
5482 if test $ac_mid -le $ac_hi; then
5486 ac_mid=`expr 2 '*' $ac_mid`
5488 rm -f conftest.$ac_objext conftest.$ac_ext
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5496 rm -f conftest.$ac_objext conftest.$ac_ext
5498 rm -f conftest.$ac_objext conftest.$ac_ext
5499 # Binary search between lo and hi bounds.
5500 while test "x$ac_lo" != "x$ac_hi"; do
5501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5502 cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 $ac_includes_default
5513 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5520 rm -f conftest.$ac_objext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522 (eval $ac_compile) 2>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } &&
5526 { ac_try='test -s conftest.$ac_objext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5537 ac_lo=`expr '(' $ac_mid ')' + 1`
5539 rm -f conftest.$ac_objext conftest.$ac_ext
5542 ?*) ac_cv_sizeof_double=$ac_lo;;
5543 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot compute sizeof (double), 77
5546 See \`config.log' for more details." >&2;}
5547 { (exit 1); exit 1; }; } ;;
5550 if test "$cross_compiling" = yes; then
5551 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5552 See \`config.log' for more details." >&5
5553 echo "$as_me: error: cannot run test program while cross compiling
5554 See \`config.log' for more details." >&2;}
5555 { (exit 1); exit 1; }; }
5557 cat >conftest.$ac_ext <<_ACEOF
5558 #line $LINENO "configure"
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 $ac_includes_default
5565 long longval () { return (long) (sizeof (double)); }
5566 unsigned long ulongval () { return (long) (sizeof (double)); }
5573 FILE *f = fopen ("conftest.val", "w");
5576 if (((long) (sizeof (double))) < 0)
5578 long i = longval ();
5579 if (i != ((long) (sizeof (double))))
5581 fprintf (f, "%ld\n", i);
5585 unsigned long i = ulongval ();
5586 if (i != ((long) (sizeof (double))))
5588 fprintf (f, "%lu\n", i);
5590 exit (ferror (f) || fclose (f) != 0);
5596 rm -f conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_sizeof_double=`cat conftest.val`
5609 echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5615 See \`config.log' for more details." >&5
5616 echo "$as_me: error: cannot compute sizeof (double), 77
5617 See \`config.log' for more details." >&2;}
5618 { (exit 1); exit 1; }; }
5620 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5625 ac_cv_sizeof_double=0
5628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5629 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5630 cat >>confdefs.h <<_ACEOF
5631 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5637 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5638 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5639 if test "${ac_cv_lib_z_deflate+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 ac_check_lib_save_LIBS=$LIBS
5644 cat >conftest.$ac_ext <<_ACEOF
5645 #line $LINENO "configure"
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5652 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -s conftest$ac_exeext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 ac_cv_lib_z_deflate=yes
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_cv_lib_z_deflate=no
5686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5687 LIBS=$ac_check_lib_save_LIBS
5689 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5690 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5691 if test $ac_cv_lib_z_deflate = yes; then
5694 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5695 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5699 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5700 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5701 if test "${ac_cv_lib_m_sin+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 ac_check_lib_save_LIBS=$LIBS
5706 cat >conftest.$ac_ext <<_ACEOF
5707 #line $LINENO "configure"
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5714 /* Override any gcc2 internal prototype to avoid an error. */
5718 /* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
5729 rm -f conftest.$ac_objext conftest$ac_exeext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5731 (eval $ac_link) 2>&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -s conftest$ac_exeext'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5749 LIBS=$ac_check_lib_save_LIBS
5751 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5752 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5753 if test $ac_cv_lib_m_sin = yes; then
5754 cat >>confdefs.h <<_ACEOF
5762 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5763 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5764 if test "${ac_cv_lib_curses_main+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 ac_check_lib_save_LIBS=$LIBS
5768 LIBS="-lcurses $LIBS"
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line $LINENO "configure"
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -s conftest$ac_exeext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_cv_lib_curses_main=yes
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 ac_cv_lib_curses_main=no
5805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5806 LIBS=$ac_check_lib_save_LIBS
5808 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5809 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5810 if test $ac_cv_lib_curses_main = yes; then
5816 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5817 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5818 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 ac_check_lib_save_LIBS=$LIBS
5822 LIBS="-lncurses $LIBS"
5823 cat >conftest.$ac_ext <<_ACEOF
5824 #line $LINENO "configure"
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5840 rm -f conftest.$ac_objext conftest$ac_exeext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5842 (eval $ac_link) 2>&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -s conftest$ac_exeext'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 ac_cv_lib_ncurses_main=yes
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5857 ac_cv_lib_ncurses_main=no
5859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5860 LIBS=$ac_check_lib_save_LIBS
5862 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5863 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5864 if test $ac_cv_lib_ncurses_main = yes; then
5870 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5871 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5872 if test "${ac_cv_lib_readline_main+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lreadline -lcurses $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5878 #line $LINENO "configure"
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5896 (eval $ac_link) 2>&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } &&
5900 { ac_try='test -s conftest$ac_exeext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_lib_readline_main=yes
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 ac_cv_lib_readline_main=no
5913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5914 LIBS=$ac_check_lib_save_LIBS
5916 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5917 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5918 if test $ac_cv_lib_readline_main = yes; then
5921 cat >>confdefs.h <<\_ACEOF
5922 #define HAVE_READLINE 1
5930 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.3" >&5
5931 echo $ECHO_N "checking for main in -lwx_gtk-2.3... $ECHO_C" >&6
5932 if test "${ac_cv_lib_wx_gtk_2_3_main+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 ac_check_lib_save_LIBS=$LIBS
5936 LIBS="-lwx_gtk-2.3 $LIBS"
5937 cat >conftest.$ac_ext <<_ACEOF
5938 #line $LINENO "configure"
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5954 rm -f conftest.$ac_objext conftest$ac_exeext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956 (eval $ac_link) 2>&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -s conftest$ac_exeext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_lib_wx_gtk_2_3_main=yes
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 ac_cv_lib_wx_gtk_2_3_main=no
5973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5974 LIBS=$ac_check_lib_save_LIBS
5976 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_3_main" >&5
5977 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_3_main" >&6
5978 if test $ac_cv_lib_wx_gtk_2_3_main = yes; then
5979 wxwin=true; wx_gtk=true;
5980 cat >>confdefs.h <<\_ACEOF
5981 #define HAVE_WXWINDOWS 1
5986 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.3" >&5
5987 echo $ECHO_N "checking for main in -lwx_mac-2.3... $ECHO_C" >&6
5988 if test "${ac_cv_lib_wx_mac_2_3_main+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 ac_check_lib_save_LIBS=$LIBS
5992 LIBS="-lwx_mac-2.3 $LIBS"
5993 cat >conftest.$ac_ext <<_ACEOF
5994 #line $LINENO "configure"
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -s conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_lib_wx_mac_2_3_main=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_cv_lib_wx_mac_2_3_main=no
6029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6030 LIBS=$ac_check_lib_save_LIBS
6032 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_3_main" >&5
6033 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_3_main" >&6
6034 if test $ac_cv_lib_wx_mac_2_3_main = yes; then
6035 wxwin=true; wx_gtk=true;
6036 cat >>confdefs.h <<\_ACEOF
6037 #define HAVE_WXWINDOWS 1
6042 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6043 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6044 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 ac_check_lib_save_LIBS=$LIBS
6049 cat >conftest.$ac_ext <<_ACEOF
6050 #line $LINENO "configure"
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6057 /* Override any gcc2 internal prototype to avoid an error. */
6061 /* We use char because int might match the return type of a gcc2
6062 builtin and then its argument prototype would still apply. */
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6074 (eval $ac_link) 2>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -s conftest$ac_exeext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_lib_fftw_fftw_one=yes
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 ac_cv_lib_fftw_fftw_one=no
6091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6092 LIBS=$ac_check_lib_save_LIBS
6094 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6095 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6096 if test $ac_cv_lib_fftw_fftw_one = yes; then
6098 cat >>confdefs.h <<\_ACEOF
6106 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6107 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6108 if test "${ac_cv_lib_GL_main+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 ac_check_lib_save_LIBS=$LIBS
6112 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6113 cat >conftest.$ac_ext <<_ACEOF
6114 #line $LINENO "configure"
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132 (eval $ac_link) 2>&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -s conftest$ac_exeext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_lib_GL_main=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_lib_GL_main=no
6149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6150 LIBS=$ac_check_lib_save_LIBS
6152 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6153 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6154 if test $ac_cv_lib_GL_main = yes; then
6160 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6161 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6162 if test "${ac_cv_lib_pthread_main+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 ac_check_lib_save_LIBS=$LIBS
6166 LIBS="-lpthread $LIBS"
6167 cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -s conftest$ac_exeext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_lib_pthread_main=yes
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 ac_cv_lib_pthread_main=no
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6204 LIBS=$ac_check_lib_save_LIBS
6206 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6207 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6208 if test $ac_cv_lib_pthread_main = yes; then
6215 if test "$zlib" = "true" ; then
6216 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6217 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6218 if test "${ac_cv_lib_png_main+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 ac_check_lib_save_LIBS=$LIBS
6222 LIBS="-lpng -lz -lm $LIBS"
6223 cat >conftest.$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6240 rm -f conftest.$ac_objext conftest$ac_exeext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6242 (eval $ac_link) 2>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -s conftest$ac_exeext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_lib_png_main=yes
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 ac_cv_lib_png_main=no
6259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6260 LIBS=$ac_check_lib_save_LIBS
6262 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6263 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6264 if test $ac_cv_lib_png_main = yes; then
6266 cat >>confdefs.h <<\_ACEOF
6276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6278 if test "${ac_cv_header_stdc+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6282 #line $LINENO "configure"
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6301 rm -f conftest.$ac_objext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_cv_header_stdc=yes
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 ac_cv_header_stdc=no
6320 rm -f conftest.$ac_objext conftest.$ac_ext
6322 if test $ac_cv_header_stdc = yes; then
6323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335 $EGREP "memchr" >/dev/null 2>&1; then
6338 ac_cv_header_stdc=no
6344 if test $ac_cv_header_stdc = yes; then
6345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6346 cat >conftest.$ac_ext <<_ACEOF
6347 #line $LINENO "configure"
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6357 $EGREP "free" >/dev/null 2>&1; then
6360 ac_cv_header_stdc=no
6366 if test $ac_cv_header_stdc = yes; then
6367 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6368 if test "$cross_compiling" = yes; then
6371 cat >conftest.$ac_ext <<_ACEOF
6372 #line $LINENO "configure"
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6379 #if ((' ' & 0x0FF) == 0x020)
6380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6383 # define ISLOWER(c) \
6384 (('a' <= (c) && (c) <= 'i') \
6385 || ('j' <= (c) && (c) <= 'r') \
6386 || ('s' <= (c) && (c) <= 'z'))
6387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6395 for (i = 0; i < 256; i++)
6396 if (XOR (islower (i), ISLOWER (i))
6397 || toupper (i) != TOUPPER (i))
6402 rm -f conftest$ac_exeext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404 (eval $ac_link) 2>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6415 echo "$as_me: program exited with status $ac_status" >&5
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6420 ac_cv_header_stdc=no
6422 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6426 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6427 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6428 if test $ac_cv_header_stdc = yes; then
6430 cat >>confdefs.h <<\_ACEOF
6431 #define STDC_HEADERS 1
6460 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
6462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464 echo "$as_me:$LINENO: checking for $ac_header" >&5
6465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6472 # Is the header compilable?
6473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6475 cat >conftest.$ac_ext <<_ACEOF
6476 #line $LINENO "configure"
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 $ac_includes_default
6483 #include <$ac_header>
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -s conftest.$ac_objext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 ac_header_compiler=yes
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 ac_header_compiler=no
6504 rm -f conftest.$ac_objext conftest.$ac_ext
6505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6506 echo "${ECHO_T}$ac_header_compiler" >&6
6508 # Is the header present?
6509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6511 cat >conftest.$ac_ext <<_ACEOF
6512 #line $LINENO "configure"
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 #include <$ac_header>
6520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6523 grep -v '^ *+' conftest.er1 >conftest.err
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } >/dev/null; then
6528 if test -s conftest.err; then
6529 ac_cpp_err=$ac_c_preproc_warn_flag
6536 if test -z "$ac_cpp_err"; then
6537 ac_header_preproc=yes
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6542 ac_header_preproc=no
6544 rm -f conftest.err conftest.$ac_ext
6545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6546 echo "${ECHO_T}$ac_header_preproc" >&6
6548 # So? What about this header?
6549 case $ac_header_compiler:$ac_header_preproc in
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6557 ## ------------------------------------ ##
6558 ## Report this to bug-autoconf@gnu.org. ##
6559 ## ------------------------------------ ##
6562 sed "s/^/$as_me: WARNING: /" >&2
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6573 ## ------------------------------------ ##
6574 ## Report this to bug-autoconf@gnu.org. ##
6575 ## ------------------------------------ ##
6578 sed "s/^/$as_me: WARNING: /" >&2
6581 echo "$as_me:$LINENO: checking for $ac_header" >&5
6582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 eval "$as_ac_Header=$ac_header_preproc"
6588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6593 cat >>confdefs.h <<_ACEOF
6594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6603 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6604 if test "${ac_cv_c_const+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6618 /* FIXME: Include the comments suggested by Paul. */
6620 /* Ultrix mips cc rejects this. */
6621 typedef int charset[2];
6623 /* SunOS 4.1.1 cc rejects this. */
6624 char const *const *ccp;
6626 /* NEC SVR4.0.2 mips cc rejects this. */
6627 struct point {int x, y;};
6628 static struct point const zero = {0,0};
6629 /* AIX XL C 1.02.0.0 rejects this.
6630 It does not let you subtract one const X* pointer from another in
6631 an arm of an if-expression whose if-part is not a constant
6633 const char *g = "string";
6634 ccp = &g + (g ? g-g : 0);
6635 /* HPUX 7.0 cc rejects these. */
6638 ccp = (char const *const *) p;
6639 { /* SCO 3.2v4 cc rejects this. */
6641 char const *s = 0 ? (char *) 0 : (char const *) 0;
6645 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6647 const int *foo = &x[0];
6650 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6651 typedef const int *iptr;
6655 { /* AIX XL C 1.02.0.0 rejects this saying
6656 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6657 struct s { int j; const int *ap[3]; };
6658 struct s *b; b->j = 5;
6660 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6688 rm -f conftest.$ac_objext conftest.$ac_ext
6690 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6691 echo "${ECHO_T}$ac_cv_c_const" >&6
6692 if test $ac_cv_c_const = no; then
6694 cat >>confdefs.h <<\_ACEOF
6700 echo "$as_me:$LINENO: checking for off_t" >&5
6701 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6702 if test "${ac_cv_type_off_t+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 $ac_includes_default
6724 rm -f conftest.$ac_objext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
6730 { ac_try='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 ac_cv_type_off_t=yes
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6743 rm -f conftest.$ac_objext conftest.$ac_ext
6745 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6746 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6747 if test $ac_cv_type_off_t = yes; then
6751 cat >>confdefs.h <<_ACEOF
6757 echo "$as_me:$LINENO: checking for size_t" >&5
6758 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6759 if test "${ac_cv_type_size_t+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 cat >conftest.$ac_ext <<_ACEOF
6763 #line $LINENO "configure"
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6775 if (sizeof (size_t))
6781 rm -f conftest.$ac_objext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783 (eval $ac_compile) 2>&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try='test -s conftest.$ac_objext'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6793 ac_cv_type_size_t=yes
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6798 ac_cv_type_size_t=no
6800 rm -f conftest.$ac_objext conftest.$ac_ext
6802 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6803 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6804 if test $ac_cv_type_size_t = yes; then
6808 cat >>confdefs.h <<_ACEOF
6809 #define size_t unsigned
6814 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6815 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6816 if test "${ac_cv_struct_tm+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 cat >conftest.$ac_ext <<_ACEOF
6820 #line $LINENO "configure"
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 #include <sys/types.h>
6832 struct tm *tp; tp->tm_sec;
6837 rm -f conftest.$ac_objext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839 (eval $ac_compile) 2>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } &&
6843 { ac_try='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_cv_struct_tm=time.h
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_cv_struct_tm=sys/time.h
6856 rm -f conftest.$ac_objext conftest.$ac_ext
6858 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6859 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6860 if test $ac_cv_struct_tm = sys/time.h; then
6862 cat >>confdefs.h <<\_ACEOF
6863 #define TM_IN_SYS_TIME 1
6870 for ac_func in vprintf
6872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6873 echo "$as_me:$LINENO: checking for $ac_func" >&5
6874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6875 if eval "test \"\${$as_ac_var+set}\" = set"; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 cat >conftest.$ac_ext <<_ACEOF
6879 #line $LINENO "configure"
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 /* System header to define __stub macros and hopefully few prototypes,
6886 which can conflict with char $ac_func (); below. */
6888 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6896 /* The GNU C library defines this for functions which it implements
6897 to always fail with ENOSYS. Some functions are actually named
6898 something starting with __ and the normal name is an alias. */
6899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6902 char (*f) () = $ac_func;
6916 rm -f conftest.$ac_objext conftest$ac_exeext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6918 (eval $ac_link) 2>&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try='test -s conftest$ac_exeext'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; }; then
6928 eval "$as_ac_var=yes"
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 eval "$as_ac_var=no"
6935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6939 if test `eval echo '${'$as_ac_var'}'` = yes; then
6940 cat >>confdefs.h <<_ACEOF
6941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6944 echo "$as_me:$LINENO: checking for _doprnt" >&5
6945 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6946 if test "${ac_cv_func__doprnt+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.$ac_ext <<_ACEOF
6950 #line $LINENO "configure"
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 /* System header to define __stub macros and hopefully few prototypes,
6957 which can conflict with char _doprnt (); below. */
6959 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6967 /* The GNU C library defines this for functions which it implements
6968 to always fail with ENOSYS. Some functions are actually named
6969 something starting with __ and the normal name is an alias. */
6970 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6973 char (*f) () = _doprnt;
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989 (eval $ac_link) 2>&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -s conftest$ac_exeext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_cv_func__doprnt=yes
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_cv_func__doprnt=no
7006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7008 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7009 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7010 if test $ac_cv_func__doprnt = yes; then
7012 cat >>confdefs.h <<\_ACEOF
7013 #define HAVE_DOPRNT 1
7029 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7032 echo "$as_me:$LINENO: checking for $ac_func" >&5
7033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7034 if eval "test \"\${$as_ac_var+set}\" = set"; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 cat >conftest.$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 /* System header to define __stub macros and hopefully few prototypes,
7045 which can conflict with char $ac_func (); below. */
7047 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7055 /* The GNU C library defines this for functions which it implements
7056 to always fail with ENOSYS. Some functions are actually named
7057 something starting with __ and the normal name is an alias. */
7058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7061 char (*f) () = $ac_func;
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077 (eval $ac_link) 2>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -s conftest$ac_exeext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 eval "$as_ac_var=yes"
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 eval "$as_ac_var=no"
7094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7098 if test `eval echo '${'$as_ac_var'}'` = yes; then
7099 cat >>confdefs.h <<_ACEOF
7100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7106 echo "$as_me:$LINENO: checking for basename" >&5
7107 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7108 if test "${ac_cv_func_basename+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 cat >conftest.$ac_ext <<_ACEOF
7112 #line $LINENO "configure"
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 /* System header to define __stub macros and hopefully few prototypes,
7119 which can conflict with char basename (); below. */
7121 /* Override any gcc2 internal prototype to avoid an error. */
7126 /* We use char because int might match the return type of a gcc2
7127 builtin and then its argument prototype would still apply. */
7129 /* The GNU C library defines this for functions which it implements
7130 to always fail with ENOSYS. Some functions are actually named
7131 something starting with __ and the normal name is an alias. */
7132 #if defined (__stub_basename) || defined (__stub___basename)
7135 char (*f) () = basename;
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_func_basename=yes
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_cv_func_basename=no
7168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7170 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7171 echo "${ECHO_T}$ac_cv_func_basename" >&6
7173 echo "$as_me:$LINENO: checking for setjmp" >&5
7174 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7175 if test "${ac_cv_func_setjmp+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 cat >conftest.$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 /* System header to define __stub macros and hopefully few prototypes,
7186 which can conflict with char setjmp (); below. */
7188 /* Override any gcc2 internal prototype to avoid an error. */
7193 /* We use char because int might match the return type of a gcc2
7194 builtin and then its argument prototype would still apply. */
7196 /* The GNU C library defines this for functions which it implements
7197 to always fail with ENOSYS. Some functions are actually named
7198 something starting with __ and the normal name is an alias. */
7199 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7202 char (*f) () = setjmp;
7216 rm -f conftest.$ac_objext conftest$ac_exeext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218 (eval $ac_link) 2>&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -s conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 ac_cv_func_setjmp=yes
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 ac_cv_func_setjmp=no
7235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7238 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7240 echo "$as_me:$LINENO: checking for setpriority" >&5
7241 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7242 if test "${ac_cv_func_setpriority+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 cat >conftest.$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 /* System header to define __stub macros and hopefully few prototypes,
7253 which can conflict with char setpriority (); below. */
7255 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7262 char setpriority ();
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7269 char (*f) () = setpriority;
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -s conftest$ac_exeext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_func_setpriority=yes
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 ac_cv_func_setpriority=no
7302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7304 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7305 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7307 echo "$as_me:$LINENO: checking for time" >&5
7308 echo $ECHO_N "checking for time... $ECHO_C" >&6
7309 if test "${ac_cv_func_time+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat >conftest.$ac_ext <<_ACEOF
7313 #line $LINENO "configure"
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 /* System header to define __stub macros and hopefully few prototypes,
7320 which can conflict with char time (); below. */
7322 /* Override any gcc2 internal prototype to avoid an error. */
7327 /* We use char because int might match the return type of a gcc2
7328 builtin and then its argument prototype would still apply. */
7330 /* The GNU C library defines this for functions which it implements
7331 to always fail with ENOSYS. Some functions are actually named
7332 something starting with __ and the normal name is an alias. */
7333 #if defined (__stub_time) || defined (__stub___time)
7336 char (*f) () = time;
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352 (eval $ac_link) 2>&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } &&
7356 { ac_try='test -s conftest$ac_exeext'
7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; }; then
7364 echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7371 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7372 echo "${ECHO_T}$ac_cv_func_time" >&6
7374 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7375 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7376 if test "${ac_cv_func_gettimeofday+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 /* System header to define __stub macros and hopefully few prototypes,
7387 which can conflict with char gettimeofday (); below. */
7389 /* Override any gcc2 internal prototype to avoid an error. */
7394 /* We use char because int might match the return type of a gcc2
7395 builtin and then its argument prototype would still apply. */
7396 char gettimeofday ();
7397 /* The GNU C library defines this for functions which it implements
7398 to always fail with ENOSYS. Some functions are actually named
7399 something starting with __ and the normal name is an alias. */
7400 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7403 char (*f) () = gettimeofday;
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7419 (eval $ac_link) 2>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -s conftest$ac_exeext'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 ac_cv_func_gettimeofday=yes
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 ac_cv_func_gettimeofday=no
7436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7438 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7439 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7442 if test "${OSTYPE}" = "cygwin" ; then
7445 echo "$as_me:$LINENO: checking for getopt_long" >&5
7446 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7447 if test "${ac_cv_func_getopt_long+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line $LINENO "configure"
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 /* System header to define __stub macros and hopefully few prototypes,
7458 which can conflict with char getopt_long (); below. */
7460 /* Override any gcc2 internal prototype to avoid an error. */
7465 /* We use char because int might match the return type of a gcc2
7466 builtin and then its argument prototype would still apply. */
7467 char getopt_long ();
7468 /* The GNU C library defines this for functions which it implements
7469 to always fail with ENOSYS. Some functions are actually named
7470 something starting with __ and the normal name is an alias. */
7471 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7474 char (*f) () = getopt_long;
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490 (eval $ac_link) 2>&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try='test -s conftest$ac_exeext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 ac_cv_func_getopt_long=yes
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7505 ac_cv_func_getopt_long=no
7507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7509 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7510 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7511 if test $ac_cv_func_getopt_long = yes; then
7519 if test "${getopt_long}" = "false" ; then
7520 my_includes="$my_includes -I../getopt"
7522 cat >>confdefs.h <<\_ACEOF
7523 #define HAVE_GETOPT_LONG 1
7526 ctlibs_base="$ctlibs_base -lgetopt"
7527 LDFLAGS="$LDFLAGS -L../getopt"
7531 INCLUDED_GETOPT_LONG_TRUE=
7532 INCLUDED_GETOPT_LONG_FALSE='#'
7534 INCLUDED_GETOPT_LONG_TRUE='#'
7535 INCLUDED_GETOPT_LONG_FALSE=
7539 if test "${readline}" = "true" ; then
7540 ctlibs_base="$ctlibs_base -lreadline"
7541 if test "${ncurses}" = "true"; then
7542 ctlibs_base="$ctlibs_base -lncurses"
7543 elif test "${curses}" = "true"; then
7544 ctlibs_base="$ctlibs_base -lcurses"
7548 echo "$as_me:$LINENO: checking debug" >&5
7549 echo $ECHO_N "checking debug... $ECHO_C" >&6
7550 # Check whether --enable-debug or --disable-debug was given.
7551 if test "${enable_debug+set}" = set; then
7552 enableval="$enable_debug"
7553 case "${enableval}" in
7555 echo "$as_me:$LINENO: result: yes" >&5
7556 echo "${ECHO_T}yes" >&6
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7562 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7563 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7567 debug=false; echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6
7572 if test "$debug" = "true"; then
7580 if test "$datadir" != "" ; then
7581 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7584 if test "$debug" = "true" ; then
7585 CFLAGS="$CFLAGS -g -DDEBUG"
7587 cat >>confdefs.h <<\_ACEOF
7592 CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
7594 cat >>confdefs.h <<\_ACEOF
7600 if test "${pthread}" = "true" ; then
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_WXTHREADS 1
7608 echo "$as_me:$LINENO: checking sstream" >&5
7609 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7610 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7611 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
7613 cat >>confdefs.h <<\_ACEOF
7614 #define HAVE_SSTREAM 1
7617 echo "$as_me:$LINENO: result: yes" >&5
7618 echo "${ECHO_T}yes" >&6
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7624 CFLAGS="$CFLAGS -Wall"
7625 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7626 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7627 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7628 if test "${enable_verbose_warnings+set}" = set; then
7629 enableval="$enable_verbose_warnings"
7630 case "$enableval" in
7632 echo "$as_me:$LINENO: result: yes" >&5
7633 echo "${ECHO_T}yes" >&6
7634 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7637 echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6
7642 echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6
7647 echo "$as_me:$LINENO: checking static executables" >&5
7648 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7649 # Check whether --enable-static or --disable-static was given.
7650 if test "${enable_static+set}" = set; then
7651 enableval="$enable_static"
7652 case "$enableval" in
7654 echo "$as_me:$LINENO: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6
7656 CFLAGS="$CFLAGS --static"
7659 echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6
7664 echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6
7670 # Check whether --with-lam or --without-lam was given.
7671 if test "${with_lam+set}" = set; then
7673 if test "$withval" != "no" ; then
7679 if test "$withval" != "no" ; then
7680 if test "$prefix" != "NONE" ; then
7681 trylamdir="$trylamdir $prefix"
7684 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7685 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7686 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7687 if test -x "$testlamdir/bin/hcp" ; then
7688 if test "$testlamdir" != "/usr"; then
7689 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7690 CFLAGS="$CFLAGS -I$testlamdir/include"
7692 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7693 lamdir="$testlamdir"
7700 echo "$as_me:$LINENO: result: $lamdir" >&5
7701 echo "${ECHO_T}$lamdir" >&6
7703 echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7709 # Check whether --with-ctn or --without-ctn was given.
7710 if test "${with_ctn+set}" = set; then
7712 if test "$withval" != "no" ; then
7718 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7719 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7720 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7721 echo "$as_me:$LINENO: result: disabled" >&5
7722 echo "${ECHO_T}disabled" >&6
7724 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7725 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7726 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7727 if test -f "$testctndir/libctn.a" ; then
7728 LDFLAGS="$LDFLAGS -L$testctndir"
7733 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7734 if test -f "$testctndir/ctn_os.h" ; then
7735 CFLAGS="$CFLAGS -I$testctndir"
7740 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7743 cat >>confdefs.h <<\_ACEOF
7744 #define HAVE_CTN_DICOM 1
7747 echo "$as_me:$LINENO: result: yes" >&5
7748 echo "${ECHO_T}yes" >&6
7750 echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6
7755 echo "$as_me:$LINENO: checking for web access" >&5
7756 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7758 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7759 if test "${with_cgibin_dir+set}" = set; then
7760 withval="$with_cgibin_dir"
7761 cgibindir=$withval ;
7765 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7766 if test "${with_cgibin_url+set}" = set; then
7767 withval="$with_cgibin_url"
7768 cgibinurl=$withval ;
7772 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7773 if test "${with_webdata_dir+set}" = set; then
7774 withval="$with_webdata_dir"
7775 webdatadir=$withval ;
7779 # Check whether --with-webdata-url or --without-webdata-url was given.
7780 if test "${with_webdata_url+set}" = set; then
7781 withval="$with_webdata_url"
7782 webdataurl=$withval ;
7786 # Check whether --with-html-dir or --without-html-dir was given.
7787 if test "${with_html_dir+set}" = set; then
7788 withval="$with_html_dir"
7792 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7793 cgiprograms="ctsim.cgi ctsim.conf"
7797 if test -n "$htmldir" ; then
7798 htmldata=simulate.html
7803 if test -n "$htmldir"; then
7811 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7814 echo "$as_me:$LINENO: result: yes" >&5
7815 echo "${ECHO_T}yes" >&6
7816 if test -z "$cgibindir" ; then
7817 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7818 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7819 { (exit 1); exit 1; }; }
7820 elif test -z "$cgibinurl" ; then
7821 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7822 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7823 { (exit 1); exit 1; }; }
7824 elif test -z "$webdatadir" ; then
7825 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7826 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7827 { (exit 1); exit 1; }; }
7828 elif test -z "$webdataurl" ; then
7829 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7830 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7831 { (exit 1); exit 1; }; }
7832 elif test -z "$htmldir" ; then
7833 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7834 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7835 { (exit 1); exit 1; }; }
7838 echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6
7844 if test -n "$lamdir"; then
7853 echo "$as_me:$LINENO: checking for X" >&5
7854 echo $ECHO_N "checking for X... $ECHO_C" >&6
7857 # Check whether --with-x or --without-x was given.
7858 if test "${with_x+set}" = set; then
7862 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7863 if test "x$with_x" = xno; then
7864 # The user explicitly disabled X.
7867 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7868 # Both variables are already set.
7871 if test "${ac_cv_have_x+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 # One or both of the vars are not set, and there is no cached value.
7875 ac_x_includes=no ac_x_libraries=no
7877 if mkdir conftest.dir; then
7879 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7880 cat >Imakefile <<'_ACEOF'
7882 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7884 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7886 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7887 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7888 for ac_extension in a so sl; do
7889 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7890 test -f $ac_im_libdir/libX11.$ac_extension; then
7891 ac_im_usrlibdir=$ac_im_libdir; break
7894 # Screen out bogus values from the imake configuration. They are
7895 # bogus both because they are the default anyway, and because
7896 # using them would break gcc on systems where it needs fixed includes.
7897 case $ac_im_incroot in
7899 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7901 case $ac_im_usrlibdir in
7903 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7910 # Standard set of common directories for X headers.
7911 # Check X11 before X11Rn because it is often a symlink to the current release.
7923 /usr/local/X11/include
7924 /usr/local/X11R6/include
7925 /usr/local/X11R5/include
7926 /usr/local/X11R4/include
7928 /usr/local/include/X11
7929 /usr/local/include/X11R6
7930 /usr/local/include/X11R5
7931 /usr/local/include/X11R4
7935 /usr/XFree86/include/X11
7939 /usr/unsupported/include
7941 /usr/local/x11r5/include
7942 /usr/lpp/Xamples/include
7944 /usr/openwin/include
7945 /usr/openwin/share/include'
7947 if test "$ac_x_includes" = no; then
7948 # Guess where to find include files, by looking for Intrinsic.h.
7949 # First, try using that file with no special directory specified.
7950 cat >conftest.$ac_ext <<_ACEOF
7951 #line $LINENO "configure"
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 #include <X11/Intrinsic.h>
7959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7962 grep -v '^ *+' conftest.er1 >conftest.err
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } >/dev/null; then
7967 if test -s conftest.err; then
7968 ac_cpp_err=$ac_c_preproc_warn_flag
7975 if test -z "$ac_cpp_err"; then
7976 # We can compile using X headers with no special include directory.
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 for ac_dir in $ac_x_header_dirs; do
7983 if test -r "$ac_dir/X11/Intrinsic.h"; then
7984 ac_x_includes=$ac_dir
7989 rm -f conftest.err conftest.$ac_ext
7990 fi # $ac_x_includes = no
7992 if test "$ac_x_libraries" = no; then
7993 # Check for the libraries.
7994 # See if we find them without any special options.
7995 # Don't add to $LIBS permanently.
7998 cat >conftest.$ac_ext <<_ACEOF
7999 #line $LINENO "configure"
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 #include <X11/Intrinsic.h>
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016 (eval $ac_link) 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8027 # We can link X programs with no special library path.
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8034 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8036 # Don't even attempt the hair of trying to link an X program!
8037 for ac_extension in a so sl; do
8038 if test -r $ac_dir/libXt.$ac_extension; then
8039 ac_x_libraries=$ac_dir
8045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8046 fi # $ac_x_libraries = no
8048 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8049 # Didn't find X anywhere. Cache the known absence of X.
8050 ac_cv_have_x="have_x=no"
8052 # Record where we found X for the cache.
8053 ac_cv_have_x="have_x=yes \
8054 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8059 eval "$ac_cv_have_x"
8062 if test "$have_x" != yes; then
8063 echo "$as_me:$LINENO: result: $have_x" >&5
8064 echo "${ECHO_T}$have_x" >&6
8067 # If each of the values was on the command line, it overrides each guess.
8068 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8069 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8070 # Update the cache value to reflect the command line values.
8071 ac_cv_have_x="have_x=yes \
8072 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8073 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8074 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8077 if test "$no_x" = yes; then
8078 # Not all programs may use this symbol, but it does not hurt to define it.
8080 cat >>confdefs.h <<\_ACEOF
8081 #define X_DISPLAY_MISSING 1
8084 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8086 if test -n "$x_includes"; then
8087 X_CFLAGS="$X_CFLAGS -I$x_includes"
8090 # It would also be nice to do this for all -L options, not just this one.
8091 if test -n "$x_libraries"; then
8092 X_LIBS="$X_LIBS -L$x_libraries"
8093 # For Solaris; some versions of Sun CC require a space after -R and
8094 # others require no space. Words are not sufficient . . . .
8095 case `(uname -sr) 2>/dev/null` in
8097 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8098 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8099 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8100 cat >conftest.$ac_ext <<_ACEOF
8101 #line $LINENO "configure"
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118 (eval $ac_link) 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -s conftest$ac_exeext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8136 if test $ac_R_nospace = yes; then
8137 echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6
8139 X_LIBS="$X_LIBS -R$x_libraries"
8141 LIBS="$ac_xsave_LIBS -R $x_libraries"
8142 cat >conftest.$ac_ext <<_ACEOF
8143 #line $LINENO "configure"
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8178 if test $ac_R_space = yes; then
8179 echo "$as_me:$LINENO: result: yes" >&5
8180 echo "${ECHO_T}yes" >&6
8181 X_LIBS="$X_LIBS -R $x_libraries"
8183 echo "$as_me:$LINENO: result: neither works" >&5
8184 echo "${ECHO_T}neither works" >&6
8191 # Check for system-dependent libraries X programs must link with.
8192 # Do this before checking for the system-independent R6 libraries
8193 # (-lICE), since we may need -lsocket or whatever for X linking.
8195 if test "$ISC" = yes; then
8196 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8198 # Martyn Johnson says this is needed for Ultrix, if the X
8199 # libraries were built with DECnet support. And Karl Berry says
8200 # the Alpha needs dnet_stub (dnet does not exist).
8201 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8202 cat >conftest.$ac_ext <<_ACEOF
8203 #line $LINENO "configure"
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8210 /* Override any gcc2 internal prototype to avoid an error. */
8214 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8216 char XOpenDisplay ();
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
8242 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8243 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8244 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 ac_check_lib_save_LIBS=$LIBS
8249 cat >conftest.$ac_ext <<_ACEOF
8250 #line $LINENO "configure"
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8257 /* Override any gcc2 internal prototype to avoid an error. */
8261 /* We use char because int might match the return type of a gcc2
8262 builtin and then its argument prototype would still apply. */
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_lib_dnet_dnet_ntoa=yes
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 ac_cv_lib_dnet_dnet_ntoa=no
8291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8292 LIBS=$ac_check_lib_save_LIBS
8294 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8295 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8296 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8297 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8300 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8301 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8302 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8303 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 ac_check_lib_save_LIBS=$LIBS
8307 LIBS="-ldnet_stub $LIBS"
8308 cat >conftest.$ac_ext <<_ACEOF
8309 #line $LINENO "configure"
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8316 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8331 rm -f conftest.$ac_objext conftest$ac_exeext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333 (eval $ac_link) 2>&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -s conftest$ac_exeext'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 ac_cv_lib_dnet_stub_dnet_ntoa=no
8350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8351 LIBS=$ac_check_lib_save_LIBS
8353 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8354 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8355 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8356 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8362 LIBS="$ac_xsave_LIBS"
8364 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8365 # to get the SysV transport functions.
8366 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8368 # The nsl library prevents programs from opening the X display
8369 # on Irix 5.2, according to T.E. Dickey.
8370 # The functions gethostbyname, getservbyname, and inet_addr are
8371 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8372 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8373 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8374 if test "${ac_cv_func_gethostbyname+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 cat >conftest.$ac_ext <<_ACEOF
8378 #line $LINENO "configure"
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 /* System header to define __stub macros and hopefully few prototypes,
8385 which can conflict with char gethostbyname (); below. */
8387 /* Override any gcc2 internal prototype to avoid an error. */
8392 /* We use char because int might match the return type of a gcc2
8393 builtin and then its argument prototype would still apply. */
8394 char gethostbyname ();
8395 /* The GNU C library defines this for functions which it implements
8396 to always fail with ENOSYS. Some functions are actually named
8397 something starting with __ and the normal name is an alias. */
8398 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8401 char (*f) () = gethostbyname;
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417 (eval $ac_link) 2>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_func_gethostbyname=yes
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 ac_cv_func_gethostbyname=no
8434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8436 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8437 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8439 if test $ac_cv_func_gethostbyname = no; then
8440 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8441 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8442 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 ac_check_lib_save_LIBS=$LIBS
8447 cat >conftest.$ac_ext <<_ACEOF
8448 #line $LINENO "configure"
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8455 /* Override any gcc2 internal prototype to avoid an error. */
8459 /* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8461 char gethostbyname ();
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472 (eval $ac_link) 2>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -s conftest$ac_exeext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_lib_nsl_gethostbyname=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8487 ac_cv_lib_nsl_gethostbyname=no
8489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_lib_save_LIBS
8492 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8493 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8494 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8498 if test $ac_cv_lib_nsl_gethostbyname = no; then
8499 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8500 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8501 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 ac_check_lib_save_LIBS=$LIBS
8506 cat >conftest.$ac_ext <<_ACEOF
8507 #line $LINENO "configure"
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8514 /* Override any gcc2 internal prototype to avoid an error. */
8518 /* We use char because int might match the return type of a gcc2
8519 builtin and then its argument prototype would still apply. */
8520 char gethostbyname ();
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531 (eval $ac_link) 2>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_cv_lib_bsd_gethostbyname=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_cv_lib_bsd_gethostbyname=no
8548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8549 LIBS=$ac_check_lib_save_LIBS
8551 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8552 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8553 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8554 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8560 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8561 # socket/setsockopt and other routines are undefined under SCO ODT
8562 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8563 # on later versions), says Simon Leinen: it contains gethostby*
8564 # variants that don't use the name server (or something). -lsocket
8565 # must be given before -lnsl if both are needed. We assume that
8566 # if connect needs -lnsl, so does gethostbyname.
8567 echo "$as_me:$LINENO: checking for connect" >&5
8568 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8569 if test "${ac_cv_func_connect+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 cat >conftest.$ac_ext <<_ACEOF
8573 #line $LINENO "configure"
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 /* System header to define __stub macros and hopefully few prototypes,
8580 which can conflict with char connect (); below. */
8582 /* Override any gcc2 internal prototype to avoid an error. */
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8590 /* The GNU C library defines this for functions which it implements
8591 to always fail with ENOSYS. Some functions are actually named
8592 something starting with __ and the normal name is an alias. */
8593 #if defined (__stub_connect) || defined (__stub___connect)
8596 char (*f) () = connect;
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_func_connect=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_cv_func_connect=no
8629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8631 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8632 echo "${ECHO_T}$ac_cv_func_connect" >&6
8634 if test $ac_cv_func_connect = no; then
8635 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8636 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8637 if test "${ac_cv_lib_socket_connect+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 ac_check_lib_save_LIBS=$LIBS
8641 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8650 /* Override any gcc2 internal prototype to avoid an error. */
8654 /* We use char because int might match the return type of a gcc2
8655 builtin and then its argument prototype would still apply. */
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_cv_lib_socket_connect=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_cv_lib_socket_connect=no
8684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8685 LIBS=$ac_check_lib_save_LIBS
8687 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8688 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8689 if test $ac_cv_lib_socket_connect = yes; then
8690 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8695 # Guillermo Gomez says -lposix is necessary on A/UX.
8696 echo "$as_me:$LINENO: checking for remove" >&5
8697 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8698 if test "${ac_cv_func_remove+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 cat >conftest.$ac_ext <<_ACEOF
8702 #line $LINENO "configure"
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 /* System header to define __stub macros and hopefully few prototypes,
8709 which can conflict with char remove (); below. */
8711 /* Override any gcc2 internal prototype to avoid an error. */
8716 /* We use char because int might match the return type of a gcc2
8717 builtin and then its argument prototype would still apply. */
8719 /* The GNU C library defines this for functions which it implements
8720 to always fail with ENOSYS. Some functions are actually named
8721 something starting with __ and the normal name is an alias. */
8722 #if defined (__stub_remove) || defined (__stub___remove)
8725 char (*f) () = remove;
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8741 (eval $ac_link) 2>&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -s conftest$ac_exeext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_func_remove=yes
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 ac_cv_func_remove=no
8758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8760 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8761 echo "${ECHO_T}$ac_cv_func_remove" >&6
8763 if test $ac_cv_func_remove = no; then
8764 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8765 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8766 if test "${ac_cv_lib_posix_remove+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 ac_check_lib_save_LIBS=$LIBS
8770 LIBS="-lposix $LIBS"
8771 cat >conftest.$ac_ext <<_ACEOF
8772 #line $LINENO "configure"
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8779 /* Override any gcc2 internal prototype to avoid an error. */
8783 /* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8796 (eval $ac_link) 2>&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -s conftest$ac_exeext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_lib_posix_remove=yes
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_cv_lib_posix_remove=no
8813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8814 LIBS=$ac_check_lib_save_LIBS
8816 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8817 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8818 if test $ac_cv_lib_posix_remove = yes; then
8819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8824 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8825 echo "$as_me:$LINENO: checking for shmat" >&5
8826 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8827 if test "${ac_cv_func_shmat+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 cat >conftest.$ac_ext <<_ACEOF
8831 #line $LINENO "configure"
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8837 /* System header to define __stub macros and hopefully few prototypes,
8838 which can conflict with char shmat (); below. */
8840 /* Override any gcc2 internal prototype to avoid an error. */
8845 /* We use char because int might match the return type of a gcc2
8846 builtin and then its argument prototype would still apply. */
8848 /* The GNU C library defines this for functions which it implements
8849 to always fail with ENOSYS. Some functions are actually named
8850 something starting with __ and the normal name is an alias. */
8851 #if defined (__stub_shmat) || defined (__stub___shmat)
8854 char (*f) () = shmat;
8868 rm -f conftest.$ac_objext conftest$ac_exeext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8870 (eval $ac_link) 2>&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -s conftest$ac_exeext'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 ac_cv_func_shmat=yes
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8889 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8890 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8892 if test $ac_cv_func_shmat = no; then
8893 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8894 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8895 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 ac_check_lib_save_LIBS=$LIBS
8900 cat >conftest.$ac_ext <<_ACEOF
8901 #line $LINENO "configure"
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8908 /* Override any gcc2 internal prototype to avoid an error. */
8912 /* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8925 (eval $ac_link) 2>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -s conftest$ac_exeext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 ac_cv_lib_ipc_shmat=yes
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8940 ac_cv_lib_ipc_shmat=no
8942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8943 LIBS=$ac_check_lib_save_LIBS
8945 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8946 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8947 if test $ac_cv_lib_ipc_shmat = yes; then
8948 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8954 # Check for libraries that X11R6 Xt/Xaw programs need.
8955 ac_save_LDFLAGS=$LDFLAGS
8956 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8957 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8958 # check for ICE first), but we must link in the order -lSM -lICE or
8959 # we get undefined symbols. So assume we have SM if we have ICE.
8960 # These have to be linked with before -lX11, unlike the other
8961 # libraries we check for below, so use a different variable.
8962 # John Interrante, Karl Berry
8963 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8964 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8965 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 ac_check_lib_save_LIBS=$LIBS
8969 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8970 cat >conftest.$ac_ext <<_ACEOF
8971 #line $LINENO "configure"
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8978 /* Override any gcc2 internal prototype to avoid an error. */
8982 /* We use char because int might match the return type of a gcc2
8983 builtin and then its argument prototype would still apply. */
8984 char IceConnectionNumber ();
8988 IceConnectionNumber ();
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try='test -s conftest$ac_exeext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_lib_ICE_IceConnectionNumber=yes
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9010 ac_cv_lib_ICE_IceConnectionNumber=no
9012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9013 LIBS=$ac_check_lib_save_LIBS
9015 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9016 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9017 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9018 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9021 LDFLAGS=$ac_save_LDFLAGS
9032 X_TOOLKIT_LIBS="-lXt"
9033 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9035 our_saved_LDFLAGS="$LDFLAGS"
9036 LDFLAGS="$X_LIBS $LDFLAGS"
9037 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9038 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9039 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 ac_check_lib_save_LIBS=$LIBS
9043 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9044 cat >conftest.$ac_ext <<_ACEOF
9045 #line $LINENO "configure"
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9052 /* Override any gcc2 internal prototype to avoid an error. */
9056 /* We use char because int might match the return type of a gcc2
9057 builtin and then its argument prototype would still apply. */
9058 char XtToolkitThreadInitialize ();
9062 XtToolkitThreadInitialize ();
9067 rm -f conftest.$ac_objext conftest$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069 (eval $ac_link) 2>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -s conftest$ac_exeext'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9087 LIBS=$ac_check_lib_save_LIBS
9089 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9090 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9091 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9093 cat >>confdefs.h <<\_ACEOF
9094 #define X_THREAD_SUPPORT 1
9099 LDFLAGS="$our_saved_LDFLAGS"
9103 if test "x$no_x" = "xyes"; then
9111 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9114 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9116 echo "$as_me:$LINENO: checking for X" >&5
9117 echo $ECHO_N "checking for X... $ECHO_C" >&6
9118 if test "$no_x" != "yes" ; then
9120 cat >>confdefs.h <<\_ACEOF
9124 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9125 ctlib_graphics="$ctlibs_base -lctgraphics"
9126 echo "$as_me:$LINENO: result: yes" >&5
9127 echo "${ECHO_T}yes" >&6
9128 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9129 if test "$libgl" = "true" ; then
9130 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
9131 if test "$wxwin" = "true" ; then
9132 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.3"
9135 if test "$wxwin" = "true" ; then
9137 cat >>confdefs.h <<\_ACEOF
9152 echo "$as_me:$LINENO: result: no" >&5
9153 echo "${ECHO_T}no" >&6
9156 if test "$png" = "true" ; then
9157 ctlibs_tools="$ctlibs_tools -lpng"
9159 if test "$zlib" = "true" ; then
9160 ctlibs_tools="$ctlibs_tools -lz"
9162 if test "$fftw" = "true" ; then
9163 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9165 if test "$ctn" = "true"; then
9166 ctlibs_tools="$ctlibs_tools -lctn"
9169 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9170 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9171 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 ac_check_lib_save_LIBS=$LIBS
9175 LIBS="-ldmallocxx $LIBS"
9176 cat >conftest.$ac_ext <<_ACEOF
9177 #line $LINENO "configure"
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -s conftest$ac_exeext'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 ac_cv_lib_dmallocxx_main=yes
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9210 ac_cv_lib_dmallocxx_main=no
9212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_lib_save_LIBS
9215 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9216 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9217 if test $ac_cv_lib_dmallocxx_main = yes; then
9223 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9224 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9225 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9226 if test "${enable_dmalloc+set}" = set; then
9227 enableval="$enable_dmalloc"
9228 case "${enableval}" in
9229 yes) usedmalloc=true
9230 echo "$as_me:$LINENO: result: yes" >&5
9231 echo "${ECHO_T}yes" >&6
9233 no) usedmalloc=false
9234 echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6
9237 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9238 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9242 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9243 echo "${ECHO_T}no" >&6
9246 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9247 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9249 cat >>confdefs.h <<\_ACEOF
9250 #define HAVE_DMALLOC 1
9253 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9254 echo "${ECHO_T}Using dmalloc" >&6
9257 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9258 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9259 if test "${ac_cv_lib_efence_main+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 ac_check_lib_save_LIBS=$LIBS
9263 LIBS="-lefence $LIBS"
9264 cat >conftest.$ac_ext <<_ACEOF
9265 #line $LINENO "configure"
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9283 (eval $ac_link) 2>&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -s conftest$ac_exeext'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; }; then
9293 ac_cv_lib_efence_main=yes
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_cv_lib_efence_main=no
9300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9301 LIBS=$ac_check_lib_save_LIBS
9303 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9304 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9305 if test $ac_cv_lib_efence_main = yes; then
9311 echo "$as_me:$LINENO: checking for enable-efence" >&5
9312 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9313 # Check whether --enable-efence or --disable-efence was given.
9314 if test "${enable_efence+set}" = set; then
9315 enableval="$enable_efence"
9316 case "${enableval}" in
9318 echo "$as_me:$LINENO: result: yes" >&5
9319 echo "${ECHO_T}yes" >&6
9322 echo "$as_me:$LINENO: result: no" >&5
9323 echo "${ECHO_T}no" >&6
9325 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9326 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9330 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9331 echo "${ECHO_T}no" >&6
9334 if test "$efence" = "true" -a "$useefence" = "true" ; then
9335 ctlibs_tools="$ctlibs_tools -lefence"
9337 cat >>confdefs.h <<\_ACEOF
9338 #define HAVE_EFENCE 1
9341 echo "$as_me:$LINENO: result: Using efence" >&5
9342 echo "${ECHO_T}Using efence" >&6
9345 if test "$wxwin" = "true" ; then
9346 if test "$wx_gtk" = "true" ; then
9347 wxcflags=`$wxconfig --cflags`
9348 wxlibs=`$wxconfig --libs`
9350 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9351 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9353 CFLAGS="$CFLAGS -I../include $wxcflags"
9354 ctlib_graphics="$ctlib_graphics $wxlibs"
9358 HAVE_WXWINDOWS_TRUE=
9359 HAVE_WXWINDOWS_FALSE='#'
9361 HAVE_WXWINDOWS_TRUE='#'
9362 HAVE_WXWINDOWS_FALSE=
9368 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9369 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9372 if test -n "$lamdir" ; then
9373 lamprograms="ctsimtext-lam"
9381 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"
9384 cat >confcache <<\_ACEOF
9385 # This file is a shell script that caches the results of configure
9386 # tests run on this system so they can be shared between configure
9387 # scripts and configure runs, see configure's option --config-cache.
9388 # It is not useful on other systems. If it contains results you don't
9389 # want to keep, you may remove or edit it.
9391 # config.status only pays attention to the cache file if you give it
9392 # the --recheck option to rerun configure.
9394 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9395 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9400 # The following way of writing the cache mishandles newlines in values,
9401 # but we know of no workaround that is simple, portable, and efficient.
9402 # So, don't put newlines in cache variables' values.
9403 # Ultrix sh set writes to stderr and can't be redirected directly,
9404 # and sets the high bit in the cache file unless we assign to the vars.
9407 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9409 # `set' does not quote correctly, so add quotes (double-quote
9410 # substitution turns \\\\ into \\, and sed turns \\ into \).
9413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9416 # `set' quotes correctly as required by POSIX, so do not add quotes.
9418 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9427 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9429 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9430 if test -w $cache_file; then
9431 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9432 cat confcache >$cache_file
9434 echo "not updating unwritable cache $cache_file"
9439 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9440 # Let make expand exec_prefix.
9441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9443 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9444 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9445 # trailing colons and then remove the whole line if VPATH becomes empty
9446 # (actually we leave an empty line to preserve line numbers).
9447 if test "x$srcdir" = x.; then
9448 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9449 s/:*\$(srcdir):*/:/;
9450 s/:*\${srcdir}:*/:/;
9452 s/^\([^=]*=[ ]*\):*/\1/;
9458 DEFS=-DHAVE_CONFIG_H
9462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9463 # 1. Remove the extension, and $U if already installed.
9464 ac_i=`echo "$ac_i" |
9465 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9467 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9468 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9472 LTLIBOBJS=$ac_ltlibobjs
9476 : ${CONFIG_STATUS=./config.status}
9477 ac_clean_files_save=$ac_clean_files
9478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9479 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9480 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9481 cat >$CONFIG_STATUS <<_ACEOF
9483 # Generated by $as_me.
9484 # Run this file to recreate the current configuration.
9485 # Compiler output produced by configure, useful for debugging
9486 # configure, is in config.log if it exists.
9491 SHELL=\${CONFIG_SHELL-$SHELL}
9494 cat >>$CONFIG_STATUS <<\_ACEOF
9495 ## --------------------- ##
9496 ## M4sh Initialization. ##
9497 ## --------------------- ##
9499 # Be Bourne compatible
9500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9503 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9504 # is contrary to our usage. Disable this feature.
9505 alias -g '${1+"$@"}'='"$@"'
9506 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9510 # Support unset when possible.
9511 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9518 # Work around bugs in pre-3.0 UWIN ksh.
9519 $as_unset ENV MAIL MAILPATH
9526 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9527 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9528 LC_TELEPHONE LC_TIME
9530 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9531 eval $as_var=C; export $as_var
9537 # Required to use basename.
9538 if expr a : '\(a\)' >/dev/null 2>&1; then
9544 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9545 as_basename=basename
9551 # Name of the executable.
9552 as_me=`$as_basename "$0" ||
9553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9554 X"$0" : 'X\(//\)$' \| \
9555 X"$0" : 'X\(/\)$' \| \
9556 . : '\(.\)' 2>/dev/null ||
9558 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9559 /^X\/\(\/\/\)$/{ s//\1/; q; }
9560 /^X\/\(\/\).*/{ s//\1/; q; }
9564 # PATH needs CR, and LINENO needs CR and PATH.
9565 # Avoid depending upon Character Ranges.
9566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9569 as_cr_digits='0123456789'
9570 as_cr_alnum=$as_cr_Letters$as_cr_digits
9572 # The user is always right.
9573 if test "${PATH_SEPARATOR+set}" != set; then
9574 echo "#! /bin/sh" >conf$$.sh
9575 echo "exit 0" >>conf$$.sh
9577 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9588 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9589 test "x$as_lineno_1" != "x$as_lineno_2" &&
9590 test "x$as_lineno_3" = "x$as_lineno_2" || {
9591 # Find who we are. Look in the path if we contain no path at all
9594 *[\\/]* ) as_myself=$0 ;;
9595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599 test -z "$as_dir" && as_dir=.
9600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9605 # We did not find ourselves, most probably we were run as `sh COMMAND'
9606 # in which case we are not to be found in the path.
9607 if test "x$as_myself" = x; then
9610 if test ! -f "$as_myself"; then
9611 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9612 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9613 { (exit 1); exit 1; }; }
9615 case $CONFIG_SHELL in
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9621 test -z "$as_dir" && as_dir=.
9622 for as_base in sh bash ksh sh5; do
9625 if ("$as_dir/$as_base" -c '
9628 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9629 test "x$as_lineno_1" != "x$as_lineno_2" &&
9630 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9631 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9632 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9633 CONFIG_SHELL=$as_dir/$as_base
9635 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9643 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9644 # uniformly replaced by the line number. The first 'sed' inserts a
9645 # line-number line before each line; the second 'sed' does the real
9646 # work. The second script uses 'N' to pair each line-number line
9647 # with the numbered line, and appends trailing '-' during
9648 # substitution so that $LINENO is not a special case at line end.
9649 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9650 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9651 sed '=' <$as_myself |
9656 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9659 s,^['$as_cr_digits']*\n,,
9661 chmod +x $as_me.lineno ||
9662 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9663 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9664 { (exit 1); exit 1; }; }
9666 # Don't try to exec as it changes $[0], causing all sort of problems
9667 # (the dirname of $[0] is not the place where we might find the
9668 # original and so on. Autoconf is especially sensible to this).
9670 # Exit status is that of the last command.
9675 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9676 *c*,-n*) ECHO_N= ECHO_C='
9678 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9679 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9682 if expr a : '\(a\)' >/dev/null 2>&1; then
9688 rm -f conf$$ conf$$.exe conf$$.file
9690 if ln -s conf$$.file conf$$ 2>/dev/null; then
9691 # We could just check for DJGPP; but this test a) works b) is more generic
9692 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9693 if test -f conf$$.exe; then
9694 # Don't use ln at all; we don't have any links
9699 elif ln conf$$.file conf$$ 2>/dev/null; then
9704 rm -f conf$$ conf$$.exe conf$$.file
9706 if mkdir -p . 2>/dev/null; then
9712 as_executable_p="test -f"
9714 # Sed expression to map a string onto a valid CPP name.
9715 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9717 # Sed expression to map a string onto a valid variable name.
9718 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9722 # We need space, tab and new line, in precisely that order.
9732 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9733 # report actual input values of CONFIG_FILES etc. instead of their
9734 # values after options handling. Logging --version etc. is OK.
9738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9739 ## Running $as_me. ##
9744 This file was extended by $as_me, which was
9745 generated by GNU Autoconf 2.56. Invocation command line was
9747 CONFIG_FILES = $CONFIG_FILES
9748 CONFIG_HEADERS = $CONFIG_HEADERS
9749 CONFIG_LINKS = $CONFIG_LINKS
9750 CONFIG_COMMANDS = $CONFIG_COMMANDS
9754 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9758 # Files that config.status was made for.
9759 if test -n "$ac_config_files"; then
9760 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9763 if test -n "$ac_config_headers"; then
9764 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9767 if test -n "$ac_config_links"; then
9768 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9771 if test -n "$ac_config_commands"; then
9772 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9775 cat >>$CONFIG_STATUS <<\_ACEOF
9778 \`$as_me' instantiates files from templates according to the
9779 current configuration.
9781 Usage: $0 [OPTIONS] [FILE]...
9783 -h, --help print this help, then exit
9784 -V, --version print version number, then exit
9785 -q, --quiet do not print progress messages
9786 -d, --debug don't remove temporary files
9787 --recheck update $as_me by reconfiguring in the same conditions
9788 --file=FILE[:TEMPLATE]
9789 instantiate the configuration file FILE
9790 --header=FILE[:TEMPLATE]
9791 instantiate the configuration header FILE
9793 Configuration files:
9796 Configuration headers:
9799 Configuration commands:
9802 Report bugs to <bug-autoconf@gnu.org>."
9805 cat >>$CONFIG_STATUS <<_ACEOF
9808 configured by $0, generated by GNU Autoconf 2.56,
9809 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9811 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9812 Free Software Foundation, Inc.
9813 This config.status script is free software; the Free Software Foundation
9814 gives unlimited permission to copy, distribute and modify it."
9819 cat >>$CONFIG_STATUS <<\_ACEOF
9820 # If no file are specified by the user, then we need to provide default
9821 # value. By we need to know if files were specified by the user.
9827 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9828 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9836 *) # This is not an option, so the user has probably given explicit
9839 ac_need_defaults=false;;
9843 # Handling of the options.
9845 cat >>$CONFIG_STATUS <<\_ACEOF
9846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9848 --version | --vers* | -V )
9849 echo "$ac_cs_version"; exit 0 ;;
9851 # Conflict between --help and --header
9852 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9853 Try \`$0 --help' for more information." >&5
9854 echo "$as_me: error: ambiguous option: $1
9855 Try \`$0 --help' for more information." >&2;}
9856 { (exit 1); exit 1; }; };;
9857 --help | --hel | -h )
9858 echo "$ac_cs_usage"; exit 0 ;;
9859 --debug | --d* | -d )
9861 --file | --fil | --fi | --f )
9863 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9864 ac_need_defaults=false;;
9865 --header | --heade | --head | --hea )
9867 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9868 ac_need_defaults=false;;
9869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9874 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9875 Try \`$0 --help' for more information." >&5
9876 echo "$as_me: error: unrecognized option: $1
9877 Try \`$0 --help' for more information." >&2;}
9878 { (exit 1); exit 1; }; } ;;
9880 *) ac_config_targets="$ac_config_targets $1" ;;
9886 ac_configure_extra_args=
9888 if $ac_cs_silent; then
9890 ac_configure_extra_args="$ac_configure_extra_args --silent"
9894 cat >>$CONFIG_STATUS <<_ACEOF
9895 if \$ac_cs_recheck; then
9896 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9897 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9902 cat >>$CONFIG_STATUS <<_ACEOF
9904 # INIT-COMMANDS section.
9913 cat >>$CONFIG_STATUS <<\_ACEOF
9914 for ac_config_target in $ac_config_targets
9916 case "$ac_config_target" in
9917 # Handling of arguments.
9918 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9919 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9920 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9921 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9922 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9923 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9924 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9925 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9926 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9927 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9928 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9929 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9930 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9931 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9932 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9933 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9934 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9935 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9936 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9937 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9938 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9939 { (exit 1); exit 1; }; };;
9943 # If the user did not use the arguments to specify the items to instantiate,
9944 # then the envvar interface is used. Set only those that are not.
9945 # We use the long form for the default assignment because of an extremely
9946 # bizarre bug on SunOS 4.1.3.
9947 if $ac_need_defaults; then
9948 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9949 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9950 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9953 # Have a temporary directory for convenience. Make it in the build tree
9954 # simply because there is no reason to put it here, and in addition,
9955 # creating and moving files from /tmp can sometimes cause problems.
9956 # Create a temporary directory, and hook for its removal unless debugging.
9959 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9960 trap '{ (exit 1); exit 1; }' 1 2 13 15
9963 # Create a (secure) tmp directory for tmp files.
9966 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9967 test -n "$tmp" && test -d "$tmp"
9970 tmp=./confstat$$-$RANDOM
9971 (umask 077 && mkdir $tmp)
9974 echo "$me: cannot create a temporary directory in ." >&2
9975 { (exit 1); exit 1; }
9980 cat >>$CONFIG_STATUS <<_ACEOF
9983 # CONFIG_FILES section.
9986 # No need to generate the scripts if there are no CONFIG_FILES.
9987 # This happens for instance when ./config.status config.h
9988 if test -n "\$CONFIG_FILES"; then
9989 # Protect against being on the right side of a sed subst in config.status.
9990 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9991 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9992 s,@SHELL@,$SHELL,;t t
9993 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9994 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9995 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9996 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9997 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9998 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9999 s,@exec_prefix@,$exec_prefix,;t t
10000 s,@prefix@,$prefix,;t t
10001 s,@program_transform_name@,$program_transform_name,;t t
10002 s,@bindir@,$bindir,;t t
10003 s,@sbindir@,$sbindir,;t t
10004 s,@libexecdir@,$libexecdir,;t t
10005 s,@datadir@,$datadir,;t t
10006 s,@sysconfdir@,$sysconfdir,;t t
10007 s,@sharedstatedir@,$sharedstatedir,;t t
10008 s,@localstatedir@,$localstatedir,;t t
10009 s,@libdir@,$libdir,;t t
10010 s,@includedir@,$includedir,;t t
10011 s,@oldincludedir@,$oldincludedir,;t t
10012 s,@infodir@,$infodir,;t t
10013 s,@mandir@,$mandir,;t t
10014 s,@build_alias@,$build_alias,;t t
10015 s,@host_alias@,$host_alias,;t t
10016 s,@target_alias@,$target_alias,;t t
10017 s,@DEFS@,$DEFS,;t t
10018 s,@ECHO_C@,$ECHO_C,;t t
10019 s,@ECHO_N@,$ECHO_N,;t t
10020 s,@ECHO_T@,$ECHO_T,;t t
10021 s,@LIBS@,$LIBS,;t t
10022 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10023 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10024 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10025 s,@PACKAGE@,$PACKAGE,;t t
10026 s,@VERSION@,$VERSION,;t t
10027 s,@ACLOCAL@,$ACLOCAL,;t t
10028 s,@AUTOCONF@,$AUTOCONF,;t t
10029 s,@AUTOMAKE@,$AUTOMAKE,;t t
10030 s,@AUTOHEADER@,$AUTOHEADER,;t t
10031 s,@MAKEINFO@,$MAKEINFO,;t t
10032 s,@SET_MAKE@,$SET_MAKE,;t t
10034 s,@RANLIB@,$RANLIB,;t t
10035 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10037 s,@CFLAGS@,$CFLAGS,;t t
10038 s,@LDFLAGS@,$LDFLAGS,;t t
10039 s,@CPPFLAGS@,$CPPFLAGS,;t t
10040 s,@ac_ct_CC@,$ac_ct_CC,;t t
10041 s,@EXEEXT@,$EXEEXT,;t t
10042 s,@OBJEXT@,$OBJEXT,;t t
10044 s,@CXXFLAGS@,$CXXFLAGS,;t t
10045 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10046 s,@wxconfig@,$wxconfig,;t t
10047 s,@build@,$build,;t t
10048 s,@build_cpu@,$build_cpu,;t t
10049 s,@build_vendor@,$build_vendor,;t t
10050 s,@build_os@,$build_os,;t t
10051 s,@host@,$host,;t t
10052 s,@host_cpu@,$host_cpu,;t t
10053 s,@host_vendor@,$host_vendor,;t t
10054 s,@host_os@,$host_os,;t t
10056 s,@EGREP@,$EGREP,;t t
10057 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10058 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10059 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10060 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10061 s,@lamdir@,$lamdir,;t t
10062 s,@mpienable@,$mpienable,;t t
10063 s,@cgibindir@,$cgibindir,;t t
10064 s,@cgibinurl@,$cgibinurl,;t t
10065 s,@webdatadir@,$webdatadir,;t t
10066 s,@webdataurl@,$webdataurl,;t t
10067 s,@htmldir@,$htmldir,;t t
10068 s,@cgiprograms@,$cgiprograms,;t t
10069 s,@htmldata@,$htmldata,;t t
10070 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10071 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10072 s,@webenabled@,$webenabled,;t t
10073 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10074 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10075 s,@X_CFLAGS@,$X_CFLAGS,;t t
10076 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10077 s,@X_LIBS@,$X_LIBS,;t t
10078 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10079 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10080 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10081 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10082 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10083 s,@my_includes@,$my_includes,;t t
10084 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10085 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10086 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10087 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10088 s,@wxcflags@,$wxcflags,;t t
10089 s,@wxlibs@,$wxlibs,;t t
10090 s,@ctlibs@,$ctlibs,;t t
10091 s,@lamprograms@,$lamprograms,;t t
10092 s,@lamdefs@,$lamdefs,;t t
10093 s,@LIBOBJS@,$LIBOBJS,;t t
10094 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10099 cat >>$CONFIG_STATUS <<\_ACEOF
10100 # Split the substitutions into bite-sized pieces for seds with
10101 # small command number limits, like on Digital OSF/1 and HP-UX.
10102 ac_max_sed_lines=48
10103 ac_sed_frag=1 # Number of current file.
10104 ac_beg=1 # First line for current file.
10105 ac_end=$ac_max_sed_lines # Line after last line for current file.
10108 while $ac_more_lines; do
10109 if test $ac_beg -gt 1; then
10110 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10112 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10114 if test ! -s $tmp/subs.frag; then
10115 ac_more_lines=false
10117 # The purpose of the label and of the branching condition is to
10118 # speed up the sed processing (if there are no `@' at all, there
10119 # is no need to browse any of the substitutions).
10120 # These are the two extra sed commands mentioned above.
10122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10123 if test -z "$ac_sed_cmds"; then
10124 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10126 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10128 ac_sed_frag=`expr $ac_sed_frag + 1`
10130 ac_end=`expr $ac_end + $ac_max_sed_lines`
10133 if test -z "$ac_sed_cmds"; then
10136 fi # test -n "$CONFIG_FILES"
10139 cat >>$CONFIG_STATUS <<\_ACEOF
10140 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10143 - | *:- | *:-:* ) # input from stdin
10145 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10147 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10149 * ) ac_file_in=$ac_file.in ;;
10152 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10153 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10155 X"$ac_file" : 'X\(//\)[^/]' \| \
10156 X"$ac_file" : 'X\(//\)$' \| \
10157 X"$ac_file" : 'X\(/\)' \| \
10158 . : '\(.\)' 2>/dev/null ||
10160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10162 /^X\(\/\/\)$/{ s//\1/; q; }
10163 /^X\(\/\).*/{ s//\1/; q; }
10165 { if $as_mkdir_p; then
10170 while test ! -d "$as_dir"; do
10171 as_dirs="$as_dir $as_dirs"
10172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10174 X"$as_dir" : 'X\(//\)[^/]' \| \
10175 X"$as_dir" : 'X\(//\)$' \| \
10176 X"$as_dir" : 'X\(/\)' \| \
10177 . : '\(.\)' 2>/dev/null ||
10179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10181 /^X\(\/\/\)$/{ s//\1/; q; }
10182 /^X\(\/\).*/{ s//\1/; q; }
10185 test ! -n "$as_dirs" || mkdir $as_dirs
10186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10188 { (exit 1); exit 1; }; }; }
10192 if test "$ac_dir" != .; then
10193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10194 # A "../" for each directory in $ac_dir_suffix.
10195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10197 ac_dir_suffix= ac_top_builddir=
10201 .) # No --srcdir option. We are building in place.
10203 if test -z "$ac_top_builddir"; then
10206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10208 [\\/]* | ?:[\\/]* ) # Absolute path.
10209 ac_srcdir=$srcdir$ac_dir_suffix;
10210 ac_top_srcdir=$srcdir ;;
10211 *) # Relative path.
10212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10215 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10217 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10218 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10219 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10220 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10224 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10225 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10228 if test x"$ac_file" != x-; then
10229 { echo "$as_me:$LINENO: creating $ac_file" >&5
10230 echo "$as_me: creating $ac_file" >&6;}
10233 # Let's still pretend it is `configure' which instantiates (i.e., don't
10234 # use $as_me), people would be surprised to read:
10235 # /* config.h. Generated by config.status. */
10236 if test x"$ac_file" = x-; then
10239 configure_input="$ac_file. "
10241 configure_input=$configure_input"Generated from `echo $ac_file_in |
10242 sed 's,.*/,,'` by configure."
10244 # First look for the input files in the build tree, otherwise in the
10246 ac_file_inputs=`IFS=:
10247 for f in $ac_file_in; do
10249 -) echo $tmp/stdin ;;
10251 # Absolute (can't be DOS-style, as IFS=:)
10252 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10253 echo "$as_me: error: cannot find input file: $f" >&2;}
10254 { (exit 1); exit 1; }; }
10257 if test -f "$f"; then
10260 elif test -f "$srcdir/$f"; then
10265 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10266 echo "$as_me: error: cannot find input file: $f" >&2;}
10267 { (exit 1); exit 1; }; }
10270 done` || { (exit 1); exit 1; }
10272 cat >>$CONFIG_STATUS <<_ACEOF
10276 cat >>$CONFIG_STATUS <<\_ACEOF
10278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10279 s,@configure_input@,$configure_input,;t t
10280 s,@srcdir@,$ac_srcdir,;t t
10281 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10282 s,@top_srcdir@,$ac_top_srcdir,;t t
10283 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10284 s,@builddir@,$ac_builddir,;t t
10285 s,@abs_builddir@,$ac_abs_builddir,;t t
10286 s,@top_builddir@,$ac_top_builddir,;t t
10287 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10288 s,@INSTALL@,$ac_INSTALL,;t t
10289 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10291 if test x"$ac_file" != x-; then
10292 mv $tmp/out $ac_file
10300 cat >>$CONFIG_STATUS <<\_ACEOF
10303 # CONFIG_HEADER section.
10306 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10307 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10309 # ac_d sets the value in "#define NAME VALUE" lines.
10310 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10311 ac_dB='[ ].*$,\1#\2'
10314 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10315 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10316 ac_uB='$,\1#\2define\3'
10320 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10323 - | *:- | *:-:* ) # input from stdin
10325 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10326 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10327 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10329 * ) ac_file_in=$ac_file.in ;;
10332 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10333 echo "$as_me: creating $ac_file" >&6;}
10335 # First look for the input files in the build tree, otherwise in the
10337 ac_file_inputs=`IFS=:
10338 for f in $ac_file_in; do
10340 -) echo $tmp/stdin ;;
10342 # Absolute (can't be DOS-style, as IFS=:)
10343 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10344 echo "$as_me: error: cannot find input file: $f" >&2;}
10345 { (exit 1); exit 1; }; }
10348 if test -f "$f"; then
10351 elif test -f "$srcdir/$f"; then
10356 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10357 echo "$as_me: error: cannot find input file: $f" >&2;}
10358 { (exit 1); exit 1; }; }
10361 done` || { (exit 1); exit 1; }
10362 # Remove the trailing spaces.
10363 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10367 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10368 # `conftest.undefs', that substitutes the proper values into
10369 # config.h.in to produce config.h. The first handles `#define'
10370 # templates, and the second `#undef' templates.
10371 # And first: Protect against being on the right side of a sed subst in
10372 # config.status. Protect against being in an unquoted here document
10373 # in config.status.
10374 rm -f conftest.defines conftest.undefs
10375 # Using a here document instead of a string reduces the quoting nightmare.
10376 # Putting comments in sed scripts is not portable.
10378 # `end' is used to avoid that the second main sed command (meant for
10379 # 0-ary CPP macros) applies to n-ary macro definitions.
10380 # See the Autoconf documentation for `clear'.
10381 cat >confdef2sed.sed <<\_ACEOF
10386 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10388 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10391 # If some macros were called several times there might be several times
10392 # the same #defines, which is useless. Nevertheless, we may not want to
10393 # sort them, since we want the *last* AC-DEFINE to be honored.
10394 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10395 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10396 rm -f confdef2sed.sed
10398 # This sed command replaces #undef with comments. This is necessary, for
10399 # example, in the case of _POSIX_SOURCE, which is predefined and required
10400 # on some systems where configure will not decide to define it.
10401 cat >>conftest.undefs <<\_ACEOF
10402 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10405 # Break up conftest.defines because some shells have a limit on the size
10406 # of here documents, and old seds have small limits too (100 cmds).
10407 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10408 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10409 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10410 echo ' :' >>$CONFIG_STATUS
10411 rm -f conftest.tail
10412 while grep . conftest.defines >/dev/null
10414 # Write a limited-size here document to $tmp/defines.sed.
10415 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10416 # Speed up: don't consider the non `#define' lines.
10417 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10418 # Work around the forget-to-reset-the-flag bug.
10419 echo 't clr' >>$CONFIG_STATUS
10420 echo ': clr' >>$CONFIG_STATUS
10421 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10423 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10425 mv $tmp/out $tmp/in
10427 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10428 rm -f conftest.defines
10429 mv conftest.tail conftest.defines
10431 rm -f conftest.defines
10432 echo ' fi # grep' >>$CONFIG_STATUS
10433 echo >>$CONFIG_STATUS
10435 # Break up conftest.undefs because some shells have a limit on the size
10436 # of here documents, and old seds have small limits too (100 cmds).
10437 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10438 rm -f conftest.tail
10439 while grep . conftest.undefs >/dev/null
10441 # Write a limited-size here document to $tmp/undefs.sed.
10442 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10443 # Speed up: don't consider the non `#undef'
10444 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10445 # Work around the forget-to-reset-the-flag bug.
10446 echo 't clr' >>$CONFIG_STATUS
10447 echo ': clr' >>$CONFIG_STATUS
10448 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10450 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10452 mv $tmp/out $tmp/in
10454 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10455 rm -f conftest.undefs
10456 mv conftest.tail conftest.undefs
10458 rm -f conftest.undefs
10460 cat >>$CONFIG_STATUS <<\_ACEOF
10461 # Let's still pretend it is `configure' which instantiates (i.e., don't
10462 # use $as_me), people would be surprised to read:
10463 # /* config.h. Generated by config.status. */
10464 if test x"$ac_file" = x-; then
10465 echo "/* Generated by configure. */" >$tmp/config.h
10467 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10469 cat $tmp/in >>$tmp/config.h
10471 if test x"$ac_file" != x-; then
10472 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10473 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10474 echo "$as_me: $ac_file is unchanged" >&6;}
10476 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10477 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10478 X"$ac_file" : 'X\(//\)[^/]' \| \
10479 X"$ac_file" : 'X\(//\)$' \| \
10480 X"$ac_file" : 'X\(/\)' \| \
10481 . : '\(.\)' 2>/dev/null ||
10483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10485 /^X\(\/\/\)$/{ s//\1/; q; }
10486 /^X\(\/\).*/{ s//\1/; q; }
10488 { if $as_mkdir_p; then
10493 while test ! -d "$as_dir"; do
10494 as_dirs="$as_dir $as_dirs"
10495 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10497 X"$as_dir" : 'X\(//\)[^/]' \| \
10498 X"$as_dir" : 'X\(//\)$' \| \
10499 X"$as_dir" : 'X\(/\)' \| \
10500 . : '\(.\)' 2>/dev/null ||
10502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10504 /^X\(\/\/\)$/{ s//\1/; q; }
10505 /^X\(\/\).*/{ s//\1/; q; }
10508 test ! -n "$as_dirs" || mkdir $as_dirs
10509 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10510 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10511 { (exit 1); exit 1; }; }; }
10514 mv $tmp/config.h $ac_file
10518 rm -f $tmp/config.h
10522 cat >>$CONFIG_STATUS <<\_ACEOF
10525 # CONFIG_COMMANDS section.
10527 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10528 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10529 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10530 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10531 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10532 X"$ac_dest" : 'X\(//\)[^/]' \| \
10533 X"$ac_dest" : 'X\(//\)$' \| \
10534 X"$ac_dest" : 'X\(/\)' \| \
10535 . : '\(.\)' 2>/dev/null ||
10537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10539 /^X\(\/\/\)$/{ s//\1/; q; }
10540 /^X\(\/\).*/{ s//\1/; q; }
10544 if test "$ac_dir" != .; then
10545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10546 # A "../" for each directory in $ac_dir_suffix.
10547 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10549 ac_dir_suffix= ac_top_builddir=
10553 .) # No --srcdir option. We are building in place.
10555 if test -z "$ac_top_builddir"; then
10558 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10560 [\\/]* | ?:[\\/]* ) # Absolute path.
10561 ac_srcdir=$srcdir$ac_dir_suffix;
10562 ac_top_srcdir=$srcdir ;;
10563 *) # Relative path.
10564 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10565 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10567 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10569 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10570 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10571 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10572 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10575 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10576 echo "$as_me: executing $ac_dest commands" >&6;}
10578 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10583 cat >>$CONFIG_STATUS <<\_ACEOF
10585 { (exit 0); exit 0; }
10587 chmod +x $CONFIG_STATUS
10588 ac_clean_files=$ac_clean_files_save
10591 # configure is writing to config.log, and then calls config.status.
10592 # config.status does its own redirection, appending to config.log.
10593 # Unfortunately, on DOS this fails, as config.log is still kept open
10594 # by configure, so config.status won't be able to write to it; its
10595 # output is simply discarded. So we exec the FD to /dev/null,
10596 # effectively closing config.log, so it can be properly (re)opened and
10597 # appended to by config.status. When coming back to configure, we
10598 # need to make the FD available again.
10599 if test "$no_create" != yes; then
10601 ac_config_status_args=
10602 test "$silent" = yes &&
10603 ac_config_status_args="$ac_config_status_args --quiet"
10605 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10607 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10608 # would make configure fail if this is the last instruction.
10609 $ac_cs_success || { (exit 1); exit 1; }