2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --enable-debug Turn on debugging
866 --enable-verbose-warnings
867 Enable verbose compiler warnings.
869 Enable static executables.
870 --enable-dmalloc Use dmalloc memory allocation
871 --enable-efence Use ElectricFence memory allocation
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-lam=PATH Set path of LAM MPI
877 --with-ctn=PATH Set path of CTN DICOM library
878 --with-mcpu=CPU Set name of CPU for gcc -mcpu
879 --with-cgibin-dir=PATH Set path of CGI binaries directory
880 --with-cgibin-url=PATH Set URL path of CGI binaries
881 --with-webdata-dir=PATH Set path of webdata
882 --with-webdata-url=PATH Set URL path of webdata
883 --with-html-dir=PATH Set directory of html files
884 --with-x use the X Window System
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CXX C++ compiler command
894 CXXFLAGS C++ compiler flags
897 Use these variables to override the choices made by `configure' or to help
898 it to find libraries and programs with nonstandard names/locations.
903 if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
910 if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915 ac_dir_suffix= ac_top_builddir=
919 .) # No --srcdir option. We are building in place.
921 if test -z "$ac_top_builddir"; then
924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
935 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
936 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
937 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
938 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
941 # Check for guested configure; otherwise get Cygnus style configure.
942 if test -f $ac_srcdir/configure.gnu; then
944 $SHELL $ac_srcdir/configure.gnu --help=recursive
945 elif test -f $ac_srcdir/configure; then
947 $SHELL $ac_srcdir/configure --help=recursive
948 elif test -f $ac_srcdir/configure.ac ||
949 test -f $ac_srcdir/configure.in; then
953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 test -n "$ac_init_help" && exit 0
960 if $ac_init_version; then
963 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
964 Free Software Foundation, Inc.
965 This configure script is free software; the Free Software Foundation
966 gives unlimited permission to copy, distribute and modify it.
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
975 It was created by $as_me, which was
976 generated by GNU Autoconf 2.57. Invocation command line was
987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010 test -z "$as_dir" && as_dir=.
1011 echo "PATH: $as_dir"
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Strip out --silent because we don't want to record it for future runs.
1029 # Also quote any args containing shell meta-characters.
1030 # Make two passes to allow for proper duplicate-argument suppression.
1035 ac_must_keep_next=false
1041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1045 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1052 if test $ac_must_keep_next = true; then
1053 ac_must_keep_next=false # Got value, back to normal.
1056 *=* | --config-cache | -C | -disable-* | --disable-* \
1057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1059 | -with-* | --with-* | -without-* | --without-* | --x)
1060 case "$ac_configure_args0 " in
1061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 -* ) ac_must_keep_next=true ;;
1067 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068 # Get rid of the leading space.
1074 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1075 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077 # When interrupted or exit'd, cleanup temporary files, and complete
1078 # config.log. We remove comments because anyway the quotes in there
1079 # would cause problems or look ugly.
1080 # WARNING: Be sure not to use single quotes in there, as some shells,
1081 # such as our DU 5.0 friend, will then `close' the trap.
1082 trap 'exit_status=$?
1083 # Save into config.log some information that might help in debugging.
1088 ## ---------------- ##
1089 ## Cache variables. ##
1090 ## ---------------- ##
1093 # The following way of writing the cache mishandles newlines in values,
1096 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 ## ----------------- ##
1112 ## Output variables. ##
1113 ## ----------------- ##
1116 for ac_var in $ac_subst_vars
1118 eval ac_val=$`echo $ac_var`
1119 echo "$ac_var='"'"'$ac_val'"'"'"
1123 if test -n "$ac_subst_files"; then
1130 for ac_var in $ac_subst_files
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1138 if test -s confdefs.h; then
1145 sed "/^$/d" confdefs.h | sort
1148 test "$ac_signal" != 0 &&
1149 echo "$as_me: caught signal $ac_signal"
1150 echo "$as_me: exit $exit_status"
1152 rm -f core core.* *.core &&
1153 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156 for ac_signal in 1 2 13 15; do
1157 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1162 rm -rf conftest* confdefs.h
1163 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 # Predefined preprocessor variables.
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_NAME "$PACKAGE_NAME"
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_STRING "$PACKAGE_STRING"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193 # Let the site file select an alternate cache file if it wants to.
1194 # Prefer explicitly selected file to automatically selected ones.
1195 if test -z "$CONFIG_SITE"; then
1196 if test "x$prefix" != xNONE; then
1197 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 for ac_site_file in $CONFIG_SITE; do
1203 if test -r "$ac_site_file"; then
1204 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1205 echo "$as_me: loading site script $ac_site_file" >&6;}
1206 sed 's/^/| /' "$ac_site_file" >&5
1211 if test -r "$cache_file"; then
1212 # Some versions of bash will fail to source /dev/null (special
1213 # files actually), so we avoid doing that.
1214 if test -f "$cache_file"; then
1215 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1216 echo "$as_me: loading cache $cache_file" >&6;}
1218 [\\/]* | ?:[\\/]* ) . $cache_file;;
1219 *) . ./$cache_file;;
1223 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1224 echo "$as_me: creating cache $cache_file" >&6;}
1228 # Check that the precious variables saved in the cache have kept the same
1230 ac_cache_corrupted=false
1231 for ac_var in `(set) 2>&1 |
1232 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1234 eval ac_new_set=\$ac_env_${ac_var}_set
1235 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1236 eval ac_new_val="\$ac_env_${ac_var}_value"
1237 case $ac_old_set,$ac_new_set in
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1248 if test "x$ac_old_val" != "x$ac_new_val"; then
1249 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1250 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1251 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1252 echo "$as_me: former value: $ac_old_val" >&2;}
1253 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1254 echo "$as_me: current value: $ac_new_val" >&2;}
1255 ac_cache_corrupted=:
1258 # Pass precious variables to config.status.
1259 if test "$ac_new_set" = set; then
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 *) ac_arg=$ac_var=$ac_new_val ;;
1265 case " $ac_configure_args " in
1266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1267 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271 if $ac_cache_corrupted; then
1272 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1273 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1274 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1275 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1276 { (exit 1); exit 1; }; }
1280 ac_cpp='$CPP $CPPFLAGS'
1281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1305 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1306 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1307 if test "${enable_maintainer_mode+set}" = set; then
1308 enableval="$enable_maintainer_mode"
1309 USE_MAINTAINER_MODE=$enableval
1311 USE_MAINTAINER_MODE=no
1313 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1314 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1317 if test $USE_MAINTAINER_MODE = yes; then
1318 MAINTAINER_MODE_TRUE=
1319 MAINTAINER_MODE_FALSE='#'
1321 MAINTAINER_MODE_TRUE='#'
1322 MAINTAINER_MODE_FALSE=
1324 MAINT=$MAINTAINER_MODE_TRUE
1327 am__api_version="1.4"
1329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330 if test -f $ac_dir/install-sh; then
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 elif test -f $ac_dir/install.sh; then
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 elif test -f $ac_dir/shtool; then
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 # Find a good install program. We prefer a C program (faster),
1354 # so one script is as good as another. But avoid the broken or
1355 # incompatible versions:
1356 # SysV /etc/install, /usr/sbin/install
1357 # SunOS /usr/etc/install
1358 # IRIX /sbin/install
1360 # AmigaOS /C/install, which installs bootblocks on floppy discs
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1366 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1367 if test -z "$INSTALL"; then
1368 if test "${ac_cv_path_install+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 test -z "$as_dir" && as_dir=.
1376 # Account for people who put trailing slashes in PATH elements.
1378 ./ | .// | /cC/* | \
1379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1382 # OSF1 and SCO ODT 3.0 have their own names for install.
1383 # Don't use installbsd from OSF since it installs stuff as root
1385 for ac_prog in ginstall scoinst install; do
1386 for ac_exec_ext in '' $ac_executable_extensions; do
1387 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1388 if test $ac_prog = install &&
1389 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1390 # AIX install. It has an incompatible calling convention.
1392 elif test $ac_prog = install &&
1393 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1394 # program-specific install script used by HP pwplus--don't use.
1397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1409 if test "${ac_cv_path_install+set}" = set; then
1410 INSTALL=$ac_cv_path_install
1412 # As a last resort, use the slow shell script. We don't cache a
1413 # path for INSTALL within a source directory, because that will
1414 # break other packages using the cache if that directory is
1415 # removed, or if the path is relative.
1416 INSTALL=$ac_install_sh
1419 echo "$as_me:$LINENO: result: $INSTALL" >&5
1420 echo "${ECHO_T}$INSTALL" >&6
1422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1423 # It thinks the first close brace ends the variable substitution.
1424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1430 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1431 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1434 echo timestamp > conftestfile
1435 # Do `set' in a subshell so we don't clobber the current shell's
1436 # arguments. Must try -L first in case configure is actually a
1437 # symlink; some systems play weird games with the mod time of symlinks
1438 # (eg FreeBSD returns the mod time of the symlink's containing
1441 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1442 if test "$*" = "X"; then
1444 set X `ls -t $srcdir/configure conftestfile`
1446 if test "$*" != "X $srcdir/configure conftestfile" \
1447 && test "$*" != "X conftestfile $srcdir/configure"; then
1449 # If neither matched, then we have a broken ls. This can happen
1450 # if, for instance, CONFIG_SHELL is bash and it inherits a
1451 # broken ls alias from the environment. This has actually
1452 # happened. Such a system could not be considered "sane".
1453 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1454 alias in your environment" >&5
1455 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1456 alias in your environment" >&2;}
1457 { (exit 1); exit 1; }; }
1460 test "$2" = conftestfile
1466 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1467 Check your system clock" >&5
1468 echo "$as_me: error: newly created file is older than distributed files!
1469 Check your system clock" >&2;}
1470 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: yes" >&5
1474 echo "${ECHO_T}yes" >&6
1475 test "$program_prefix" != NONE &&
1476 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1477 # Use a double $ so make ignores it.
1478 test "$program_suffix" != NONE &&
1479 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1480 # Double any \ or $. echo might interpret backslashes.
1481 # By default was `s,x,x', remove it if useless.
1482 cat <<\_ACEOF >conftest.sed
1483 s/[\\$]/&&/g;s/;s,x,x,$//
1485 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1488 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1489 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1490 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1491 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 cat >conftest.make <<\_ACEOF
1496 @echo 'ac_maketemp="$(MAKE)"'
1498 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1499 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1500 if test -n "$ac_maketemp"; then
1501 eval ac_cv_prog_make_${ac_make}_set=yes
1503 eval ac_cv_prog_make_${ac_make}_set=no
1507 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1508 echo "$as_me:$LINENO: result: yes" >&5
1509 echo "${ECHO_T}yes" >&6
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1514 SET_MAKE="MAKE=${MAKE-make}"
1522 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1523 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1524 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1525 { (exit 1); exit 1; }; }
1528 cat >>confdefs.h <<_ACEOF
1529 #define PACKAGE "$PACKAGE"
1533 cat >>confdefs.h <<_ACEOF
1534 #define VERSION "$VERSION"
1539 missing_dir=`cd $ac_aux_dir && pwd`
1540 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1541 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1542 # Run test in a subshell; some versions of sh will print an error if
1543 # an executable is not found, even if stderr is redirected.
1544 # Redirect stdin to placate older versions of autoconf. Sigh.
1545 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1546 ACLOCAL=aclocal-${am__api_version}
1547 echo "$as_me:$LINENO: result: found" >&5
1548 echo "${ECHO_T}found" >&6
1550 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1551 echo "$as_me:$LINENO: result: missing" >&5
1552 echo "${ECHO_T}missing" >&6
1555 echo "$as_me:$LINENO: checking for working autoconf" >&5
1556 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1557 # Run test in a subshell; some versions of sh will print an error if
1558 # an executable is not found, even if stderr is redirected.
1559 # Redirect stdin to placate older versions of autoconf. Sigh.
1560 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1562 echo "$as_me:$LINENO: result: found" >&5
1563 echo "${ECHO_T}found" >&6
1565 AUTOCONF="$missing_dir/missing autoconf"
1566 echo "$as_me:$LINENO: result: missing" >&5
1567 echo "${ECHO_T}missing" >&6
1570 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1571 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1572 # Run test in a subshell; some versions of sh will print an error if
1573 # an executable is not found, even if stderr is redirected.
1574 # Redirect stdin to placate older versions of autoconf. Sigh.
1575 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1576 AUTOMAKE=automake-${am__api_version}
1577 echo "$as_me:$LINENO: result: found" >&5
1578 echo "${ECHO_T}found" >&6
1580 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1581 echo "$as_me:$LINENO: result: missing" >&5
1582 echo "${ECHO_T}missing" >&6
1585 echo "$as_me:$LINENO: checking for working autoheader" >&5
1586 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1587 # Run test in a subshell; some versions of sh will print an error if
1588 # an executable is not found, even if stderr is redirected.
1589 # Redirect stdin to placate older versions of autoconf. Sigh.
1590 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1591 AUTOHEADER=autoheader
1592 echo "$as_me:$LINENO: result: found" >&5
1593 echo "${ECHO_T}found" >&6
1595 AUTOHEADER="$missing_dir/missing autoheader"
1596 echo "$as_me:$LINENO: result: missing" >&5
1597 echo "${ECHO_T}missing" >&6
1600 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1601 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1602 # Run test in a subshell; some versions of sh will print an error if
1603 # an executable is not found, even if stderr is redirected.
1604 # Redirect stdin to placate older versions of autoconf. Sigh.
1605 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1607 echo "$as_me:$LINENO: result: found" >&5
1608 echo "${ECHO_T}found" >&6
1610 MAKEINFO="$missing_dir/missing makeinfo"
1611 echo "$as_me:$LINENO: result: missing" >&5
1612 echo "${ECHO_T}missing" >&6
1617 ac_config_headers="$ac_config_headers config.h"
1619 ac_config_commands="$ac_config_commands default-1"
1622 for ac_prog in gawk mawk nawk awk
1624 # Extract the first word of "$ac_prog", so it can be a program name with args.
1625 set dummy $ac_prog; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_AWK+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 if test -n "$AWK"; then
1632 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_prog_AWK="$ac_prog"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 if test -n "$AWK"; then
1652 echo "$as_me:$LINENO: result: $AWK" >&5
1653 echo "${ECHO_T}$AWK" >&6
1655 echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1659 test -n "$AWK" && break
1662 # Find a good install program. We prefer a C program (faster),
1663 # so one script is as good as another. But avoid the broken or
1664 # incompatible versions:
1665 # SysV /etc/install, /usr/sbin/install
1666 # SunOS /usr/etc/install
1667 # IRIX /sbin/install
1669 # AmigaOS /C/install, which installs bootblocks on floppy discs
1670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1673 # ./install, which can be erroneously created by make from ./install.sh.
1674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1676 if test -z "$INSTALL"; then
1677 if test "${ac_cv_path_install+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 # Account for people who put trailing slashes in PATH elements.
1687 ./ | .// | /cC/* | \
1688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1691 # OSF1 and SCO ODT 3.0 have their own names for install.
1692 # Don't use installbsd from OSF since it installs stuff as root
1694 for ac_prog in ginstall scoinst install; do
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1697 if test $ac_prog = install &&
1698 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1699 # AIX install. It has an incompatible calling convention.
1701 elif test $ac_prog = install &&
1702 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1703 # program-specific install script used by HP pwplus--don't use.
1706 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1718 if test "${ac_cv_path_install+set}" = set; then
1719 INSTALL=$ac_cv_path_install
1721 # As a last resort, use the slow shell script. We don't cache a
1722 # path for INSTALL within a source directory, because that will
1723 # break other packages using the cache if that directory is
1724 # removed, or if the path is relative.
1725 INSTALL=$ac_install_sh
1728 echo "$as_me:$LINENO: result: $INSTALL" >&5
1729 echo "${ECHO_T}$INSTALL" >&6
1731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1732 # It thinks the first close brace ends the variable substitution.
1733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1739 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1740 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1741 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1742 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 cat >conftest.make <<\_ACEOF
1747 @echo 'ac_maketemp="$(MAKE)"'
1749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1750 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1751 if test -n "$ac_maketemp"; then
1752 eval ac_cv_prog_make_${ac_make}_set=yes
1754 eval ac_cv_prog_make_${ac_make}_set=no
1758 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1759 echo "$as_me:$LINENO: result: yes" >&5
1760 echo "${ECHO_T}yes" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 SET_MAKE="MAKE=${MAKE-make}"
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_RANLIB+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$RANLIB"; then
1777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 RANLIB=$ac_cv_prog_RANLIB
1796 if test -n "$RANLIB"; then
1797 echo "$as_me:$LINENO: result: $RANLIB" >&5
1798 echo "${ECHO_T}$RANLIB" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1805 if test -z "$ac_cv_prog_RANLIB"; then
1806 ac_ct_RANLIB=$RANLIB
1807 # Extract the first word of "ranlib", so it can be a program name with args.
1808 set dummy ranlib; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$ac_ct_RANLIB"; then
1815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_RANLIB="ranlib"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1835 if test -n "$ac_ct_RANLIB"; then
1836 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1837 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1843 RANLIB=$ac_ct_RANLIB
1845 RANLIB="$ac_cv_prog_RANLIB"
1850 ac_cpp='$CPP $CPPFLAGS'
1851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1854 if test -n "$ac_tool_prefix"; then
1855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 if test -n "$CC"; then
1883 echo "$as_me:$LINENO: result: $CC" >&5
1884 echo "${ECHO_T}$CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1891 if test -z "$ac_cv_prog_CC"; then
1893 # Extract the first word of "gcc", so it can be a program name with args.
1894 set dummy gcc; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 if test -n "$ac_ct_CC"; then
1901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_ac_ct_CC="gcc"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1920 if test -n "$ac_ct_CC"; then
1921 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1922 echo "${ECHO_T}$ac_ct_CC" >&6
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1933 if test -z "$CC"; then
1934 if test -n "$ac_tool_prefix"; then
1935 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1936 set dummy ${ac_tool_prefix}cc; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test -n "$CC"; then
1943 ac_cv_prog_CC="$CC" # Let the user override the test.
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_CC="${ac_tool_prefix}cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 if test -n "$CC"; then
1963 echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1971 if test -z "$ac_cv_prog_CC"; then
1973 # Extract the first word of "cc", so it can be a program name with args.
1974 set dummy cc; ac_word=$2
1975 echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$ac_ct_CC"; then
1981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 ac_cv_prog_ac_ct_CC="cc"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2000 if test -n "$ac_ct_CC"; then
2001 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2002 echo "${ECHO_T}$ac_ct_CC" >&6
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2014 if test -z "$CC"; then
2015 # Extract the first word of "cc", so it can be a program name with args.
2016 set dummy cc; ac_word=$2
2017 echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2034 ac_prog_rejected=yes
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 if test $ac_prog_rejected = yes; then
2045 # We found a bogon in the path, so make sure we never use it.
2046 set dummy $ac_cv_prog_CC
2048 if test $# != 0; then
2049 # We chose a different compiler from the bogus one.
2050 # However, it has the same basename, so the bogon will be chosen
2051 # first if we set CC to just the basename; use the full file name.
2053 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2059 if test -n "$CC"; then
2060 echo "$as_me:$LINENO: result: $CC" >&5
2061 echo "${ECHO_T}$CC" >&6
2063 echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2068 if test -z "$CC"; then
2069 if test -n "$ac_tool_prefix"; then
2072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$CC"; then
2080 ac_cv_prog_CC="$CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 if test -n "$CC"; then
2100 echo "$as_me:$LINENO: result: $CC" >&5
2101 echo "${ECHO_T}$CC" >&6
2103 echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2107 test -n "$CC" && break
2110 if test -z "$CC"; then
2114 # Extract the first word of "$ac_prog", so it can be a program name with args.
2115 set dummy $ac_prog; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CC="$ac_prog"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2149 test -n "$ac_ct_CC" && break
2158 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: no acceptable C compiler found in \$PATH
2161 See \`config.log' for more details." >&2;}
2162 { (exit 1); exit 1; }; }
2164 # Provide some information about the compiler.
2165 echo "$as_me:$LINENO:" \
2166 "checking for C compiler version" >&5
2167 ac_compiler=`set X $ac_compile; echo $2`
2168 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2169 (eval $ac_compiler --version </dev/null >&5) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2174 (eval $ac_compiler -v </dev/null >&5) 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2179 (eval $ac_compiler -V </dev/null >&5) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2184 cat >conftest.$ac_ext <<_ACEOF
2185 #line $LINENO "configure"
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h. */
2200 ac_clean_files_save=$ac_clean_files
2201 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2202 # Try to create an executable without -o first, disregard a.out.
2203 # It will help us diagnose broken compilers, and finding out an intuition
2205 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2206 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2207 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2208 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2209 (eval $ac_link_default) 2>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # Find the output, starting from the most likely. This scheme is
2214 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2217 # Be careful to initialize this variable, since it used to be cached.
2218 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2220 # b.out is created by i960 compilers.
2221 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2223 test -f "$ac_file" || continue
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2228 # This is the source file.
2231 # We found the default executable, but exeext='' is most
2235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236 # FIXME: I believe we export ac_cv_exeext for Libtool,
2237 # but it would be cool to find out if it's true. Does anybody
2238 # maintain Libtool? --akim.
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2249 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: C compiler cannot create executables
2252 See \`config.log' for more details." >&2;}
2253 { (exit 77); exit 77; }; }
2256 ac_exeext=$ac_cv_exeext
2257 echo "$as_me:$LINENO: result: $ac_file" >&5
2258 echo "${ECHO_T}$ac_file" >&6
2260 # Check the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2263 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2264 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2265 # If not cross compiling, check that we can run a simple program.
2266 if test "$cross_compiling" != yes; then
2267 if { ac_try='./$ac_file'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2275 if test "$cross_compiling" = maybe; then
2278 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2279 If you meant to cross compile, use \`--host'.
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot run C compiled programs.
2282 If you meant to cross compile, use \`--host'.
2283 See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
2288 echo "$as_me:$LINENO: result: yes" >&5
2289 echo "${ECHO_T}yes" >&6
2291 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2292 ac_clean_files=$ac_clean_files_save
2293 # Check the compiler produces executables we can run. If not, either
2294 # the compiler is broken, or we cross compile.
2295 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2296 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2297 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2298 echo "${ECHO_T}$cross_compiling" >&6
2300 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2301 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2303 (eval $ac_link) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2308 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2309 # work properly (i.e., refer to `conftest.exe'), while it won't with
2311 for ac_file in conftest.exe conftest conftest.*; do
2312 test -f "$ac_file" || continue
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2315 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest$ac_cv_exeext
2330 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2336 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2338 if test "${ac_cv_objext+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2357 rm -f conftest.o conftest.obj
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2374 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2375 See \`config.log' for more details." >&5
2376 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2377 See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2383 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2384 echo "${ECHO_T}$ac_cv_objext" >&6
2385 OBJEXT=$ac_cv_objext
2387 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2388 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2389 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 cat >conftest.$ac_ext <<_ACEOF
2393 #line $LINENO "configure"
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h. */
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2430 rm -f conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2434 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2436 GCC=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CFLAGS=${CFLAGS+set}
2438 ac_save_CFLAGS=$CFLAGS
2440 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2441 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2442 if test "${ac_cv_prog_cc_g+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line $LINENO "configure"
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.$ac_objext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463 (eval $ac_compile) 2>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2480 rm -f conftest.$ac_objext conftest.$ac_ext
2482 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2483 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2484 if test "$ac_test_CFLAGS" = set; then
2485 CFLAGS=$ac_save_CFLAGS
2486 elif test $ac_cv_prog_cc_g = yes; then
2487 if test "$GCC" = yes; then
2493 if test "$GCC" = yes; then
2499 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2500 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2501 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 ac_cv_prog_cc_stdc=no
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (p, i)
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2531 s = g (p, va_arg (v,int));
2535 int test (int i, double x);
2536 struct s1 {int (*f) (int a);};
2537 struct s2 {int (*f) (double a);};
2538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2549 # Don't try gcc -ansi; that turns off useful extensions and
2550 # breaks some systems' header files.
2551 # AIX -qlanglvl=ansi
2552 # Ultrix and OSF/1 -std1
2553 # HP-UX 10.20 and later -Ae
2554 # HP-UX older versions -Aa -D_HPUX_SOURCE
2555 # SVR4 -Xc -D__EXTENSIONS__
2556 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2558 CC="$ac_save_CC $ac_arg"
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc=$ac_arg
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f conftest.$ac_objext
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2585 case "x$ac_cv_prog_cc_stdc" in
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 # Some people use a C++ compiler to compile C. Since we use `exit',
2596 # in C++ we need to declare it. In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 for ac_declaration in \
2618 '#include <stdlib.h>' \
2619 'extern "C" void std::exit (int) throw (); using std::exit;' \
2620 'extern "C" void std::exit (int); using std::exit;' \
2621 'extern "C" void exit (int) throw ();' \
2622 'extern "C" void exit (int);' \
2625 cat >conftest.$ac_ext <<_ACEOF
2626 #line $LINENO "configure"
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -s conftest.$ac_objext'
2649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; }; then
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2661 rm -f conftest.$ac_objext conftest.$ac_ext
2662 cat >conftest.$ac_ext <<_ACEOF
2663 #line $LINENO "configure"
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try='test -s conftest.$ac_objext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2696 rm -f conftest.$ac_objext conftest.$ac_ext
2699 if test -n "$ac_declaration"; then
2700 echo '#ifdef __cplusplus' >>confdefs.h
2701 echo $ac_declaration >>confdefs.h
2702 echo '#endif' >>confdefs.h
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2710 rm -f conftest.$ac_objext conftest.$ac_ext
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 ac_cpp='$CXXCPP $CPPFLAGS'
2719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2727 echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if test "${ac_cv_prog_CXX+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -n "$CXX"; then
2733 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 if test -n "$CXX"; then
2753 echo "$as_me:$LINENO: result: $CXX" >&5
2754 echo "${ECHO_T}$CXX" >&6
2756 echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2760 test -n "$CXX" && break
2763 if test -z "$CXX"; then
2765 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768 set dummy $ac_prog; ac_word=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$ac_ct_CXX"; then
2775 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_ac_ct_CXX="$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2794 if test -n "$ac_ct_CXX"; then
2795 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2796 echo "${ECHO_T}$ac_ct_CXX" >&6
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2802 test -n "$ac_ct_CXX" && break
2804 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2810 # Provide some information about the compiler.
2811 echo "$as_me:$LINENO:" \
2812 "checking for C++ compiler version" >&5
2813 ac_compiler=`set X $ac_compile; echo $2`
2814 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2815 (eval $ac_compiler --version </dev/null >&5) 2>&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }
2819 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2820 (eval $ac_compiler -v </dev/null >&5) 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }
2824 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2825 (eval $ac_compiler -V </dev/null >&5) 2>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2830 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2831 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2832 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 cat >conftest.$ac_ext <<_ACEOF
2836 #line $LINENO "configure"
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2854 rm -f conftest.$ac_objext
2855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2856 (eval $ac_compile) 2>&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2873 rm -f conftest.$ac_objext conftest.$ac_ext
2874 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2877 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2878 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2879 GXX=`test $ac_compiler_gnu = yes && echo yes`
2880 ac_test_CXXFLAGS=${CXXFLAGS+set}
2881 ac_save_CXXFLAGS=$CXXFLAGS
2883 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2884 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2885 if test "${ac_cv_prog_cxx_g+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2889 #line $LINENO "configure"
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 ac_cv_prog_cxx_g=yes
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.$ac_objext conftest.$ac_ext
2925 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2927 if test "$ac_test_CXXFLAGS" = set; then
2928 CXXFLAGS=$ac_save_CXXFLAGS
2929 elif test $ac_cv_prog_cxx_g = yes; then
2930 if test "$GXX" = yes; then
2936 if test "$GXX" = yes; then
2942 for ac_declaration in \
2944 '#include <stdlib.h>' \
2945 'extern "C" void std::exit (int) throw (); using std::exit;' \
2946 'extern "C" void std::exit (int); using std::exit;' \
2947 'extern "C" void exit (int) throw ();' \
2948 'extern "C" void exit (int);' \
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970 (eval $ac_compile) 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f conftest.$ac_objext conftest.$ac_ext
2988 cat >conftest.$ac_ext <<_ACEOF
2989 #line $LINENO "configure"
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
3004 rm -f conftest.$ac_objext
3005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006 (eval $ac_compile) 2>&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3022 rm -f conftest.$ac_objext conftest.$ac_ext
3025 if test -n "$ac_declaration"; then
3026 echo '#ifdef __cplusplus' >>confdefs.h
3027 echo $ac_declaration >>confdefs.h
3028 echo '#endif' >>confdefs.h
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3039 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3040 if test "${ac_cv_c_bigendian+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 # See if sys/param.h defines the BYTE_ORDER macro.
3044 cat >conftest.$ac_ext <<_ACEOF
3045 #line $LINENO "configure"
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 #include <sys/types.h>
3052 #include <sys/param.h>
3057 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 # It does; now see whether it defined to BIG_ENDIAN or not.
3078 cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 #include <sys/types.h>
3086 #include <sys/param.h>
3091 #if BYTE_ORDER != BIG_ENDIAN
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_cv_c_bigendian=yes
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 ac_cv_c_bigendian=no
3118 rm -f conftest.$ac_objext conftest.$ac_ext
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 # It does not; compile a test program.
3124 if test "$cross_compiling" = yes; then
3125 # try to guess the endianness by grepping values into an object file
3126 ac_cv_c_bigendian=unknown
3127 cat >conftest.$ac_ext <<_ACEOF
3128 #line $LINENO "configure"
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3134 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3135 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3136 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3137 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3138 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3139 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3143 _ascii (); _ebcdic ();
3148 rm -f conftest.$ac_objext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3161 ac_cv_c_bigendian=yes
3163 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3164 if test "$ac_cv_c_bigendian" = unknown; then
3165 ac_cv_c_bigendian=no
3167 # finding both strings is unlikely to happen, but who knows?
3168 ac_cv_c_bigendian=unknown
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3176 rm -f conftest.$ac_objext conftest.$ac_ext
3178 cat >conftest.$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3188 /* Are we little or big endian? From Harbison&Steele. */
3192 char c[sizeof (long)];
3195 exit (u.c[sizeof (long) - 1] == 1);
3198 rm -f conftest$ac_exeext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3200 (eval $ac_link) 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_cv_c_bigendian=no
3211 echo "$as_me: program exited with status $ac_status" >&5
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3216 ac_cv_c_bigendian=yes
3218 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3221 rm -f conftest.$ac_objext conftest.$ac_ext
3223 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3224 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3225 case $ac_cv_c_bigendian in
3228 cat >>confdefs.h <<\_ACEOF
3229 #define WORDS_BIGENDIAN 1
3235 { { echo "$as_me:$LINENO: error: unknown endianness
3236 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3237 echo "$as_me: error: unknown endianness
3238 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3239 { (exit 1); exit 1; }; } ;;
3243 # Extract the first word of "wx-config", so it can be a program name with args.
3244 set dummy wx-config; ac_word=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_path_wxconfig+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 wxconfig=$ac_cv_path_wxconfig
3274 if test -n "$wxconfig"; then
3275 echo "$as_me:$LINENO: result: $wxconfig" >&5
3276 echo "${ECHO_T}$wxconfig" >&6
3278 echo "$as_me:$LINENO: result: no" >&5
3279 echo "${ECHO_T}no" >&6
3283 # Make sure we can run config.sub.
3284 $ac_config_sub sun4 >/dev/null 2>&1 ||
3285 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3286 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3287 { (exit 1); exit 1; }; }
3289 echo "$as_me:$LINENO: checking build system type" >&5
3290 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3291 if test "${ac_cv_build+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 ac_cv_build_alias=$build_alias
3295 test -z "$ac_cv_build_alias" &&
3296 ac_cv_build_alias=`$ac_config_guess`
3297 test -z "$ac_cv_build_alias" &&
3298 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3299 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3300 { (exit 1); exit 1; }; }
3301 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3302 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3303 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3304 { (exit 1); exit 1; }; }
3307 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3308 echo "${ECHO_T}$ac_cv_build" >&6
3310 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3311 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3312 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3315 echo "$as_me:$LINENO: checking host system type" >&5
3316 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3317 if test "${ac_cv_host+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 ac_cv_host_alias=$host_alias
3321 test -z "$ac_cv_host_alias" &&
3322 ac_cv_host_alias=$ac_cv_build_alias
3323 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3324 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3325 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3326 { (exit 1); exit 1; }; }
3329 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3330 echo "${ECHO_T}$ac_cv_host" >&6
3332 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3333 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3334 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3337 echo "$as_me:$LINENO: checking for inline" >&5
3338 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3339 if test "${ac_cv_c_inline+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 for ac_kw in inline __inline__ __inline; do
3344 cat >conftest.$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3353 static $ac_kw foo_t static_foo () {return 0; }
3354 $ac_kw foo_t foo () {return 0; }
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_c_inline=$ac_kw; break
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3376 rm -f conftest.$ac_objext conftest.$ac_ext
3380 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3381 echo "${ECHO_T}$ac_cv_c_inline" >&6
3382 case $ac_cv_c_inline in
3385 cat >>confdefs.h <<\_ACEOF
3389 *) cat >>confdefs.h <<_ACEOF
3390 #define inline $ac_cv_c_inline
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3401 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3402 # On Suns, sometimes $CPP names a directory.
3403 if test -n "$CPP" && test -d "$CPP"; then
3406 if test -z "$CPP"; then
3407 if test "${ac_cv_prog_CPP+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 # Double quotes because CPP needs to be expanded
3411 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3414 for ac_c_preproc_warn_flag in '' yes
3416 # Use a header file that comes with gcc, so configuring glibc
3417 # with a fresh cross-compiler works.
3418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3419 # <limits.h> exists even on freestanding compilers.
3420 # On the NeXT, cc -E runs the code through the compiler's parser,
3421 # not just through cpp. "Syntax error" is here to catch this case.
3422 cat >conftest.$ac_ext <<_ACEOF
3423 #line $LINENO "configure"
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3430 # include <limits.h>
3432 # include <assert.h>
3436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null; then
3444 if test -s conftest.err; then
3445 ac_cpp_err=$ac_c_preproc_warn_flag
3452 if test -z "$ac_cpp_err"; then
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 # Broken: fails on valid input.
3461 rm -f conftest.err conftest.$ac_ext
3463 # OK, works on sane cases. Now check whether non-existent headers
3464 # can be detected and how.
3465 cat >conftest.$ac_ext <<_ACEOF
3466 #line $LINENO "configure"
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #include <ac_nonexistent.h>
3474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 grep -v '^ *+' conftest.er1 >conftest.err
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } >/dev/null; then
3482 if test -s conftest.err; then
3483 ac_cpp_err=$ac_c_preproc_warn_flag
3490 if test -z "$ac_cpp_err"; then
3491 # Broken: success on invalid input.
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 # Passes both tests.
3501 rm -f conftest.err conftest.$ac_ext
3504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3505 rm -f conftest.err conftest.$ac_ext
3506 if $ac_preproc_ok; then
3518 echo "$as_me:$LINENO: result: $CPP" >&5
3519 echo "${ECHO_T}$CPP" >&6
3521 for ac_c_preproc_warn_flag in '' yes
3523 # Use a header file that comes with gcc, so configuring glibc
3524 # with a fresh cross-compiler works.
3525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3526 # <limits.h> exists even on freestanding compilers.
3527 # On the NeXT, cc -E runs the code through the compiler's parser,
3528 # not just through cpp. "Syntax error" is here to catch this case.
3529 cat >conftest.$ac_ext <<_ACEOF
3530 #line $LINENO "configure"
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3537 # include <limits.h>
3539 # include <assert.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
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 # Broken: fails on valid input.
3568 rm -f conftest.err conftest.$ac_ext
3570 # OK, works on sane cases. Now check whether non-existent headers
3571 # can be detected and how.
3572 cat >conftest.$ac_ext <<_ACEOF
3573 #line $LINENO "configure"
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579 #include <ac_nonexistent.h>
3581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3584 grep -v '^ *+' conftest.er1 >conftest.err
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev/null; then
3589 if test -s conftest.err; then
3590 ac_cpp_err=$ac_c_preproc_warn_flag
3597 if test -z "$ac_cpp_err"; then
3598 # Broken: success on invalid input.
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 # Passes both tests.
3608 rm -f conftest.err conftest.$ac_ext
3611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612 rm -f conftest.err conftest.$ac_ext
3613 if $ac_preproc_ok; then
3616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3617 See \`config.log' for more details." >&5
3618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3619 See \`config.log' for more details." >&2;}
3620 { (exit 1); exit 1; }; }
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 echo "$as_me:$LINENO: checking for egrep" >&5
3631 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3632 if test "${ac_cv_prog_egrep+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3636 then ac_cv_prog_egrep='grep -E'
3637 else ac_cv_prog_egrep='egrep'
3640 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3641 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3642 EGREP=$ac_cv_prog_egrep
3645 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3646 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3647 if test "${ac_cv_header_stdc+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3670 rm -f conftest.$ac_objext
3671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672 (eval $ac_compile) 2>&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_header_stdc=yes
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_cv_header_stdc=no
3689 rm -f conftest.$ac_objext conftest.$ac_ext
3691 if test $ac_cv_header_stdc = yes; then
3692 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3693 cat >conftest.$ac_ext <<_ACEOF
3694 #line $LINENO "configure"
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3704 $EGREP "memchr" >/dev/null 2>&1; then
3707 ac_cv_header_stdc=no
3713 if test $ac_cv_header_stdc = yes; then
3714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3715 cat >conftest.$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 $EGREP "free" >/dev/null 2>&1; then
3729 ac_cv_header_stdc=no
3735 if test $ac_cv_header_stdc = yes; then
3736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3737 if test "$cross_compiling" = yes; then
3740 cat >conftest.$ac_ext <<_ACEOF
3741 #line $LINENO "configure"
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3748 #if ((' ' & 0x0FF) == 0x020)
3749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3752 # define ISLOWER(c) \
3753 (('a' <= (c) && (c) <= 'i') \
3754 || ('j' <= (c) && (c) <= 'r') \
3755 || ('s' <= (c) && (c) <= 'z'))
3756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3764 for (i = 0; i < 256; i++)
3765 if (XOR (islower (i), ISLOWER (i))
3766 || toupper (i) != TOUPPER (i))
3771 rm -f conftest$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773 (eval $ac_link) 2>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3784 echo "$as_me: program exited with status $ac_status" >&5
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3789 ac_cv_header_stdc=no
3791 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3795 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3796 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3797 if test $ac_cv_header_stdc = yes; then
3799 cat >>confdefs.h <<\_ACEOF
3800 #define STDC_HEADERS 1
3805 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3815 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3816 inttypes.h stdint.h unistd.h
3818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3819 echo "$as_me:$LINENO: checking for $ac_header" >&5
3820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 cat >conftest.$ac_ext <<_ACEOF
3825 #line $LINENO "configure"
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3831 $ac_includes_default
3833 #include <$ac_header>
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 eval "$as_ac_Header=yes"
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 eval "$as_ac_Header=no"
3854 rm -f conftest.$ac_objext conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3859 cat >>confdefs.h <<_ACEOF
3860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868 echo "$as_me:$LINENO: checking for short" >&5
3869 echo $ECHO_N "checking for short... $ECHO_C" >&6
3870 if test "${ac_cv_type_short+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 cat >conftest.$ac_ext <<_ACEOF
3874 #line $LINENO "configure"
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880 $ac_includes_default
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } &&
3898 { ac_try='test -s conftest.$ac_objext'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; }; then
3904 ac_cv_type_short=yes
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3911 rm -f conftest.$ac_objext conftest.$ac_ext
3913 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3914 echo "${ECHO_T}$ac_cv_type_short" >&6
3916 echo "$as_me:$LINENO: checking size of short" >&5
3917 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3918 if test "${ac_cv_sizeof_short+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 if test "$ac_cv_type_short" = yes; then
3922 # The cast to unsigned long works around a bug in the HP C Compiler
3923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3925 # This bug is HP SR number 8606223364.
3926 if test "$cross_compiling" = yes; then
3927 # Depending upon the size, compute the lo and hi bounds.
3928 cat >conftest.$ac_ext <<_ACEOF
3929 #line $LINENO "configure"
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 $ac_includes_default
3939 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3946 rm -f conftest.$ac_objext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948 (eval $ac_compile) 2>&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } &&
3952 { ac_try='test -s conftest.$ac_objext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3960 cat >conftest.$ac_ext <<_ACEOF
3961 #line $LINENO "configure"
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 $ac_includes_default
3971 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -s conftest.$ac_objext'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_hi=$ac_mid; break
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 ac_lo=`expr $ac_mid + 1`
3996 if test $ac_lo -le $ac_mid; then
4000 ac_mid=`expr 2 '*' $ac_mid + 1`
4002 rm -f conftest.$ac_objext conftest.$ac_ext
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 cat >conftest.$ac_ext <<_ACEOF
4009 #line $LINENO "configure"
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4019 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4026 rm -f conftest.$ac_objext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4040 cat >conftest.$ac_ext <<_ACEOF
4041 #line $LINENO "configure"
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 $ac_includes_default
4051 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4058 rm -f conftest.$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_lo=$ac_mid; break
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 ac_hi=`expr '(' $ac_mid ')' - 1`
4076 if test $ac_mid -le $ac_hi; then
4080 ac_mid=`expr 2 '*' $ac_mid`
4082 rm -f conftest.$ac_objext conftest.$ac_ext
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4090 rm -f conftest.$ac_objext conftest.$ac_ext
4092 rm -f conftest.$ac_objext conftest.$ac_ext
4093 # Binary search between lo and hi bounds.
4094 while test "x$ac_lo" != "x$ac_hi"; do
4095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 $ac_includes_default
4107 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 ac_lo=`expr '(' $ac_mid ')' + 1`
4133 rm -f conftest.$ac_objext conftest.$ac_ext
4136 ?*) ac_cv_sizeof_short=$ac_lo;;
4137 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4138 See \`config.log' for more details." >&5
4139 echo "$as_me: error: cannot compute sizeof (short), 77
4140 See \`config.log' for more details." >&2;}
4141 { (exit 1); exit 1; }; } ;;
4144 if test "$cross_compiling" = yes; then
4145 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4146 See \`config.log' for more details." >&5
4147 echo "$as_me: error: cannot run test program while cross compiling
4148 See \`config.log' for more details." >&2;}
4149 { (exit 1); exit 1; }; }
4151 cat >conftest.$ac_ext <<_ACEOF
4152 #line $LINENO "configure"
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 $ac_includes_default
4159 long longval () { return (long) (sizeof (short)); }
4160 unsigned long ulongval () { return (long) (sizeof (short)); }
4167 FILE *f = fopen ("conftest.val", "w");
4170 if (((long) (sizeof (short))) < 0)
4172 long i = longval ();
4173 if (i != ((long) (sizeof (short))))
4175 fprintf (f, "%ld\n", i);
4179 unsigned long i = ulongval ();
4180 if (i != ((long) (sizeof (short))))
4182 fprintf (f, "%lu\n", i);
4184 exit (ferror (f) || fclose (f) != 0);
4190 rm -f conftest$ac_exeext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4192 (eval $ac_link) 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_sizeof_short=`cat conftest.val`
4203 echo "$as_me: program exited with status $ac_status" >&5
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4208 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4209 See \`config.log' for more details." >&5
4210 echo "$as_me: error: cannot compute sizeof (short), 77
4211 See \`config.log' for more details." >&2;}
4212 { (exit 1); exit 1; }; }
4214 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4219 ac_cv_sizeof_short=0
4222 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4223 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4224 cat >>confdefs.h <<_ACEOF
4225 #define SIZEOF_SHORT $ac_cv_sizeof_short
4229 echo "$as_me:$LINENO: checking for int" >&5
4230 echo $ECHO_N "checking for int... $ECHO_C" >&6
4231 if test "${ac_cv_type_int+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 cat >conftest.$ac_ext <<_ACEOF
4235 #line $LINENO "configure"
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 $ac_includes_default
4253 rm -f conftest.$ac_objext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255 (eval $ac_compile) 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -s conftest.$ac_objext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4272 rm -f conftest.$ac_objext conftest.$ac_ext
4274 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4275 echo "${ECHO_T}$ac_cv_type_int" >&6
4277 echo "$as_me:$LINENO: checking size of int" >&5
4278 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4279 if test "${ac_cv_sizeof_int+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 if test "$ac_cv_type_int" = yes; then
4283 # The cast to unsigned long works around a bug in the HP C Compiler
4284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4286 # This bug is HP SR number 8606223364.
4287 if test "$cross_compiling" = yes; then
4288 # Depending upon the size, compute the lo and hi bounds.
4289 cat >conftest.$ac_ext <<_ACEOF
4290 #line $LINENO "configure"
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 $ac_includes_default
4300 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4321 cat >conftest.$ac_ext <<_ACEOF
4322 #line $LINENO "configure"
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 $ac_includes_default
4332 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4339 rm -f conftest.$ac_objext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341 (eval $ac_compile) 2>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -s conftest.$ac_objext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_hi=$ac_mid; break
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 ac_lo=`expr $ac_mid + 1`
4357 if test $ac_lo -le $ac_mid; then
4361 ac_mid=`expr 2 '*' $ac_mid + 1`
4363 rm -f conftest.$ac_objext conftest.$ac_ext
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4380 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4401 cat >conftest.$ac_ext <<_ACEOF
4402 #line $LINENO "configure"
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4412 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_lo=$ac_mid; break
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_hi=`expr '(' $ac_mid ')' - 1`
4437 if test $ac_mid -le $ac_hi; then
4441 ac_mid=`expr 2 '*' $ac_mid`
4443 rm -f conftest.$ac_objext conftest.$ac_ext
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4451 rm -f conftest.$ac_objext conftest.$ac_ext
4453 rm -f conftest.$ac_objext conftest.$ac_ext
4454 # Binary search between lo and hi bounds.
4455 while test "x$ac_lo" != "x$ac_hi"; do
4456 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4457 cat >conftest.$ac_ext <<_ACEOF
4458 #line $LINENO "configure"
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 $ac_includes_default
4468 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4475 rm -f conftest.$ac_objext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4477 (eval $ac_compile) 2>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 ac_lo=`expr '(' $ac_mid ')' + 1`
4494 rm -f conftest.$ac_objext conftest.$ac_ext
4497 ?*) ac_cv_sizeof_int=$ac_lo;;
4498 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4499 See \`config.log' for more details." >&5
4500 echo "$as_me: error: cannot compute sizeof (int), 77
4501 See \`config.log' for more details." >&2;}
4502 { (exit 1); exit 1; }; } ;;
4505 if test "$cross_compiling" = yes; then
4506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4507 See \`config.log' for more details." >&5
4508 echo "$as_me: error: cannot run test program while cross compiling
4509 See \`config.log' for more details." >&2;}
4510 { (exit 1); exit 1; }; }
4512 cat >conftest.$ac_ext <<_ACEOF
4513 #line $LINENO "configure"
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 $ac_includes_default
4520 long longval () { return (long) (sizeof (int)); }
4521 unsigned long ulongval () { return (long) (sizeof (int)); }
4528 FILE *f = fopen ("conftest.val", "w");
4531 if (((long) (sizeof (int))) < 0)
4533 long i = longval ();
4534 if (i != ((long) (sizeof (int))))
4536 fprintf (f, "%ld\n", i);
4540 unsigned long i = ulongval ();
4541 if (i != ((long) (sizeof (int))))
4543 fprintf (f, "%lu\n", i);
4545 exit (ferror (f) || fclose (f) != 0);
4551 rm -f conftest$ac_exeext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4553 (eval $ac_link) 2>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 ac_cv_sizeof_int=`cat conftest.val`
4564 echo "$as_me: program exited with status $ac_status" >&5
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: cannot compute sizeof (int), 77
4572 See \`config.log' for more details." >&2;}
4573 { (exit 1); exit 1; }; }
4575 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4584 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4585 cat >>confdefs.h <<_ACEOF
4586 #define SIZEOF_INT $ac_cv_sizeof_int
4590 echo "$as_me:$LINENO: checking for long" >&5
4591 echo $ECHO_N "checking for long... $ECHO_C" >&6
4592 if test "${ac_cv_type_long+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 cat >conftest.$ac_ext <<_ACEOF
4596 #line $LINENO "configure"
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4633 rm -f conftest.$ac_objext conftest.$ac_ext
4635 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4636 echo "${ECHO_T}$ac_cv_type_long" >&6
4638 echo "$as_me:$LINENO: checking size of long" >&5
4639 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4640 if test "${ac_cv_sizeof_long+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 if test "$ac_cv_type_long" = yes; then
4644 # The cast to unsigned long works around a bug in the HP C Compiler
4645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4647 # This bug is HP SR number 8606223364.
4648 if test "$cross_compiling" = yes; then
4649 # Depending upon the size, compute the lo and hi bounds.
4650 cat >conftest.$ac_ext <<_ACEOF
4651 #line $LINENO "configure"
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 $ac_includes_default
4661 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670 (eval $ac_compile) 2>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -s conftest.$ac_objext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4682 cat >conftest.$ac_ext <<_ACEOF
4683 #line $LINENO "configure"
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4689 $ac_includes_default
4693 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4700 rm -f conftest.$ac_objext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -s conftest.$ac_objext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_hi=$ac_mid; break
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ac_lo=`expr $ac_mid + 1`
4718 if test $ac_lo -le $ac_mid; then
4722 ac_mid=`expr 2 '*' $ac_mid + 1`
4724 rm -f conftest.$ac_objext conftest.$ac_ext
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 cat >conftest.$ac_ext <<_ACEOF
4731 #line $LINENO "configure"
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4741 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4762 cat >conftest.$ac_ext <<_ACEOF
4763 #line $LINENO "configure"
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4773 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -s conftest.$ac_objext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_lo=$ac_mid; break
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4797 ac_hi=`expr '(' $ac_mid ')' - 1`
4798 if test $ac_mid -le $ac_hi; then
4802 ac_mid=`expr 2 '*' $ac_mid`
4804 rm -f conftest.$ac_objext conftest.$ac_ext
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4812 rm -f conftest.$ac_objext conftest.$ac_ext
4814 rm -f conftest.$ac_objext conftest.$ac_ext
4815 # Binary search between lo and hi bounds.
4816 while test "x$ac_lo" != "x$ac_hi"; do
4817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4818 cat >conftest.$ac_ext <<_ACEOF
4819 #line $LINENO "configure"
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 $ac_includes_default
4829 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -s conftest.$ac_objext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 ac_lo=`expr '(' $ac_mid ')' + 1`
4855 rm -f conftest.$ac_objext conftest.$ac_ext
4858 ?*) ac_cv_sizeof_long=$ac_lo;;
4859 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4860 See \`config.log' for more details." >&5
4861 echo "$as_me: error: cannot compute sizeof (long), 77
4862 See \`config.log' for more details." >&2;}
4863 { (exit 1); exit 1; }; } ;;
4866 if test "$cross_compiling" = yes; then
4867 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4868 See \`config.log' for more details." >&5
4869 echo "$as_me: error: cannot run test program while cross compiling
4870 See \`config.log' for more details." >&2;}
4871 { (exit 1); exit 1; }; }
4873 cat >conftest.$ac_ext <<_ACEOF
4874 #line $LINENO "configure"
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 $ac_includes_default
4881 long longval () { return (long) (sizeof (long)); }
4882 unsigned long ulongval () { return (long) (sizeof (long)); }
4889 FILE *f = fopen ("conftest.val", "w");
4892 if (((long) (sizeof (long))) < 0)
4894 long i = longval ();
4895 if (i != ((long) (sizeof (long))))
4897 fprintf (f, "%ld\n", i);
4901 unsigned long i = ulongval ();
4902 if (i != ((long) (sizeof (long))))
4904 fprintf (f, "%lu\n", i);
4906 exit (ferror (f) || fclose (f) != 0);
4912 rm -f conftest$ac_exeext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4914 (eval $ac_link) 2>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_sizeof_long=`cat conftest.val`
4925 echo "$as_me: program exited with status $ac_status" >&5
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4931 See \`config.log' for more details." >&5
4932 echo "$as_me: error: cannot compute sizeof (long), 77
4933 See \`config.log' for more details." >&2;}
4934 { (exit 1); exit 1; }; }
4936 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4944 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4945 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4946 cat >>confdefs.h <<_ACEOF
4947 #define SIZEOF_LONG $ac_cv_sizeof_long
4951 echo "$as_me:$LINENO: checking for float" >&5
4952 echo $ECHO_N "checking for float... $ECHO_C" >&6
4953 if test "${ac_cv_type_float+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_cv_type_float=yes
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4994 rm -f conftest.$ac_objext conftest.$ac_ext
4996 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4997 echo "${ECHO_T}$ac_cv_type_float" >&6
4999 echo "$as_me:$LINENO: checking size of float" >&5
5000 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5001 if test "${ac_cv_sizeof_float+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if test "$ac_cv_type_float" = yes; then
5005 # The cast to unsigned long works around a bug in the HP C Compiler
5006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5008 # This bug is HP SR number 8606223364.
5009 if test "$cross_compiling" = yes; then
5010 # Depending upon the size, compute the lo and hi bounds.
5011 cat >conftest.$ac_ext <<_ACEOF
5012 #line $LINENO "configure"
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5022 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5029 rm -f conftest.$ac_objext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031 (eval $ac_compile) 2>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line $LINENO "configure"
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 $ac_includes_default
5054 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_hi=$ac_mid; break
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 ac_lo=`expr $ac_mid + 1`
5079 if test $ac_lo -le $ac_mid; then
5083 ac_mid=`expr 2 '*' $ac_mid + 1`
5085 rm -f conftest.$ac_objext conftest.$ac_ext
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 cat >conftest.$ac_ext <<_ACEOF
5092 #line $LINENO "configure"
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 $ac_includes_default
5102 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111 (eval $ac_compile) 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -s conftest.$ac_objext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 $ac_includes_default
5134 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143 (eval $ac_compile) 2>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -s conftest.$ac_objext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 ac_lo=$ac_mid; break
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 ac_hi=`expr '(' $ac_mid ')' - 1`
5159 if test $ac_mid -le $ac_hi; then
5163 ac_mid=`expr 2 '*' $ac_mid`
5165 rm -f conftest.$ac_objext conftest.$ac_ext
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5173 rm -f conftest.$ac_objext conftest.$ac_ext
5175 rm -f conftest.$ac_objext conftest.$ac_ext
5176 # Binary search between lo and hi bounds.
5177 while test "x$ac_lo" != "x$ac_hi"; do
5178 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5179 cat >conftest.$ac_ext <<_ACEOF
5180 #line $LINENO "configure"
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 $ac_includes_default
5190 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199 (eval $ac_compile) 2>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_lo=`expr '(' $ac_mid ')' + 1`
5216 rm -f conftest.$ac_objext conftest.$ac_ext
5219 ?*) ac_cv_sizeof_float=$ac_lo;;
5220 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5221 See \`config.log' for more details." >&5
5222 echo "$as_me: error: cannot compute sizeof (float), 77
5223 See \`config.log' for more details." >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 if test "$cross_compiling" = yes; then
5228 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5229 See \`config.log' for more details." >&5
5230 echo "$as_me: error: cannot run test program while cross compiling
5231 See \`config.log' for more details." >&2;}
5232 { (exit 1); exit 1; }; }
5234 cat >conftest.$ac_ext <<_ACEOF
5235 #line $LINENO "configure"
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5241 $ac_includes_default
5242 long longval () { return (long) (sizeof (float)); }
5243 unsigned long ulongval () { return (long) (sizeof (float)); }
5250 FILE *f = fopen ("conftest.val", "w");
5253 if (((long) (sizeof (float))) < 0)
5255 long i = longval ();
5256 if (i != ((long) (sizeof (float))))
5258 fprintf (f, "%ld\n", i);
5262 unsigned long i = ulongval ();
5263 if (i != ((long) (sizeof (float))))
5265 fprintf (f, "%lu\n", i);
5267 exit (ferror (f) || fclose (f) != 0);
5273 rm -f conftest$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275 (eval $ac_link) 2>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 ac_cv_sizeof_float=`cat conftest.val`
5286 echo "$as_me: program exited with status $ac_status" >&5
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5292 See \`config.log' for more details." >&5
5293 echo "$as_me: error: cannot compute sizeof (float), 77
5294 See \`config.log' for more details." >&2;}
5295 { (exit 1); exit 1; }; }
5297 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5302 ac_cv_sizeof_float=0
5305 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5306 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5307 cat >>confdefs.h <<_ACEOF
5308 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5312 echo "$as_me:$LINENO: checking for double" >&5
5313 echo $ECHO_N "checking for double... $ECHO_C" >&6
5314 if test "${ac_cv_type_double+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5330 if (sizeof (double))
5336 rm -f conftest.$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_type_double=yes
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ac_cv_type_double=no
5355 rm -f conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5358 echo "${ECHO_T}$ac_cv_type_double" >&6
5360 echo "$as_me:$LINENO: checking size of double" >&5
5361 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5362 if test "${ac_cv_sizeof_double+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 if test "$ac_cv_type_double" = yes; then
5366 # The cast to unsigned long works around a bug in the HP C Compiler
5367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5369 # This bug is HP SR number 8606223364.
5370 if test "$cross_compiling" = yes; then
5371 # Depending upon the size, compute the lo and hi bounds.
5372 cat >conftest.$ac_ext <<_ACEOF
5373 #line $LINENO "configure"
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 $ac_includes_default
5383 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -s conftest.$ac_objext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line $LINENO "configure"
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 $ac_includes_default
5415 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5422 rm -f conftest.$ac_objext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -s conftest.$ac_objext'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5434 ac_hi=$ac_mid; break
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 ac_lo=`expr $ac_mid + 1`
5440 if test $ac_lo -le $ac_mid; then
5444 ac_mid=`expr 2 '*' $ac_mid + 1`
5446 rm -f conftest.$ac_objext conftest.$ac_ext
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 cat >conftest.$ac_ext <<_ACEOF
5453 #line $LINENO "configure"
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 $ac_includes_default
5463 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5470 rm -f conftest.$ac_objext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5484 cat >conftest.$ac_ext <<_ACEOF
5485 #line $LINENO "configure"
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5495 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -s conftest.$ac_objext'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 ac_lo=$ac_mid; break
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5519 ac_hi=`expr '(' $ac_mid ')' - 1`
5520 if test $ac_mid -le $ac_hi; then
5524 ac_mid=`expr 2 '*' $ac_mid`
5526 rm -f conftest.$ac_objext conftest.$ac_ext
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5534 rm -f conftest.$ac_objext conftest.$ac_ext
5536 rm -f conftest.$ac_objext conftest.$ac_ext
5537 # Binary search between lo and hi bounds.
5538 while test "x$ac_lo" != "x$ac_hi"; do
5539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5540 cat >conftest.$ac_ext <<_ACEOF
5541 #line $LINENO "configure"
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 $ac_includes_default
5551 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5558 rm -f conftest.$ac_objext
5559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560 (eval $ac_compile) 2>&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -s conftest.$ac_objext'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 ac_lo=`expr '(' $ac_mid ')' + 1`
5577 rm -f conftest.$ac_objext conftest.$ac_ext
5580 ?*) ac_cv_sizeof_double=$ac_lo;;
5581 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5582 See \`config.log' for more details." >&5
5583 echo "$as_me: error: cannot compute sizeof (double), 77
5584 See \`config.log' for more details." >&2;}
5585 { (exit 1); exit 1; }; } ;;
5588 if test "$cross_compiling" = yes; then
5589 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5590 See \`config.log' for more details." >&5
5591 echo "$as_me: error: cannot run test program while cross compiling
5592 See \`config.log' for more details." >&2;}
5593 { (exit 1); exit 1; }; }
5595 cat >conftest.$ac_ext <<_ACEOF
5596 #line $LINENO "configure"
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 $ac_includes_default
5603 long longval () { return (long) (sizeof (double)); }
5604 unsigned long ulongval () { return (long) (sizeof (double)); }
5611 FILE *f = fopen ("conftest.val", "w");
5614 if (((long) (sizeof (double))) < 0)
5616 long i = longval ();
5617 if (i != ((long) (sizeof (double))))
5619 fprintf (f, "%ld\n", i);
5623 unsigned long i = ulongval ();
5624 if (i != ((long) (sizeof (double))))
5626 fprintf (f, "%lu\n", i);
5628 exit (ferror (f) || fclose (f) != 0);
5634 rm -f conftest$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 ac_cv_sizeof_double=`cat conftest.val`
5647 echo "$as_me: program exited with status $ac_status" >&5
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5652 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5653 See \`config.log' for more details." >&5
5654 echo "$as_me: error: cannot compute sizeof (double), 77
5655 See \`config.log' for more details." >&2;}
5656 { (exit 1); exit 1; }; }
5658 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5663 ac_cv_sizeof_double=0
5666 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5667 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5668 cat >>confdefs.h <<_ACEOF
5669 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5675 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5676 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5677 if test "${ac_cv_lib_z_deflate+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 ac_check_lib_save_LIBS=$LIBS
5682 cat >conftest.$ac_ext <<_ACEOF
5683 #line $LINENO "configure"
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5690 /* Override any gcc2 internal prototype to avoid an error. */
5694 /* We use char because int might match the return type of a gcc2
5695 builtin and then its argument prototype would still apply. */
5705 rm -f conftest.$ac_objext conftest$ac_exeext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5707 (eval $ac_link) 2>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -s conftest$ac_exeext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_lib_z_deflate=yes
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 ac_cv_lib_z_deflate=no
5724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5725 LIBS=$ac_check_lib_save_LIBS
5727 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5728 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5729 if test $ac_cv_lib_z_deflate = yes; then
5732 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5733 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5737 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5738 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5739 if test "${ac_cv_lib_m_sin+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 ac_check_lib_save_LIBS=$LIBS
5744 cat >conftest.$ac_ext <<_ACEOF
5745 #line $LINENO "configure"
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -s conftest$ac_exeext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5787 LIBS=$ac_check_lib_save_LIBS
5789 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5790 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5791 if test $ac_cv_lib_m_sin = yes; then
5792 cat >>confdefs.h <<_ACEOF
5800 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5801 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5802 if test "${ac_cv_lib_curses_main+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-lcurses $LIBS"
5807 cat >conftest.$ac_ext <<_ACEOF
5808 #line $LINENO "configure"
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5824 rm -f conftest.$ac_objext conftest$ac_exeext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5826 (eval $ac_link) 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest$ac_exeext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_lib_curses_main=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_cv_lib_curses_main=no
5843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5844 LIBS=$ac_check_lib_save_LIBS
5846 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5847 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5848 if test $ac_cv_lib_curses_main = yes; then
5854 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5855 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5856 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 ac_check_lib_save_LIBS=$LIBS
5860 LIBS="-lncurses $LIBS"
5861 cat >conftest.$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5880 (eval $ac_link) 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -s conftest$ac_exeext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 ac_cv_lib_ncurses_main=yes
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5895 ac_cv_lib_ncurses_main=no
5897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5898 LIBS=$ac_check_lib_save_LIBS
5900 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5901 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5902 if test $ac_cv_lib_ncurses_main = yes; then
5908 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5909 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5910 if test "${ac_cv_lib_readline_main+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 ac_check_lib_save_LIBS=$LIBS
5914 LIBS="-lreadline -lcurses $LIBS"
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5932 rm -f conftest.$ac_objext conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -s conftest$ac_exeext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 ac_cv_lib_readline_main=yes
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5949 ac_cv_lib_readline_main=no
5951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5952 LIBS=$ac_check_lib_save_LIBS
5954 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5955 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5956 if test $ac_cv_lib_readline_main = yes; then
5959 cat >>confdefs.h <<\_ACEOF
5960 #define HAVE_READLINE 1
5968 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
5969 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
5970 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 ac_check_lib_save_LIBS=$LIBS
5974 LIBS="-lwx_gtk-2.4 $LIBS"
5975 cat >conftest.$ac_ext <<_ACEOF
5976 #line $LINENO "configure"
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5994 (eval $ac_link) 2>&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } &&
5998 { ac_try='test -s conftest$ac_exeext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_cv_lib_wx_gtk_2_4_main=yes
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 ac_cv_lib_wx_gtk_2_4_main=no
6011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6012 LIBS=$ac_check_lib_save_LIBS
6014 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6015 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6016 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6017 wxwin=true; wx_gtk=true;
6018 cat >>confdefs.h <<\_ACEOF
6019 #define HAVE_WXWINDOWS 1
6024 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6025 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6026 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 ac_check_lib_save_LIBS=$LIBS
6030 LIBS="-lwx_mac-2.4 $LIBS"
6031 cat >conftest.$ac_ext <<_ACEOF
6032 #line $LINENO "configure"
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -s conftest$ac_exeext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 ac_cv_lib_wx_mac_2_4_main=yes
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_cv_lib_wx_mac_2_4_main=no
6067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6068 LIBS=$ac_check_lib_save_LIBS
6070 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6071 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6072 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6073 wxwin=true; wx_mac=true;
6074 cat >>confdefs.h <<\_ACEOF
6075 #define HAVE_WXWINDOWS 1
6080 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6081 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6082 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 ac_check_lib_save_LIBS=$LIBS
6087 cat >conftest.$ac_ext <<_ACEOF
6088 #line $LINENO "configure"
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6095 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112 (eval $ac_link) 2>&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -s conftest$ac_exeext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_lib_fftw_fftw_one=yes
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 ac_cv_lib_fftw_fftw_one=no
6129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6130 LIBS=$ac_check_lib_save_LIBS
6132 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6133 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6134 if test $ac_cv_lib_fftw_fftw_one = yes; then
6136 cat >>confdefs.h <<\_ACEOF
6144 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6145 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6146 if test "${ac_cv_lib_GL_main+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 ac_check_lib_save_LIBS=$LIBS
6150 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6151 cat >conftest.$ac_ext <<_ACEOF
6152 #line $LINENO "configure"
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -s conftest$ac_exeext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_lib_GL_main=yes
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 ac_cv_lib_GL_main=no
6187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6188 LIBS=$ac_check_lib_save_LIBS
6190 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6191 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6192 if test $ac_cv_lib_GL_main = yes; then
6198 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6199 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6200 if test "${ac_cv_lib_pthread_main+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 ac_check_lib_save_LIBS=$LIBS
6204 LIBS="-lpthread $LIBS"
6205 cat >conftest.$ac_ext <<_ACEOF
6206 #line $LINENO "configure"
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -s conftest$ac_exeext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_lib_pthread_main=yes
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ac_cv_lib_pthread_main=no
6241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6242 LIBS=$ac_check_lib_save_LIBS
6244 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6245 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6246 if test $ac_cv_lib_pthread_main = yes; then
6253 if test "$zlib" = "true" ; then
6254 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6255 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6256 if test "${ac_cv_lib_png_main+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 ac_check_lib_save_LIBS=$LIBS
6260 LIBS="-lpng -lz -lm $LIBS"
6261 cat >conftest.$ac_ext <<_ACEOF
6262 #line $LINENO "configure"
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 ac_cv_lib_png_main=yes
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_cv_lib_png_main=no
6297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6298 LIBS=$ac_check_lib_save_LIBS
6300 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6301 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6302 if test $ac_cv_lib_png_main = yes; then
6304 cat >>confdefs.h <<\_ACEOF
6314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6316 if test "${ac_cv_header_stdc+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 cat >conftest.$ac_ext <<_ACEOF
6320 #line $LINENO "configure"
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -s conftest.$ac_objext'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 ac_cv_header_stdc=yes
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 ac_cv_header_stdc=no
6358 rm -f conftest.$ac_objext conftest.$ac_ext
6360 if test $ac_cv_header_stdc = yes; then
6361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6362 cat >conftest.$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373 $EGREP "memchr" >/dev/null 2>&1; then
6376 ac_cv_header_stdc=no
6382 if test $ac_cv_header_stdc = yes; then
6383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6384 cat >conftest.$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395 $EGREP "free" >/dev/null 2>&1; then
6398 ac_cv_header_stdc=no
6404 if test $ac_cv_header_stdc = yes; then
6405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6406 if test "$cross_compiling" = yes; then
6409 cat >conftest.$ac_ext <<_ACEOF
6410 #line $LINENO "configure"
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6417 #if ((' ' & 0x0FF) == 0x020)
6418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6421 # define ISLOWER(c) \
6422 (('a' <= (c) && (c) <= 'i') \
6423 || ('j' <= (c) && (c) <= 'r') \
6424 || ('s' <= (c) && (c) <= 'z'))
6425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6433 for (i = 0; i < 256; i++)
6434 if (XOR (islower (i), ISLOWER (i))
6435 || toupper (i) != TOUPPER (i))
6440 rm -f conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6453 echo "$as_me: program exited with status $ac_status" >&5
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6458 ac_cv_header_stdc=no
6460 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6465 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6466 if test $ac_cv_header_stdc = yes; then
6468 cat >>confdefs.h <<\_ACEOF
6469 #define STDC_HEADERS 1
6498 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
6500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502 echo "$as_me:$LINENO: checking for $ac_header" >&5
6503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6510 # Is the header compilable?
6511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6514 #line $LINENO "configure"
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 $ac_includes_default
6521 #include <$ac_header>
6523 rm -f conftest.$ac_objext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525 (eval $ac_compile) 2>&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -s conftest.$ac_objext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 ac_header_compiler=yes
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 ac_header_compiler=no
6542 rm -f conftest.$ac_objext conftest.$ac_ext
6543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6544 echo "${ECHO_T}$ac_header_compiler" >&6
6546 # Is the header present?
6547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6549 cat >conftest.$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <$ac_header>
6558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } >/dev/null; then
6566 if test -s conftest.err; then
6567 ac_cpp_err=$ac_c_preproc_warn_flag
6574 if test -z "$ac_cpp_err"; then
6575 ac_header_preproc=yes
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 ac_header_preproc=no
6582 rm -f conftest.err conftest.$ac_ext
6583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6584 echo "${ECHO_T}$ac_header_preproc" >&6
6586 # So? What about this header?
6587 case $ac_header_compiler:$ac_header_preproc in
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6595 ## ------------------------------------ ##
6596 ## Report this to bug-autoconf@gnu.org. ##
6597 ## ------------------------------------ ##
6600 sed "s/^/$as_me: WARNING: /" >&2
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6611 ## ------------------------------------ ##
6612 ## Report this to bug-autoconf@gnu.org. ##
6613 ## ------------------------------------ ##
6616 sed "s/^/$as_me: WARNING: /" >&2
6619 echo "$as_me:$LINENO: checking for $ac_header" >&5
6620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 eval "$as_ac_Header=$ac_header_preproc"
6626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6641 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6642 if test "${ac_cv_c_const+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 cat >conftest.$ac_ext <<_ACEOF
6646 #line $LINENO "configure"
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6656 /* FIXME: Include the comments suggested by Paul. */
6658 /* Ultrix mips cc rejects this. */
6659 typedef int charset[2];
6661 /* SunOS 4.1.1 cc rejects this. */
6662 char const *const *ccp;
6664 /* NEC SVR4.0.2 mips cc rejects this. */
6665 struct point {int x, y;};
6666 static struct point const zero = {0,0};
6667 /* AIX XL C 1.02.0.0 rejects this.
6668 It does not let you subtract one const X* pointer from another in
6669 an arm of an if-expression whose if-part is not a constant
6671 const char *g = "string";
6672 ccp = &g + (g ? g-g : 0);
6673 /* HPUX 7.0 cc rejects these. */
6676 ccp = (char const *const *) p;
6677 { /* SCO 3.2v4 cc rejects this. */
6679 char const *s = 0 ? (char *) 0 : (char const *) 0;
6683 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6685 const int *foo = &x[0];
6688 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6689 typedef const int *iptr;
6693 { /* AIX XL C 1.02.0.0 rejects this saying
6694 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6695 struct s { int j; const int *ap[3]; };
6696 struct s *b; b->j = 5;
6698 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6707 rm -f conftest.$ac_objext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -s conftest.$ac_objext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6726 rm -f conftest.$ac_objext conftest.$ac_ext
6728 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6729 echo "${ECHO_T}$ac_cv_c_const" >&6
6730 if test $ac_cv_c_const = no; then
6732 cat >>confdefs.h <<\_ACEOF
6738 echo "$as_me:$LINENO: checking for off_t" >&5
6739 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6740 if test "${ac_cv_type_off_t+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 cat >conftest.$ac_ext <<_ACEOF
6744 #line $LINENO "configure"
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 $ac_includes_default
6762 rm -f conftest.$ac_objext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6764 (eval $ac_compile) 2>&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -s conftest.$ac_objext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_cv_type_off_t=yes
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6781 rm -f conftest.$ac_objext conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6784 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6785 if test $ac_cv_type_off_t = yes; then
6789 cat >>confdefs.h <<_ACEOF
6795 echo "$as_me:$LINENO: checking for size_t" >&5
6796 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6797 if test "${ac_cv_type_size_t+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6813 if (sizeof (size_t))
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821 (eval $ac_compile) 2>&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -s conftest.$ac_objext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 ac_cv_type_size_t=yes
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 ac_cv_type_size_t=no
6838 rm -f conftest.$ac_objext conftest.$ac_ext
6840 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6841 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6842 if test $ac_cv_type_size_t = yes; then
6846 cat >>confdefs.h <<_ACEOF
6847 #define size_t unsigned
6852 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6853 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6854 if test "${ac_cv_struct_tm+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 cat >conftest.$ac_ext <<_ACEOF
6858 #line $LINENO "configure"
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 #include <sys/types.h>
6870 struct tm *tp; tp->tm_sec;
6875 rm -f conftest.$ac_objext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -s conftest.$ac_objext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_struct_tm=time.h
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6892 ac_cv_struct_tm=sys/time.h
6894 rm -f conftest.$ac_objext conftest.$ac_ext
6896 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6897 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6898 if test $ac_cv_struct_tm = sys/time.h; then
6900 cat >>confdefs.h <<\_ACEOF
6901 #define TM_IN_SYS_TIME 1
6908 for ac_func in vprintf
6910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6911 echo "$as_me:$LINENO: checking for $ac_func" >&5
6912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6913 if eval "test \"\${$as_ac_var+set}\" = set"; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 cat >conftest.$ac_ext <<_ACEOF
6917 #line $LINENO "configure"
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 /* System header to define __stub macros and hopefully few prototypes,
6924 which can conflict with char $ac_func (); below.
6925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6926 <limits.h> exists even on freestanding compilers. */
6928 # include <limits.h>
6930 # include <assert.h>
6932 /* Override any gcc2 internal prototype to avoid an error. */
6937 /* We use char because int might match the return type of a gcc2
6938 builtin and then its argument prototype would still apply. */
6940 /* The GNU C library defines this for functions which it implements
6941 to always fail with ENOSYS. Some functions are actually named
6942 something starting with __ and the normal name is an alias. */
6943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6946 char (*f) () = $ac_func;
6955 return f != $ac_func;
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try='test -s conftest$ac_exeext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 eval "$as_ac_var=yes"
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 eval "$as_ac_var=no"
6979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6983 if test `eval echo '${'$as_ac_var'}'` = yes; then
6984 cat >>confdefs.h <<_ACEOF
6985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6988 echo "$as_me:$LINENO: checking for _doprnt" >&5
6989 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6990 if test "${ac_cv_func__doprnt+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6994 #line $LINENO "configure"
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 /* System header to define __stub macros and hopefully few prototypes,
7001 which can conflict with char _doprnt (); below.
7002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7003 <limits.h> exists even on freestanding compilers. */
7005 # include <limits.h>
7007 # include <assert.h>
7009 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7017 /* The GNU C library defines this for functions which it implements
7018 to always fail with ENOSYS. Some functions are actually named
7019 something starting with __ and the normal name is an alias. */
7020 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7023 char (*f) () = _doprnt;
7032 return f != _doprnt;
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } &&
7043 { ac_try='test -s conftest$ac_exeext'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; }; then
7049 ac_cv_func__doprnt=yes
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 ac_cv_func__doprnt=no
7056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7058 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7059 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7060 if test $ac_cv_func__doprnt = yes; then
7062 cat >>confdefs.h <<\_ACEOF
7063 #define HAVE_DOPRNT 1
7079 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7082 echo "$as_me:$LINENO: checking for $ac_func" >&5
7083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7084 if eval "test \"\${$as_ac_var+set}\" = set"; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 cat >conftest.$ac_ext <<_ACEOF
7088 #line $LINENO "configure"
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 /* System header to define __stub macros and hopefully few prototypes,
7095 which can conflict with char $ac_func (); below.
7096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097 <limits.h> exists even on freestanding compilers. */
7099 # include <limits.h>
7101 # include <assert.h>
7103 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7111 /* The GNU C library defines this for functions which it implements
7112 to always fail with ENOSYS. Some functions are actually named
7113 something starting with __ and the normal name is an alias. */
7114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7117 char (*f) () = $ac_func;
7126 return f != $ac_func;
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133 (eval $ac_link) 2>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try='test -s conftest$ac_exeext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 eval "$as_ac_var=yes"
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 eval "$as_ac_var=no"
7150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7154 if test `eval echo '${'$as_ac_var'}'` = yes; then
7155 cat >>confdefs.h <<_ACEOF
7156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7162 echo "$as_me:$LINENO: checking for basename" >&5
7163 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7164 if test "${ac_cv_func_basename+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 cat >conftest.$ac_ext <<_ACEOF
7168 #line $LINENO "configure"
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 /* System header to define __stub macros and hopefully few prototypes,
7175 which can conflict with char basename (); below.
7176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7177 <limits.h> exists even on freestanding compilers. */
7179 # include <limits.h>
7181 # include <assert.h>
7183 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7191 /* The GNU C library defines this for functions which it implements
7192 to always fail with ENOSYS. Some functions are actually named
7193 something starting with __ and the normal name is an alias. */
7194 #if defined (__stub_basename) || defined (__stub___basename)
7197 char (*f) () = basename;
7206 return f != basename;
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213 (eval $ac_link) 2>&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } &&
7217 { ac_try='test -s conftest$ac_exeext'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; }; then
7223 ac_cv_func_basename=yes
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7228 ac_cv_func_basename=no
7230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7232 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7233 echo "${ECHO_T}$ac_cv_func_basename" >&6
7235 echo "$as_me:$LINENO: checking for setjmp" >&5
7236 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7237 if test "${ac_cv_func_setjmp+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7241 #line $LINENO "configure"
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 /* System header to define __stub macros and hopefully few prototypes,
7248 which can conflict with char setjmp (); below.
7249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7250 <limits.h> exists even on freestanding compilers. */
7252 # include <limits.h>
7254 # include <assert.h>
7256 /* Override any gcc2 internal prototype to avoid an error. */
7261 /* We use char because int might match the return type of a gcc2
7262 builtin and then its argument prototype would still apply. */
7264 /* The GNU C library defines this for functions which it implements
7265 to always fail with ENOSYS. Some functions are actually named
7266 something starting with __ and the normal name is an alias. */
7267 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7270 char (*f) () = setjmp;
7284 rm -f conftest.$ac_objext conftest$ac_exeext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7286 (eval $ac_link) 2>&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -s conftest$ac_exeext'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7296 ac_cv_func_setjmp=yes
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7301 ac_cv_func_setjmp=no
7303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7305 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7306 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7308 echo "$as_me:$LINENO: checking for setpriority" >&5
7309 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7310 if test "${ac_cv_func_setpriority+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 cat >conftest.$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 /* System header to define __stub macros and hopefully few prototypes,
7321 which can conflict with char setpriority (); below.
7322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7323 <limits.h> exists even on freestanding compilers. */
7325 # include <limits.h>
7327 # include <assert.h>
7329 /* Override any gcc2 internal prototype to avoid an error. */
7334 /* We use char because int might match the return type of a gcc2
7335 builtin and then its argument prototype would still apply. */
7336 char setpriority ();
7337 /* The GNU C library defines this for functions which it implements
7338 to always fail with ENOSYS. Some functions are actually named
7339 something starting with __ and the normal name is an alias. */
7340 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7343 char (*f) () = setpriority;
7352 return f != setpriority;
7357 rm -f conftest.$ac_objext conftest$ac_exeext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7359 (eval $ac_link) 2>&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try='test -s conftest$ac_exeext'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7369 ac_cv_func_setpriority=yes
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ac_cv_func_setpriority=no
7376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7379 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7381 echo "$as_me:$LINENO: checking for time" >&5
7382 echo $ECHO_N "checking for time... $ECHO_C" >&6
7383 if test "${ac_cv_func_time+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 /* System header to define __stub macros and hopefully few prototypes,
7394 which can conflict with char time (); below.
7395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7396 <limits.h> exists even on freestanding compilers. */
7398 # include <limits.h>
7400 # include <assert.h>
7402 /* Override any gcc2 internal prototype to avoid an error. */
7407 /* We use char because int might match the return type of a gcc2
7408 builtin and then its argument prototype would still apply. */
7410 /* The GNU C library defines this for functions which it implements
7411 to always fail with ENOSYS. Some functions are actually named
7412 something starting with __ and the normal name is an alias. */
7413 #if defined (__stub_time) || defined (__stub___time)
7416 char (*f) () = time;
7430 rm -f conftest.$ac_objext conftest$ac_exeext
7431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432 (eval $ac_link) 2>&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } &&
7436 { ac_try='test -s conftest$ac_exeext'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; }; then
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7451 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7452 echo "${ECHO_T}$ac_cv_func_time" >&6
7454 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7455 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7456 if test "${ac_cv_func_gettimeofday+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 cat >conftest.$ac_ext <<_ACEOF
7460 #line $LINENO "configure"
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 /* System header to define __stub macros and hopefully few prototypes,
7467 which can conflict with char gettimeofday (); below.
7468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7469 <limits.h> exists even on freestanding compilers. */
7471 # include <limits.h>
7473 # include <assert.h>
7475 /* Override any gcc2 internal prototype to avoid an error. */
7480 /* We use char because int might match the return type of a gcc2
7481 builtin and then its argument prototype would still apply. */
7482 char gettimeofday ();
7483 /* The GNU C library defines this for functions which it implements
7484 to always fail with ENOSYS. Some functions are actually named
7485 something starting with __ and the normal name is an alias. */
7486 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7489 char (*f) () = gettimeofday;
7498 return f != gettimeofday;
7503 rm -f conftest.$ac_objext conftest$ac_exeext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -s conftest$ac_exeext'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 ac_cv_func_gettimeofday=yes
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ac_cv_func_gettimeofday=no
7522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7525 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7527 echo "$as_me:$LINENO: checking for getopt" >&5
7528 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7529 if test "${ac_cv_func_getopt+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #line $LINENO "configure"
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 /* System header to define __stub macros and hopefully few prototypes,
7540 which can conflict with char getopt (); below.
7541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7542 <limits.h> exists even on freestanding compilers. */
7544 # include <limits.h>
7546 # include <assert.h>
7548 /* Override any gcc2 internal prototype to avoid an error. */
7553 /* We use char because int might match the return type of a gcc2
7554 builtin and then its argument prototype would still apply. */
7556 /* The GNU C library defines this for functions which it implements
7557 to always fail with ENOSYS. Some functions are actually named
7558 something starting with __ and the normal name is an alias. */
7559 #if defined (__stub_getopt) || defined (__stub___getopt)
7562 char (*f) () = getopt;
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578 (eval $ac_link) 2>&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } &&
7582 { ac_try='test -s conftest$ac_exeext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_func_getopt=yes
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_cv_func_getopt=no
7595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7597 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7598 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7599 if test $ac_cv_func_getopt = yes; then
7606 if test "${OSTYPE}" = "cygwin" ; then
7609 echo "$as_me:$LINENO: checking for getopt_long" >&5
7610 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7611 if test "${ac_cv_func_getopt_long+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 cat >conftest.$ac_ext <<_ACEOF
7615 #line $LINENO "configure"
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 /* System header to define __stub macros and hopefully few prototypes,
7622 which can conflict with char getopt_long (); below.
7623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7624 <limits.h> exists even on freestanding compilers. */
7626 # include <limits.h>
7628 # include <assert.h>
7630 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7637 char getopt_long ();
7638 /* The GNU C library defines this for functions which it implements
7639 to always fail with ENOSYS. Some functions are actually named
7640 something starting with __ and the normal name is an alias. */
7641 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7644 char (*f) () = getopt_long;
7653 return f != getopt_long;
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7660 (eval $ac_link) 2>&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_func_getopt_long=yes
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_cv_func_getopt_long=no
7677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7680 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7681 if test $ac_cv_func_getopt_long = yes; then
7689 if test "${getopt_long}" = "false" ; then
7690 my_includes="$my_includes -I../getopt"
7692 cat >>confdefs.h <<\_ACEOF
7693 #define HAVE_GETOPT_LONG 1
7696 ctlibs_base="$ctlibs_base -lgetopt"
7697 LDFLAGS="$LDFLAGS -L../getopt"
7701 INCLUDED_GETOPT_LONG_TRUE=
7702 INCLUDED_GETOPT_LONG_FALSE='#'
7704 INCLUDED_GETOPT_LONG_TRUE='#'
7705 INCLUDED_GETOPT_LONG_FALSE=
7709 if test "${readline}" = "true" ; then
7710 ctlibs_base="$ctlibs_base -lreadline"
7711 if test "${ncurses}" = "true"; then
7712 ctlibs_base="$ctlibs_base -lncurses"
7713 elif test "${curses}" = "true"; then
7714 ctlibs_base="$ctlibs_base -lcurses"
7718 echo "$as_me:$LINENO: checking debug" >&5
7719 echo $ECHO_N "checking debug... $ECHO_C" >&6
7720 # Check whether --enable-debug or --disable-debug was given.
7721 if test "${enable_debug+set}" = set; then
7722 enableval="$enable_debug"
7723 case "${enableval}" in
7725 echo "$as_me:$LINENO: result: yes" >&5
7726 echo "${ECHO_T}yes" >&6
7729 echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6
7732 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7733 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7737 debug=false; echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6
7742 if test "$debug" = "true"; then
7750 if test "$datadir" != "" ; then
7751 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7754 if test "$debug" = "true" ; then
7755 CFLAGS="$CFLAGS -g -DDEBUG"
7757 cat >>confdefs.h <<\_ACEOF
7762 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
7764 cat >>confdefs.h <<\_ACEOF
7770 if test "${pthread}" = "true" ; then
7772 cat >>confdefs.h <<\_ACEOF
7773 #define HAVE_WXTHREADS 1
7778 echo "$as_me:$LINENO: checking sstream" >&5
7779 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7780 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7781 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
7782 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_SSTREAM 1
7788 echo "$as_me:$LINENO: result: yes" >&5
7789 echo "${ECHO_T}yes" >&6
7791 echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6
7796 CFLAGS="$CFLAGS -Wall"
7797 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7798 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7799 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7800 if test "${enable_verbose_warnings+set}" = set; then
7801 enableval="$enable_verbose_warnings"
7802 case "$enableval" in
7804 echo "$as_me:$LINENO: result: yes" >&5
7805 echo "${ECHO_T}yes" >&6
7806 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7809 echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6
7814 echo "$as_me:$LINENO: result: no" >&5
7815 echo "${ECHO_T}no" >&6
7819 echo "$as_me:$LINENO: checking static executables" >&5
7820 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7821 # Check whether --enable-static or --disable-static was given.
7822 if test "${enable_static+set}" = set; then
7823 enableval="$enable_static"
7824 case "$enableval" in
7826 echo "$as_me:$LINENO: result: yes" >&5
7827 echo "${ECHO_T}yes" >&6
7828 CFLAGS="$CFLAGS --static"
7831 echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6
7836 echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6
7842 # Check whether --with-lam or --without-lam was given.
7843 if test "${with_lam+set}" = set; then
7845 if test "$withval" != "no" ; then
7851 if test "$withval" != "no" ; then
7852 if test "$prefix" != "NONE" ; then
7853 trylamdir="$trylamdir $prefix"
7856 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7857 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7858 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7859 if test -x "$testlamdir/bin/hcp" ; then
7860 if test "$testlamdir" != "/usr"; then
7861 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7862 CFLAGS="$CFLAGS -I$testlamdir/include"
7864 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7865 lamdir="$testlamdir"
7872 echo "$as_me:$LINENO: result: $lamdir" >&5
7873 echo "${ECHO_T}$lamdir" >&6
7875 echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6
7881 # Check whether --with-ctn or --without-ctn was given.
7882 if test "${with_ctn+set}" = set; then
7884 if test "$withval" != "no" ; then
7890 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7891 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7892 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7893 echo "$as_me:$LINENO: result: disabled" >&5
7894 echo "${ECHO_T}disabled" >&6
7896 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7897 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7898 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7899 if test -f "$testctndir/libctn.a" ; then
7900 LDFLAGS="$LDFLAGS -L$testctndir"
7905 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7906 if test -f "$testctndir/ctn_os.h" ; then
7907 CFLAGS="$CFLAGS -I$testctndir"
7912 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_CTN_DICOM 1
7919 echo "$as_me:$LINENO: result: yes" >&5
7920 echo "${ECHO_T}yes" >&6
7922 echo "$as_me:$LINENO: result: no" >&5
7923 echo "${ECHO_T}no" >&6
7927 echo "$as_me:$LINENO: checking for CPU specification" >&5
7928 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
7930 # Check whether --with-mcpu or --without-mcpu was given.
7931 if test "${with_mcpu+set}" = set; then
7932 withval="$with_mcpu"
7936 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
7937 echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6
7940 echo "$as_me:$LINENO: result: $withval" >&5
7941 echo "${ECHO_T}$withval" >&6
7942 CFLAGS="$CFLAGS -mcpu=$withval"
7945 echo "$as_me:$LINENO: checking for web access" >&5
7946 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7948 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7949 if test "${with_cgibin_dir+set}" = set; then
7950 withval="$with_cgibin_dir"
7951 cgibindir=$withval ;
7955 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7956 if test "${with_cgibin_url+set}" = set; then
7957 withval="$with_cgibin_url"
7958 cgibinurl=$withval ;
7962 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7963 if test "${with_webdata_dir+set}" = set; then
7964 withval="$with_webdata_dir"
7965 webdatadir=$withval ;
7969 # Check whether --with-webdata-url or --without-webdata-url was given.
7970 if test "${with_webdata_url+set}" = set; then
7971 withval="$with_webdata_url"
7972 webdataurl=$withval ;
7976 # Check whether --with-html-dir or --without-html-dir was given.
7977 if test "${with_html_dir+set}" = set; then
7978 withval="$with_html_dir"
7982 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7983 cgiprograms="ctsim.cgi ctsim.conf"
7987 if test -n "$htmldir" ; then
7988 htmldata=simulate.html
7993 if test -n "$htmldir"; then
8001 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8004 echo "$as_me:$LINENO: result: yes" >&5
8005 echo "${ECHO_T}yes" >&6
8006 if test -z "$cgibindir" ; then
8007 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8008 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8009 { (exit 1); exit 1; }; }
8010 elif test -z "$cgibinurl" ; then
8011 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8012 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8013 { (exit 1); exit 1; }; }
8014 elif test -z "$webdatadir" ; then
8015 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8016 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8017 { (exit 1); exit 1; }; }
8018 elif test -z "$webdataurl" ; then
8019 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8020 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8021 { (exit 1); exit 1; }; }
8022 elif test -z "$htmldir" ; then
8023 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8024 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8025 { (exit 1); exit 1; }; }
8028 echo "$as_me:$LINENO: result: no" >&5
8029 echo "${ECHO_T}no" >&6
8034 if test -n "$lamdir"; then
8043 echo "$as_me:$LINENO: checking for X" >&5
8044 echo $ECHO_N "checking for X... $ECHO_C" >&6
8047 # Check whether --with-x or --without-x was given.
8048 if test "${with_x+set}" = set; then
8052 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8053 if test "x$with_x" = xno; then
8054 # The user explicitly disabled X.
8057 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8058 # Both variables are already set.
8061 if test "${ac_cv_have_x+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 # One or both of the vars are not set, and there is no cached value.
8065 ac_x_includes=no ac_x_libraries=no
8067 if mkdir conftest.dir; then
8069 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8070 cat >Imakefile <<'_ACEOF'
8072 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8074 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8075 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8076 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8077 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8078 for ac_extension in a so sl; do
8079 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8080 test -f $ac_im_libdir/libX11.$ac_extension; then
8081 ac_im_usrlibdir=$ac_im_libdir; break
8084 # Screen out bogus values from the imake configuration. They are
8085 # bogus both because they are the default anyway, and because
8086 # using them would break gcc on systems where it needs fixed includes.
8087 case $ac_im_incroot in
8089 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8091 case $ac_im_usrlibdir in
8093 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8100 # Standard set of common directories for X headers.
8101 # Check X11 before X11Rn because it is often a symlink to the current release.
8113 /usr/local/X11/include
8114 /usr/local/X11R6/include
8115 /usr/local/X11R5/include
8116 /usr/local/X11R4/include
8118 /usr/local/include/X11
8119 /usr/local/include/X11R6
8120 /usr/local/include/X11R5
8121 /usr/local/include/X11R4
8125 /usr/XFree86/include/X11
8129 /usr/unsupported/include
8131 /usr/local/x11r5/include
8132 /usr/lpp/Xamples/include
8134 /usr/openwin/include
8135 /usr/openwin/share/include'
8137 if test "$ac_x_includes" = no; then
8138 # Guess where to find include files, by looking for Intrinsic.h.
8139 # First, try using that file with no special directory specified.
8140 cat >conftest.$ac_ext <<_ACEOF
8141 #line $LINENO "configure"
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 #include <X11/Intrinsic.h>
8149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } >/dev/null; then
8157 if test -s conftest.err; then
8158 ac_cpp_err=$ac_c_preproc_warn_flag
8165 if test -z "$ac_cpp_err"; then
8166 # We can compile using X headers with no special include directory.
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 for ac_dir in $ac_x_header_dirs; do
8173 if test -r "$ac_dir/X11/Intrinsic.h"; then
8174 ac_x_includes=$ac_dir
8179 rm -f conftest.err conftest.$ac_ext
8180 fi # $ac_x_includes = no
8182 if test "$ac_x_libraries" = no; then
8183 # Check for the libraries.
8184 # See if we find them without any special options.
8185 # Don't add to $LIBS permanently.
8188 cat >conftest.$ac_ext <<_ACEOF
8189 #line $LINENO "configure"
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 #include <X11/Intrinsic.h>
8204 rm -f conftest.$ac_objext conftest$ac_exeext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8206 (eval $ac_link) 2>&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -s conftest$ac_exeext'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8217 # We can link X programs with no special library path.
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8224 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8226 # Don't even attempt the hair of trying to link an X program!
8227 for ac_extension in a so sl; do
8228 if test -r $ac_dir/libXt.$ac_extension; then
8229 ac_x_libraries=$ac_dir
8235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8236 fi # $ac_x_libraries = no
8238 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8239 # Didn't find X anywhere. Cache the known absence of X.
8240 ac_cv_have_x="have_x=no"
8242 # Record where we found X for the cache.
8243 ac_cv_have_x="have_x=yes \
8244 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8249 eval "$ac_cv_have_x"
8252 if test "$have_x" != yes; then
8253 echo "$as_me:$LINENO: result: $have_x" >&5
8254 echo "${ECHO_T}$have_x" >&6
8257 # If each of the values was on the command line, it overrides each guess.
8258 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8259 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8260 # Update the cache value to reflect the command line values.
8261 ac_cv_have_x="have_x=yes \
8262 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8263 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8264 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8267 if test "$no_x" = yes; then
8268 # Not all programs may use this symbol, but it does not hurt to define it.
8270 cat >>confdefs.h <<\_ACEOF
8271 #define X_DISPLAY_MISSING 1
8274 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8276 if test -n "$x_includes"; then
8277 X_CFLAGS="$X_CFLAGS -I$x_includes"
8280 # It would also be nice to do this for all -L options, not just this one.
8281 if test -n "$x_libraries"; then
8282 X_LIBS="$X_LIBS -L$x_libraries"
8283 # For Solaris; some versions of Sun CC require a space after -R and
8284 # others require no space. Words are not sufficient . . . .
8285 case `(uname -sr) 2>/dev/null` in
8287 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8288 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8289 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8290 cat >conftest.$ac_ext <<_ACEOF
8291 #line $LINENO "configure"
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308 (eval $ac_link) 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8326 if test $ac_R_nospace = yes; then
8327 echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6
8329 X_LIBS="$X_LIBS -R$x_libraries"
8331 LIBS="$ac_xsave_LIBS -R $x_libraries"
8332 cat >conftest.$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350 (eval $ac_link) 2>&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } &&
8354 { ac_try='test -s conftest$ac_exeext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8368 if test $ac_R_space = yes; then
8369 echo "$as_me:$LINENO: result: yes" >&5
8370 echo "${ECHO_T}yes" >&6
8371 X_LIBS="$X_LIBS -R $x_libraries"
8373 echo "$as_me:$LINENO: result: neither works" >&5
8374 echo "${ECHO_T}neither works" >&6
8381 # Check for system-dependent libraries X programs must link with.
8382 # Do this before checking for the system-independent R6 libraries
8383 # (-lICE), since we may need -lsocket or whatever for X linking.
8385 if test "$ISC" = yes; then
8386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8388 # Martyn Johnson says this is needed for Ultrix, if the X
8389 # libraries were built with DECnet support. And Karl Berry says
8390 # the Alpha needs dnet_stub (dnet does not exist).
8391 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8392 cat >conftest.$ac_ext <<_ACEOF
8393 #line $LINENO "configure"
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8400 /* Override any gcc2 internal prototype to avoid an error. */
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8406 char XOpenDisplay ();
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
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8433 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8434 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 ac_check_lib_save_LIBS=$LIBS
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8447 /* Override any gcc2 internal prototype to avoid an error. */
8451 /* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_lib_dnet_dnet_ntoa=yes
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ac_cv_lib_dnet_dnet_ntoa=no
8481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8482 LIBS=$ac_check_lib_save_LIBS
8484 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8485 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8486 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8487 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8490 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8491 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8492 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8493 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-ldnet_stub $LIBS"
8498 cat >conftest.$ac_ext <<_ACEOF
8499 #line $LINENO "configure"
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8506 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8521 rm -f conftest.$ac_objext conftest$ac_exeext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523 (eval $ac_link) 2>&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -s conftest$ac_exeext'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; }; then
8533 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 ac_cv_lib_dnet_stub_dnet_ntoa=no
8540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8541 LIBS=$ac_check_lib_save_LIBS
8543 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8544 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8545 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8546 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8552 LIBS="$ac_xsave_LIBS"
8554 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8555 # to get the SysV transport functions.
8556 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8558 # The nsl library prevents programs from opening the X display
8559 # on Irix 5.2, according to T.E. Dickey.
8560 # The functions gethostbyname, getservbyname, and inet_addr are
8561 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8562 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8563 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8564 if test "${ac_cv_func_gethostbyname+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 cat >conftest.$ac_ext <<_ACEOF
8568 #line $LINENO "configure"
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 /* System header to define __stub macros and hopefully few prototypes,
8575 which can conflict with char gethostbyname (); below.
8576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8577 <limits.h> exists even on freestanding compilers. */
8579 # include <limits.h>
8581 # include <assert.h>
8583 /* Override any gcc2 internal prototype to avoid an error. */
8588 /* We use char because int might match the return type of a gcc2
8589 builtin and then its argument prototype would still apply. */
8590 char gethostbyname ();
8591 /* The GNU C library defines this for functions which it implements
8592 to always fail with ENOSYS. Some functions are actually named
8593 something starting with __ and the normal name is an alias. */
8594 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8597 char (*f) () = gethostbyname;
8606 return f != gethostbyname;
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -s conftest$ac_exeext'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; }; then
8623 ac_cv_func_gethostbyname=yes
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 ac_cv_func_gethostbyname=no
8630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8632 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8633 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8635 if test $ac_cv_func_gethostbyname = no; then
8636 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8637 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8638 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 ac_check_lib_save_LIBS=$LIBS
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8651 /* Override any gcc2 internal prototype to avoid an error. */
8655 /* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
8657 char gethostbyname ();
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } &&
8672 { ac_try='test -s conftest$ac_exeext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_cv_lib_nsl_gethostbyname=yes
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_cv_lib_nsl_gethostbyname=no
8685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS
8688 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8689 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8690 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8691 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8694 if test $ac_cv_lib_nsl_gethostbyname = no; then
8695 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8696 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8697 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 ac_check_lib_save_LIBS=$LIBS
8702 cat >conftest.$ac_ext <<_ACEOF
8703 #line $LINENO "configure"
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8710 /* Override any gcc2 internal prototype to avoid an error. */
8714 /* We use char because int might match the return type of a gcc2
8715 builtin and then its argument prototype would still apply. */
8716 char gethostbyname ();
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try='test -s conftest$ac_exeext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 ac_cv_lib_bsd_gethostbyname=yes
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 ac_cv_lib_bsd_gethostbyname=no
8744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8748 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8749 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8756 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8757 # socket/setsockopt and other routines are undefined under SCO ODT
8758 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8759 # on later versions), says Simon Leinen: it contains gethostby*
8760 # variants that don't use the name server (or something). -lsocket
8761 # must be given before -lnsl if both are needed. We assume that
8762 # if connect needs -lnsl, so does gethostbyname.
8763 echo "$as_me:$LINENO: checking for connect" >&5
8764 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8765 if test "${ac_cv_func_connect+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 cat >conftest.$ac_ext <<_ACEOF
8769 #line $LINENO "configure"
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 /* System header to define __stub macros and hopefully few prototypes,
8776 which can conflict with char connect (); below.
8777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8778 <limits.h> exists even on freestanding compilers. */
8780 # include <limits.h>
8782 # include <assert.h>
8784 /* Override any gcc2 internal prototype to avoid an error. */
8789 /* We use char because int might match the return type of a gcc2
8790 builtin and then its argument prototype would still apply. */
8792 /* The GNU C library defines this for functions which it implements
8793 to always fail with ENOSYS. Some functions are actually named
8794 something starting with __ and the normal name is an alias. */
8795 #if defined (__stub_connect) || defined (__stub___connect)
8798 char (*f) () = connect;
8807 return f != connect;
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } &&
8818 { ac_try='test -s conftest$ac_exeext'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
8824 ac_cv_func_connect=yes
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8829 ac_cv_func_connect=no
8831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8833 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8834 echo "${ECHO_T}$ac_cv_func_connect" >&6
8836 if test $ac_cv_func_connect = no; then
8837 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8838 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8839 if test "${ac_cv_lib_socket_connect+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 ac_check_lib_save_LIBS=$LIBS
8843 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8845 #line $LINENO "configure"
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 /* Override any gcc2 internal prototype to avoid an error. */
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } &&
8873 { ac_try='test -s conftest$ac_exeext'
8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 ac_cv_lib_socket_connect=yes
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 ac_cv_lib_socket_connect=no
8886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8887 LIBS=$ac_check_lib_save_LIBS
8889 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8890 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8891 if test $ac_cv_lib_socket_connect = yes; then
8892 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8897 # Guillermo Gomez says -lposix is necessary on A/UX.
8898 echo "$as_me:$LINENO: checking for remove" >&5
8899 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8900 if test "${ac_cv_func_remove+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 cat >conftest.$ac_ext <<_ACEOF
8904 #line $LINENO "configure"
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8910 /* System header to define __stub macros and hopefully few prototypes,
8911 which can conflict with char remove (); below.
8912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8913 <limits.h> exists even on freestanding compilers. */
8915 # include <limits.h>
8917 # include <assert.h>
8919 /* Override any gcc2 internal prototype to avoid an error. */
8924 /* We use char because int might match the return type of a gcc2
8925 builtin and then its argument prototype would still apply. */
8927 /* The GNU C library defines this for functions which it implements
8928 to always fail with ENOSYS. Some functions are actually named
8929 something starting with __ and the normal name is an alias. */
8930 #if defined (__stub_remove) || defined (__stub___remove)
8933 char (*f) () = remove;
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -s conftest$ac_exeext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_cv_func_remove=yes
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8964 ac_cv_func_remove=no
8966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8968 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8969 echo "${ECHO_T}$ac_cv_func_remove" >&6
8971 if test $ac_cv_func_remove = no; then
8972 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8973 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8974 if test "${ac_cv_lib_posix_remove+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 ac_check_lib_save_LIBS=$LIBS
8978 LIBS="-lposix $LIBS"
8979 cat >conftest.$ac_ext <<_ACEOF
8980 #line $LINENO "configure"
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8987 /* Override any gcc2 internal prototype to avoid an error. */
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
9002 rm -f conftest.$ac_objext conftest$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_cv_lib_posix_remove=yes
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_cv_lib_posix_remove=no
9021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9022 LIBS=$ac_check_lib_save_LIBS
9024 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9025 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9026 if test $ac_cv_lib_posix_remove = yes; then
9027 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9032 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9033 echo "$as_me:$LINENO: checking for shmat" >&5
9034 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9035 if test "${ac_cv_func_shmat+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 /* System header to define __stub macros and hopefully few prototypes,
9046 which can conflict with char shmat (); below.
9047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9048 <limits.h> exists even on freestanding compilers. */
9050 # include <limits.h>
9052 # include <assert.h>
9054 /* Override any gcc2 internal prototype to avoid an error. */
9059 /* We use char because int might match the return type of a gcc2
9060 builtin and then its argument prototype would still apply. */
9062 /* The GNU C library defines this for functions which it implements
9063 to always fail with ENOSYS. Some functions are actually named
9064 something starting with __ and the normal name is an alias. */
9065 #if defined (__stub_shmat) || defined (__stub___shmat)
9068 char (*f) () = shmat;
9082 rm -f conftest.$ac_objext conftest$ac_exeext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084 (eval $ac_link) 2>&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_cv_func_shmat=yes
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9103 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9104 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9106 if test $ac_cv_func_shmat = no; then
9107 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9108 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9109 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 ac_check_lib_save_LIBS=$LIBS
9114 cat >conftest.$ac_ext <<_ACEOF
9115 #line $LINENO "configure"
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9122 /* Override any gcc2 internal prototype to avoid an error. */
9126 /* We use char because int might match the return type of a gcc2
9127 builtin and then its argument prototype would still apply. */
9137 rm -f conftest.$ac_objext conftest$ac_exeext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139 (eval $ac_link) 2>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -s conftest$ac_exeext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_lib_ipc_shmat=yes
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9154 ac_cv_lib_ipc_shmat=no
9156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9157 LIBS=$ac_check_lib_save_LIBS
9159 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9160 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9161 if test $ac_cv_lib_ipc_shmat = yes; then
9162 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9168 # Check for libraries that X11R6 Xt/Xaw programs need.
9169 ac_save_LDFLAGS=$LDFLAGS
9170 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9171 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9172 # check for ICE first), but we must link in the order -lSM -lICE or
9173 # we get undefined symbols. So assume we have SM if we have ICE.
9174 # These have to be linked with before -lX11, unlike the other
9175 # libraries we check for below, so use a different variable.
9176 # John Interrante, Karl Berry
9177 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9178 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9179 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 ac_check_lib_save_LIBS=$LIBS
9183 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9184 cat >conftest.$ac_ext <<_ACEOF
9185 #line $LINENO "configure"
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9192 /* Override any gcc2 internal prototype to avoid an error. */
9196 /* We use char because int might match the return type of a gcc2
9197 builtin and then its argument prototype would still apply. */
9198 char IceConnectionNumber ();
9202 IceConnectionNumber ();
9207 rm -f conftest.$ac_objext conftest$ac_exeext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9209 (eval $ac_link) 2>&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } &&
9213 { ac_try='test -s conftest$ac_exeext'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 ac_cv_lib_ICE_IceConnectionNumber=yes
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 ac_cv_lib_ICE_IceConnectionNumber=no
9226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9227 LIBS=$ac_check_lib_save_LIBS
9229 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9230 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9231 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9232 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9235 LDFLAGS=$ac_save_LDFLAGS
9246 X_TOOLKIT_LIBS="-lXt"
9247 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9249 our_saved_LDFLAGS="$LDFLAGS"
9250 LDFLAGS="$X_LIBS $LDFLAGS"
9251 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9252 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9253 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 ac_check_lib_save_LIBS=$LIBS
9257 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9258 cat >conftest.$ac_ext <<_ACEOF
9259 #line $LINENO "configure"
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9266 /* Override any gcc2 internal prototype to avoid an error. */
9270 /* We use char because int might match the return type of a gcc2
9271 builtin and then its argument prototype would still apply. */
9272 char XtToolkitThreadInitialize ();
9276 XtToolkitThreadInitialize ();
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_Xt_XtToolkitThreadInitialize=yes
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_cv_lib_Xt_XtToolkitThreadInitialize=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_Xt_XtToolkitThreadInitialize" >&5
9304 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9305 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9307 cat >>confdefs.h <<\_ACEOF
9308 #define X_THREAD_SUPPORT 1
9313 LDFLAGS="$our_saved_LDFLAGS"
9317 if test "x$no_x" = "xyes"; then
9325 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9328 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9330 echo "$as_me:$LINENO: checking for X" >&5
9331 echo $ECHO_N "checking for X... $ECHO_C" >&6
9332 if test "$no_x" != "yes" ; then
9334 cat >>confdefs.h <<\_ACEOF
9338 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9339 my_includes="$my_includes -I/usr/X11R6/include"
9340 ctlib_graphics="$ctlibs_base -lctgraphics"
9341 echo "$as_me:$LINENO: result: yes" >&5
9342 echo "${ECHO_T}yes" >&6
9343 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9344 if test "$libgl" = "true" ; then
9345 # Removed "-lglut" for Mac OS X compilation
9346 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9347 if test "$wxwin" = "true" ; then
9349 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9350 elif "$wx_mac" ; then
9351 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9355 if test "$wxwin" = "true" ; then
9357 cat >>confdefs.h <<\_ACEOF
9372 echo "$as_me:$LINENO: result: no" >&5
9373 echo "${ECHO_T}no" >&6
9376 if test "$png" = "true" ; then
9377 ctlibs_tools="$ctlibs_tools -lpng"
9379 if test "$zlib" = "true" ; then
9380 ctlibs_tools="$ctlibs_tools -lz"
9382 if test "$fftw" = "true" ; then
9383 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9385 if test "$ctn" = "true"; then
9386 ctlibs_tools="$ctlibs_tools -lctn"
9389 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9390 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9391 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 ac_check_lib_save_LIBS=$LIBS
9395 LIBS="-ldmallocxx $LIBS"
9396 cat >conftest.$ac_ext <<_ACEOF
9397 #line $LINENO "configure"
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9415 (eval $ac_link) 2>&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -s conftest$ac_exeext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 ac_cv_lib_dmallocxx_main=yes
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ac_cv_lib_dmallocxx_main=no
9432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9435 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9436 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9437 if test $ac_cv_lib_dmallocxx_main = yes; then
9443 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9444 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9445 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9446 if test "${enable_dmalloc+set}" = set; then
9447 enableval="$enable_dmalloc"
9448 case "${enableval}" in
9449 yes) usedmalloc=true
9450 echo "$as_me:$LINENO: result: yes" >&5
9451 echo "${ECHO_T}yes" >&6
9453 no) usedmalloc=false
9454 echo "$as_me:$LINENO: result: no" >&5
9455 echo "${ECHO_T}no" >&6
9457 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9458 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9462 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9463 echo "${ECHO_T}no" >&6
9466 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9467 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9469 cat >>confdefs.h <<\_ACEOF
9470 #define HAVE_DMALLOC 1
9473 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9474 echo "${ECHO_T}Using dmalloc" >&6
9477 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9478 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9479 if test "${ac_cv_lib_efence_main+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 ac_check_lib_save_LIBS=$LIBS
9483 LIBS="-lefence $LIBS"
9484 cat >conftest.$ac_ext <<_ACEOF
9485 #line $LINENO "configure"
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_cv_lib_efence_main=yes
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9518 ac_cv_lib_efence_main=no
9520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9521 LIBS=$ac_check_lib_save_LIBS
9523 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9524 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9525 if test $ac_cv_lib_efence_main = yes; then
9531 echo "$as_me:$LINENO: checking for enable-efence" >&5
9532 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9533 # Check whether --enable-efence or --disable-efence was given.
9534 if test "${enable_efence+set}" = set; then
9535 enableval="$enable_efence"
9536 case "${enableval}" in
9538 echo "$as_me:$LINENO: result: yes" >&5
9539 echo "${ECHO_T}yes" >&6
9542 echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6
9545 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9546 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9550 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9551 echo "${ECHO_T}no" >&6
9554 if test "$efence" = "true" -a "$useefence" = "true" ; then
9555 ctlibs_tools="$ctlibs_tools -lefence"
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_EFENCE 1
9561 echo "$as_me:$LINENO: result: Using efence" >&5
9562 echo "${ECHO_T}Using efence" >&6
9565 if test "$wxwin" = "true" ; then
9566 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
9567 wxcflags=`$wxconfig --cflags`
9568 wxlibs=`$wxconfig --libs`
9570 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9571 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9573 CFLAGS="$CFLAGS -I../include $wxcflags"
9574 ctlib_graphics="$ctlib_graphics $wxlibs"
9578 HAVE_WXWINDOWS_TRUE=
9579 HAVE_WXWINDOWS_FALSE='#'
9581 HAVE_WXWINDOWS_TRUE='#'
9582 HAVE_WXWINDOWS_FALSE=
9588 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9589 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9592 if test -n "$lamdir" ; then
9593 lamprograms="ctsimtext-lam"
9601 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"
9604 cat >confcache <<\_ACEOF
9605 # This file is a shell script that caches the results of configure
9606 # tests run on this system so they can be shared between configure
9607 # scripts and configure runs, see configure's option --config-cache.
9608 # It is not useful on other systems. If it contains results you don't
9609 # want to keep, you may remove or edit it.
9611 # config.status only pays attention to the cache file if you give it
9612 # the --recheck option to rerun configure.
9614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9620 # The following way of writing the cache mishandles newlines in values,
9621 # but we know of no workaround that is simple, portable, and efficient.
9622 # So, don't put newlines in cache variables' values.
9623 # Ultrix sh set writes to stderr and can't be redirected directly,
9624 # and sets the high bit in the cache file unless we assign to the vars.
9627 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9629 # `set' does not quote correctly, so add quotes (double-quote
9630 # substitution turns \\\\ into \\, and sed turns \\ into \).
9633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9636 # `set' quotes correctly as required by POSIX, so do not add quotes.
9638 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9647 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9649 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9650 if test -w $cache_file; then
9651 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9652 cat confcache >$cache_file
9654 echo "not updating unwritable cache $cache_file"
9659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9660 # Let make expand exec_prefix.
9661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9663 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9664 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9665 # trailing colons and then remove the whole line if VPATH becomes empty
9666 # (actually we leave an empty line to preserve line numbers).
9667 if test "x$srcdir" = x.; then
9668 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9669 s/:*\$(srcdir):*/:/;
9670 s/:*\${srcdir}:*/:/;
9672 s/^\([^=]*=[ ]*\):*/\1/;
9678 DEFS=-DHAVE_CONFIG_H
9682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9683 # 1. Remove the extension, and $U if already installed.
9684 ac_i=`echo "$ac_i" |
9685 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9687 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9688 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9692 LTLIBOBJS=$ac_ltlibobjs
9696 : ${CONFIG_STATUS=./config.status}
9697 ac_clean_files_save=$ac_clean_files
9698 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9699 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9700 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9701 cat >$CONFIG_STATUS <<_ACEOF
9703 # Generated by $as_me.
9704 # Run this file to recreate the current configuration.
9705 # Compiler output produced by configure, useful for debugging
9706 # configure, is in config.log if it exists.
9711 SHELL=\${CONFIG_SHELL-$SHELL}
9714 cat >>$CONFIG_STATUS <<\_ACEOF
9715 ## --------------------- ##
9716 ## M4sh Initialization. ##
9717 ## --------------------- ##
9719 # Be Bourne compatible
9720 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9723 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9724 # is contrary to our usage. Disable this feature.
9725 alias -g '${1+"$@"}'='"$@"'
9726 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9730 # Support unset when possible.
9731 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9738 # Work around bugs in pre-3.0 UWIN ksh.
9739 $as_unset ENV MAIL MAILPATH
9746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9748 LC_TELEPHONE LC_TIME
9750 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9751 eval $as_var=C; export $as_var
9757 # Required to use basename.
9758 if expr a : '\(a\)' >/dev/null 2>&1; then
9764 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9765 as_basename=basename
9771 # Name of the executable.
9772 as_me=`$as_basename "$0" ||
9773 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9774 X"$0" : 'X\(//\)$' \| \
9775 X"$0" : 'X\(/\)$' \| \
9776 . : '\(.\)' 2>/dev/null ||
9778 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9779 /^X\/\(\/\/\)$/{ s//\1/; q; }
9780 /^X\/\(\/\).*/{ s//\1/; q; }
9784 # PATH needs CR, and LINENO needs CR and PATH.
9785 # Avoid depending upon Character Ranges.
9786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9789 as_cr_digits='0123456789'
9790 as_cr_alnum=$as_cr_Letters$as_cr_digits
9792 # The user is always right.
9793 if test "${PATH_SEPARATOR+set}" != set; then
9794 echo "#! /bin/sh" >conf$$.sh
9795 echo "exit 0" >>conf$$.sh
9797 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9809 test "x$as_lineno_1" != "x$as_lineno_2" &&
9810 test "x$as_lineno_3" = "x$as_lineno_2" || {
9811 # Find who we are. Look in the path if we contain no path at all
9814 *[\\/]* ) as_myself=$0 ;;
9815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 test -z "$as_dir" && as_dir=.
9820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9825 # We did not find ourselves, most probably we were run as `sh COMMAND'
9826 # in which case we are not to be found in the path.
9827 if test "x$as_myself" = x; then
9830 if test ! -f "$as_myself"; then
9831 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9832 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9833 { (exit 1); exit 1; }; }
9835 case $CONFIG_SHELL in
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9841 test -z "$as_dir" && as_dir=.
9842 for as_base in sh bash ksh sh5; do
9845 if ("$as_dir/$as_base" -c '
9848 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9849 test "x$as_lineno_1" != "x$as_lineno_2" &&
9850 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9851 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9852 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9853 CONFIG_SHELL=$as_dir/$as_base
9855 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9863 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9864 # uniformly replaced by the line number. The first 'sed' inserts a
9865 # line-number line before each line; the second 'sed' does the real
9866 # work. The second script uses 'N' to pair each line-number line
9867 # with the numbered line, and appends trailing '-' during
9868 # substitution so that $LINENO is not a special case at line end.
9869 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9870 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9871 sed '=' <$as_myself |
9876 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9879 s,^['$as_cr_digits']*\n,,
9881 chmod +x $as_me.lineno ||
9882 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9883 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9884 { (exit 1); exit 1; }; }
9886 # Don't try to exec as it changes $[0], causing all sort of problems
9887 # (the dirname of $[0] is not the place where we might find the
9888 # original and so on. Autoconf is especially sensible to this).
9890 # Exit status is that of the last command.
9895 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9896 *c*,-n*) ECHO_N= ECHO_C='
9898 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9899 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9902 if expr a : '\(a\)' >/dev/null 2>&1; then
9908 rm -f conf$$ conf$$.exe conf$$.file
9910 if ln -s conf$$.file conf$$ 2>/dev/null; then
9911 # We could just check for DJGPP; but this test a) works b) is more generic
9912 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9913 if test -f conf$$.exe; then
9914 # Don't use ln at all; we don't have any links
9919 elif ln conf$$.file conf$$ 2>/dev/null; then
9924 rm -f conf$$ conf$$.exe conf$$.file
9926 if mkdir -p . 2>/dev/null; then
9932 as_executable_p="test -f"
9934 # Sed expression to map a string onto a valid CPP name.
9935 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9937 # Sed expression to map a string onto a valid variable name.
9938 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9942 # We need space, tab and new line, in precisely that order.
9952 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9953 # report actual input values of CONFIG_FILES etc. instead of their
9954 # values after options handling. Logging --version etc. is OK.
9958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9959 ## Running $as_me. ##
9964 This file was extended by $as_me, which was
9965 generated by GNU Autoconf 2.57. Invocation command line was
9967 CONFIG_FILES = $CONFIG_FILES
9968 CONFIG_HEADERS = $CONFIG_HEADERS
9969 CONFIG_LINKS = $CONFIG_LINKS
9970 CONFIG_COMMANDS = $CONFIG_COMMANDS
9974 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9978 # Files that config.status was made for.
9979 if test -n "$ac_config_files"; then
9980 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9983 if test -n "$ac_config_headers"; then
9984 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9987 if test -n "$ac_config_links"; then
9988 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9991 if test -n "$ac_config_commands"; then
9992 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9995 cat >>$CONFIG_STATUS <<\_ACEOF
9998 \`$as_me' instantiates files from templates according to the
9999 current configuration.
10001 Usage: $0 [OPTIONS] [FILE]...
10003 -h, --help print this help, then exit
10004 -V, --version print version number, then exit
10005 -q, --quiet do not print progress messages
10006 -d, --debug don't remove temporary files
10007 --recheck update $as_me by reconfiguring in the same conditions
10008 --file=FILE[:TEMPLATE]
10009 instantiate the configuration file FILE
10010 --header=FILE[:TEMPLATE]
10011 instantiate the configuration header FILE
10013 Configuration files:
10016 Configuration headers:
10019 Configuration commands:
10022 Report bugs to <bug-autoconf@gnu.org>."
10025 cat >>$CONFIG_STATUS <<_ACEOF
10028 configured by $0, generated by GNU Autoconf 2.57,
10029 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10031 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10032 Free Software Foundation, Inc.
10033 This config.status script is free software; the Free Software Foundation
10034 gives unlimited permission to copy, distribute and modify it."
10039 cat >>$CONFIG_STATUS <<\_ACEOF
10040 # If no file are specified by the user, then we need to provide default
10041 # value. By we need to know if files were specified by the user.
10047 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10048 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10056 *) # This is not an option, so the user has probably given explicit
10059 ac_need_defaults=false;;
10063 # Handling of the options.
10065 cat >>$CONFIG_STATUS <<\_ACEOF
10066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10068 --version | --vers* | -V )
10069 echo "$ac_cs_version"; exit 0 ;;
10071 # Conflict between --help and --header
10072 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10073 Try \`$0 --help' for more information." >&5
10074 echo "$as_me: error: ambiguous option: $1
10075 Try \`$0 --help' for more information." >&2;}
10076 { (exit 1); exit 1; }; };;
10077 --help | --hel | -h )
10078 echo "$ac_cs_usage"; exit 0 ;;
10079 --debug | --d* | -d )
10081 --file | --fil | --fi | --f )
10083 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10084 ac_need_defaults=false;;
10085 --header | --heade | --head | --hea )
10087 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10088 ac_need_defaults=false;;
10089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10093 # This is an error.
10094 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10095 Try \`$0 --help' for more information." >&5
10096 echo "$as_me: error: unrecognized option: $1
10097 Try \`$0 --help' for more information." >&2;}
10098 { (exit 1); exit 1; }; } ;;
10100 *) ac_config_targets="$ac_config_targets $1" ;;
10106 ac_configure_extra_args=
10108 if $ac_cs_silent; then
10110 ac_configure_extra_args="$ac_configure_extra_args --silent"
10114 cat >>$CONFIG_STATUS <<_ACEOF
10115 if \$ac_cs_recheck; then
10116 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10117 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10122 cat >>$CONFIG_STATUS <<_ACEOF
10124 # INIT-COMMANDS section.
10133 cat >>$CONFIG_STATUS <<\_ACEOF
10134 for ac_config_target in $ac_config_targets
10136 case "$ac_config_target" in
10137 # Handling of arguments.
10138 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10139 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10140 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10141 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10142 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10143 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10144 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10145 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10146 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10147 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10148 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10149 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10150 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10151 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10152 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10153 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10154 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10155 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10156 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10157 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10158 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10159 { (exit 1); exit 1; }; };;
10163 # If the user did not use the arguments to specify the items to instantiate,
10164 # then the envvar interface is used. Set only those that are not.
10165 # We use the long form for the default assignment because of an extremely
10166 # bizarre bug on SunOS 4.1.3.
10167 if $ac_need_defaults; then
10168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10173 # Have a temporary directory for convenience. Make it in the build tree
10174 # simply because there is no reason to put it here, and in addition,
10175 # creating and moving files from /tmp can sometimes cause problems.
10176 # Create a temporary directory, and hook for its removal unless debugging.
10179 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10180 trap '{ (exit 1); exit 1; }' 1 2 13 15
10183 # Create a (secure) tmp directory for tmp files.
10186 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10187 test -n "$tmp" && test -d "$tmp"
10190 tmp=./confstat$$-$RANDOM
10191 (umask 077 && mkdir $tmp)
10194 echo "$me: cannot create a temporary directory in ." >&2
10195 { (exit 1); exit 1; }
10200 cat >>$CONFIG_STATUS <<_ACEOF
10203 # CONFIG_FILES section.
10206 # No need to generate the scripts if there are no CONFIG_FILES.
10207 # This happens for instance when ./config.status config.h
10208 if test -n "\$CONFIG_FILES"; then
10209 # Protect against being on the right side of a sed subst in config.status.
10210 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10211 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10212 s,@SHELL@,$SHELL,;t t
10213 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10214 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10215 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10216 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10217 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10218 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10219 s,@exec_prefix@,$exec_prefix,;t t
10220 s,@prefix@,$prefix,;t t
10221 s,@program_transform_name@,$program_transform_name,;t t
10222 s,@bindir@,$bindir,;t t
10223 s,@sbindir@,$sbindir,;t t
10224 s,@libexecdir@,$libexecdir,;t t
10225 s,@datadir@,$datadir,;t t
10226 s,@sysconfdir@,$sysconfdir,;t t
10227 s,@sharedstatedir@,$sharedstatedir,;t t
10228 s,@localstatedir@,$localstatedir,;t t
10229 s,@libdir@,$libdir,;t t
10230 s,@includedir@,$includedir,;t t
10231 s,@oldincludedir@,$oldincludedir,;t t
10232 s,@infodir@,$infodir,;t t
10233 s,@mandir@,$mandir,;t t
10234 s,@build_alias@,$build_alias,;t t
10235 s,@host_alias@,$host_alias,;t t
10236 s,@target_alias@,$target_alias,;t t
10237 s,@DEFS@,$DEFS,;t t
10238 s,@ECHO_C@,$ECHO_C,;t t
10239 s,@ECHO_N@,$ECHO_N,;t t
10240 s,@ECHO_T@,$ECHO_T,;t t
10241 s,@LIBS@,$LIBS,;t t
10242 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10243 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10244 s,@MAINT@,$MAINT,;t t
10245 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10246 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10247 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10248 s,@PACKAGE@,$PACKAGE,;t t
10249 s,@VERSION@,$VERSION,;t t
10250 s,@ACLOCAL@,$ACLOCAL,;t t
10251 s,@AUTOCONF@,$AUTOCONF,;t t
10252 s,@AUTOMAKE@,$AUTOMAKE,;t t
10253 s,@AUTOHEADER@,$AUTOHEADER,;t t
10254 s,@MAKEINFO@,$MAKEINFO,;t t
10255 s,@SET_MAKE@,$SET_MAKE,;t t
10257 s,@RANLIB@,$RANLIB,;t t
10258 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10260 s,@CFLAGS@,$CFLAGS,;t t
10261 s,@LDFLAGS@,$LDFLAGS,;t t
10262 s,@CPPFLAGS@,$CPPFLAGS,;t t
10263 s,@ac_ct_CC@,$ac_ct_CC,;t t
10264 s,@EXEEXT@,$EXEEXT,;t t
10265 s,@OBJEXT@,$OBJEXT,;t t
10267 s,@CXXFLAGS@,$CXXFLAGS,;t t
10268 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10269 s,@wxconfig@,$wxconfig,;t t
10270 s,@build@,$build,;t t
10271 s,@build_cpu@,$build_cpu,;t t
10272 s,@build_vendor@,$build_vendor,;t t
10273 s,@build_os@,$build_os,;t t
10274 s,@host@,$host,;t t
10275 s,@host_cpu@,$host_cpu,;t t
10276 s,@host_vendor@,$host_vendor,;t t
10277 s,@host_os@,$host_os,;t t
10279 s,@EGREP@,$EGREP,;t t
10280 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10281 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10282 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10283 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10284 s,@lamdir@,$lamdir,;t t
10285 s,@mpienable@,$mpienable,;t t
10286 s,@cgibindir@,$cgibindir,;t t
10287 s,@cgibinurl@,$cgibinurl,;t t
10288 s,@webdatadir@,$webdatadir,;t t
10289 s,@webdataurl@,$webdataurl,;t t
10290 s,@htmldir@,$htmldir,;t t
10291 s,@cgiprograms@,$cgiprograms,;t t
10292 s,@htmldata@,$htmldata,;t t
10293 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10294 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10295 s,@webenabled@,$webenabled,;t t
10296 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10297 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10298 s,@X_CFLAGS@,$X_CFLAGS,;t t
10299 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10300 s,@X_LIBS@,$X_LIBS,;t t
10301 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10302 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10303 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10304 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10305 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10306 s,@my_includes@,$my_includes,;t t
10307 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10308 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10309 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10310 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10311 s,@wxcflags@,$wxcflags,;t t
10312 s,@wxlibs@,$wxlibs,;t t
10313 s,@ctlibs@,$ctlibs,;t t
10314 s,@lamprograms@,$lamprograms,;t t
10315 s,@lamdefs@,$lamdefs,;t t
10316 s,@LIBOBJS@,$LIBOBJS,;t t
10317 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10322 cat >>$CONFIG_STATUS <<\_ACEOF
10323 # Split the substitutions into bite-sized pieces for seds with
10324 # small command number limits, like on Digital OSF/1 and HP-UX.
10325 ac_max_sed_lines=48
10326 ac_sed_frag=1 # Number of current file.
10327 ac_beg=1 # First line for current file.
10328 ac_end=$ac_max_sed_lines # Line after last line for current file.
10331 while $ac_more_lines; do
10332 if test $ac_beg -gt 1; then
10333 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10335 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10337 if test ! -s $tmp/subs.frag; then
10338 ac_more_lines=false
10340 # The purpose of the label and of the branching condition is to
10341 # speed up the sed processing (if there are no `@' at all, there
10342 # is no need to browse any of the substitutions).
10343 # These are the two extra sed commands mentioned above.
10345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10346 if test -z "$ac_sed_cmds"; then
10347 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10349 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10351 ac_sed_frag=`expr $ac_sed_frag + 1`
10353 ac_end=`expr $ac_end + $ac_max_sed_lines`
10356 if test -z "$ac_sed_cmds"; then
10359 fi # test -n "$CONFIG_FILES"
10362 cat >>$CONFIG_STATUS <<\_ACEOF
10363 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10366 - | *:- | *:-:* ) # input from stdin
10368 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10370 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10372 * ) ac_file_in=$ac_file.in ;;
10375 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10376 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10378 X"$ac_file" : 'X\(//\)[^/]' \| \
10379 X"$ac_file" : 'X\(//\)$' \| \
10380 X"$ac_file" : 'X\(/\)' \| \
10381 . : '\(.\)' 2>/dev/null ||
10383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10385 /^X\(\/\/\)$/{ s//\1/; q; }
10386 /^X\(\/\).*/{ s//\1/; q; }
10388 { if $as_mkdir_p; then
10393 while test ! -d "$as_dir"; do
10394 as_dirs="$as_dir $as_dirs"
10395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10397 X"$as_dir" : 'X\(//\)[^/]' \| \
10398 X"$as_dir" : 'X\(//\)$' \| \
10399 X"$as_dir" : 'X\(/\)' \| \
10400 . : '\(.\)' 2>/dev/null ||
10402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10404 /^X\(\/\/\)$/{ s//\1/; q; }
10405 /^X\(\/\).*/{ s//\1/; q; }
10408 test ! -n "$as_dirs" || mkdir $as_dirs
10409 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10410 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10411 { (exit 1); exit 1; }; }; }
10415 if test "$ac_dir" != .; then
10416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10417 # A "../" for each directory in $ac_dir_suffix.
10418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10420 ac_dir_suffix= ac_top_builddir=
10424 .) # No --srcdir option. We are building in place.
10426 if test -z "$ac_top_builddir"; then
10429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10431 [\\/]* | ?:[\\/]* ) # Absolute path.
10432 ac_srcdir=$srcdir$ac_dir_suffix;
10433 ac_top_srcdir=$srcdir ;;
10434 *) # Relative path.
10435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10438 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10440 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10441 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10442 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10443 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10448 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10451 if test x"$ac_file" != x-; then
10452 { echo "$as_me:$LINENO: creating $ac_file" >&5
10453 echo "$as_me: creating $ac_file" >&6;}
10456 # Let's still pretend it is `configure' which instantiates (i.e., don't
10457 # use $as_me), people would be surprised to read:
10458 # /* config.h. Generated by config.status. */
10459 if test x"$ac_file" = x-; then
10462 configure_input="$ac_file. "
10464 configure_input=$configure_input"Generated from `echo $ac_file_in |
10465 sed 's,.*/,,'` by configure."
10467 # First look for the input files in the build tree, otherwise in the
10469 ac_file_inputs=`IFS=:
10470 for f in $ac_file_in; do
10472 -) echo $tmp/stdin ;;
10474 # Absolute (can't be DOS-style, as IFS=:)
10475 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10476 echo "$as_me: error: cannot find input file: $f" >&2;}
10477 { (exit 1); exit 1; }; }
10480 if test -f "$f"; then
10483 elif test -f "$srcdir/$f"; then
10488 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10489 echo "$as_me: error: cannot find input file: $f" >&2;}
10490 { (exit 1); exit 1; }; }
10493 done` || { (exit 1); exit 1; }
10495 cat >>$CONFIG_STATUS <<_ACEOF
10499 cat >>$CONFIG_STATUS <<\_ACEOF
10501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10502 s,@configure_input@,$configure_input,;t t
10503 s,@srcdir@,$ac_srcdir,;t t
10504 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10505 s,@top_srcdir@,$ac_top_srcdir,;t t
10506 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10507 s,@builddir@,$ac_builddir,;t t
10508 s,@abs_builddir@,$ac_abs_builddir,;t t
10509 s,@top_builddir@,$ac_top_builddir,;t t
10510 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10511 s,@INSTALL@,$ac_INSTALL,;t t
10512 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10514 if test x"$ac_file" != x-; then
10515 mv $tmp/out $ac_file
10523 cat >>$CONFIG_STATUS <<\_ACEOF
10526 # CONFIG_HEADER section.
10529 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10530 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10532 # ac_d sets the value in "#define NAME VALUE" lines.
10533 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10534 ac_dB='[ ].*$,\1#\2'
10537 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10538 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10539 ac_uB='$,\1#\2define\3'
10543 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10544 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10546 - | *:- | *:-:* ) # input from stdin
10548 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10549 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10550 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10551 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10552 * ) ac_file_in=$ac_file.in ;;
10555 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10556 echo "$as_me: creating $ac_file" >&6;}
10558 # First look for the input files in the build tree, otherwise in the
10560 ac_file_inputs=`IFS=:
10561 for f in $ac_file_in; do
10563 -) echo $tmp/stdin ;;
10565 # Absolute (can't be DOS-style, as IFS=:)
10566 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10567 echo "$as_me: error: cannot find input file: $f" >&2;}
10568 { (exit 1); exit 1; }; }
10571 if test -f "$f"; then
10574 elif test -f "$srcdir/$f"; then
10579 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10580 echo "$as_me: error: cannot find input file: $f" >&2;}
10581 { (exit 1); exit 1; }; }
10584 done` || { (exit 1); exit 1; }
10585 # Remove the trailing spaces.
10586 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10590 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10591 # `conftest.undefs', that substitutes the proper values into
10592 # config.h.in to produce config.h. The first handles `#define'
10593 # templates, and the second `#undef' templates.
10594 # And first: Protect against being on the right side of a sed subst in
10595 # config.status. Protect against being in an unquoted here document
10596 # in config.status.
10597 rm -f conftest.defines conftest.undefs
10598 # Using a here document instead of a string reduces the quoting nightmare.
10599 # Putting comments in sed scripts is not portable.
10601 # `end' is used to avoid that the second main sed command (meant for
10602 # 0-ary CPP macros) applies to n-ary macro definitions.
10603 # See the Autoconf documentation for `clear'.
10604 cat >confdef2sed.sed <<\_ACEOF
10609 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10611 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10614 # If some macros were called several times there might be several times
10615 # the same #defines, which is useless. Nevertheless, we may not want to
10616 # sort them, since we want the *last* AC-DEFINE to be honored.
10617 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10618 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10619 rm -f confdef2sed.sed
10621 # This sed command replaces #undef with comments. This is necessary, for
10622 # example, in the case of _POSIX_SOURCE, which is predefined and required
10623 # on some systems where configure will not decide to define it.
10624 cat >>conftest.undefs <<\_ACEOF
10625 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10628 # Break up conftest.defines because some shells have a limit on the size
10629 # of here documents, and old seds have small limits too (100 cmds).
10630 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10631 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10632 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10633 echo ' :' >>$CONFIG_STATUS
10634 rm -f conftest.tail
10635 while grep . conftest.defines >/dev/null
10637 # Write a limited-size here document to $tmp/defines.sed.
10638 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10639 # Speed up: don't consider the non `#define' lines.
10640 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10641 # Work around the forget-to-reset-the-flag bug.
10642 echo 't clr' >>$CONFIG_STATUS
10643 echo ': clr' >>$CONFIG_STATUS
10644 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10646 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10648 mv $tmp/out $tmp/in
10650 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10651 rm -f conftest.defines
10652 mv conftest.tail conftest.defines
10654 rm -f conftest.defines
10655 echo ' fi # grep' >>$CONFIG_STATUS
10656 echo >>$CONFIG_STATUS
10658 # Break up conftest.undefs because some shells have a limit on the size
10659 # of here documents, and old seds have small limits too (100 cmds).
10660 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10661 rm -f conftest.tail
10662 while grep . conftest.undefs >/dev/null
10664 # Write a limited-size here document to $tmp/undefs.sed.
10665 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10666 # Speed up: don't consider the non `#undef'
10667 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10668 # Work around the forget-to-reset-the-flag bug.
10669 echo 't clr' >>$CONFIG_STATUS
10670 echo ': clr' >>$CONFIG_STATUS
10671 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10673 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10675 mv $tmp/out $tmp/in
10677 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10678 rm -f conftest.undefs
10679 mv conftest.tail conftest.undefs
10681 rm -f conftest.undefs
10683 cat >>$CONFIG_STATUS <<\_ACEOF
10684 # Let's still pretend it is `configure' which instantiates (i.e., don't
10685 # use $as_me), people would be surprised to read:
10686 # /* config.h. Generated by config.status. */
10687 if test x"$ac_file" = x-; then
10688 echo "/* Generated by configure. */" >$tmp/config.h
10690 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10692 cat $tmp/in >>$tmp/config.h
10694 if test x"$ac_file" != x-; then
10695 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10696 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10697 echo "$as_me: $ac_file is unchanged" >&6;}
10699 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10701 X"$ac_file" : 'X\(//\)[^/]' \| \
10702 X"$ac_file" : 'X\(//\)$' \| \
10703 X"$ac_file" : 'X\(/\)' \| \
10704 . : '\(.\)' 2>/dev/null ||
10706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10708 /^X\(\/\/\)$/{ s//\1/; q; }
10709 /^X\(\/\).*/{ s//\1/; q; }
10711 { if $as_mkdir_p; then
10716 while test ! -d "$as_dir"; do
10717 as_dirs="$as_dir $as_dirs"
10718 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10720 X"$as_dir" : 'X\(//\)[^/]' \| \
10721 X"$as_dir" : 'X\(//\)$' \| \
10722 X"$as_dir" : 'X\(/\)' \| \
10723 . : '\(.\)' 2>/dev/null ||
10725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10727 /^X\(\/\/\)$/{ s//\1/; q; }
10728 /^X\(\/\).*/{ s//\1/; q; }
10731 test ! -n "$as_dirs" || mkdir $as_dirs
10732 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10733 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10734 { (exit 1); exit 1; }; }; }
10737 mv $tmp/config.h $ac_file
10741 rm -f $tmp/config.h
10745 cat >>$CONFIG_STATUS <<\_ACEOF
10748 # CONFIG_COMMANDS section.
10750 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10751 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10752 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10753 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10754 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10755 X"$ac_dest" : 'X\(//\)[^/]' \| \
10756 X"$ac_dest" : 'X\(//\)$' \| \
10757 X"$ac_dest" : 'X\(/\)' \| \
10758 . : '\(.\)' 2>/dev/null ||
10760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10762 /^X\(\/\/\)$/{ s//\1/; q; }
10763 /^X\(\/\).*/{ s//\1/; q; }
10767 if test "$ac_dir" != .; then
10768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10769 # A "../" for each directory in $ac_dir_suffix.
10770 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10772 ac_dir_suffix= ac_top_builddir=
10776 .) # No --srcdir option. We are building in place.
10778 if test -z "$ac_top_builddir"; then
10781 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10783 [\\/]* | ?:[\\/]* ) # Absolute path.
10784 ac_srcdir=$srcdir$ac_dir_suffix;
10785 ac_top_srcdir=$srcdir ;;
10786 *) # Relative path.
10787 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10788 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10790 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10792 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10793 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10794 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10795 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10798 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10799 echo "$as_me: executing $ac_dest commands" >&6;}
10801 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10806 cat >>$CONFIG_STATUS <<\_ACEOF
10808 { (exit 0); exit 0; }
10810 chmod +x $CONFIG_STATUS
10811 ac_clean_files=$ac_clean_files_save
10814 # configure is writing to config.log, and then calls config.status.
10815 # config.status does its own redirection, appending to config.log.
10816 # Unfortunately, on DOS this fails, as config.log is still kept open
10817 # by configure, so config.status won't be able to write to it; its
10818 # output is simply discarded. So we exec the FD to /dev/null,
10819 # effectively closing config.log, so it can be properly (re)opened and
10820 # appended to by config.status. When coming back to configure, we
10821 # need to make the FD available again.
10822 if test "$no_create" != yes; then
10824 ac_config_status_args=
10825 test "$silent" = yes &&
10826 ac_config_status_args="$ac_config_status_args --quiet"
10828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10831 # would make configure fail if this is the last instruction.
10832 $ac_cs_success || { (exit 1); exit 1; }