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 &&
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 'extern "C" void std::exit (int) throw (); using std::exit;' \
2729 'extern "C" void std::exit (int); using std::exit;' \
2730 'extern "C" void exit (int) throw ();' \
2731 'extern "C" void exit (int);' \
2734 cat >conftest.$ac_ext <<_ACEOF
2735 #line $LINENO "configure"
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f conftest.$ac_objext conftest.$ac_ext
2771 cat >conftest.$ac_ext <<_ACEOF
2772 #line $LINENO "configure"
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2805 rm -f conftest.$ac_objext conftest.$ac_ext
2808 if test -n "$ac_declaration"; then
2809 echo '#ifdef __cplusplus' >>confdefs.h
2810 echo $ac_declaration >>confdefs.h
2811 echo '#endif' >>confdefs.h
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2819 rm -f conftest.$ac_objext conftest.$ac_ext
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 DEPDIR="${am__leading_dot}deps"
2827 ac_config_commands="$ac_config_commands depfiles"
2830 am_make=${MAKE-make}
2831 cat > confinc << 'END'
2836 # If we don't find an include directive, just comment out the code.
2837 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2838 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2842 # First try GNU make style include.
2843 echo "include confinc" > confmf
2844 # We grep out `Entering directory' and `Leaving directory'
2845 # messages which can occur if `w' ends up in MAKEFLAGS.
2846 # In particular we don't look at `^make:' because GNU make might
2847 # be invoked under some other name (usually "gmake"), in which
2848 # case it prints its new name instead of `make'.
2849 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2854 # Now try BSD make style include.
2855 if test "$am__include" = "#"; then
2856 echo '.include "confinc"' > confmf
2857 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2858 am__include=.include
2865 echo "$as_me:$LINENO: result: $_am_result" >&5
2866 echo "${ECHO_T}$_am_result" >&6
2867 rm -f confinc confmf
2869 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2870 if test "${enable_dependency_tracking+set}" = set; then
2871 enableval="$enable_dependency_tracking"
2874 if test "x$enable_dependency_tracking" != xno; then
2875 am_depcomp="$ac_aux_dir/depcomp"
2880 if test "x$enable_dependency_tracking" != xno; then
2891 depcc="$CC" am_compiler_list=
2893 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2894 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2895 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2899 # We make a subdir and do the tests there. Otherwise we can end up
2900 # making bogus files that we don't know about and never remove. For
2901 # instance it was reported that on HP-UX the gcc test will end up
2902 # making a dummy file named `D' -- because `-MD' means `put the output
2905 # Copy depcomp to subdir because otherwise we won't find it if we're
2906 # using a relative directory.
2907 cp "$am_depcomp" conftest.dir
2909 # We will build objects and dependencies in a subdirectory because
2910 # it helps to detect inapplicable dependency modes. For instance
2911 # both Tru64's cc and ICC support -MD to output dependencies as a
2912 # side effect of compilation, but ICC will put the dependencies in
2913 # the current directory while Tru64 will put them in the object
2917 am_cv_CC_dependencies_compiler_type=none
2918 if test "$am_compiler_list" = ""; then
2919 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2921 for depmode in $am_compiler_list; do
2922 # Setup a source with many dependencies, because some compilers
2923 # like to wrap large dependency lists on column 80 (with \), and
2924 # we should not choose a depcomp mode which is confused by this.
2926 # We need to recreate these files for each test, as the compiler may
2927 # overwrite some of them when testing with obscure command lines.
2928 # This happens at least with the AIX C compiler.
2930 for i in 1 2 3 4 5 6; do
2931 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2938 # after this tag, mechanisms are not by side-effect, so they'll
2939 # only be used when explicitly requested
2940 if test "x$enable_dependency_tracking" = xyes; then
2948 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2949 # mode. It turns out that the SunPro C++ compiler does not properly
2950 # handle `-M -o', and we need to detect this.
2951 if depmode=$depmode \
2952 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2954 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2955 >/dev/null 2>conftest.err &&
2956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2957 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2959 # icc doesn't choke on unknown options, it will just issue warnings
2960 # (even with -Werror). So we grep stderr for any message
2961 # that says an option was ignored.
2962 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2963 am_cv_CC_dependencies_compiler_type=$depmode
2972 am_cv_CC_dependencies_compiler_type=none
2976 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2977 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2978 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2983 test "x$enable_dependency_tracking" != xno \
2984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2986 am__fastdepCC_FALSE='#'
2988 am__fastdepCC_TRUE='#'
2989 am__fastdepCC_FALSE=
2994 ac_cpp='$CXXCPP $CPPFLAGS'
2995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2998 if test -n "$ac_tool_prefix"; then
2999 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_CXX+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 if test -n "$CXX"; then
3009 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test -n "$CXX"; then
3029 echo "$as_me:$LINENO: result: $CXX" >&5
3030 echo "${ECHO_T}$CXX" >&6
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3036 test -n "$CXX" && break
3039 if test -z "$CXX"; then
3041 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3043 # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$ac_ct_CXX"; then
3051 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_prog_ac_ct_CXX="$ac_prog"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3070 if test -n "$ac_ct_CXX"; then
3071 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3072 echo "${ECHO_T}$ac_ct_CXX" >&6
3074 echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3078 test -n "$ac_ct_CXX" && break
3080 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3086 # Provide some information about the compiler.
3087 echo "$as_me:$LINENO:" \
3088 "checking for C++ compiler version" >&5
3089 ac_compiler=`set X $ac_compile; echo $2`
3090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3091 (eval $ac_compiler --version </dev/null >&5) 2>&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }
3095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3096 (eval $ac_compiler -v </dev/null >&5) 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }
3100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3101 (eval $ac_compiler -V </dev/null >&5) 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
3106 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3107 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3108 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 cat >conftest.$ac_ext <<_ACEOF
3112 #line $LINENO "configure"
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132 (eval $ac_compile) 2>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3149 rm -f conftest.$ac_objext conftest.$ac_ext
3150 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3153 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3154 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3155 GXX=`test $ac_compiler_gnu = yes && echo yes`
3156 ac_test_CXXFLAGS=${CXXFLAGS+set}
3157 ac_save_CXXFLAGS=$CXXFLAGS
3159 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3160 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3161 if test "${ac_cv_prog_cxx_g+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 cat >conftest.$ac_ext <<_ACEOF
3165 #line $LINENO "configure"
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182 (eval $ac_compile) 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_prog_cxx_g=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f conftest.$ac_objext conftest.$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3203 if test "$ac_test_CXXFLAGS" = set; then
3204 CXXFLAGS=$ac_save_CXXFLAGS
3205 elif test $ac_cv_prog_cxx_g = yes; then
3206 if test "$GXX" = yes; then
3212 if test "$GXX" = yes; then
3218 for ac_declaration in \
3220 'extern "C" void std::exit (int) throw (); using std::exit;' \
3221 'extern "C" void std::exit (int); using std::exit;' \
3222 'extern "C" void exit (int) throw ();' \
3223 'extern "C" void exit (int);' \
3226 cat >conftest.$ac_ext <<_ACEOF
3227 #line $LINENO "configure"
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3263 cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281 (eval $ac_compile) 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3297 rm -f conftest.$ac_objext conftest.$ac_ext
3300 if test -n "$ac_declaration"; then
3301 echo '#ifdef __cplusplus' >>confdefs.h
3302 echo $ac_declaration >>confdefs.h
3303 echo '#endif' >>confdefs.h
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312 depcc="$CXX" am_compiler_list=
3314 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3315 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3316 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3320 # We make a subdir and do the tests there. Otherwise we can end up
3321 # making bogus files that we don't know about and never remove. For
3322 # instance it was reported that on HP-UX the gcc test will end up
3323 # making a dummy file named `D' -- because `-MD' means `put the output
3326 # Copy depcomp to subdir because otherwise we won't find it if we're
3327 # using a relative directory.
3328 cp "$am_depcomp" conftest.dir
3330 # We will build objects and dependencies in a subdirectory because
3331 # it helps to detect inapplicable dependency modes. For instance
3332 # both Tru64's cc and ICC support -MD to output dependencies as a
3333 # side effect of compilation, but ICC will put the dependencies in
3334 # the current directory while Tru64 will put them in the object
3338 am_cv_CXX_dependencies_compiler_type=none
3339 if test "$am_compiler_list" = ""; then
3340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3342 for depmode in $am_compiler_list; do
3343 # Setup a source with many dependencies, because some compilers
3344 # like to wrap large dependency lists on column 80 (with \), and
3345 # we should not choose a depcomp mode which is confused by this.
3347 # We need to recreate these files for each test, as the compiler may
3348 # overwrite some of them when testing with obscure command lines.
3349 # This happens at least with the AIX C compiler.
3351 for i in 1 2 3 4 5 6; do
3352 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3359 # after this tag, mechanisms are not by side-effect, so they'll
3360 # only be used when explicitly requested
3361 if test "x$enable_dependency_tracking" = xyes; then
3369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3370 # mode. It turns out that the SunPro C++ compiler does not properly
3371 # handle `-M -o', and we need to detect this.
3372 if depmode=$depmode \
3373 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3375 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3376 >/dev/null 2>conftest.err &&
3377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3378 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3380 # icc doesn't choke on unknown options, it will just issue warnings
3381 # (even with -Werror). So we grep stderr for any message
3382 # that says an option was ignored.
3383 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3384 am_cv_CXX_dependencies_compiler_type=$depmode
3393 am_cv_CXX_dependencies_compiler_type=none
3397 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3398 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3399 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3404 test "x$enable_dependency_tracking" != xno \
3405 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3406 am__fastdepCXX_TRUE=
3407 am__fastdepCXX_FALSE='#'
3409 am__fastdepCXX_TRUE='#'
3410 am__fastdepCXX_FALSE=
3415 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3416 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3417 if test "${ac_cv_c_bigendian+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 # See if sys/param.h defines the BYTE_ORDER macro.
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 #include <sys/types.h>
3429 #include <sys/param.h>
3434 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 # It does; now see whether it defined to BIG_ENDIAN or not.
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #line $LINENO "configure"
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #include <sys/types.h>
3463 #include <sys/param.h>
3468 #if BYTE_ORDER != BIG_ENDIAN
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 { ac_try='test -s conftest.$ac_objext'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_c_bigendian=yes
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 ac_cv_c_bigendian=no
3495 rm -f conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # It does not; compile a test program.
3501 if test "$cross_compiling" = yes; then
3502 # try to guess the endianness by grepping values into an object file
3503 ac_cv_c_bigendian=unknown
3504 cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3512 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3513 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3514 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3515 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3516 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3520 _ascii (); _ebcdic ();
3525 rm -f conftest.$ac_objext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527 (eval $ac_compile) 2>&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3538 ac_cv_c_bigendian=yes
3540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3541 if test "$ac_cv_c_bigendian" = unknown; then
3542 ac_cv_c_bigendian=no
3544 # finding both strings is unlikely to happen, but who knows?
3545 ac_cv_c_bigendian=unknown
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3553 rm -f conftest.$ac_objext conftest.$ac_ext
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line $LINENO "configure"
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3565 /* Are we little or big endian? From Harbison&Steele. */
3569 char c[sizeof (long)];
3572 exit (u.c[sizeof (long) - 1] == 1);
3575 rm -f conftest$ac_exeext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3577 (eval $ac_link) 2>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_c_bigendian=no
3588 echo "$as_me: program exited with status $ac_status" >&5
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3593 ac_cv_c_bigendian=yes
3595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3598 rm -f conftest.$ac_objext conftest.$ac_ext
3600 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3601 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3602 case $ac_cv_c_bigendian in
3605 cat >>confdefs.h <<\_ACEOF
3606 #define WORDS_BIGENDIAN 1
3612 { { echo "$as_me:$LINENO: error: unknown endianness
3613 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3614 echo "$as_me: error: unknown endianness
3615 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3616 { (exit 1); exit 1; }; } ;;
3620 # Extract the first word of "wx-config", so it can be a program name with args.
3621 set dummy wx-config; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_path_wxconfig+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 wxconfig=$ac_cv_path_wxconfig
3651 if test -n "$wxconfig"; then
3652 echo "$as_me:$LINENO: result: $wxconfig" >&5
3653 echo "${ECHO_T}$wxconfig" >&6
3655 echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3660 # Make sure we can run config.sub.
3661 $ac_config_sub sun4 >/dev/null 2>&1 ||
3662 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3663 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3664 { (exit 1); exit 1; }; }
3666 echo "$as_me:$LINENO: checking build system type" >&5
3667 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3668 if test "${ac_cv_build+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 ac_cv_build_alias=$build_alias
3672 test -z "$ac_cv_build_alias" &&
3673 ac_cv_build_alias=`$ac_config_guess`
3674 test -z "$ac_cv_build_alias" &&
3675 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3676 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3677 { (exit 1); exit 1; }; }
3678 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3680 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3681 { (exit 1); exit 1; }; }
3684 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3685 echo "${ECHO_T}$ac_cv_build" >&6
3687 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3688 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3689 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3692 echo "$as_me:$LINENO: checking host system type" >&5
3693 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3694 if test "${ac_cv_host+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 ac_cv_host_alias=$host_alias
3698 test -z "$ac_cv_host_alias" &&
3699 ac_cv_host_alias=$ac_cv_build_alias
3700 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3701 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3702 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3703 { (exit 1); exit 1; }; }
3706 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3707 echo "${ECHO_T}$ac_cv_host" >&6
3709 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3710 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3711 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3714 echo "$as_me:$LINENO: checking for inline" >&5
3715 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3716 if test "${ac_cv_c_inline+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 for ac_kw in inline __inline__ __inline; do
3721 cat >conftest.$ac_ext <<_ACEOF
3722 #line $LINENO "configure"
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3730 static $ac_kw foo_t static_foo () {return 0; }
3731 $ac_kw foo_t foo () {return 0; }
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } &&
3741 { ac_try='test -s conftest.$ac_objext'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; }; then
3747 ac_cv_c_inline=$ac_kw; break
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3753 rm -f conftest.$ac_objext conftest.$ac_ext
3757 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3758 echo "${ECHO_T}$ac_cv_c_inline" >&6
3759 case $ac_cv_c_inline in
3762 cat >>confdefs.h <<\_ACEOF
3766 *) cat >>confdefs.h <<_ACEOF
3767 #define inline $ac_cv_c_inline
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3778 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3779 # On Suns, sometimes $CPP names a directory.
3780 if test -n "$CPP" && test -d "$CPP"; then
3783 if test -z "$CPP"; then
3784 if test "${ac_cv_prog_CPP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 # Double quotes because CPP needs to be expanded
3788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791 for ac_c_preproc_warn_flag in '' yes
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3807 # include <limits.h>
3809 # include <assert.h>
3813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null; then
3821 if test -s conftest.err; then
3822 ac_cpp_err=$ac_c_preproc_warn_flag
3829 if test -z "$ac_cpp_err"; then
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3835 # Broken: fails on valid input.
3838 rm -f conftest.err conftest.$ac_ext
3840 # OK, works on sane cases. Now check whether non-existent headers
3841 # can be detected and how.
3842 cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <ac_nonexistent.h>
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3867 if test -z "$ac_cpp_err"; then
3868 # Broken: success on invalid input.
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 # Passes both tests.
3878 rm -f conftest.err conftest.$ac_ext
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3895 echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6
3898 for ac_c_preproc_warn_flag in '' yes
3900 # Use a header file that comes with gcc, so configuring glibc
3901 # with a fresh cross-compiler works.
3902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903 # <limits.h> exists even on freestanding compilers.
3904 # On the NeXT, cc -E runs the code through the compiler's parser,
3905 # not just through cpp. "Syntax error" is here to catch this case.
3906 cat >conftest.$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3914 # include <limits.h>
3916 # include <assert.h>
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null; then
3928 if test -s conftest.err; then
3929 ac_cpp_err=$ac_c_preproc_warn_flag
3936 if test -z "$ac_cpp_err"; then
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 # Broken: fails on valid input.
3945 rm -f conftest.err conftest.$ac_ext
3947 # OK, works on sane cases. Now check whether non-existent headers
3948 # can be detected and how.
3949 cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #include <ac_nonexistent.h>
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev/null; then
3966 if test -s conftest.err; then
3967 ac_cpp_err=$ac_c_preproc_warn_flag
3974 if test -z "$ac_cpp_err"; then
3975 # Broken: success on invalid input.
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 # Passes both tests.
3985 rm -f conftest.err conftest.$ac_ext
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.err conftest.$ac_ext
3990 if $ac_preproc_ok; then
3993 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&5
3995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&2;}
3997 { (exit 1); exit 1; }; }
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4009 if test "${ac_cv_prog_egrep+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4013 then ac_cv_prog_egrep='grep -E'
4014 else ac_cv_prog_egrep='egrep'
4017 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4018 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4019 EGREP=$ac_cv_prog_egrep
4022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4024 if test "${ac_cv_header_stdc+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4047 rm -f conftest.$ac_objext
4048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049 (eval $ac_compile) 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 ac_cv_header_stdc=yes
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4064 ac_cv_header_stdc=no
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4068 if test $ac_cv_header_stdc = yes; then
4069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4070 cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081 $EGREP "memchr" >/dev/null 2>&1; then
4084 ac_cv_header_stdc=no
4090 if test $ac_cv_header_stdc = yes; then
4091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103 $EGREP "free" >/dev/null 2>&1; then
4106 ac_cv_header_stdc=no
4112 if test $ac_cv_header_stdc = yes; then
4113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4114 if test "$cross_compiling" = yes; then
4117 cat >conftest.$ac_ext <<_ACEOF
4118 #line $LINENO "configure"
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4125 #if ((' ' & 0x0FF) == 0x020)
4126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4129 # define ISLOWER(c) \
4130 (('a' <= (c) && (c) <= 'i') \
4131 || ('j' <= (c) && (c) <= 'r') \
4132 || ('s' <= (c) && (c) <= 'z'))
4133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4141 for (i = 0; i < 256; i++)
4142 if (XOR (islower (i), ISLOWER (i))
4143 || toupper (i) != TOUPPER (i))
4148 rm -f conftest$ac_exeext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4150 (eval $ac_link) 2>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4161 echo "$as_me: program exited with status $ac_status" >&5
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4166 ac_cv_header_stdc=no
4168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4172 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4173 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4174 if test $ac_cv_header_stdc = yes; then
4176 cat >>confdefs.h <<\_ACEOF
4177 #define STDC_HEADERS 1
4182 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4192 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4193 inttypes.h stdint.h unistd.h
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 $ac_includes_default
4210 #include <$ac_header>
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 eval "$as_ac_Header=yes"
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 eval "$as_ac_Header=no"
4231 rm -f conftest.$ac_objext conftest.$ac_ext
4233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236 cat >>confdefs.h <<_ACEOF
4237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245 echo "$as_me:$LINENO: checking for short" >&5
4246 echo $ECHO_N "checking for short... $ECHO_C" >&6
4247 if test "${ac_cv_type_short+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 $ac_includes_default
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_type_short=yes
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f conftest.$ac_objext conftest.$ac_ext
4290 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4291 echo "${ECHO_T}$ac_cv_type_short" >&6
4293 echo "$as_me:$LINENO: checking size of short" >&5
4294 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4295 if test "${ac_cv_sizeof_short+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test "$ac_cv_type_short" = yes; then
4299 # The cast to unsigned long works around a bug in the HP C Compiler
4300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4302 # This bug is HP SR number 8606223364.
4303 if test "$cross_compiling" = yes; then
4304 # Depending upon the size, compute the lo and hi bounds.
4305 cat >conftest.$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 $ac_includes_default
4316 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4337 cat >conftest.$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 $ac_includes_default
4348 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_hi=$ac_mid; break
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 ac_lo=`expr $ac_mid + 1`
4373 if test $ac_lo -le $ac_mid; then
4377 ac_mid=`expr 2 '*' $ac_mid + 1`
4379 rm -f conftest.$ac_objext conftest.$ac_ext
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 cat >conftest.$ac_ext <<_ACEOF
4386 #line $LINENO "configure"
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 $ac_includes_default
4396 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4403 rm -f conftest.$ac_objext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405 (eval $ac_compile) 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -s conftest.$ac_objext'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4417 cat >conftest.$ac_ext <<_ACEOF
4418 #line $LINENO "configure"
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4428 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_lo=$ac_mid; break
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 ac_hi=`expr '(' $ac_mid ')' - 1`
4453 if test $ac_mid -le $ac_hi; then
4457 ac_mid=`expr 2 '*' $ac_mid`
4459 rm -f conftest.$ac_objext conftest.$ac_ext
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4467 rm -f conftest.$ac_objext conftest.$ac_ext
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 # Binary search between lo and hi bounds.
4471 while test "x$ac_lo" != "x$ac_hi"; do
4472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4473 cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 $ac_includes_default
4484 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_lo=`expr '(' $ac_mid ')' + 1`
4510 rm -f conftest.$ac_objext conftest.$ac_ext
4513 ?*) ac_cv_sizeof_short=$ac_lo;;
4514 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4515 See \`config.log' for more details." >&5
4516 echo "$as_me: error: cannot compute sizeof (short), 77
4517 See \`config.log' for more details." >&2;}
4518 { (exit 1); exit 1; }; } ;;
4521 if test "$cross_compiling" = yes; then
4522 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: cannot run test program while cross compiling
4525 See \`config.log' for more details." >&2;}
4526 { (exit 1); exit 1; }; }
4528 cat >conftest.$ac_ext <<_ACEOF
4529 #line $LINENO "configure"
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 $ac_includes_default
4536 long longval () { return (long) (sizeof (short)); }
4537 unsigned long ulongval () { return (long) (sizeof (short)); }
4544 FILE *f = fopen ("conftest.val", "w");
4547 if (((long) (sizeof (short))) < 0)
4549 long i = longval ();
4550 if (i != ((long) (sizeof (short))))
4552 fprintf (f, "%ld\n", i);
4556 unsigned long i = ulongval ();
4557 if (i != ((long) (sizeof (short))))
4559 fprintf (f, "%lu\n", i);
4561 exit (ferror (f) || fclose (f) != 0);
4567 rm -f conftest$ac_exeext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4569 (eval $ac_link) 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_sizeof_short=`cat conftest.val`
4580 echo "$as_me: program exited with status $ac_status" >&5
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: cannot compute sizeof (short), 77
4588 See \`config.log' for more details." >&2;}
4589 { (exit 1); exit 1; }; }
4591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4596 ac_cv_sizeof_short=0
4599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4600 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4601 cat >>confdefs.h <<_ACEOF
4602 #define SIZEOF_SHORT $ac_cv_sizeof_short
4606 echo "$as_me:$LINENO: checking for int" >&5
4607 echo $ECHO_N "checking for int... $ECHO_C" >&6
4608 if test "${ac_cv_type_int+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 cat >conftest.$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 $ac_includes_default
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4649 rm -f conftest.$ac_objext conftest.$ac_ext
4651 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4652 echo "${ECHO_T}$ac_cv_type_int" >&6
4654 echo "$as_me:$LINENO: checking size of int" >&5
4655 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4656 if test "${ac_cv_sizeof_int+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 if test "$ac_cv_type_int" = yes; then
4660 # The cast to unsigned long works around a bug in the HP C Compiler
4661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4663 # This bug is HP SR number 8606223364.
4664 if test "$cross_compiling" = yes; then
4665 # Depending upon the size, compute the lo and hi bounds.
4666 cat >conftest.$ac_ext <<_ACEOF
4667 #line $LINENO "configure"
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673 $ac_includes_default
4677 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4698 cat >conftest.$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4709 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } &&
4722 { ac_try='test -s conftest.$ac_objext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_hi=$ac_mid; break
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 ac_lo=`expr $ac_mid + 1`
4734 if test $ac_lo -le $ac_mid; then
4738 ac_mid=`expr 2 '*' $ac_mid + 1`
4740 rm -f conftest.$ac_objext conftest.$ac_ext
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 $ac_includes_default
4757 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4778 cat >conftest.$ac_ext <<_ACEOF
4779 #line $LINENO "configure"
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 $ac_includes_default
4789 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_lo=$ac_mid; break
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_hi=`expr '(' $ac_mid ')' - 1`
4814 if test $ac_mid -le $ac_hi; then
4818 ac_mid=`expr 2 '*' $ac_mid`
4820 rm -f conftest.$ac_objext conftest.$ac_ext
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4828 rm -f conftest.$ac_objext conftest.$ac_ext
4830 rm -f conftest.$ac_objext conftest.$ac_ext
4831 # Binary search between lo and hi bounds.
4832 while test "x$ac_lo" != "x$ac_hi"; do
4833 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4834 cat >conftest.$ac_ext <<_ACEOF
4835 #line $LINENO "configure"
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 $ac_includes_default
4845 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -s conftest.$ac_objext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4869 ac_lo=`expr '(' $ac_mid ')' + 1`
4871 rm -f conftest.$ac_objext conftest.$ac_ext
4874 ?*) ac_cv_sizeof_int=$ac_lo;;
4875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4876 See \`config.log' for more details." >&5
4877 echo "$as_me: error: cannot compute sizeof (int), 77
4878 See \`config.log' for more details." >&2;}
4879 { (exit 1); exit 1; }; } ;;
4882 if test "$cross_compiling" = yes; then
4883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: cannot run test program while cross compiling
4886 See \`config.log' for more details." >&2;}
4887 { (exit 1); exit 1; }; }
4889 cat >conftest.$ac_ext <<_ACEOF
4890 #line $LINENO "configure"
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 $ac_includes_default
4897 long longval () { return (long) (sizeof (int)); }
4898 unsigned long ulongval () { return (long) (sizeof (int)); }
4905 FILE *f = fopen ("conftest.val", "w");
4908 if (((long) (sizeof (int))) < 0)
4910 long i = longval ();
4911 if (i != ((long) (sizeof (int))))
4913 fprintf (f, "%ld\n", i);
4917 unsigned long i = ulongval ();
4918 if (i != ((long) (sizeof (int))))
4920 fprintf (f, "%lu\n", i);
4922 exit (ferror (f) || fclose (f) != 0);
4928 rm -f conftest$ac_exeext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4930 (eval $ac_link) 2>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_cv_sizeof_int=`cat conftest.val`
4941 echo "$as_me: program exited with status $ac_status" >&5
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4947 See \`config.log' for more details." >&5
4948 echo "$as_me: error: cannot compute sizeof (int), 77
4949 See \`config.log' for more details." >&2;}
4950 { (exit 1); exit 1; }; }
4952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4961 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4962 cat >>confdefs.h <<_ACEOF
4963 #define SIZEOF_INT $ac_cv_sizeof_int
4967 echo "$as_me:$LINENO: checking for long" >&5
4968 echo $ECHO_N "checking for long... $ECHO_C" >&6
4969 if test "${ac_cv_type_long+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5010 rm -f conftest.$ac_objext conftest.$ac_ext
5012 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5013 echo "${ECHO_T}$ac_cv_type_long" >&6
5015 echo "$as_me:$LINENO: checking size of long" >&5
5016 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5017 if test "${ac_cv_sizeof_long+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 if test "$ac_cv_type_long" = yes; then
5021 # The cast to unsigned long works around a bug in the HP C Compiler
5022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5024 # This bug is HP SR number 8606223364.
5025 if test "$cross_compiling" = yes; then
5026 # Depending upon the size, compute the lo and hi bounds.
5027 cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 $ac_includes_default
5038 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5045 rm -f conftest.$ac_objext
5046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5047 (eval $ac_compile) 2>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } &&
5051 { ac_try='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5059 cat >conftest.$ac_ext <<_ACEOF
5060 #line $LINENO "configure"
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 $ac_includes_default
5070 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_hi=$ac_mid; break
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_lo=`expr $ac_mid + 1`
5095 if test $ac_lo -le $ac_mid; then
5099 ac_mid=`expr 2 '*' $ac_mid + 1`
5101 rm -f conftest.$ac_objext conftest.$ac_ext
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 cat >conftest.$ac_ext <<_ACEOF
5108 #line $LINENO "configure"
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 $ac_includes_default
5118 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127 (eval $ac_compile) 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5139 cat >conftest.$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 $ac_includes_default
5150 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_lo=$ac_mid; break
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 ac_hi=`expr '(' $ac_mid ')' - 1`
5175 if test $ac_mid -le $ac_hi; then
5179 ac_mid=`expr 2 '*' $ac_mid`
5181 rm -f conftest.$ac_objext conftest.$ac_ext
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5192 # Binary search between lo and hi bounds.
5193 while test "x$ac_lo" != "x$ac_hi"; do
5194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 $ac_includes_default
5206 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5230 ac_lo=`expr '(' $ac_mid ')' + 1`
5232 rm -f conftest.$ac_objext conftest.$ac_ext
5235 ?*) ac_cv_sizeof_long=$ac_lo;;
5236 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5237 See \`config.log' for more details." >&5
5238 echo "$as_me: error: cannot compute sizeof (long), 77
5239 See \`config.log' for more details." >&2;}
5240 { (exit 1); exit 1; }; } ;;
5243 if test "$cross_compiling" = yes; then
5244 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5245 See \`config.log' for more details." >&5
5246 echo "$as_me: error: cannot run test program while cross compiling
5247 See \`config.log' for more details." >&2;}
5248 { (exit 1); exit 1; }; }
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 $ac_includes_default
5258 long longval () { return (long) (sizeof (long)); }
5259 unsigned long ulongval () { return (long) (sizeof (long)); }
5266 FILE *f = fopen ("conftest.val", "w");
5269 if (((long) (sizeof (long))) < 0)
5271 long i = longval ();
5272 if (i != ((long) (sizeof (long))))
5274 fprintf (f, "%ld\n", i);
5278 unsigned long i = ulongval ();
5279 if (i != ((long) (sizeof (long))))
5281 fprintf (f, "%lu\n", i);
5283 exit (ferror (f) || fclose (f) != 0);
5289 rm -f conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_cv_sizeof_long=`cat conftest.val`
5302 echo "$as_me: program exited with status $ac_status" >&5
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5307 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5308 See \`config.log' for more details." >&5
5309 echo "$as_me: error: cannot compute sizeof (long), 77
5310 See \`config.log' for more details." >&2;}
5311 { (exit 1); exit 1; }; }
5313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5321 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5322 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5323 cat >>confdefs.h <<_ACEOF
5324 #define SIZEOF_LONG $ac_cv_sizeof_long
5328 echo "$as_me:$LINENO: checking for float" >&5
5329 echo $ECHO_N "checking for float... $ECHO_C" >&6
5330 if test "${ac_cv_type_float+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 cat >conftest.$ac_ext <<_ACEOF
5334 #line $LINENO "configure"
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 $ac_includes_default
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354 (eval $ac_compile) 2>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -s conftest.$ac_objext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5364 ac_cv_type_float=yes
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5371 rm -f conftest.$ac_objext conftest.$ac_ext
5373 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5374 echo "${ECHO_T}$ac_cv_type_float" >&6
5376 echo "$as_me:$LINENO: checking size of float" >&5
5377 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5378 if test "${ac_cv_sizeof_float+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 if test "$ac_cv_type_float" = yes; then
5382 # The cast to unsigned long works around a bug in the HP C Compiler
5383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5385 # This bug is HP SR number 8606223364.
5386 if test "$cross_compiling" = yes; then
5387 # Depending upon the size, compute the lo and hi bounds.
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5399 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5420 cat >conftest.$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 $ac_includes_default
5431 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_hi=$ac_mid; break
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 ac_lo=`expr $ac_mid + 1`
5456 if test $ac_lo -le $ac_mid; then
5460 ac_mid=`expr 2 '*' $ac_mid + 1`
5462 rm -f conftest.$ac_objext conftest.$ac_ext
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5479 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest.$ac_objext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 $ac_includes_default
5511 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5518 rm -f conftest.$ac_objext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5520 (eval $ac_compile) 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -s conftest.$ac_objext'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 ac_lo=$ac_mid; break
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ac_hi=`expr '(' $ac_mid ')' - 1`
5536 if test $ac_mid -le $ac_hi; then
5540 ac_mid=`expr 2 '*' $ac_mid`
5542 rm -f conftest.$ac_objext conftest.$ac_ext
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f conftest.$ac_objext conftest.$ac_ext
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5553 # Binary search between lo and hi bounds.
5554 while test "x$ac_lo" != "x$ac_hi"; do
5555 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5556 cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 $ac_includes_default
5567 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -s conftest.$ac_objext'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; }; then
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5591 ac_lo=`expr '(' $ac_mid ')' + 1`
5593 rm -f conftest.$ac_objext conftest.$ac_ext
5596 ?*) ac_cv_sizeof_float=$ac_lo;;
5597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: cannot compute sizeof (float), 77
5600 See \`config.log' for more details." >&2;}
5601 { (exit 1); exit 1; }; } ;;
5604 if test "$cross_compiling" = yes; then
5605 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot run test program while cross compiling
5608 See \`config.log' for more details." >&2;}
5609 { (exit 1); exit 1; }; }
5611 cat >conftest.$ac_ext <<_ACEOF
5612 #line $LINENO "configure"
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 $ac_includes_default
5619 long longval () { return (long) (sizeof (float)); }
5620 unsigned long ulongval () { return (long) (sizeof (float)); }
5627 FILE *f = fopen ("conftest.val", "w");
5630 if (((long) (sizeof (float))) < 0)
5632 long i = longval ();
5633 if (i != ((long) (sizeof (float))))
5635 fprintf (f, "%ld\n", i);
5639 unsigned long i = ulongval ();
5640 if (i != ((long) (sizeof (float))))
5642 fprintf (f, "%lu\n", i);
5644 exit (ferror (f) || fclose (f) != 0);
5650 rm -f conftest$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652 (eval $ac_link) 2>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5661 ac_cv_sizeof_float=`cat conftest.val`
5663 echo "$as_me: program exited with status $ac_status" >&5
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5669 See \`config.log' for more details." >&5
5670 echo "$as_me: error: cannot compute sizeof (float), 77
5671 See \`config.log' for more details." >&2;}
5672 { (exit 1); exit 1; }; }
5674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5679 ac_cv_sizeof_float=0
5682 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5683 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5684 cat >>confdefs.h <<_ACEOF
5685 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5689 echo "$as_me:$LINENO: checking for double" >&5
5690 echo $ECHO_N "checking for double... $ECHO_C" >&6
5691 if test "${ac_cv_type_double+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5707 if (sizeof (double))
5713 rm -f conftest.$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -s conftest.$ac_objext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 ac_cv_type_double=yes
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5730 ac_cv_type_double=no
5732 rm -f conftest.$ac_objext conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5735 echo "${ECHO_T}$ac_cv_type_double" >&6
5737 echo "$as_me:$LINENO: checking size of double" >&5
5738 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5739 if test "${ac_cv_sizeof_double+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 if test "$ac_cv_type_double" = yes; then
5743 # The cast to unsigned long works around a bug in the HP C Compiler
5744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5746 # This bug is HP SR number 8606223364.
5747 if test "$cross_compiling" = yes; then
5748 # Depending upon the size, compute the lo and hi bounds.
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5760 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5781 cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5792 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_hi=$ac_mid; break
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_lo=`expr $ac_mid + 1`
5817 if test $ac_lo -le $ac_mid; then
5821 ac_mid=`expr 2 '*' $ac_mid + 1`
5823 rm -f conftest.$ac_objext conftest.$ac_ext
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 cat >conftest.$ac_ext <<_ACEOF
5830 #line $LINENO "configure"
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 $ac_includes_default
5840 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849 (eval $ac_compile) 2>&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -s conftest.$ac_objext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
5861 cat >conftest.$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 $ac_includes_default
5872 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -s conftest.$ac_objext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_lo=$ac_mid; break
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_hi=`expr '(' $ac_mid ')' - 1`
5897 if test $ac_mid -le $ac_hi; then
5901 ac_mid=`expr 2 '*' $ac_mid`
5903 rm -f conftest.$ac_objext conftest.$ac_ext
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5911 rm -f conftest.$ac_objext conftest.$ac_ext
5913 rm -f conftest.$ac_objext conftest.$ac_ext
5914 # Binary search between lo and hi bounds.
5915 while test "x$ac_lo" != "x$ac_hi"; do
5916 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5917 cat >conftest.$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 $ac_includes_default
5928 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5935 rm -f conftest.$ac_objext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937 (eval $ac_compile) 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 ac_lo=`expr '(' $ac_mid ')' + 1`
5954 rm -f conftest.$ac_objext conftest.$ac_ext
5957 ?*) ac_cv_sizeof_double=$ac_lo;;
5958 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot compute sizeof (double), 77
5961 See \`config.log' for more details." >&2;}
5962 { (exit 1); exit 1; }; } ;;
5965 if test "$cross_compiling" = yes; then
5966 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5967 See \`config.log' for more details." >&5
5968 echo "$as_me: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&2;}
5970 { (exit 1); exit 1; }; }
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 $ac_includes_default
5980 long longval () { return (long) (sizeof (double)); }
5981 unsigned long ulongval () { return (long) (sizeof (double)); }
5988 FILE *f = fopen ("conftest.val", "w");
5991 if (((long) (sizeof (double))) < 0)
5993 long i = longval ();
5994 if (i != ((long) (sizeof (double))))
5996 fprintf (f, "%ld\n", i);
6000 unsigned long i = ulongval ();
6001 if (i != ((long) (sizeof (double))))
6003 fprintf (f, "%lu\n", i);
6005 exit (ferror (f) || fclose (f) != 0);
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_sizeof_double=`cat conftest.val`
6024 echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6030 See \`config.log' for more details." >&5
6031 echo "$as_me: error: cannot compute sizeof (double), 77
6032 See \`config.log' for more details." >&2;}
6033 { (exit 1); exit 1; }; }
6035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6040 ac_cv_sizeof_double=0
6043 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6044 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6045 cat >>confdefs.h <<_ACEOF
6046 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6052 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6053 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6054 if test "${ac_cv_lib_z_deflate+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 ac_check_lib_save_LIBS=$LIBS
6059 cat >conftest.$ac_ext <<_ACEOF
6060 #line $LINENO "configure"
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6071 /* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6084 (eval $ac_link) 2>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -s conftest$ac_exeext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_lib_z_deflate=yes
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 ac_cv_lib_z_deflate=no
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6104 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6105 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6106 if test $ac_cv_lib_z_deflate = yes; then
6109 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6110 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6114 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6115 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6116 if test "${ac_cv_lib_m_sin+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 ac_check_lib_save_LIBS=$LIBS
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #line $LINENO "configure"
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6129 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146 (eval $ac_link) 2>&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -s conftest$ac_exeext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 LIBS=$ac_check_lib_save_LIBS
6166 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6167 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6168 if test $ac_cv_lib_m_sin = yes; then
6169 cat >>confdefs.h <<_ACEOF
6177 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6178 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6179 if test "${ac_cv_lib_curses_main+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lcurses $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203 (eval $ac_link) 2>&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -s conftest$ac_exeext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_cv_lib_curses_main=yes
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_cv_lib_curses_main=no
6220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6221 LIBS=$ac_check_lib_save_LIBS
6223 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6224 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6225 if test $ac_cv_lib_curses_main = yes; then
6231 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6232 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6233 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_check_lib_save_LIBS=$LIBS
6237 LIBS="-lncurses $LIBS"
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6257 (eval $ac_link) 2>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -s conftest$ac_exeext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_cv_lib_ncurses_main=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_cv_lib_ncurses_main=no
6274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_check_lib_save_LIBS
6277 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6278 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6279 if test $ac_cv_lib_ncurses_main = yes; then
6285 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6286 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6287 if test "${ac_cv_lib_readline_main+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 ac_check_lib_save_LIBS=$LIBS
6291 LIBS="-lreadline -lcurses $LIBS"
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311 (eval $ac_link) 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_lib_readline_main=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_cv_lib_readline_main=no
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 LIBS=$ac_check_lib_save_LIBS
6331 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6332 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6333 if test $ac_cv_lib_readline_main = yes; then
6336 cat >>confdefs.h <<\_ACEOF
6337 #define HAVE_READLINE 1
6345 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6346 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6347 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 ac_check_lib_save_LIBS=$LIBS
6351 LIBS="-lwx_gtk-2.4 $LIBS"
6352 cat >conftest.$ac_ext <<_ACEOF
6353 #line $LINENO "configure"
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371 (eval $ac_link) 2>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -s conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_cv_lib_wx_gtk_2_4_main=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_cv_lib_wx_gtk_2_4_main=no
6388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6389 LIBS=$ac_check_lib_save_LIBS
6391 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6392 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6393 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6394 wxwin=true; wx_gtk=true;
6395 cat >>confdefs.h <<\_ACEOF
6396 #define HAVE_WXWINDOWS 1
6401 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6402 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6403 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 ac_check_lib_save_LIBS=$LIBS
6407 LIBS="-lwx_mac-2.4 $LIBS"
6408 cat >conftest.$ac_ext <<_ACEOF
6409 #line $LINENO "configure"
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6425 rm -f conftest.$ac_objext conftest$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest$ac_exeext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_cv_lib_wx_mac_2_4_main=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_cv_lib_wx_mac_2_4_main=no
6444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6445 LIBS=$ac_check_lib_save_LIBS
6447 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6448 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6449 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6450 wxwin=true; wx_mac=true;
6451 cat >>confdefs.h <<\_ACEOF
6452 #define HAVE_WXWINDOWS 1
6457 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6458 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6459 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 ac_check_lib_save_LIBS=$LIBS
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6472 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6487 rm -f conftest.$ac_objext conftest$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489 (eval $ac_link) 2>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -s conftest$ac_exeext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_cv_lib_fftw_fftw_one=yes
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 ac_cv_lib_fftw_fftw_one=no
6506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6507 LIBS=$ac_check_lib_save_LIBS
6509 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6510 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6511 if test $ac_cv_lib_fftw_fftw_one = yes; then
6513 cat >>confdefs.h <<\_ACEOF
6521 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6522 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6523 if test "${ac_cv_lib_GL_main+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 ac_check_lib_save_LIBS=$LIBS
6527 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6528 cat >conftest.$ac_ext <<_ACEOF
6529 #line $LINENO "configure"
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -s conftest$ac_exeext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_cv_lib_GL_main=yes
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_cv_lib_GL_main=no
6564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6565 LIBS=$ac_check_lib_save_LIBS
6567 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6568 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6569 if test $ac_cv_lib_GL_main = yes; then
6575 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6576 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6577 if test "${ac_cv_lib_pthread_main+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 ac_check_lib_save_LIBS=$LIBS
6581 LIBS="-lpthread $LIBS"
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601 (eval $ac_link) 2>&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -s conftest$ac_exeext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_cv_lib_pthread_main=yes
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 ac_cv_lib_pthread_main=no
6618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6619 LIBS=$ac_check_lib_save_LIBS
6621 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6622 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6623 if test $ac_cv_lib_pthread_main = yes; then
6630 if test "$zlib" = "true" ; then
6631 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6632 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6633 if test "${ac_cv_lib_png_main+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 ac_check_lib_save_LIBS=$LIBS
6637 LIBS="-lpng -lz -lm $LIBS"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6655 rm -f conftest.$ac_objext conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657 (eval $ac_link) 2>&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -s conftest$ac_exeext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_cv_lib_png_main=yes
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 ac_cv_lib_png_main=no
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 LIBS=$ac_check_lib_save_LIBS
6677 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6678 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6679 if test $ac_cv_lib_png_main = yes; then
6681 cat >>confdefs.h <<\_ACEOF
6691 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6693 if test "${ac_cv_header_stdc+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -s conftest.$ac_objext'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_header_stdc=yes
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_cv_header_stdc=no
6735 rm -f conftest.$ac_objext conftest.$ac_ext
6737 if test $ac_cv_header_stdc = yes; then
6738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6739 cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6750 $EGREP "memchr" >/dev/null 2>&1; then
6753 ac_cv_header_stdc=no
6759 if test $ac_cv_header_stdc = yes; then
6760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6761 cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772 $EGREP "free" >/dev/null 2>&1; then
6775 ac_cv_header_stdc=no
6781 if test $ac_cv_header_stdc = yes; then
6782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6783 if test "$cross_compiling" = yes; then
6786 cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6794 #if ((' ' & 0x0FF) == 0x020)
6795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6798 # define ISLOWER(c) \
6799 (('a' <= (c) && (c) <= 'i') \
6800 || ('j' <= (c) && (c) <= 'r') \
6801 || ('s' <= (c) && (c) <= 'z'))
6802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6810 for (i = 0; i < 256; i++)
6811 if (XOR (islower (i), ISLOWER (i))
6812 || toupper (i) != TOUPPER (i))
6817 rm -f conftest$ac_exeext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819 (eval $ac_link) 2>&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6830 echo "$as_me: program exited with status $ac_status" >&5
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6835 ac_cv_header_stdc=no
6837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6843 if test $ac_cv_header_stdc = yes; then
6845 cat >>confdefs.h <<\_ACEOF
6846 #define STDC_HEADERS 1
6875 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
6877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6879 echo "$as_me:$LINENO: checking for $ac_header" >&5
6880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6887 # Is the header compilable?
6888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 $ac_includes_default
6898 #include <$ac_header>
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest.$ac_objext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_header_compiler=yes
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_header_compiler=no
6919 rm -f conftest.$ac_objext conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6921 echo "${ECHO_T}$ac_header_compiler" >&6
6923 # Is the header present?
6924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6926 cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 #include <$ac_header>
6935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6938 grep -v '^ *+' conftest.er1 >conftest.err
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } >/dev/null; then
6943 if test -s conftest.err; then
6944 ac_cpp_err=$ac_c_preproc_warn_flag
6951 if test -z "$ac_cpp_err"; then
6952 ac_header_preproc=yes
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 ac_header_preproc=no
6959 rm -f conftest.err conftest.$ac_ext
6960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6961 echo "${ECHO_T}$ac_header_preproc" >&6
6963 # So? What about this header?
6964 case $ac_header_compiler:$ac_header_preproc in
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6972 ## ------------------------------------ ##
6973 ## Report this to bug-autoconf@gnu.org. ##
6974 ## ------------------------------------ ##
6977 sed "s/^/$as_me: WARNING: /" >&2
6980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6988 ## ------------------------------------ ##
6989 ## Report this to bug-autoconf@gnu.org. ##
6990 ## ------------------------------------ ##
6993 sed "s/^/$as_me: WARNING: /" >&2
6996 echo "$as_me:$LINENO: checking for $ac_header" >&5
6997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 eval "$as_ac_Header=$ac_header_preproc"
7003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7008 cat >>confdefs.h <<_ACEOF
7009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7017 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7018 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7019 if test "${ac_cv_c_const+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7033 /* FIXME: Include the comments suggested by Paul. */
7035 /* Ultrix mips cc rejects this. */
7036 typedef int charset[2];
7038 /* SunOS 4.1.1 cc rejects this. */
7039 char const *const *ccp;
7041 /* NEC SVR4.0.2 mips cc rejects this. */
7042 struct point {int x, y;};
7043 static struct point const zero = {0,0};
7044 /* AIX XL C 1.02.0.0 rejects this.
7045 It does not let you subtract one const X* pointer from another in
7046 an arm of an if-expression whose if-part is not a constant
7048 const char *g = "string";
7049 ccp = &g + (g ? g-g : 0);
7050 /* HPUX 7.0 cc rejects these. */
7053 ccp = (char const *const *) p;
7054 { /* SCO 3.2v4 cc rejects this. */
7056 char const *s = 0 ? (char *) 0 : (char const *) 0;
7060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7062 const int *foo = &x[0];
7065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7066 typedef const int *iptr;
7070 { /* AIX XL C 1.02.0.0 rejects this saying
7071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7072 struct s { int j; const int *ap[3]; };
7073 struct s *b; b->j = 5;
7075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7084 rm -f conftest.$ac_objext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086 (eval $ac_compile) 2>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -s conftest.$ac_objext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7103 rm -f conftest.$ac_objext conftest.$ac_ext
7105 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7106 echo "${ECHO_T}$ac_cv_c_const" >&6
7107 if test $ac_cv_c_const = no; then
7109 cat >>confdefs.h <<\_ACEOF
7115 echo "$as_me:$LINENO: checking for off_t" >&5
7116 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7117 if test "${ac_cv_type_off_t+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 cat >conftest.$ac_ext <<_ACEOF
7121 #line $LINENO "configure"
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } &&
7145 { ac_try='test -s conftest.$ac_objext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 ac_cv_type_off_t=yes
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7160 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7161 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7162 if test $ac_cv_type_off_t = yes; then
7166 cat >>confdefs.h <<_ACEOF
7172 echo "$as_me:$LINENO: checking for size_t" >&5
7173 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7174 if test "${ac_cv_type_size_t+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 cat >conftest.$ac_ext <<_ACEOF
7178 #line $LINENO "configure"
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 $ac_includes_default
7190 if (sizeof (size_t))
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 ac_cv_type_size_t=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_cv_type_size_t=no
7215 rm -f conftest.$ac_objext conftest.$ac_ext
7217 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7218 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7219 if test $ac_cv_type_size_t = yes; then
7223 cat >>confdefs.h <<_ACEOF
7224 #define size_t unsigned
7229 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7230 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7231 if test "${ac_cv_struct_tm+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 cat >conftest.$ac_ext <<_ACEOF
7235 #line $LINENO "configure"
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #include <sys/types.h>
7247 struct tm *tp; tp->tm_sec;
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try='test -s conftest.$ac_objext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_struct_tm=time.h
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 ac_cv_struct_tm=sys/time.h
7271 rm -f conftest.$ac_objext conftest.$ac_ext
7273 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7274 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7275 if test $ac_cv_struct_tm = sys/time.h; then
7277 cat >>confdefs.h <<\_ACEOF
7278 #define TM_IN_SYS_TIME 1
7285 for ac_func in vprintf
7287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7288 echo "$as_me:$LINENO: checking for $ac_func" >&5
7289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_var+set}\" = set"; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 /* System header to define __stub macros and hopefully few prototypes,
7301 which can conflict with char $ac_func (); below.
7302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7303 <limits.h> exists even on freestanding compilers. */
7305 # include <limits.h>
7307 # include <assert.h>
7309 /* Override any gcc2 internal prototype to avoid an error. */
7314 /* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7317 /* The GNU C library defines this for functions which it implements
7318 to always fail with ENOSYS. Some functions are actually named
7319 something starting with __ and the normal name is an alias. */
7320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7323 char (*f) () = $ac_func;
7332 return f != $ac_func;
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7339 (eval $ac_link) 2>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -s conftest$ac_exeext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 eval "$as_ac_var=yes"
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 eval "$as_ac_var=no"
7356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7360 if test `eval echo '${'$as_ac_var'}'` = yes; then
7361 cat >>confdefs.h <<_ACEOF
7362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7365 echo "$as_me:$LINENO: checking for _doprnt" >&5
7366 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7367 if test "${ac_cv_func__doprnt+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 cat >conftest.$ac_ext <<_ACEOF
7371 #line $LINENO "configure"
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 /* System header to define __stub macros and hopefully few prototypes,
7378 which can conflict with char _doprnt (); below.
7379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7380 <limits.h> exists even on freestanding compilers. */
7382 # include <limits.h>
7384 # include <assert.h>
7386 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7394 /* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7400 char (*f) () = _doprnt;
7409 return f != _doprnt;
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416 (eval $ac_link) 2>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -s conftest$ac_exeext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_cv_func__doprnt=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 ac_cv_func__doprnt=no
7433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7436 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7437 if test $ac_cv_func__doprnt = yes; then
7439 cat >>confdefs.h <<\_ACEOF
7440 #define HAVE_DOPRNT 1
7456 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7459 echo "$as_me:$LINENO: checking for $ac_func" >&5
7460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_var+set}\" = set"; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7465 #line $LINENO "configure"
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 /* System header to define __stub macros and hopefully few prototypes,
7472 which can conflict with char $ac_func (); below.
7473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7474 <limits.h> exists even on freestanding compilers. */
7476 # include <limits.h>
7478 # include <assert.h>
7480 /* Override any gcc2 internal prototype to avoid an error. */
7485 /* We use char because int might match the return type of a gcc2
7486 builtin and then its argument prototype would still apply. */
7488 /* The GNU C library defines this for functions which it implements
7489 to always fail with ENOSYS. Some functions are actually named
7490 something starting with __ and the normal name is an alias. */
7491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7494 char (*f) () = $ac_func;
7503 return f != $ac_func;
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -s conftest$ac_exeext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 eval "$as_ac_var=yes"
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 eval "$as_ac_var=no"
7527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7531 if test `eval echo '${'$as_ac_var'}'` = yes; then
7532 cat >>confdefs.h <<_ACEOF
7533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7539 echo "$as_me:$LINENO: checking for basename" >&5
7540 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7541 if test "${ac_cv_func_basename+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 cat >conftest.$ac_ext <<_ACEOF
7545 #line $LINENO "configure"
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 /* System header to define __stub macros and hopefully few prototypes,
7552 which can conflict with char basename (); below.
7553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7554 <limits.h> exists even on freestanding compilers. */
7556 # include <limits.h>
7558 # include <assert.h>
7560 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7568 /* The GNU C library defines this for functions which it implements
7569 to always fail with ENOSYS. Some functions are actually named
7570 something starting with __ and the normal name is an alias. */
7571 #if defined (__stub_basename) || defined (__stub___basename)
7574 char (*f) () = basename;
7583 return f != basename;
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590 (eval $ac_link) 2>&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -s conftest$ac_exeext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_func_basename=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_cv_func_basename=no
7607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7609 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7610 echo "${ECHO_T}$ac_cv_func_basename" >&6
7612 echo "$as_me:$LINENO: checking for setjmp" >&5
7613 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7614 if test "${ac_cv_func_setjmp+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 /* System header to define __stub macros and hopefully few prototypes,
7625 which can conflict with char setjmp (); below.
7626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7627 <limits.h> exists even on freestanding compilers. */
7629 # include <limits.h>
7631 # include <assert.h>
7633 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7647 char (*f) () = setjmp;
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -s conftest$ac_exeext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_func_setjmp=yes
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_cv_func_setjmp=no
7680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7682 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7683 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7685 echo "$as_me:$LINENO: checking for setpriority" >&5
7686 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7687 if test "${ac_cv_func_setpriority+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 cat >conftest.$ac_ext <<_ACEOF
7691 #line $LINENO "configure"
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7697 /* System header to define __stub macros and hopefully few prototypes,
7698 which can conflict with char setpriority (); below.
7699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7700 <limits.h> exists even on freestanding compilers. */
7702 # include <limits.h>
7704 # include <assert.h>
7706 /* Override any gcc2 internal prototype to avoid an error. */
7711 /* We use char because int might match the return type of a gcc2
7712 builtin and then its argument prototype would still apply. */
7713 char setpriority ();
7714 /* The GNU C library defines this for functions which it implements
7715 to always fail with ENOSYS. Some functions are actually named
7716 something starting with __ and the normal name is an alias. */
7717 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7720 char (*f) () = setpriority;
7729 return f != setpriority;
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736 (eval $ac_link) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 ac_cv_func_setpriority=yes
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_func_setpriority=no
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7755 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7756 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7758 echo "$as_me:$LINENO: checking for time" >&5
7759 echo $ECHO_N "checking for time... $ECHO_C" >&6
7760 if test "${ac_cv_func_time+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 cat >conftest.$ac_ext <<_ACEOF
7764 #line $LINENO "configure"
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 /* System header to define __stub macros and hopefully few prototypes,
7771 which can conflict with char time (); below.
7772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7773 <limits.h> exists even on freestanding compilers. */
7775 # include <limits.h>
7777 # include <assert.h>
7779 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7787 /* The GNU C library defines this for functions which it implements
7788 to always fail with ENOSYS. Some functions are actually named
7789 something starting with __ and the normal name is an alias. */
7790 #if defined (__stub_time) || defined (__stub___time)
7793 char (*f) () = time;
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809 (eval $ac_link) 2>&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -s conftest$ac_exeext'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7829 echo "${ECHO_T}$ac_cv_func_time" >&6
7831 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7832 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7833 if test "${ac_cv_func_gettimeofday+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 /* System header to define __stub macros and hopefully few prototypes,
7844 which can conflict with char gettimeofday (); below.
7845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846 <limits.h> exists even on freestanding compilers. */
7848 # include <limits.h>
7850 # include <assert.h>
7852 /* Override any gcc2 internal prototype to avoid an error. */
7857 /* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7859 char gettimeofday ();
7860 /* The GNU C library defines this for functions which it implements
7861 to always fail with ENOSYS. Some functions are actually named
7862 something starting with __ and the normal name is an alias. */
7863 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7866 char (*f) () = gettimeofday;
7875 return f != gettimeofday;
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_func_gettimeofday=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 ac_cv_func_gettimeofday=no
7899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7902 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7904 echo "$as_me:$LINENO: checking for getopt" >&5
7905 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7906 if test "${ac_cv_func_getopt+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.$ac_ext <<_ACEOF
7910 #line $LINENO "configure"
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 /* System header to define __stub macros and hopefully few prototypes,
7917 which can conflict with char getopt (); below.
7918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7919 <limits.h> exists even on freestanding compilers. */
7921 # include <limits.h>
7923 # include <assert.h>
7925 /* Override any gcc2 internal prototype to avoid an error. */
7930 /* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7933 /* The GNU C library defines this for functions which it implements
7934 to always fail with ENOSYS. Some functions are actually named
7935 something starting with __ and the normal name is an alias. */
7936 #if defined (__stub_getopt) || defined (__stub___getopt)
7939 char (*f) () = getopt;
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -s conftest$ac_exeext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 ac_cv_func_getopt=yes
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 ac_cv_func_getopt=no
7972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7974 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7975 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7976 if test $ac_cv_func_getopt = yes; then
7983 if test "${OSTYPE}" = "cygwin" ; then
7986 echo "$as_me:$LINENO: checking for getopt_long" >&5
7987 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7988 if test "${ac_cv_func_getopt_long+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 cat >conftest.$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 /* System header to define __stub macros and hopefully few prototypes,
7999 which can conflict with char getopt_long (); below.
8000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8001 <limits.h> exists even on freestanding compilers. */
8003 # include <limits.h>
8005 # include <assert.h>
8007 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014 char getopt_long ();
8015 /* The GNU C library defines this for functions which it implements
8016 to always fail with ENOSYS. Some functions are actually named
8017 something starting with __ and the normal name is an alias. */
8018 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8021 char (*f) () = getopt_long;
8030 return f != getopt_long;
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037 (eval $ac_link) 2>&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_func_getopt_long=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_cv_func_getopt_long=no
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8056 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8057 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8058 if test $ac_cv_func_getopt_long = yes; then
8066 if test "${getopt_long}" = "false" ; then
8067 my_includes="$my_includes -I../getopt"
8069 cat >>confdefs.h <<\_ACEOF
8070 #define HAVE_GETOPT_LONG 1
8073 ctlibs_base="$ctlibs_base -lgetopt"
8074 LDFLAGS="$LDFLAGS -L../getopt"
8079 if test "$GETOPTLONG"="1"; then
8080 INCLUDED_GETOPT_LONG_TRUE=
8081 INCLUDED_GETOPT_LONG_FALSE='#'
8083 INCLUDED_GETOPT_LONG_TRUE='#'
8084 INCLUDED_GETOPT_LONG_FALSE=
8088 if test "${readline}" = "true" ; then
8089 ctlibs_base="$ctlibs_base -lreadline"
8090 if test "${ncurses}" = "true"; then
8091 ctlibs_base="$ctlibs_base -lncurses"
8092 elif test "${curses}" = "true"; then
8093 ctlibs_base="$ctlibs_base -lcurses"
8097 echo "$as_me:$LINENO: checking debug" >&5
8098 echo $ECHO_N "checking debug... $ECHO_C" >&6
8099 # Check whether --enable-debug or --disable-debug was given.
8100 if test "${enable_debug+set}" = set; then
8101 enableval="$enable_debug"
8102 case "${enableval}" in
8104 echo "$as_me:$LINENO: result: yes" >&5
8105 echo "${ECHO_T}yes" >&6
8108 echo "$as_me:$LINENO: result: no" >&5
8109 echo "${ECHO_T}no" >&6
8111 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8112 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8116 debug=false; echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6
8121 if test "$debug" = "true"; then
8130 if test "$datadir" != "" ; then
8131 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8134 if test "$debug" = "true" ; then
8135 CFLAGS="$CFLAGS -g -DDEBUG"
8137 cat >>confdefs.h <<\_ACEOF
8142 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8144 cat >>confdefs.h <<\_ACEOF
8150 if test "${pthread}" = "true" ; then
8152 cat >>confdefs.h <<\_ACEOF
8153 #define HAVE_WXTHREADS 1
8158 echo "$as_me:$LINENO: checking sstream" >&5
8159 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8160 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8161 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8162 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8164 cat >>confdefs.h <<\_ACEOF
8165 #define HAVE_SSTREAM 1
8168 echo "$as_me:$LINENO: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8171 echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6
8176 CFLAGS="$CFLAGS -Wall"
8177 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8178 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8179 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8180 if test "${enable_verbose_warnings+set}" = set; then
8181 enableval="$enable_verbose_warnings"
8182 case "$enableval" in
8184 echo "$as_me:$LINENO: result: yes" >&5
8185 echo "${ECHO_T}yes" >&6
8186 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8189 echo "$as_me:$LINENO: result: no" >&5
8190 echo "${ECHO_T}no" >&6
8194 echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6
8199 echo "$as_me:$LINENO: checking static executables" >&5
8200 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8201 # Check whether --enable-static or --disable-static was given.
8202 if test "${enable_static+set}" = set; then
8203 enableval="$enable_static"
8204 case "$enableval" in
8206 echo "$as_me:$LINENO: result: yes" >&5
8207 echo "${ECHO_T}yes" >&6
8208 CFLAGS="$CFLAGS --static"
8211 echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6
8216 echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8222 # Check whether --with-lam or --without-lam was given.
8223 if test "${with_lam+set}" = set; then
8225 if test "$withval" != "no" ; then
8231 if test "$withval" != "no" ; then
8232 if test "$prefix" != "NONE" ; then
8233 trylamdir="$trylamdir $prefix"
8236 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8237 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8238 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8239 if test -x "$testlamdir/bin/hcp" ; then
8240 if test "$testlamdir" != "/usr"; then
8241 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8242 CFLAGS="$CFLAGS -I$testlamdir/include"
8244 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8245 lamdir="$testlamdir"
8252 echo "$as_me:$LINENO: result: $lamdir" >&5
8253 echo "${ECHO_T}$lamdir" >&6
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8261 # Check whether --with-ctn or --without-ctn was given.
8262 if test "${with_ctn+set}" = set; then
8264 if test "$withval" != "no" ; then
8270 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8271 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8272 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8273 echo "$as_me:$LINENO: result: disabled" >&5
8274 echo "${ECHO_T}disabled" >&6
8276 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8277 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8278 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8279 if test -f "$testctndir/libctn.a" ; then
8280 LDFLAGS="$LDFLAGS -L$testctndir"
8285 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
8286 if test -f "$testctndir/ctn_os.h" ; then
8287 CFLAGS="$CFLAGS -I$testctndir"
8292 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
8295 cat >>confdefs.h <<\_ACEOF
8296 #define HAVE_CTN_DICOM 1
8299 echo "$as_me:$LINENO: result: yes" >&5
8300 echo "${ECHO_T}yes" >&6
8302 echo "$as_me:$LINENO: result: no" >&5
8303 echo "${ECHO_T}no" >&6
8307 echo "$as_me:$LINENO: checking for CPU specification" >&5
8308 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
8310 # Check whether --with-mcpu or --without-mcpu was given.
8311 if test "${with_mcpu+set}" = set; then
8312 withval="$with_mcpu"
8316 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
8317 echo "$as_me:$LINENO: result: no" >&5
8318 echo "${ECHO_T}no" >&6
8320 echo "$as_me:$LINENO: result: $withval" >&5
8321 echo "${ECHO_T}$withval" >&6
8322 CFLAGS="$CFLAGS -mcpu=$withval"
8325 echo "$as_me:$LINENO: checking for web access" >&5
8326 echo $ECHO_N "checking for web access... $ECHO_C" >&6
8328 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
8329 if test "${with_cgibin_dir+set}" = set; then
8330 withval="$with_cgibin_dir"
8331 cgibindir=$withval ;
8335 # Check whether --with-cgibin-url or --without-cgibin-url was given.
8336 if test "${with_cgibin_url+set}" = set; then
8337 withval="$with_cgibin_url"
8338 cgibinurl=$withval ;
8342 # Check whether --with-webdata-dir or --without-webdata-dir was given.
8343 if test "${with_webdata_dir+set}" = set; then
8344 withval="$with_webdata_dir"
8345 webdatadir=$withval ;
8349 # Check whether --with-webdata-url or --without-webdata-url was given.
8350 if test "${with_webdata_url+set}" = set; then
8351 withval="$with_webdata_url"
8352 webdataurl=$withval ;
8356 # Check whether --with-html-dir or --without-html-dir was given.
8357 if test "${with_html_dir+set}" = set; then
8358 withval="$with_html_dir"
8362 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
8363 cgiprograms="ctsim.cgi ctsim.conf"
8367 if test -n "$htmldir" ; then
8368 htmldata=simulate.html
8373 if test -n "$htmldir"; then
8382 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8385 echo "$as_me:$LINENO: result: yes" >&5
8386 echo "${ECHO_T}yes" >&6
8387 if test -z "$cgibindir" ; then
8388 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8389 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8390 { (exit 1); exit 1; }; }
8391 elif test -z "$cgibinurl" ; then
8392 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8393 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8394 { (exit 1); exit 1; }; }
8395 elif test -z "$webdatadir" ; then
8396 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8397 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8398 { (exit 1); exit 1; }; }
8399 elif test -z "$webdataurl" ; then
8400 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8401 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8402 { (exit 1); exit 1; }; }
8403 elif test -z "$htmldir" ; then
8404 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8405 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8406 { (exit 1); exit 1; }; }
8409 echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6
8415 if test -n "$lamdir"; then
8425 echo "$as_me:$LINENO: checking for X" >&5
8426 echo $ECHO_N "checking for X... $ECHO_C" >&6
8429 # Check whether --with-x or --without-x was given.
8430 if test "${with_x+set}" = set; then
8434 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8435 if test "x$with_x" = xno; then
8436 # The user explicitly disabled X.
8439 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8440 # Both variables are already set.
8443 if test "${ac_cv_have_x+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 # One or both of the vars are not set, and there is no cached value.
8447 ac_x_includes=no ac_x_libraries=no
8449 if mkdir conftest.dir; then
8451 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8452 cat >Imakefile <<'_ACEOF'
8454 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8456 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8457 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8458 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8459 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8460 for ac_extension in a so sl; do
8461 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8462 test -f $ac_im_libdir/libX11.$ac_extension; then
8463 ac_im_usrlibdir=$ac_im_libdir; break
8466 # Screen out bogus values from the imake configuration. They are
8467 # bogus both because they are the default anyway, and because
8468 # using them would break gcc on systems where it needs fixed includes.
8469 case $ac_im_incroot in
8471 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8473 case $ac_im_usrlibdir in
8475 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8482 # Standard set of common directories for X headers.
8483 # Check X11 before X11Rn because it is often a symlink to the current release.
8495 /usr/local/X11/include
8496 /usr/local/X11R6/include
8497 /usr/local/X11R5/include
8498 /usr/local/X11R4/include
8500 /usr/local/include/X11
8501 /usr/local/include/X11R6
8502 /usr/local/include/X11R5
8503 /usr/local/include/X11R4
8507 /usr/XFree86/include/X11
8511 /usr/unsupported/include
8513 /usr/local/x11r5/include
8514 /usr/lpp/Xamples/include
8516 /usr/openwin/include
8517 /usr/openwin/share/include'
8519 if test "$ac_x_includes" = no; then
8520 # Guess where to find include files, by looking for Intrinsic.h.
8521 # First, try using that file with no special directory specified.
8522 cat >conftest.$ac_ext <<_ACEOF
8523 #line $LINENO "configure"
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 #include <X11/Intrinsic.h>
8531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } >/dev/null; then
8539 if test -s conftest.err; then
8540 ac_cpp_err=$ac_c_preproc_warn_flag
8547 if test -z "$ac_cpp_err"; then
8548 # We can compile using X headers with no special include directory.
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 for ac_dir in $ac_x_header_dirs; do
8555 if test -r "$ac_dir/X11/Intrinsic.h"; then
8556 ac_x_includes=$ac_dir
8561 rm -f conftest.err conftest.$ac_ext
8562 fi # $ac_x_includes = no
8564 if test "$ac_x_libraries" = no; then
8565 # Check for the libraries.
8566 # See if we find them without any special options.
8567 # Don't add to $LIBS permanently.
8570 cat >conftest.$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 #include <X11/Intrinsic.h>
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588 (eval $ac_link) 2>&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -s conftest$ac_exeext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8599 # We can link X programs with no special library path.
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8606 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8608 # Don't even attempt the hair of trying to link an X program!
8609 for ac_extension in a so sl; do
8610 if test -r $ac_dir/libXt.$ac_extension; then
8611 ac_x_libraries=$ac_dir
8617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8618 fi # $ac_x_libraries = no
8620 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8621 # Didn't find X anywhere. Cache the known absence of X.
8622 ac_cv_have_x="have_x=no"
8624 # Record where we found X for the cache.
8625 ac_cv_have_x="have_x=yes \
8626 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8631 eval "$ac_cv_have_x"
8634 if test "$have_x" != yes; then
8635 echo "$as_me:$LINENO: result: $have_x" >&5
8636 echo "${ECHO_T}$have_x" >&6
8639 # If each of the values was on the command line, it overrides each guess.
8640 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8641 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8642 # Update the cache value to reflect the command line values.
8643 ac_cv_have_x="have_x=yes \
8644 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8645 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8646 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8649 if test "$no_x" = yes; then
8650 # Not all programs may use this symbol, but it does not hurt to define it.
8652 cat >>confdefs.h <<\_ACEOF
8653 #define X_DISPLAY_MISSING 1
8656 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8658 if test -n "$x_includes"; then
8659 X_CFLAGS="$X_CFLAGS -I$x_includes"
8662 # It would also be nice to do this for all -L options, not just this one.
8663 if test -n "$x_libraries"; then
8664 X_LIBS="$X_LIBS -L$x_libraries"
8665 # For Solaris; some versions of Sun CC require a space after -R and
8666 # others require no space. Words are not sufficient . . . .
8667 case `(uname -sr) 2>/dev/null` in
8669 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8670 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8671 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8672 cat >conftest.$ac_ext <<_ACEOF
8673 #line $LINENO "configure"
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8708 if test $ac_R_nospace = yes; then
8709 echo "$as_me:$LINENO: result: no" >&5
8710 echo "${ECHO_T}no" >&6
8711 X_LIBS="$X_LIBS -R$x_libraries"
8713 LIBS="$ac_xsave_LIBS -R $x_libraries"
8714 cat >conftest.$ac_ext <<_ACEOF
8715 #line $LINENO "configure"
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8730 rm -f conftest.$ac_objext conftest$ac_exeext
8731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732 (eval $ac_link) 2>&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8750 if test $ac_R_space = yes; then
8751 echo "$as_me:$LINENO: result: yes" >&5
8752 echo "${ECHO_T}yes" >&6
8753 X_LIBS="$X_LIBS -R $x_libraries"
8755 echo "$as_me:$LINENO: result: neither works" >&5
8756 echo "${ECHO_T}neither works" >&6
8763 # Check for system-dependent libraries X programs must link with.
8764 # Do this before checking for the system-independent R6 libraries
8765 # (-lICE), since we may need -lsocket or whatever for X linking.
8767 if test "$ISC" = yes; then
8768 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8770 # Martyn Johnson says this is needed for Ultrix, if the X
8771 # libraries were built with DECnet support. And Karl Berry says
8772 # the Alpha needs dnet_stub (dnet does not exist).
8773 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8774 cat >conftest.$ac_ext <<_ACEOF
8775 #line $LINENO "configure"
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8782 /* Override any gcc2 internal prototype to avoid an error. */
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8788 char XOpenDisplay ();
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799 (eval $ac_link) 2>&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8815 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8816 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 ac_check_lib_save_LIBS=$LIBS
8821 cat >conftest.$ac_ext <<_ACEOF
8822 #line $LINENO "configure"
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* Override any gcc2 internal prototype to avoid an error. */
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try='test -s conftest$ac_exeext'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 ac_cv_lib_dnet_dnet_ntoa=yes
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_lib_dnet_dnet_ntoa=no
8863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8864 LIBS=$ac_check_lib_save_LIBS
8866 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8867 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8868 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8869 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8872 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8873 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8874 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8875 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8878 ac_check_lib_save_LIBS=$LIBS
8879 LIBS="-ldnet_stub $LIBS"
8880 cat >conftest.$ac_ext <<_ACEOF
8881 #line $LINENO "configure"
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8888 /* Override any gcc2 internal prototype to avoid an error. */
8892 /* We use char because int might match the return type of a gcc2
8893 builtin and then its argument prototype would still apply. */
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 ac_cv_lib_dnet_stub_dnet_ntoa=no
8922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8923 LIBS=$ac_check_lib_save_LIBS
8925 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8926 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8927 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8928 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8934 LIBS="$ac_xsave_LIBS"
8936 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8937 # to get the SysV transport functions.
8938 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8940 # The nsl library prevents programs from opening the X display
8941 # on Irix 5.2, according to T.E. Dickey.
8942 # The functions gethostbyname, getservbyname, and inet_addr are
8943 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8944 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8945 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8946 if test "${ac_cv_func_gethostbyname+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 cat >conftest.$ac_ext <<_ACEOF
8950 #line $LINENO "configure"
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956 /* System header to define __stub macros and hopefully few prototypes,
8957 which can conflict with char gethostbyname (); below.
8958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8959 <limits.h> exists even on freestanding compilers. */
8961 # include <limits.h>
8963 # include <assert.h>
8965 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8972 char gethostbyname ();
8973 /* The GNU C library defines this for functions which it implements
8974 to always fail with ENOSYS. Some functions are actually named
8975 something starting with __ and the normal name is an alias. */
8976 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8979 char (*f) () = gethostbyname;
8988 return f != gethostbyname;
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try='test -s conftest$ac_exeext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_func_gethostbyname=yes
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9010 ac_cv_func_gethostbyname=no
9012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9014 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9015 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9017 if test $ac_cv_func_gethostbyname = no; then
9018 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9019 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9020 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 ac_check_lib_save_LIBS=$LIBS
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line $LINENO "configure"
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 /* Override any gcc2 internal prototype to avoid an error. */
9037 /* We use char because int might match the return type of a gcc2
9038 builtin and then its argument prototype would still apply. */
9039 char gethostbyname ();
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9050 (eval $ac_link) 2>&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -s conftest$ac_exeext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 ac_cv_lib_nsl_gethostbyname=yes
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_lib_nsl_gethostbyname=no
9067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9068 LIBS=$ac_check_lib_save_LIBS
9070 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9071 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9072 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9076 if test $ac_cv_lib_nsl_gethostbyname = no; then
9077 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9078 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9079 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 ac_check_lib_save_LIBS=$LIBS
9084 cat >conftest.$ac_ext <<_ACEOF
9085 #line $LINENO "configure"
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9092 /* Override any gcc2 internal prototype to avoid an error. */
9096 /* We use char because int might match the return type of a gcc2
9097 builtin and then its argument prototype would still apply. */
9098 char gethostbyname ();
9107 rm -f conftest.$ac_objext conftest$ac_exeext
9108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109 (eval $ac_link) 2>&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -s conftest$ac_exeext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 ac_cv_lib_bsd_gethostbyname=yes
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_cv_lib_bsd_gethostbyname=no
9126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9127 LIBS=$ac_check_lib_save_LIBS
9129 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9130 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9131 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9138 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9139 # socket/setsockopt and other routines are undefined under SCO ODT
9140 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9141 # on later versions), says Simon Leinen: it contains gethostby*
9142 # variants that don't use the name server (or something). -lsocket
9143 # must be given before -lnsl if both are needed. We assume that
9144 # if connect needs -lnsl, so does gethostbyname.
9145 echo "$as_me:$LINENO: checking for connect" >&5
9146 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9147 if test "${ac_cv_func_connect+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 cat >conftest.$ac_ext <<_ACEOF
9151 #line $LINENO "configure"
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9157 /* System header to define __stub macros and hopefully few prototypes,
9158 which can conflict with char connect (); below.
9159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9160 <limits.h> exists even on freestanding compilers. */
9162 # include <limits.h>
9164 # include <assert.h>
9166 /* Override any gcc2 internal prototype to avoid an error. */
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9174 /* The GNU C library defines this for functions which it implements
9175 to always fail with ENOSYS. Some functions are actually named
9176 something starting with __ and the normal name is an alias. */
9177 #if defined (__stub_connect) || defined (__stub___connect)
9180 char (*f) () = connect;
9189 return f != connect;
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -s conftest$ac_exeext'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_cv_func_connect=yes
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9211 ac_cv_func_connect=no
9213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9215 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9216 echo "${ECHO_T}$ac_cv_func_connect" >&6
9218 if test $ac_cv_func_connect = no; then
9219 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9220 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9221 if test "${ac_cv_lib_socket_connect+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 ac_check_lib_save_LIBS=$LIBS
9225 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9226 cat >conftest.$ac_ext <<_ACEOF
9227 #line $LINENO "configure"
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9234 /* Override any gcc2 internal prototype to avoid an error. */
9238 /* We use char because int might match the return type of a gcc2
9239 builtin and then its argument prototype would still apply. */
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251 (eval $ac_link) 2>&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_socket_connect=yes
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_lib_socket_connect=no
9268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9269 LIBS=$ac_check_lib_save_LIBS
9271 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9272 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9273 if test $ac_cv_lib_socket_connect = yes; then
9274 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9279 # Guillermo Gomez says -lposix is necessary on A/UX.
9280 echo "$as_me:$LINENO: checking for remove" >&5
9281 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9282 if test "${ac_cv_func_remove+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9286 #line $LINENO "configure"
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9292 /* System header to define __stub macros and hopefully few prototypes,
9293 which can conflict with char remove (); below.
9294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9295 <limits.h> exists even on freestanding compilers. */
9297 # include <limits.h>
9299 # include <assert.h>
9301 /* Override any gcc2 internal prototype to avoid an error. */
9306 /* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
9309 /* The GNU C library defines this for functions which it implements
9310 to always fail with ENOSYS. Some functions are actually named
9311 something starting with __ and the normal name is an alias. */
9312 #if defined (__stub_remove) || defined (__stub___remove)
9315 char (*f) () = remove;
9329 rm -f conftest.$ac_objext conftest$ac_exeext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331 (eval $ac_link) 2>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
9335 { ac_try='test -s conftest$ac_exeext'
9336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
9341 ac_cv_func_remove=yes
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9346 ac_cv_func_remove=no
9348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9351 echo "${ECHO_T}$ac_cv_func_remove" >&6
9353 if test $ac_cv_func_remove = no; then
9354 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9355 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9356 if test "${ac_cv_lib_posix_remove+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 ac_check_lib_save_LIBS=$LIBS
9360 LIBS="-lposix $LIBS"
9361 cat >conftest.$ac_ext <<_ACEOF
9362 #line $LINENO "configure"
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9369 /* Override any gcc2 internal prototype to avoid an error. */
9373 /* We use char because int might match the return type of a gcc2
9374 builtin and then its argument prototype would still apply. */
9384 rm -f conftest.$ac_objext conftest$ac_exeext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9386 (eval $ac_link) 2>&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -s conftest$ac_exeext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_cv_lib_posix_remove=yes
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_cv_lib_posix_remove=no
9403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9406 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9407 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9408 if test $ac_cv_lib_posix_remove = yes; then
9409 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9414 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9415 echo "$as_me:$LINENO: checking for shmat" >&5
9416 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9417 if test "${ac_cv_func_shmat+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 cat >conftest.$ac_ext <<_ACEOF
9421 #line $LINENO "configure"
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char shmat (); below.
9429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9430 <limits.h> exists even on freestanding compilers. */
9432 # include <limits.h>
9434 # include <assert.h>
9436 /* Override any gcc2 internal prototype to avoid an error. */
9441 /* We use char because int might match the return type of a gcc2
9442 builtin and then its argument prototype would still apply. */
9444 /* The GNU C library defines this for functions which it implements
9445 to always fail with ENOSYS. Some functions are actually named
9446 something starting with __ and the normal name is an alias. */
9447 #if defined (__stub_shmat) || defined (__stub___shmat)
9450 char (*f) () = shmat;
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_cv_func_shmat=yes
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9485 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9486 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9488 if test $ac_cv_func_shmat = no; then
9489 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9490 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9491 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 ac_check_lib_save_LIBS=$LIBS
9496 cat >conftest.$ac_ext <<_ACEOF
9497 #line $LINENO "configure"
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9504 /* Override any gcc2 internal prototype to avoid an error. */
9508 /* We use char because int might match the return type of a gcc2
9509 builtin and then its argument prototype would still apply. */
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_cv_lib_ipc_shmat=yes
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ac_cv_lib_ipc_shmat=no
9538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9539 LIBS=$ac_check_lib_save_LIBS
9541 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9542 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9543 if test $ac_cv_lib_ipc_shmat = yes; then
9544 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9550 # Check for libraries that X11R6 Xt/Xaw programs need.
9551 ac_save_LDFLAGS=$LDFLAGS
9552 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9553 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9554 # check for ICE first), but we must link in the order -lSM -lICE or
9555 # we get undefined symbols. So assume we have SM if we have ICE.
9556 # These have to be linked with before -lX11, unlike the other
9557 # libraries we check for below, so use a different variable.
9558 # John Interrante, Karl Berry
9559 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9560 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9561 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 ac_check_lib_save_LIBS=$LIBS
9565 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9574 /* Override any gcc2 internal prototype to avoid an error. */
9578 /* We use char because int might match the return type of a gcc2
9579 builtin and then its argument prototype would still apply. */
9580 char IceConnectionNumber ();
9584 IceConnectionNumber ();
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try='test -s conftest$ac_exeext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_cv_lib_ICE_IceConnectionNumber=yes
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_cv_lib_ICE_IceConnectionNumber=no
9608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9611 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9612 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9613 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9614 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9617 LDFLAGS=$ac_save_LDFLAGS
9628 X_TOOLKIT_LIBS="-lXt"
9629 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9631 our_saved_LDFLAGS="$LDFLAGS"
9632 LDFLAGS="$X_LIBS $LDFLAGS"
9633 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9634 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9635 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 ac_check_lib_save_LIBS=$LIBS
9639 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9640 cat >conftest.$ac_ext <<_ACEOF
9641 #line $LINENO "configure"
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9648 /* Override any gcc2 internal prototype to avoid an error. */
9652 /* We use char because int might match the return type of a gcc2
9653 builtin and then its argument prototype would still apply. */
9654 char XtToolkitThreadInitialize ();
9658 XtToolkitThreadInitialize ();
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS
9685 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9686 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9687 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9689 cat >>confdefs.h <<\_ACEOF
9690 #define X_THREAD_SUPPORT 1
9695 LDFLAGS="$our_saved_LDFLAGS"
9699 if test "x$no_x" = "xyes"; then
9708 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9711 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9713 echo "$as_me:$LINENO: checking for X" >&5
9714 echo $ECHO_N "checking for X... $ECHO_C" >&6
9715 if test "$no_x" != "yes" ; then
9717 cat >>confdefs.h <<\_ACEOF
9721 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9722 my_includes="$my_includes -I/usr/X11R6/include"
9723 ctlib_graphics="$ctlibs_base -lctgraphics"
9724 echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6
9726 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9727 if test "$libgl" = "true" ; then
9728 # Removed "-lglut" for Mac OS X compilation
9729 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9730 if test "$wxwin" = "true" ; then
9732 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9733 elif "$wx_mac" ; then
9734 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9738 if test "$wxwin" = "true" ; then
9740 cat >>confdefs.h <<\_ACEOF
9746 echo "$as_me:$LINENO: result: no" >&5
9747 echo "${ECHO_T}no" >&6
9752 if test "$wxwin" = "true"; then
9761 if test "$png" = "true" ; then
9762 ctlibs_tools="$ctlibs_tools -lpng"
9764 if test "$zlib" = "true" ; then
9765 ctlibs_tools="$ctlibs_tools -lz"
9767 if test "$fftw" = "true" ; then
9768 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9770 if test "$ctn" = "true"; then
9771 ctlibs_tools="$ctlibs_tools -lctn"
9774 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9775 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9776 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 ac_check_lib_save_LIBS=$LIBS
9780 LIBS="-ldmallocxx $LIBS"
9781 cat >conftest.$ac_ext <<_ACEOF
9782 #line $LINENO "configure"
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_lib_dmallocxx_main=yes
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_cv_lib_dmallocxx_main=no
9817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9818 LIBS=$ac_check_lib_save_LIBS
9820 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9821 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9822 if test $ac_cv_lib_dmallocxx_main = yes; then
9828 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9829 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9830 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9831 if test "${enable_dmalloc+set}" = set; then
9832 enableval="$enable_dmalloc"
9833 case "${enableval}" in
9834 yes) usedmalloc=true
9835 echo "$as_me:$LINENO: result: yes" >&5
9836 echo "${ECHO_T}yes" >&6
9838 no) usedmalloc=false
9839 echo "$as_me:$LINENO: result: no" >&5
9840 echo "${ECHO_T}no" >&6
9842 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9843 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9847 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6
9851 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9852 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_DMALLOC 1
9858 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9859 echo "${ECHO_T}Using dmalloc" >&6
9862 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9863 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9864 if test "${ac_cv_lib_efence_main+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 ac_check_lib_save_LIBS=$LIBS
9868 LIBS="-lefence $LIBS"
9869 cat >conftest.$ac_ext <<_ACEOF
9870 #line $LINENO "configure"
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888 (eval $ac_link) 2>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_lib_efence_main=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_cv_lib_efence_main=no
9905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9909 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9910 if test $ac_cv_lib_efence_main = yes; then
9916 echo "$as_me:$LINENO: checking for enable-efence" >&5
9917 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9918 # Check whether --enable-efence or --disable-efence was given.
9919 if test "${enable_efence+set}" = set; then
9920 enableval="$enable_efence"
9921 case "${enableval}" in
9923 echo "$as_me:$LINENO: result: yes" >&5
9924 echo "${ECHO_T}yes" >&6
9927 echo "$as_me:$LINENO: result: no" >&5
9928 echo "${ECHO_T}no" >&6
9930 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9931 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9935 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9936 echo "${ECHO_T}no" >&6
9939 if test "$efence" = "true" -a "$useefence" = "true" ; then
9940 ctlibs_tools="$ctlibs_tools -lefence"
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_EFENCE 1
9946 echo "$as_me:$LINENO: result: Using efence" >&5
9947 echo "${ECHO_T}Using efence" >&6
9950 if test "$wxwin" = "true" ; then
9951 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
9952 wxcflags=`$wxconfig --cflags`
9953 wxlibs=`$wxconfig --libs`
9955 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9956 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9958 CFLAGS="$CFLAGS -I../include $wxcflags"
9959 ctlib_graphics="$ctlib_graphics $wxlibs"
9965 if test "$wxwin"="true"; then
9966 HAVE_WXWINDOWS_TRUE=
9967 HAVE_WXWINDOWS_FALSE='#'
9969 HAVE_WXWINDOWS_TRUE='#'
9970 HAVE_WXWINDOWS_FALSE=
9974 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9975 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9978 if test -n "$lamdir" ; then
9979 lamprograms="ctsimtext-lam"
9987 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"
9990 cat >confcache <<\_ACEOF
9991 # This file is a shell script that caches the results of configure
9992 # tests run on this system so they can be shared between configure
9993 # scripts and configure runs, see configure's option --config-cache.
9994 # It is not useful on other systems. If it contains results you don't
9995 # want to keep, you may remove or edit it.
9997 # config.status only pays attention to the cache file if you give it
9998 # the --recheck option to rerun configure.
10000 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10001 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10002 # following values.
10006 # The following way of writing the cache mishandles newlines in values,
10007 # but we know of no workaround that is simple, portable, and efficient.
10008 # So, don't put newlines in cache variables' values.
10009 # Ultrix sh set writes to stderr and can't be redirected directly,
10010 # and sets the high bit in the cache file unless we assign to the vars.
10013 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10015 # `set' does not quote correctly, so add quotes (double-quote
10016 # substitution turns \\\\ into \\, and sed turns \\ into \).
10019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10022 # `set' quotes correctly as required by POSIX, so do not add quotes.
10024 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10033 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10035 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10036 if test -w $cache_file; then
10037 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10038 cat confcache >$cache_file
10040 echo "not updating unwritable cache $cache_file"
10045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10046 # Let make expand exec_prefix.
10047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10049 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10050 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10051 # trailing colons and then remove the whole line if VPATH becomes empty
10052 # (actually we leave an empty line to preserve line numbers).
10053 if test "x$srcdir" = x.; then
10054 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10055 s/:*\$(srcdir):*/:/;
10056 s/:*\${srcdir}:*/:/;
10058 s/^\([^=]*=[ ]*\):*/\1/;
10064 DEFS=-DHAVE_CONFIG_H
10068 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10069 # 1. Remove the extension, and $U if already installed.
10070 ac_i=`echo "$ac_i" |
10071 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10073 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10074 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10076 LIBOBJS=$ac_libobjs
10078 LTLIBOBJS=$ac_ltlibobjs
10081 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10082 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10083 Usually this means the macro was only invoked conditionally." >&5
10084 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10085 Usually this means the macro was only invoked conditionally." >&2;}
10086 { (exit 1); exit 1; }; }
10088 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10089 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10090 Usually this means the macro was only invoked conditionally." >&5
10091 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10092 Usually this means the macro was only invoked conditionally." >&2;}
10093 { (exit 1); exit 1; }; }
10095 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10096 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10097 Usually this means the macro was only invoked conditionally." >&5
10098 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10099 Usually this means the macro was only invoked conditionally." >&2;}
10100 { (exit 1); exit 1; }; }
10102 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10103 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10104 Usually this means the macro was only invoked conditionally." >&5
10105 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10106 Usually this means the macro was only invoked conditionally." >&2;}
10107 { (exit 1); exit 1; }; }
10109 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10110 { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10111 Usually this means the macro was only invoked conditionally." >&5
10112 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10113 Usually this means the macro was only invoked conditionally." >&2;}
10114 { (exit 1); exit 1; }; }
10116 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10117 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10118 Usually this means the macro was only invoked conditionally." >&5
10119 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10120 Usually this means the macro was only invoked conditionally." >&2;}
10121 { (exit 1); exit 1; }; }
10123 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10124 { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10125 Usually this means the macro was only invoked conditionally." >&5
10126 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10127 Usually this means the macro was only invoked conditionally." >&2;}
10128 { (exit 1); exit 1; }; }
10130 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10131 { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10132 Usually this means the macro was only invoked conditionally." >&5
10133 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10134 Usually this means the macro was only invoked conditionally." >&2;}
10135 { (exit 1); exit 1; }; }
10137 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10138 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10139 Usually this means the macro was only invoked conditionally." >&5
10140 echo "$as_me: error: conditional \"NO_X\" was never defined.
10141 Usually this means the macro was only invoked conditionally." >&2;}
10142 { (exit 1); exit 1; }; }
10144 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10145 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10146 Usually this means the macro was only invoked conditionally." >&5
10147 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10148 Usually this means the macro was only invoked conditionally." >&2;}
10149 { (exit 1); exit 1; }; }
10151 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
10152 { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10153 Usually this means the macro was only invoked conditionally." >&5
10154 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10155 Usually this means the macro was only invoked conditionally." >&2;}
10156 { (exit 1); exit 1; }; }
10159 : ${CONFIG_STATUS=./config.status}
10160 ac_clean_files_save=$ac_clean_files
10161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10162 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10163 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10164 cat >$CONFIG_STATUS <<_ACEOF
10166 # Generated by $as_me.
10167 # Run this file to recreate the current configuration.
10168 # Compiler output produced by configure, useful for debugging
10169 # configure, is in config.log if it exists.
10172 ac_cs_recheck=false
10174 SHELL=\${CONFIG_SHELL-$SHELL}
10177 cat >>$CONFIG_STATUS <<\_ACEOF
10178 ## --------------------- ##
10179 ## M4sh Initialization. ##
10180 ## --------------------- ##
10182 # Be Bourne compatible
10183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10186 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10187 # is contrary to our usage. Disable this feature.
10188 alias -g '${1+"$@"}'='"$@"'
10189 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10193 # Support unset when possible.
10194 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10201 # Work around bugs in pre-3.0 UWIN ksh.
10202 $as_unset ENV MAIL MAILPATH
10209 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10210 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10211 LC_TELEPHONE LC_TIME
10213 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10214 eval $as_var=C; export $as_var
10220 # Required to use basename.
10221 if expr a : '\(a\)' >/dev/null 2>&1; then
10227 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10228 as_basename=basename
10234 # Name of the executable.
10235 as_me=`$as_basename "$0" ||
10236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10237 X"$0" : 'X\(//\)$' \| \
10238 X"$0" : 'X\(/\)$' \| \
10239 . : '\(.\)' 2>/dev/null ||
10241 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10242 /^X\/\(\/\/\)$/{ s//\1/; q; }
10243 /^X\/\(\/\).*/{ s//\1/; q; }
10247 # PATH needs CR, and LINENO needs CR and PATH.
10248 # Avoid depending upon Character Ranges.
10249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10252 as_cr_digits='0123456789'
10253 as_cr_alnum=$as_cr_Letters$as_cr_digits
10255 # The user is always right.
10256 if test "${PATH_SEPARATOR+set}" != set; then
10257 echo "#! /bin/sh" >conf$$.sh
10258 echo "exit 0" >>conf$$.sh
10260 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10269 as_lineno_1=$LINENO
10270 as_lineno_2=$LINENO
10271 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10272 test "x$as_lineno_1" != "x$as_lineno_2" &&
10273 test "x$as_lineno_3" = "x$as_lineno_2" || {
10274 # Find who we are. Look in the path if we contain no path at all
10277 *[\\/]* ) as_myself=$0 ;;
10278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10282 test -z "$as_dir" && as_dir=.
10283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10288 # We did not find ourselves, most probably we were run as `sh COMMAND'
10289 # in which case we are not to be found in the path.
10290 if test "x$as_myself" = x; then
10293 if test ! -f "$as_myself"; then
10294 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10295 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10296 { (exit 1); exit 1; }; }
10298 case $CONFIG_SHELL in
10300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10304 test -z "$as_dir" && as_dir=.
10305 for as_base in sh bash ksh sh5; do
10308 if ("$as_dir/$as_base" -c '
10309 as_lineno_1=$LINENO
10310 as_lineno_2=$LINENO
10311 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10312 test "x$as_lineno_1" != "x$as_lineno_2" &&
10313 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10314 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10315 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10316 CONFIG_SHELL=$as_dir/$as_base
10317 export CONFIG_SHELL
10318 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10327 # uniformly replaced by the line number. The first 'sed' inserts a
10328 # line-number line before each line; the second 'sed' does the real
10329 # work. The second script uses 'N' to pair each line-number line
10330 # with the numbered line, and appends trailing '-' during
10331 # substitution so that $LINENO is not a special case at line end.
10332 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10333 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10334 sed '=' <$as_myself |
10339 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10342 s,^['$as_cr_digits']*\n,,
10343 ' >$as_me.lineno &&
10344 chmod +x $as_me.lineno ||
10345 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10346 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10347 { (exit 1); exit 1; }; }
10349 # Don't try to exec as it changes $[0], causing all sort of problems
10350 # (the dirname of $[0] is not the place where we might find the
10351 # original and so on. Autoconf is especially sensible to this).
10353 # Exit status is that of the last command.
10358 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10359 *c*,-n*) ECHO_N= ECHO_C='
10361 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10362 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10365 if expr a : '\(a\)' >/dev/null 2>&1; then
10371 rm -f conf$$ conf$$.exe conf$$.file
10373 if ln -s conf$$.file conf$$ 2>/dev/null; then
10374 # We could just check for DJGPP; but this test a) works b) is more generic
10375 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10376 if test -f conf$$.exe; then
10377 # Don't use ln at all; we don't have any links
10382 elif ln conf$$.file conf$$ 2>/dev/null; then
10387 rm -f conf$$ conf$$.exe conf$$.file
10389 if mkdir -p . 2>/dev/null; then
10395 as_executable_p="test -f"
10397 # Sed expression to map a string onto a valid CPP name.
10398 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10400 # Sed expression to map a string onto a valid variable name.
10401 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10405 # We need space, tab and new line, in precisely that order.
10415 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10416 # report actual input values of CONFIG_FILES etc. instead of their
10417 # values after options handling. Logging --version etc. is OK.
10421 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10422 ## Running $as_me. ##
10427 This file was extended by $as_me, which was
10428 generated by GNU Autoconf 2.57. Invocation command line was
10430 CONFIG_FILES = $CONFIG_FILES
10431 CONFIG_HEADERS = $CONFIG_HEADERS
10432 CONFIG_LINKS = $CONFIG_LINKS
10433 CONFIG_COMMANDS = $CONFIG_COMMANDS
10437 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10441 # Files that config.status was made for.
10442 if test -n "$ac_config_files"; then
10443 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10446 if test -n "$ac_config_headers"; then
10447 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10450 if test -n "$ac_config_links"; then
10451 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10454 if test -n "$ac_config_commands"; then
10455 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10458 cat >>$CONFIG_STATUS <<\_ACEOF
10461 \`$as_me' instantiates files from templates according to the
10462 current configuration.
10464 Usage: $0 [OPTIONS] [FILE]...
10466 -h, --help print this help, then exit
10467 -V, --version print version number, then exit
10468 -q, --quiet do not print progress messages
10469 -d, --debug don't remove temporary files
10470 --recheck update $as_me by reconfiguring in the same conditions
10471 --file=FILE[:TEMPLATE]
10472 instantiate the configuration file FILE
10473 --header=FILE[:TEMPLATE]
10474 instantiate the configuration header FILE
10476 Configuration files:
10479 Configuration headers:
10482 Configuration commands:
10485 Report bugs to <bug-autoconf@gnu.org>."
10488 cat >>$CONFIG_STATUS <<_ACEOF
10491 configured by $0, generated by GNU Autoconf 2.57,
10492 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10494 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10495 Free Software Foundation, Inc.
10496 This config.status script is free software; the Free Software Foundation
10497 gives unlimited permission to copy, distribute and modify it."
10502 cat >>$CONFIG_STATUS <<\_ACEOF
10503 # If no file are specified by the user, then we need to provide default
10504 # value. By we need to know if files were specified by the user.
10510 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10511 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10519 *) # This is not an option, so the user has probably given explicit
10522 ac_need_defaults=false;;
10526 # Handling of the options.
10528 cat >>$CONFIG_STATUS <<\_ACEOF
10529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10531 --version | --vers* | -V )
10532 echo "$ac_cs_version"; exit 0 ;;
10534 # Conflict between --help and --header
10535 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10536 Try \`$0 --help' for more information." >&5
10537 echo "$as_me: error: ambiguous option: $1
10538 Try \`$0 --help' for more information." >&2;}
10539 { (exit 1); exit 1; }; };;
10540 --help | --hel | -h )
10541 echo "$ac_cs_usage"; exit 0 ;;
10542 --debug | --d* | -d )
10544 --file | --fil | --fi | --f )
10546 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10547 ac_need_defaults=false;;
10548 --header | --heade | --head | --hea )
10550 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10551 ac_need_defaults=false;;
10552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10556 # This is an error.
10557 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10558 Try \`$0 --help' for more information." >&5
10559 echo "$as_me: error: unrecognized option: $1
10560 Try \`$0 --help' for more information." >&2;}
10561 { (exit 1); exit 1; }; } ;;
10563 *) ac_config_targets="$ac_config_targets $1" ;;
10569 ac_configure_extra_args=
10571 if $ac_cs_silent; then
10573 ac_configure_extra_args="$ac_configure_extra_args --silent"
10577 cat >>$CONFIG_STATUS <<_ACEOF
10578 if \$ac_cs_recheck; then
10579 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10580 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10585 cat >>$CONFIG_STATUS <<_ACEOF
10587 # INIT-COMMANDS section.
10590 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10596 cat >>$CONFIG_STATUS <<\_ACEOF
10597 for ac_config_target in $ac_config_targets
10599 case "$ac_config_target" in
10600 # Handling of arguments.
10601 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10602 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10603 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10604 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10605 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10606 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10607 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10608 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10609 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10610 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10611 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10612 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10613 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10614 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10615 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10616 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10617 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10618 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10619 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10620 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10621 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10622 { (exit 1); exit 1; }; };;
10626 # If the user did not use the arguments to specify the items to instantiate,
10627 # then the envvar interface is used. Set only those that are not.
10628 # We use the long form for the default assignment because of an extremely
10629 # bizarre bug on SunOS 4.1.3.
10630 if $ac_need_defaults; then
10631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10633 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10636 # Have a temporary directory for convenience. Make it in the build tree
10637 # simply because there is no reason to put it here, and in addition,
10638 # creating and moving files from /tmp can sometimes cause problems.
10639 # Create a temporary directory, and hook for its removal unless debugging.
10642 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10643 trap '{ (exit 1); exit 1; }' 1 2 13 15
10646 # Create a (secure) tmp directory for tmp files.
10649 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10650 test -n "$tmp" && test -d "$tmp"
10653 tmp=./confstat$$-$RANDOM
10654 (umask 077 && mkdir $tmp)
10657 echo "$me: cannot create a temporary directory in ." >&2
10658 { (exit 1); exit 1; }
10663 cat >>$CONFIG_STATUS <<_ACEOF
10666 # CONFIG_FILES section.
10669 # No need to generate the scripts if there are no CONFIG_FILES.
10670 # This happens for instance when ./config.status config.h
10671 if test -n "\$CONFIG_FILES"; then
10672 # Protect against being on the right side of a sed subst in config.status.
10673 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10674 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10675 s,@SHELL@,$SHELL,;t t
10676 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10677 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10678 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10679 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10680 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10681 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10682 s,@exec_prefix@,$exec_prefix,;t t
10683 s,@prefix@,$prefix,;t t
10684 s,@program_transform_name@,$program_transform_name,;t t
10685 s,@bindir@,$bindir,;t t
10686 s,@sbindir@,$sbindir,;t t
10687 s,@libexecdir@,$libexecdir,;t t
10688 s,@datadir@,$datadir,;t t
10689 s,@sysconfdir@,$sysconfdir,;t t
10690 s,@sharedstatedir@,$sharedstatedir,;t t
10691 s,@localstatedir@,$localstatedir,;t t
10692 s,@libdir@,$libdir,;t t
10693 s,@includedir@,$includedir,;t t
10694 s,@oldincludedir@,$oldincludedir,;t t
10695 s,@infodir@,$infodir,;t t
10696 s,@mandir@,$mandir,;t t
10697 s,@build_alias@,$build_alias,;t t
10698 s,@host_alias@,$host_alias,;t t
10699 s,@target_alias@,$target_alias,;t t
10700 s,@DEFS@,$DEFS,;t t
10701 s,@ECHO_C@,$ECHO_C,;t t
10702 s,@ECHO_N@,$ECHO_N,;t t
10703 s,@ECHO_T@,$ECHO_T,;t t
10704 s,@LIBS@,$LIBS,;t t
10705 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10706 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10707 s,@MAINT@,$MAINT,;t t
10708 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10709 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10710 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10711 s,@CYGPATH_W@,$CYGPATH_W,;t t
10712 s,@PACKAGE@,$PACKAGE,;t t
10713 s,@VERSION@,$VERSION,;t t
10714 s,@ACLOCAL@,$ACLOCAL,;t t
10715 s,@AUTOCONF@,$AUTOCONF,;t t
10716 s,@AUTOMAKE@,$AUTOMAKE,;t t
10717 s,@AUTOHEADER@,$AUTOHEADER,;t t
10718 s,@MAKEINFO@,$MAKEINFO,;t t
10719 s,@AMTAR@,$AMTAR,;t t
10720 s,@install_sh@,$install_sh,;t t
10721 s,@STRIP@,$STRIP,;t t
10722 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10723 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10725 s,@SET_MAKE@,$SET_MAKE,;t t
10726 s,@am__leading_dot@,$am__leading_dot,;t t
10727 s,@RANLIB@,$RANLIB,;t t
10728 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10730 s,@CFLAGS@,$CFLAGS,;t t
10731 s,@LDFLAGS@,$LDFLAGS,;t t
10732 s,@CPPFLAGS@,$CPPFLAGS,;t t
10733 s,@ac_ct_CC@,$ac_ct_CC,;t t
10734 s,@EXEEXT@,$EXEEXT,;t t
10735 s,@OBJEXT@,$OBJEXT,;t t
10736 s,@DEPDIR@,$DEPDIR,;t t
10737 s,@am__include@,$am__include,;t t
10738 s,@am__quote@,$am__quote,;t t
10739 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10740 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10741 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10742 s,@CCDEPMODE@,$CCDEPMODE,;t t
10743 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10744 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10746 s,@CXXFLAGS@,$CXXFLAGS,;t t
10747 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10748 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10749 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10750 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10751 s,@wxconfig@,$wxconfig,;t t
10752 s,@build@,$build,;t t
10753 s,@build_cpu@,$build_cpu,;t t
10754 s,@build_vendor@,$build_vendor,;t t
10755 s,@build_os@,$build_os,;t t
10756 s,@host@,$host,;t t
10757 s,@host_cpu@,$host_cpu,;t t
10758 s,@host_vendor@,$host_vendor,;t t
10759 s,@host_os@,$host_os,;t t
10761 s,@EGREP@,$EGREP,;t t
10762 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10763 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10764 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10765 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10766 s,@lamdir@,$lamdir,;t t
10767 s,@mpienable@,$mpienable,;t t
10768 s,@cgibindir@,$cgibindir,;t t
10769 s,@cgibinurl@,$cgibinurl,;t t
10770 s,@webdatadir@,$webdatadir,;t t
10771 s,@webdataurl@,$webdataurl,;t t
10772 s,@htmldir@,$htmldir,;t t
10773 s,@cgiprograms@,$cgiprograms,;t t
10774 s,@htmldata@,$htmldata,;t t
10775 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10776 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10777 s,@webenabled@,$webenabled,;t t
10778 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10779 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10780 s,@X_CFLAGS@,$X_CFLAGS,;t t
10781 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10782 s,@X_LIBS@,$X_LIBS,;t t
10783 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10784 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10785 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10786 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10787 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10788 s,@my_includes@,$my_includes,;t t
10789 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10790 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10791 s,@wxcflags@,$wxcflags,;t t
10792 s,@wxlibs@,$wxlibs,;t t
10793 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10794 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10795 s,@ctlibs@,$ctlibs,;t t
10796 s,@lamprograms@,$lamprograms,;t t
10797 s,@lamdefs@,$lamdefs,;t t
10798 s,@LIBOBJS@,$LIBOBJS,;t t
10799 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10804 cat >>$CONFIG_STATUS <<\_ACEOF
10805 # Split the substitutions into bite-sized pieces for seds with
10806 # small command number limits, like on Digital OSF/1 and HP-UX.
10807 ac_max_sed_lines=48
10808 ac_sed_frag=1 # Number of current file.
10809 ac_beg=1 # First line for current file.
10810 ac_end=$ac_max_sed_lines # Line after last line for current file.
10813 while $ac_more_lines; do
10814 if test $ac_beg -gt 1; then
10815 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10817 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10819 if test ! -s $tmp/subs.frag; then
10820 ac_more_lines=false
10822 # The purpose of the label and of the branching condition is to
10823 # speed up the sed processing (if there are no `@' at all, there
10824 # is no need to browse any of the substitutions).
10825 # These are the two extra sed commands mentioned above.
10827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10828 if test -z "$ac_sed_cmds"; then
10829 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10831 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10833 ac_sed_frag=`expr $ac_sed_frag + 1`
10835 ac_end=`expr $ac_end + $ac_max_sed_lines`
10838 if test -z "$ac_sed_cmds"; then
10841 fi # test -n "$CONFIG_FILES"
10844 cat >>$CONFIG_STATUS <<\_ACEOF
10845 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10848 - | *:- | *:-:* ) # input from stdin
10850 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10851 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10852 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10854 * ) ac_file_in=$ac_file.in ;;
10857 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10858 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10860 X"$ac_file" : 'X\(//\)[^/]' \| \
10861 X"$ac_file" : 'X\(//\)$' \| \
10862 X"$ac_file" : 'X\(/\)' \| \
10863 . : '\(.\)' 2>/dev/null ||
10865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10867 /^X\(\/\/\)$/{ s//\1/; q; }
10868 /^X\(\/\).*/{ s//\1/; q; }
10870 { if $as_mkdir_p; then
10875 while test ! -d "$as_dir"; do
10876 as_dirs="$as_dir $as_dirs"
10877 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10879 X"$as_dir" : 'X\(//\)[^/]' \| \
10880 X"$as_dir" : 'X\(//\)$' \| \
10881 X"$as_dir" : 'X\(/\)' \| \
10882 . : '\(.\)' 2>/dev/null ||
10884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10886 /^X\(\/\/\)$/{ s//\1/; q; }
10887 /^X\(\/\).*/{ s//\1/; q; }
10890 test ! -n "$as_dirs" || mkdir $as_dirs
10891 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10892 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10893 { (exit 1); exit 1; }; }; }
10897 if test "$ac_dir" != .; then
10898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10899 # A "../" for each directory in $ac_dir_suffix.
10900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10902 ac_dir_suffix= ac_top_builddir=
10906 .) # No --srcdir option. We are building in place.
10908 if test -z "$ac_top_builddir"; then
10911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10913 [\\/]* | ?:[\\/]* ) # Absolute path.
10914 ac_srcdir=$srcdir$ac_dir_suffix;
10915 ac_top_srcdir=$srcdir ;;
10916 *) # Relative path.
10917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10920 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10922 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10923 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10924 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10925 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10929 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10930 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10933 if test x"$ac_file" != x-; then
10934 { echo "$as_me:$LINENO: creating $ac_file" >&5
10935 echo "$as_me: creating $ac_file" >&6;}
10938 # Let's still pretend it is `configure' which instantiates (i.e., don't
10939 # use $as_me), people would be surprised to read:
10940 # /* config.h. Generated by config.status. */
10941 if test x"$ac_file" = x-; then
10944 configure_input="$ac_file. "
10946 configure_input=$configure_input"Generated from `echo $ac_file_in |
10947 sed 's,.*/,,'` by configure."
10949 # First look for the input files in the build tree, otherwise in the
10951 ac_file_inputs=`IFS=:
10952 for f in $ac_file_in; do
10954 -) echo $tmp/stdin ;;
10956 # Absolute (can't be DOS-style, as IFS=:)
10957 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10958 echo "$as_me: error: cannot find input file: $f" >&2;}
10959 { (exit 1); exit 1; }; }
10962 if test -f "$f"; then
10965 elif test -f "$srcdir/$f"; then
10970 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10971 echo "$as_me: error: cannot find input file: $f" >&2;}
10972 { (exit 1); exit 1; }; }
10975 done` || { (exit 1); exit 1; }
10977 cat >>$CONFIG_STATUS <<_ACEOF
10981 cat >>$CONFIG_STATUS <<\_ACEOF
10983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10984 s,@configure_input@,$configure_input,;t t
10985 s,@srcdir@,$ac_srcdir,;t t
10986 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10987 s,@top_srcdir@,$ac_top_srcdir,;t t
10988 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10989 s,@builddir@,$ac_builddir,;t t
10990 s,@abs_builddir@,$ac_abs_builddir,;t t
10991 s,@top_builddir@,$ac_top_builddir,;t t
10992 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10993 s,@INSTALL@,$ac_INSTALL,;t t
10994 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10996 if test x"$ac_file" != x-; then
10997 mv $tmp/out $ac_file
11005 cat >>$CONFIG_STATUS <<\_ACEOF
11008 # CONFIG_HEADER section.
11011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11014 # ac_d sets the value in "#define NAME VALUE" lines.
11015 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11016 ac_dB='[ ].*$,\1#\2'
11019 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11020 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11021 ac_uB='$,\1#\2define\3'
11025 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11028 - | *:- | *:-:* ) # input from stdin
11030 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11031 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11032 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11034 * ) ac_file_in=$ac_file.in ;;
11037 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11038 echo "$as_me: creating $ac_file" >&6;}
11040 # First look for the input files in the build tree, otherwise in the
11042 ac_file_inputs=`IFS=:
11043 for f in $ac_file_in; do
11045 -) echo $tmp/stdin ;;
11047 # Absolute (can't be DOS-style, as IFS=:)
11048 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11049 echo "$as_me: error: cannot find input file: $f" >&2;}
11050 { (exit 1); exit 1; }; }
11053 if test -f "$f"; then
11056 elif test -f "$srcdir/$f"; then
11061 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11062 echo "$as_me: error: cannot find input file: $f" >&2;}
11063 { (exit 1); exit 1; }; }
11066 done` || { (exit 1); exit 1; }
11067 # Remove the trailing spaces.
11068 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11072 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11073 # `conftest.undefs', that substitutes the proper values into
11074 # config.h.in to produce config.h. The first handles `#define'
11075 # templates, and the second `#undef' templates.
11076 # And first: Protect against being on the right side of a sed subst in
11077 # config.status. Protect against being in an unquoted here document
11078 # in config.status.
11079 rm -f conftest.defines conftest.undefs
11080 # Using a here document instead of a string reduces the quoting nightmare.
11081 # Putting comments in sed scripts is not portable.
11083 # `end' is used to avoid that the second main sed command (meant for
11084 # 0-ary CPP macros) applies to n-ary macro definitions.
11085 # See the Autoconf documentation for `clear'.
11086 cat >confdef2sed.sed <<\_ACEOF
11091 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11093 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11096 # If some macros were called several times there might be several times
11097 # the same #defines, which is useless. Nevertheless, we may not want to
11098 # sort them, since we want the *last* AC-DEFINE to be honored.
11099 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11100 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11101 rm -f confdef2sed.sed
11103 # This sed command replaces #undef with comments. This is necessary, for
11104 # example, in the case of _POSIX_SOURCE, which is predefined and required
11105 # on some systems where configure will not decide to define it.
11106 cat >>conftest.undefs <<\_ACEOF
11107 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11110 # Break up conftest.defines because some shells have a limit on the size
11111 # of here documents, and old seds have small limits too (100 cmds).
11112 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11113 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11114 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11115 echo ' :' >>$CONFIG_STATUS
11116 rm -f conftest.tail
11117 while grep . conftest.defines >/dev/null
11119 # Write a limited-size here document to $tmp/defines.sed.
11120 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11121 # Speed up: don't consider the non `#define' lines.
11122 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11123 # Work around the forget-to-reset-the-flag bug.
11124 echo 't clr' >>$CONFIG_STATUS
11125 echo ': clr' >>$CONFIG_STATUS
11126 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11128 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11130 mv $tmp/out $tmp/in
11132 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11133 rm -f conftest.defines
11134 mv conftest.tail conftest.defines
11136 rm -f conftest.defines
11137 echo ' fi # grep' >>$CONFIG_STATUS
11138 echo >>$CONFIG_STATUS
11140 # Break up conftest.undefs because some shells have a limit on the size
11141 # of here documents, and old seds have small limits too (100 cmds).
11142 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11143 rm -f conftest.tail
11144 while grep . conftest.undefs >/dev/null
11146 # Write a limited-size here document to $tmp/undefs.sed.
11147 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11148 # Speed up: don't consider the non `#undef'
11149 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11150 # Work around the forget-to-reset-the-flag bug.
11151 echo 't clr' >>$CONFIG_STATUS
11152 echo ': clr' >>$CONFIG_STATUS
11153 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11155 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11157 mv $tmp/out $tmp/in
11159 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11160 rm -f conftest.undefs
11161 mv conftest.tail conftest.undefs
11163 rm -f conftest.undefs
11165 cat >>$CONFIG_STATUS <<\_ACEOF
11166 # Let's still pretend it is `configure' which instantiates (i.e., don't
11167 # use $as_me), people would be surprised to read:
11168 # /* config.h. Generated by config.status. */
11169 if test x"$ac_file" = x-; then
11170 echo "/* Generated by configure. */" >$tmp/config.h
11172 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11174 cat $tmp/in >>$tmp/config.h
11176 if test x"$ac_file" != x-; then
11177 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11178 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11179 echo "$as_me: $ac_file is unchanged" >&6;}
11181 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11183 X"$ac_file" : 'X\(//\)[^/]' \| \
11184 X"$ac_file" : 'X\(//\)$' \| \
11185 X"$ac_file" : 'X\(/\)' \| \
11186 . : '\(.\)' 2>/dev/null ||
11188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11190 /^X\(\/\/\)$/{ s//\1/; q; }
11191 /^X\(\/\).*/{ s//\1/; q; }
11193 { if $as_mkdir_p; then
11198 while test ! -d "$as_dir"; do
11199 as_dirs="$as_dir $as_dirs"
11200 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11202 X"$as_dir" : 'X\(//\)[^/]' \| \
11203 X"$as_dir" : 'X\(//\)$' \| \
11204 X"$as_dir" : 'X\(/\)' \| \
11205 . : '\(.\)' 2>/dev/null ||
11207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11209 /^X\(\/\/\)$/{ s//\1/; q; }
11210 /^X\(\/\).*/{ s//\1/; q; }
11213 test ! -n "$as_dirs" || mkdir $as_dirs
11214 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11215 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11216 { (exit 1); exit 1; }; }; }
11219 mv $tmp/config.h $ac_file
11223 rm -f $tmp/config.h
11225 # Compute $ac_file's index in $config_headers.
11227 for _am_header in $config_headers :; do
11228 case $_am_header in
11229 $ac_file | $ac_file:* )
11232 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11235 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11236 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11237 X$ac_file : 'X\(//\)[^/]' \| \
11238 X$ac_file : 'X\(//\)$' \| \
11239 X$ac_file : 'X\(/\)' \| \
11240 . : '\(.\)' 2>/dev/null ||
11242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11244 /^X\(\/\/\)$/{ s//\1/; q; }
11245 /^X\(\/\).*/{ s//\1/; q; }
11246 s/.*/./; q'`/stamp-h$_am_stamp_count
11249 cat >>$CONFIG_STATUS <<\_ACEOF
11252 # CONFIG_COMMANDS section.
11254 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11255 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11256 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11257 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11258 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11259 X"$ac_dest" : 'X\(//\)[^/]' \| \
11260 X"$ac_dest" : 'X\(//\)$' \| \
11261 X"$ac_dest" : 'X\(/\)' \| \
11262 . : '\(.\)' 2>/dev/null ||
11264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11266 /^X\(\/\/\)$/{ s//\1/; q; }
11267 /^X\(\/\).*/{ s//\1/; q; }
11271 if test "$ac_dir" != .; then
11272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11273 # A "../" for each directory in $ac_dir_suffix.
11274 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11276 ac_dir_suffix= ac_top_builddir=
11280 .) # No --srcdir option. We are building in place.
11282 if test -z "$ac_top_builddir"; then
11285 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11287 [\\/]* | ?:[\\/]* ) # Absolute path.
11288 ac_srcdir=$srcdir$ac_dir_suffix;
11289 ac_top_srcdir=$srcdir ;;
11290 *) # Relative path.
11291 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11292 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11294 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11296 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11297 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11298 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11299 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11302 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11303 echo "$as_me: executing $ac_dest commands" >&6;}
11305 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11306 # Strip MF so we end up with the name of the file.
11307 mf=`echo "$mf" | sed -e 's/:.*$//'`
11308 # Check whether this is an Automake generated Makefile or not.
11309 # We used to match only the files named `Makefile.in', but
11310 # some people rename them; so instead we look at the file content.
11311 # Grep'ing the first line is not enough: some people post-process
11312 # each Makefile.in and add a new line on top of each file to say so.
11313 # So let's grep whole file.
11314 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11315 dirpart=`(dirname "$mf") 2>/dev/null ||
11316 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11317 X"$mf" : 'X\(//\)[^/]' \| \
11318 X"$mf" : 'X\(//\)$' \| \
11319 X"$mf" : 'X\(/\)' \| \
11320 . : '\(.\)' 2>/dev/null ||
11322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11324 /^X\(\/\/\)$/{ s//\1/; q; }
11325 /^X\(\/\).*/{ s//\1/; q; }
11330 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11331 # Extract the definition of DEP_FILES from the Makefile without
11333 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11334 test -z "$DEPDIR" && continue
11335 # When using ansi2knr, U may be empty or an underscore; expand it
11336 U=`sed -n -e '/^U = / s///p' < "$mf"`
11337 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11338 # We invoke sed twice because it is the simplest approach to
11339 # changing $(DEPDIR) to its actual value in the expansion.
11340 for file in `sed -n -e '
11341 /^DEP_FILES = .*\\\\$/ {
11350 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11351 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11352 # Make sure the directory exists.
11353 test -f "$dirpart/$file" && continue
11354 fdir=`(dirname "$file") 2>/dev/null ||
11355 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11356 X"$file" : 'X\(//\)[^/]' \| \
11357 X"$file" : 'X\(//\)$' \| \
11358 X"$file" : 'X\(/\)' \| \
11359 . : '\(.\)' 2>/dev/null ||
11361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11363 /^X\(\/\/\)$/{ s//\1/; q; }
11364 /^X\(\/\).*/{ s//\1/; q; }
11366 { if $as_mkdir_p; then
11367 mkdir -p $dirpart/$fdir
11369 as_dir=$dirpart/$fdir
11371 while test ! -d "$as_dir"; do
11372 as_dirs="$as_dir $as_dirs"
11373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11375 X"$as_dir" : 'X\(//\)[^/]' \| \
11376 X"$as_dir" : 'X\(//\)$' \| \
11377 X"$as_dir" : 'X\(/\)' \| \
11378 . : '\(.\)' 2>/dev/null ||
11380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11382 /^X\(\/\/\)$/{ s//\1/; q; }
11383 /^X\(\/\).*/{ s//\1/; q; }
11386 test ! -n "$as_dirs" || mkdir $as_dirs
11387 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11388 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11389 { (exit 1); exit 1; }; }; }
11391 # echo "creating $dirpart/$file"
11392 echo '# dummy' > "$dirpart/$file"
11400 cat >>$CONFIG_STATUS <<\_ACEOF
11402 { (exit 0); exit 0; }
11404 chmod +x $CONFIG_STATUS
11405 ac_clean_files=$ac_clean_files_save
11408 # configure is writing to config.log, and then calls config.status.
11409 # config.status does its own redirection, appending to config.log.
11410 # Unfortunately, on DOS this fails, as config.log is still kept open
11411 # by configure, so config.status won't be able to write to it; its
11412 # output is simply discarded. So we exec the FD to /dev/null,
11413 # effectively closing config.log, so it can be properly (re)opened and
11414 # appended to by config.status. When coming back to configure, we
11415 # need to make the FD available again.
11416 if test "$no_create" != yes; then
11418 ac_config_status_args=
11419 test "$silent" = yes &&
11420 ac_config_status_args="$ac_config_status_args --quiet"
11422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11425 # would make configure fail if this is the last instruction.
11426 $ac_cs_success || { (exit 1); exit 1; }