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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 wxcflags wxlibs HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE 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 --disable-dependency-tracking Speeds up one-time builds
866 --enable-dependency-tracking Do not reject slow dependency extractors
867 --enable-debug Turn on debugging
868 --enable-verbose-warnings
869 Enable verbose compiler warnings.
871 Enable static executables.
872 --enable-dmalloc Use dmalloc memory allocation
873 --enable-efence Use ElectricFence memory allocation
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-lam=PATH Set path of LAM MPI
879 --with-ctn=PATH Set path of CTN DICOM library
880 --with-mcpu=CPU Set name of CPU for gcc -mcpu
881 --with-cgibin-dir=PATH Set path of CGI binaries directory
882 --with-cgibin-url=PATH Set URL path of CGI binaries
883 --with-webdata-dir=PATH Set path of webdata
884 --with-webdata-url=PATH Set URL path of webdata
885 --with-html-dir=PATH Set directory of html files
886 --with-x use the X Window System
888 Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
895 CXX C++ compiler command
896 CXXFLAGS C++ compiler flags
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
905 if test "$ac_init_help" = "recursive"; then
906 # If there are subdirs, report their specific --help.
908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909 test -d $ac_dir || continue
912 if test "$ac_dir" != .; then
913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914 # A "../" for each directory in $ac_dir_suffix.
915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 ac_dir_suffix= ac_top_builddir=
921 .) # No --srcdir option. We are building in place.
923 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 [\\/]* | ?:[\\/]* ) # Absolute path.
929 ac_srcdir=$srcdir$ac_dir_suffix;
930 ac_top_srcdir=$srcdir ;;
932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
943 # Check for guested configure; otherwise get Cygnus style configure.
944 if test -f $ac_srcdir/configure.gnu; then
946 $SHELL $ac_srcdir/configure.gnu --help=recursive
947 elif test -f $ac_srcdir/configure; then
949 $SHELL $ac_srcdir/configure --help=recursive
950 elif test -f $ac_srcdir/configure.ac ||
951 test -f $ac_srcdir/configure.in; then
955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.57. Invocation command line was
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_must_keep_next=false
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066 -* ) ac_must_keep_next=true ;;
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1095 # The following way of writing the cache mishandles newlines in values,
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1118 for ac_var in $ac_subst_vars
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1125 if test -n "$ac_subst_files"; then
1132 for ac_var in $ac_subst_files
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -s confdefs.h; then
1147 sed "/^$/d" confdefs.h | sort
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1154 rm -f core core.* *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 # Predefined preprocessor variables.
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1230 # Check that the precious variables saved in the cache have kept the same
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1307 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1308 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1309 if test "${enable_maintainer_mode+set}" = set; then
1310 enableval="$enable_maintainer_mode"
1311 USE_MAINTAINER_MODE=$enableval
1313 USE_MAINTAINER_MODE=no
1315 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1316 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1319 if test $USE_MAINTAINER_MODE = yes; then
1320 MAINTAINER_MODE_TRUE=
1321 MAINTAINER_MODE_FALSE='#'
1323 MAINTAINER_MODE_TRUE='#'
1324 MAINTAINER_MODE_FALSE=
1327 MAINT=$MAINTAINER_MODE_TRUE
1330 am__api_version="1.7"
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333 if test -f $ac_dir/install-sh; then
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh; then
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool; then
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Find a good install program. We prefer a C program (faster),
1357 # so one script is as good as another. But avoid the broken or
1358 # incompatible versions:
1359 # SysV /etc/install, /usr/sbin/install
1360 # SunOS /usr/etc/install
1361 # IRIX /sbin/install
1363 # AmigaOS /C/install, which installs bootblocks on floppy discs
1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1367 # ./install, which can be erroneously created by make from ./install.sh.
1368 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1369 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1370 if test -z "$INSTALL"; then
1371 if test "${ac_cv_path_install+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378 test -z "$as_dir" && as_dir=.
1379 # Account for people who put trailing slashes in PATH elements.
1381 ./ | .// | /cC/* | \
1382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1385 # OSF1 and SCO ODT 3.0 have their own names for install.
1386 # Don't use installbsd from OSF since it installs stuff as root
1388 for ac_prog in ginstall scoinst install; do
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1391 if test $ac_prog = install &&
1392 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1393 # AIX install. It has an incompatible calling convention.
1395 elif test $ac_prog = install &&
1396 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1397 # program-specific install script used by HP pwplus--don't use.
1400 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1412 if test "${ac_cv_path_install+set}" = set; then
1413 INSTALL=$ac_cv_path_install
1415 # As a last resort, use the slow shell script. We don't cache a
1416 # path for INSTALL within a source directory, because that will
1417 # break other packages using the cache if that directory is
1418 # removed, or if the path is relative.
1419 INSTALL=$ac_install_sh
1422 echo "$as_me:$LINENO: result: $INSTALL" >&5
1423 echo "${ECHO_T}$INSTALL" >&6
1425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1426 # It thinks the first close brace ends the variable substitution.
1427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1433 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1434 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1437 echo timestamp > conftest.file
1438 # Do `set' in a subshell so we don't clobber the current shell's
1439 # arguments. Must try -L first in case configure is actually a
1440 # symlink; some systems play weird games with the mod time of symlinks
1441 # (eg FreeBSD returns the mod time of the symlink's containing
1444 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1445 if test "$*" = "X"; then
1447 set X `ls -t $srcdir/configure conftest.file`
1450 if test "$*" != "X $srcdir/configure conftest.file" \
1451 && test "$*" != "X conftest.file $srcdir/configure"; then
1453 # If neither matched, then we have a broken ls. This can happen
1454 # if, for instance, CONFIG_SHELL is bash and it inherits a
1455 # broken ls alias from the environment. This has actually
1456 # happened. Such a system could not be considered "sane".
1457 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1458 alias in your environment" >&5
1459 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1460 alias in your environment" >&2;}
1461 { (exit 1); exit 1; }; }
1464 test "$2" = conftest.file
1470 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1471 Check your system clock" >&5
1472 echo "$as_me: error: newly created file is older than distributed files!
1473 Check your system clock" >&2;}
1474 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: yes" >&5
1477 echo "${ECHO_T}yes" >&6
1478 test "$program_prefix" != NONE &&
1479 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1480 # Use a double $ so make ignores it.
1481 test "$program_suffix" != NONE &&
1482 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1483 # Double any \ or $. echo might interpret backslashes.
1484 # By default was `s,x,x', remove it if useless.
1485 cat <<\_ACEOF >conftest.sed
1486 s/[\\$]/&&/g;s/;s,x,x,$//
1488 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1492 # expand $ac_aux_dir to an absolute path
1493 am_aux_dir=`cd $ac_aux_dir && pwd`
1495 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1496 # Use eval to expand $SHELL
1497 if eval "$MISSING --run true"; then
1498 am_missing_run="$MISSING --run "
1501 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1502 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1505 for ac_prog in gawk mawk nawk awk
1507 # Extract the first word of "$ac_prog", so it can be a program name with args.
1508 set dummy $ac_prog; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_AWK+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 if test -n "$AWK"; then
1515 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_AWK="$ac_prog"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 if test -n "$AWK"; then
1535 echo "$as_me:$LINENO: result: $AWK" >&5
1536 echo "${ECHO_T}$AWK" >&6
1538 echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1542 test -n "$AWK" && break
1545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1547 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 cat >conftest.make <<\_ACEOF
1553 @echo 'ac_maketemp="$(MAKE)"'
1555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1557 if test -n "$ac_maketemp"; then
1558 eval ac_cv_prog_make_${ac_make}_set=yes
1560 eval ac_cv_prog_make_${ac_make}_set=no
1564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1565 echo "$as_me:$LINENO: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 SET_MAKE="MAKE=${MAKE-make}"
1574 rm -rf .tst 2>/dev/null
1575 mkdir .tst 2>/dev/null
1576 if test -d .tst; then
1581 rmdir .tst 2>/dev/null
1583 # test to see if srcdir already configured
1584 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1585 test -f $srcdir/config.status; then
1586 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1587 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1588 { (exit 1); exit 1; }; }
1591 # test whether we have cygpath
1592 if test -z "$CYGPATH_W"; then
1593 if (cygpath --version) >/dev/null 2>/dev/null; then
1594 CYGPATH_W='cygpath -w'
1601 # Define the identity of the package.
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE "$PACKAGE"
1611 cat >>confdefs.h <<_ACEOF
1612 #define VERSION "$VERSION"
1615 # Some tools Automake needs.
1617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1632 AMTAR=${AMTAR-"${am_missing_run}tar"}
1634 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1636 # Installed binaries are usually stripped using `strip' when the user
1637 # run `make install-strip'. However `strip' might not be the right
1638 # tool to use in cross-compilation environments, therefore Automake
1639 # will honor the `STRIP' environment variable to overrule this program.
1640 if test "$cross_compiling" != no; then
1641 if test -n "$ac_tool_prefix"; then
1642 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1643 set dummy ${ac_tool_prefix}strip; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_STRIP+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$STRIP"; then
1650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 STRIP=$ac_cv_prog_STRIP
1669 if test -n "$STRIP"; then
1670 echo "$as_me:$LINENO: result: $STRIP" >&5
1671 echo "${ECHO_T}$STRIP" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1678 if test -z "$ac_cv_prog_STRIP"; then
1680 # Extract the first word of "strip", so it can be a program name with args.
1681 set dummy strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$ac_ct_STRIP"; then
1688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_ac_ct_STRIP="strip"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1708 if test -n "$ac_ct_STRIP"; then
1709 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1710 echo "${ECHO_T}$ac_ct_STRIP" >&6
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1718 STRIP="$ac_cv_prog_STRIP"
1722 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1724 # We need awk for the "check" target. The system "awk" is bad on
1729 ac_config_headers="$ac_config_headers config.h"
1732 for ac_prog in gawk mawk nawk awk
1734 # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_AWK+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 if test -n "$AWK"; then
1742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_AWK="$ac_prog"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 if test -n "$AWK"; then
1762 echo "$as_me:$LINENO: result: $AWK" >&5
1763 echo "${ECHO_T}$AWK" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1769 test -n "$AWK" && break
1772 # Find a good install program. We prefer a C program (faster),
1773 # so one script is as good as another. But avoid the broken or
1774 # incompatible versions:
1775 # SysV /etc/install, /usr/sbin/install
1776 # SunOS /usr/etc/install
1777 # IRIX /sbin/install
1779 # AmigaOS /C/install, which installs bootblocks on floppy discs
1780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1783 # ./install, which can be erroneously created by make from ./install.sh.
1784 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1785 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1786 if test -z "$INSTALL"; then
1787 if test "${ac_cv_path_install+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 test -z "$as_dir" && as_dir=.
1795 # Account for people who put trailing slashes in PATH elements.
1797 ./ | .// | /cC/* | \
1798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1801 # OSF1 and SCO ODT 3.0 have their own names for install.
1802 # Don't use installbsd from OSF since it installs stuff as root
1804 for ac_prog in ginstall scoinst install; do
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1807 if test $ac_prog = install &&
1808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1809 # AIX install. It has an incompatible calling convention.
1811 elif test $ac_prog = install &&
1812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813 # program-specific install script used by HP pwplus--don't use.
1816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1828 if test "${ac_cv_path_install+set}" = set; then
1829 INSTALL=$ac_cv_path_install
1831 # As a last resort, use the slow shell script. We don't cache a
1832 # path for INSTALL within a source directory, because that will
1833 # break other packages using the cache if that directory is
1834 # removed, or if the path is relative.
1835 INSTALL=$ac_install_sh
1838 echo "$as_me:$LINENO: result: $INSTALL" >&5
1839 echo "${ECHO_T}$INSTALL" >&6
1841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1842 # It thinks the first close brace ends the variable substitution.
1843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 cat >conftest.make <<\_ACEOF
1857 @echo 'ac_maketemp="$(MAKE)"'
1859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1861 if test -n "$ac_maketemp"; then
1862 eval ac_cv_prog_make_${ac_make}_set=yes
1864 eval ac_cv_prog_make_${ac_make}_set=no
1868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875 SET_MAKE="MAKE=${MAKE-make}"
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_RANLIB+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$RANLIB"; then
1887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 RANLIB=$ac_cv_prog_RANLIB
1906 if test -n "$RANLIB"; then
1907 echo "$as_me:$LINENO: result: $RANLIB" >&5
1908 echo "${ECHO_T}$RANLIB" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1915 if test -z "$ac_cv_prog_RANLIB"; then
1916 ac_ct_RANLIB=$RANLIB
1917 # Extract the first word of "ranlib", so it can be a program name with args.
1918 set dummy ranlib; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 if test -n "$ac_ct_RANLIB"; then
1925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_ac_ct_RANLIB="ranlib"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1945 if test -n "$ac_ct_RANLIB"; then
1946 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1947 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 RANLIB=$ac_ct_RANLIB
1955 RANLIB="$ac_cv_prog_RANLIB"
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2001 if test -z "$ac_cv_prog_CC"; then
2003 # Extract the first word of "gcc", so it can be a program name with args.
2004 set dummy gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_ac_ct_CC="gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2043 if test -z "$CC"; then
2044 if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2046 set dummy ${ac_tool_prefix}cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC="${ac_tool_prefix}cc"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2081 if test -z "$ac_cv_prog_CC"; then
2083 # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 if test -n "$ac_ct_CC"; then
2091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_ac_ct_CC="cc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2124 if test -z "$CC"; then
2125 # Extract the first word of "cc", so it can be a program name with args.
2126 set dummy cc; ac_word=$2
2127 echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2144 ac_prog_rejected=yes
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 if test $ac_prog_rejected = yes; then
2155 # We found a bogon in the path, so make sure we never use it.
2156 set dummy $ac_cv_prog_CC
2158 if test $# != 0; then
2159 # We chose a different compiler from the bogus one.
2160 # However, it has the same basename, so the bogon will be chosen
2161 # first if we set CC to just the basename; use the full file name.
2163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2169 if test -n "$CC"; then
2170 echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2173 echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2178 if test -z "$CC"; then
2179 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 if test -n "$CC"; then
2210 echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2213 echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2217 test -n "$CC" && break
2220 if test -z "$CC"; then
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_ac_ct_CC="$ac_prog"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2255 echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2259 test -n "$ac_ct_CC" && break
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO:" \
2276 "checking for C compiler version" >&5
2277 ac_compiler=`set X $ac_compile; echo $2`
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2279 (eval $ac_compiler --version </dev/null >&5) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2284 (eval $ac_compiler -v </dev/null >&5) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2289 (eval $ac_compiler -V </dev/null >&5) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2315 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2316 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319 (eval $ac_link_default) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # Find the output, starting from the most likely. This scheme is
2324 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2327 # Be careful to initialize this variable, since it used to be cached.
2328 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2330 # b.out is created by i960 compilers.
2331 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2333 test -f "$ac_file" || continue
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2338 # This is the source file.
2341 # We found the default executable, but exeext='' is most
2345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346 # FIXME: I believe we export ac_cv_exeext for Libtool,
2347 # but it would be cool to find out if it's true. Does anybody
2348 # maintain Libtool? --akim.
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&2;}
2363 { (exit 77); exit 77; }; }
2366 ac_exeext=$ac_cv_exeext
2367 echo "$as_me:$LINENO: result: $ac_file" >&5
2368 echo "${ECHO_T}$ac_file" >&6
2370 # Check the compiler produces executables we can run. If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375 # If not cross compiling, check that we can run a simple program.
2376 if test "$cross_compiling" != yes; then
2377 if { ac_try='./$ac_file'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 if test "$cross_compiling" = maybe; then
2388 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot run C compiled programs.
2392 If you meant to cross compile, use \`--host'.
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2398 echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2401 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402 ac_clean_files=$ac_clean_files_save
2403 # Check the compiler produces executables we can run. If not, either
2404 # the compiler is broken, or we cross compile.
2405 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408 echo "${ECHO_T}$cross_compiling" >&6
2410 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413 (eval $ac_link) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; then
2417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2419 # work properly (i.e., refer to `conftest.exe'), while it won't with
2421 for ac_file in conftest.exe conftest conftest.*; do
2422 test -f "$ac_file" || continue
2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435 See \`config.log' for more details." >&2;}
2436 { (exit 1); exit 1; }; }
2439 rm -f conftest$ac_cv_exeext
2440 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441 echo "${ECHO_T}$ac_cv_exeext" >&6
2443 rm -f conftest.$ac_ext
2444 EXEEXT=$ac_cv_exeext
2446 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448 if test "${ac_cv_objext+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2467 rm -f conftest.o conftest.obj
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; then
2473 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2540 rm -f conftest.$ac_objext conftest.$ac_ext
2541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2544 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2545 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2546 GCC=`test $ac_compiler_gnu = yes && echo yes`
2547 ac_test_CFLAGS=${CFLAGS+set}
2548 ac_save_CFLAGS=$CFLAGS
2550 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595 CFLAGS=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597 if test "$GCC" = yes; then
2603 if test "$GCC" = yes; then
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 ac_cv_prog_cc_stdc=no
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2625 #include <sys/types.h>
2626 #include <sys/stat.h>
2627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2628 struct buf { int x; };
2629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2630 static char *e (p, i)
2636 static char *f (char * (*g) (char **, int), char **p, ...)
2641 s = g (p, va_arg (v,int));
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2659 # Don't try gcc -ansi; that turns off useful extensions and
2660 # breaks some systems' header files.
2661 # AIX -qlanglvl=ansi
2662 # Ultrix and OSF/1 -std1
2663 # HP-UX 10.20 and later -Ae
2664 # HP-UX older versions -Aa -D_HPUX_SOURCE
2665 # SVR4 -Xc -D__EXTENSIONS__
2666 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2668 CC="$ac_save_CC $ac_arg"
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cc_stdc=$ac_arg
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.$ac_objext
2690 rm -f conftest.$ac_ext conftest.$ac_objext
2695 case "x$ac_cv_prog_cc_stdc" in
2697 echo "$as_me:$LINENO: result: none needed" >&5
2698 echo "${ECHO_T}none needed" >&6 ;;
2700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2702 CC="$CC $ac_cv_prog_cc_stdc" ;;
2705 # Some people use a C++ compiler to compile C. Since we use `exit',
2706 # in C++ we need to declare it. In case someone uses the same compiler
2707 # for both compiling C and C++ we need to have the C++ compiler decide
2708 # the declaration of exit, since it's the most demanding environment.
2709 cat >conftest.$ac_ext <<_ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 for ac_declaration in \
2728 '#include <stdlib.h>' \
2729 'extern "C" void std::exit (int) throw (); using std::exit;' \
2730 'extern "C" void std::exit (int); using std::exit;' \
2731 'extern "C" void exit (int) throw ();' \
2732 'extern "C" void exit (int);' \
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #line $LINENO "configure"
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f conftest.$ac_objext conftest.$ac_ext
2772 cat >conftest.$ac_ext <<_ACEOF
2773 #line $LINENO "configure"
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2806 rm -f conftest.$ac_objext conftest.$ac_ext
2809 if test -n "$ac_declaration"; then
2810 echo '#ifdef __cplusplus' >>confdefs.h
2811 echo $ac_declaration >>confdefs.h
2812 echo '#endif' >>confdefs.h
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2820 rm -f conftest.$ac_objext conftest.$ac_ext
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 DEPDIR="${am__leading_dot}deps"
2828 ac_config_commands="$ac_config_commands depfiles"
2831 am_make=${MAKE-make}
2832 cat > confinc << 'END'
2837 # If we don't find an include directive, just comment out the code.
2838 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2839 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2843 # First try GNU make style include.
2844 echo "include confinc" > confmf
2845 # We grep out `Entering directory' and `Leaving directory'
2846 # messages which can occur if `w' ends up in MAKEFLAGS.
2847 # In particular we don't look at `^make:' because GNU make might
2848 # be invoked under some other name (usually "gmake"), in which
2849 # case it prints its new name instead of `make'.
2850 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2855 # Now try BSD make style include.
2856 if test "$am__include" = "#"; then
2857 echo '.include "confinc"' > confmf
2858 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2859 am__include=.include
2866 echo "$as_me:$LINENO: result: $_am_result" >&5
2867 echo "${ECHO_T}$_am_result" >&6
2868 rm -f confinc confmf
2870 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2871 if test "${enable_dependency_tracking+set}" = set; then
2872 enableval="$enable_dependency_tracking"
2875 if test "x$enable_dependency_tracking" != xno; then
2876 am_depcomp="$ac_aux_dir/depcomp"
2881 if test "x$enable_dependency_tracking" != xno; then
2892 depcc="$CC" am_compiler_list=
2894 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2895 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2896 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2900 # We make a subdir and do the tests there. Otherwise we can end up
2901 # making bogus files that we don't know about and never remove. For
2902 # instance it was reported that on HP-UX the gcc test will end up
2903 # making a dummy file named `D' -- because `-MD' means `put the output
2906 # Copy depcomp to subdir because otherwise we won't find it if we're
2907 # using a relative directory.
2908 cp "$am_depcomp" conftest.dir
2910 # We will build objects and dependencies in a subdirectory because
2911 # it helps to detect inapplicable dependency modes. For instance
2912 # both Tru64's cc and ICC support -MD to output dependencies as a
2913 # side effect of compilation, but ICC will put the dependencies in
2914 # the current directory while Tru64 will put them in the object
2918 am_cv_CC_dependencies_compiler_type=none
2919 if test "$am_compiler_list" = ""; then
2920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2922 for depmode in $am_compiler_list; do
2923 # Setup a source with many dependencies, because some compilers
2924 # like to wrap large dependency lists on column 80 (with \), and
2925 # we should not choose a depcomp mode which is confused by this.
2927 # We need to recreate these files for each test, as the compiler may
2928 # overwrite some of them when testing with obscure command lines.
2929 # This happens at least with the AIX C compiler.
2931 for i in 1 2 3 4 5 6; do
2932 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2939 # after this tag, mechanisms are not by side-effect, so they'll
2940 # only be used when explicitly requested
2941 if test "x$enable_dependency_tracking" = xyes; then
2949 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2950 # mode. It turns out that the SunPro C++ compiler does not properly
2951 # handle `-M -o', and we need to detect this.
2952 if depmode=$depmode \
2953 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2955 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2956 >/dev/null 2>conftest.err &&
2957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2958 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2960 # icc doesn't choke on unknown options, it will just issue warnings
2961 # (even with -Werror). So we grep stderr for any message
2962 # that says an option was ignored.
2963 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2964 am_cv_CC_dependencies_compiler_type=$depmode
2973 am_cv_CC_dependencies_compiler_type=none
2977 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2978 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2979 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2984 test "x$enable_dependency_tracking" != xno \
2985 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2987 am__fastdepCC_FALSE='#'
2989 am__fastdepCC_TRUE='#'
2990 am__fastdepCC_FALSE=
2995 ac_cpp='$CXXCPP $CPPFLAGS'
2996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2999 if test -n "$ac_tool_prefix"; then
3000 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004 echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006 if test "${ac_cv_prog_CXX+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 if test -n "$CXX"; then
3010 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 if test -n "$CXX"; then
3030 echo "$as_me:$LINENO: result: $CXX" >&5
3031 echo "${ECHO_T}$CXX" >&6
3033 echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6
3037 test -n "$CXX" && break
3040 if test -z "$CXX"; then
3042 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3048 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 if test -n "$ac_ct_CXX"; then
3052 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_ac_ct_CXX="$ac_prog"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3071 if test -n "$ac_ct_CXX"; then
3072 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3073 echo "${ECHO_T}$ac_ct_CXX" >&6
3075 echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6
3079 test -n "$ac_ct_CXX" && break
3081 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3087 # Provide some information about the compiler.
3088 echo "$as_me:$LINENO:" \
3089 "checking for C++ compiler version" >&5
3090 ac_compiler=`set X $ac_compile; echo $2`
3091 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3092 (eval $ac_compiler --version </dev/null >&5) 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }
3096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3097 (eval $ac_compiler -v </dev/null >&5) 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }
3101 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3102 (eval $ac_compiler -V </dev/null >&5) 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }
3107 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3108 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3109 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 cat >conftest.$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3150 rm -f conftest.$ac_objext conftest.$ac_ext
3151 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3154 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3155 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3156 GXX=`test $ac_compiler_gnu = yes && echo yes`
3157 ac_test_CXXFLAGS=${CXXFLAGS+set}
3158 ac_save_CXXFLAGS=$CXXFLAGS
3160 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3161 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3162 if test "${ac_cv_prog_cxx_g+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183 (eval $ac_compile) 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_prog_cxx_g=yes
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3200 rm -f conftest.$ac_objext conftest.$ac_ext
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3203 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3204 if test "$ac_test_CXXFLAGS" = set; then
3205 CXXFLAGS=$ac_save_CXXFLAGS
3206 elif test $ac_cv_prog_cxx_g = yes; then
3207 if test "$GXX" = yes; then
3213 if test "$GXX" = yes; then
3219 for ac_declaration in \
3221 '#include <stdlib.h>' \
3222 'extern "C" void std::exit (int) throw (); using std::exit;' \
3223 'extern "C" void std::exit (int); using std::exit;' \
3224 'extern "C" void exit (int) throw ();' \
3225 'extern "C" void exit (int);' \
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247 (eval $ac_compile) 2>&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3264 rm -f conftest.$ac_objext conftest.$ac_ext
3265 cat >conftest.$ac_ext <<_ACEOF
3266 #line $LINENO "configure"
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3302 if test -n "$ac_declaration"; then
3303 echo '#ifdef __cplusplus' >>confdefs.h
3304 echo $ac_declaration >>confdefs.h
3305 echo '#endif' >>confdefs.h
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 depcc="$CXX" am_compiler_list=
3316 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3317 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3318 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3322 # We make a subdir and do the tests there. Otherwise we can end up
3323 # making bogus files that we don't know about and never remove. For
3324 # instance it was reported that on HP-UX the gcc test will end up
3325 # making a dummy file named `D' -- because `-MD' means `put the output
3328 # Copy depcomp to subdir because otherwise we won't find it if we're
3329 # using a relative directory.
3330 cp "$am_depcomp" conftest.dir
3332 # We will build objects and dependencies in a subdirectory because
3333 # it helps to detect inapplicable dependency modes. For instance
3334 # both Tru64's cc and ICC support -MD to output dependencies as a
3335 # side effect of compilation, but ICC will put the dependencies in
3336 # the current directory while Tru64 will put them in the object
3340 am_cv_CXX_dependencies_compiler_type=none
3341 if test "$am_compiler_list" = ""; then
3342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3344 for depmode in $am_compiler_list; do
3345 # Setup a source with many dependencies, because some compilers
3346 # like to wrap large dependency lists on column 80 (with \), and
3347 # we should not choose a depcomp mode which is confused by this.
3349 # We need to recreate these files for each test, as the compiler may
3350 # overwrite some of them when testing with obscure command lines.
3351 # This happens at least with the AIX C compiler.
3353 for i in 1 2 3 4 5 6; do
3354 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3357 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3361 # after this tag, mechanisms are not by side-effect, so they'll
3362 # only be used when explicitly requested
3363 if test "x$enable_dependency_tracking" = xyes; then
3371 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3372 # mode. It turns out that the SunPro C++ compiler does not properly
3373 # handle `-M -o', and we need to detect this.
3374 if depmode=$depmode \
3375 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3376 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3377 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3378 >/dev/null 2>conftest.err &&
3379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3380 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3382 # icc doesn't choke on unknown options, it will just issue warnings
3383 # (even with -Werror). So we grep stderr for any message
3384 # that says an option was ignored.
3385 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3386 am_cv_CXX_dependencies_compiler_type=$depmode
3395 am_cv_CXX_dependencies_compiler_type=none
3399 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3400 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3401 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3406 test "x$enable_dependency_tracking" != xno \
3407 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3408 am__fastdepCXX_TRUE=
3409 am__fastdepCXX_FALSE='#'
3411 am__fastdepCXX_TRUE='#'
3412 am__fastdepCXX_FALSE=
3417 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3418 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3419 if test "${ac_cv_c_bigendian+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 # See if sys/param.h defines the BYTE_ORDER macro.
3423 cat >conftest.$ac_ext <<_ACEOF
3424 #line $LINENO "configure"
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <sys/types.h>
3431 #include <sys/param.h>
3436 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3444 rm -f conftest.$ac_objext
3445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446 (eval $ac_compile) 2>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 # It does; now see whether it defined to BIG_ENDIAN or not.
3457 cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #include <sys/types.h>
3465 #include <sys/param.h>
3470 #if BYTE_ORDER != BIG_ENDIAN
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -s conftest.$ac_objext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 ac_cv_c_bigendian=yes
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3495 ac_cv_c_bigendian=no
3497 rm -f conftest.$ac_objext conftest.$ac_ext
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502 # It does not; compile a test program.
3503 if test "$cross_compiling" = yes; then
3504 # try to guess the endianness by grepping values into an object file
3505 ac_cv_c_bigendian=unknown
3506 cat >conftest.$ac_ext <<_ACEOF
3507 #line $LINENO "configure"
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3514 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3515 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3516 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3517 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3518 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3522 _ascii (); _ebcdic ();
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529 (eval $ac_compile) 2>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try='test -s conftest.$ac_objext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3540 ac_cv_c_bigendian=yes
3542 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3543 if test "$ac_cv_c_bigendian" = unknown; then
3544 ac_cv_c_bigendian=no
3546 # finding both strings is unlikely to happen, but who knows?
3547 ac_cv_c_bigendian=unknown
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3555 rm -f conftest.$ac_objext conftest.$ac_ext
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #line $LINENO "configure"
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3567 /* Are we little or big endian? From Harbison&Steele. */
3571 char c[sizeof (long)];
3574 exit (u.c[sizeof (long) - 1] == 1);
3577 rm -f conftest$ac_exeext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3579 (eval $ac_link) 2>&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_c_bigendian=no
3590 echo "$as_me: program exited with status $ac_status" >&5
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3595 ac_cv_c_bigendian=yes
3597 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3600 rm -f conftest.$ac_objext conftest.$ac_ext
3602 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3603 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3604 case $ac_cv_c_bigendian in
3607 cat >>confdefs.h <<\_ACEOF
3608 #define WORDS_BIGENDIAN 1
3614 { { echo "$as_me:$LINENO: error: unknown endianness
3615 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3616 echo "$as_me: error: unknown endianness
3617 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3618 { (exit 1); exit 1; }; } ;;
3622 # Extract the first word of "wx-config", so it can be a program name with args.
3623 set dummy wx-config; ac_word=$2
3624 echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626 if test "${ac_cv_path_wxconfig+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 wxconfig=$ac_cv_path_wxconfig
3653 if test -n "$wxconfig"; then
3654 echo "$as_me:$LINENO: result: $wxconfig" >&5
3655 echo "${ECHO_T}$wxconfig" >&6
3657 echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6
3662 # Make sure we can run config.sub.
3663 $ac_config_sub sun4 >/dev/null 2>&1 ||
3664 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3665 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3666 { (exit 1); exit 1; }; }
3668 echo "$as_me:$LINENO: checking build system type" >&5
3669 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3670 if test "${ac_cv_build+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 ac_cv_build_alias=$build_alias
3674 test -z "$ac_cv_build_alias" &&
3675 ac_cv_build_alias=`$ac_config_guess`
3676 test -z "$ac_cv_build_alias" &&
3677 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3678 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3679 { (exit 1); exit 1; }; }
3680 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3681 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3682 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3683 { (exit 1); exit 1; }; }
3686 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3687 echo "${ECHO_T}$ac_cv_build" >&6
3689 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3690 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3691 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3694 echo "$as_me:$LINENO: checking host system type" >&5
3695 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3696 if test "${ac_cv_host+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 ac_cv_host_alias=$host_alias
3700 test -z "$ac_cv_host_alias" &&
3701 ac_cv_host_alias=$ac_cv_build_alias
3702 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3703 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3704 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3705 { (exit 1); exit 1; }; }
3708 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3709 echo "${ECHO_T}$ac_cv_host" >&6
3711 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3712 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3713 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3716 echo "$as_me:$LINENO: checking for inline" >&5
3717 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3718 if test "${ac_cv_c_inline+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 for ac_kw in inline __inline__ __inline; do
3723 cat >conftest.$ac_ext <<_ACEOF
3724 #line $LINENO "configure"
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3732 static $ac_kw foo_t static_foo () {return 0; }
3733 $ac_kw foo_t foo () {return 0; }
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_cv_c_inline=$ac_kw; break
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3755 rm -f conftest.$ac_objext conftest.$ac_ext
3759 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3760 echo "${ECHO_T}$ac_cv_c_inline" >&6
3761 case $ac_cv_c_inline in
3764 cat >>confdefs.h <<\_ACEOF
3768 *) cat >>confdefs.h <<_ACEOF
3769 #define inline $ac_cv_c_inline
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3780 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3785 if test -z "$CPP"; then
3786 if test "${ac_cv_prog_CPP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 # Double quotes because CPP needs to be expanded
3790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3793 for ac_c_preproc_warn_flag in '' yes
3795 # Use a header file that comes with gcc, so configuring glibc
3796 # with a fresh cross-compiler works.
3797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 # <limits.h> exists even on freestanding compilers.
3799 # On the NeXT, cc -E runs the code through the compiler's parser,
3800 # not just through cpp. "Syntax error" is here to catch this case.
3801 cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3809 # include <limits.h>
3811 # include <assert.h>
3815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } >/dev/null; then
3823 if test -s conftest.err; then
3824 ac_cpp_err=$ac_c_preproc_warn_flag
3831 if test -z "$ac_cpp_err"; then
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 # Broken: fails on valid input.
3840 rm -f conftest.err conftest.$ac_ext
3842 # OK, works on sane cases. Now check whether non-existent headers
3843 # can be detected and how.
3844 cat >conftest.$ac_ext <<_ACEOF
3845 #line $LINENO "configure"
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 #include <ac_nonexistent.h>
3853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3856 grep -v '^ *+' conftest.er1 >conftest.err
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } >/dev/null; then
3861 if test -s conftest.err; then
3862 ac_cpp_err=$ac_c_preproc_warn_flag
3869 if test -z "$ac_cpp_err"; then
3870 # Broken: success on invalid input.
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 # Passes both tests.
3880 rm -f conftest.err conftest.$ac_ext
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.err conftest.$ac_ext
3885 if $ac_preproc_ok; then
3897 echo "$as_me:$LINENO: result: $CPP" >&5
3898 echo "${ECHO_T}$CPP" >&6
3900 for ac_c_preproc_warn_flag in '' yes
3902 # Use a header file that comes with gcc, so configuring glibc
3903 # with a fresh cross-compiler works.
3904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3905 # <limits.h> exists even on freestanding compilers.
3906 # On the NeXT, cc -E runs the code through the compiler's parser,
3907 # not just through cpp. "Syntax error" is here to catch this case.
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line $LINENO "configure"
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3916 # include <limits.h>
3918 # include <assert.h>
3922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3925 grep -v '^ *+' conftest.er1 >conftest.err
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } >/dev/null; then
3930 if test -s conftest.err; then
3931 ac_cpp_err=$ac_c_preproc_warn_flag
3938 if test -z "$ac_cpp_err"; then
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 # Broken: fails on valid input.
3947 rm -f conftest.err conftest.$ac_ext
3949 # OK, works on sane cases. Now check whether non-existent headers
3950 # can be detected and how.
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <ac_nonexistent.h>
3960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963 grep -v '^ *+' conftest.er1 >conftest.err
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } >/dev/null; then
3968 if test -s conftest.err; then
3969 ac_cpp_err=$ac_c_preproc_warn_flag
3976 if test -z "$ac_cpp_err"; then
3977 # Broken: success on invalid input.
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 # Passes both tests.
3987 rm -f conftest.err conftest.$ac_ext
3990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3991 rm -f conftest.err conftest.$ac_ext
3992 if $ac_preproc_ok; then
3995 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&5
3997 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3998 See \`config.log' for more details." >&2;}
3999 { (exit 1); exit 1; }; }
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 echo "$as_me:$LINENO: checking for egrep" >&5
4010 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4011 if test "${ac_cv_prog_egrep+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4015 then ac_cv_prog_egrep='grep -E'
4016 else ac_cv_prog_egrep='egrep'
4019 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4020 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4021 EGREP=$ac_cv_prog_egrep
4024 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4025 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4026 if test "${ac_cv_header_stdc+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4049 rm -f conftest.$ac_objext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 ac_cv_header_stdc=yes
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 ac_cv_header_stdc=no
4068 rm -f conftest.$ac_objext conftest.$ac_ext
4070 if test $ac_cv_header_stdc = yes; then
4071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4072 cat >conftest.$ac_ext <<_ACEOF
4073 #line $LINENO "configure"
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4083 $EGREP "memchr" >/dev/null 2>&1; then
4086 ac_cv_header_stdc=no
4092 if test $ac_cv_header_stdc = yes; then
4093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 #line $LINENO "configure"
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 $EGREP "free" >/dev/null 2>&1; then
4108 ac_cv_header_stdc=no
4114 if test $ac_cv_header_stdc = yes; then
4115 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4116 if test "$cross_compiling" = yes; then
4119 cat >conftest.$ac_ext <<_ACEOF
4120 #line $LINENO "configure"
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4127 #if ((' ' & 0x0FF) == 0x020)
4128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 # define ISLOWER(c) \
4132 (('a' <= (c) && (c) <= 'i') \
4133 || ('j' <= (c) && (c) <= 'r') \
4134 || ('s' <= (c) && (c) <= 'z'))
4135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4143 for (i = 0; i < 256; i++)
4144 if (XOR (islower (i), ISLOWER (i))
4145 || toupper (i) != TOUPPER (i))
4150 rm -f conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4163 echo "$as_me: program exited with status $ac_status" >&5
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4168 ac_cv_header_stdc=no
4170 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4175 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4176 if test $ac_cv_header_stdc = yes; then
4178 cat >>confdefs.h <<\_ACEOF
4179 #define STDC_HEADERS 1
4184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4195 inttypes.h stdint.h unistd.h
4197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 $ac_includes_default
4212 #include <$ac_header>
4214 rm -f conftest.$ac_objext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 eval "$as_ac_Header=yes"
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 eval "$as_ac_Header=no"
4233 rm -f conftest.$ac_objext conftest.$ac_ext
4235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4238 cat >>confdefs.h <<_ACEOF
4239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4247 echo "$as_me:$LINENO: checking for short" >&5
4248 echo $ECHO_N "checking for short... $ECHO_C" >&6
4249 if test "${ac_cv_type_short+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 cat >conftest.$ac_ext <<_ACEOF
4253 #line $LINENO "configure"
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 $ac_includes_default
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_type_short=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4292 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4293 echo "${ECHO_T}$ac_cv_type_short" >&6
4295 echo "$as_me:$LINENO: checking size of short" >&5
4296 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4297 if test "${ac_cv_sizeof_short+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test "$ac_cv_type_short" = yes; then
4301 # The cast to unsigned long works around a bug in the HP C Compiler
4302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4304 # This bug is HP SR number 8606223364.
4305 if test "$cross_compiling" = yes; then
4306 # Depending upon the size, compute the lo and hi bounds.
4307 cat >conftest.$ac_ext <<_ACEOF
4308 #line $LINENO "configure"
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4318 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4339 cat >conftest.$ac_ext <<_ACEOF
4340 #line $LINENO "configure"
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 $ac_includes_default
4350 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4357 rm -f conftest.$ac_objext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_hi=$ac_mid; break
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 ac_lo=`expr $ac_mid + 1`
4375 if test $ac_lo -le $ac_mid; then
4379 ac_mid=`expr 2 '*' $ac_mid + 1`
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 cat >conftest.$ac_ext <<_ACEOF
4388 #line $LINENO "configure"
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4398 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4405 rm -f conftest.$ac_objext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4419 cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 $ac_includes_default
4430 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -s conftest.$ac_objext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 ac_lo=$ac_mid; break
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 ac_hi=`expr '(' $ac_mid ')' - 1`
4455 if test $ac_mid -le $ac_hi; then
4459 ac_mid=`expr 2 '*' $ac_mid`
4461 rm -f conftest.$ac_objext conftest.$ac_ext
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4471 rm -f conftest.$ac_objext conftest.$ac_ext
4472 # Binary search between lo and hi bounds.
4473 while test "x$ac_lo" != "x$ac_hi"; do
4474 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4475 cat >conftest.$ac_ext <<_ACEOF
4476 #line $LINENO "configure"
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 $ac_includes_default
4486 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4493 rm -f conftest.$ac_objext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4510 ac_lo=`expr '(' $ac_mid ')' + 1`
4512 rm -f conftest.$ac_objext conftest.$ac_ext
4515 ?*) ac_cv_sizeof_short=$ac_lo;;
4516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4517 See \`config.log' for more details." >&5
4518 echo "$as_me: error: cannot compute sizeof (short), 77
4519 See \`config.log' for more details." >&2;}
4520 { (exit 1); exit 1; }; } ;;
4523 if test "$cross_compiling" = yes; then
4524 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4525 See \`config.log' for more details." >&5
4526 echo "$as_me: error: cannot run test program while cross compiling
4527 See \`config.log' for more details." >&2;}
4528 { (exit 1); exit 1; }; }
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4538 long longval () { return (long) (sizeof (short)); }
4539 unsigned long ulongval () { return (long) (sizeof (short)); }
4546 FILE *f = fopen ("conftest.val", "w");
4549 if (((long) (sizeof (short))) < 0)
4551 long i = longval ();
4552 if (i != ((long) (sizeof (short))))
4554 fprintf (f, "%ld\n", i);
4558 unsigned long i = ulongval ();
4559 if (i != ((long) (sizeof (short))))
4561 fprintf (f, "%lu\n", i);
4563 exit (ferror (f) || fclose (f) != 0);
4569 rm -f conftest$ac_exeext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571 (eval $ac_link) 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_cv_sizeof_short=`cat conftest.val`
4582 echo "$as_me: program exited with status $ac_status" >&5
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4588 See \`config.log' for more details." >&5
4589 echo "$as_me: error: cannot compute sizeof (short), 77
4590 See \`config.log' for more details." >&2;}
4591 { (exit 1); exit 1; }; }
4593 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4598 ac_cv_sizeof_short=0
4601 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4602 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4603 cat >>confdefs.h <<_ACEOF
4604 #define SIZEOF_SHORT $ac_cv_sizeof_short
4608 echo "$as_me:$LINENO: checking for int" >&5
4609 echo $ECHO_N "checking for int... $ECHO_C" >&6
4610 if test "${ac_cv_type_int+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 $ac_includes_default
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4651 rm -f conftest.$ac_objext conftest.$ac_ext
4653 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4654 echo "${ECHO_T}$ac_cv_type_int" >&6
4656 echo "$as_me:$LINENO: checking size of int" >&5
4657 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4658 if test "${ac_cv_sizeof_int+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test "$ac_cv_type_int" = yes; then
4662 # The cast to unsigned long works around a bug in the HP C Compiler
4663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4665 # This bug is HP SR number 8606223364.
4666 if test "$cross_compiling" = yes; then
4667 # Depending upon the size, compute the lo and hi bounds.
4668 cat >conftest.$ac_ext <<_ACEOF
4669 #line $LINENO "configure"
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 $ac_includes_default
4679 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4686 rm -f conftest.$ac_objext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4700 cat >conftest.$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 $ac_includes_default
4711 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720 (eval $ac_compile) 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_hi=$ac_mid; break
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 ac_lo=`expr $ac_mid + 1`
4736 if test $ac_lo -le $ac_mid; then
4740 ac_mid=`expr 2 '*' $ac_mid + 1`
4742 rm -f conftest.$ac_objext conftest.$ac_ext
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 cat >conftest.$ac_ext <<_ACEOF
4749 #line $LINENO "configure"
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 $ac_includes_default
4759 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4766 rm -f conftest.$ac_objext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4780 cat >conftest.$ac_ext <<_ACEOF
4781 #line $LINENO "configure"
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787 $ac_includes_default
4791 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_lo=$ac_mid; break
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 ac_hi=`expr '(' $ac_mid ')' - 1`
4816 if test $ac_mid -le $ac_hi; then
4820 ac_mid=`expr 2 '*' $ac_mid`
4822 rm -f conftest.$ac_objext conftest.$ac_ext
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4830 rm -f conftest.$ac_objext conftest.$ac_ext
4832 rm -f conftest.$ac_objext conftest.$ac_ext
4833 # Binary search between lo and hi bounds.
4834 while test "x$ac_lo" != "x$ac_hi"; do
4835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4836 cat >conftest.$ac_ext <<_ACEOF
4837 #line $LINENO "configure"
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4847 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 ac_lo=`expr '(' $ac_mid ')' + 1`
4873 rm -f conftest.$ac_objext conftest.$ac_ext
4876 ?*) ac_cv_sizeof_int=$ac_lo;;
4877 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4878 See \`config.log' for more details." >&5
4879 echo "$as_me: error: cannot compute sizeof (int), 77
4880 See \`config.log' for more details." >&2;}
4881 { (exit 1); exit 1; }; } ;;
4884 if test "$cross_compiling" = yes; then
4885 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4886 See \`config.log' for more details." >&5
4887 echo "$as_me: error: cannot run test program while cross compiling
4888 See \`config.log' for more details." >&2;}
4889 { (exit 1); exit 1; }; }
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4899 long longval () { return (long) (sizeof (int)); }
4900 unsigned long ulongval () { return (long) (sizeof (int)); }
4907 FILE *f = fopen ("conftest.val", "w");
4910 if (((long) (sizeof (int))) < 0)
4912 long i = longval ();
4913 if (i != ((long) (sizeof (int))))
4915 fprintf (f, "%ld\n", i);
4919 unsigned long i = ulongval ();
4920 if (i != ((long) (sizeof (int))))
4922 fprintf (f, "%lu\n", i);
4924 exit (ferror (f) || fclose (f) != 0);
4930 rm -f conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_sizeof_int=`cat conftest.val`
4943 echo "$as_me: program exited with status $ac_status" >&5
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4949 See \`config.log' for more details." >&5
4950 echo "$as_me: error: cannot compute sizeof (int), 77
4951 See \`config.log' for more details." >&2;}
4952 { (exit 1); exit 1; }; }
4954 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4963 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4964 cat >>confdefs.h <<_ACEOF
4965 #define SIZEOF_INT $ac_cv_sizeof_int
4969 echo "$as_me:$LINENO: checking for long" >&5
4970 echo $ECHO_N "checking for long... $ECHO_C" >&6
4971 if test "${ac_cv_type_long+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 cat >conftest.$ac_ext <<_ACEOF
4975 #line $LINENO "configure"
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 $ac_includes_default
4993 rm -f conftest.$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -s conftest.$ac_objext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5012 rm -f conftest.$ac_objext conftest.$ac_ext
5014 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5015 echo "${ECHO_T}$ac_cv_type_long" >&6
5017 echo "$as_me:$LINENO: checking size of long" >&5
5018 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5019 if test "${ac_cv_sizeof_long+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 if test "$ac_cv_type_long" = yes; then
5023 # The cast to unsigned long works around a bug in the HP C Compiler
5024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5026 # This bug is HP SR number 8606223364.
5027 if test "$cross_compiling" = yes; then
5028 # Depending upon the size, compute the lo and hi bounds.
5029 cat >conftest.$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5040 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5047 rm -f conftest.$ac_objext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } &&
5053 { ac_try='test -s conftest.$ac_objext'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5061 cat >conftest.$ac_ext <<_ACEOF
5062 #line $LINENO "configure"
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5068 $ac_includes_default
5072 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -s conftest.$ac_objext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_hi=$ac_mid; break
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 ac_lo=`expr $ac_mid + 1`
5097 if test $ac_lo -le $ac_mid; then
5101 ac_mid=`expr 2 '*' $ac_mid + 1`
5103 rm -f conftest.$ac_objext conftest.$ac_ext
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5120 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -s conftest.$ac_objext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5141 cat >conftest.$ac_ext <<_ACEOF
5142 #line $LINENO "configure"
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 $ac_includes_default
5152 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest.$ac_objext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_lo=$ac_mid; break
5173 echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5176 ac_hi=`expr '(' $ac_mid ')' - 1`
5177 if test $ac_mid -le $ac_hi; then
5181 ac_mid=`expr 2 '*' $ac_mid`
5183 rm -f conftest.$ac_objext conftest.$ac_ext
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5193 rm -f conftest.$ac_objext conftest.$ac_ext
5194 # Binary search between lo and hi bounds.
5195 while test "x$ac_lo" != "x$ac_hi"; do
5196 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5197 cat >conftest.$ac_ext <<_ACEOF
5198 #line $LINENO "configure"
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 $ac_includes_default
5208 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5215 rm -f conftest.$ac_objext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5217 (eval $ac_compile) 2>&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } &&
5221 { ac_try='test -s conftest.$ac_objext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 ac_lo=`expr '(' $ac_mid ')' + 1`
5234 rm -f conftest.$ac_objext conftest.$ac_ext
5237 ?*) ac_cv_sizeof_long=$ac_lo;;
5238 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5239 See \`config.log' for more details." >&5
5240 echo "$as_me: error: cannot compute sizeof (long), 77
5241 See \`config.log' for more details." >&2;}
5242 { (exit 1); exit 1; }; } ;;
5245 if test "$cross_compiling" = yes; then
5246 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5247 See \`config.log' for more details." >&5
5248 echo "$as_me: error: cannot run test program while cross compiling
5249 See \`config.log' for more details." >&2;}
5250 { (exit 1); exit 1; }; }
5252 cat >conftest.$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 $ac_includes_default
5260 long longval () { return (long) (sizeof (long)); }
5261 unsigned long ulongval () { return (long) (sizeof (long)); }
5268 FILE *f = fopen ("conftest.val", "w");
5271 if (((long) (sizeof (long))) < 0)
5273 long i = longval ();
5274 if (i != ((long) (sizeof (long))))
5276 fprintf (f, "%ld\n", i);
5280 unsigned long i = ulongval ();
5281 if (i != ((long) (sizeof (long))))
5283 fprintf (f, "%lu\n", i);
5285 exit (ferror (f) || fclose (f) != 0);
5291 rm -f conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 ac_cv_sizeof_long=`cat conftest.val`
5304 echo "$as_me: program exited with status $ac_status" >&5
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5310 See \`config.log' for more details." >&5
5311 echo "$as_me: error: cannot compute sizeof (long), 77
5312 See \`config.log' for more details." >&2;}
5313 { (exit 1); exit 1; }; }
5315 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5323 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5324 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5325 cat >>confdefs.h <<_ACEOF
5326 #define SIZEOF_LONG $ac_cv_sizeof_long
5330 echo "$as_me:$LINENO: checking for float" >&5
5331 echo $ECHO_N "checking for float... $ECHO_C" >&6
5332 if test "${ac_cv_type_float+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 cat >conftest.$ac_ext <<_ACEOF
5336 #line $LINENO "configure"
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 $ac_includes_default
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -s conftest.$ac_objext'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5366 ac_cv_type_float=yes
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5373 rm -f conftest.$ac_objext conftest.$ac_ext
5375 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5376 echo "${ECHO_T}$ac_cv_type_float" >&6
5378 echo "$as_me:$LINENO: checking size of float" >&5
5379 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5380 if test "${ac_cv_sizeof_float+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 if test "$ac_cv_type_float" = yes; then
5384 # The cast to unsigned long works around a bug in the HP C Compiler
5385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5387 # This bug is HP SR number 8606223364.
5388 if test "$cross_compiling" = yes; then
5389 # Depending upon the size, compute the lo and hi bounds.
5390 cat >conftest.$ac_ext <<_ACEOF
5391 #line $LINENO "configure"
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5401 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5408 rm -f conftest.$ac_objext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } &&
5414 { ac_try='test -s conftest.$ac_objext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5422 cat >conftest.$ac_ext <<_ACEOF
5423 #line $LINENO "configure"
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 $ac_includes_default
5433 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 ac_hi=$ac_mid; break
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_lo=`expr $ac_mid + 1`
5458 if test $ac_lo -le $ac_mid; then
5462 ac_mid=`expr 2 '*' $ac_mid + 1`
5464 rm -f conftest.$ac_objext conftest.$ac_ext
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477 $ac_includes_default
5481 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5488 rm -f conftest.$ac_objext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490 (eval $ac_compile) 2>&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try='test -s conftest.$ac_objext'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5502 cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 $ac_includes_default
5513 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5520 rm -f conftest.$ac_objext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522 (eval $ac_compile) 2>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } &&
5526 { ac_try='test -s conftest.$ac_objext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_lo=$ac_mid; break
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5537 ac_hi=`expr '(' $ac_mid ')' - 1`
5538 if test $ac_mid -le $ac_hi; then
5542 ac_mid=`expr 2 '*' $ac_mid`
5544 rm -f conftest.$ac_objext conftest.$ac_ext
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5554 rm -f conftest.$ac_objext conftest.$ac_ext
5555 # Binary search between lo and hi bounds.
5556 while test "x$ac_lo" != "x$ac_hi"; do
5557 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5558 cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 $ac_includes_default
5569 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5576 rm -f conftest.$ac_objext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578 (eval $ac_compile) 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -s conftest.$ac_objext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 ac_lo=`expr '(' $ac_mid ')' + 1`
5595 rm -f conftest.$ac_objext conftest.$ac_ext
5598 ?*) ac_cv_sizeof_float=$ac_lo;;
5599 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5600 See \`config.log' for more details." >&5
5601 echo "$as_me: error: cannot compute sizeof (float), 77
5602 See \`config.log' for more details." >&2;}
5603 { (exit 1); exit 1; }; } ;;
5606 if test "$cross_compiling" = yes; then
5607 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5608 See \`config.log' for more details." >&5
5609 echo "$as_me: error: cannot run test program while cross compiling
5610 See \`config.log' for more details." >&2;}
5611 { (exit 1); exit 1; }; }
5613 cat >conftest.$ac_ext <<_ACEOF
5614 #line $LINENO "configure"
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 long longval () { return (long) (sizeof (float)); }
5622 unsigned long ulongval () { return (long) (sizeof (float)); }
5629 FILE *f = fopen ("conftest.val", "w");
5632 if (((long) (sizeof (float))) < 0)
5634 long i = longval ();
5635 if (i != ((long) (sizeof (float))))
5637 fprintf (f, "%ld\n", i);
5641 unsigned long i = ulongval ();
5642 if (i != ((long) (sizeof (float))))
5644 fprintf (f, "%lu\n", i);
5646 exit (ferror (f) || fclose (f) != 0);
5652 rm -f conftest$ac_exeext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5654 (eval $ac_link) 2>&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_sizeof_float=`cat conftest.val`
5665 echo "$as_me: program exited with status $ac_status" >&5
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5671 See \`config.log' for more details." >&5
5672 echo "$as_me: error: cannot compute sizeof (float), 77
5673 See \`config.log' for more details." >&2;}
5674 { (exit 1); exit 1; }; }
5676 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5681 ac_cv_sizeof_float=0
5684 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5685 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5686 cat >>confdefs.h <<_ACEOF
5687 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5691 echo "$as_me:$LINENO: checking for double" >&5
5692 echo $ECHO_N "checking for double... $ECHO_C" >&6
5693 if test "${ac_cv_type_double+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 cat >conftest.$ac_ext <<_ACEOF
5697 #line $LINENO "configure"
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 $ac_includes_default
5709 if (sizeof (double))
5715 rm -f conftest.$ac_objext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717 (eval $ac_compile) 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_type_double=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_cv_type_double=no
5734 rm -f conftest.$ac_objext conftest.$ac_ext
5736 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5737 echo "${ECHO_T}$ac_cv_type_double" >&6
5739 echo "$as_me:$LINENO: checking size of double" >&5
5740 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5741 if test "${ac_cv_sizeof_double+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 if test "$ac_cv_type_double" = yes; then
5745 # The cast to unsigned long works around a bug in the HP C Compiler
5746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5748 # This bug is HP SR number 8606223364.
5749 if test "$cross_compiling" = yes; then
5750 # Depending upon the size, compute the lo and hi bounds.
5751 cat >conftest.$ac_ext <<_ACEOF
5752 #line $LINENO "configure"
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 $ac_includes_default
5762 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5783 cat >conftest.$ac_ext <<_ACEOF
5784 #line $LINENO "configure"
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 $ac_includes_default
5794 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_hi=$ac_mid; break
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_lo=`expr $ac_mid + 1`
5819 if test $ac_lo -le $ac_mid; then
5823 ac_mid=`expr 2 '*' $ac_mid + 1`
5825 rm -f conftest.$ac_objext conftest.$ac_ext
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 cat >conftest.$ac_ext <<_ACEOF
5832 #line $LINENO "configure"
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 $ac_includes_default
5842 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5849 rm -f conftest.$ac_objext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851 (eval $ac_compile) 2>&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5863 cat >conftest.$ac_ext <<_ACEOF
5864 #line $LINENO "configure"
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $ac_includes_default
5874 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 ac_lo=$ac_mid; break
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 ac_hi=`expr '(' $ac_mid ')' - 1`
5899 if test $ac_mid -le $ac_hi; then
5903 ac_mid=`expr 2 '*' $ac_mid`
5905 rm -f conftest.$ac_objext conftest.$ac_ext
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5913 rm -f conftest.$ac_objext conftest.$ac_ext
5915 rm -f conftest.$ac_objext conftest.$ac_ext
5916 # Binary search between lo and hi bounds.
5917 while test "x$ac_lo" != "x$ac_hi"; do
5918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5919 cat >conftest.$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5930 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5937 rm -f conftest.$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5954 ac_lo=`expr '(' $ac_mid ')' + 1`
5956 rm -f conftest.$ac_objext conftest.$ac_ext
5959 ?*) ac_cv_sizeof_double=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot compute sizeof (double), 77
5963 See \`config.log' for more details." >&2;}
5964 { (exit 1); exit 1; }; } ;;
5967 if test "$cross_compiling" = yes; then
5968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot run test program while cross compiling
5971 See \`config.log' for more details." >&2;}
5972 { (exit 1); exit 1; }; }
5974 cat >conftest.$ac_ext <<_ACEOF
5975 #line $LINENO "configure"
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5982 long longval () { return (long) (sizeof (double)); }
5983 unsigned long ulongval () { return (long) (sizeof (double)); }
5990 FILE *f = fopen ("conftest.val", "w");
5993 if (((long) (sizeof (double))) < 0)
5995 long i = longval ();
5996 if (i != ((long) (sizeof (double))))
5998 fprintf (f, "%ld\n", i);
6002 unsigned long i = ulongval ();
6003 if (i != ((long) (sizeof (double))))
6005 fprintf (f, "%lu\n", i);
6007 exit (ferror (f) || fclose (f) != 0);
6013 rm -f conftest$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_sizeof_double=`cat conftest.val`
6026 echo "$as_me: program exited with status $ac_status" >&5
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6032 See \`config.log' for more details." >&5
6033 echo "$as_me: error: cannot compute sizeof (double), 77
6034 See \`config.log' for more details." >&2;}
6035 { (exit 1); exit 1; }; }
6037 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6042 ac_cv_sizeof_double=0
6045 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6046 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6047 cat >>confdefs.h <<_ACEOF
6048 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6054 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6055 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6056 if test "${ac_cv_lib_z_deflate+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_check_lib_save_LIBS=$LIBS
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line $LINENO "configure"
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6069 /* Override any gcc2 internal prototype to avoid an error. */
6073 /* We use char because int might match the return type of a gcc2
6074 builtin and then its argument prototype would still apply. */
6084 rm -f conftest.$ac_objext conftest$ac_exeext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6086 (eval $ac_link) 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -s conftest$ac_exeext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_lib_z_deflate=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 ac_cv_lib_z_deflate=no
6103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6107 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6108 if test $ac_cv_lib_z_deflate = yes; then
6111 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6112 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6116 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6117 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6118 if test "${ac_cv_lib_m_sin+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 ac_check_lib_save_LIBS=$LIBS
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6131 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148 (eval $ac_link) 2>&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6166 LIBS=$ac_check_lib_save_LIBS
6168 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6169 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6170 if test $ac_cv_lib_m_sin = yes; then
6171 cat >>confdefs.h <<_ACEOF
6179 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6180 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6181 if test "${ac_cv_lib_curses_main+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 ac_check_lib_save_LIBS=$LIBS
6185 LIBS="-lcurses $LIBS"
6186 cat >conftest.$ac_ext <<_ACEOF
6187 #line $LINENO "configure"
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205 (eval $ac_link) 2>&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try='test -s conftest$ac_exeext'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6215 ac_cv_lib_curses_main=yes
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6220 ac_cv_lib_curses_main=no
6222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6223 LIBS=$ac_check_lib_save_LIBS
6225 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6226 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6227 if test $ac_cv_lib_curses_main = yes; then
6233 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6234 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6235 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 ac_check_lib_save_LIBS=$LIBS
6239 LIBS="-lncurses $LIBS"
6240 cat >conftest.$ac_ext <<_ACEOF
6241 #line $LINENO "configure"
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6259 (eval $ac_link) 2>&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try='test -s conftest$ac_exeext'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6269 ac_cv_lib_ncurses_main=yes
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_cv_lib_ncurses_main=no
6276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_check_lib_save_LIBS
6279 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6280 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6281 if test $ac_cv_lib_ncurses_main = yes; then
6287 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6288 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6289 if test "${ac_cv_lib_readline_main+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 ac_check_lib_save_LIBS=$LIBS
6293 LIBS="-lreadline -lcurses $LIBS"
6294 cat >conftest.$ac_ext <<_ACEOF
6295 #line $LINENO "configure"
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6313 (eval $ac_link) 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -s conftest$ac_exeext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_cv_lib_readline_main=yes
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_cv_lib_readline_main=no
6330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6331 LIBS=$ac_check_lib_save_LIBS
6333 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6334 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6335 if test $ac_cv_lib_readline_main = yes; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define HAVE_READLINE 1
6347 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6348 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6349 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 ac_check_lib_save_LIBS=$LIBS
6353 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread` $LIBS"
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_lib_wx_gtk_2_4_main=yes
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6388 ac_cv_lib_wx_gtk_2_4_main=no
6390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6391 LIBS=$ac_check_lib_save_LIBS
6393 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6394 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6395 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6396 wxwin=true; wx_gtk=true;
6397 cat >>confdefs.h <<\_ACEOF
6398 #define HAVE_WXWINDOWS 1
6403 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6404 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6405 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 ac_check_lib_save_LIBS=$LIBS
6409 LIBS="-lwx_mac-2.4 $LIBS"
6410 cat >conftest.$ac_ext <<_ACEOF
6411 #line $LINENO "configure"
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -s conftest$ac_exeext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_lib_wx_mac_2_4_main=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_cv_lib_wx_mac_2_4_main=no
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6447 LIBS=$ac_check_lib_save_LIBS
6449 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6450 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6451 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6452 wxwin=true; wx_mac=true;
6453 cat >>confdefs.h <<\_ACEOF
6454 #define HAVE_WXWINDOWS 1
6459 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
6460 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6
6461 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 ac_check_lib_save_LIBS=$LIBS
6465 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6474 /* Override any gcc2 internal prototype to avoid an error. */
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6480 char fftw_malloc ();
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_lib_fftw3_fftw_malloc=yes
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 ac_cv_lib_fftw3_fftw_malloc=no
6508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6509 LIBS=$ac_check_lib_save_LIBS
6511 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
6512 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6
6513 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
6515 cat >>confdefs.h <<\_ACEOF
6523 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6524 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6525 if test "${ac_cv_lib_GL_main+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 ac_check_lib_save_LIBS=$LIBS
6529 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXt -lXext $LIBS"
6530 cat >conftest.$ac_ext <<_ACEOF
6531 #line $LINENO "configure"
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -s conftest$ac_exeext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 ac_cv_lib_GL_main=yes
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 ac_cv_lib_GL_main=no
6566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6567 LIBS=$ac_check_lib_save_LIBS
6569 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6570 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6571 if test $ac_cv_lib_GL_main = yes; then
6577 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6578 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6579 if test "${ac_cv_lib_pthread_main+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 ac_check_lib_save_LIBS=$LIBS
6583 LIBS="-lpthread $LIBS"
6584 cat >conftest.$ac_ext <<_ACEOF
6585 #line $LINENO "configure"
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6601 rm -f conftest.$ac_objext conftest$ac_exeext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_cv_lib_pthread_main=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 ac_cv_lib_pthread_main=no
6620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6621 LIBS=$ac_check_lib_save_LIBS
6623 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6624 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6625 if test $ac_cv_lib_pthread_main = yes; then
6632 if test "$zlib" = "true" ; then
6633 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6634 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6635 if test "${ac_cv_lib_png_main+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 ac_check_lib_save_LIBS=$LIBS
6639 LIBS="-lpng -lz -lm $LIBS"
6640 cat >conftest.$ac_ext <<_ACEOF
6641 #line $LINENO "configure"
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659 (eval $ac_link) 2>&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try='test -s conftest$ac_exeext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_lib_png_main=yes
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6674 ac_cv_lib_png_main=no
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6677 LIBS=$ac_check_lib_save_LIBS
6679 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6680 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6681 if test $ac_cv_lib_png_main = yes; then
6683 cat >>confdefs.h <<\_ACEOF
6693 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6694 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6695 if test "${ac_cv_header_stdc+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 cat >conftest.$ac_ext <<_ACEOF
6699 #line $LINENO "configure"
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6718 rm -f conftest.$ac_objext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720 (eval $ac_compile) 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -s conftest.$ac_objext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_cv_header_stdc=yes
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 ac_cv_header_stdc=no
6737 rm -f conftest.$ac_objext conftest.$ac_ext
6739 if test $ac_cv_header_stdc = yes; then
6740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6741 cat >conftest.$ac_ext <<_ACEOF
6742 #line $LINENO "configure"
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752 $EGREP "memchr" >/dev/null 2>&1; then
6755 ac_cv_header_stdc=no
6761 if test $ac_cv_header_stdc = yes; then
6762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6763 cat >conftest.$ac_ext <<_ACEOF
6764 #line $LINENO "configure"
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6774 $EGREP "free" >/dev/null 2>&1; then
6777 ac_cv_header_stdc=no
6783 if test $ac_cv_header_stdc = yes; then
6784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6785 if test "$cross_compiling" = yes; then
6788 cat >conftest.$ac_ext <<_ACEOF
6789 #line $LINENO "configure"
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6796 #if ((' ' & 0x0FF) == 0x020)
6797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6800 # define ISLOWER(c) \
6801 (('a' <= (c) && (c) <= 'i') \
6802 || ('j' <= (c) && (c) <= 'r') \
6803 || ('s' <= (c) && (c) <= 'z'))
6804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6812 for (i = 0; i < 256; i++)
6813 if (XOR (islower (i), ISLOWER (i))
6814 || toupper (i) != TOUPPER (i))
6819 rm -f conftest$ac_exeext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6821 (eval $ac_link) 2>&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6832 echo "$as_me: program exited with status $ac_status" >&5
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6837 ac_cv_header_stdc=no
6839 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6843 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6844 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6845 if test $ac_cv_header_stdc = yes; then
6847 cat >>confdefs.h <<\_ACEOF
6848 #define STDC_HEADERS 1
6877 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
6879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6881 echo "$as_me:$LINENO: checking for $ac_header" >&5
6882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6889 # Is the header compilable?
6890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6892 cat >conftest.$ac_ext <<_ACEOF
6893 #line $LINENO "configure"
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6900 #include <$ac_header>
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -s conftest.$ac_objext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_header_compiler=yes
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_header_compiler=no
6921 rm -f conftest.$ac_objext conftest.$ac_ext
6922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6923 echo "${ECHO_T}$ac_header_compiler" >&6
6925 # Is the header present?
6926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line $LINENO "configure"
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <$ac_header>
6937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6940 grep -v '^ *+' conftest.er1 >conftest.err
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } >/dev/null; then
6945 if test -s conftest.err; then
6946 ac_cpp_err=$ac_c_preproc_warn_flag
6953 if test -z "$ac_cpp_err"; then
6954 ac_header_preproc=yes
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6959 ac_header_preproc=no
6961 rm -f conftest.err conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6963 echo "${ECHO_T}$ac_header_preproc" >&6
6965 # So? What about this header?
6966 case $ac_header_compiler:$ac_header_preproc in
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6974 ## ------------------------------------ ##
6975 ## Report this to bug-autoconf@gnu.org. ##
6976 ## ------------------------------------ ##
6979 sed "s/^/$as_me: WARNING: /" >&2
6982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6990 ## ------------------------------------ ##
6991 ## Report this to bug-autoconf@gnu.org. ##
6992 ## ------------------------------------ ##
6995 sed "s/^/$as_me: WARNING: /" >&2
6998 echo "$as_me:$LINENO: checking for $ac_header" >&5
6999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 eval "$as_ac_Header=$ac_header_preproc"
7005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7010 cat >>confdefs.h <<_ACEOF
7011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7019 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7020 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7021 if test "${ac_cv_c_const+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 cat >conftest.$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7035 /* FIXME: Include the comments suggested by Paul. */
7037 /* Ultrix mips cc rejects this. */
7038 typedef int charset[2];
7040 /* SunOS 4.1.1 cc rejects this. */
7041 char const *const *ccp;
7043 /* NEC SVR4.0.2 mips cc rejects this. */
7044 struct point {int x, y;};
7045 static struct point const zero = {0,0};
7046 /* AIX XL C 1.02.0.0 rejects this.
7047 It does not let you subtract one const X* pointer from another in
7048 an arm of an if-expression whose if-part is not a constant
7050 const char *g = "string";
7051 ccp = &g + (g ? g-g : 0);
7052 /* HPUX 7.0 cc rejects these. */
7055 ccp = (char const *const *) p;
7056 { /* SCO 3.2v4 cc rejects this. */
7058 char const *s = 0 ? (char *) 0 : (char const *) 0;
7062 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7064 const int *foo = &x[0];
7067 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7068 typedef const int *iptr;
7072 { /* AIX XL C 1.02.0.0 rejects this saying
7073 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7074 struct s { int j; const int *ap[3]; };
7075 struct s *b; b->j = 5;
7077 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7086 rm -f conftest.$ac_objext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088 (eval $ac_compile) 2>&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } &&
7092 { ac_try='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7105 rm -f conftest.$ac_objext conftest.$ac_ext
7107 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7108 echo "${ECHO_T}$ac_cv_c_const" >&6
7109 if test $ac_cv_c_const = no; then
7111 cat >>confdefs.h <<\_ACEOF
7117 echo "$as_me:$LINENO: checking for off_t" >&5
7118 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7119 if test "${ac_cv_type_off_t+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7141 rm -f conftest.$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -s conftest.$ac_objext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_type_off_t=yes
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7160 rm -f conftest.$ac_objext conftest.$ac_ext
7162 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7163 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7164 if test $ac_cv_type_off_t = yes; then
7168 cat >>confdefs.h <<_ACEOF
7174 echo "$as_me:$LINENO: checking for size_t" >&5
7175 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7176 if test "${ac_cv_type_size_t+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 cat >conftest.$ac_ext <<_ACEOF
7180 #line $LINENO "configure"
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7192 if (sizeof (size_t))
7198 rm -f conftest.$ac_objext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7200 (eval $ac_compile) 2>&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 ac_cv_type_size_t=yes
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 ac_cv_type_size_t=no
7217 rm -f conftest.$ac_objext conftest.$ac_ext
7219 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7220 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7221 if test $ac_cv_type_size_t = yes; then
7225 cat >>confdefs.h <<_ACEOF
7226 #define size_t unsigned
7231 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7232 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7233 if test "${ac_cv_struct_tm+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 cat >conftest.$ac_ext <<_ACEOF
7237 #line $LINENO "configure"
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 #include <sys/types.h>
7249 struct tm *tp; tp->tm_sec;
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -s conftest.$ac_objext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 ac_cv_struct_tm=time.h
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 ac_cv_struct_tm=sys/time.h
7273 rm -f conftest.$ac_objext conftest.$ac_ext
7275 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7276 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7277 if test $ac_cv_struct_tm = sys/time.h; then
7279 cat >>confdefs.h <<\_ACEOF
7280 #define TM_IN_SYS_TIME 1
7287 for ac_func in vprintf
7289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7290 echo "$as_me:$LINENO: checking for $ac_func" >&5
7291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7292 if eval "test \"\${$as_ac_var+set}\" = set"; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 cat >conftest.$ac_ext <<_ACEOF
7296 #line $LINENO "configure"
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 /* System header to define __stub macros and hopefully few prototypes,
7303 which can conflict with char $ac_func (); below.
7304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7305 <limits.h> exists even on freestanding compilers. */
7307 # include <limits.h>
7309 # include <assert.h>
7311 /* Override any gcc2 internal prototype to avoid an error. */
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7319 /* The GNU C library defines this for functions which it implements
7320 to always fail with ENOSYS. Some functions are actually named
7321 something starting with __ and the normal name is an alias. */
7322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7325 char (*f) () = $ac_func;
7334 return f != $ac_func;
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -s conftest$ac_exeext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 eval "$as_ac_var=yes"
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7356 eval "$as_ac_var=no"
7358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7362 if test `eval echo '${'$as_ac_var'}'` = yes; then
7363 cat >>confdefs.h <<_ACEOF
7364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7367 echo "$as_me:$LINENO: checking for _doprnt" >&5
7368 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7369 if test "${ac_cv_func__doprnt+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 cat >conftest.$ac_ext <<_ACEOF
7373 #line $LINENO "configure"
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 /* System header to define __stub macros and hopefully few prototypes,
7380 which can conflict with char _doprnt (); below.
7381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7382 <limits.h> exists even on freestanding compilers. */
7384 # include <limits.h>
7386 # include <assert.h>
7388 /* Override any gcc2 internal prototype to avoid an error. */
7393 /* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7396 /* The GNU C library defines this for functions which it implements
7397 to always fail with ENOSYS. Some functions are actually named
7398 something starting with __ and the normal name is an alias. */
7399 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7402 char (*f) () = _doprnt;
7411 return f != _doprnt;
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418 (eval $ac_link) 2>&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -s conftest$ac_exeext'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; }; then
7428 ac_cv_func__doprnt=yes
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7433 ac_cv_func__doprnt=no
7435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7437 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7438 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7439 if test $ac_cv_func__doprnt = yes; then
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_DOPRNT 1
7464 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
7466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7467 echo "$as_me:$LINENO: checking for $ac_func" >&5
7468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7469 if eval "test \"\${$as_ac_var+set}\" = set"; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 cat >conftest.$ac_ext <<_ACEOF
7473 #line $LINENO "configure"
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 /* System header to define __stub macros and hopefully few prototypes,
7480 which can conflict with char $ac_func (); below.
7481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7482 <limits.h> exists even on freestanding compilers. */
7484 # include <limits.h>
7486 # include <assert.h>
7488 /* Override any gcc2 internal prototype to avoid an error. */
7493 /* We use char because int might match the return type of a gcc2
7494 builtin and then its argument prototype would still apply. */
7496 /* The GNU C library defines this for functions which it implements
7497 to always fail with ENOSYS. Some functions are actually named
7498 something starting with __ and the normal name is an alias. */
7499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7502 char (*f) () = $ac_func;
7511 return f != $ac_func;
7516 rm -f conftest.$ac_objext conftest$ac_exeext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518 (eval $ac_link) 2>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -s conftest$ac_exeext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 eval "$as_ac_var=yes"
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7533 eval "$as_ac_var=no"
7535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7539 if test `eval echo '${'$as_ac_var'}'` = yes; then
7540 cat >>confdefs.h <<_ACEOF
7541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7547 echo "$as_me:$LINENO: checking for basename" >&5
7548 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7549 if test "${ac_cv_func_basename+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 cat >conftest.$ac_ext <<_ACEOF
7553 #line $LINENO "configure"
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 /* System header to define __stub macros and hopefully few prototypes,
7560 which can conflict with char basename (); below.
7561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562 <limits.h> exists even on freestanding compilers. */
7564 # include <limits.h>
7566 # include <assert.h>
7568 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7576 /* The GNU C library defines this for functions which it implements
7577 to always fail with ENOSYS. Some functions are actually named
7578 something starting with __ and the normal name is an alias. */
7579 #if defined (__stub_basename) || defined (__stub___basename)
7582 char (*f) () = basename;
7591 return f != basename;
7596 rm -f conftest.$ac_objext conftest$ac_exeext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598 (eval $ac_link) 2>&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -s conftest$ac_exeext'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; }; then
7608 ac_cv_func_basename=yes
7610 echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7613 ac_cv_func_basename=no
7615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7617 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7618 echo "${ECHO_T}$ac_cv_func_basename" >&6
7620 echo "$as_me:$LINENO: checking for setjmp" >&5
7621 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7622 if test "${ac_cv_func_setjmp+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 cat >conftest.$ac_ext <<_ACEOF
7626 #line $LINENO "configure"
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 /* System header to define __stub macros and hopefully few prototypes,
7633 which can conflict with char setjmp (); below.
7634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7635 <limits.h> exists even on freestanding compilers. */
7637 # include <limits.h>
7639 # include <assert.h>
7641 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7649 /* The GNU C library defines this for functions which it implements
7650 to always fail with ENOSYS. Some functions are actually named
7651 something starting with __ and the normal name is an alias. */
7652 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7655 char (*f) () = setjmp;
7669 rm -f conftest.$ac_objext conftest$ac_exeext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7671 (eval $ac_link) 2>&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } &&
7675 { ac_try='test -s conftest$ac_exeext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 ac_cv_func_setjmp=yes
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 ac_cv_func_setjmp=no
7688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7690 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7691 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7693 echo "$as_me:$LINENO: checking for setpriority" >&5
7694 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7695 if test "${ac_cv_func_setpriority+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 cat >conftest.$ac_ext <<_ACEOF
7699 #line $LINENO "configure"
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 /* System header to define __stub macros and hopefully few prototypes,
7706 which can conflict with char setpriority (); below.
7707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7708 <limits.h> exists even on freestanding compilers. */
7710 # include <limits.h>
7712 # include <assert.h>
7714 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7721 char setpriority ();
7722 /* The GNU C library defines this for functions which it implements
7723 to always fail with ENOSYS. Some functions are actually named
7724 something starting with __ and the normal name is an alias. */
7725 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7728 char (*f) () = setpriority;
7737 return f != setpriority;
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744 (eval $ac_link) 2>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try='test -s conftest$ac_exeext'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; }; then
7754 ac_cv_func_setpriority=yes
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7759 ac_cv_func_setpriority=no
7761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7763 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7764 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7766 echo "$as_me:$LINENO: checking for time" >&5
7767 echo $ECHO_N "checking for time... $ECHO_C" >&6
7768 if test "${ac_cv_func_time+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 cat >conftest.$ac_ext <<_ACEOF
7772 #line $LINENO "configure"
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 /* System header to define __stub macros and hopefully few prototypes,
7779 which can conflict with char time (); below.
7780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 <limits.h> exists even on freestanding compilers. */
7783 # include <limits.h>
7785 # include <assert.h>
7787 /* Override any gcc2 internal prototype to avoid an error. */
7792 /* We use char because int might match the return type of a gcc2
7793 builtin and then its argument prototype would still apply. */
7795 /* The GNU C library defines this for functions which it implements
7796 to always fail with ENOSYS. Some functions are actually named
7797 something starting with __ and the normal name is an alias. */
7798 #if defined (__stub_time) || defined (__stub___time)
7801 char (*f) () = time;
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817 (eval $ac_link) 2>&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -s conftest$ac_exeext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7836 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7837 echo "${ECHO_T}$ac_cv_func_time" >&6
7839 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7840 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7841 if test "${ac_cv_func_gettimeofday+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 cat >conftest.$ac_ext <<_ACEOF
7845 #line $LINENO "configure"
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 /* System header to define __stub macros and hopefully few prototypes,
7852 which can conflict with char gettimeofday (); below.
7853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7854 <limits.h> exists even on freestanding compilers. */
7856 # include <limits.h>
7858 # include <assert.h>
7860 /* Override any gcc2 internal prototype to avoid an error. */
7865 /* We use char because int might match the return type of a gcc2
7866 builtin and then its argument prototype would still apply. */
7867 char gettimeofday ();
7868 /* The GNU C library defines this for functions which it implements
7869 to always fail with ENOSYS. Some functions are actually named
7870 something starting with __ and the normal name is an alias. */
7871 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7874 char (*f) () = gettimeofday;
7883 return f != gettimeofday;
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_func_gettimeofday=yes
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7905 ac_cv_func_gettimeofday=no
7907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7909 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7910 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7912 echo "$as_me:$LINENO: checking for getopt" >&5
7913 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7914 if test "${ac_cv_func_getopt+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 cat >conftest.$ac_ext <<_ACEOF
7918 #line $LINENO "configure"
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 /* System header to define __stub macros and hopefully few prototypes,
7925 which can conflict with char getopt (); below.
7926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7927 <limits.h> exists even on freestanding compilers. */
7929 # include <limits.h>
7931 # include <assert.h>
7933 /* Override any gcc2 internal prototype to avoid an error. */
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7941 /* The GNU C library defines this for functions which it implements
7942 to always fail with ENOSYS. Some functions are actually named
7943 something starting with __ and the normal name is an alias. */
7944 #if defined (__stub_getopt) || defined (__stub___getopt)
7947 char (*f) () = getopt;
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -s conftest$ac_exeext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_func_getopt=yes
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_cv_func_getopt=no
7980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7982 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7983 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7984 if test $ac_cv_func_getopt = yes; then
7991 if test "${OSTYPE}" = "cygwin" ; then
7994 echo "$as_me:$LINENO: checking for getopt_long" >&5
7995 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7996 if test "${ac_cv_func_getopt_long+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 cat >conftest.$ac_ext <<_ACEOF
8000 #line $LINENO "configure"
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 /* System header to define __stub macros and hopefully few prototypes,
8007 which can conflict with char getopt_long (); below.
8008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8009 <limits.h> exists even on freestanding compilers. */
8011 # include <limits.h>
8013 # include <assert.h>
8015 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char getopt_long ();
8023 /* The GNU C library defines this for functions which it implements
8024 to always fail with ENOSYS. Some functions are actually named
8025 something starting with __ and the normal name is an alias. */
8026 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8029 char (*f) () = getopt_long;
8038 return f != getopt_long;
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 ac_cv_func_getopt_long=yes
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 ac_cv_func_getopt_long=no
8062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8064 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8065 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8066 if test $ac_cv_func_getopt_long = yes; then
8074 if test "${getopt_long}" = "false" ; then
8075 my_includes="$my_includes -I../getopt"
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_GETOPT_LONG 1
8081 ctlibs_base="$ctlibs_base -lgetopt"
8082 LDFLAGS="$LDFLAGS -L../getopt"
8087 if test "$GETOPTLONG"="1"; then
8088 INCLUDED_GETOPT_LONG_TRUE=
8089 INCLUDED_GETOPT_LONG_FALSE='#'
8091 INCLUDED_GETOPT_LONG_TRUE='#'
8092 INCLUDED_GETOPT_LONG_FALSE=
8096 if test "${readline}" = "true" ; then
8097 ctlibs_base="$ctlibs_base -lreadline"
8098 if test "${ncurses}" = "true"; then
8099 ctlibs_base="$ctlibs_base -lncurses"
8100 elif test "${curses}" = "true"; then
8101 ctlibs_base="$ctlibs_base -lcurses"
8105 echo "$as_me:$LINENO: checking debug" >&5
8106 echo $ECHO_N "checking debug... $ECHO_C" >&6
8107 # Check whether --enable-debug or --disable-debug was given.
8108 if test "${enable_debug+set}" = set; then
8109 enableval="$enable_debug"
8110 case "${enableval}" in
8112 echo "$as_me:$LINENO: result: yes" >&5
8113 echo "${ECHO_T}yes" >&6
8116 echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6
8119 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8120 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8124 debug=false; echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6
8129 if test "$debug" = "true"; then
8138 if test "$datadir" != "" ; then
8139 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8142 if test "$debug" = "true" ; then
8143 CFLAGS="$CFLAGS -g -DDEBUG"
8145 cat >>confdefs.h <<\_ACEOF
8150 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8152 cat >>confdefs.h <<\_ACEOF
8158 if test "${pthread}" = "true" ; then
8160 cat >>confdefs.h <<\_ACEOF
8161 #define HAVE_WXTHREADS 1
8166 echo "$as_me:$LINENO: checking sstream" >&5
8167 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8168 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8169 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8170 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8172 cat >>confdefs.h <<\_ACEOF
8173 #define HAVE_SSTREAM 1
8176 echo "$as_me:$LINENO: result: yes" >&5
8177 echo "${ECHO_T}yes" >&6
8179 echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6
8184 CFLAGS="$CFLAGS -Wall"
8185 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8186 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8187 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8188 if test "${enable_verbose_warnings+set}" = set; then
8189 enableval="$enable_verbose_warnings"
8190 case "$enableval" in
8192 echo "$as_me:$LINENO: result: yes" >&5
8193 echo "${ECHO_T}yes" >&6
8194 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8197 echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8207 echo "$as_me:$LINENO: checking static executables" >&5
8208 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8209 # Check whether --enable-static or --disable-static was given.
8210 if test "${enable_static+set}" = set; then
8211 enableval="$enable_static"
8212 case "$enableval" in
8214 echo "$as_me:$LINENO: result: yes" >&5
8215 echo "${ECHO_T}yes" >&6
8216 CFLAGS="$CFLAGS --static"
8219 echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6
8224 echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6
8230 # Check whether --with-lam or --without-lam was given.
8231 if test "${with_lam+set}" = set; then
8233 if test "$withval" != "no" ; then
8239 if test "$withval" != "no" ; then
8240 if test "$prefix" != "NONE" ; then
8241 trylamdir="$trylamdir $prefix"
8244 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8245 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8246 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8247 if test -x "$testlamdir/bin/hcp" ; then
8248 if test "$testlamdir" != "/usr"; then
8249 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8250 CFLAGS="$CFLAGS -I$testlamdir/include"
8252 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8253 lamdir="$testlamdir"
8260 echo "$as_me:$LINENO: result: $lamdir" >&5
8261 echo "${ECHO_T}$lamdir" >&6
8263 echo "$as_me:$LINENO: result: no" >&5
8264 echo "${ECHO_T}no" >&6
8269 # Check whether --with-ctn or --without-ctn was given.
8270 if test "${with_ctn+set}" = set; then
8272 if test "$withval" != "no" ; then
8278 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8279 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8280 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8281 echo "$as_me:$LINENO: result: disabled" >&5
8282 echo "${ECHO_T}disabled" >&6
8284 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8285 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8286 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8287 if test -f "$testctndir/libctn.a" ; then
8288 LDFLAGS="$LDFLAGS -L$testctndir"
8293 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
8294 if test -f "$testctndir/ctn_os.h" ; then
8295 CFLAGS="$CFLAGS -I$testctndir"
8300 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_CTN_DICOM 1
8307 echo "$as_me:$LINENO: result: yes" >&5
8308 echo "${ECHO_T}yes" >&6
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8315 echo "$as_me:$LINENO: checking for CPU specification" >&5
8316 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
8318 # Check whether --with-mcpu or --without-mcpu was given.
8319 if test "${with_mcpu+set}" = set; then
8320 withval="$with_mcpu"
8324 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
8325 echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6
8328 echo "$as_me:$LINENO: result: $withval" >&5
8329 echo "${ECHO_T}$withval" >&6
8330 CFLAGS="$CFLAGS -mcpu=$withval"
8333 echo "$as_me:$LINENO: checking for web access" >&5
8334 echo $ECHO_N "checking for web access... $ECHO_C" >&6
8336 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
8337 if test "${with_cgibin_dir+set}" = set; then
8338 withval="$with_cgibin_dir"
8339 cgibindir=$withval ;
8343 # Check whether --with-cgibin-url or --without-cgibin-url was given.
8344 if test "${with_cgibin_url+set}" = set; then
8345 withval="$with_cgibin_url"
8346 cgibinurl=$withval ;
8350 # Check whether --with-webdata-dir or --without-webdata-dir was given.
8351 if test "${with_webdata_dir+set}" = set; then
8352 withval="$with_webdata_dir"
8353 webdatadir=$withval ;
8357 # Check whether --with-webdata-url or --without-webdata-url was given.
8358 if test "${with_webdata_url+set}" = set; then
8359 withval="$with_webdata_url"
8360 webdataurl=$withval ;
8364 # Check whether --with-html-dir or --without-html-dir was given.
8365 if test "${with_html_dir+set}" = set; then
8366 withval="$with_html_dir"
8370 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
8371 cgiprograms="ctsim.cgi ctsim.conf"
8375 if test -n "$htmldir" ; then
8376 htmldata=simulate.html
8381 if test -n "$htmldir"; then
8390 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8393 echo "$as_me:$LINENO: result: yes" >&5
8394 echo "${ECHO_T}yes" >&6
8395 if test -z "$cgibindir" ; then
8396 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8397 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8398 { (exit 1); exit 1; }; }
8399 elif test -z "$cgibinurl" ; then
8400 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8401 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8402 { (exit 1); exit 1; }; }
8403 elif test -z "$webdatadir" ; then
8404 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8405 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8406 { (exit 1); exit 1; }; }
8407 elif test -z "$webdataurl" ; then
8408 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8409 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8410 { (exit 1); exit 1; }; }
8411 elif test -z "$htmldir" ; then
8412 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8413 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8414 { (exit 1); exit 1; }; }
8417 echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6
8423 if test -n "$lamdir"; then
8433 echo "$as_me:$LINENO: checking for X" >&5
8434 echo $ECHO_N "checking for X... $ECHO_C" >&6
8437 # Check whether --with-x or --without-x was given.
8438 if test "${with_x+set}" = set; then
8442 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8443 if test "x$with_x" = xno; then
8444 # The user explicitly disabled X.
8447 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8448 # Both variables are already set.
8451 if test "${ac_cv_have_x+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 # One or both of the vars are not set, and there is no cached value.
8455 ac_x_includes=no ac_x_libraries=no
8457 if mkdir conftest.dir; then
8459 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8460 cat >Imakefile <<'_ACEOF'
8462 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8464 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8466 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8467 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8468 for ac_extension in a so sl; do
8469 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8470 test -f $ac_im_libdir/libX11.$ac_extension; then
8471 ac_im_usrlibdir=$ac_im_libdir; break
8474 # Screen out bogus values from the imake configuration. They are
8475 # bogus both because they are the default anyway, and because
8476 # using them would break gcc on systems where it needs fixed includes.
8477 case $ac_im_incroot in
8479 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8481 case $ac_im_usrlibdir in
8483 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8490 # Standard set of common directories for X headers.
8491 # Check X11 before X11Rn because it is often a symlink to the current release.
8503 /usr/local/X11/include
8504 /usr/local/X11R6/include
8505 /usr/local/X11R5/include
8506 /usr/local/X11R4/include
8508 /usr/local/include/X11
8509 /usr/local/include/X11R6
8510 /usr/local/include/X11R5
8511 /usr/local/include/X11R4
8515 /usr/XFree86/include/X11
8519 /usr/unsupported/include
8521 /usr/local/x11r5/include
8522 /usr/lpp/Xamples/include
8524 /usr/openwin/include
8525 /usr/openwin/share/include'
8527 if test "$ac_x_includes" = no; then
8528 # Guess where to find include files, by looking for Intrinsic.h.
8529 # First, try using that file with no special directory specified.
8530 cat >conftest.$ac_ext <<_ACEOF
8531 #line $LINENO "configure"
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 #include <X11/Intrinsic.h>
8539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8542 grep -v '^ *+' conftest.er1 >conftest.err
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } >/dev/null; then
8547 if test -s conftest.err; then
8548 ac_cpp_err=$ac_c_preproc_warn_flag
8555 if test -z "$ac_cpp_err"; then
8556 # We can compile using X headers with no special include directory.
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 for ac_dir in $ac_x_header_dirs; do
8563 if test -r "$ac_dir/X11/Intrinsic.h"; then
8564 ac_x_includes=$ac_dir
8569 rm -f conftest.err conftest.$ac_ext
8570 fi # $ac_x_includes = no
8572 if test "$ac_x_libraries" = no; then
8573 # Check for the libraries.
8574 # See if we find them without any special options.
8575 # Don't add to $LIBS permanently.
8578 cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <X11/Intrinsic.h>
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8607 # We can link X programs with no special library path.
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8614 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8616 # Don't even attempt the hair of trying to link an X program!
8617 for ac_extension in a so sl; do
8618 if test -r $ac_dir/libXt.$ac_extension; then
8619 ac_x_libraries=$ac_dir
8625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8626 fi # $ac_x_libraries = no
8628 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8629 # Didn't find X anywhere. Cache the known absence of X.
8630 ac_cv_have_x="have_x=no"
8632 # Record where we found X for the cache.
8633 ac_cv_have_x="have_x=yes \
8634 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8639 eval "$ac_cv_have_x"
8642 if test "$have_x" != yes; then
8643 echo "$as_me:$LINENO: result: $have_x" >&5
8644 echo "${ECHO_T}$have_x" >&6
8647 # If each of the values was on the command line, it overrides each guess.
8648 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8649 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8650 # Update the cache value to reflect the command line values.
8651 ac_cv_have_x="have_x=yes \
8652 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8653 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8654 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8657 if test "$no_x" = yes; then
8658 # Not all programs may use this symbol, but it does not hurt to define it.
8660 cat >>confdefs.h <<\_ACEOF
8661 #define X_DISPLAY_MISSING 1
8664 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8666 if test -n "$x_includes"; then
8667 X_CFLAGS="$X_CFLAGS -I$x_includes"
8670 # It would also be nice to do this for all -L options, not just this one.
8671 if test -n "$x_libraries"; then
8672 X_LIBS="$X_LIBS -L$x_libraries"
8673 # For Solaris; some versions of Sun CC require a space after -R and
8674 # others require no space. Words are not sufficient . . . .
8675 case `(uname -sr) 2>/dev/null` in
8677 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8678 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8679 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8680 cat >conftest.$ac_ext <<_ACEOF
8681 #line $LINENO "configure"
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698 (eval $ac_link) 2>&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -s conftest$ac_exeext'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8716 if test $ac_R_nospace = yes; then
8717 echo "$as_me:$LINENO: result: no" >&5
8718 echo "${ECHO_T}no" >&6
8719 X_LIBS="$X_LIBS -R$x_libraries"
8721 LIBS="$ac_xsave_LIBS -R $x_libraries"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } &&
8744 { ac_try='test -s conftest$ac_exeext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8758 if test $ac_R_space = yes; then
8759 echo "$as_me:$LINENO: result: yes" >&5
8760 echo "${ECHO_T}yes" >&6
8761 X_LIBS="$X_LIBS -R $x_libraries"
8763 echo "$as_me:$LINENO: result: neither works" >&5
8764 echo "${ECHO_T}neither works" >&6
8771 # Check for system-dependent libraries X programs must link with.
8772 # Do this before checking for the system-independent R6 libraries
8773 # (-lICE), since we may need -lsocket or whatever for X linking.
8775 if test "$ISC" = yes; then
8776 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8778 # Martyn Johnson says this is needed for Ultrix, if the X
8779 # libraries were built with DECnet support. And Karl Berry says
8780 # the Alpha needs dnet_stub (dnet does not exist).
8781 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8782 cat >conftest.$ac_ext <<_ACEOF
8783 #line $LINENO "configure"
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8790 /* Override any gcc2 internal prototype to avoid an error. */
8794 /* We use char because int might match the return type of a gcc2
8795 builtin and then its argument prototype would still apply. */
8796 char XOpenDisplay ();
8805 rm -f conftest.$ac_objext conftest$ac_exeext
8806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8807 (eval $ac_link) 2>&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8823 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8824 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 ac_check_lib_save_LIBS=$LIBS
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line $LINENO "configure"
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8837 /* Override any gcc2 internal prototype to avoid an error. */
8841 /* We use char because int might match the return type of a gcc2
8842 builtin and then its argument prototype would still apply. */
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_cv_lib_dnet_dnet_ntoa=yes
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 ac_cv_lib_dnet_dnet_ntoa=no
8871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8872 LIBS=$ac_check_lib_save_LIBS
8874 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8875 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8876 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8877 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8880 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8881 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8882 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8883 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_check_lib_save_LIBS=$LIBS
8887 LIBS="-ldnet_stub $LIBS"
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8896 /* Override any gcc2 internal prototype to avoid an error. */
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913 (eval $ac_link) 2>&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -s conftest$ac_exeext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_cv_lib_dnet_stub_dnet_ntoa=no
8930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8934 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8935 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8936 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8942 LIBS="$ac_xsave_LIBS"
8944 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8945 # to get the SysV transport functions.
8946 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8948 # The nsl library prevents programs from opening the X display
8949 # on Irix 5.2, according to T.E. Dickey.
8950 # The functions gethostbyname, getservbyname, and inet_addr are
8951 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8952 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8953 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8954 if test "${ac_cv_func_gethostbyname+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8958 #line $LINENO "configure"
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 /* System header to define __stub macros and hopefully few prototypes,
8965 which can conflict with char gethostbyname (); below.
8966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967 <limits.h> exists even on freestanding compilers. */
8969 # include <limits.h>
8971 # include <assert.h>
8973 /* Override any gcc2 internal prototype to avoid an error. */
8978 /* We use char because int might match the return type of a gcc2
8979 builtin and then its argument prototype would still apply. */
8980 char gethostbyname ();
8981 /* The GNU C library defines this for functions which it implements
8982 to always fail with ENOSYS. Some functions are actually named
8983 something starting with __ and the normal name is an alias. */
8984 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8987 char (*f) () = gethostbyname;
8996 return f != gethostbyname;
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003 (eval $ac_link) 2>&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -s conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_func_gethostbyname=yes
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 ac_cv_func_gethostbyname=no
9020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9023 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9025 if test $ac_cv_func_gethostbyname = no; then
9026 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9027 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9028 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 ac_check_lib_save_LIBS=$LIBS
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9041 /* Override any gcc2 internal prototype to avoid an error. */
9045 /* We use char because int might match the return type of a gcc2
9046 builtin and then its argument prototype would still apply. */
9047 char gethostbyname ();
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_lib_nsl_gethostbyname=yes
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ac_cv_lib_nsl_gethostbyname=no
9075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9076 LIBS=$ac_check_lib_save_LIBS
9078 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9079 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9080 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9081 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9084 if test $ac_cv_lib_nsl_gethostbyname = no; then
9085 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9086 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9087 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 ac_check_lib_save_LIBS=$LIBS
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9106 char gethostbyname ();
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_cv_lib_bsd_gethostbyname=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_cv_lib_bsd_gethostbyname=no
9134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9137 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9138 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9139 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9146 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9147 # socket/setsockopt and other routines are undefined under SCO ODT
9148 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9149 # on later versions), says Simon Leinen: it contains gethostby*
9150 # variants that don't use the name server (or something). -lsocket
9151 # must be given before -lnsl if both are needed. We assume that
9152 # if connect needs -lnsl, so does gethostbyname.
9153 echo "$as_me:$LINENO: checking for connect" >&5
9154 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9155 if test "${ac_cv_func_connect+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9159 #line $LINENO "configure"
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 /* System header to define __stub macros and hopefully few prototypes,
9166 which can conflict with char connect (); below.
9167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9168 <limits.h> exists even on freestanding compilers. */
9170 # include <limits.h>
9172 # include <assert.h>
9174 /* Override any gcc2 internal prototype to avoid an error. */
9179 /* We use char because int might match the return type of a gcc2
9180 builtin and then its argument prototype would still apply. */
9182 /* The GNU C library defines this for functions which it implements
9183 to always fail with ENOSYS. Some functions are actually named
9184 something starting with __ and the normal name is an alias. */
9185 #if defined (__stub_connect) || defined (__stub___connect)
9188 char (*f) () = connect;
9197 return f != connect;
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204 (eval $ac_link) 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_func_connect=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_cv_func_connect=no
9221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9223 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9224 echo "${ECHO_T}$ac_cv_func_connect" >&6
9226 if test $ac_cv_func_connect = no; then
9227 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9228 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9229 if test "${ac_cv_lib_socket_connect+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 ac_check_lib_save_LIBS=$LIBS
9233 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9234 cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9242 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259 (eval $ac_link) 2>&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -s conftest$ac_exeext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 ac_cv_lib_socket_connect=yes
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 ac_cv_lib_socket_connect=no
9276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9279 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9280 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9281 if test $ac_cv_lib_socket_connect = yes; then
9282 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9287 # Guillermo Gomez says -lposix is necessary on A/UX.
9288 echo "$as_me:$LINENO: checking for remove" >&5
9289 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9290 if test "${ac_cv_func_remove+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 cat >conftest.$ac_ext <<_ACEOF
9294 #line $LINENO "configure"
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 /* System header to define __stub macros and hopefully few prototypes,
9301 which can conflict with char remove (); below.
9302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9303 <limits.h> exists even on freestanding compilers. */
9305 # include <limits.h>
9307 # include <assert.h>
9309 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9317 /* The GNU C library defines this for functions which it implements
9318 to always fail with ENOSYS. Some functions are actually named
9319 something starting with __ and the normal name is an alias. */
9320 #if defined (__stub_remove) || defined (__stub___remove)
9323 char (*f) () = remove;
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -s conftest$ac_exeext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 ac_cv_func_remove=yes
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9354 ac_cv_func_remove=no
9356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9359 echo "${ECHO_T}$ac_cv_func_remove" >&6
9361 if test $ac_cv_func_remove = no; then
9362 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9363 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9364 if test "${ac_cv_lib_posix_remove+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 ac_check_lib_save_LIBS=$LIBS
9368 LIBS="-lposix $LIBS"
9369 cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9377 /* Override any gcc2 internal prototype to avoid an error. */
9381 /* We use char because int might match the return type of a gcc2
9382 builtin and then its argument prototype would still apply. */
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -s conftest$ac_exeext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 ac_cv_lib_posix_remove=yes
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9409 ac_cv_lib_posix_remove=no
9411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9414 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9415 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9416 if test $ac_cv_lib_posix_remove = yes; then
9417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9422 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9423 echo "$as_me:$LINENO: checking for shmat" >&5
9424 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9425 if test "${ac_cv_func_shmat+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 cat >conftest.$ac_ext <<_ACEOF
9429 #line $LINENO "configure"
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9435 /* System header to define __stub macros and hopefully few prototypes,
9436 which can conflict with char shmat (); below.
9437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438 <limits.h> exists even on freestanding compilers. */
9440 # include <limits.h>
9442 # include <assert.h>
9444 /* Override any gcc2 internal prototype to avoid an error. */
9449 /* We use char because int might match the return type of a gcc2
9450 builtin and then its argument prototype would still apply. */
9452 /* The GNU C library defines this for functions which it implements
9453 to always fail with ENOSYS. Some functions are actually named
9454 something starting with __ and the normal name is an alias. */
9455 #if defined (__stub_shmat) || defined (__stub___shmat)
9458 char (*f) () = shmat;
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } &&
9478 { ac_try='test -s conftest$ac_exeext'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_func_shmat=yes
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9494 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9496 if test $ac_cv_func_shmat = no; then
9497 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9498 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9499 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 ac_check_lib_save_LIBS=$LIBS
9504 cat >conftest.$ac_ext <<_ACEOF
9505 #line $LINENO "configure"
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9512 /* Override any gcc2 internal prototype to avoid an error. */
9516 /* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_lib_ipc_shmat=yes
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9544 ac_cv_lib_ipc_shmat=no
9546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9547 LIBS=$ac_check_lib_save_LIBS
9549 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9550 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9551 if test $ac_cv_lib_ipc_shmat = yes; then
9552 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9558 # Check for libraries that X11R6 Xt/Xaw programs need.
9559 ac_save_LDFLAGS=$LDFLAGS
9560 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9561 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9562 # check for ICE first), but we must link in the order -lSM -lICE or
9563 # we get undefined symbols. So assume we have SM if we have ICE.
9564 # These have to be linked with before -lX11, unlike the other
9565 # libraries we check for below, so use a different variable.
9566 # John Interrante, Karl Berry
9567 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9568 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9569 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9582 /* Override any gcc2 internal prototype to avoid an error. */
9586 /* We use char because int might match the return type of a gcc2
9587 builtin and then its argument prototype would still apply. */
9588 char IceConnectionNumber ();
9592 IceConnectionNumber ();
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try='test -s conftest$ac_exeext'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9609 ac_cv_lib_ICE_IceConnectionNumber=yes
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9614 ac_cv_lib_ICE_IceConnectionNumber=no
9616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9619 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9620 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9621 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9622 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9625 LDFLAGS=$ac_save_LDFLAGS
9636 X_TOOLKIT_LIBS="-lXt"
9637 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9639 our_saved_LDFLAGS="$LDFLAGS"
9640 LDFLAGS="$X_LIBS $LDFLAGS"
9641 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9642 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9643 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 ac_check_lib_save_LIBS=$LIBS
9647 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9648 cat >conftest.$ac_ext <<_ACEOF
9649 #line $LINENO "configure"
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 /* Override any gcc2 internal prototype to avoid an error. */
9660 /* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9662 char XtToolkitThreadInitialize ();
9666 XtToolkitThreadInitialize ();
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -s conftest$ac_exeext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9693 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9694 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9695 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9697 cat >>confdefs.h <<\_ACEOF
9698 #define X_THREAD_SUPPORT 1
9703 LDFLAGS="$our_saved_LDFLAGS"
9707 if test "x$no_x" = "xyes"; then
9716 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9719 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9721 echo "$as_me:$LINENO: checking for X" >&5
9722 echo $ECHO_N "checking for X... $ECHO_C" >&6
9723 if test "$no_x" != "yes" ; then
9725 cat >>confdefs.h <<\_ACEOF
9729 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
9730 my_includes="$my_includes -I/usr/X11R6/include"
9731 ctlib_graphics="$ctlibs_base -lctgraphics"
9732 echo "$as_me:$LINENO: result: yes" >&5
9733 echo "${ECHO_T}yes" >&6
9734 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9735 if test "$libgl" = "true" ; then
9736 # Removed "-lglut" for Mac OS X compilation
9737 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9738 if test "$wxwin" = "true" ; then
9740 ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
9741 elif "$wx_mac" ; then
9742 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9746 if test "$wxwin" = "true" ; then
9748 cat >>confdefs.h <<\_ACEOF
9754 echo "$as_me:$LINENO: result: no" >&5
9755 echo "${ECHO_T}no" >&6
9760 if test "$wxwin" = "true"; then
9769 if test "$png" = "true" ; then
9770 ctlibs_tools="$ctlibs_tools -lpng"
9772 if test "$zlib" = "true" ; then
9773 ctlibs_tools="$ctlibs_tools -lz"
9775 if test "$fftw" = "true" ; then
9776 ctlibs_tools="$ctlibs_tools -lfftw3"
9778 if test "$ctn" = "true"; then
9779 ctlibs_tools="$ctlibs_tools -lctn"
9782 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9783 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9784 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 ac_check_lib_save_LIBS=$LIBS
9788 LIBS="-ldmallocxx $LIBS"
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9808 (eval $ac_link) 2>&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -s conftest$ac_exeext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_lib_dmallocxx_main=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_cv_lib_dmallocxx_main=no
9825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9828 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9829 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9830 if test $ac_cv_lib_dmallocxx_main = yes; then
9836 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9837 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9838 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9839 if test "${enable_dmalloc+set}" = set; then
9840 enableval="$enable_dmalloc"
9841 case "${enableval}" in
9842 yes) usedmalloc=true
9843 echo "$as_me:$LINENO: result: yes" >&5
9844 echo "${ECHO_T}yes" >&6
9846 no) usedmalloc=false
9847 echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6
9850 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9851 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9855 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6
9859 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9860 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9862 cat >>confdefs.h <<\_ACEOF
9863 #define HAVE_DMALLOC 1
9866 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9867 echo "${ECHO_T}Using dmalloc" >&6
9870 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9871 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9872 if test "${ac_cv_lib_efence_main+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 ac_check_lib_save_LIBS=$LIBS
9876 LIBS="-lefence $LIBS"
9877 cat >conftest.$ac_ext <<_ACEOF
9878 #line $LINENO "configure"
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_lib_efence_main=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_cv_lib_efence_main=no
9913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9916 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9917 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9918 if test $ac_cv_lib_efence_main = yes; then
9924 echo "$as_me:$LINENO: checking for enable-efence" >&5
9925 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9926 # Check whether --enable-efence or --disable-efence was given.
9927 if test "${enable_efence+set}" = set; then
9928 enableval="$enable_efence"
9929 case "${enableval}" in
9931 echo "$as_me:$LINENO: result: yes" >&5
9932 echo "${ECHO_T}yes" >&6
9935 echo "$as_me:$LINENO: result: no" >&5
9936 echo "${ECHO_T}no" >&6
9938 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9939 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9943 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6
9947 if test "$efence" = "true" -a "$useefence" = "true" ; then
9948 ctlibs_tools="$ctlibs_tools -lefence"
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_EFENCE 1
9954 echo "$as_me:$LINENO: result: Using efence" >&5
9955 echo "${ECHO_T}Using efence" >&6
9958 if test "$wxwin" = "true" ; then
9959 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
9960 wxcflags=`$wxconfig --cflags`
9961 wxlibs=`$wxconfig --libs`
9963 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9964 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9966 CFLAGS="$CFLAGS -I../include $wxcflags"
9967 ctlib_graphics="$ctlib_graphics $wxlibs"
9973 if test "$wxwin"="true"; then
9974 HAVE_WXWINDOWS_TRUE=
9975 HAVE_WXWINDOWS_FALSE='#'
9977 HAVE_WXWINDOWS_TRUE='#'
9978 HAVE_WXWINDOWS_FALSE=
9982 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9983 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9986 if test -n "$lamdir" ; then
9987 lamprograms="ctsimtext-lam"
9995 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"
9998 cat >confcache <<\_ACEOF
9999 # This file is a shell script that caches the results of configure
10000 # tests run on this system so they can be shared between configure
10001 # scripts and configure runs, see configure's option --config-cache.
10002 # It is not useful on other systems. If it contains results you don't
10003 # want to keep, you may remove or edit it.
10005 # config.status only pays attention to the cache file if you give it
10006 # the --recheck option to rerun configure.
10008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10010 # following values.
10014 # The following way of writing the cache mishandles newlines in values,
10015 # but we know of no workaround that is simple, portable, and efficient.
10016 # So, don't put newlines in cache variables' values.
10017 # Ultrix sh set writes to stderr and can't be redirected directly,
10018 # and sets the high bit in the cache file unless we assign to the vars.
10021 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10023 # `set' does not quote correctly, so add quotes (double-quote
10024 # substitution turns \\\\ into \\, and sed turns \\ into \).
10027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10030 # `set' quotes correctly as required by POSIX, so do not add quotes.
10032 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10039 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10041 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10043 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10044 if test -w $cache_file; then
10045 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10046 cat confcache >$cache_file
10048 echo "not updating unwritable cache $cache_file"
10053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10054 # Let make expand exec_prefix.
10055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10059 # trailing colons and then remove the whole line if VPATH becomes empty
10060 # (actually we leave an empty line to preserve line numbers).
10061 if test "x$srcdir" = x.; then
10062 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10063 s/:*\$(srcdir):*/:/;
10064 s/:*\${srcdir}:*/:/;
10066 s/^\([^=]*=[ ]*\):*/\1/;
10072 DEFS=-DHAVE_CONFIG_H
10076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10077 # 1. Remove the extension, and $U if already installed.
10078 ac_i=`echo "$ac_i" |
10079 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10081 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10082 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10084 LIBOBJS=$ac_libobjs
10086 LTLIBOBJS=$ac_ltlibobjs
10089 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10090 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10091 Usually this means the macro was only invoked conditionally." >&5
10092 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10093 Usually this means the macro was only invoked conditionally." >&2;}
10094 { (exit 1); exit 1; }; }
10096 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10097 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10098 Usually this means the macro was only invoked conditionally." >&5
10099 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10100 Usually this means the macro was only invoked conditionally." >&2;}
10101 { (exit 1); exit 1; }; }
10103 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10104 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10105 Usually this means the macro was only invoked conditionally." >&5
10106 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10107 Usually this means the macro was only invoked conditionally." >&2;}
10108 { (exit 1); exit 1; }; }
10110 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10111 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10112 Usually this means the macro was only invoked conditionally." >&5
10113 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10114 Usually this means the macro was only invoked conditionally." >&2;}
10115 { (exit 1); exit 1; }; }
10117 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10118 { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10119 Usually this means the macro was only invoked conditionally." >&5
10120 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10121 Usually this means the macro was only invoked conditionally." >&2;}
10122 { (exit 1); exit 1; }; }
10124 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10125 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10126 Usually this means the macro was only invoked conditionally." >&5
10127 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10128 Usually this means the macro was only invoked conditionally." >&2;}
10129 { (exit 1); exit 1; }; }
10131 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10132 { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10133 Usually this means the macro was only invoked conditionally." >&5
10134 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10135 Usually this means the macro was only invoked conditionally." >&2;}
10136 { (exit 1); exit 1; }; }
10138 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10139 { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10140 Usually this means the macro was only invoked conditionally." >&5
10141 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10142 Usually this means the macro was only invoked conditionally." >&2;}
10143 { (exit 1); exit 1; }; }
10145 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10146 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10147 Usually this means the macro was only invoked conditionally." >&5
10148 echo "$as_me: error: conditional \"NO_X\" was never defined.
10149 Usually this means the macro was only invoked conditionally." >&2;}
10150 { (exit 1); exit 1; }; }
10152 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10153 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10154 Usually this means the macro was only invoked conditionally." >&5
10155 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10156 Usually this means the macro was only invoked conditionally." >&2;}
10157 { (exit 1); exit 1; }; }
10159 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
10160 { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10161 Usually this means the macro was only invoked conditionally." >&5
10162 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10163 Usually this means the macro was only invoked conditionally." >&2;}
10164 { (exit 1); exit 1; }; }
10167 : ${CONFIG_STATUS=./config.status}
10168 ac_clean_files_save=$ac_clean_files
10169 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10170 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10171 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10172 cat >$CONFIG_STATUS <<_ACEOF
10174 # Generated by $as_me.
10175 # Run this file to recreate the current configuration.
10176 # Compiler output produced by configure, useful for debugging
10177 # configure, is in config.log if it exists.
10180 ac_cs_recheck=false
10182 SHELL=\${CONFIG_SHELL-$SHELL}
10185 cat >>$CONFIG_STATUS <<\_ACEOF
10186 ## --------------------- ##
10187 ## M4sh Initialization. ##
10188 ## --------------------- ##
10190 # Be Bourne compatible
10191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10194 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10195 # is contrary to our usage. Disable this feature.
10196 alias -g '${1+"$@"}'='"$@"'
10197 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10201 # Support unset when possible.
10202 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10209 # Work around bugs in pre-3.0 UWIN ksh.
10210 $as_unset ENV MAIL MAILPATH
10217 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10218 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10219 LC_TELEPHONE LC_TIME
10221 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10222 eval $as_var=C; export $as_var
10228 # Required to use basename.
10229 if expr a : '\(a\)' >/dev/null 2>&1; then
10235 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10236 as_basename=basename
10242 # Name of the executable.
10243 as_me=`$as_basename "$0" ||
10244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10245 X"$0" : 'X\(//\)$' \| \
10246 X"$0" : 'X\(/\)$' \| \
10247 . : '\(.\)' 2>/dev/null ||
10249 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10250 /^X\/\(\/\/\)$/{ s//\1/; q; }
10251 /^X\/\(\/\).*/{ s//\1/; q; }
10255 # PATH needs CR, and LINENO needs CR and PATH.
10256 # Avoid depending upon Character Ranges.
10257 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10258 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10259 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10260 as_cr_digits='0123456789'
10261 as_cr_alnum=$as_cr_Letters$as_cr_digits
10263 # The user is always right.
10264 if test "${PATH_SEPARATOR+set}" != set; then
10265 echo "#! /bin/sh" >conf$$.sh
10266 echo "exit 0" >>conf$$.sh
10268 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10277 as_lineno_1=$LINENO
10278 as_lineno_2=$LINENO
10279 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10280 test "x$as_lineno_1" != "x$as_lineno_2" &&
10281 test "x$as_lineno_3" = "x$as_lineno_2" || {
10282 # Find who we are. Look in the path if we contain no path at all
10285 *[\\/]* ) as_myself=$0 ;;
10286 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10290 test -z "$as_dir" && as_dir=.
10291 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10296 # We did not find ourselves, most probably we were run as `sh COMMAND'
10297 # in which case we are not to be found in the path.
10298 if test "x$as_myself" = x; then
10301 if test ! -f "$as_myself"; then
10302 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10303 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10304 { (exit 1); exit 1; }; }
10306 case $CONFIG_SHELL in
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10312 test -z "$as_dir" && as_dir=.
10313 for as_base in sh bash ksh sh5; do
10316 if ("$as_dir/$as_base" -c '
10317 as_lineno_1=$LINENO
10318 as_lineno_2=$LINENO
10319 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10320 test "x$as_lineno_1" != "x$as_lineno_2" &&
10321 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10322 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10323 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10324 CONFIG_SHELL=$as_dir/$as_base
10325 export CONFIG_SHELL
10326 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10334 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10335 # uniformly replaced by the line number. The first 'sed' inserts a
10336 # line-number line before each line; the second 'sed' does the real
10337 # work. The second script uses 'N' to pair each line-number line
10338 # with the numbered line, and appends trailing '-' during
10339 # substitution so that $LINENO is not a special case at line end.
10340 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10341 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10342 sed '=' <$as_myself |
10347 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10350 s,^['$as_cr_digits']*\n,,
10351 ' >$as_me.lineno &&
10352 chmod +x $as_me.lineno ||
10353 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10354 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10355 { (exit 1); exit 1; }; }
10357 # Don't try to exec as it changes $[0], causing all sort of problems
10358 # (the dirname of $[0] is not the place where we might find the
10359 # original and so on. Autoconf is especially sensible to this).
10361 # Exit status is that of the last command.
10366 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10367 *c*,-n*) ECHO_N= ECHO_C='
10369 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10370 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10373 if expr a : '\(a\)' >/dev/null 2>&1; then
10379 rm -f conf$$ conf$$.exe conf$$.file
10381 if ln -s conf$$.file conf$$ 2>/dev/null; then
10382 # We could just check for DJGPP; but this test a) works b) is more generic
10383 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10384 if test -f conf$$.exe; then
10385 # Don't use ln at all; we don't have any links
10390 elif ln conf$$.file conf$$ 2>/dev/null; then
10395 rm -f conf$$ conf$$.exe conf$$.file
10397 if mkdir -p . 2>/dev/null; then
10403 as_executable_p="test -f"
10405 # Sed expression to map a string onto a valid CPP name.
10406 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10408 # Sed expression to map a string onto a valid variable name.
10409 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10413 # We need space, tab and new line, in precisely that order.
10423 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10424 # report actual input values of CONFIG_FILES etc. instead of their
10425 # values after options handling. Logging --version etc. is OK.
10429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10430 ## Running $as_me. ##
10435 This file was extended by $as_me, which was
10436 generated by GNU Autoconf 2.57. Invocation command line was
10438 CONFIG_FILES = $CONFIG_FILES
10439 CONFIG_HEADERS = $CONFIG_HEADERS
10440 CONFIG_LINKS = $CONFIG_LINKS
10441 CONFIG_COMMANDS = $CONFIG_COMMANDS
10445 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10449 # Files that config.status was made for.
10450 if test -n "$ac_config_files"; then
10451 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10454 if test -n "$ac_config_headers"; then
10455 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10458 if test -n "$ac_config_links"; then
10459 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10462 if test -n "$ac_config_commands"; then
10463 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10466 cat >>$CONFIG_STATUS <<\_ACEOF
10469 \`$as_me' instantiates files from templates according to the
10470 current configuration.
10472 Usage: $0 [OPTIONS] [FILE]...
10474 -h, --help print this help, then exit
10475 -V, --version print version number, then exit
10476 -q, --quiet do not print progress messages
10477 -d, --debug don't remove temporary files
10478 --recheck update $as_me by reconfiguring in the same conditions
10479 --file=FILE[:TEMPLATE]
10480 instantiate the configuration file FILE
10481 --header=FILE[:TEMPLATE]
10482 instantiate the configuration header FILE
10484 Configuration files:
10487 Configuration headers:
10490 Configuration commands:
10493 Report bugs to <bug-autoconf@gnu.org>."
10496 cat >>$CONFIG_STATUS <<_ACEOF
10499 configured by $0, generated by GNU Autoconf 2.57,
10500 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10502 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10503 Free Software Foundation, Inc.
10504 This config.status script is free software; the Free Software Foundation
10505 gives unlimited permission to copy, distribute and modify it."
10510 cat >>$CONFIG_STATUS <<\_ACEOF
10511 # If no file are specified by the user, then we need to provide default
10512 # value. By we need to know if files were specified by the user.
10518 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10519 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10527 *) # This is not an option, so the user has probably given explicit
10530 ac_need_defaults=false;;
10534 # Handling of the options.
10536 cat >>$CONFIG_STATUS <<\_ACEOF
10537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10539 --version | --vers* | -V )
10540 echo "$ac_cs_version"; exit 0 ;;
10542 # Conflict between --help and --header
10543 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10544 Try \`$0 --help' for more information." >&5
10545 echo "$as_me: error: ambiguous option: $1
10546 Try \`$0 --help' for more information." >&2;}
10547 { (exit 1); exit 1; }; };;
10548 --help | --hel | -h )
10549 echo "$ac_cs_usage"; exit 0 ;;
10550 --debug | --d* | -d )
10552 --file | --fil | --fi | --f )
10554 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10555 ac_need_defaults=false;;
10556 --header | --heade | --head | --hea )
10558 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10559 ac_need_defaults=false;;
10560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10561 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10564 # This is an error.
10565 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10566 Try \`$0 --help' for more information." >&5
10567 echo "$as_me: error: unrecognized option: $1
10568 Try \`$0 --help' for more information." >&2;}
10569 { (exit 1); exit 1; }; } ;;
10571 *) ac_config_targets="$ac_config_targets $1" ;;
10577 ac_configure_extra_args=
10579 if $ac_cs_silent; then
10581 ac_configure_extra_args="$ac_configure_extra_args --silent"
10585 cat >>$CONFIG_STATUS <<_ACEOF
10586 if \$ac_cs_recheck; then
10587 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10588 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10593 cat >>$CONFIG_STATUS <<_ACEOF
10595 # INIT-COMMANDS section.
10598 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10604 cat >>$CONFIG_STATUS <<\_ACEOF
10605 for ac_config_target in $ac_config_targets
10607 case "$ac_config_target" in
10608 # Handling of arguments.
10609 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10610 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10611 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10612 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10613 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10614 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10615 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10616 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10617 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10618 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10619 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10620 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10621 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10622 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10623 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10624 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10625 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10626 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10627 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10628 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10629 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10630 { (exit 1); exit 1; }; };;
10634 # If the user did not use the arguments to specify the items to instantiate,
10635 # then the envvar interface is used. Set only those that are not.
10636 # We use the long form for the default assignment because of an extremely
10637 # bizarre bug on SunOS 4.1.3.
10638 if $ac_need_defaults; then
10639 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10640 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10641 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10644 # Have a temporary directory for convenience. Make it in the build tree
10645 # simply because there is no reason to put it here, and in addition,
10646 # creating and moving files from /tmp can sometimes cause problems.
10647 # Create a temporary directory, and hook for its removal unless debugging.
10650 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10651 trap '{ (exit 1); exit 1; }' 1 2 13 15
10654 # Create a (secure) tmp directory for tmp files.
10657 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10658 test -n "$tmp" && test -d "$tmp"
10661 tmp=./confstat$$-$RANDOM
10662 (umask 077 && mkdir $tmp)
10665 echo "$me: cannot create a temporary directory in ." >&2
10666 { (exit 1); exit 1; }
10671 cat >>$CONFIG_STATUS <<_ACEOF
10674 # CONFIG_FILES section.
10677 # No need to generate the scripts if there are no CONFIG_FILES.
10678 # This happens for instance when ./config.status config.h
10679 if test -n "\$CONFIG_FILES"; then
10680 # Protect against being on the right side of a sed subst in config.status.
10681 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10682 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10683 s,@SHELL@,$SHELL,;t t
10684 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10685 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10686 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10687 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10688 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10689 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10690 s,@exec_prefix@,$exec_prefix,;t t
10691 s,@prefix@,$prefix,;t t
10692 s,@program_transform_name@,$program_transform_name,;t t
10693 s,@bindir@,$bindir,;t t
10694 s,@sbindir@,$sbindir,;t t
10695 s,@libexecdir@,$libexecdir,;t t
10696 s,@datadir@,$datadir,;t t
10697 s,@sysconfdir@,$sysconfdir,;t t
10698 s,@sharedstatedir@,$sharedstatedir,;t t
10699 s,@localstatedir@,$localstatedir,;t t
10700 s,@libdir@,$libdir,;t t
10701 s,@includedir@,$includedir,;t t
10702 s,@oldincludedir@,$oldincludedir,;t t
10703 s,@infodir@,$infodir,;t t
10704 s,@mandir@,$mandir,;t t
10705 s,@build_alias@,$build_alias,;t t
10706 s,@host_alias@,$host_alias,;t t
10707 s,@target_alias@,$target_alias,;t t
10708 s,@DEFS@,$DEFS,;t t
10709 s,@ECHO_C@,$ECHO_C,;t t
10710 s,@ECHO_N@,$ECHO_N,;t t
10711 s,@ECHO_T@,$ECHO_T,;t t
10712 s,@LIBS@,$LIBS,;t t
10713 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10714 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10715 s,@MAINT@,$MAINT,;t t
10716 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10717 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10718 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10719 s,@CYGPATH_W@,$CYGPATH_W,;t t
10720 s,@PACKAGE@,$PACKAGE,;t t
10721 s,@VERSION@,$VERSION,;t t
10722 s,@ACLOCAL@,$ACLOCAL,;t t
10723 s,@AUTOCONF@,$AUTOCONF,;t t
10724 s,@AUTOMAKE@,$AUTOMAKE,;t t
10725 s,@AUTOHEADER@,$AUTOHEADER,;t t
10726 s,@MAKEINFO@,$MAKEINFO,;t t
10727 s,@AMTAR@,$AMTAR,;t t
10728 s,@install_sh@,$install_sh,;t t
10729 s,@STRIP@,$STRIP,;t t
10730 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10731 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10733 s,@SET_MAKE@,$SET_MAKE,;t t
10734 s,@am__leading_dot@,$am__leading_dot,;t t
10735 s,@RANLIB@,$RANLIB,;t t
10736 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10738 s,@CFLAGS@,$CFLAGS,;t t
10739 s,@LDFLAGS@,$LDFLAGS,;t t
10740 s,@CPPFLAGS@,$CPPFLAGS,;t t
10741 s,@ac_ct_CC@,$ac_ct_CC,;t t
10742 s,@EXEEXT@,$EXEEXT,;t t
10743 s,@OBJEXT@,$OBJEXT,;t t
10744 s,@DEPDIR@,$DEPDIR,;t t
10745 s,@am__include@,$am__include,;t t
10746 s,@am__quote@,$am__quote,;t t
10747 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10748 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10749 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10750 s,@CCDEPMODE@,$CCDEPMODE,;t t
10751 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10752 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10754 s,@CXXFLAGS@,$CXXFLAGS,;t t
10755 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10756 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10757 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10758 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10759 s,@wxconfig@,$wxconfig,;t t
10760 s,@build@,$build,;t t
10761 s,@build_cpu@,$build_cpu,;t t
10762 s,@build_vendor@,$build_vendor,;t t
10763 s,@build_os@,$build_os,;t t
10764 s,@host@,$host,;t t
10765 s,@host_cpu@,$host_cpu,;t t
10766 s,@host_vendor@,$host_vendor,;t t
10767 s,@host_os@,$host_os,;t t
10769 s,@EGREP@,$EGREP,;t t
10770 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10771 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10772 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10773 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10774 s,@lamdir@,$lamdir,;t t
10775 s,@mpienable@,$mpienable,;t t
10776 s,@cgibindir@,$cgibindir,;t t
10777 s,@cgibinurl@,$cgibinurl,;t t
10778 s,@webdatadir@,$webdatadir,;t t
10779 s,@webdataurl@,$webdataurl,;t t
10780 s,@htmldir@,$htmldir,;t t
10781 s,@cgiprograms@,$cgiprograms,;t t
10782 s,@htmldata@,$htmldata,;t t
10783 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10784 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10785 s,@webenabled@,$webenabled,;t t
10786 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10787 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10788 s,@X_CFLAGS@,$X_CFLAGS,;t t
10789 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10790 s,@X_LIBS@,$X_LIBS,;t t
10791 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10792 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10793 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10794 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10795 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10796 s,@my_includes@,$my_includes,;t t
10797 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10798 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10799 s,@wxcflags@,$wxcflags,;t t
10800 s,@wxlibs@,$wxlibs,;t t
10801 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10802 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10803 s,@ctlibs@,$ctlibs,;t t
10804 s,@lamprograms@,$lamprograms,;t t
10805 s,@lamdefs@,$lamdefs,;t t
10806 s,@LIBOBJS@,$LIBOBJS,;t t
10807 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10812 cat >>$CONFIG_STATUS <<\_ACEOF
10813 # Split the substitutions into bite-sized pieces for seds with
10814 # small command number limits, like on Digital OSF/1 and HP-UX.
10815 ac_max_sed_lines=48
10816 ac_sed_frag=1 # Number of current file.
10817 ac_beg=1 # First line for current file.
10818 ac_end=$ac_max_sed_lines # Line after last line for current file.
10821 while $ac_more_lines; do
10822 if test $ac_beg -gt 1; then
10823 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10825 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10827 if test ! -s $tmp/subs.frag; then
10828 ac_more_lines=false
10830 # The purpose of the label and of the branching condition is to
10831 # speed up the sed processing (if there are no `@' at all, there
10832 # is no need to browse any of the substitutions).
10833 # These are the two extra sed commands mentioned above.
10835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10836 if test -z "$ac_sed_cmds"; then
10837 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10839 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10841 ac_sed_frag=`expr $ac_sed_frag + 1`
10843 ac_end=`expr $ac_end + $ac_max_sed_lines`
10846 if test -z "$ac_sed_cmds"; then
10849 fi # test -n "$CONFIG_FILES"
10852 cat >>$CONFIG_STATUS <<\_ACEOF
10853 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10854 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10856 - | *:- | *:-:* ) # input from stdin
10858 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10859 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10860 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10861 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10862 * ) ac_file_in=$ac_file.in ;;
10865 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10866 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10867 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10868 X"$ac_file" : 'X\(//\)[^/]' \| \
10869 X"$ac_file" : 'X\(//\)$' \| \
10870 X"$ac_file" : 'X\(/\)' \| \
10871 . : '\(.\)' 2>/dev/null ||
10873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10875 /^X\(\/\/\)$/{ s//\1/; q; }
10876 /^X\(\/\).*/{ s//\1/; q; }
10878 { if $as_mkdir_p; then
10883 while test ! -d "$as_dir"; do
10884 as_dirs="$as_dir $as_dirs"
10885 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10887 X"$as_dir" : 'X\(//\)[^/]' \| \
10888 X"$as_dir" : 'X\(//\)$' \| \
10889 X"$as_dir" : 'X\(/\)' \| \
10890 . : '\(.\)' 2>/dev/null ||
10892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10894 /^X\(\/\/\)$/{ s//\1/; q; }
10895 /^X\(\/\).*/{ s//\1/; q; }
10898 test ! -n "$as_dirs" || mkdir $as_dirs
10899 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10900 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10901 { (exit 1); exit 1; }; }; }
10905 if test "$ac_dir" != .; then
10906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10907 # A "../" for each directory in $ac_dir_suffix.
10908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10910 ac_dir_suffix= ac_top_builddir=
10914 .) # No --srcdir option. We are building in place.
10916 if test -z "$ac_top_builddir"; then
10919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10921 [\\/]* | ?:[\\/]* ) # Absolute path.
10922 ac_srcdir=$srcdir$ac_dir_suffix;
10923 ac_top_srcdir=$srcdir ;;
10924 *) # Relative path.
10925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10931 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10937 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10938 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10941 if test x"$ac_file" != x-; then
10942 { echo "$as_me:$LINENO: creating $ac_file" >&5
10943 echo "$as_me: creating $ac_file" >&6;}
10946 # Let's still pretend it is `configure' which instantiates (i.e., don't
10947 # use $as_me), people would be surprised to read:
10948 # /* config.h. Generated by config.status. */
10949 if test x"$ac_file" = x-; then
10952 configure_input="$ac_file. "
10954 configure_input=$configure_input"Generated from `echo $ac_file_in |
10955 sed 's,.*/,,'` by configure."
10957 # First look for the input files in the build tree, otherwise in the
10959 ac_file_inputs=`IFS=:
10960 for f in $ac_file_in; do
10962 -) echo $tmp/stdin ;;
10964 # Absolute (can't be DOS-style, as IFS=:)
10965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10966 echo "$as_me: error: cannot find input file: $f" >&2;}
10967 { (exit 1); exit 1; }; }
10970 if test -f "$f"; then
10973 elif test -f "$srcdir/$f"; then
10978 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10979 echo "$as_me: error: cannot find input file: $f" >&2;}
10980 { (exit 1); exit 1; }; }
10983 done` || { (exit 1); exit 1; }
10985 cat >>$CONFIG_STATUS <<_ACEOF
10989 cat >>$CONFIG_STATUS <<\_ACEOF
10991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10992 s,@configure_input@,$configure_input,;t t
10993 s,@srcdir@,$ac_srcdir,;t t
10994 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10995 s,@top_srcdir@,$ac_top_srcdir,;t t
10996 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10997 s,@builddir@,$ac_builddir,;t t
10998 s,@abs_builddir@,$ac_abs_builddir,;t t
10999 s,@top_builddir@,$ac_top_builddir,;t t
11000 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11001 s,@INSTALL@,$ac_INSTALL,;t t
11002 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11004 if test x"$ac_file" != x-; then
11005 mv $tmp/out $ac_file
11013 cat >>$CONFIG_STATUS <<\_ACEOF
11016 # CONFIG_HEADER section.
11019 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11020 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11022 # ac_d sets the value in "#define NAME VALUE" lines.
11023 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11024 ac_dB='[ ].*$,\1#\2'
11027 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11028 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11029 ac_uB='$,\1#\2define\3'
11033 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11036 - | *:- | *:-:* ) # input from stdin
11038 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11040 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11042 * ) ac_file_in=$ac_file.in ;;
11045 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11046 echo "$as_me: creating $ac_file" >&6;}
11048 # First look for the input files in the build tree, otherwise in the
11050 ac_file_inputs=`IFS=:
11051 for f in $ac_file_in; do
11053 -) echo $tmp/stdin ;;
11055 # Absolute (can't be DOS-style, as IFS=:)
11056 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11057 echo "$as_me: error: cannot find input file: $f" >&2;}
11058 { (exit 1); exit 1; }; }
11061 if test -f "$f"; then
11064 elif test -f "$srcdir/$f"; then
11069 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11070 echo "$as_me: error: cannot find input file: $f" >&2;}
11071 { (exit 1); exit 1; }; }
11074 done` || { (exit 1); exit 1; }
11075 # Remove the trailing spaces.
11076 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11080 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11081 # `conftest.undefs', that substitutes the proper values into
11082 # config.h.in to produce config.h. The first handles `#define'
11083 # templates, and the second `#undef' templates.
11084 # And first: Protect against being on the right side of a sed subst in
11085 # config.status. Protect against being in an unquoted here document
11086 # in config.status.
11087 rm -f conftest.defines conftest.undefs
11088 # Using a here document instead of a string reduces the quoting nightmare.
11089 # Putting comments in sed scripts is not portable.
11091 # `end' is used to avoid that the second main sed command (meant for
11092 # 0-ary CPP macros) applies to n-ary macro definitions.
11093 # See the Autoconf documentation for `clear'.
11094 cat >confdef2sed.sed <<\_ACEOF
11099 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11101 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11104 # If some macros were called several times there might be several times
11105 # the same #defines, which is useless. Nevertheless, we may not want to
11106 # sort them, since we want the *last* AC-DEFINE to be honored.
11107 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11108 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11109 rm -f confdef2sed.sed
11111 # This sed command replaces #undef with comments. This is necessary, for
11112 # example, in the case of _POSIX_SOURCE, which is predefined and required
11113 # on some systems where configure will not decide to define it.
11114 cat >>conftest.undefs <<\_ACEOF
11115 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11118 # Break up conftest.defines because some shells have a limit on the size
11119 # of here documents, and old seds have small limits too (100 cmds).
11120 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11121 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11122 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11123 echo ' :' >>$CONFIG_STATUS
11124 rm -f conftest.tail
11125 while grep . conftest.defines >/dev/null
11127 # Write a limited-size here document to $tmp/defines.sed.
11128 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11129 # Speed up: don't consider the non `#define' lines.
11130 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11131 # Work around the forget-to-reset-the-flag bug.
11132 echo 't clr' >>$CONFIG_STATUS
11133 echo ': clr' >>$CONFIG_STATUS
11134 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11136 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11138 mv $tmp/out $tmp/in
11140 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11141 rm -f conftest.defines
11142 mv conftest.tail conftest.defines
11144 rm -f conftest.defines
11145 echo ' fi # grep' >>$CONFIG_STATUS
11146 echo >>$CONFIG_STATUS
11148 # Break up conftest.undefs because some shells have a limit on the size
11149 # of here documents, and old seds have small limits too (100 cmds).
11150 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11151 rm -f conftest.tail
11152 while grep . conftest.undefs >/dev/null
11154 # Write a limited-size here document to $tmp/undefs.sed.
11155 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11156 # Speed up: don't consider the non `#undef'
11157 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11158 # Work around the forget-to-reset-the-flag bug.
11159 echo 't clr' >>$CONFIG_STATUS
11160 echo ': clr' >>$CONFIG_STATUS
11161 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11163 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11165 mv $tmp/out $tmp/in
11167 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11168 rm -f conftest.undefs
11169 mv conftest.tail conftest.undefs
11171 rm -f conftest.undefs
11173 cat >>$CONFIG_STATUS <<\_ACEOF
11174 # Let's still pretend it is `configure' which instantiates (i.e., don't
11175 # use $as_me), people would be surprised to read:
11176 # /* config.h. Generated by config.status. */
11177 if test x"$ac_file" = x-; then
11178 echo "/* Generated by configure. */" >$tmp/config.h
11180 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11182 cat $tmp/in >>$tmp/config.h
11184 if test x"$ac_file" != x-; then
11185 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11186 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11187 echo "$as_me: $ac_file is unchanged" >&6;}
11189 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11191 X"$ac_file" : 'X\(//\)[^/]' \| \
11192 X"$ac_file" : 'X\(//\)$' \| \
11193 X"$ac_file" : 'X\(/\)' \| \
11194 . : '\(.\)' 2>/dev/null ||
11196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11198 /^X\(\/\/\)$/{ s//\1/; q; }
11199 /^X\(\/\).*/{ s//\1/; q; }
11201 { if $as_mkdir_p; then
11206 while test ! -d "$as_dir"; do
11207 as_dirs="$as_dir $as_dirs"
11208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11210 X"$as_dir" : 'X\(//\)[^/]' \| \
11211 X"$as_dir" : 'X\(//\)$' \| \
11212 X"$as_dir" : 'X\(/\)' \| \
11213 . : '\(.\)' 2>/dev/null ||
11215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11217 /^X\(\/\/\)$/{ s//\1/; q; }
11218 /^X\(\/\).*/{ s//\1/; q; }
11221 test ! -n "$as_dirs" || mkdir $as_dirs
11222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11224 { (exit 1); exit 1; }; }; }
11227 mv $tmp/config.h $ac_file
11231 rm -f $tmp/config.h
11233 # Compute $ac_file's index in $config_headers.
11235 for _am_header in $config_headers :; do
11236 case $_am_header in
11237 $ac_file | $ac_file:* )
11240 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11243 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11244 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11245 X$ac_file : 'X\(//\)[^/]' \| \
11246 X$ac_file : 'X\(//\)$' \| \
11247 X$ac_file : 'X\(/\)' \| \
11248 . : '\(.\)' 2>/dev/null ||
11250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11252 /^X\(\/\/\)$/{ s//\1/; q; }
11253 /^X\(\/\).*/{ s//\1/; q; }
11254 s/.*/./; q'`/stamp-h$_am_stamp_count
11257 cat >>$CONFIG_STATUS <<\_ACEOF
11260 # CONFIG_COMMANDS section.
11262 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11263 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11264 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11265 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11266 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11267 X"$ac_dest" : 'X\(//\)[^/]' \| \
11268 X"$ac_dest" : 'X\(//\)$' \| \
11269 X"$ac_dest" : 'X\(/\)' \| \
11270 . : '\(.\)' 2>/dev/null ||
11272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11273 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11274 /^X\(\/\/\)$/{ s//\1/; q; }
11275 /^X\(\/\).*/{ s//\1/; q; }
11279 if test "$ac_dir" != .; then
11280 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11281 # A "../" for each directory in $ac_dir_suffix.
11282 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11284 ac_dir_suffix= ac_top_builddir=
11288 .) # No --srcdir option. We are building in place.
11290 if test -z "$ac_top_builddir"; then
11293 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11295 [\\/]* | ?:[\\/]* ) # Absolute path.
11296 ac_srcdir=$srcdir$ac_dir_suffix;
11297 ac_top_srcdir=$srcdir ;;
11298 *) # Relative path.
11299 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11300 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11302 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11304 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11305 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11306 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11307 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11310 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11311 echo "$as_me: executing $ac_dest commands" >&6;}
11313 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11314 # Strip MF so we end up with the name of the file.
11315 mf=`echo "$mf" | sed -e 's/:.*$//'`
11316 # Check whether this is an Automake generated Makefile or not.
11317 # We used to match only the files named `Makefile.in', but
11318 # some people rename them; so instead we look at the file content.
11319 # Grep'ing the first line is not enough: some people post-process
11320 # each Makefile.in and add a new line on top of each file to say so.
11321 # So let's grep whole file.
11322 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11323 dirpart=`(dirname "$mf") 2>/dev/null ||
11324 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11325 X"$mf" : 'X\(//\)[^/]' \| \
11326 X"$mf" : 'X\(//\)$' \| \
11327 X"$mf" : 'X\(/\)' \| \
11328 . : '\(.\)' 2>/dev/null ||
11330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11332 /^X\(\/\/\)$/{ s//\1/; q; }
11333 /^X\(\/\).*/{ s//\1/; q; }
11338 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11339 # Extract the definition of DEP_FILES from the Makefile without
11341 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11342 test -z "$DEPDIR" && continue
11343 # When using ansi2knr, U may be empty or an underscore; expand it
11344 U=`sed -n -e '/^U = / s///p' < "$mf"`
11345 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11346 # We invoke sed twice because it is the simplest approach to
11347 # changing $(DEPDIR) to its actual value in the expansion.
11348 for file in `sed -n -e '
11349 /^DEP_FILES = .*\\\\$/ {
11358 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11359 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11360 # Make sure the directory exists.
11361 test -f "$dirpart/$file" && continue
11362 fdir=`(dirname "$file") 2>/dev/null ||
11363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11364 X"$file" : 'X\(//\)[^/]' \| \
11365 X"$file" : 'X\(//\)$' \| \
11366 X"$file" : 'X\(/\)' \| \
11367 . : '\(.\)' 2>/dev/null ||
11369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11371 /^X\(\/\/\)$/{ s//\1/; q; }
11372 /^X\(\/\).*/{ s//\1/; q; }
11374 { if $as_mkdir_p; then
11375 mkdir -p $dirpart/$fdir
11377 as_dir=$dirpart/$fdir
11379 while test ! -d "$as_dir"; do
11380 as_dirs="$as_dir $as_dirs"
11381 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11383 X"$as_dir" : 'X\(//\)[^/]' \| \
11384 X"$as_dir" : 'X\(//\)$' \| \
11385 X"$as_dir" : 'X\(/\)' \| \
11386 . : '\(.\)' 2>/dev/null ||
11388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11390 /^X\(\/\/\)$/{ s//\1/; q; }
11391 /^X\(\/\).*/{ s//\1/; q; }
11394 test ! -n "$as_dirs" || mkdir $as_dirs
11395 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11396 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11397 { (exit 1); exit 1; }; }; }
11399 # echo "creating $dirpart/$file"
11400 echo '# dummy' > "$dirpart/$file"
11408 cat >>$CONFIG_STATUS <<\_ACEOF
11410 { (exit 0); exit 0; }
11412 chmod +x $CONFIG_STATUS
11413 ac_clean_files=$ac_clean_files_save
11416 # configure is writing to config.log, and then calls config.status.
11417 # config.status does its own redirection, appending to config.log.
11418 # Unfortunately, on DOS this fails, as config.log is still kept open
11419 # by configure, so config.status won't be able to write to it; its
11420 # output is simply discarded. So we exec the FD to /dev/null,
11421 # effectively closing config.log, so it can be properly (re)opened and
11422 # appended to by config.status. When coming back to configure, we
11423 # need to make the FD available again.
11424 if test "$no_create" != yes; then
11426 ac_config_status_args=
11427 test "$silent" = yes &&
11428 ac_config_status_args="$ac_config_status_args --quiet"
11430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11433 # would make configure fail if this is the last instruction.
11434 $ac_cs_success || { (exit 1); exit 1; }