2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/ctsim.cpp"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
848 --x-includes=DIR X include files are in DIR
849 --x-libraries=DIR X library files are in DIR
852 --build=BUILD configure for building on BUILD [guessed]
853 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 if test -n "$ac_init_help"; then
862 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
863 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866 --disable-dependency-tracking Speeds up one-time builds
867 --enable-dependency-tracking Do not reject slow dependency extractors
868 --enable-debug Turn on debugging
869 --enable-verbose-warnings
870 Enable verbose compiler warnings.
872 Enable static executables.
873 --enable-dmalloc Use dmalloc memory allocation
874 --enable-efence Use ElectricFence memory allocation
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-lam=PATH Set path of LAM MPI
880 --with-ctn=PATH Set path of CTN DICOM library
881 --with-mcpu=CPU Set name of CPU for gcc -mcpu
882 --with-cgibin-dir=PATH Set path of CGI binaries directory
883 --with-cgibin-url=PATH Set URL path of CGI binaries
884 --with-webdata-dir=PATH Set path of webdata
885 --with-webdata-url=PATH Set URL path of webdata
886 --with-html-dir=PATH Set directory of html files
887 --with-x use the X Window System
889 Some influential environment variables:
890 CC C compiler command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
893 nonstandard directory <lib dir>
894 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
895 headers in a nonstandard directory <include dir>
896 CXX C++ compiler command
897 CXXFLAGS C++ compiler flags
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h; then
1180 sed "/^$/d" confdefs.h | sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1340 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1341 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1342 if test "${enable_maintainer_mode+set}" = set; then
1343 enableval="$enable_maintainer_mode"
1344 USE_MAINTAINER_MODE=$enableval
1346 USE_MAINTAINER_MODE=no
1348 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1349 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1352 if test $USE_MAINTAINER_MODE = yes; then
1353 MAINTAINER_MODE_TRUE=
1354 MAINTAINER_MODE_FALSE='#'
1356 MAINTAINER_MODE_TRUE='#'
1357 MAINTAINER_MODE_FALSE=
1360 MAINT=$MAINTAINER_MODE_TRUE
1363 am__api_version="1.7"
1365 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1366 if test -f $ac_dir/install-sh; then
1368 ac_install_sh="$ac_aux_dir/install-sh -c"
1370 elif test -f $ac_dir/install.sh; then
1372 ac_install_sh="$ac_aux_dir/install.sh -c"
1374 elif test -f $ac_dir/shtool; then
1376 ac_install_sh="$ac_aux_dir/shtool install -c"
1380 if test -z "$ac_aux_dir"; then
1381 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383 { (exit 1); exit 1; }; }
1385 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389 # Find a good install program. We prefer a C program (faster),
1390 # so one script is as good as another. But avoid the broken or
1391 # incompatible versions:
1392 # SysV /etc/install, /usr/sbin/install
1393 # SunOS /usr/etc/install
1394 # IRIX /sbin/install
1396 # AmigaOS /C/install, which installs bootblocks on floppy discs
1397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1400 # OS/2's system install, which has a completely different semantic
1401 # ./install, which can be erroneously created by make from ./install.sh.
1402 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1403 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1404 if test -z "$INSTALL"; then
1405 if test "${ac_cv_path_install+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 test -z "$as_dir" && as_dir=.
1413 # Account for people who put trailing slashes in PATH elements.
1415 ./ | .// | /cC/* | \
1416 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1417 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1420 # OSF1 and SCO ODT 3.0 have their own names for install.
1421 # Don't use installbsd from OSF since it installs stuff as root
1423 for ac_prog in ginstall scoinst install; do
1424 for ac_exec_ext in '' $ac_executable_extensions; do
1425 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1426 if test $ac_prog = install &&
1427 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428 # AIX install. It has an incompatible calling convention.
1430 elif test $ac_prog = install &&
1431 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1432 # program-specific install script used by HP pwplus--don't use.
1435 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1447 if test "${ac_cv_path_install+set}" = set; then
1448 INSTALL=$ac_cv_path_install
1450 # As a last resort, use the slow shell script. We don't cache a
1451 # path for INSTALL within a source directory, because that will
1452 # break other packages using the cache if that directory is
1453 # removed, or if the path is relative.
1454 INSTALL=$ac_install_sh
1457 echo "$as_me:$LINENO: result: $INSTALL" >&5
1458 echo "${ECHO_T}$INSTALL" >&6
1460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1461 # It thinks the first close brace ends the variable substitution.
1462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1468 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1469 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1472 echo timestamp > conftest.file
1473 # Do `set' in a subshell so we don't clobber the current shell's
1474 # arguments. Must try -L first in case configure is actually a
1475 # symlink; some systems play weird games with the mod time of symlinks
1476 # (eg FreeBSD returns the mod time of the symlink's containing
1479 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1480 if test "$*" = "X"; then
1482 set X `ls -t $srcdir/configure conftest.file`
1485 if test "$*" != "X $srcdir/configure conftest.file" \
1486 && test "$*" != "X conftest.file $srcdir/configure"; then
1488 # If neither matched, then we have a broken ls. This can happen
1489 # if, for instance, CONFIG_SHELL is bash and it inherits a
1490 # broken ls alias from the environment. This has actually
1491 # happened. Such a system could not be considered "sane".
1492 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1493 alias in your environment" >&5
1494 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1495 alias in your environment" >&2;}
1496 { (exit 1); exit 1; }; }
1499 test "$2" = conftest.file
1505 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1506 Check your system clock" >&5
1507 echo "$as_me: error: newly created file is older than distributed files!
1508 Check your system clock" >&2;}
1509 { (exit 1); exit 1; }; }
1511 echo "$as_me:$LINENO: result: yes" >&5
1512 echo "${ECHO_T}yes" >&6
1513 test "$program_prefix" != NONE &&
1514 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1515 # Use a double $ so make ignores it.
1516 test "$program_suffix" != NONE &&
1517 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1518 # Double any \ or $. echo might interpret backslashes.
1519 # By default was `s,x,x', remove it if useless.
1520 cat <<\_ACEOF >conftest.sed
1521 s/[\\$]/&&/g;s/;s,x,x,$//
1523 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1527 # expand $ac_aux_dir to an absolute path
1528 am_aux_dir=`cd $ac_aux_dir && pwd`
1530 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1531 # Use eval to expand $SHELL
1532 if eval "$MISSING --run true"; then
1533 am_missing_run="$MISSING --run "
1536 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1537 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1540 for ac_prog in gawk mawk nawk awk
1542 # Extract the first word of "$ac_prog", so it can be a program name with args.
1543 set dummy $ac_prog; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_AWK+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 if test -n "$AWK"; then
1550 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_AWK="$ac_prog"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 if test -n "$AWK"; then
1570 echo "$as_me:$LINENO: result: $AWK" >&5
1571 echo "${ECHO_T}$AWK" >&6
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1577 test -n "$AWK" && break
1580 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1581 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1582 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1583 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 cat >conftest.make <<\_ACEOF
1588 @echo 'ac_maketemp="$(MAKE)"'
1590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1592 if test -n "$ac_maketemp"; then
1593 eval ac_cv_prog_make_${ac_make}_set=yes
1595 eval ac_cv_prog_make_${ac_make}_set=no
1599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600 echo "$as_me:$LINENO: result: yes" >&5
1601 echo "${ECHO_T}yes" >&6
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1606 SET_MAKE="MAKE=${MAKE-make}"
1609 rm -rf .tst 2>/dev/null
1610 mkdir .tst 2>/dev/null
1611 if test -d .tst; then
1616 rmdir .tst 2>/dev/null
1618 # test to see if srcdir already configured
1619 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1620 test -f $srcdir/config.status; then
1621 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1622 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1623 { (exit 1); exit 1; }; }
1626 # test whether we have cygpath
1627 if test -z "$CYGPATH_W"; then
1628 if (cygpath --version) >/dev/null 2>/dev/null; then
1629 CYGPATH_W='cygpath -w'
1636 # Define the identity of the package.
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE "$PACKAGE"
1646 cat >>confdefs.h <<_ACEOF
1647 #define VERSION "$VERSION"
1650 # Some tools Automake needs.
1652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1667 AMTAR=${AMTAR-"${am_missing_run}tar"}
1669 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1671 # Installed binaries are usually stripped using `strip' when the user
1672 # run `make install-strip'. However `strip' might not be the right
1673 # tool to use in cross-compilation environments, therefore Automake
1674 # will honor the `STRIP' environment variable to overrule this program.
1675 if test "$cross_compiling" != no; then
1676 if test -n "$ac_tool_prefix"; then
1677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1678 set dummy ${ac_tool_prefix}strip; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_STRIP+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 if test -n "$STRIP"; then
1685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 STRIP=$ac_cv_prog_STRIP
1704 if test -n "$STRIP"; then
1705 echo "$as_me:$LINENO: result: $STRIP" >&5
1706 echo "${ECHO_T}$STRIP" >&6
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1713 if test -z "$ac_cv_prog_STRIP"; then
1715 # Extract the first word of "strip", so it can be a program name with args.
1716 set dummy strip; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$ac_ct_STRIP"; then
1723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_ac_ct_STRIP="strip"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1743 if test -n "$ac_ct_STRIP"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1745 echo "${ECHO_T}$ac_ct_STRIP" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1753 STRIP="$ac_cv_prog_STRIP"
1757 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1759 # We need awk for the "check" target. The system "awk" is bad on
1764 ac_config_headers="$ac_config_headers config.h"
1767 for ac_prog in gawk mawk nawk awk
1769 # Extract the first word of "$ac_prog", so it can be a program name with args.
1770 set dummy $ac_prog; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_AWK+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$AWK"; then
1777 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_AWK="$ac_prog"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 if test -n "$AWK"; then
1797 echo "$as_me:$LINENO: result: $AWK" >&5
1798 echo "${ECHO_T}$AWK" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1804 test -n "$AWK" && break
1807 # Find a good install program. We prefer a C program (faster),
1808 # so one script is as good as another. But avoid the broken or
1809 # incompatible versions:
1810 # SysV /etc/install, /usr/sbin/install
1811 # SunOS /usr/etc/install
1812 # IRIX /sbin/install
1814 # AmigaOS /C/install, which installs bootblocks on floppy discs
1815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1818 # OS/2's system install, which has a completely different semantic
1819 # ./install, which can be erroneously created by make from ./install.sh.
1820 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1821 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1822 if test -z "$INSTALL"; then
1823 if test "${ac_cv_path_install+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 # Account for people who put trailing slashes in PATH elements.
1833 ./ | .// | /cC/* | \
1834 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1835 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1838 # OSF1 and SCO ODT 3.0 have their own names for install.
1839 # Don't use installbsd from OSF since it installs stuff as root
1841 for ac_prog in ginstall scoinst install; do
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1844 if test $ac_prog = install &&
1845 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1846 # AIX install. It has an incompatible calling convention.
1848 elif test $ac_prog = install &&
1849 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1850 # program-specific install script used by HP pwplus--don't use.
1853 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1865 if test "${ac_cv_path_install+set}" = set; then
1866 INSTALL=$ac_cv_path_install
1868 # As a last resort, use the slow shell script. We don't cache a
1869 # path for INSTALL within a source directory, because that will
1870 # break other packages using the cache if that directory is
1871 # removed, or if the path is relative.
1872 INSTALL=$ac_install_sh
1875 echo "$as_me:$LINENO: result: $INSTALL" >&5
1876 echo "${ECHO_T}$INSTALL" >&6
1878 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1879 # It thinks the first close brace ends the variable substitution.
1880 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1882 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1884 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1886 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1887 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1889 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 cat >conftest.make <<\_ACEOF
1894 @echo 'ac_maketemp="$(MAKE)"'
1896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1897 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1898 if test -n "$ac_maketemp"; then
1899 eval ac_cv_prog_make_${ac_make}_set=yes
1901 eval ac_cv_prog_make_${ac_make}_set=no
1905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1906 echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 SET_MAKE="MAKE=${MAKE-make}"
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_RANLIB+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$RANLIB"; then
1924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 RANLIB=$ac_cv_prog_RANLIB
1943 if test -n "$RANLIB"; then
1944 echo "$as_me:$LINENO: result: $RANLIB" >&5
1945 echo "${ECHO_T}$RANLIB" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1952 if test -z "$ac_cv_prog_RANLIB"; then
1953 ac_ct_RANLIB=$RANLIB
1954 # Extract the first word of "ranlib", so it can be a program name with args.
1955 set dummy ranlib; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_RANLIB"; then
1962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_RANLIB="ranlib"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1982 if test -n "$ac_ct_RANLIB"; then
1983 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1984 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1986 echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1990 RANLIB=$ac_ct_RANLIB
1992 RANLIB="$ac_cv_prog_RANLIB"
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test -n "$CC"; then
2030 echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$ac_cv_prog_CC"; then
2040 # Extract the first word of "gcc", so it can be a program name with args.
2041 set dummy gcc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$ac_ct_CC"; then
2048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_ac_ct_CC="gcc"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067 if test -n "$ac_ct_CC"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069 echo "${ECHO_T}$ac_ct_CC" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2080 if test -z "$CC"; then
2081 if test -n "$ac_tool_prefix"; then
2082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2083 set dummy ${ac_tool_prefix}cc; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 if test -n "$CC"; then
2090 ac_cv_prog_CC="$CC" # Let the user override the test.
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_CC="${ac_tool_prefix}cc"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 if test -n "$CC"; then
2110 echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2118 if test -z "$ac_cv_prog_CC"; then
2120 # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 if test -n "$ac_ct_CC"; then
2128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2137 ac_cv_prog_ac_ct_CC="cc"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2147 if test -n "$ac_ct_CC"; then
2148 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2149 echo "${ECHO_T}$ac_ct_CC" >&6
2151 echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2161 if test -z "$CC"; then
2162 # Extract the first word of "cc", so it can be a program name with args.
2163 set dummy cc; ac_word=$2
2164 echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 if test -n "$CC"; then
2170 ac_cv_prog_CC="$CC" # Let the user override the test.
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2181 ac_prog_rejected=yes
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 if test $ac_prog_rejected = yes; then
2192 # We found a bogon in the path, so make sure we never use it.
2193 set dummy $ac_cv_prog_CC
2195 if test $# != 0; then
2196 # We chose a different compiler from the bogus one.
2197 # However, it has the same basename, so the bogon will be chosen
2198 # first if we set CC to just the basename; use the full file name.
2200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2206 if test -n "$CC"; then
2207 echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2215 if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 if test -n "$CC"; then
2247 echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6
2250 echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2254 test -n "$CC" && break
2257 if test -z "$CC"; then
2261 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy $ac_prog; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 if test -n "$ac_ct_CC"; then
2269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_prog_ac_ct_CC="$ac_prog"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2288 if test -n "$ac_ct_CC"; then
2289 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2290 echo "${ECHO_T}$ac_ct_CC" >&6
2292 echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2296 test -n "$ac_ct_CC" && break
2305 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: no acceptable C compiler found in \$PATH
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2311 # Provide some information about the compiler.
2312 echo "$as_me:$LINENO:" \
2313 "checking for C compiler version" >&5
2314 ac_compiler=`set X $ac_compile; echo $2`
2315 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2316 (eval $ac_compiler --version </dev/null >&5) 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }
2320 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2321 (eval $ac_compiler -v </dev/null >&5) 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }
2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2326 (eval $ac_compiler -V </dev/null >&5) 2>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 ac_clean_files_save=$ac_clean_files
2347 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2348 # Try to create an executable without -o first, disregard a.out.
2349 # It will help us diagnose broken compilers, and finding out an intuition
2351 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2352 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2353 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2354 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2355 (eval $ac_link_default) 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 # Find the output, starting from the most likely. This scheme is
2360 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2363 # Be careful to initialize this variable, since it used to be cached.
2364 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2366 # b.out is created by i960 compilers.
2367 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2369 test -f "$ac_file" || continue
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2374 # This is the source file.
2377 # We found the default executable, but exeext='' is most
2381 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382 # FIXME: I believe we export ac_cv_exeext for Libtool,
2383 # but it would be cool to find out if it's true. Does anybody
2384 # maintain Libtool? --akim.
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2395 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: C compiler cannot create executables
2398 See \`config.log' for more details." >&2;}
2399 { (exit 77); exit 77; }; }
2402 ac_exeext=$ac_cv_exeext
2403 echo "$as_me:$LINENO: result: $ac_file" >&5
2404 echo "${ECHO_T}$ac_file" >&6
2406 # Check the compiler produces executables we can run. If not, either
2407 # the compiler is broken, or we cross compile.
2408 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2409 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2410 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2411 # If not cross compiling, check that we can run a simple program.
2412 if test "$cross_compiling" != yes; then
2413 if { ac_try='./$ac_file'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2421 if test "$cross_compiling" = maybe; then
2424 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: cannot run C compiled programs.
2428 If you meant to cross compile, use \`--host'.
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2434 echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6
2437 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2438 ac_clean_files=$ac_clean_files_save
2439 # Check the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2442 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2443 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2444 echo "${ECHO_T}$cross_compiling" >&6
2446 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2447 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 for ac_file in conftest.exe conftest conftest.*; do
2458 test -f "$ac_file" || continue
2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472 { (exit 1); exit 1; }; }
2475 rm -f conftest$ac_cv_exeext
2476 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2482 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2484 if test "${ac_cv_objext+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2502 rm -f conftest.o conftest.obj
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; then
2508 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2522 See \`config.log' for more details." >&2;}
2523 { (exit 1); exit 1; }; }
2526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2529 echo "${ECHO_T}$ac_cv_objext" >&6
2530 OBJEXT=$ac_cv_objext
2532 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2593 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>conftest.er1
2617 grep -v '^ *+' conftest.er1 >conftest.err
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2654 if test "$GCC" = yes; then
2660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 ac_cv_prog_cc_stdc=no
2667 cat >conftest.$ac_ext <<_ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2691 s = g (p, va_arg (v,int));
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std1 is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std1. */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705 int test (int i, double x);
2706 struct s1 {int (*f) (int a);};
2707 struct s2 {int (*f) (double a);};
2708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2719 # Don't try gcc -ansi; that turns off useful extensions and
2720 # breaks some systems' header files.
2721 # AIX -qlanglvl=ansi
2722 # Ultrix and OSF/1 -std1
2723 # HP-UX 10.20 and later -Ae
2724 # HP-UX older versions -Aa -D_HPUX_SOURCE
2725 # SVR4 -Xc -D__EXTENSIONS__
2726 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 CC="$ac_save_CC $ac_arg"
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 ac_cv_prog_cc_stdc=$ac_arg
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2757 rm -f conftest.err conftest.$ac_objext
2759 rm -f conftest.$ac_ext conftest.$ac_objext
2764 case "x$ac_cv_prog_cc_stdc" in
2766 echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6 ;;
2769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2771 CC="$CC $ac_cv_prog_cc_stdc" ;;
2774 # Some people use a C++ compiler to compile C. Since we use `exit',
2775 # in C++ we need to declare it. In case someone uses the same compiler
2776 # for both compiling C and C++ we need to have the C++ compiler decide
2777 # the declaration of exit, since it's the most demanding environment.
2778 cat >conftest.$ac_ext <<_ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 for ac_declaration in \
2806 'extern "C" void std::exit (int) throw (); using std::exit;' \
2807 'extern "C" void std::exit (int); using std::exit;' \
2808 'extern "C" void exit (int) throw ();' \
2809 'extern "C" void exit (int);' \
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2832 grep -v '^ *+' conftest.er1 >conftest.err
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 if test -n "$ac_declaration"; then
2903 echo '#ifdef __cplusplus' >>confdefs.h
2904 echo $ac_declaration >>confdefs.h
2905 echo '#endif' >>confdefs.h
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 DEPDIR="${am__leading_dot}deps"
2921 ac_config_commands="$ac_config_commands depfiles"
2924 am_make=${MAKE-make}
2925 cat > confinc << 'END'
2930 # If we don't find an include directive, just comment out the code.
2931 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2932 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2936 # First try GNU make style include.
2937 echo "include confinc" > confmf
2938 # We grep out `Entering directory' and `Leaving directory'
2939 # messages which can occur if `w' ends up in MAKEFLAGS.
2940 # In particular we don't look at `^make:' because GNU make might
2941 # be invoked under some other name (usually "gmake"), in which
2942 # case it prints its new name instead of `make'.
2943 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2948 # Now try BSD make style include.
2949 if test "$am__include" = "#"; then
2950 echo '.include "confinc"' > confmf
2951 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2952 am__include=.include
2959 echo "$as_me:$LINENO: result: $_am_result" >&5
2960 echo "${ECHO_T}$_am_result" >&6
2961 rm -f confinc confmf
2963 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2964 if test "${enable_dependency_tracking+set}" = set; then
2965 enableval="$enable_dependency_tracking"
2968 if test "x$enable_dependency_tracking" != xno; then
2969 am_depcomp="$ac_aux_dir/depcomp"
2974 if test "x$enable_dependency_tracking" != xno; then
2985 depcc="$CC" am_compiler_list=
2987 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2988 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2989 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2993 # We make a subdir and do the tests there. Otherwise we can end up
2994 # making bogus files that we don't know about and never remove. For
2995 # instance it was reported that on HP-UX the gcc test will end up
2996 # making a dummy file named `D' -- because `-MD' means `put the output
2999 # Copy depcomp to subdir because otherwise we won't find it if we're
3000 # using a relative directory.
3001 cp "$am_depcomp" conftest.dir
3003 # We will build objects and dependencies in a subdirectory because
3004 # it helps to detect inapplicable dependency modes. For instance
3005 # both Tru64's cc and ICC support -MD to output dependencies as a
3006 # side effect of compilation, but ICC will put the dependencies in
3007 # the current directory while Tru64 will put them in the object
3011 am_cv_CC_dependencies_compiler_type=none
3012 if test "$am_compiler_list" = ""; then
3013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3015 for depmode in $am_compiler_list; do
3016 # Setup a source with many dependencies, because some compilers
3017 # like to wrap large dependency lists on column 80 (with \), and
3018 # we should not choose a depcomp mode which is confused by this.
3020 # We need to recreate these files for each test, as the compiler may
3021 # overwrite some of them when testing with obscure command lines.
3022 # This happens at least with the AIX C compiler.
3024 for i in 1 2 3 4 5 6; do
3025 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3028 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3032 # after this tag, mechanisms are not by side-effect, so they'll
3033 # only be used when explicitly requested
3034 if test "x$enable_dependency_tracking" = xyes; then
3042 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3043 # mode. It turns out that the SunPro C++ compiler does not properly
3044 # handle `-M -o', and we need to detect this.
3045 if depmode=$depmode \
3046 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3047 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3048 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3049 >/dev/null 2>conftest.err &&
3050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3051 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3053 # icc doesn't choke on unknown options, it will just issue warnings
3054 # (even with -Werror). So we grep stderr for any message
3055 # that says an option was ignored.
3056 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3057 am_cv_CC_dependencies_compiler_type=$depmode
3066 am_cv_CC_dependencies_compiler_type=none
3070 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3071 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3077 test "x$enable_dependency_tracking" != xno \
3078 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3080 am__fastdepCC_FALSE='#'
3082 am__fastdepCC_TRUE='#'
3083 am__fastdepCC_FALSE=
3088 ac_cpp='$CXXCPP $CPPFLAGS'
3089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099 if test "${ac_cv_prog_CXX+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 if test -n "$CXX"; then
3103 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 if test -n "$CXX"; then
3123 echo "$as_me:$LINENO: result: $CXX" >&5
3124 echo "${ECHO_T}$CXX" >&6
3126 echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3130 test -n "$CXX" && break
3133 if test -z "$CXX"; then
3135 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3141 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 if test -n "$ac_ct_CXX"; then
3145 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_ac_ct_CXX="$ac_prog"
3155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3164 if test -n "$ac_ct_CXX"; then
3165 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3166 echo "${ECHO_T}$ac_ct_CXX" >&6
3168 echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3172 test -n "$ac_ct_CXX" && break
3174 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3180 # Provide some information about the compiler.
3181 echo "$as_me:$LINENO:" \
3182 "checking for C++ compiler version" >&5
3183 ac_compiler=`set X $ac_compile; echo $2`
3184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3185 (eval $ac_compiler --version </dev/null >&5) 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }
3189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3190 (eval $ac_compiler -v </dev/null >&5) 2>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3195 (eval $ac_compiler -V </dev/null >&5) 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }
3200 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3201 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3202 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 cat >conftest.$ac_ext <<_ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>conftest.er1
3227 grep -v '^ *+' conftest.er1 >conftest.err
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3255 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3256 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3257 GXX=`test $ac_compiler_gnu = yes && echo yes`
3258 ac_test_CXXFLAGS=${CXXFLAGS+set}
3259 ac_save_CXXFLAGS=$CXXFLAGS
3261 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3262 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3263 if test "${ac_cv_prog_cxx_g+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; } &&
3296 { ac_try='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 ac_cv_prog_cxx_g=yes
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3311 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3312 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3313 if test "$ac_test_CXXFLAGS" = set; then
3314 CXXFLAGS=$ac_save_CXXFLAGS
3315 elif test $ac_cv_prog_cxx_g = yes; then
3316 if test "$GXX" = yes; then
3322 if test "$GXX" = yes; then
3328 for ac_declaration in \
3330 'extern "C" void std::exit (int) throw (); using std::exit;' \
3331 'extern "C" void std::exit (int); using std::exit;' \
3332 'extern "C" void exit (int) throw ();' \
3333 'extern "C" void exit (int);' \
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426 if test -n "$ac_declaration"; then
3427 echo '#ifdef __cplusplus' >>confdefs.h
3428 echo $ac_declaration >>confdefs.h
3429 echo '#endif' >>confdefs.h
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 depcc="$CXX" am_compiler_list=
3440 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3442 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446 # We make a subdir and do the tests there. Otherwise we can end up
3447 # making bogus files that we don't know about and never remove. For
3448 # instance it was reported that on HP-UX the gcc test will end up
3449 # making a dummy file named `D' -- because `-MD' means `put the output
3452 # Copy depcomp to subdir because otherwise we won't find it if we're
3453 # using a relative directory.
3454 cp "$am_depcomp" conftest.dir
3456 # We will build objects and dependencies in a subdirectory because
3457 # it helps to detect inapplicable dependency modes. For instance
3458 # both Tru64's cc and ICC support -MD to output dependencies as a
3459 # side effect of compilation, but ICC will put the dependencies in
3460 # the current directory while Tru64 will put them in the object
3464 am_cv_CXX_dependencies_compiler_type=none
3465 if test "$am_compiler_list" = ""; then
3466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3468 for depmode in $am_compiler_list; do
3469 # Setup a source with many dependencies, because some compilers
3470 # like to wrap large dependency lists on column 80 (with \), and
3471 # we should not choose a depcomp mode which is confused by this.
3473 # We need to recreate these files for each test, as the compiler may
3474 # overwrite some of them when testing with obscure command lines.
3475 # This happens at least with the AIX C compiler.
3477 for i in 1 2 3 4 5 6; do
3478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3485 # after this tag, mechanisms are not by side-effect, so they'll
3486 # only be used when explicitly requested
3487 if test "x$enable_dependency_tracking" = xyes; then
3495 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496 # mode. It turns out that the SunPro C++ compiler does not properly
3497 # handle `-M -o', and we need to detect this.
3498 if depmode=$depmode \
3499 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502 >/dev/null 2>conftest.err &&
3503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506 # icc doesn't choke on unknown options, it will just issue warnings
3507 # (even with -Werror). So we grep stderr for any message
3508 # that says an option was ignored.
3509 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3510 am_cv_CXX_dependencies_compiler_type=$depmode
3519 am_cv_CXX_dependencies_compiler_type=none
3523 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3524 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3525 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3530 test "x$enable_dependency_tracking" != xno \
3531 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3532 am__fastdepCXX_TRUE=
3533 am__fastdepCXX_FALSE='#'
3535 am__fastdepCXX_TRUE='#'
3536 am__fastdepCXX_FALSE=
3541 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3542 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3543 if test "${ac_cv_c_bigendian+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 # See if sys/param.h defines the BYTE_ORDER macro.
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 #include <sys/types.h>
3554 #include <sys/param.h>
3559 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 # It does; now see whether it defined to BIG_ENDIAN or not.
3589 cat >conftest.$ac_ext <<_ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include <sys/types.h>
3596 #include <sys/param.h>
3601 #if BYTE_ORDER != BIG_ENDIAN
3609 rm -f conftest.$ac_objext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611 (eval $ac_compile) 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_cv_c_bigendian=yes
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_c_bigendian=no
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 # It does not; compile a test program.
3643 if test "$cross_compiling" = yes; then
3644 # try to guess the endianness by grepping values into an object file
3645 ac_cv_c_bigendian=unknown
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3653 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3654 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3655 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3656 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3657 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3661 _ascii (); _ebcdic ();
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3688 ac_cv_c_bigendian=yes
3690 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3691 if test "$ac_cv_c_bigendian" = unknown; then
3692 ac_cv_c_bigendian=no
3694 # finding both strings is unlikely to happen, but who knows?
3695 ac_cv_c_bigendian=unknown
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3714 /* Are we little or big endian? From Harbison&Steele. */
3718 char c[sizeof (long)];
3721 exit (u.c[sizeof (long) - 1] == 1);
3724 rm -f conftest$ac_exeext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726 (eval $ac_link) 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 ac_cv_c_bigendian=no
3737 echo "$as_me: program exited with status $ac_status" >&5
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_cv_c_bigendian=yes
3744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3750 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3751 case $ac_cv_c_bigendian in
3754 cat >>confdefs.h <<\_ACEOF
3755 #define WORDS_BIGENDIAN 1
3761 { { echo "$as_me:$LINENO: error: unknown endianness
3762 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3763 echo "$as_me: error: unknown endianness
3764 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3765 { (exit 1); exit 1; }; } ;;
3769 # Extract the first word of "wxgtk-2.4-config", so it can be a program name with args.
3770 set dummy wxgtk-2.4-config; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_wxconfig+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 wxconfig=$ac_cv_path_wxconfig
3800 if test -n "$wxconfig"; then
3801 echo "$as_me:$LINENO: result: $wxconfig" >&5
3802 echo "${ECHO_T}$wxconfig" >&6
3804 echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3808 if ! "$wxconfig" ; then
3809 # Extract the first word of "wx-config", so it can be a program name with args.
3810 set dummy wx-config; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_path_wxconfig+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 wxconfig=$ac_cv_path_wxconfig
3840 if test -n "$wxconfig"; then
3841 echo "$as_me:$LINENO: result: $wxconfig" >&5
3842 echo "${ECHO_T}$wxconfig" >&6
3844 echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6
3850 # Make sure we can run config.sub.
3851 $ac_config_sub sun4 >/dev/null 2>&1 ||
3852 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3853 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3854 { (exit 1); exit 1; }; }
3856 echo "$as_me:$LINENO: checking build system type" >&5
3857 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3858 if test "${ac_cv_build+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 ac_cv_build_alias=$build_alias
3862 test -z "$ac_cv_build_alias" &&
3863 ac_cv_build_alias=`$ac_config_guess`
3864 test -z "$ac_cv_build_alias" &&
3865 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3866 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3867 { (exit 1); exit 1; }; }
3868 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3869 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3870 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3871 { (exit 1); exit 1; }; }
3874 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3875 echo "${ECHO_T}$ac_cv_build" >&6
3877 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3878 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3879 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3882 echo "$as_me:$LINENO: checking host system type" >&5
3883 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3884 if test "${ac_cv_host+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 ac_cv_host_alias=$host_alias
3888 test -z "$ac_cv_host_alias" &&
3889 ac_cv_host_alias=$ac_cv_build_alias
3890 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3891 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3892 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3893 { (exit 1); exit 1; }; }
3896 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3897 echo "${ECHO_T}$ac_cv_host" >&6
3899 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3900 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3901 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3904 echo "$as_me:$LINENO: checking for inline" >&5
3905 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3906 if test "${ac_cv_c_inline+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 for ac_kw in inline __inline__ __inline; do
3911 cat >conftest.$ac_ext <<_ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3919 static $ac_kw foo_t static_foo () {return 0; }
3920 $ac_kw foo_t foo () {return 0; }
3924 rm -f conftest.$ac_objext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>conftest.er1
3928 grep -v '^ *+' conftest.er1 >conftest.err
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try='test -s conftest.$ac_objext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 ac_cv_c_inline=$ac_kw; break
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3956 echo "${ECHO_T}$ac_cv_c_inline" >&6
3959 case $ac_cv_c_inline in
3962 case $ac_cv_c_inline in
3964 *) ac_val=$ac_cv_c_inline;;
3966 cat >>confdefs.h <<_ACEOF
3968 #define inline $ac_val
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3981 # On Suns, sometimes $CPP names a directory.
3982 if test -n "$CPP" && test -d "$CPP"; then
3985 if test -z "$CPP"; then
3986 if test "${ac_cv_prog_CPP+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 # Double quotes because CPP needs to be expanded
3990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3993 for ac_c_preproc_warn_flag in '' yes
3995 # Use a header file that comes with gcc, so configuring glibc
3996 # with a fresh cross-compiler works.
3997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 # <limits.h> exists even on freestanding compilers.
3999 # On the NeXT, cc -E runs the code through the compiler's parser,
4000 # not just through cpp. "Syntax error" is here to catch this case.
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4008 # include <limits.h>
4010 # include <assert.h>
4014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4017 grep -v '^ *+' conftest.er1 >conftest.err
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null; then
4022 if test -s conftest.err; then
4023 ac_cpp_err=$ac_c_preproc_warn_flag
4024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4031 if test -z "$ac_cpp_err"; then
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 # Broken: fails on valid input.
4040 rm -f conftest.err conftest.$ac_ext
4042 # OK, works on sane cases. Now check whether non-existent headers
4043 # can be detected and how.
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 #include <ac_nonexistent.h>
4052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } >/dev/null; then
4060 if test -s conftest.err; then
4061 ac_cpp_err=$ac_c_preproc_warn_flag
4062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4069 if test -z "$ac_cpp_err"; then
4070 # Broken: success on invalid input.
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 # Passes both tests.
4080 rm -f conftest.err conftest.$ac_ext
4083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4084 rm -f conftest.err conftest.$ac_ext
4085 if $ac_preproc_ok; then
4097 echo "$as_me:$LINENO: result: $CPP" >&5
4098 echo "${ECHO_T}$CPP" >&6
4100 for ac_c_preproc_warn_flag in '' yes
4102 # Use a header file that comes with gcc, so configuring glibc
4103 # with a fresh cross-compiler works.
4104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105 # <limits.h> exists even on freestanding compilers.
4106 # On the NeXT, cc -E runs the code through the compiler's parser,
4107 # not just through cpp. "Syntax error" is here to catch this case.
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4115 # include <limits.h>
4117 # include <assert.h>
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev/null; then
4129 if test -s conftest.err; then
4130 ac_cpp_err=$ac_c_preproc_warn_flag
4131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4138 if test -z "$ac_cpp_err"; then
4141 echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 # Broken: fails on valid input.
4147 rm -f conftest.err conftest.$ac_ext
4149 # OK, works on sane cases. Now check whether non-existent headers
4150 # can be detected and how.
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } >/dev/null; then
4167 if test -s conftest.err; then
4168 ac_cpp_err=$ac_c_preproc_warn_flag
4169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4176 if test -z "$ac_cpp_err"; then
4177 # Broken: success on invalid input.
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 # Passes both tests.
4187 rm -f conftest.err conftest.$ac_ext
4190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191 rm -f conftest.err conftest.$ac_ext
4192 if $ac_preproc_ok; then
4195 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4196 See \`config.log' for more details." >&5
4197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4198 See \`config.log' for more details." >&2;}
4199 { (exit 1); exit 1; }; }
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 echo "$as_me:$LINENO: checking for egrep" >&5
4210 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4211 if test "${ac_cv_prog_egrep+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4215 then ac_cv_prog_egrep='grep -E'
4216 else ac_cv_prog_egrep='egrep'
4219 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4220 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4221 EGREP=$ac_cv_prog_egrep
4224 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4226 if test "${ac_cv_header_stdc+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; } &&
4263 { ac_try='test -s conftest.$ac_objext'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4269 ac_cv_header_stdc=yes
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 ac_cv_header_stdc=no
4276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278 if test $ac_cv_header_stdc = yes; then
4279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290 $EGREP "memchr" >/dev/null 2>&1; then
4293 ac_cv_header_stdc=no
4299 if test $ac_cv_header_stdc = yes; then
4300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311 $EGREP "free" >/dev/null 2>&1; then
4314 ac_cv_header_stdc=no
4320 if test $ac_cv_header_stdc = yes; then
4321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4322 if test "$cross_compiling" = yes; then
4325 cat >conftest.$ac_ext <<_ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4332 #if ((' ' & 0x0FF) == 0x020)
4333 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4334 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4336 # define ISLOWER(c) \
4337 (('a' <= (c) && (c) <= 'i') \
4338 || ('j' <= (c) && (c) <= 'r') \
4339 || ('s' <= (c) && (c) <= 'z'))
4340 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4343 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4348 for (i = 0; i < 256; i++)
4349 if (XOR (islower (i), ISLOWER (i))
4350 || toupper (i) != TOUPPER (i))
4355 rm -f conftest$ac_exeext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4357 (eval $ac_link) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4368 echo "$as_me: program exited with status $ac_status" >&5
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4373 ac_cv_header_stdc=no
4375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4379 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4380 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4381 if test $ac_cv_header_stdc = yes; then
4383 cat >>confdefs.h <<\_ACEOF
4384 #define STDC_HEADERS 1
4389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4399 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4400 inttypes.h stdint.h unistd.h
4402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4403 echo "$as_me:$LINENO: checking for $ac_header" >&5
4404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 $ac_includes_default
4416 #include <$ac_header>
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 eval "$as_ac_Header=yes"
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 eval "$as_ac_Header=no"
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4451 cat >>confdefs.h <<_ACEOF
4452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4460 echo "$as_me:$LINENO: checking for short" >&5
4461 echo $ECHO_N "checking for short... $ECHO_C" >&6
4462 if test "${ac_cv_type_short+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 cat >conftest.$ac_ext <<_ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 $ac_includes_default
4483 rm -f conftest.$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485 (eval $ac_compile) 2>conftest.er1
4487 grep -v '^ *+' conftest.er1 >conftest.err
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 ac_cv_type_short=yes
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4513 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4514 echo "${ECHO_T}$ac_cv_type_short" >&6
4516 echo "$as_me:$LINENO: checking size of short" >&5
4517 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4518 if test "${ac_cv_sizeof_short+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 if test "$ac_cv_type_short" = yes; then
4522 # The cast to unsigned long works around a bug in the HP C Compiler
4523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4525 # This bug is HP SR number 8606223364.
4526 if test "$cross_compiling" = yes; then
4527 # Depending upon the size, compute the lo and hi bounds.
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 $ac_includes_default
4538 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>conftest.er1
4549 grep -v '^ *+' conftest.er1 >conftest.err
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; } &&
4560 { ac_try='test -s conftest.$ac_objext'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 $ac_includes_default
4578 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>conftest.er1
4589 grep -v '^ *+' conftest.er1 >conftest.err
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; } &&
4600 { ac_try='test -s conftest.$ac_objext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_hi=$ac_mid; break
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 ac_lo=`expr $ac_mid + 1`
4612 if test $ac_lo -le $ac_mid; then
4616 ac_mid=`expr 2 '*' $ac_mid + 1`
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4634 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4664 cat >conftest.$ac_ext <<_ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 $ac_includes_default
4674 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4681 rm -f conftest.$ac_objext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4683 (eval $ac_compile) 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_lo=$ac_mid; break
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4707 ac_hi=`expr '(' $ac_mid ')' - 1`
4708 if test $ac_mid -le $ac_hi; then
4712 ac_mid=`expr 2 '*' $ac_mid`
4714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4725 # Binary search between lo and hi bounds.
4726 while test "x$ac_lo" != "x$ac_hi"; do
4727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4738 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>conftest.er1
4749 grep -v '^ *+' conftest.er1 >conftest.err
4751 cat conftest.err >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; } &&
4760 { ac_try='test -s conftest.$ac_objext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4771 ac_lo=`expr '(' $ac_mid ')' + 1`
4773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4776 ?*) ac_cv_sizeof_short=$ac_lo;;
4777 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4778 See \`config.log' for more details." >&5
4779 echo "$as_me: error: cannot compute sizeof (short), 77
4780 See \`config.log' for more details." >&2;}
4781 { (exit 1); exit 1; }; } ;;
4784 if test "$cross_compiling" = yes; then
4785 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4786 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4787 { (exit 1); exit 1; }; }
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 $ac_includes_default
4796 long longval () { return (long) (sizeof (short)); }
4797 unsigned long ulongval () { return (long) (sizeof (short)); }
4804 FILE *f = fopen ("conftest.val", "w");
4807 if (((long) (sizeof (short))) < 0)
4809 long i = longval ();
4810 if (i != ((long) (sizeof (short))))
4812 fprintf (f, "%ld\n", i);
4816 unsigned long i = ulongval ();
4817 if (i != ((long) (sizeof (short))))
4819 fprintf (f, "%lu\n", i);
4821 exit (ferror (f) || fclose (f) != 0);
4827 rm -f conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829 (eval $ac_link) 2>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_sizeof_short=`cat conftest.val`
4840 echo "$as_me: program exited with status $ac_status" >&5
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4845 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4846 See \`config.log' for more details." >&5
4847 echo "$as_me: error: cannot compute sizeof (short), 77
4848 See \`config.log' for more details." >&2;}
4849 { (exit 1); exit 1; }; }
4851 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4856 ac_cv_sizeof_short=0
4859 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4860 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4861 cat >>confdefs.h <<_ACEOF
4862 #define SIZEOF_SHORT $ac_cv_sizeof_short
4866 echo "$as_me:$LINENO: checking for int" >&5
4867 echo $ECHO_N "checking for int... $ECHO_C" >&6
4868 if test "${ac_cv_type_int+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 $ac_includes_default
4889 rm -f conftest.$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>conftest.er1
4893 grep -v '^ *+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4919 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4920 echo "${ECHO_T}$ac_cv_type_int" >&6
4922 echo "$as_me:$LINENO: checking size of int" >&5
4923 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4924 if test "${ac_cv_sizeof_int+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 if test "$ac_cv_type_int" = yes; then
4928 # The cast to unsigned long works around a bug in the HP C Compiler
4929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4931 # This bug is HP SR number 8606223364.
4932 if test "$cross_compiling" = yes; then
4933 # Depending upon the size, compute the lo and hi bounds.
4934 cat >conftest.$ac_ext <<_ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 $ac_includes_default
4944 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4951 rm -f conftest.$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>conftest.er1
4955 grep -v '^ *+' conftest.er1 >conftest.err
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 $ac_includes_default
4984 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>conftest.er1
4995 grep -v '^ *+' conftest.er1 >conftest.err
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; } &&
5006 { ac_try='test -s conftest.$ac_objext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_hi=$ac_mid; break
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 ac_lo=`expr $ac_mid + 1`
5018 if test $ac_lo -le $ac_mid; then
5022 ac_mid=`expr 2 '*' $ac_mid + 1`
5024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5040 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5047 rm -f conftest.$ac_objext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5080 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>conftest.er1
5091 grep -v '^ *+' conftest.er1 >conftest.err
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_lo=$ac_mid; break
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_hi=`expr '(' $ac_mid ')' - 1`
5114 if test $ac_mid -le $ac_hi; then
5118 ac_mid=`expr 2 '*' $ac_mid`
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131 # Binary search between lo and hi bounds.
5132 while test "x$ac_lo" != "x$ac_hi"; do
5133 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 $ac_includes_default
5144 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153 (eval $ac_compile) 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try='test -s conftest.$ac_objext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 ac_lo=`expr '(' $ac_mid ')' + 1`
5179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5182 ?*) ac_cv_sizeof_int=$ac_lo;;
5183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5184 See \`config.log' for more details." >&5
5185 echo "$as_me: error: cannot compute sizeof (int), 77
5186 See \`config.log' for more details." >&2;}
5187 { (exit 1); exit 1; }; } ;;
5190 if test "$cross_compiling" = yes; then
5191 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5192 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5193 { (exit 1); exit 1; }; }
5195 cat >conftest.$ac_ext <<_ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5201 $ac_includes_default
5202 long longval () { return (long) (sizeof (int)); }
5203 unsigned long ulongval () { return (long) (sizeof (int)); }
5210 FILE *f = fopen ("conftest.val", "w");
5213 if (((long) (sizeof (int))) < 0)
5215 long i = longval ();
5216 if (i != ((long) (sizeof (int))))
5218 fprintf (f, "%ld\n", i);
5222 unsigned long i = ulongval ();
5223 if (i != ((long) (sizeof (int))))
5225 fprintf (f, "%lu\n", i);
5227 exit (ferror (f) || fclose (f) != 0);
5233 rm -f conftest$ac_exeext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235 (eval $ac_link) 2>&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_sizeof_int=`cat conftest.val`
5246 echo "$as_me: program exited with status $ac_status" >&5
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5252 See \`config.log' for more details." >&5
5253 echo "$as_me: error: cannot compute sizeof (int), 77
5254 See \`config.log' for more details." >&2;}
5255 { (exit 1); exit 1; }; }
5257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5266 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5267 cat >>confdefs.h <<_ACEOF
5268 #define SIZEOF_INT $ac_cv_sizeof_int
5272 echo "$as_me:$LINENO: checking for long" >&5
5273 echo $ECHO_N "checking for long... $ECHO_C" >&6
5274 if test "${ac_cv_type_long+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 cat >conftest.$ac_ext <<_ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 $ac_includes_default
5295 rm -f conftest.$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297 (eval $ac_compile) 2>conftest.er1
5299 grep -v '^ *+' conftest.er1 >conftest.err
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5325 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5326 echo "${ECHO_T}$ac_cv_type_long" >&6
5328 echo "$as_me:$LINENO: checking size of long" >&5
5329 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5330 if test "${ac_cv_sizeof_long+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 if test "$ac_cv_type_long" = yes; then
5334 # The cast to unsigned long works around a bug in the HP C Compiler
5335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5337 # This bug is HP SR number 8606223364.
5338 if test "$cross_compiling" = yes; then
5339 # Depending upon the size, compute the lo and hi bounds.
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 $ac_includes_default
5350 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359 (eval $ac_compile) 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5380 cat >conftest.$ac_ext <<_ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5390 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
5418 ac_hi=$ac_mid; break
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 ac_lo=`expr $ac_mid + 1`
5424 if test $ac_lo -le $ac_mid; then
5428 ac_mid=`expr 2 '*' $ac_mid + 1`
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 $ac_includes_default
5446 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5453 rm -f conftest.$ac_objext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 (eval $ac_compile) 2>conftest.er1
5457 grep -v '^ *+' conftest.er1 >conftest.err
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5486 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>conftest.er1
5497 grep -v '^ *+' conftest.er1 >conftest.err
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; } &&
5508 { ac_try='test -s conftest.$ac_objext'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 ac_lo=$ac_mid; break
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5519 ac_hi=`expr '(' $ac_mid ')' - 1`
5520 if test $ac_mid -le $ac_hi; then
5524 ac_mid=`expr 2 '*' $ac_mid`
5526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5537 # Binary search between lo and hi bounds.
5538 while test "x$ac_lo" != "x$ac_hi"; do
5539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 $ac_includes_default
5550 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5557 rm -f conftest.$ac_objext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>conftest.er1
5561 grep -v '^ *+' conftest.er1 >conftest.err
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 ac_lo=`expr '(' $ac_mid ')' + 1`
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5588 ?*) ac_cv_sizeof_long=$ac_lo;;
5589 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5590 See \`config.log' for more details." >&5
5591 echo "$as_me: error: cannot compute sizeof (long), 77
5592 See \`config.log' for more details." >&2;}
5593 { (exit 1); exit 1; }; } ;;
5596 if test "$cross_compiling" = yes; then
5597 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5598 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5599 { (exit 1); exit 1; }; }
5601 cat >conftest.$ac_ext <<_ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 $ac_includes_default
5608 long longval () { return (long) (sizeof (long)); }
5609 unsigned long ulongval () { return (long) (sizeof (long)); }
5616 FILE *f = fopen ("conftest.val", "w");
5619 if (((long) (sizeof (long))) < 0)
5621 long i = longval ();
5622 if (i != ((long) (sizeof (long))))
5624 fprintf (f, "%ld\n", i);
5628 unsigned long i = ulongval ();
5629 if (i != ((long) (sizeof (long))))
5631 fprintf (f, "%lu\n", i);
5633 exit (ferror (f) || fclose (f) != 0);
5639 rm -f conftest$ac_exeext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641 (eval $ac_link) 2>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5650 ac_cv_sizeof_long=`cat conftest.val`
5652 echo "$as_me: program exited with status $ac_status" >&5
5653 echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5658 See \`config.log' for more details." >&5
5659 echo "$as_me: error: cannot compute sizeof (long), 77
5660 See \`config.log' for more details." >&2;}
5661 { (exit 1); exit 1; }; }
5663 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5672 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5673 cat >>confdefs.h <<_ACEOF
5674 #define SIZEOF_LONG $ac_cv_sizeof_long
5678 echo "$as_me:$LINENO: checking for float" >&5
5679 echo $ECHO_N "checking for float... $ECHO_C" >&6
5680 if test "${ac_cv_type_float+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 cat >conftest.$ac_ext <<_ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 $ac_includes_default
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; } &&
5716 { ac_try='test -s conftest.$ac_objext'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; }; then
5722 ac_cv_type_float=yes
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5732 echo "${ECHO_T}$ac_cv_type_float" >&6
5734 echo "$as_me:$LINENO: checking size of float" >&5
5735 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5736 if test "${ac_cv_sizeof_float+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 if test "$ac_cv_type_float" = yes; then
5740 # The cast to unsigned long works around a bug in the HP C Compiler
5741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5743 # This bug is HP SR number 8606223364.
5744 if test "$cross_compiling" = yes; then
5745 # Depending upon the size, compute the lo and hi bounds.
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 $ac_includes_default
5756 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765 (eval $ac_compile) 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 $ac_includes_default
5796 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
5812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_hi=$ac_mid; break
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 ac_lo=`expr $ac_mid + 1`
5830 if test $ac_lo -le $ac_mid; then
5834 ac_mid=`expr 2 '*' $ac_mid + 1`
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 $ac_includes_default
5852 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 $ac_includes_default
5892 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5899 rm -f conftest.$ac_objext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_lo=$ac_mid; break
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_hi=`expr '(' $ac_mid ')' - 1`
5926 if test $ac_mid -le $ac_hi; then
5930 ac_mid=`expr 2 '*' $ac_mid`
5932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5943 # Binary search between lo and hi bounds.
5944 while test "x$ac_lo" != "x$ac_hi"; do
5945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5946 cat >conftest.$ac_ext <<_ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 $ac_includes_default
5956 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5963 rm -f conftest.$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5967 grep -v '^ *+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ac_lo=`expr '(' $ac_mid ')' + 1`
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5994 ?*) ac_cv_sizeof_float=$ac_lo;;
5995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5996 See \`config.log' for more details." >&5
5997 echo "$as_me: error: cannot compute sizeof (float), 77
5998 See \`config.log' for more details." >&2;}
5999 { (exit 1); exit 1; }; } ;;
6002 if test "$cross_compiling" = yes; then
6003 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6004 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6005 { (exit 1); exit 1; }; }
6007 cat >conftest.$ac_ext <<_ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 $ac_includes_default
6014 long longval () { return (long) (sizeof (float)); }
6015 unsigned long ulongval () { return (long) (sizeof (float)); }
6022 FILE *f = fopen ("conftest.val", "w");
6025 if (((long) (sizeof (float))) < 0)
6027 long i = longval ();
6028 if (i != ((long) (sizeof (float))))
6030 fprintf (f, "%ld\n", i);
6034 unsigned long i = ulongval ();
6035 if (i != ((long) (sizeof (float))))
6037 fprintf (f, "%lu\n", i);
6039 exit (ferror (f) || fclose (f) != 0);
6045 rm -f conftest$ac_exeext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047 (eval $ac_link) 2>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6056 ac_cv_sizeof_float=`cat conftest.val`
6058 echo "$as_me: program exited with status $ac_status" >&5
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
6064 See \`config.log' for more details." >&5
6065 echo "$as_me: error: cannot compute sizeof (float), 77
6066 See \`config.log' for more details." >&2;}
6067 { (exit 1); exit 1; }; }
6069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6074 ac_cv_sizeof_float=0
6077 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6078 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
6079 cat >>confdefs.h <<_ACEOF
6080 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6084 echo "$as_me:$LINENO: checking for double" >&5
6085 echo $ECHO_N "checking for double... $ECHO_C" >&6
6086 if test "${ac_cv_type_double+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 cat >conftest.$ac_ext <<_ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 $ac_includes_default
6101 if (sizeof (double))
6107 rm -f conftest.$ac_objext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109 (eval $ac_compile) 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; } &&
6122 { ac_try='test -s conftest.$ac_objext'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; }; then
6128 ac_cv_type_double=yes
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6133 ac_cv_type_double=no
6135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6137 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6138 echo "${ECHO_T}$ac_cv_type_double" >&6
6140 echo "$as_me:$LINENO: checking size of double" >&5
6141 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6142 if test "${ac_cv_sizeof_double+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 if test "$ac_cv_type_double" = yes; then
6146 # The cast to unsigned long works around a bug in the HP C Compiler
6147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6149 # This bug is HP SR number 8606223364.
6150 if test "$cross_compiling" = yes; then
6151 # Depending upon the size, compute the lo and hi bounds.
6152 cat >conftest.$ac_ext <<_ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6158 $ac_includes_default
6162 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6169 rm -f conftest.$ac_objext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171 (eval $ac_compile) 2>conftest.er1
6173 grep -v '^ *+' conftest.er1 >conftest.err
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; } &&
6184 { ac_try='test -s conftest.$ac_objext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 $ac_includes_default
6202 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; } &&
6224 { ac_try='test -s conftest.$ac_objext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 ac_hi=$ac_mid; break
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 ac_lo=`expr $ac_mid + 1`
6236 if test $ac_lo -le $ac_mid; then
6240 ac_mid=`expr 2 '*' $ac_mid + 1`
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 cat >conftest.$ac_ext <<_ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 $ac_includes_default
6258 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6265 rm -f conftest.$ac_objext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>conftest.er1
6269 grep -v '^ *+' conftest.er1 >conftest.err
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6288 cat >conftest.$ac_ext <<_ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 $ac_includes_default
6298 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest.$ac_objext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 ac_lo=$ac_mid; break
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 ac_hi=`expr '(' $ac_mid ')' - 1`
6332 if test $ac_mid -le $ac_hi; then
6336 ac_mid=`expr 2 '*' $ac_mid`
6338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6349 # Binary search between lo and hi bounds.
6350 while test "x$ac_lo" != "x$ac_hi"; do
6351 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6352 cat >conftest.$ac_ext <<_ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 $ac_includes_default
6362 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try='test -s conftest.$ac_objext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_lo=`expr '(' $ac_mid ')' + 1`
6397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6400 ?*) ac_cv_sizeof_double=$ac_lo;;
6401 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6402 See \`config.log' for more details." >&5
6403 echo "$as_me: error: cannot compute sizeof (double), 77
6404 See \`config.log' for more details." >&2;}
6405 { (exit 1); exit 1; }; } ;;
6408 if test "$cross_compiling" = yes; then
6409 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6410 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6411 { (exit 1); exit 1; }; }
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 long longval () { return (long) (sizeof (double)); }
6421 unsigned long ulongval () { return (long) (sizeof (double)); }
6428 FILE *f = fopen ("conftest.val", "w");
6431 if (((long) (sizeof (double))) < 0)
6433 long i = longval ();
6434 if (i != ((long) (sizeof (double))))
6436 fprintf (f, "%ld\n", i);
6440 unsigned long i = ulongval ();
6441 if (i != ((long) (sizeof (double))))
6443 fprintf (f, "%lu\n", i);
6445 exit (ferror (f) || fclose (f) != 0);
6451 rm -f conftest$ac_exeext
6452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6453 (eval $ac_link) 2>&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_sizeof_double=`cat conftest.val`
6464 echo "$as_me: program exited with status $ac_status" >&5
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6470 See \`config.log' for more details." >&5
6471 echo "$as_me: error: cannot compute sizeof (double), 77
6472 See \`config.log' for more details." >&2;}
6473 { (exit 1); exit 1; }; }
6475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6480 ac_cv_sizeof_double=0
6483 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6484 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6485 cat >>confdefs.h <<_ACEOF
6486 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6492 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6493 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6494 if test "${ac_cv_lib_z_deflate+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 ac_check_lib_save_LIBS=$LIBS
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6506 /* Override any gcc2 internal prototype to avoid an error. */
6510 /* We use char because int might match the return type of a gcc2
6511 builtin and then its argument prototype would still apply. */
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_lib_z_deflate=yes
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 ac_cv_lib_z_deflate=no
6549 rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6551 LIBS=$ac_check_lib_save_LIBS
6553 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6554 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6555 if test $ac_cv_lib_z_deflate = yes; then
6558 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6559 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6563 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6564 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6565 if test "${ac_cv_lib_m_sin+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_check_lib_save_LIBS=$LIBS
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6577 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594 (eval $ac_link) 2>conftest.er1
6596 grep -v '^ *+' conftest.er1 >conftest.err
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6620 rm -f conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6622 LIBS=$ac_check_lib_save_LIBS
6624 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6625 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6626 if test $ac_cv_lib_m_sin = yes; then
6627 cat >>confdefs.h <<_ACEOF
6635 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6636 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6637 if test "${ac_cv_lib_curses_main+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 ac_check_lib_save_LIBS=$LIBS
6641 LIBS="-lcurses $LIBS"
6642 cat >conftest.$ac_ext <<_ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6660 (eval $ac_link) 2>conftest.er1
6662 grep -v '^ *+' conftest.er1 >conftest.err
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; } &&
6673 { ac_try='test -s conftest$ac_exeext'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_cv_lib_curses_main=yes
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6684 ac_cv_lib_curses_main=no
6686 rm -f conftest.err conftest.$ac_objext \
6687 conftest$ac_exeext conftest.$ac_ext
6688 LIBS=$ac_check_lib_save_LIBS
6690 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6691 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6692 if test $ac_cv_lib_curses_main = yes; then
6698 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6699 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6700 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 ac_check_lib_save_LIBS=$LIBS
6704 LIBS="-lncurses $LIBS"
6705 cat >conftest.$ac_ext <<_ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6721 rm -f conftest.$ac_objext conftest$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>conftest.er1
6725 grep -v '^ *+' conftest.er1 >conftest.err
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
6730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; } &&
6736 { ac_try='test -s conftest$ac_exeext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 ac_cv_lib_ncurses_main=yes
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6747 ac_cv_lib_ncurses_main=no
6749 rm -f conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6753 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6754 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6755 if test $ac_cv_lib_ncurses_main = yes; then
6761 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6762 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6763 if test "${ac_cv_lib_readline_main+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_check_lib_save_LIBS=$LIBS
6767 LIBS="-lreadline -lcurses $LIBS"
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6786 (eval $ac_link) 2>conftest.er1
6788 grep -v '^ *+' conftest.er1 >conftest.err
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
6793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_lib_readline_main=yes
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_cv_lib_readline_main=no
6812 rm -f conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
6814 LIBS=$ac_check_lib_save_LIBS
6816 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6817 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6818 if test $ac_cv_lib_readline_main = yes; then
6821 cat >>confdefs.h <<\_ACEOF
6822 #define HAVE_READLINE 1
6830 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6831 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6832 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 ac_check_lib_save_LIBS=$LIBS
6836 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread` $LIBS"
6837 cat >conftest.$ac_ext <<_ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6853 rm -f conftest.$ac_objext conftest$ac_exeext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6855 (eval $ac_link) 2>conftest.er1
6857 grep -v '^ *+' conftest.er1 >conftest.err
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest$ac_exeext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_lib_wx_gtk_2_4_main=yes
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 ac_cv_lib_wx_gtk_2_4_main=no
6881 rm -f conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
6883 LIBS=$ac_check_lib_save_LIBS
6885 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6886 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6887 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6888 wxwin=true; wx_gtk=true;
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE_WXWINDOWS 1
6895 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6896 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6897 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 ac_check_lib_save_LIBS=$LIBS
6901 LIBS="-lwx_mac-2.4 $LIBS"
6902 cat >conftest.$ac_ext <<_ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6918 rm -f conftest.$ac_objext conftest$ac_exeext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6920 (eval $ac_link) 2>conftest.er1
6922 grep -v '^ *+' conftest.er1 >conftest.err
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
6927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; } &&
6933 { ac_try='test -s conftest$ac_exeext'
6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; }; then
6939 ac_cv_lib_wx_mac_2_4_main=yes
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6944 ac_cv_lib_wx_mac_2_4_main=no
6946 rm -f conftest.err conftest.$ac_objext \
6947 conftest$ac_exeext conftest.$ac_ext
6948 LIBS=$ac_check_lib_save_LIBS
6950 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6951 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6952 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6953 wxwin=true; wx_mac=true;
6954 cat >>confdefs.h <<\_ACEOF
6955 #define HAVE_WXWINDOWS 1
6960 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
6961 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6
6962 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 ac_check_lib_save_LIBS=$LIBS
6966 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
6967 cat >conftest.$ac_ext <<_ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6974 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6980 char fftw_malloc ();
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try='test -s conftest$ac_exeext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 ac_cv_lib_fftw3_fftw_malloc=yes
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 ac_cv_lib_fftw3_fftw_malloc=no
7017 rm -f conftest.err conftest.$ac_objext \
7018 conftest$ac_exeext conftest.$ac_ext
7019 LIBS=$ac_check_lib_save_LIBS
7021 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
7022 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6
7023 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
7025 cat >>confdefs.h <<\_ACEOF
7033 echo "$as_me:$LINENO: checking for main in -lGL" >&5
7034 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
7035 if test "${ac_cv_lib_GL_main+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 ac_check_lib_save_LIBS=$LIBS
7039 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7056 rm -f conftest.$ac_objext conftest$ac_exeext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058 (eval $ac_link) 2>conftest.er1
7060 grep -v '^ *+' conftest.er1 >conftest.err
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; } &&
7071 { ac_try='test -s conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_cv_lib_GL_main=yes
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7082 ac_cv_lib_GL_main=no
7084 rm -f conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7086 LIBS=$ac_check_lib_save_LIBS
7088 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
7089 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
7090 if test $ac_cv_lib_GL_main = yes; then
7096 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7097 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7098 if test "${ac_cv_lib_pthread_main+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 ac_check_lib_save_LIBS=$LIBS
7102 LIBS="-lpthread $LIBS"
7103 cat >conftest.$ac_ext <<_ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } &&
7134 { ac_try='test -s conftest$ac_exeext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_lib_pthread_main=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_lib_pthread_main=no
7147 rm -f conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7149 LIBS=$ac_check_lib_save_LIBS
7151 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7152 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7153 if test $ac_cv_lib_pthread_main = yes; then
7160 if test "$zlib" = "true" ; then
7161 echo "$as_me:$LINENO: checking for main in -lpng" >&5
7162 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
7163 if test "${ac_cv_lib_png_main+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_check_lib_save_LIBS=$LIBS
7167 LIBS="-lpng -lz -lm $LIBS"
7168 cat >conftest.$ac_ext <<_ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>conftest.er1
7188 grep -v '^ *+' conftest.er1 >conftest.err
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_cv_lib_png_main=yes
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_cv_lib_png_main=no
7212 rm -f conftest.err conftest.$ac_objext \
7213 conftest$ac_exeext conftest.$ac_ext
7214 LIBS=$ac_check_lib_save_LIBS
7216 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
7217 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
7218 if test $ac_cv_lib_png_main = yes; then
7220 cat >>confdefs.h <<\_ACEOF
7230 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7232 if test "${ac_cv_header_stdc+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 cat >conftest.$ac_ext <<_ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>conftest.er1
7258 grep -v '^ *+' conftest.er1 >conftest.err
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; } &&
7269 { ac_try='test -s conftest.$ac_objext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 ac_cv_header_stdc=yes
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_cv_header_stdc=no
7282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7284 if test $ac_cv_header_stdc = yes; then
7285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7286 cat >conftest.$ac_ext <<_ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296 $EGREP "memchr" >/dev/null 2>&1; then
7299 ac_cv_header_stdc=no
7305 if test $ac_cv_header_stdc = yes; then
7306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7307 cat >conftest.$ac_ext <<_ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7317 $EGREP "free" >/dev/null 2>&1; then
7320 ac_cv_header_stdc=no
7326 if test $ac_cv_header_stdc = yes; then
7327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7328 if test "$cross_compiling" = yes; then
7331 cat >conftest.$ac_ext <<_ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7338 #if ((' ' & 0x0FF) == 0x020)
7339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7342 # define ISLOWER(c) \
7343 (('a' <= (c) && (c) <= 'i') \
7344 || ('j' <= (c) && (c) <= 'r') \
7345 || ('s' <= (c) && (c) <= 'z'))
7346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7354 for (i = 0; i < 256; i++)
7355 if (XOR (islower (i), ISLOWER (i))
7356 || toupper (i) != TOUPPER (i))
7361 rm -f conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363 (eval $ac_link) 2>&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7374 echo "$as_me: program exited with status $ac_status" >&5
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7379 ac_cv_header_stdc=no
7381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7385 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7386 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7387 if test $ac_cv_header_stdc = yes; then
7389 cat >>confdefs.h <<\_ACEOF
7390 #define STDC_HEADERS 1
7419 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
7421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7423 echo "$as_me:$LINENO: checking for $ac_header" >&5
7424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431 # Is the header compilable?
7432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7434 cat >conftest.$ac_ext <<_ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 #include <$ac_header>
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_header_compiler=yes
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 ac_header_compiler=no
7471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7473 echo "${ECHO_T}$ac_header_compiler" >&6
7475 # Is the header present?
7476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <$ac_header>
7486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } >/dev/null; then
7494 if test -s conftest.err; then
7495 ac_cpp_err=$ac_c_preproc_warn_flag
7496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7503 if test -z "$ac_cpp_err"; then
7504 ac_header_preproc=yes
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_header_preproc=no
7511 rm -f conftest.err conftest.$ac_ext
7512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7513 echo "${ECHO_T}$ac_header_preproc" >&6
7515 # So? What about this header?
7516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7522 ac_header_preproc=yes
7525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7539 ## ------------------------------------------ ##
7540 ## Report this to the AC_PACKAGE_NAME lists. ##
7541 ## ------------------------------------------ ##
7544 sed "s/^/$as_me: WARNING: /" >&2
7547 echo "$as_me:$LINENO: checking for $ac_header" >&5
7548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 eval "$as_ac_Header=\$ac_header_preproc"
7554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7559 cat >>confdefs.h <<_ACEOF
7560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7568 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7569 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7570 if test "${ac_cv_c_const+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7583 /* FIXME: Include the comments suggested by Paul. */
7585 /* Ultrix mips cc rejects this. */
7586 typedef int charset[2];
7588 /* SunOS 4.1.1 cc rejects this. */
7589 char const *const *ccp;
7591 /* NEC SVR4.0.2 mips cc rejects this. */
7592 struct point {int x, y;};
7593 static struct point const zero = {0,0};
7594 /* AIX XL C 1.02.0.0 rejects this.
7595 It does not let you subtract one const X* pointer from another in
7596 an arm of an if-expression whose if-part is not a constant
7598 const char *g = "string";
7599 ccp = &g + (g ? g-g : 0);
7600 /* HPUX 7.0 cc rejects these. */
7603 ccp = (char const *const *) p;
7604 { /* SCO 3.2v4 cc rejects this. */
7606 char const *s = 0 ? (char *) 0 : (char const *) 0;
7610 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7612 const int *foo = &x[0];
7615 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7616 typedef const int *iptr;
7620 { /* AIX XL C 1.02.0.0 rejects this saying
7621 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7622 struct s { int j; const int *ap[3]; };
7623 struct s *b; b->j = 5;
7625 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7634 rm -f conftest.$ac_objext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7636 (eval $ac_compile) 2>conftest.er1
7638 grep -v '^ *+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7664 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7665 echo "${ECHO_T}$ac_cv_c_const" >&6
7666 if test $ac_cv_c_const = no; then
7668 cat >>confdefs.h <<\_ACEOF
7674 echo "$as_me:$LINENO: checking for off_t" >&5
7675 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7676 if test "${ac_cv_type_off_t+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 $ac_includes_default
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7701 grep -v '^ *+' conftest.er1 >conftest.err
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_type_off_t=yes
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7727 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7728 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7729 if test $ac_cv_type_off_t = yes; then
7733 cat >>confdefs.h <<_ACEOF
7739 echo "$as_me:$LINENO: checking for size_t" >&5
7740 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7741 if test "${ac_cv_type_size_t+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 cat >conftest.$ac_ext <<_ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 $ac_includes_default
7756 if (sizeof (size_t))
7762 rm -f conftest.$ac_objext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764 (eval $ac_compile) 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; } &&
7777 { ac_try='test -s conftest.$ac_objext'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_type_size_t=yes
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 ac_cv_type_size_t=no
7790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7792 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7793 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7794 if test $ac_cv_type_size_t = yes; then
7798 cat >>confdefs.h <<_ACEOF
7799 #define size_t unsigned
7804 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7805 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7806 if test "${ac_cv_struct_tm+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 cat >conftest.$ac_ext <<_ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 #include <sys/types.h>
7821 struct tm *tp; tp->tm_sec;
7826 rm -f conftest.$ac_objext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7828 (eval $ac_compile) 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest.$ac_objext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_cv_struct_tm=time.h
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 ac_cv_struct_tm=sys/time.h
7854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7856 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7857 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7858 if test $ac_cv_struct_tm = sys/time.h; then
7860 cat >>confdefs.h <<\_ACEOF
7861 #define TM_IN_SYS_TIME 1
7868 for ac_func in vprintf
7870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7871 echo "$as_me:$LINENO: checking for $ac_func" >&5
7872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7873 if eval "test \"\${$as_ac_var+set}\" = set"; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 cat >conftest.$ac_ext <<_ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7884 #define $ac_func innocuous_$ac_func
7886 /* System header to define __stub macros and hopefully few prototypes,
7887 which can conflict with char $ac_func (); below.
7888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889 <limits.h> exists even on freestanding compilers. */
7892 # include <limits.h>
7894 # include <assert.h>
7899 /* Override any gcc2 internal prototype to avoid an error. */
7904 /* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7907 /* The GNU C library defines this for functions which it implements
7908 to always fail with ENOSYS. Some functions are actually named
7909 something starting with __ and the normal name is an alias. */
7910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7913 char (*f) () = $ac_func;
7922 return f != $ac_func;
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929 (eval $ac_link) 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; } &&
7942 { ac_try='test -s conftest$ac_exeext'
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 eval "$as_ac_var=yes"
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 eval "$as_ac_var=no"
7955 rm -f conftest.err conftest.$ac_objext \
7956 conftest$ac_exeext conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7960 if test `eval echo '${'$as_ac_var'}'` = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7965 echo "$as_me:$LINENO: checking for _doprnt" >&5
7966 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7967 if test "${ac_cv_func__doprnt+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7978 #define _doprnt innocuous__doprnt
7980 /* System header to define __stub macros and hopefully few prototypes,
7981 which can conflict with char _doprnt (); below.
7982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7983 <limits.h> exists even on freestanding compilers. */
7986 # include <limits.h>
7988 # include <assert.h>
7993 /* Override any gcc2 internal prototype to avoid an error. */
7998 /* We use char because int might match the return type of a gcc2
7999 builtin and then its argument prototype would still apply. */
8001 /* The GNU C library defines this for functions which it implements
8002 to always fail with ENOSYS. Some functions are actually named
8003 something starting with __ and the normal name is an alias. */
8004 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8007 char (*f) () = _doprnt;
8016 return f != _doprnt;
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023 (eval $ac_link) 2>conftest.er1
8025 grep -v '^ *+' conftest.er1 >conftest.err
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 ac_cv_func__doprnt=yes
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 ac_cv_func__doprnt=no
8049 rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8052 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8053 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
8054 if test $ac_cv_func__doprnt = yes; then
8056 cat >>confdefs.h <<\_ACEOF
8057 #define HAVE_DOPRNT 1
8079 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
8081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8082 echo "$as_me:$LINENO: checking for $ac_func" >&5
8083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8084 if eval "test \"\${$as_ac_var+set}\" = set"; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 cat >conftest.$ac_ext <<_ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8095 #define $ac_func innocuous_$ac_func
8097 /* System header to define __stub macros and hopefully few prototypes,
8098 which can conflict with char $ac_func (); below.
8099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8100 <limits.h> exists even on freestanding compilers. */
8103 # include <limits.h>
8105 # include <assert.h>
8110 /* Override any gcc2 internal prototype to avoid an error. */
8115 /* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8118 /* The GNU C library defines this for functions which it implements
8119 to always fail with ENOSYS. Some functions are actually named
8120 something starting with __ and the normal name is an alias. */
8121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8124 char (*f) () = $ac_func;
8133 return f != $ac_func;
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>conftest.er1
8142 grep -v '^ *+' conftest.er1 >conftest.err
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest$ac_exeext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 eval "$as_ac_var=yes"
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 eval "$as_ac_var=no"
8166 rm -f conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8171 if test `eval echo '${'$as_ac_var'}'` = yes; then
8172 cat >>confdefs.h <<_ACEOF
8173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8179 echo "$as_me:$LINENO: checking for basename" >&5
8180 echo $ECHO_N "checking for basename... $ECHO_C" >&6
8181 if test "${ac_cv_func_basename+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 cat >conftest.$ac_ext <<_ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 /* Define basename to an innocuous variant, in case <limits.h> declares basename.
8191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8192 #define basename innocuous_basename
8194 /* System header to define __stub macros and hopefully few prototypes,
8195 which can conflict with char basename (); below.
8196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8197 <limits.h> exists even on freestanding compilers. */
8200 # include <limits.h>
8202 # include <assert.h>
8207 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8215 /* The GNU C library defines this for functions which it implements
8216 to always fail with ENOSYS. Some functions are actually named
8217 something starting with __ and the normal name is an alias. */
8218 #if defined (__stub_basename) || defined (__stub___basename)
8221 char (*f) () = basename;
8230 return f != basename;
8235 rm -f conftest.$ac_objext conftest$ac_exeext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237 (eval $ac_link) 2>conftest.er1
8239 grep -v '^ *+' conftest.er1 >conftest.err
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_func_basename=yes
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 ac_cv_func_basename=no
8263 rm -f conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
8267 echo "${ECHO_T}$ac_cv_func_basename" >&6
8269 echo "$as_me:$LINENO: checking for setjmp" >&5
8270 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
8271 if test "${ac_cv_func_setjmp+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 /* Define setjmp to an innocuous variant, in case <limits.h> declares setjmp.
8281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8282 #define setjmp innocuous_setjmp
8284 /* System header to define __stub macros and hopefully few prototypes,
8285 which can conflict with char setjmp (); below.
8286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287 <limits.h> exists even on freestanding compilers. */
8290 # include <limits.h>
8292 # include <assert.h>
8297 /* Override any gcc2 internal prototype to avoid an error. */
8302 /* We use char because int might match the return type of a gcc2
8303 builtin and then its argument prototype would still apply. */
8305 /* The GNU C library defines this for functions which it implements
8306 to always fail with ENOSYS. Some functions are actually named
8307 something starting with __ and the normal name is an alias. */
8308 #if defined (__stub_setjmp) || defined (__stub___setjmp)
8311 char (*f) () = setjmp;
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327 (eval $ac_link) 2>conftest.er1
8329 grep -v '^ *+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest$ac_exeext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 ac_cv_func_setjmp=yes
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_func_setjmp=no
8353 rm -f conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8356 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
8357 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
8359 echo "$as_me:$LINENO: checking for setpriority" >&5
8360 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
8361 if test "${ac_cv_func_setpriority+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 /* Define setpriority to an innocuous variant, in case <limits.h> declares setpriority.
8371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8372 #define setpriority innocuous_setpriority
8374 /* System header to define __stub macros and hopefully few prototypes,
8375 which can conflict with char setpriority (); below.
8376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8377 <limits.h> exists even on freestanding compilers. */
8380 # include <limits.h>
8382 # include <assert.h>
8387 /* Override any gcc2 internal prototype to avoid an error. */
8392 /* We use char because int might match the return type of a gcc2
8393 builtin and then its argument prototype would still apply. */
8394 char setpriority ();
8395 /* The GNU C library defines this for functions which it implements
8396 to always fail with ENOSYS. Some functions are actually named
8397 something starting with __ and the normal name is an alias. */
8398 #if defined (__stub_setpriority) || defined (__stub___setpriority)
8401 char (*f) () = setpriority;
8410 return f != setpriority;
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417 (eval $ac_link) 2>conftest.er1
8419 grep -v '^ *+' conftest.er1 >conftest.err
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_func_setpriority=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_func_setpriority=no
8443 rm -f conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8446 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
8447 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
8449 echo "$as_me:$LINENO: checking for time" >&5
8450 echo $ECHO_N "checking for time... $ECHO_C" >&6
8451 if test "${ac_cv_func_time+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 /* Define time to an innocuous variant, in case <limits.h> declares time.
8461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8462 #define time innocuous_time
8464 /* System header to define __stub macros and hopefully few prototypes,
8465 which can conflict with char time (); below.
8466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8467 <limits.h> exists even on freestanding compilers. */
8470 # include <limits.h>
8472 # include <assert.h>
8477 /* Override any gcc2 internal prototype to avoid an error. */
8482 /* We use char because int might match the return type of a gcc2
8483 builtin and then its argument prototype would still apply. */
8485 /* The GNU C library defines this for functions which it implements
8486 to always fail with ENOSYS. Some functions are actually named
8487 something starting with __ and the normal name is an alias. */
8488 #if defined (__stub_time) || defined (__stub___time)
8491 char (*f) () = time;
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507 (eval $ac_link) 2>conftest.er1
8509 grep -v '^ *+' conftest.er1 >conftest.err
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8533 rm -f conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8536 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
8537 echo "${ECHO_T}$ac_cv_func_time" >&6
8539 echo "$as_me:$LINENO: checking for gettimeofday" >&5
8540 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
8541 if test "${ac_cv_func_gettimeofday+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 cat >conftest.$ac_ext <<_ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
8551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8552 #define gettimeofday innocuous_gettimeofday
8554 /* System header to define __stub macros and hopefully few prototypes,
8555 which can conflict with char gettimeofday (); below.
8556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8557 <limits.h> exists even on freestanding compilers. */
8560 # include <limits.h>
8562 # include <assert.h>
8567 /* Override any gcc2 internal prototype to avoid an error. */
8572 /* We use char because int might match the return type of a gcc2
8573 builtin and then its argument prototype would still apply. */
8574 char gettimeofday ();
8575 /* The GNU C library defines this for functions which it implements
8576 to always fail with ENOSYS. Some functions are actually named
8577 something starting with __ and the normal name is an alias. */
8578 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
8581 char (*f) () = gettimeofday;
8590 return f != gettimeofday;
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; } &&
8610 { ac_try='test -s conftest$ac_exeext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616 ac_cv_func_gettimeofday=yes
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8621 ac_cv_func_gettimeofday=no
8623 rm -f conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8626 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8627 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8629 echo "$as_me:$LINENO: checking for getopt" >&5
8630 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8631 if test "${ac_cv_func_getopt+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
8641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8642 #define getopt innocuous_getopt
8644 /* System header to define __stub macros and hopefully few prototypes,
8645 which can conflict with char getopt (); below.
8646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8647 <limits.h> exists even on freestanding compilers. */
8650 # include <limits.h>
8652 # include <assert.h>
8657 /* Override any gcc2 internal prototype to avoid an error. */
8662 /* We use char because int might match the return type of a gcc2
8663 builtin and then its argument prototype would still apply. */
8665 /* The GNU C library defines this for functions which it implements
8666 to always fail with ENOSYS. Some functions are actually named
8667 something starting with __ and the normal name is an alias. */
8668 #if defined (__stub_getopt) || defined (__stub___getopt)
8671 char (*f) () = getopt;
8685 rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8687 (eval $ac_link) 2>conftest.er1
8689 grep -v '^ *+' conftest.er1 >conftest.err
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest$ac_exeext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_func_getopt=yes
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8711 ac_cv_func_getopt=no
8713 rm -f conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8716 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8717 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8718 if test $ac_cv_func_getopt = yes; then
8725 if test "${OSTYPE}" = "cygwin" ; then
8728 echo "$as_me:$LINENO: checking for getopt_long" >&5
8729 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
8730 if test "${ac_cv_func_getopt_long+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
8740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8741 #define getopt_long innocuous_getopt_long
8743 /* System header to define __stub macros and hopefully few prototypes,
8744 which can conflict with char getopt_long (); below.
8745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8746 <limits.h> exists even on freestanding compilers. */
8749 # include <limits.h>
8751 # include <assert.h>
8756 /* Override any gcc2 internal prototype to avoid an error. */
8761 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8763 char getopt_long ();
8764 /* The GNU C library defines this for functions which it implements
8765 to always fail with ENOSYS. Some functions are actually named
8766 something starting with __ and the normal name is an alias. */
8767 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8770 char (*f) () = getopt_long;
8779 return f != getopt_long;
8784 rm -f conftest.$ac_objext conftest$ac_exeext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8786 (eval $ac_link) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try='test -s conftest$ac_exeext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_cv_func_getopt_long=yes
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 ac_cv_func_getopt_long=no
8812 rm -f conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8815 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8816 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8817 if test $ac_cv_func_getopt_long = yes; then
8825 if test "${getopt_long}" = "false" ; then
8826 my_includes="$my_includes -I../getopt"
8828 cat >>confdefs.h <<\_ACEOF
8829 #define HAVE_GETOPT_LONG 1
8832 ctlibs_base="$ctlibs_base -lgetopt"
8833 LDFLAGS="$LDFLAGS -L../getopt"
8838 if test "$GETOPTLONG"="1"; then
8839 INCLUDED_GETOPT_LONG_TRUE=
8840 INCLUDED_GETOPT_LONG_FALSE='#'
8842 INCLUDED_GETOPT_LONG_TRUE='#'
8843 INCLUDED_GETOPT_LONG_FALSE=
8847 if test "${readline}" = "true" ; then
8848 ctlibs_base="$ctlibs_base -lreadline"
8849 if test "${ncurses}" = "true"; then
8850 ctlibs_base="$ctlibs_base -lncurses"
8851 elif test "${curses}" = "true"; then
8852 ctlibs_base="$ctlibs_base -lcurses"
8856 echo "$as_me:$LINENO: checking debug" >&5
8857 echo $ECHO_N "checking debug... $ECHO_C" >&6
8858 # Check whether --enable-debug or --disable-debug was given.
8859 if test "${enable_debug+set}" = set; then
8860 enableval="$enable_debug"
8861 case "${enableval}" in
8863 echo "$as_me:$LINENO: result: yes" >&5
8864 echo "${ECHO_T}yes" >&6
8867 echo "$as_me:$LINENO: result: no" >&5
8868 echo "${ECHO_T}no" >&6
8870 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8871 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8875 debug=false; echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6
8880 if test "$debug" = "true"; then
8889 if test "$datadir" != "" ; then
8890 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8893 if test "$debug" = "true" ; then
8894 CFLAGS="$CFLAGS -g -DDEBUG"
8896 cat >>confdefs.h <<\_ACEOF
8901 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8903 cat >>confdefs.h <<\_ACEOF
8909 if test "${pthread}" = "true" ; then
8911 cat >>confdefs.h <<\_ACEOF
8912 #define HAVE_WXTHREADS 1
8917 echo "$as_me:$LINENO: checking sstream" >&5
8918 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8919 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8920 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8921 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8923 cat >>confdefs.h <<\_ACEOF
8924 #define HAVE_SSTREAM 1
8927 echo "$as_me:$LINENO: result: yes" >&5
8928 echo "${ECHO_T}yes" >&6
8930 echo "$as_me:$LINENO: result: no" >&5
8931 echo "${ECHO_T}no" >&6
8935 CFLAGS="$CFLAGS -Wall"
8936 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8937 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8938 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8939 if test "${enable_verbose_warnings+set}" = set; then
8940 enableval="$enable_verbose_warnings"
8941 case "$enableval" in
8943 echo "$as_me:$LINENO: result: yes" >&5
8944 echo "${ECHO_T}yes" >&6
8945 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8948 echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6
8953 echo "$as_me:$LINENO: result: no" >&5
8954 echo "${ECHO_T}no" >&6
8958 echo "$as_me:$LINENO: checking static executables" >&5
8959 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8960 # Check whether --enable-static or --disable-static was given.
8961 if test "${enable_static+set}" = set; then
8962 enableval="$enable_static"
8963 case "$enableval" in
8965 echo "$as_me:$LINENO: result: yes" >&5
8966 echo "${ECHO_T}yes" >&6
8967 CFLAGS="$CFLAGS --static"
8970 echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6
8975 echo "$as_me:$LINENO: result: no" >&5
8976 echo "${ECHO_T}no" >&6
8981 # Check whether --with-lam or --without-lam was given.
8982 if test "${with_lam+set}" = set; then
8984 if test "$withval" != "no" ; then
8990 if test "$withval" != "no" ; then
8991 if test "$prefix" != "NONE" ; then
8992 trylamdir="$trylamdir $prefix"
8995 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8996 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8997 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8998 if test -x "$testlamdir/bin/hcp" ; then
8999 if test "$testlamdir" != "/usr"; then
9000 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
9001 CFLAGS="$CFLAGS -I$testlamdir/include"
9003 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
9004 lamdir="$testlamdir"
9011 echo "$as_me:$LINENO: result: $lamdir" >&5
9012 echo "${ECHO_T}$lamdir" >&6
9014 echo "$as_me:$LINENO: result: no" >&5
9015 echo "${ECHO_T}no" >&6
9020 # Check whether --with-ctn or --without-ctn was given.
9021 if test "${with_ctn+set}" = set; then
9023 if test "$withval" != "no" ; then
9029 if test "$withval" == "no" -o "$withval" == "NONE" ; then
9030 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
9031 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
9032 echo "$as_me:$LINENO: result: disabled" >&5
9033 echo "${ECHO_T}disabled" >&6
9035 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
9036 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
9037 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
9038 if test -f "$testctndir/libctn.a" ; then
9039 LDFLAGS="$LDFLAGS -L$testctndir"
9044 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
9045 if test -f "$testctndir/ctn_os.h" ; then
9046 CFLAGS="$CFLAGS -I$testctndir"
9051 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
9054 cat >>confdefs.h <<\_ACEOF
9055 #define HAVE_CTN_DICOM 1
9058 echo "$as_me:$LINENO: result: yes" >&5
9059 echo "${ECHO_T}yes" >&6
9061 echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6
9066 echo "$as_me:$LINENO: checking for CPU specification" >&5
9067 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
9069 # Check whether --with-mcpu or --without-mcpu was given.
9070 if test "${with_mcpu+set}" = set; then
9071 withval="$with_mcpu"
9075 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
9076 echo "$as_me:$LINENO: result: no" >&5
9077 echo "${ECHO_T}no" >&6
9079 echo "$as_me:$LINENO: result: $withval" >&5
9080 echo "${ECHO_T}$withval" >&6
9081 CFLAGS="$CFLAGS -mcpu=$withval"
9084 echo "$as_me:$LINENO: checking for web access" >&5
9085 echo $ECHO_N "checking for web access... $ECHO_C" >&6
9087 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
9088 if test "${with_cgibin_dir+set}" = set; then
9089 withval="$with_cgibin_dir"
9090 cgibindir=$withval ;
9094 # Check whether --with-cgibin-url or --without-cgibin-url was given.
9095 if test "${with_cgibin_url+set}" = set; then
9096 withval="$with_cgibin_url"
9097 cgibinurl=$withval ;
9101 # Check whether --with-webdata-dir or --without-webdata-dir was given.
9102 if test "${with_webdata_dir+set}" = set; then
9103 withval="$with_webdata_dir"
9104 webdatadir=$withval ;
9108 # Check whether --with-webdata-url or --without-webdata-url was given.
9109 if test "${with_webdata_url+set}" = set; then
9110 withval="$with_webdata_url"
9111 webdataurl=$withval ;
9115 # Check whether --with-html-dir or --without-html-dir was given.
9116 if test "${with_html_dir+set}" = set; then
9117 withval="$with_html_dir"
9121 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
9122 cgiprograms="ctsim.cgi ctsim.conf"
9126 if test -n "$htmldir" ; then
9127 htmldata=simulate.html
9132 if test -n "$htmldir"; then
9141 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
9144 echo "$as_me:$LINENO: result: yes" >&5
9145 echo "${ECHO_T}yes" >&6
9146 if test -z "$cgibindir" ; then
9147 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
9148 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
9149 { (exit 1); exit 1; }; }
9150 elif test -z "$cgibinurl" ; then
9151 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
9152 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
9153 { (exit 1); exit 1; }; }
9154 elif test -z "$webdatadir" ; then
9155 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
9156 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
9157 { (exit 1); exit 1; }; }
9158 elif test -z "$webdataurl" ; then
9159 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
9160 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
9161 { (exit 1); exit 1; }; }
9162 elif test -z "$htmldir" ; then
9163 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
9164 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
9165 { (exit 1); exit 1; }; }
9168 echo "$as_me:$LINENO: result: no" >&5
9169 echo "${ECHO_T}no" >&6
9174 if test -n "$lamdir"; then
9184 if test "x$ac_path_x_has_been_run" != xyes; then
9185 echo "$as_me:$LINENO: checking for X" >&5
9186 echo $ECHO_N "checking for X... $ECHO_C" >&6
9188 ac_path_x_has_been_run=yes
9190 # Check whether --with-x or --without-x was given.
9191 if test "${with_x+set}" = set; then
9195 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9196 if test "x$with_x" = xno; then
9197 # The user explicitly disabled X.
9200 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9201 # Both variables are already set.
9204 if test "${ac_cv_have_x+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 # One or both of the vars are not set, and there is no cached value.
9208 ac_x_includes=no ac_x_libraries=no
9210 if mkdir conftest.dir; then
9212 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9213 cat >Imakefile <<'_ACEOF'
9215 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9217 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9218 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9219 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9220 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9221 for ac_extension in a so sl; do
9222 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9223 test -f $ac_im_libdir/libX11.$ac_extension; then
9224 ac_im_usrlibdir=$ac_im_libdir; break
9227 # Screen out bogus values from the imake configuration. They are
9228 # bogus both because they are the default anyway, and because
9229 # using them would break gcc on systems where it needs fixed includes.
9230 case $ac_im_incroot in
9232 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9234 case $ac_im_usrlibdir in
9236 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9243 # Standard set of common directories for X headers.
9244 # Check X11 before X11Rn because it is often a symlink to the current release.
9256 /usr/local/X11/include
9257 /usr/local/X11R6/include
9258 /usr/local/X11R5/include
9259 /usr/local/X11R4/include
9261 /usr/local/include/X11
9262 /usr/local/include/X11R6
9263 /usr/local/include/X11R5
9264 /usr/local/include/X11R4
9268 /usr/XFree86/include/X11
9272 /usr/unsupported/include
9274 /usr/local/x11r5/include
9275 /usr/lpp/Xamples/include
9277 /usr/openwin/include
9278 /usr/openwin/share/include'
9280 if test "$ac_x_includes" = no; then
9281 # Guess where to find include files, by looking for a specified header file.
9282 # First, try using that file with no special directory specified.
9283 cat >conftest.$ac_ext <<_ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9289 #include <X11/Xlib.h>
9291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9294 grep -v '^ *+' conftest.er1 >conftest.err
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } >/dev/null; then
9299 if test -s conftest.err; then
9300 ac_cpp_err=$ac_c_preproc_warn_flag
9301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9308 if test -z "$ac_cpp_err"; then
9309 # We can compile using X headers with no special include directory.
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9315 for ac_dir in $ac_x_header_dirs; do
9316 if test -r "$ac_dir/X11/Xlib.h"; then
9317 ac_x_includes=$ac_dir
9322 rm -f conftest.err conftest.$ac_ext
9323 fi # $ac_x_includes = no
9325 if test "$ac_x_libraries" = no; then
9326 # Check for the libraries.
9327 # See if we find them without any special options.
9328 # Don't add to $LIBS permanently.
9331 cat >conftest.$ac_ext <<_ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 #include <X11/Xlib.h>
9346 rm -f conftest.$ac_objext conftest$ac_exeext
9347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9348 (eval $ac_link) 2>conftest.er1
9350 grep -v '^ *+' conftest.er1 >conftest.err
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9368 # We can link X programs with no special library path.
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9375 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9377 # Don't even attempt the hair of trying to link an X program!
9378 for ac_extension in a so sl; do
9379 if test -r $ac_dir/libX11.$ac_extension; then
9380 ac_x_libraries=$ac_dir
9386 rm -f conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 fi # $ac_x_libraries = no
9390 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9391 # Didn't find X anywhere. Cache the known absence of X.
9392 ac_cv_have_x="have_x=no"
9394 # Record where we found X for the cache.
9395 ac_cv_have_x="have_x=yes \
9396 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9401 eval "$ac_cv_have_x"
9404 if test "$have_x" != yes; then
9405 echo "$as_me:$LINENO: result: $have_x" >&5
9406 echo "${ECHO_T}$have_x" >&6
9409 # If each of the values was on the command line, it overrides each guess.
9410 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9411 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9412 # Update the cache value to reflect the command line values.
9413 ac_cv_have_x="have_x=yes \
9414 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9415 # It might be that x_includes is empty (headers are found in the
9416 # standard search path. Then output the corresponding message
9417 ac_out_x_includes=$x_includes
9418 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9419 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9420 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9424 if test "$no_x" = yes; then
9425 # Not all programs may use this symbol, but it does not hurt to define it.
9427 cat >>confdefs.h <<\_ACEOF
9428 #define X_DISPLAY_MISSING 1
9431 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9433 if test -n "$x_includes"; then
9434 X_CFLAGS="$X_CFLAGS -I$x_includes"
9437 # It would also be nice to do this for all -L options, not just this one.
9438 if test -n "$x_libraries"; then
9439 X_LIBS="$X_LIBS -L$x_libraries"
9440 # For Solaris; some versions of Sun CC require a space after -R and
9441 # others require no space. Words are not sufficient . . . .
9442 case `(uname -sr) 2>/dev/null` in
9444 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9445 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9446 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9447 cat >conftest.$ac_ext <<_ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9466 grep -v '^ *+' conftest.er1 >conftest.err
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest$ac_exeext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9490 rm -f conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 if test $ac_R_nospace = yes; then
9493 echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6
9495 X_LIBS="$X_LIBS -R$x_libraries"
9497 LIBS="$ac_xsave_LIBS -R $x_libraries"
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515 (eval $ac_link) 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9541 rm -f conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 if test $ac_R_space = yes; then
9544 echo "$as_me:$LINENO: result: yes" >&5
9545 echo "${ECHO_T}yes" >&6
9546 X_LIBS="$X_LIBS -R $x_libraries"
9548 echo "$as_me:$LINENO: result: neither works" >&5
9549 echo "${ECHO_T}neither works" >&6
9556 # Check for system-dependent libraries X programs must link with.
9557 # Do this before checking for the system-independent R6 libraries
9558 # (-lICE), since we may need -lsocket or whatever for X linking.
9560 if test "$ISC" = yes; then
9561 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9563 # Martyn Johnson says this is needed for Ultrix, if the X
9564 # libraries were built with DECnet support. And Karl Berry says
9565 # the Alpha needs dnet_stub (dnet does not exist).
9566 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9567 cat >conftest.$ac_ext <<_ACEOF
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 XOpenDisplay ();
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9616 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9617 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 ac_check_lib_save_LIBS=$LIBS
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9629 /* Override any gcc2 internal prototype to avoid an error. */
9633 /* We use char because int might match the return type of a gcc2
9634 builtin and then its argument prototype would still apply. */
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646 (eval $ac_link) 2>conftest.er1
9648 grep -v '^ *+' conftest.er1 >conftest.err
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } &&
9653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; } &&
9659 { ac_try='test -s conftest$ac_exeext'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_lib_dnet_dnet_ntoa=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_cv_lib_dnet_dnet_ntoa=no
9672 rm -f conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9676 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9677 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9678 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9679 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9682 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9683 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9684 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9685 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 ac_check_lib_save_LIBS=$LIBS
9689 LIBS="-ldnet_stub $LIBS"
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9697 /* Override any gcc2 internal prototype to avoid an error. */
9701 /* We use char because int might match the return type of a gcc2
9702 builtin and then its argument prototype would still apply. */
9712 rm -f conftest.$ac_objext conftest$ac_exeext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714 (eval $ac_link) 2>conftest.er1
9716 grep -v '^ *+' conftest.er1 >conftest.err
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try='test -s conftest$ac_exeext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_cv_lib_dnet_stub_dnet_ntoa=no
9740 rm -f conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS
9744 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9745 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9746 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9747 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9752 rm -f conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9754 LIBS="$ac_xsave_LIBS"
9756 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9757 # to get the SysV transport functions.
9758 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9760 # The nsl library prevents programs from opening the X display
9761 # on Irix 5.2, according to T.E. Dickey.
9762 # The functions gethostbyname, getservbyname, and inet_addr are
9763 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9764 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9765 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9766 if test "${ac_cv_func_gethostbyname+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 cat >conftest.$ac_ext <<_ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9777 #define gethostbyname innocuous_gethostbyname
9779 /* System header to define __stub macros and hopefully few prototypes,
9780 which can conflict with char gethostbyname (); below.
9781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9782 <limits.h> exists even on freestanding compilers. */
9785 # include <limits.h>
9787 # include <assert.h>
9790 #undef gethostbyname
9792 /* Override any gcc2 internal prototype to avoid an error. */
9797 /* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799 char gethostbyname ();
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9806 char (*f) () = gethostbyname;
9815 return f != gethostbyname;
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_func_gethostbyname=yes
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_cv_func_gethostbyname=no
9848 rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9851 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9852 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9854 if test $ac_cv_func_gethostbyname = no; then
9855 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9856 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9857 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 ac_check_lib_save_LIBS=$LIBS
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9869 /* Override any gcc2 internal prototype to avoid an error. */
9873 /* We use char because int might match the return type of a gcc2
9874 builtin and then its argument prototype would still apply. */
9875 char gethostbyname ();
9884 rm -f conftest.$ac_objext conftest$ac_exeext
9885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9886 (eval $ac_link) 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest$ac_exeext'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 ac_cv_lib_nsl_gethostbyname=yes
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 ac_cv_lib_nsl_gethostbyname=no
9912 rm -f conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9916 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9917 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9918 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9922 if test $ac_cv_lib_nsl_gethostbyname = no; then
9923 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9924 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9925 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 ac_check_lib_save_LIBS=$LIBS
9930 cat >conftest.$ac_ext <<_ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9937 /* Override any gcc2 internal prototype to avoid an error. */
9941 /* We use char because int might match the return type of a gcc2
9942 builtin and then its argument prototype would still apply. */
9943 char gethostbyname ();
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest$ac_exeext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_lib_bsd_gethostbyname=yes
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 ac_cv_lib_bsd_gethostbyname=no
9980 rm -f conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 LIBS=$ac_check_lib_save_LIBS
9984 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9985 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9986 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9987 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9993 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9994 # socket/setsockopt and other routines are undefined under SCO ODT
9995 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9996 # on later versions), says Simon Leinen: it contains gethostby*
9997 # variants that don't use the name server (or something). -lsocket
9998 # must be given before -lnsl if both are needed. We assume that
9999 # if connect needs -lnsl, so does gethostbyname.
10000 echo "$as_me:$LINENO: checking for connect" >&5
10001 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10002 if test "${ac_cv_func_connect+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013 #define connect innocuous_connect
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char connect (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10021 # include <limits.h>
10023 # include <assert.h>
10028 /* Override any gcc2 internal prototype to avoid an error. */
10033 /* We use char because int might match the return type of a gcc2
10034 builtin and then its argument prototype would still apply. */
10036 /* The GNU C library defines this for functions which it implements
10037 to always fail with ENOSYS. Some functions are actually named
10038 something starting with __ and the normal name is an alias. */
10039 #if defined (__stub_connect) || defined (__stub___connect)
10042 char (*f) () = connect;
10051 return f != connect;
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058 (eval $ac_link) 2>conftest.er1
10060 grep -v '^ *+' conftest.er1 >conftest.err
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_func_connect=yes
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_cv_func_connect=no
10084 rm -f conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10087 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10088 echo "${ECHO_T}$ac_cv_func_connect" >&6
10090 if test $ac_cv_func_connect = no; then
10091 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10092 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10093 if test "${ac_cv_lib_socket_connect+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 ac_check_lib_save_LIBS=$LIBS
10097 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10105 /* Override any gcc2 internal prototype to avoid an error. */
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_cv_lib_socket_connect=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_lib_socket_connect=no
10148 rm -f conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10152 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10153 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10154 if test $ac_cv_lib_socket_connect = yes; then
10155 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10160 # Guillermo Gomez says -lposix is necessary on A/UX.
10161 echo "$as_me:$LINENO: checking for remove" >&5
10162 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10163 if test "${ac_cv_func_remove+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10174 #define remove innocuous_remove
10176 /* System header to define __stub macros and hopefully few prototypes,
10177 which can conflict with char remove (); below.
10178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10179 <limits.h> exists even on freestanding compilers. */
10182 # include <limits.h>
10184 # include <assert.h>
10189 /* Override any gcc2 internal prototype to avoid an error. */
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10197 /* The GNU C library defines this for functions which it implements
10198 to always fail with ENOSYS. Some functions are actually named
10199 something starting with __ and the normal name is an alias. */
10200 #if defined (__stub_remove) || defined (__stub___remove)
10203 char (*f) () = remove;
10212 return f != remove;
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219 (eval $ac_link) 2>conftest.er1
10221 grep -v '^ *+' conftest.er1 >conftest.err
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try='test -s conftest$ac_exeext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_func_remove=yes
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_cv_func_remove=no
10245 rm -f conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10248 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10249 echo "${ECHO_T}$ac_cv_func_remove" >&6
10251 if test $ac_cv_func_remove = no; then
10252 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10253 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10254 if test "${ac_cv_lib_posix_remove+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-lposix $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any gcc2 internal prototype to avoid an error. */
10270 /* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest$ac_exeext'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_cv_lib_posix_remove=yes
10304 echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10307 ac_cv_lib_posix_remove=no
10309 rm -f conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311 LIBS=$ac_check_lib_save_LIBS
10313 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10314 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10315 if test $ac_cv_lib_posix_remove = yes; then
10316 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10321 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10322 echo "$as_me:$LINENO: checking for shmat" >&5
10323 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10324 if test "${ac_cv_func_shmat+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10335 #define shmat innocuous_shmat
10337 /* System header to define __stub macros and hopefully few prototypes,
10338 which can conflict with char shmat (); below.
10339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10340 <limits.h> exists even on freestanding compilers. */
10343 # include <limits.h>
10345 # include <assert.h>
10350 /* Override any gcc2 internal prototype to avoid an error. */
10355 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */
10358 /* The GNU C library defines this for functions which it implements
10359 to always fail with ENOSYS. Some functions are actually named
10360 something starting with __ and the normal name is an alias. */
10361 #if defined (__stub_shmat) || defined (__stub___shmat)
10364 char (*f) () = shmat;
10378 rm -f conftest.$ac_objext conftest$ac_exeext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest$ac_exeext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 ac_cv_func_shmat=yes
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ac_cv_func_shmat=no
10406 rm -f conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10409 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10410 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10412 if test $ac_cv_func_shmat = no; then
10413 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10414 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10415 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 ac_check_lib_save_LIBS=$LIBS
10420 cat >conftest.$ac_ext <<_ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10427 /* Override any gcc2 internal prototype to avoid an error. */
10431 /* We use char because int might match the return type of a gcc2
10432 builtin and then its argument prototype would still apply. */
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444 (eval $ac_link) 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; } &&
10457 { ac_try='test -s conftest$ac_exeext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_lib_ipc_shmat=yes
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ac_cv_lib_ipc_shmat=no
10470 rm -f conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10472 LIBS=$ac_check_lib_save_LIBS
10474 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10475 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10476 if test $ac_cv_lib_ipc_shmat = yes; then
10477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10483 # Check for libraries that X11R6 Xt/Xaw programs need.
10484 ac_save_LDFLAGS=$LDFLAGS
10485 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10486 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10487 # check for ICE first), but we must link in the order -lSM -lICE or
10488 # we get undefined symbols. So assume we have SM if we have ICE.
10489 # These have to be linked with before -lX11, unlike the other
10490 # libraries we check for below, so use a different variable.
10491 # John Interrante, Karl Berry
10492 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10493 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10494 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10506 /* Override any gcc2 internal prototype to avoid an error. */
10510 /* We use char because int might match the return type of a gcc2
10511 builtin and then its argument prototype would still apply. */
10512 char IceConnectionNumber ();
10516 IceConnectionNumber ();
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10523 (eval $ac_link) 2>conftest.er1
10525 grep -v '^ *+' conftest.er1 >conftest.err
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; } &&
10536 { ac_try='test -s conftest$ac_exeext'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 ac_cv_lib_ICE_IceConnectionNumber=yes
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_lib_ICE_IceConnectionNumber=no
10549 rm -f conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551 LIBS=$ac_check_lib_save_LIBS
10553 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10554 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10555 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10556 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10559 LDFLAGS=$ac_save_LDFLAGS
10572 if test "x$with_x" = "xno"; then
10581 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
10584 LDFLAGS="$LDFLAGS -L/usr/local/lib"
10586 echo "$as_me:$LINENO: checking for X" >&5
10587 echo $ECHO_N "checking for X... $ECHO_C" >&6
10588 if test "$with_x" != "no" && test "$wxwin" = "true"; then
10590 cat >>confdefs.h <<\_ACEOF
10594 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
10595 my_includes="$my_includes -I/usr/X11R6/include"
10596 ctlib_graphics="$ctlibs_base -lctgraphics"
10597 echo "$as_me:$LINENO: result: yes" >&5
10598 echo "${ECHO_T}yes" >&6
10599 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
10600 if test "$libgl" = "true" ; then
10601 # Removed "-lglut" for Mac OS X compilation
10602 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
10603 if test "$wxwin" = "true" ; then
10604 if "$wx_gtk" ; then
10605 ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
10606 elif "$wx_mac" ; then
10607 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
10611 if test "$wxwin" = "true" ; then
10613 cat >>confdefs.h <<\_ACEOF
10619 echo "$as_me:$LINENO: result: no" >&5
10620 echo "${ECHO_T}no" >&6
10625 if test "$wxwin" = "true"; then
10634 if test "$png" = "true" ; then
10635 ctlibs_tools="$ctlibs_tools -lpng"
10637 if test "$zlib" = "true" ; then
10638 ctlibs_tools="$ctlibs_tools -lz"
10640 if test "$fftw" = "true" ; then
10641 ctlibs_tools="$ctlibs_tools -lfftw3"
10643 if test "$ctn" = "true"; then
10644 ctlibs_tools="$ctlibs_tools -lctn"
10647 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
10648 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
10649 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 ac_check_lib_save_LIBS=$LIBS
10653 LIBS="-ldmallocxx $LIBS"
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_cv_lib_dmallocxx_main=yes
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 ac_cv_lib_dmallocxx_main=no
10698 rm -f conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 LIBS=$ac_check_lib_save_LIBS
10702 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
10703 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
10704 if test $ac_cv_lib_dmallocxx_main = yes; then
10710 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
10711 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
10712 # Check whether --enable-dmalloc or --disable-dmalloc was given.
10713 if test "${enable_dmalloc+set}" = set; then
10714 enableval="$enable_dmalloc"
10715 case "${enableval}" in
10716 yes) usedmalloc=true
10717 echo "$as_me:$LINENO: result: yes" >&5
10718 echo "${ECHO_T}yes" >&6
10720 no) usedmalloc=false
10721 echo "$as_me:$LINENO: result: no" >&5
10722 echo "${ECHO_T}no" >&6
10724 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
10725 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
10729 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
10730 echo "${ECHO_T}no" >&6
10733 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
10734 ctlibs_tools="$ctlibs_tools -ldmallocxx"
10736 cat >>confdefs.h <<\_ACEOF
10737 #define HAVE_DMALLOC 1
10740 echo "$as_me:$LINENO: result: Using dmalloc" >&5
10741 echo "${ECHO_T}Using dmalloc" >&6
10744 echo "$as_me:$LINENO: checking for main in -lefence" >&5
10745 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
10746 if test "${ac_cv_lib_efence_main+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 ac_check_lib_save_LIBS=$LIBS
10750 LIBS="-lefence $LIBS"
10751 cat >conftest.$ac_ext <<_ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; } &&
10782 { ac_try='test -s conftest$ac_exeext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_lib_efence_main=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_cv_lib_efence_main=no
10795 rm -f conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10799 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
10800 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
10801 if test $ac_cv_lib_efence_main = yes; then
10807 echo "$as_me:$LINENO: checking for enable-efence" >&5
10808 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
10809 # Check whether --enable-efence or --disable-efence was given.
10810 if test "${enable_efence+set}" = set; then
10811 enableval="$enable_efence"
10812 case "${enableval}" in
10813 yes) useefence=true
10814 echo "$as_me:$LINENO: result: yes" >&5
10815 echo "${ECHO_T}yes" >&6
10817 no) useefence=false
10818 echo "$as_me:$LINENO: result: no" >&5
10819 echo "${ECHO_T}no" >&6
10821 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
10822 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
10826 useefence=false; echo "$as_me:$LINENO: result: no" >&5
10827 echo "${ECHO_T}no" >&6
10830 if test "$efence" = "true" -a "$useefence" = "true" ; then
10831 ctlibs_tools="$ctlibs_tools -lefence"
10833 cat >>confdefs.h <<\_ACEOF
10834 #define HAVE_EFENCE 1
10837 echo "$as_me:$LINENO: result: Using efence" >&5
10838 echo "${ECHO_T}Using efence" >&6
10841 if test "$wxwin" = "true" ; then
10842 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
10843 wxcflags=`$wxconfig --cflags`
10844 wxlibs=`$wxconfig --libs`
10846 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
10847 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
10849 CFLAGS="$CFLAGS -I../include $wxcflags"
10850 ctlib_graphics="$ctlib_graphics $wxlibs"
10856 if test "$wxwin"="true"; then
10857 HAVE_WXWINDOWS_TRUE=
10858 HAVE_WXWINDOWS_FALSE='#'
10860 HAVE_WXWINDOWS_TRUE='#'
10861 HAVE_WXWINDOWS_FALSE=
10865 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
10866 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
10869 if test -n "$lamdir" ; then
10870 lamprograms="ctsimtext-lam"
10878 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"
10881 cat >confcache <<\_ACEOF
10882 # This file is a shell script that caches the results of configure
10883 # tests run on this system so they can be shared between configure
10884 # scripts and configure runs, see configure's option --config-cache.
10885 # It is not useful on other systems. If it contains results you don't
10886 # want to keep, you may remove or edit it.
10888 # config.status only pays attention to the cache file if you give it
10889 # the --recheck option to rerun configure.
10891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10893 # following values.
10897 # The following way of writing the cache mishandles newlines in values,
10898 # but we know of no workaround that is simple, portable, and efficient.
10899 # So, don't put newlines in cache variables' values.
10900 # Ultrix sh set writes to stderr and can't be redirected directly,
10901 # and sets the high bit in the cache file unless we assign to the vars.
10904 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10906 # `set' does not quote correctly, so add quotes (double-quote
10907 # substitution turns \\\\ into \\, and sed turns \\ into \).
10910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10913 # `set' quotes correctly as required by POSIX, so do not add quotes.
10915 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10924 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10926 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10927 if test -w $cache_file; then
10928 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10929 cat confcache >$cache_file
10931 echo "not updating unwritable cache $cache_file"
10936 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10937 # Let make expand exec_prefix.
10938 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10940 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10941 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10942 # trailing colons and then remove the whole line if VPATH becomes empty
10943 # (actually we leave an empty line to preserve line numbers).
10944 if test "x$srcdir" = x.; then
10945 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10946 s/:*\$(srcdir):*/:/;
10947 s/:*\${srcdir}:*/:/;
10949 s/^\([^=]*=[ ]*\):*/\1/;
10955 DEFS=-DHAVE_CONFIG_H
10959 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10960 # 1. Remove the extension, and $U if already installed.
10961 ac_i=`echo "$ac_i" |
10962 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10964 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10965 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10967 LIBOBJS=$ac_libobjs
10969 LTLIBOBJS=$ac_ltlibobjs
10972 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10973 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10974 Usually this means the macro was only invoked conditionally." >&5
10975 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10976 Usually this means the macro was only invoked conditionally." >&2;}
10977 { (exit 1); exit 1; }; }
10979 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10980 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10981 Usually this means the macro was only invoked conditionally." >&5
10982 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10983 Usually this means the macro was only invoked conditionally." >&2;}
10984 { (exit 1); exit 1; }; }
10986 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10987 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10988 Usually this means the macro was only invoked conditionally." >&5
10989 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10990 Usually this means the macro was only invoked conditionally." >&2;}
10991 { (exit 1); exit 1; }; }
10993 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10994 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10995 Usually this means the macro was only invoked conditionally." >&5
10996 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10997 Usually this means the macro was only invoked conditionally." >&2;}
10998 { (exit 1); exit 1; }; }
11000 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
11001 { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
11002 Usually this means the macro was only invoked conditionally." >&5
11003 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
11004 Usually this means the macro was only invoked conditionally." >&2;}
11005 { (exit 1); exit 1; }; }
11007 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
11008 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
11009 Usually this means the macro was only invoked conditionally." >&5
11010 echo "$as_me: error: conditional \"DEBUG\" was never defined.
11011 Usually this means the macro was only invoked conditionally." >&2;}
11012 { (exit 1); exit 1; }; }
11014 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
11015 { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
11016 Usually this means the macro was only invoked conditionally." >&5
11017 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
11018 Usually this means the macro was only invoked conditionally." >&2;}
11019 { (exit 1); exit 1; }; }
11021 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
11022 { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
11023 Usually this means the macro was only invoked conditionally." >&5
11024 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
11025 Usually this means the macro was only invoked conditionally." >&2;}
11026 { (exit 1); exit 1; }; }
11028 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
11029 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
11030 Usually this means the macro was only invoked conditionally." >&5
11031 echo "$as_me: error: conditional \"NO_X\" was never defined.
11032 Usually this means the macro was only invoked conditionally." >&2;}
11033 { (exit 1); exit 1; }; }
11035 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
11036 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
11037 Usually this means the macro was only invoked conditionally." >&5
11038 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
11039 Usually this means the macro was only invoked conditionally." >&2;}
11040 { (exit 1); exit 1; }; }
11042 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
11043 { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11044 Usually this means the macro was only invoked conditionally." >&5
11045 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11046 Usually this means the macro was only invoked conditionally." >&2;}
11047 { (exit 1); exit 1; }; }
11050 : ${CONFIG_STATUS=./config.status}
11051 ac_clean_files_save=$ac_clean_files
11052 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11053 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11054 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11055 cat >$CONFIG_STATUS <<_ACEOF
11057 # Generated by $as_me.
11058 # Run this file to recreate the current configuration.
11059 # Compiler output produced by configure, useful for debugging
11060 # configure, is in config.log if it exists.
11063 ac_cs_recheck=false
11065 SHELL=\${CONFIG_SHELL-$SHELL}
11068 cat >>$CONFIG_STATUS <<\_ACEOF
11069 ## --------------------- ##
11070 ## M4sh Initialization. ##
11071 ## --------------------- ##
11073 # Be Bourne compatible
11074 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11077 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11078 # is contrary to our usage. Disable this feature.
11079 alias -g '${1+"$@"}'='"$@"'
11080 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11083 DUALCASE=1; export DUALCASE # for MKS sh
11085 # Support unset when possible.
11086 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11093 # Work around bugs in pre-3.0 UWIN ksh.
11094 $as_unset ENV MAIL MAILPATH
11101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11103 LC_TELEPHONE LC_TIME
11105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11106 eval $as_var=C; export $as_var
11112 # Required to use basename.
11113 if expr a : '\(a\)' >/dev/null 2>&1; then
11119 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11120 as_basename=basename
11126 # Name of the executable.
11127 as_me=`$as_basename "$0" ||
11128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11129 X"$0" : 'X\(//\)$' \| \
11130 X"$0" : 'X\(/\)$' \| \
11131 . : '\(.\)' 2>/dev/null ||
11133 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11134 /^X\/\(\/\/\)$/{ s//\1/; q; }
11135 /^X\/\(\/\).*/{ s//\1/; q; }
11139 # PATH needs CR, and LINENO needs CR and PATH.
11140 # Avoid depending upon Character Ranges.
11141 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11142 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11143 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11144 as_cr_digits='0123456789'
11145 as_cr_alnum=$as_cr_Letters$as_cr_digits
11147 # The user is always right.
11148 if test "${PATH_SEPARATOR+set}" != set; then
11149 echo "#! /bin/sh" >conf$$.sh
11150 echo "exit 0" >>conf$$.sh
11152 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11161 as_lineno_1=$LINENO
11162 as_lineno_2=$LINENO
11163 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11164 test "x$as_lineno_1" != "x$as_lineno_2" &&
11165 test "x$as_lineno_3" = "x$as_lineno_2" || {
11166 # Find who we are. Look in the path if we contain no path at all
11169 *[\\/]* ) as_myself=$0 ;;
11170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11174 test -z "$as_dir" && as_dir=.
11175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11180 # We did not find ourselves, most probably we were run as `sh COMMAND'
11181 # in which case we are not to be found in the path.
11182 if test "x$as_myself" = x; then
11185 if test ! -f "$as_myself"; then
11186 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11187 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11188 { (exit 1); exit 1; }; }
11190 case $CONFIG_SHELL in
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11196 test -z "$as_dir" && as_dir=.
11197 for as_base in sh bash ksh sh5; do
11200 if ("$as_dir/$as_base" -c '
11201 as_lineno_1=$LINENO
11202 as_lineno_2=$LINENO
11203 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11204 test "x$as_lineno_1" != "x$as_lineno_2" &&
11205 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11206 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11207 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11208 CONFIG_SHELL=$as_dir/$as_base
11209 export CONFIG_SHELL
11210 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11218 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11219 # uniformly replaced by the line number. The first 'sed' inserts a
11220 # line-number line before each line; the second 'sed' does the real
11221 # work. The second script uses 'N' to pair each line-number line
11222 # with the numbered line, and appends trailing '-' during
11223 # substitution so that $LINENO is not a special case at line end.
11224 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11225 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11226 sed '=' <$as_myself |
11231 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11234 s,^['$as_cr_digits']*\n,,
11235 ' >$as_me.lineno &&
11236 chmod +x $as_me.lineno ||
11237 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11238 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11239 { (exit 1); exit 1; }; }
11241 # Don't try to exec as it changes $[0], causing all sort of problems
11242 # (the dirname of $[0] is not the place where we might find the
11243 # original and so on. Autoconf is especially sensible to this).
11245 # Exit status is that of the last command.
11250 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11251 *c*,-n*) ECHO_N= ECHO_C='
11253 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11254 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11257 if expr a : '\(a\)' >/dev/null 2>&1; then
11263 rm -f conf$$ conf$$.exe conf$$.file
11265 if ln -s conf$$.file conf$$ 2>/dev/null; then
11266 # We could just check for DJGPP; but this test a) works b) is more generic
11267 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11268 if test -f conf$$.exe; then
11269 # Don't use ln at all; we don't have any links
11274 elif ln conf$$.file conf$$ 2>/dev/null; then
11279 rm -f conf$$ conf$$.exe conf$$.file
11281 if mkdir -p . 2>/dev/null; then
11284 test -d ./-p && rmdir ./-p
11288 as_executable_p="test -f"
11290 # Sed expression to map a string onto a valid CPP name.
11291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11293 # Sed expression to map a string onto a valid variable name.
11294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11298 # We need space, tab and new line, in precisely that order.
11308 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11309 # report actual input values of CONFIG_FILES etc. instead of their
11310 # values after options handling. Logging --version etc. is OK.
11314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11315 ## Running $as_me. ##
11320 This file was extended by $as_me, which was
11321 generated by GNU Autoconf 2.59. Invocation command line was
11323 CONFIG_FILES = $CONFIG_FILES
11324 CONFIG_HEADERS = $CONFIG_HEADERS
11325 CONFIG_LINKS = $CONFIG_LINKS
11326 CONFIG_COMMANDS = $CONFIG_COMMANDS
11330 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11334 # Files that config.status was made for.
11335 if test -n "$ac_config_files"; then
11336 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11339 if test -n "$ac_config_headers"; then
11340 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11343 if test -n "$ac_config_links"; then
11344 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11347 if test -n "$ac_config_commands"; then
11348 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11351 cat >>$CONFIG_STATUS <<\_ACEOF
11354 \`$as_me' instantiates files from templates according to the
11355 current configuration.
11357 Usage: $0 [OPTIONS] [FILE]...
11359 -h, --help print this help, then exit
11360 -V, --version print version number, then exit
11361 -q, --quiet do not print progress messages
11362 -d, --debug don't remove temporary files
11363 --recheck update $as_me by reconfiguring in the same conditions
11364 --file=FILE[:TEMPLATE]
11365 instantiate the configuration file FILE
11366 --header=FILE[:TEMPLATE]
11367 instantiate the configuration header FILE
11369 Configuration files:
11372 Configuration headers:
11375 Configuration commands:
11378 Report bugs to <bug-autoconf@gnu.org>."
11381 cat >>$CONFIG_STATUS <<_ACEOF
11384 configured by $0, generated by GNU Autoconf 2.59,
11385 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11387 Copyright (C) 2003 Free Software Foundation, Inc.
11388 This config.status script is free software; the Free Software Foundation
11389 gives unlimited permission to copy, distribute and modify it."
11394 cat >>$CONFIG_STATUS <<\_ACEOF
11395 # If no file are specified by the user, then we need to provide default
11396 # value. By we need to know if files were specified by the user.
11402 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11403 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11411 *) # This is not an option, so the user has probably given explicit
11414 ac_need_defaults=false;;
11418 # Handling of the options.
11420 cat >>$CONFIG_STATUS <<\_ACEOF
11421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11423 --version | --vers* | -V )
11424 echo "$ac_cs_version"; exit 0 ;;
11426 # Conflict between --help and --header
11427 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11428 Try \`$0 --help' for more information." >&5
11429 echo "$as_me: error: ambiguous option: $1
11430 Try \`$0 --help' for more information." >&2;}
11431 { (exit 1); exit 1; }; };;
11432 --help | --hel | -h )
11433 echo "$ac_cs_usage"; exit 0 ;;
11434 --debug | --d* | -d )
11436 --file | --fil | --fi | --f )
11438 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11439 ac_need_defaults=false;;
11440 --header | --heade | --head | --hea )
11442 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11443 ac_need_defaults=false;;
11444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11445 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11448 # This is an error.
11449 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11450 Try \`$0 --help' for more information." >&5
11451 echo "$as_me: error: unrecognized option: $1
11452 Try \`$0 --help' for more information." >&2;}
11453 { (exit 1); exit 1; }; } ;;
11455 *) ac_config_targets="$ac_config_targets $1" ;;
11461 ac_configure_extra_args=
11463 if $ac_cs_silent; then
11465 ac_configure_extra_args="$ac_configure_extra_args --silent"
11469 cat >>$CONFIG_STATUS <<_ACEOF
11470 if \$ac_cs_recheck; then
11471 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11472 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11477 cat >>$CONFIG_STATUS <<_ACEOF
11479 # INIT-COMMANDS section.
11482 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11488 cat >>$CONFIG_STATUS <<\_ACEOF
11489 for ac_config_target in $ac_config_targets
11491 case "$ac_config_target" in
11492 # Handling of arguments.
11493 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11494 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
11495 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
11496 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
11497 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11498 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
11499 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
11500 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
11501 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
11502 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11503 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
11504 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
11505 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
11506 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11507 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11508 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
11509 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
11510 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11511 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11512 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11513 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11514 { (exit 1); exit 1; }; };;
11518 # If the user did not use the arguments to specify the items to instantiate,
11519 # then the envvar interface is used. Set only those that are not.
11520 # We use the long form for the default assignment because of an extremely
11521 # bizarre bug on SunOS 4.1.3.
11522 if $ac_need_defaults; then
11523 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11524 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11525 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11528 # Have a temporary directory for convenience. Make it in the build tree
11529 # simply because there is no reason to put it here, and in addition,
11530 # creating and moving files from /tmp can sometimes cause problems.
11531 # Create a temporary directory, and hook for its removal unless debugging.
11534 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11535 trap '{ (exit 1); exit 1; }' 1 2 13 15
11538 # Create a (secure) tmp directory for tmp files.
11541 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11542 test -n "$tmp" && test -d "$tmp"
11545 tmp=./confstat$$-$RANDOM
11546 (umask 077 && mkdir $tmp)
11549 echo "$me: cannot create a temporary directory in ." >&2
11550 { (exit 1); exit 1; }
11555 cat >>$CONFIG_STATUS <<_ACEOF
11558 # CONFIG_FILES section.
11561 # No need to generate the scripts if there are no CONFIG_FILES.
11562 # This happens for instance when ./config.status config.h
11563 if test -n "\$CONFIG_FILES"; then
11564 # Protect against being on the right side of a sed subst in config.status.
11565 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11566 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11567 s,@SHELL@,$SHELL,;t t
11568 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11569 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11570 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11571 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11572 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11573 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11574 s,@exec_prefix@,$exec_prefix,;t t
11575 s,@prefix@,$prefix,;t t
11576 s,@program_transform_name@,$program_transform_name,;t t
11577 s,@bindir@,$bindir,;t t
11578 s,@sbindir@,$sbindir,;t t
11579 s,@libexecdir@,$libexecdir,;t t
11580 s,@datadir@,$datadir,;t t
11581 s,@sysconfdir@,$sysconfdir,;t t
11582 s,@sharedstatedir@,$sharedstatedir,;t t
11583 s,@localstatedir@,$localstatedir,;t t
11584 s,@libdir@,$libdir,;t t
11585 s,@includedir@,$includedir,;t t
11586 s,@oldincludedir@,$oldincludedir,;t t
11587 s,@infodir@,$infodir,;t t
11588 s,@mandir@,$mandir,;t t
11589 s,@build_alias@,$build_alias,;t t
11590 s,@host_alias@,$host_alias,;t t
11591 s,@target_alias@,$target_alias,;t t
11592 s,@DEFS@,$DEFS,;t t
11593 s,@ECHO_C@,$ECHO_C,;t t
11594 s,@ECHO_N@,$ECHO_N,;t t
11595 s,@ECHO_T@,$ECHO_T,;t t
11596 s,@LIBS@,$LIBS,;t t
11597 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11598 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11599 s,@MAINT@,$MAINT,;t t
11600 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11601 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11602 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11603 s,@CYGPATH_W@,$CYGPATH_W,;t t
11604 s,@PACKAGE@,$PACKAGE,;t t
11605 s,@VERSION@,$VERSION,;t t
11606 s,@ACLOCAL@,$ACLOCAL,;t t
11607 s,@AUTOCONF@,$AUTOCONF,;t t
11608 s,@AUTOMAKE@,$AUTOMAKE,;t t
11609 s,@AUTOHEADER@,$AUTOHEADER,;t t
11610 s,@MAKEINFO@,$MAKEINFO,;t t
11611 s,@AMTAR@,$AMTAR,;t t
11612 s,@install_sh@,$install_sh,;t t
11613 s,@STRIP@,$STRIP,;t t
11614 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11615 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11617 s,@SET_MAKE@,$SET_MAKE,;t t
11618 s,@am__leading_dot@,$am__leading_dot,;t t
11619 s,@RANLIB@,$RANLIB,;t t
11620 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11622 s,@CFLAGS@,$CFLAGS,;t t
11623 s,@LDFLAGS@,$LDFLAGS,;t t
11624 s,@CPPFLAGS@,$CPPFLAGS,;t t
11625 s,@ac_ct_CC@,$ac_ct_CC,;t t
11626 s,@EXEEXT@,$EXEEXT,;t t
11627 s,@OBJEXT@,$OBJEXT,;t t
11628 s,@DEPDIR@,$DEPDIR,;t t
11629 s,@am__include@,$am__include,;t t
11630 s,@am__quote@,$am__quote,;t t
11631 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11632 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11633 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11634 s,@CCDEPMODE@,$CCDEPMODE,;t t
11635 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11636 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11638 s,@CXXFLAGS@,$CXXFLAGS,;t t
11639 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11640 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11641 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11642 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
11643 s,@wxconfig@,$wxconfig,;t t
11644 s,@build@,$build,;t t
11645 s,@build_cpu@,$build_cpu,;t t
11646 s,@build_vendor@,$build_vendor,;t t
11647 s,@build_os@,$build_os,;t t
11648 s,@host@,$host,;t t
11649 s,@host_cpu@,$host_cpu,;t t
11650 s,@host_vendor@,$host_vendor,;t t
11651 s,@host_os@,$host_os,;t t
11653 s,@EGREP@,$EGREP,;t t
11654 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
11655 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
11656 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
11657 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
11658 s,@lamdir@,$lamdir,;t t
11659 s,@mpienable@,$mpienable,;t t
11660 s,@cgibindir@,$cgibindir,;t t
11661 s,@cgibinurl@,$cgibinurl,;t t
11662 s,@webdatadir@,$webdatadir,;t t
11663 s,@webdataurl@,$webdataurl,;t t
11664 s,@htmldir@,$htmldir,;t t
11665 s,@cgiprograms@,$cgiprograms,;t t
11666 s,@htmldata@,$htmldata,;t t
11667 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
11668 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
11669 s,@webenabled@,$webenabled,;t t
11670 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
11671 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
11672 s,@X_CFLAGS@,$X_CFLAGS,;t t
11673 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11674 s,@X_LIBS@,$X_LIBS,;t t
11675 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11676 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
11677 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
11678 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
11679 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
11680 s,@my_includes@,$my_includes,;t t
11681 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
11682 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
11683 s,@wxcflags@,$wxcflags,;t t
11684 s,@wxlibs@,$wxlibs,;t t
11685 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
11686 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
11687 s,@ctlibs@,$ctlibs,;t t
11688 s,@lamprograms@,$lamprograms,;t t
11689 s,@lamdefs@,$lamdefs,;t t
11690 s,@LIBOBJS@,$LIBOBJS,;t t
11691 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11696 cat >>$CONFIG_STATUS <<\_ACEOF
11697 # Split the substitutions into bite-sized pieces for seds with
11698 # small command number limits, like on Digital OSF/1 and HP-UX.
11699 ac_max_sed_lines=48
11700 ac_sed_frag=1 # Number of current file.
11701 ac_beg=1 # First line for current file.
11702 ac_end=$ac_max_sed_lines # Line after last line for current file.
11705 while $ac_more_lines; do
11706 if test $ac_beg -gt 1; then
11707 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11709 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11711 if test ! -s $tmp/subs.frag; then
11712 ac_more_lines=false
11714 # The purpose of the label and of the branching condition is to
11715 # speed up the sed processing (if there are no `@' at all, there
11716 # is no need to browse any of the substitutions).
11717 # These are the two extra sed commands mentioned above.
11719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11720 if test -z "$ac_sed_cmds"; then
11721 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11723 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11725 ac_sed_frag=`expr $ac_sed_frag + 1`
11727 ac_end=`expr $ac_end + $ac_max_sed_lines`
11730 if test -z "$ac_sed_cmds"; then
11733 fi # test -n "$CONFIG_FILES"
11736 cat >>$CONFIG_STATUS <<\_ACEOF
11737 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11740 - | *:- | *:-:* ) # input from stdin
11742 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11744 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11746 * ) ac_file_in=$ac_file.in ;;
11749 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11750 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11752 X"$ac_file" : 'X\(//\)[^/]' \| \
11753 X"$ac_file" : 'X\(//\)$' \| \
11754 X"$ac_file" : 'X\(/\)' \| \
11755 . : '\(.\)' 2>/dev/null ||
11757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11759 /^X\(\/\/\)$/{ s//\1/; q; }
11760 /^X\(\/\).*/{ s//\1/; q; }
11762 { if $as_mkdir_p; then
11767 while test ! -d "$as_dir"; do
11768 as_dirs="$as_dir $as_dirs"
11769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11771 X"$as_dir" : 'X\(//\)[^/]' \| \
11772 X"$as_dir" : 'X\(//\)$' \| \
11773 X"$as_dir" : 'X\(/\)' \| \
11774 . : '\(.\)' 2>/dev/null ||
11776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11778 /^X\(\/\/\)$/{ s//\1/; q; }
11779 /^X\(\/\).*/{ s//\1/; q; }
11782 test ! -n "$as_dirs" || mkdir $as_dirs
11783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11784 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11785 { (exit 1); exit 1; }; }; }
11789 if test "$ac_dir" != .; then
11790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11791 # A "../" for each directory in $ac_dir_suffix.
11792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11794 ac_dir_suffix= ac_top_builddir=
11798 .) # No --srcdir option. We are building in place.
11800 if test -z "$ac_top_builddir"; then
11803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11805 [\\/]* | ?:[\\/]* ) # Absolute path.
11806 ac_srcdir=$srcdir$ac_dir_suffix;
11807 ac_top_srcdir=$srcdir ;;
11808 *) # Relative path.
11809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11813 # Do not use `cd foo && pwd` to compute absolute paths, because
11814 # the directories may not exist.
11816 .) ac_abs_builddir="$ac_dir";;
11819 .) ac_abs_builddir=`pwd`;;
11820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11821 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11824 case $ac_abs_builddir in
11825 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11827 case ${ac_top_builddir}. in
11828 .) ac_abs_top_builddir=$ac_abs_builddir;;
11829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11833 case $ac_abs_builddir in
11834 .) ac_abs_srcdir=$ac_srcdir;;
11837 .) ac_abs_srcdir=$ac_abs_builddir;;
11838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11842 case $ac_abs_builddir in
11843 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11845 case $ac_top_srcdir in
11846 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11854 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11855 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11858 # Let's still pretend it is `configure' which instantiates (i.e., don't
11859 # use $as_me), people would be surprised to read:
11860 # /* config.h. Generated by config.status. */
11861 if test x"$ac_file" = x-; then
11864 configure_input="$ac_file. "
11866 configure_input=$configure_input"Generated from `echo $ac_file_in |
11867 sed 's,.*/,,'` by configure."
11869 # First look for the input files in the build tree, otherwise in the
11871 ac_file_inputs=`IFS=:
11872 for f in $ac_file_in; do
11874 -) echo $tmp/stdin ;;
11876 # Absolute (can't be DOS-style, as IFS=:)
11877 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11878 echo "$as_me: error: cannot find input file: $f" >&2;}
11879 { (exit 1); exit 1; }; }
11882 if test -f "$f"; then
11885 elif test -f "$srcdir/$f"; then
11890 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11891 echo "$as_me: error: cannot find input file: $f" >&2;}
11892 { (exit 1); exit 1; }; }
11895 done` || { (exit 1); exit 1; }
11897 if test x"$ac_file" != x-; then
11898 { echo "$as_me:$LINENO: creating $ac_file" >&5
11899 echo "$as_me: creating $ac_file" >&6;}
11903 cat >>$CONFIG_STATUS <<_ACEOF
11907 cat >>$CONFIG_STATUS <<\_ACEOF
11909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11910 s,@configure_input@,$configure_input,;t t
11911 s,@srcdir@,$ac_srcdir,;t t
11912 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11913 s,@top_srcdir@,$ac_top_srcdir,;t t
11914 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11915 s,@builddir@,$ac_builddir,;t t
11916 s,@abs_builddir@,$ac_abs_builddir,;t t
11917 s,@top_builddir@,$ac_top_builddir,;t t
11918 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11919 s,@INSTALL@,$ac_INSTALL,;t t
11920 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11922 if test x"$ac_file" != x-; then
11923 mv $tmp/out $ac_file
11931 cat >>$CONFIG_STATUS <<\_ACEOF
11934 # CONFIG_HEADER section.
11937 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11938 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11940 # ac_d sets the value in "#define NAME VALUE" lines.
11941 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11942 ac_dB='[ ].*$,\1#\2'
11945 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11946 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11947 ac_uB='$,\1#\2define\3'
11951 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11952 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11954 - | *:- | *:-:* ) # input from stdin
11956 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11958 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11960 * ) ac_file_in=$ac_file.in ;;
11963 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11964 echo "$as_me: creating $ac_file" >&6;}
11966 # First look for the input files in the build tree, otherwise in the
11968 ac_file_inputs=`IFS=:
11969 for f in $ac_file_in; do
11971 -) echo $tmp/stdin ;;
11973 # Absolute (can't be DOS-style, as IFS=:)
11974 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11975 echo "$as_me: error: cannot find input file: $f" >&2;}
11976 { (exit 1); exit 1; }; }
11977 # Do quote $f, to prevent DOS paths from being IFS'd.
11980 if test -f "$f"; then
11983 elif test -f "$srcdir/$f"; then
11988 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11989 echo "$as_me: error: cannot find input file: $f" >&2;}
11990 { (exit 1); exit 1; }; }
11993 done` || { (exit 1); exit 1; }
11994 # Remove the trailing spaces.
11995 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11999 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12000 # `conftest.undefs', that substitutes the proper values into
12001 # config.h.in to produce config.h. The first handles `#define'
12002 # templates, and the second `#undef' templates.
12003 # And first: Protect against being on the right side of a sed subst in
12004 # config.status. Protect against being in an unquoted here document
12005 # in config.status.
12006 rm -f conftest.defines conftest.undefs
12007 # Using a here document instead of a string reduces the quoting nightmare.
12008 # Putting comments in sed scripts is not portable.
12010 # `end' is used to avoid that the second main sed command (meant for
12011 # 0-ary CPP macros) applies to n-ary macro definitions.
12012 # See the Autoconf documentation for `clear'.
12013 cat >confdef2sed.sed <<\_ACEOF
12018 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12020 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12023 # If some macros were called several times there might be several times
12024 # the same #defines, which is useless. Nevertheless, we may not want to
12025 # sort them, since we want the *last* AC-DEFINE to be honored.
12026 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12027 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12028 rm -f confdef2sed.sed
12030 # This sed command replaces #undef with comments. This is necessary, for
12031 # example, in the case of _POSIX_SOURCE, which is predefined and required
12032 # on some systems where configure will not decide to define it.
12033 cat >>conftest.undefs <<\_ACEOF
12034 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12037 # Break up conftest.defines because some shells have a limit on the size
12038 # of here documents, and old seds have small limits too (100 cmds).
12039 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12040 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12041 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12042 echo ' :' >>$CONFIG_STATUS
12043 rm -f conftest.tail
12044 while grep . conftest.defines >/dev/null
12046 # Write a limited-size here document to $tmp/defines.sed.
12047 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12048 # Speed up: don't consider the non `#define' lines.
12049 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12050 # Work around the forget-to-reset-the-flag bug.
12051 echo 't clr' >>$CONFIG_STATUS
12052 echo ': clr' >>$CONFIG_STATUS
12053 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12055 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12057 mv $tmp/out $tmp/in
12059 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12060 rm -f conftest.defines
12061 mv conftest.tail conftest.defines
12063 rm -f conftest.defines
12064 echo ' fi # grep' >>$CONFIG_STATUS
12065 echo >>$CONFIG_STATUS
12067 # Break up conftest.undefs because some shells have a limit on the size
12068 # of here documents, and old seds have small limits too (100 cmds).
12069 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12070 rm -f conftest.tail
12071 while grep . conftest.undefs >/dev/null
12073 # Write a limited-size here document to $tmp/undefs.sed.
12074 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12075 # Speed up: don't consider the non `#undef'
12076 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12077 # Work around the forget-to-reset-the-flag bug.
12078 echo 't clr' >>$CONFIG_STATUS
12079 echo ': clr' >>$CONFIG_STATUS
12080 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12082 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12084 mv $tmp/out $tmp/in
12086 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12087 rm -f conftest.undefs
12088 mv conftest.tail conftest.undefs
12090 rm -f conftest.undefs
12092 cat >>$CONFIG_STATUS <<\_ACEOF
12093 # Let's still pretend it is `configure' which instantiates (i.e., don't
12094 # use $as_me), people would be surprised to read:
12095 # /* config.h. Generated by config.status. */
12096 if test x"$ac_file" = x-; then
12097 echo "/* Generated by configure. */" >$tmp/config.h
12099 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12101 cat $tmp/in >>$tmp/config.h
12103 if test x"$ac_file" != x-; then
12104 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12105 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12106 echo "$as_me: $ac_file is unchanged" >&6;}
12108 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12110 X"$ac_file" : 'X\(//\)[^/]' \| \
12111 X"$ac_file" : 'X\(//\)$' \| \
12112 X"$ac_file" : 'X\(/\)' \| \
12113 . : '\(.\)' 2>/dev/null ||
12115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12117 /^X\(\/\/\)$/{ s//\1/; q; }
12118 /^X\(\/\).*/{ s//\1/; q; }
12120 { if $as_mkdir_p; then
12125 while test ! -d "$as_dir"; do
12126 as_dirs="$as_dir $as_dirs"
12127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12129 X"$as_dir" : 'X\(//\)[^/]' \| \
12130 X"$as_dir" : 'X\(//\)$' \| \
12131 X"$as_dir" : 'X\(/\)' \| \
12132 . : '\(.\)' 2>/dev/null ||
12134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12136 /^X\(\/\/\)$/{ s//\1/; q; }
12137 /^X\(\/\).*/{ s//\1/; q; }
12140 test ! -n "$as_dirs" || mkdir $as_dirs
12141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12143 { (exit 1); exit 1; }; }; }
12146 mv $tmp/config.h $ac_file
12150 rm -f $tmp/config.h
12152 # Compute $ac_file's index in $config_headers.
12154 for _am_header in $config_headers :; do
12155 case $_am_header in
12156 $ac_file | $ac_file:* )
12159 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12162 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12163 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12164 X$ac_file : 'X\(//\)[^/]' \| \
12165 X$ac_file : 'X\(//\)$' \| \
12166 X$ac_file : 'X\(/\)' \| \
12167 . : '\(.\)' 2>/dev/null ||
12169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12171 /^X\(\/\/\)$/{ s//\1/; q; }
12172 /^X\(\/\).*/{ s//\1/; q; }
12173 s/.*/./; q'`/stamp-h$_am_stamp_count
12176 cat >>$CONFIG_STATUS <<\_ACEOF
12179 # CONFIG_COMMANDS section.
12181 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12182 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12183 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12184 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12185 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12186 X"$ac_dest" : 'X\(//\)[^/]' \| \
12187 X"$ac_dest" : 'X\(//\)$' \| \
12188 X"$ac_dest" : 'X\(/\)' \| \
12189 . : '\(.\)' 2>/dev/null ||
12191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12193 /^X\(\/\/\)$/{ s//\1/; q; }
12194 /^X\(\/\).*/{ s//\1/; q; }
12196 { if $as_mkdir_p; then
12201 while test ! -d "$as_dir"; do
12202 as_dirs="$as_dir $as_dirs"
12203 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12205 X"$as_dir" : 'X\(//\)[^/]' \| \
12206 X"$as_dir" : 'X\(//\)$' \| \
12207 X"$as_dir" : 'X\(/\)' \| \
12208 . : '\(.\)' 2>/dev/null ||
12210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12212 /^X\(\/\/\)$/{ s//\1/; q; }
12213 /^X\(\/\).*/{ s//\1/; q; }
12216 test ! -n "$as_dirs" || mkdir $as_dirs
12217 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12219 { (exit 1); exit 1; }; }; }
12223 if test "$ac_dir" != .; then
12224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12225 # A "../" for each directory in $ac_dir_suffix.
12226 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12228 ac_dir_suffix= ac_top_builddir=
12232 .) # No --srcdir option. We are building in place.
12234 if test -z "$ac_top_builddir"; then
12237 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12239 [\\/]* | ?:[\\/]* ) # Absolute path.
12240 ac_srcdir=$srcdir$ac_dir_suffix;
12241 ac_top_srcdir=$srcdir ;;
12242 *) # Relative path.
12243 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12244 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12247 # Do not use `cd foo && pwd` to compute absolute paths, because
12248 # the directories may not exist.
12250 .) ac_abs_builddir="$ac_dir";;
12253 .) ac_abs_builddir=`pwd`;;
12254 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12255 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12258 case $ac_abs_builddir in
12259 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12261 case ${ac_top_builddir}. in
12262 .) ac_abs_top_builddir=$ac_abs_builddir;;
12263 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12264 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12267 case $ac_abs_builddir in
12268 .) ac_abs_srcdir=$ac_srcdir;;
12271 .) ac_abs_srcdir=$ac_abs_builddir;;
12272 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12273 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12276 case $ac_abs_builddir in
12277 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12279 case $ac_top_srcdir in
12280 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12281 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12282 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12287 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12288 echo "$as_me: executing $ac_dest commands" >&6;}
12290 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12291 # Strip MF so we end up with the name of the file.
12292 mf=`echo "$mf" | sed -e 's/:.*$//'`
12293 # Check whether this is an Automake generated Makefile or not.
12294 # We used to match only the files named `Makefile.in', but
12295 # some people rename them; so instead we look at the file content.
12296 # Grep'ing the first line is not enough: some people post-process
12297 # each Makefile.in and add a new line on top of each file to say so.
12298 # So let's grep whole file.
12299 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12300 dirpart=`(dirname "$mf") 2>/dev/null ||
12301 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12302 X"$mf" : 'X\(//\)[^/]' \| \
12303 X"$mf" : 'X\(//\)$' \| \
12304 X"$mf" : 'X\(/\)' \| \
12305 . : '\(.\)' 2>/dev/null ||
12307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12309 /^X\(\/\/\)$/{ s//\1/; q; }
12310 /^X\(\/\).*/{ s//\1/; q; }
12315 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12316 # Extract the definition of DEP_FILES from the Makefile without
12318 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12319 test -z "$DEPDIR" && continue
12320 # When using ansi2knr, U may be empty or an underscore; expand it
12321 U=`sed -n -e '/^U = / s///p' < "$mf"`
12322 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12323 # We invoke sed twice because it is the simplest approach to
12324 # changing $(DEPDIR) to its actual value in the expansion.
12325 for file in `sed -n -e '
12326 /^DEP_FILES = .*\\\\$/ {
12335 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12336 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12337 # Make sure the directory exists.
12338 test -f "$dirpart/$file" && continue
12339 fdir=`(dirname "$file") 2>/dev/null ||
12340 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12341 X"$file" : 'X\(//\)[^/]' \| \
12342 X"$file" : 'X\(//\)$' \| \
12343 X"$file" : 'X\(/\)' \| \
12344 . : '\(.\)' 2>/dev/null ||
12346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12348 /^X\(\/\/\)$/{ s//\1/; q; }
12349 /^X\(\/\).*/{ s//\1/; q; }
12351 { if $as_mkdir_p; then
12352 mkdir -p $dirpart/$fdir
12354 as_dir=$dirpart/$fdir
12356 while test ! -d "$as_dir"; do
12357 as_dirs="$as_dir $as_dirs"
12358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12360 X"$as_dir" : 'X\(//\)[^/]' \| \
12361 X"$as_dir" : 'X\(//\)$' \| \
12362 X"$as_dir" : 'X\(/\)' \| \
12363 . : '\(.\)' 2>/dev/null ||
12365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12367 /^X\(\/\/\)$/{ s//\1/; q; }
12368 /^X\(\/\).*/{ s//\1/; q; }
12371 test ! -n "$as_dirs" || mkdir $as_dirs
12372 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12373 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12374 { (exit 1); exit 1; }; }; }
12376 # echo "creating $dirpart/$file"
12377 echo '# dummy' > "$dirpart/$file"
12385 cat >>$CONFIG_STATUS <<\_ACEOF
12387 { (exit 0); exit 0; }
12389 chmod +x $CONFIG_STATUS
12390 ac_clean_files=$ac_clean_files_save
12393 # configure is writing to config.log, and then calls config.status.
12394 # config.status does its own redirection, appending to config.log.
12395 # Unfortunately, on DOS this fails, as config.log is still kept open
12396 # by configure, so config.status won't be able to write to it; its
12397 # output is simply discarded. So we exec the FD to /dev/null,
12398 # effectively closing config.log, so it can be properly (re)opened and
12399 # appended to by config.status. When coming back to configure, we
12400 # need to make the FD available again.
12401 if test "$no_create" != yes; then
12403 ac_config_status_args=
12404 test "$silent" = yes &&
12405 ac_config_status_args="$ac_config_status_args --quiet"
12407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12410 # would make configure fail if this is the last instruction.
12411 $ac_cs_success || { (exit 1); exit 1; }