2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="src/ctsim.cpp"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
275 # include <sys/types.h>
278 # include <sys/stat.h>
289 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <strings.h>
298 # include <inttypes.h>
308 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE wxcflags wxlibs ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
311 # Initialize some variables set by options.
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
323 program_transform_name=s,x,x,
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 # Accept the important Cygnus configure options, so we can diagnose typos.
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file=$ac_optarg ;;
383 cache_file=config.cache ;;
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389 datadir=$ac_optarg ;;
391 -disable-* | --disable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
400 -enable-* | --enable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
411 eval "enable_$ac_feature='$ac_optarg'" ;;
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
420 exec_prefix=$ac_optarg ;;
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
426 -help | --help | --hel | --he | -h)
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
443 includedir=$ac_optarg ;;
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
450 -libdir | --libdir | --libdi | --libd)
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
460 libexecdir=$ac_optarg ;;
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469 localstatedir=$ac_optarg ;;
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 # Obsolete; use --without-fp.
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495 oldincludedir=$ac_optarg ;;
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507 program_prefix=$ac_optarg ;;
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514 program_suffix=$ac_optarg ;;
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
531 program_transform_name=$ac_optarg ;;
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541 sbindir=$ac_optarg ;;
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552 sharedstatedir=$ac_optarg ;;
554 -site | --site | --sit)
556 -site=* | --site=* | --sit=*)
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569 sysconfdir=$ac_optarg ;;
571 -target | --target | --targe | --targ | --tar | --ta | --t)
572 ac_prev=target_alias ;;
573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574 target_alias=$ac_optarg ;;
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
579 -version | --version | --versio | --versi | --vers | -V)
583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
588 ac_package=`echo $ac_package| sed 's/-/_/g'`
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593 eval "with_$ac_package='$ac_optarg'" ;;
595 -without-* | --without-*)
596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
605 # Obsolete; use --with-x.
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613 x_includes=$ac_optarg ;;
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620 x_libraries=$ac_optarg ;;
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 if test -n "$ac_prev"; then
649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
657 eval ac_val=$`echo $ac_var`
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
669 eval ac_val=$`echo $ac_var`
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 test "$silent" = yes && exec 6>/dev/null
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
718 if test ! -r $srcdir/$ac_unique_file; then
722 ac_srcdir_defaulted=no
724 if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727 { (exit 1); exit 1; }; }
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CXX_set=${CXX+set}
766 ac_env_CXX_value=$CXX
767 ac_cv_env_CXX_set=${CXX+set}
768 ac_cv_env_CXX_value=$CXX
769 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
770 ac_env_CXXFLAGS_value=$CXXFLAGS
771 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
772 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
779 # Report the --help message.
781 if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
785 \`configure' configures this package to adapt to many kinds of systems.
787 Usage: $0 [OPTION]... [VAR=VALUE]...
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE. See below for descriptions of some of the useful variables.
792 Defaults for the options are specified in brackets.
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808 Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
819 For better control, use the options below.
821 Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 if test -n "$ac_init_help"; then
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --disable-dependency-tracking Speeds up one-time builds
861 --enable-dependency-tracking Do not reject slow dependency extractors
862 --enable-debug Turn on debugging
863 --enable-verbose-warnings
864 Enable verbose compiler warnings.
866 Enable static executables.
867 --enable-dmalloc Use dmalloc memory allocation
868 --enable-efence Use ElectricFence memory allocation
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-lam=PATH Set path of LAM MPI
874 --with-ctn=PATH Set path of CTN DICOM library
875 --with-cgibin-dir=PATH Set path of CGI binaries directory
876 --with-cgibin-url=PATH Set URL path of CGI binaries
877 --with-webdata-dir=PATH Set path of webdata
878 --with-webdata-url=PATH Set URL path of webdata
879 --with-html-dir=PATH Set directory of html files
880 --with-x use the X Window System
882 Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
889 CXX C++ compiler command
890 CXXFLAGS C++ compiler flags
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.54. Invocation command line was
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Also quote any args containing shell meta-characters.
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n ) continue ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 # Get rid of the leading space.
1043 # When interrupted or exit'd, cleanup temporary files, and complete
1044 # config.log. We remove comments because anyway the quotes in there
1045 # would cause problems or look ugly.
1046 # WARNING: Be sure not to use single quotes in there, as some shells,
1047 # such as our DU 5.0 friend, will then `close' the trap.
1048 trap 'exit_status=$?
1049 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 ## ----------------- ##
1078 ## Output variables. ##
1079 ## ----------------- ##
1082 for ac_var in $ac_subst_vars
1084 eval ac_val=$`echo $ac_var`
1085 echo "$ac_var='"'"'$ac_val'"'"'"
1089 if test -n "$ac_subst_files"; then
1096 for ac_var in $ac_subst_files
1098 eval ac_val=$`echo $ac_var`
1099 echo "$ac_var='"'"'$ac_val'"'"'"
1104 if test -s confdefs.h; then
1111 sed "/^$/d" confdefs.h | sort
1114 test "$ac_signal" != 0 &&
1115 echo "$as_me: caught signal $ac_signal"
1116 echo "$as_me: exit $exit_status"
1118 rm -f core core.* *.core &&
1119 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1122 for ac_signal in 1 2 13 15; do
1123 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1128 rm -rf conftest* confdefs.h
1129 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1132 # Predefined preprocessor variables.
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_NAME "$PACKAGE_NAME"
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_STRING "$PACKAGE_STRING"
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1159 # Let the site file select an alternate cache file if it wants to.
1160 # Prefer explicitly selected file to automatically selected ones.
1161 if test -z "$CONFIG_SITE"; then
1162 if test "x$prefix" != xNONE; then
1163 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1165 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1168 for ac_site_file in $CONFIG_SITE; do
1169 if test -r "$ac_site_file"; then
1170 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1171 echo "$as_me: loading site script $ac_site_file" >&6;}
1172 sed 's/^/| /' "$ac_site_file" >&5
1177 if test -r "$cache_file"; then
1178 # Some versions of bash will fail to source /dev/null (special
1179 # files actually), so we avoid doing that.
1180 if test -f "$cache_file"; then
1181 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1182 echo "$as_me: loading cache $cache_file" >&6;}
1184 [\\/]* | ?:[\\/]* ) . $cache_file;;
1185 *) . ./$cache_file;;
1189 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1190 echo "$as_me: creating cache $cache_file" >&6;}
1194 # Check that the precious variables saved in the cache have kept the same
1196 ac_cache_corrupted=false
1197 for ac_var in `(set) 2>&1 |
1198 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1199 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1200 eval ac_new_set=\$ac_env_${ac_var}_set
1201 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1202 eval ac_new_val="\$ac_env_${ac_var}_value"
1203 case $ac_old_set,$ac_new_set in
1205 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1206 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1207 ac_cache_corrupted=: ;;
1209 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1211 ac_cache_corrupted=: ;;
1214 if test "x$ac_old_val" != "x$ac_new_val"; then
1215 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1216 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1217 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1218 echo "$as_me: former value: $ac_old_val" >&2;}
1219 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1220 echo "$as_me: current value: $ac_new_val" >&2;}
1221 ac_cache_corrupted=:
1224 # Pass precious variables to config.status.
1225 if test "$ac_new_set" = set; then
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 *) ac_arg=$ac_var=$ac_new_val ;;
1231 case " $ac_configure_args " in
1232 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1233 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1237 if $ac_cache_corrupted; then
1238 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1239 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1240 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1241 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1242 { (exit 1); exit 1; }; }
1246 ac_cpp='$CPP $CPPFLAGS'
1247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1270 am__api_version="1.6"
1272 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1273 if test -f $ac_dir/install-sh; then
1275 ac_install_sh="$ac_aux_dir/install-sh -c"
1277 elif test -f $ac_dir/install.sh; then
1279 ac_install_sh="$ac_aux_dir/install.sh -c"
1281 elif test -f $ac_dir/shtool; then
1283 ac_install_sh="$ac_aux_dir/shtool install -c"
1287 if test -z "$ac_aux_dir"; then
1288 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1289 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1290 { (exit 1); exit 1; }; }
1292 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1293 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1294 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1296 # Find a good install program. We prefer a C program (faster),
1297 # so one script is as good as another. But avoid the broken or
1298 # incompatible versions:
1299 # SysV /etc/install, /usr/sbin/install
1300 # SunOS /usr/etc/install
1301 # IRIX /sbin/install
1303 # AmigaOS /C/install, which installs bootblocks on floppy discs
1304 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1305 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1306 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1307 # ./install, which can be erroneously created by make from ./install.sh.
1308 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1310 if test -z "$INSTALL"; then
1311 if test "${ac_cv_path_install+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1318 test -z "$as_dir" && as_dir=.
1319 # Account for people who put trailing slashes in PATH elements.
1321 ./ | .// | /cC/* | \
1322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1325 # OSF1 and SCO ODT 3.0 have their own names for install.
1326 # Don't use installbsd from OSF since it installs stuff as root
1328 for ac_prog in ginstall scoinst install; do
1329 for ac_exec_ext in '' $ac_executable_extensions; do
1330 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1331 if test $ac_prog = install &&
1332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1333 # AIX install. It has an incompatible calling convention.
1335 elif test $ac_prog = install &&
1336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1337 # program-specific install script used by HP pwplus--don't use.
1340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1352 if test "${ac_cv_path_install+set}" = set; then
1353 INSTALL=$ac_cv_path_install
1355 # As a last resort, use the slow shell script. We don't cache a
1356 # path for INSTALL within a source directory, because that will
1357 # break other packages using the cache if that directory is
1358 # removed, or if the path is relative.
1359 INSTALL=$ac_install_sh
1362 echo "$as_me:$LINENO: result: $INSTALL" >&5
1363 echo "${ECHO_T}$INSTALL" >&6
1365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1366 # It thinks the first close brace ends the variable substitution.
1367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1373 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1374 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1377 echo timestamp > conftest.file
1378 # Do `set' in a subshell so we don't clobber the current shell's
1379 # arguments. Must try -L first in case configure is actually a
1380 # symlink; some systems play weird games with the mod time of symlinks
1381 # (eg FreeBSD returns the mod time of the symlink's containing
1384 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1385 if test "$*" = "X"; then
1387 set X `ls -t $srcdir/configure conftest.file`
1390 if test "$*" != "X $srcdir/configure conftest.file" \
1391 && test "$*" != "X conftest.file $srcdir/configure"; then
1393 # If neither matched, then we have a broken ls. This can happen
1394 # if, for instance, CONFIG_SHELL is bash and it inherits a
1395 # broken ls alias from the environment. This has actually
1396 # happened. Such a system could not be considered "sane".
1397 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1398 alias in your environment" >&5
1399 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1400 alias in your environment" >&2;}
1401 { (exit 1); exit 1; }; }
1404 test "$2" = conftest.file
1410 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1411 Check your system clock" >&5
1412 echo "$as_me: error: newly created file is older than distributed files!
1413 Check your system clock" >&2;}
1414 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: yes" >&5
1417 echo "${ECHO_T}yes" >&6
1418 test "$program_prefix" != NONE &&
1419 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1420 # Use a double $ so make ignores it.
1421 test "$program_suffix" != NONE &&
1422 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1423 # Double any \ or $. echo might interpret backslashes.
1424 # By default was `s,x,x', remove it if useless.
1425 cat <<\_ACEOF >conftest.sed
1426 s/[\\$]/&&/g;s/;s,x,x,$//
1428 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1432 # expand $ac_aux_dir to an absolute path
1433 am_aux_dir=`cd $ac_aux_dir && pwd`
1435 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1436 # Use eval to expand $SHELL
1437 if eval "$MISSING --run true"; then
1438 am_missing_run="$MISSING --run "
1441 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1442 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1445 for ac_prog in gawk mawk nawk awk
1447 # Extract the first word of "$ac_prog", so it can be a program name with args.
1448 set dummy $ac_prog; ac_word=$2
1449 echo "$as_me:$LINENO: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_AWK+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 if test -n "$AWK"; then
1455 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1461 test -z "$as_dir" && as_dir=.
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 ac_cv_prog_AWK="$ac_prog"
1465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 if test -n "$AWK"; then
1475 echo "$as_me:$LINENO: result: $AWK" >&5
1476 echo "${ECHO_T}$AWK" >&6
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1482 test -n "$AWK" && break
1485 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1486 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1487 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1488 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 cat >conftest.make <<\_ACEOF
1493 @echo 'ac_maketemp="${MAKE}"'
1495 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1496 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1497 if test -n "$ac_maketemp"; then
1498 eval ac_cv_prog_make_${ac_make}_set=yes
1500 eval ac_cv_prog_make_${ac_make}_set=no
1504 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1505 echo "$as_me:$LINENO: result: yes" >&5
1506 echo "${ECHO_T}yes" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 SET_MAKE="MAKE=${MAKE-make}"
1514 # test to see if srcdir already configured
1515 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1516 test -f $srcdir/config.status; then
1517 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1518 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1519 { (exit 1); exit 1; }; }
1522 # Define the identity of the package.
1527 cat >>confdefs.h <<_ACEOF
1528 #define PACKAGE "$PACKAGE"
1532 cat >>confdefs.h <<_ACEOF
1533 #define VERSION "$VERSION"
1536 # Some tools Automake needs.
1538 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1541 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1544 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1547 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1550 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1553 AMTAR=${AMTAR-"${am_missing_run}tar"}
1555 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1557 # Installed binaries are usually stripped using `strip' when the user
1558 # run `make install-strip'. However `strip' might not be the right
1559 # tool to use in cross-compilation environments, therefore Automake
1560 # will honor the `STRIP' environment variable to overrule this program.
1561 if test "$cross_compiling" != no; then
1562 if test -n "$ac_tool_prefix"; then
1563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1564 set dummy ${ac_tool_prefix}strip; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_STRIP+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$STRIP"; then
1571 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 STRIP=$ac_cv_prog_STRIP
1590 if test -n "$STRIP"; then
1591 echo "$as_me:$LINENO: result: $STRIP" >&5
1592 echo "${ECHO_T}$STRIP" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1599 if test -z "$ac_cv_prog_STRIP"; then
1601 # Extract the first word of "strip", so it can be a program name with args.
1602 set dummy strip; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 if test -n "$ac_ct_STRIP"; then
1609 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_ac_ct_STRIP="strip"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1628 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1629 if test -n "$ac_ct_STRIP"; then
1630 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1631 echo "${ECHO_T}$ac_ct_STRIP" >&6
1633 echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1639 STRIP="$ac_cv_prog_STRIP"
1643 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1645 # We need awk for the "check" target. The system "awk" is bad on
1650 # Add the stamp file to the list of files AC keeps track of,
1651 # along with our hook.
1652 ac_config_headers="$ac_config_headers config.h"
1657 for ac_prog in gawk mawk nawk awk
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_AWK+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$AWK"; then
1667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_AWK="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 if test -n "$AWK"; then
1687 echo "$as_me:$LINENO: result: $AWK" >&5
1688 echo "${ECHO_T}$AWK" >&6
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 test -n "$AWK" && break
1697 # Find a good install program. We prefer a C program (faster),
1698 # so one script is as good as another. But avoid the broken or
1699 # incompatible versions:
1700 # SysV /etc/install, /usr/sbin/install
1701 # SunOS /usr/etc/install
1702 # IRIX /sbin/install
1704 # AmigaOS /C/install, which installs bootblocks on floppy discs
1705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 # Account for people who put trailing slashes in PATH elements.
1722 ./ | .// | /cC/* | \
1723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1726 # OSF1 and SCO ODT 3.0 have their own names for install.
1727 # Don't use installbsd from OSF since it installs stuff as root
1729 for ac_prog in ginstall scoinst install; do
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732 if test $ac_prog = install &&
1733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734 # AIX install. It has an incompatible calling convention.
1736 elif test $ac_prog = install &&
1737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # program-specific install script used by HP pwplus--don't use.
1741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1753 if test "${ac_cv_path_install+set}" = set; then
1754 INSTALL=$ac_cv_path_install
1756 # As a last resort, use the slow shell script. We don't cache a
1757 # path for INSTALL within a source directory, because that will
1758 # break other packages using the cache if that directory is
1759 # removed, or if the path is relative.
1760 INSTALL=$ac_install_sh
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1774 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1775 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1776 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1777 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 cat >conftest.make <<\_ACEOF
1782 @echo 'ac_maketemp="${MAKE}"'
1784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1785 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1786 if test -n "$ac_maketemp"; then
1787 eval ac_cv_prog_make_${ac_make}_set=yes
1789 eval ac_cv_prog_make_${ac_make}_set=no
1793 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1794 echo "$as_me:$LINENO: result: yes" >&5
1795 echo "${ECHO_T}yes" >&6
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800 SET_MAKE="MAKE=${MAKE-make}"
1803 if test -n "$ac_tool_prefix"; then
1804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_RANLIB+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 if test -n "$RANLIB"; then
1812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 RANLIB=$ac_cv_prog_RANLIB
1831 if test -n "$RANLIB"; then
1832 echo "$as_me:$LINENO: result: $RANLIB" >&5
1833 echo "${ECHO_T}$RANLIB" >&6
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1840 if test -z "$ac_cv_prog_RANLIB"; then
1841 ac_ct_RANLIB=$RANLIB
1842 # Extract the first word of "ranlib", so it can be a program name with args.
1843 set dummy ranlib; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$ac_ct_RANLIB"; then
1850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_ac_ct_RANLIB="ranlib"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1870 if test -n "$ac_ct_RANLIB"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1872 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1878 RANLIB=$ac_ct_RANLIB
1880 RANLIB="$ac_cv_prog_RANLIB"
1885 ac_cpp='$CPP $CPPFLAGS'
1886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1889 if test -n "$ac_tool_prefix"; then
1890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 if test -n "$CC"; then
1918 echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1926 if test -z "$ac_cv_prog_CC"; then
1928 # Extract the first word of "gcc", so it can be a program name with args.
1929 set dummy gcc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$ac_ct_CC"; then
1936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_ac_ct_CC="gcc"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1968 if test -z "$CC"; then
1969 if test -n "$ac_tool_prefix"; then
1970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}cc; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 ac_cv_prog_CC="${ac_tool_prefix}cc"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 if test -n "$CC"; then
1998 echo "$as_me:$LINENO: result: $CC" >&5
1999 echo "${ECHO_T}$CC" >&6
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2006 if test -z "$ac_cv_prog_CC"; then
2008 # Extract the first word of "cc", so it can be a program name with args.
2009 set dummy cc; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$ac_ct_CC"; then
2016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_ac_ct_CC="cc"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2035 if test -n "$ac_ct_CC"; then
2036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2037 echo "${ECHO_T}$ac_ct_CC" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2049 if test -z "$CC"; then
2050 # Extract the first word of "cc", so it can be a program name with args.
2051 set dummy cc; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069 ac_prog_rejected=yes
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 if test $ac_prog_rejected = yes; then
2080 # We found a bogon in the path, so make sure we never use it.
2081 set dummy $ac_cv_prog_CC
2083 if test $# != 0; then
2084 # We chose a different compiler from the bogus one.
2085 # However, it has the same basename, so the bogon will be chosen
2086 # first if we set CC to just the basename; use the full file name.
2088 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2094 if test -n "$CC"; then
2095 echo "$as_me:$LINENO: result: $CC" >&5
2096 echo "${ECHO_T}$CC" >&6
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2103 if test -z "$CC"; then
2104 if test -n "$ac_tool_prefix"; then
2107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2109 echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 if test -n "$CC"; then
2135 echo "$as_me:$LINENO: result: $CC" >&5
2136 echo "${ECHO_T}$CC" >&6
2138 echo "$as_me:$LINENO: result: no" >&5
2139 echo "${ECHO_T}no" >&6
2142 test -n "$CC" && break
2145 if test -z "$CC"; then
2149 # Extract the first word of "$ac_prog", so it can be a program name with args.
2150 set dummy $ac_prog; ac_word=$2
2151 echo "$as_me:$LINENO: checking for $ac_word" >&5
2152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2153 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 if test -n "$ac_ct_CC"; then
2157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2166 ac_cv_prog_ac_ct_CC="$ac_prog"
2167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2176 if test -n "$ac_ct_CC"; then
2177 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2178 echo "${ECHO_T}$ac_ct_CC" >&6
2180 echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6
2184 test -n "$ac_ct_CC" && break
2193 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2194 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2195 { (exit 1); exit 1; }; }
2197 # Provide some information about the compiler.
2198 echo "$as_me:$LINENO:" \
2199 "checking for C compiler version" >&5
2200 ac_compiler=`set X $ac_compile; echo $2`
2201 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2202 (eval $ac_compiler --version </dev/null >&5) 2>&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2207 (eval $ac_compiler -v </dev/null >&5) 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2212 (eval $ac_compiler -V </dev/null >&5) 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2229 ac_clean_files_save=$ac_clean_files
2230 ac_clean_files="$ac_clean_files a.out a.exe"
2231 # Try to create an executable without -o first, disregard a.out.
2232 # It will help us diagnose broken compilers, and finding out an intuition
2234 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2235 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2236 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2237 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2238 (eval $ac_link_default) 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; then
2242 # Find the output, starting from the most likely. This scheme is
2243 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2246 # Be careful to initialize this variable, since it used to be cached.
2247 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2249 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2250 test -f "$ac_file" || continue
2252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2253 a.out ) # We found the default executable, but exeext='' is most
2256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2264 echo "$as_me: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2266 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2267 check \`config.log' for details." >&5
2268 echo "$as_me: error: C compiler cannot create executables
2269 check \`config.log' for details." >&2;}
2270 { (exit 77); exit 77; }; }
2273 ac_exeext=$ac_cv_exeext
2274 echo "$as_me:$LINENO: result: $ac_file" >&5
2275 echo "${ECHO_T}$ac_file" >&6
2277 # Check the compiler produces executables we can run. If not, either
2278 # the compiler is broken, or we cross compile.
2279 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2280 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2281 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282 # If not cross compiling, check that we can run a simple program.
2283 if test "$cross_compiling" != yes; then
2284 if { ac_try='./$ac_file'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2292 if test "$cross_compiling" = maybe; then
2295 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2296 If you meant to cross compile, use \`--host'." >&5
2297 echo "$as_me: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'." >&2;}
2299 { (exit 1); exit 1; }; }
2303 echo "$as_me:$LINENO: result: yes" >&5
2304 echo "${ECHO_T}yes" >&6
2306 rm -f a.out a.exe conftest$ac_cv_exeext
2307 ac_clean_files=$ac_clean_files_save
2308 # Check the compiler produces executables we can run. If not, either
2309 # the compiler is broken, or we cross compile.
2310 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2311 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2312 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2313 echo "${ECHO_T}$cross_compiling" >&6
2315 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2316 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2318 (eval $ac_link) 2>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
2322 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2323 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2324 # work properly (i.e., refer to `conftest.exe'), while it won't with
2326 for ac_file in conftest.exe conftest conftest.*; do
2327 test -f "$ac_file" || continue
2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest$ac_cv_exeext
2343 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2344 echo "${ECHO_T}$ac_cv_exeext" >&6
2346 rm -f conftest.$ac_ext
2347 EXEEXT=$ac_cv_exeext
2349 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2350 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2351 if test "${ac_cv_objext+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 cat >conftest.$ac_ext <<_ACEOF
2355 #line $LINENO "configure"
2356 #include "confdefs.h"
2366 rm -f conftest.o conftest.obj
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; then
2372 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2375 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2380 echo "$as_me: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2382 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2383 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2384 { (exit 1); exit 1; }; }
2387 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2389 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2390 echo "${ECHO_T}$ac_cv_objext" >&6
2391 OBJEXT=$ac_cv_objext
2393 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2394 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2395 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 cat >conftest.$ac_ext <<_ACEOF
2399 #line $LINENO "configure"
2400 #include "confdefs.h"
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2427 echo "$as_me: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2431 rm -f conftest.$ac_objext conftest.$ac_ext
2432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2435 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2436 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2437 GCC=`test $ac_compiler_gnu = yes && echo yes`
2438 ac_test_CFLAGS=${CFLAGS+set}
2439 ac_save_CFLAGS=$CFLAGS
2441 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2442 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2443 if test "${ac_cv_prog_cc_g+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 #include "confdefs.h"
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2476 rm -f conftest.$ac_objext conftest.$ac_ext
2478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480 if test "$ac_test_CFLAGS" = set; then
2481 CFLAGS=$ac_save_CFLAGS
2482 elif test $ac_cv_prog_cc_g = yes; then
2483 if test "$GCC" = yes; then
2489 if test "$GCC" = yes; then
2495 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 ac_cv_prog_cc_stdc=no
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2504 #include "confdefs.h"
2507 #include <sys/types.h>
2508 #include <sys/stat.h>
2509 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2510 struct buf { int x; };
2511 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2512 static char *e (p, i)
2518 static char *f (char * (*g) (char **, int), char **p, ...)
2523 s = g (p, va_arg (v,int));
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX -qlanglvl=ansi
2544 # Ultrix and OSF/1 -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions -Aa -D_HPUX_SOURCE
2547 # SVR4 -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2550 CC="$ac_save_CC $ac_arg"
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 ac_cv_prog_cc_stdc=$ac_arg
2566 echo "$as_me: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 rm -f conftest.$ac_objext
2571 rm -f conftest.$ac_ext conftest.$ac_objext
2576 case "x$ac_cv_prog_cc_stdc" in
2578 echo "$as_me:$LINENO: result: none needed" >&5
2579 echo "${ECHO_T}none needed" >&6 ;;
2581 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2582 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2583 CC="$CC $ac_cv_prog_cc_stdc" ;;
2586 # Some people use a C++ compiler to compile C. Since we use `exit',
2587 # in C++ we need to declare it. In case someone uses the same compiler
2588 # for both compiling C and C++ we need to have the C++ compiler decide
2589 # the declaration of exit, since it's the most demanding environment.
2590 cat >conftest.$ac_ext <<_ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597 (eval $ac_compile) 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 for ac_declaration in \
2609 '#include <stdlib.h>' \
2610 'extern "C" void std::exit (int) throw (); using std::exit;' \
2611 'extern "C" void std::exit (int); using std::exit;' \
2612 'extern "C" void exit (int) throw ();' \
2613 'extern "C" void exit (int);' \
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2618 #include "confdefs.h"
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2643 echo "$as_me: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2647 rm -f conftest.$ac_objext conftest.$ac_ext
2648 cat >conftest.$ac_ext <<_ACEOF
2649 #line $LINENO "configure"
2650 #include "confdefs.h"
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2677 rm -f conftest.$ac_objext conftest.$ac_ext
2680 if test -n "$ac_declaration"; then
2681 echo '#ifdef __cplusplus' >>confdefs.h
2682 echo $ac_declaration >>confdefs.h
2683 echo '#endif' >>confdefs.h
2687 echo "$as_me: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2690 rm -f conftest.$ac_objext conftest.$ac_ext
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 rm -f .deps 2>/dev/null
2697 mkdir .deps 2>/dev/null
2698 if test -d .deps; then
2701 # MS-DOS does not allow filenames that begin with a dot.
2704 rmdir .deps 2>/dev/null
2707 ac_config_commands="$ac_config_commands depfiles"
2710 am_make=${MAKE-make}
2711 cat > confinc << 'END'
2715 # If we don't find an include directive, just comment out the code.
2716 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2717 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2721 # First try GNU make style include.
2722 echo "include confinc" > confmf
2723 # We grep out `Entering directory' and `Leaving directory'
2724 # messages which can occur if `w' ends up in MAKEFLAGS.
2725 # In particular we don't look at `^make:' because GNU make might
2726 # be invoked under some other name (usually "gmake"), in which
2727 # case it prints its new name instead of `make'.
2728 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2733 # Now try BSD make style include.
2734 if test "$am__include" = "#"; then
2735 echo '.include "confinc"' > confmf
2736 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2737 am__include=.include
2744 echo "$as_me:$LINENO: result: $_am_result" >&5
2745 echo "${ECHO_T}$_am_result" >&6
2746 rm -f confinc confmf
2748 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2749 if test "${enable_dependency_tracking+set}" = set; then
2750 enableval="$enable_dependency_tracking"
2753 if test "x$enable_dependency_tracking" != xno; then
2754 am_depcomp="$ac_aux_dir/depcomp"
2759 if test "x$enable_dependency_tracking" != xno; then
2770 depcc="$CC" am_compiler_list=
2772 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2773 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2774 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2778 # We make a subdir and do the tests there. Otherwise we can end up
2779 # making bogus files that we don't know about and never remove. For
2780 # instance it was reported that on HP-UX the gcc test will end up
2781 # making a dummy file named `D' -- because `-MD' means `put the output
2784 # Copy depcomp to subdir because otherwise we won't find it if we're
2785 # using a relative directory.
2786 cp "$am_depcomp" conftest.dir
2789 am_cv_CC_dependencies_compiler_type=none
2790 if test "$am_compiler_list" = ""; then
2791 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2793 for depmode in $am_compiler_list; do
2794 # We need to recreate these files for each test, as the compiler may
2795 # overwrite some of them when testing with obscure command lines.
2796 # This happens at least with the AIX C compiler.
2797 echo '#include "conftest.h"' > conftest.c
2798 echo 'int i;' > conftest.h
2799 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2803 # after this tag, mechanisms are not by side-effect, so they'll
2804 # only be used when explicitly requested
2805 if test "x$enable_dependency_tracking" = xyes; then
2813 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2814 # mode. It turns out that the SunPro C++ compiler does not properly
2815 # handle `-M -o', and we need to detect this.
2816 if depmode=$depmode \
2817 source=conftest.c object=conftest.o \
2818 depfile=conftest.Po tmpdepfile=conftest.TPo \
2819 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2820 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2822 am_cv_CC_dependencies_compiler_type=$depmode
2830 am_cv_CC_dependencies_compiler_type=none
2834 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2835 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2836 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2840 ac_cpp='$CXXCPP $CPPFLAGS'
2841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2849 echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851 if test "${ac_cv_prog_CXX+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 if test -n "$CXX"; then
2855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 if test -n "$CXX"; then
2875 echo "$as_me:$LINENO: result: $CXX" >&5
2876 echo "${ECHO_T}$CXX" >&6
2878 echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2882 test -n "$CXX" && break
2885 if test -z "$CXX"; then
2887 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 if test -n "$ac_ct_CXX"; then
2897 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_CXX="$ac_prog"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2916 if test -n "$ac_ct_CXX"; then
2917 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2918 echo "${ECHO_T}$ac_ct_CXX" >&6
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2924 test -n "$ac_ct_CXX" && break
2926 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2932 # Provide some information about the compiler.
2933 echo "$as_me:$LINENO:" \
2934 "checking for C++ compiler version" >&5
2935 ac_compiler=`set X $ac_compile; echo $2`
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2937 (eval $ac_compiler --version </dev/null >&5) 2>&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2942 (eval $ac_compiler -v </dev/null >&5) 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2946 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2947 (eval $ac_compiler -V </dev/null >&5) 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }
2952 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2953 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2954 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 cat >conftest.$ac_ext <<_ACEOF
2958 #line $LINENO "configure"
2959 #include "confdefs.h"
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974 (eval $ac_compile) 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -s conftest.$ac_objext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2986 echo "$as_me: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2990 rm -f conftest.$ac_objext conftest.$ac_ext
2991 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2995 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2996 GXX=`test $ac_compiler_gnu = yes && echo yes`
2997 ac_test_CXXFLAGS=${CXXFLAGS+set}
2998 ac_save_CXXFLAGS=$CXXFLAGS
3000 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3001 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3002 if test "${ac_cv_prog_cxx_g+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 #include "confdefs.h"
3017 rm -f conftest.$ac_objext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019 (eval $ac_compile) 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 ac_cv_prog_cxx_g=yes
3031 echo "$as_me: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3035 rm -f conftest.$ac_objext conftest.$ac_ext
3037 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3038 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3039 if test "$ac_test_CXXFLAGS" = set; then
3040 CXXFLAGS=$ac_save_CXXFLAGS
3041 elif test $ac_cv_prog_cxx_g = yes; then
3042 if test "$GXX" = yes; then
3048 if test "$GXX" = yes; then
3054 for ac_declaration in \
3056 '#include <stdlib.h>' \
3057 'extern "C" void std::exit (int) throw (); using std::exit;' \
3058 'extern "C" void std::exit (int); using std::exit;' \
3059 'extern "C" void exit (int) throw ();' \
3060 'extern "C" void exit (int);' \
3063 cat >conftest.$ac_ext <<_ACEOF
3064 #line $LINENO "configure"
3065 #include "confdefs.h"
3076 rm -f conftest.$ac_objext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3090 echo "$as_me: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3094 rm -f conftest.$ac_objext conftest.$ac_ext
3095 cat >conftest.$ac_ext <<_ACEOF
3096 #line $LINENO "configure"
3097 #include "confdefs.h"
3107 rm -f conftest.$ac_objext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109 (eval $ac_compile) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3121 echo "$as_me: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3124 rm -f conftest.$ac_objext conftest.$ac_ext
3127 if test -n "$ac_declaration"; then
3128 echo '#ifdef __cplusplus' >>confdefs.h
3129 echo $ac_declaration >>confdefs.h
3130 echo '#endif' >>confdefs.h
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 depcc="$CXX" am_compiler_list=
3141 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147 # We make a subdir and do the tests there. Otherwise we can end up
3148 # making bogus files that we don't know about and never remove. For
3149 # instance it was reported that on HP-UX the gcc test will end up
3150 # making a dummy file named `D' -- because `-MD' means `put the output
3153 # Copy depcomp to subdir because otherwise we won't find it if we're
3154 # using a relative directory.
3155 cp "$am_depcomp" conftest.dir
3158 am_cv_CXX_dependencies_compiler_type=none
3159 if test "$am_compiler_list" = ""; then
3160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3162 for depmode in $am_compiler_list; do
3163 # We need to recreate these files for each test, as the compiler may
3164 # overwrite some of them when testing with obscure command lines.
3165 # This happens at least with the AIX C compiler.
3166 echo '#include "conftest.h"' > conftest.c
3167 echo 'int i;' > conftest.h
3168 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3172 # after this tag, mechanisms are not by side-effect, so they'll
3173 # only be used when explicitly requested
3174 if test "x$enable_dependency_tracking" = xyes; then
3182 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183 # mode. It turns out that the SunPro C++ compiler does not properly
3184 # handle `-M -o', and we need to detect this.
3185 if depmode=$depmode \
3186 source=conftest.c object=conftest.o \
3187 depfile=conftest.Po tmpdepfile=conftest.TPo \
3188 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3189 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3190 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3191 am_cv_CXX_dependencies_compiler_type=$depmode
3199 am_cv_CXX_dependencies_compiler_type=none
3203 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3204 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3205 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3209 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3210 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3211 if test "${ac_cv_c_bigendian+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 # See if sys/param.h defines the BYTE_ORDER macro.
3215 cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 #include "confdefs.h"
3218 #include <sys/types.h>
3219 #include <sys/param.h>
3224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>&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
3244 # It does; now see whether it defined to BIG_ENDIAN or not.
3245 cat >conftest.$ac_ext <<_ACEOF
3246 #line $LINENO "configure"
3247 #include "confdefs.h"
3248 #include <sys/types.h>
3249 #include <sys/param.h>
3254 #if BYTE_ORDER != BIG_ENDIAN
3262 rm -f conftest.$ac_objext
3263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264 (eval $ac_compile) 2>&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 { ac_try='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_c_bigendian=yes
3276 echo "$as_me: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3278 ac_cv_c_bigendian=no
3280 rm -f conftest.$ac_objext conftest.$ac_ext
3282 echo "$as_me: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3284 # It does not; compile a test program.
3285 if test "$cross_compiling" = yes; then
3286 # try to guess the endianness by grepping values into an object file
3287 ac_cv_c_bigendian=unknown
3288 cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3290 #include "confdefs.h"
3291 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3292 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3293 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3294 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3295 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3296 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3300 _ascii (); _ebcdic ();
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307 (eval $ac_compile) 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3318 ac_cv_c_bigendian=yes
3320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3321 if test "$ac_cv_c_bigendian" = unknown; then
3322 ac_cv_c_bigendian=no
3324 # finding both strings is unlikely to happen, but who knows?
3325 ac_cv_c_bigendian=unknown
3329 echo "$as_me: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3332 rm -f conftest.$ac_objext conftest.$ac_ext
3334 cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3336 #include "confdefs.h"
3340 /* Are we little or big endian? From Harbison&Steele. */
3344 char c[sizeof (long)];
3347 exit (u.c[sizeof (long) - 1] == 1);
3350 rm -f conftest$ac_exeext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3352 (eval $ac_link) 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_cv_c_bigendian=no
3363 echo "$as_me: program exited with status $ac_status" >&5
3364 echo "$as_me: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 ac_cv_c_bigendian=yes
3369 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3372 rm -f conftest.$ac_objext conftest.$ac_ext
3374 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3375 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3376 case $ac_cv_c_bigendian in
3379 cat >>confdefs.h <<\_ACEOF
3380 #define WORDS_BIGENDIAN 1
3386 { { echo "$as_me:$LINENO: error: unknown endianness
3387 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3388 echo "$as_me: error: unknown endianness
3389 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3390 { (exit 1); exit 1; }; } ;;
3394 # Extract the first word of "wx-config", so it can be a program name with args.
3395 set dummy wx-config; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_path_wxconfig+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 wxconfig=$ac_cv_path_wxconfig
3425 if test -n "$wxconfig"; then
3426 echo "$as_me:$LINENO: result: $wxconfig" >&5
3427 echo "${ECHO_T}$wxconfig" >&6
3429 echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3434 # Make sure we can run config.sub.
3435 $ac_config_sub sun4 >/dev/null 2>&1 ||
3436 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3437 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3438 { (exit 1); exit 1; }; }
3440 echo "$as_me:$LINENO: checking build system type" >&5
3441 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3442 if test "${ac_cv_build+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 ac_cv_build_alias=$build_alias
3446 test -z "$ac_cv_build_alias" &&
3447 ac_cv_build_alias=`$ac_config_guess`
3448 test -z "$ac_cv_build_alias" &&
3449 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3450 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3451 { (exit 1); exit 1; }; }
3452 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3454 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3455 { (exit 1); exit 1; }; }
3458 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3459 echo "${ECHO_T}$ac_cv_build" >&6
3461 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3462 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3463 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3466 echo "$as_me:$LINENO: checking host system type" >&5
3467 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3468 if test "${ac_cv_host+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 ac_cv_host_alias=$host_alias
3472 test -z "$ac_cv_host_alias" &&
3473 ac_cv_host_alias=$ac_cv_build_alias
3474 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3476 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3477 { (exit 1); exit 1; }; }
3480 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3481 echo "${ECHO_T}$ac_cv_host" >&6
3483 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3484 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3485 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3488 echo "$as_me:$LINENO: checking for inline" >&5
3489 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3490 if test "${ac_cv_c_inline+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 for ac_kw in inline __inline__ __inline; do
3495 cat >conftest.$ac_ext <<_ACEOF
3496 #line $LINENO "configure"
3497 #include "confdefs.h"
3500 static $ac_kw foo_t static_foo () {return 0; }
3501 $ac_kw foo_t foo () {return 0; }
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try='test -s conftest.$ac_objext'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3517 ac_cv_c_inline=$ac_kw; break
3519 echo "$as_me: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3522 rm -f conftest.$ac_objext conftest.$ac_ext
3526 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3527 echo "${ECHO_T}$ac_cv_c_inline" >&6
3528 case $ac_cv_c_inline in
3531 cat >>confdefs.h <<\_ACEOF
3535 *) cat >>confdefs.h <<_ACEOF
3536 #define inline $ac_cv_c_inline
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3548 # On Suns, sometimes $CPP names a directory.
3549 if test -n "$CPP" && test -d "$CPP"; then
3552 if test -z "$CPP"; then
3553 if test "${ac_cv_prog_CPP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 # Double quotes because CPP needs to be expanded
3557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3560 for ac_c_preproc_warn_flag in '' yes
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # On the NeXT, cc -E runs the code through the compiler's parser,
3565 # not just through cpp. "Syntax error" is here to catch this case.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 #include "confdefs.h"
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3588 if test -z "$ac_cpp_err"; then
3591 echo "$as_me: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether non-existent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3603 #include <ac_nonexistent.h>
3605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3621 if test -z "$ac_cpp_err"; then
3622 # Broken: success on invalid input.
3625 echo "$as_me: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 # Passes both tests.
3631 rm -f conftest.err conftest.$ac_ext
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3648 echo "$as_me:$LINENO: result: $CPP" >&5
3649 echo "${ECHO_T}$CPP" >&6
3651 for ac_c_preproc_warn_flag in '' yes
3653 # Use a header file that comes with gcc, so configuring glibc
3654 # with a fresh cross-compiler works.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat >conftest.$ac_ext <<_ACEOF
3658 #line $LINENO "configure"
3659 #include "confdefs.h"
3663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } >/dev/null; then
3671 if test -s conftest.err; then
3672 ac_cpp_err=$ac_c_preproc_warn_flag
3679 if test -z "$ac_cpp_err"; then
3682 echo "$as_me: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3684 # Broken: fails on valid input.
3687 rm -f conftest.err conftest.$ac_ext
3689 # OK, works on sane cases. Now check whether non-existent headers
3690 # can be detected and how.
3691 cat >conftest.$ac_ext <<_ACEOF
3692 #line $LINENO "configure"
3693 #include "confdefs.h"
3694 #include <ac_nonexistent.h>
3696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } >/dev/null; then
3704 if test -s conftest.err; then
3705 ac_cpp_err=$ac_c_preproc_warn_flag
3712 if test -z "$ac_cpp_err"; then
3713 # Broken: success on invalid input.
3716 echo "$as_me: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 # Passes both tests.
3722 rm -f conftest.err conftest.$ac_ext
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then
3730 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3731 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3732 { (exit 1); exit 1; }; }
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 echo "$as_me:$LINENO: checking for egrep" >&5
3743 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3744 if test "${ac_cv_prog_egrep+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3748 then ac_cv_prog_egrep='grep -E'
3749 else ac_cv_prog_egrep='egrep'
3752 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3753 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3754 EGREP=$ac_cv_prog_egrep
3757 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3758 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3759 if test "${ac_cv_header_stdc+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3764 #include "confdefs.h"
3771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } >/dev/null; then
3779 if test -s conftest.err; then
3780 ac_cpp_err=$ac_c_preproc_warn_flag
3787 if test -z "$ac_cpp_err"; then
3788 ac_cv_header_stdc=yes
3790 echo "$as_me: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3792 ac_cv_header_stdc=no
3794 rm -f conftest.err conftest.$ac_ext
3796 if test $ac_cv_header_stdc = yes; then
3797 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3798 cat >conftest.$ac_ext <<_ACEOF
3799 #line $LINENO "configure"
3800 #include "confdefs.h"
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "memchr" >/dev/null 2>&1; then
3808 ac_cv_header_stdc=no
3814 if test $ac_cv_header_stdc = yes; then
3815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3816 cat >conftest.$ac_ext <<_ACEOF
3817 #line $LINENO "configure"
3818 #include "confdefs.h"
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823 $EGREP "free" >/dev/null 2>&1; then
3826 ac_cv_header_stdc=no
3832 if test $ac_cv_header_stdc = yes; then
3833 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3834 if test "$cross_compiling" = yes; then
3837 cat >conftest.$ac_ext <<_ACEOF
3838 #line $LINENO "configure"
3839 #include "confdefs.h"
3841 #if ((' ' & 0x0FF) == 0x020)
3842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3845 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3846 || ('j' <= (c) && (c) <= 'r') \
3847 || ('s' <= (c) && (c) <= 'z'))
3848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3856 for (i = 0; i < 256; i++)
3857 if (XOR (islower (i), ISLOWER (i))
3858 || toupper (i) != TOUPPER (i))
3863 rm -f conftest$ac_exeext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865 (eval $ac_link) 2>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
3876 echo "$as_me: program exited with status $ac_status" >&5
3877 echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3880 ac_cv_header_stdc=no
3882 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3886 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3887 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3888 if test $ac_cv_header_stdc = yes; then
3890 cat >>confdefs.h <<\_ACEOF
3891 #define STDC_HEADERS 1
3896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3907 inttypes.h stdint.h unistd.h
3909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3910 echo "$as_me:$LINENO: checking for $ac_header" >&5
3911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 cat >conftest.$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3917 #include "confdefs.h"
3918 $ac_includes_default
3920 #include <$ac_header>
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 eval "$as_ac_Header=yes"
3936 echo "$as_me: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3938 eval "$as_ac_Header=no"
3940 rm -f conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3945 cat >>confdefs.h <<_ACEOF
3946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3954 echo "$as_me:$LINENO: checking for short" >&5
3955 echo $ECHO_N "checking for short... $ECHO_C" >&6
3956 if test "${ac_cv_type_short+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 cat >conftest.$ac_ext <<_ACEOF
3960 #line $LINENO "configure"
3961 #include "confdefs.h"
3962 $ac_includes_default
3974 rm -f conftest.$ac_objext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_cv_type_short=yes
3988 echo "$as_me: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3992 rm -f conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3995 echo "${ECHO_T}$ac_cv_type_short" >&6
3997 echo "$as_me:$LINENO: checking size of short" >&5
3998 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3999 if test "${ac_cv_sizeof_short+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if test "$ac_cv_type_short" = yes; then
4003 # The cast to unsigned long works around a bug in the HP C Compiler
4004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4006 # This bug is HP SR number 8606223364.
4007 if test "$cross_compiling" = yes; then
4008 # Depending upon the size, compute the lo and hi bounds.
4009 cat >conftest.$ac_ext <<_ACEOF
4010 #line $LINENO "configure"
4011 #include "confdefs.h"
4012 $ac_includes_default
4016 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4037 cat >conftest.$ac_ext <<_ACEOF
4038 #line $LINENO "configure"
4039 #include "confdefs.h"
4040 $ac_includes_default
4044 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 ac_hi=$ac_mid; break
4065 echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 ac_lo=`expr $ac_mid + 1`
4068 if test $ac_lo -le $ac_mid; then
4072 ac_mid=`expr 2 '*' $ac_mid + 1`
4074 rm -f conftest.$ac_objext conftest.$ac_ext
4077 echo "$as_me: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4079 cat >conftest.$ac_ext <<_ACEOF
4080 #line $LINENO "configure"
4081 #include "confdefs.h"
4082 $ac_includes_default
4086 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4107 cat >conftest.$ac_ext <<_ACEOF
4108 #line $LINENO "configure"
4109 #include "confdefs.h"
4110 $ac_includes_default
4114 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123 (eval $ac_compile) 2>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 ac_lo=$ac_mid; break
4135 echo "$as_me: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4137 ac_hi=`expr '(' $ac_mid ')' - 1`
4138 if test $ac_mid -le $ac_hi; then
4142 ac_mid=`expr 2 '*' $ac_mid`
4144 rm -f conftest.$ac_objext conftest.$ac_ext
4147 echo "$as_me: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4151 rm -f conftest.$ac_objext conftest.$ac_ext
4153 rm -f conftest.$ac_objext conftest.$ac_ext
4154 # Binary search between lo and hi bounds.
4155 while test "x$ac_lo" != "x$ac_hi"; do
4156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4157 cat >conftest.$ac_ext <<_ACEOF
4158 #line $LINENO "configure"
4159 #include "confdefs.h"
4160 $ac_includes_default
4164 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4171 rm -f conftest.$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4185 echo "$as_me: failed program was:" >&5
4186 cat conftest.$ac_ext >&5
4187 ac_lo=`expr '(' $ac_mid ')' + 1`
4189 rm -f conftest.$ac_objext conftest.$ac_ext
4192 ?*) ac_cv_sizeof_short=$ac_lo;;
4193 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4194 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4195 { (exit 1); exit 1; }; } ;;
4198 if test "$cross_compiling" = yes; then
4199 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4200 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4201 { (exit 1); exit 1; }; }
4203 cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4205 #include "confdefs.h"
4206 $ac_includes_default
4207 long longval () { return (long) (sizeof (short)); }
4208 unsigned long ulongval () { return (long) (sizeof (short)); }
4215 FILE *f = fopen ("conftest.val", "w");
4218 if (((long) (sizeof (short))) < 0)
4220 long i = longval ();
4221 if (i != ((long) (sizeof (short))))
4223 fprintf (f, "%ld\n", i);
4227 unsigned long i = ulongval ();
4228 if (i != ((long) (sizeof (short))))
4230 fprintf (f, "%lu\n", i);
4232 exit (ferror (f) || fclose (f) != 0);
4238 rm -f conftest$ac_exeext
4239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4240 (eval $ac_link) 2>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 ac_cv_sizeof_short=`cat conftest.val`
4251 echo "$as_me: program exited with status $ac_status" >&5
4252 echo "$as_me: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4255 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4256 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4257 { (exit 1); exit 1; }; }
4259 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4264 ac_cv_sizeof_short=0
4267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4268 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4269 cat >>confdefs.h <<_ACEOF
4270 #define SIZEOF_SHORT $ac_cv_sizeof_short
4274 echo "$as_me:$LINENO: checking for int" >&5
4275 echo $ECHO_N "checking for int... $ECHO_C" >&6
4276 if test "${ac_cv_type_int+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 cat >conftest.$ac_ext <<_ACEOF
4280 #line $LINENO "configure"
4281 #include "confdefs.h"
4282 $ac_includes_default
4294 rm -f conftest.$ac_objext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296 (eval $ac_compile) 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4308 echo "$as_me: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4312 rm -f conftest.$ac_objext conftest.$ac_ext
4314 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4315 echo "${ECHO_T}$ac_cv_type_int" >&6
4317 echo "$as_me:$LINENO: checking size of int" >&5
4318 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4319 if test "${ac_cv_sizeof_int+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 if test "$ac_cv_type_int" = yes; then
4323 # The cast to unsigned long works around a bug in the HP C Compiler
4324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4326 # This bug is HP SR number 8606223364.
4327 if test "$cross_compiling" = yes; then
4328 # Depending upon the size, compute the lo and hi bounds.
4329 cat >conftest.$ac_ext <<_ACEOF
4330 #line $LINENO "configure"
4331 #include "confdefs.h"
4332 $ac_includes_default
4336 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4357 cat >conftest.$ac_ext <<_ACEOF
4358 #line $LINENO "configure"
4359 #include "confdefs.h"
4360 $ac_includes_default
4364 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_hi=$ac_mid; break
4385 echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_lo=`expr $ac_mid + 1`
4388 if test $ac_lo -le $ac_mid; then
4392 ac_mid=`expr 2 '*' $ac_mid + 1`
4394 rm -f conftest.$ac_objext conftest.$ac_ext
4397 echo "$as_me: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4399 cat >conftest.$ac_ext <<_ACEOF
4400 #line $LINENO "configure"
4401 #include "confdefs.h"
4402 $ac_includes_default
4406 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4413 rm -f conftest.$ac_objext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } &&
4419 { ac_try='test -s conftest.$ac_objext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4427 cat >conftest.$ac_ext <<_ACEOF
4428 #line $LINENO "configure"
4429 #include "confdefs.h"
4430 $ac_includes_default
4434 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_lo=$ac_mid; break
4455 echo "$as_me: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4457 ac_hi=`expr '(' $ac_mid ')' - 1`
4458 if test $ac_mid -le $ac_hi; then
4462 ac_mid=`expr 2 '*' $ac_mid`
4464 rm -f conftest.$ac_objext conftest.$ac_ext
4467 echo "$as_me: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4471 rm -f conftest.$ac_objext conftest.$ac_ext
4473 rm -f conftest.$ac_objext conftest.$ac_ext
4474 # Binary search between lo and hi bounds.
4475 while test "x$ac_lo" != "x$ac_hi"; do
4476 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4477 cat >conftest.$ac_ext <<_ACEOF
4478 #line $LINENO "configure"
4479 #include "confdefs.h"
4480 $ac_includes_default
4484 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4505 echo "$as_me: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4507 ac_lo=`expr '(' $ac_mid ')' + 1`
4509 rm -f conftest.$ac_objext conftest.$ac_ext
4512 ?*) ac_cv_sizeof_int=$ac_lo;;
4513 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4514 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4515 { (exit 1); exit 1; }; } ;;
4518 if test "$cross_compiling" = yes; then
4519 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4520 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4521 { (exit 1); exit 1; }; }
4523 cat >conftest.$ac_ext <<_ACEOF
4524 #line $LINENO "configure"
4525 #include "confdefs.h"
4526 $ac_includes_default
4527 long longval () { return (long) (sizeof (int)); }
4528 unsigned long ulongval () { return (long) (sizeof (int)); }
4535 FILE *f = fopen ("conftest.val", "w");
4538 if (((long) (sizeof (int))) < 0)
4540 long i = longval ();
4541 if (i != ((long) (sizeof (int))))
4543 fprintf (f, "%ld\n", i);
4547 unsigned long i = ulongval ();
4548 if (i != ((long) (sizeof (int))))
4550 fprintf (f, "%lu\n", i);
4552 exit (ferror (f) || fclose (f) != 0);
4558 rm -f conftest$ac_exeext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560 (eval $ac_link) 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 ac_cv_sizeof_int=`cat conftest.val`
4571 echo "$as_me: program exited with status $ac_status" >&5
4572 echo "$as_me: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4575 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4576 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4577 { (exit 1); exit 1; }; }
4579 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4588 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4589 cat >>confdefs.h <<_ACEOF
4590 #define SIZEOF_INT $ac_cv_sizeof_int
4594 echo "$as_me:$LINENO: checking for long" >&5
4595 echo $ECHO_N "checking for long... $ECHO_C" >&6
4596 if test "${ac_cv_type_long+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 cat >conftest.$ac_ext <<_ACEOF
4600 #line $LINENO "configure"
4601 #include "confdefs.h"
4602 $ac_includes_default
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4628 echo "$as_me: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4632 rm -f conftest.$ac_objext conftest.$ac_ext
4634 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4635 echo "${ECHO_T}$ac_cv_type_long" >&6
4637 echo "$as_me:$LINENO: checking size of long" >&5
4638 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4639 if test "${ac_cv_sizeof_long+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 if test "$ac_cv_type_long" = yes; then
4643 # The cast to unsigned long works around a bug in the HP C Compiler
4644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4646 # This bug is HP SR number 8606223364.
4647 if test "$cross_compiling" = yes; then
4648 # Depending upon the size, compute the lo and hi bounds.
4649 cat >conftest.$ac_ext <<_ACEOF
4650 #line $LINENO "configure"
4651 #include "confdefs.h"
4652 $ac_includes_default
4656 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4663 rm -f conftest.$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 #include "confdefs.h"
4680 $ac_includes_default
4684 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4691 rm -f conftest.$ac_objext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693 (eval $ac_compile) 2>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -s conftest.$ac_objext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_hi=$ac_mid; break
4705 echo "$as_me: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4707 ac_lo=`expr $ac_mid + 1`
4708 if test $ac_lo -le $ac_mid; then
4712 ac_mid=`expr 2 '*' $ac_mid + 1`
4714 rm -f conftest.$ac_objext conftest.$ac_ext
4717 echo "$as_me: failed program was:" >&5
4718 cat conftest.$ac_ext >&5
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4721 #include "confdefs.h"
4722 $ac_includes_default
4726 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest.$ac_objext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4747 cat >conftest.$ac_ext <<_ACEOF
4748 #line $LINENO "configure"
4749 #include "confdefs.h"
4750 $ac_includes_default
4754 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -s conftest.$ac_objext'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 ac_lo=$ac_mid; break
4775 echo "$as_me: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4777 ac_hi=`expr '(' $ac_mid ')' - 1`
4778 if test $ac_mid -le $ac_hi; then
4782 ac_mid=`expr 2 '*' $ac_mid`
4784 rm -f conftest.$ac_objext conftest.$ac_ext
4787 echo "$as_me: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4793 rm -f conftest.$ac_objext conftest.$ac_ext
4794 # Binary search between lo and hi bounds.
4795 while test "x$ac_lo" != "x$ac_hi"; do
4796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 #include "confdefs.h"
4800 $ac_includes_default
4804 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -s conftest.$ac_objext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4825 echo "$as_me: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4827 ac_lo=`expr '(' $ac_mid ')' + 1`
4829 rm -f conftest.$ac_objext conftest.$ac_ext
4832 ?*) ac_cv_sizeof_long=$ac_lo;;
4833 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4834 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4835 { (exit 1); exit 1; }; } ;;
4838 if test "$cross_compiling" = yes; then
4839 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4840 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4841 { (exit 1); exit 1; }; }
4843 cat >conftest.$ac_ext <<_ACEOF
4844 #line $LINENO "configure"
4845 #include "confdefs.h"
4846 $ac_includes_default
4847 long longval () { return (long) (sizeof (long)); }
4848 unsigned long ulongval () { return (long) (sizeof (long)); }
4855 FILE *f = fopen ("conftest.val", "w");
4858 if (((long) (sizeof (long))) < 0)
4860 long i = longval ();
4861 if (i != ((long) (sizeof (long))))
4863 fprintf (f, "%ld\n", i);
4867 unsigned long i = ulongval ();
4868 if (i != ((long) (sizeof (long))))
4870 fprintf (f, "%lu\n", i);
4872 exit (ferror (f) || fclose (f) != 0);
4878 rm -f conftest$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 ac_cv_sizeof_long=`cat conftest.val`
4891 echo "$as_me: program exited with status $ac_status" >&5
4892 echo "$as_me: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4896 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4897 { (exit 1); exit 1; }; }
4899 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4907 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4908 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4909 cat >>confdefs.h <<_ACEOF
4910 #define SIZEOF_LONG $ac_cv_sizeof_long
4914 echo "$as_me:$LINENO: checking for float" >&5
4915 echo $ECHO_N "checking for float... $ECHO_C" >&6
4916 if test "${ac_cv_type_float+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 cat >conftest.$ac_ext <<_ACEOF
4920 #line $LINENO "configure"
4921 #include "confdefs.h"
4922 $ac_includes_default
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_cv_type_float=yes
4948 echo "$as_me: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4952 rm -f conftest.$ac_objext conftest.$ac_ext
4954 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4955 echo "${ECHO_T}$ac_cv_type_float" >&6
4957 echo "$as_me:$LINENO: checking size of float" >&5
4958 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4959 if test "${ac_cv_sizeof_float+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 if test "$ac_cv_type_float" = yes; then
4963 # The cast to unsigned long works around a bug in the HP C Compiler
4964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4966 # This bug is HP SR number 8606223364.
4967 if test "$cross_compiling" = yes; then
4968 # Depending upon the size, compute the lo and hi bounds.
4969 cat >conftest.$ac_ext <<_ACEOF
4970 #line $LINENO "configure"
4971 #include "confdefs.h"
4972 $ac_includes_default
4976 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4983 rm -f conftest.$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4997 cat >conftest.$ac_ext <<_ACEOF
4998 #line $LINENO "configure"
4999 #include "confdefs.h"
5000 $ac_includes_default
5004 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -s conftest.$ac_objext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_hi=$ac_mid; break
5025 echo "$as_me: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5027 ac_lo=`expr $ac_mid + 1`
5028 if test $ac_lo -le $ac_mid; then
5032 ac_mid=`expr 2 '*' $ac_mid + 1`
5034 rm -f conftest.$ac_objext conftest.$ac_ext
5037 echo "$as_me: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5039 cat >conftest.$ac_ext <<_ACEOF
5040 #line $LINENO "configure"
5041 #include "confdefs.h"
5042 $ac_includes_default
5046 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -s conftest.$ac_objext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5067 cat >conftest.$ac_ext <<_ACEOF
5068 #line $LINENO "configure"
5069 #include "confdefs.h"
5070 $ac_includes_default
5074 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5081 rm -f conftest.$ac_objext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5083 (eval $ac_compile) 2>&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -s conftest.$ac_objext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 ac_lo=$ac_mid; break
5095 echo "$as_me: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5097 ac_hi=`expr '(' $ac_mid ')' - 1`
5098 if test $ac_mid -le $ac_hi; then
5102 ac_mid=`expr 2 '*' $ac_mid`
5104 rm -f conftest.$ac_objext conftest.$ac_ext
5107 echo "$as_me: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5111 rm -f conftest.$ac_objext conftest.$ac_ext
5113 rm -f conftest.$ac_objext conftest.$ac_ext
5114 # Binary search between lo and hi bounds.
5115 while test "x$ac_lo" != "x$ac_hi"; do
5116 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 #include "confdefs.h"
5120 $ac_includes_default
5124 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -s conftest.$ac_objext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5145 echo "$as_me: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 ac_lo=`expr '(' $ac_mid ')' + 1`
5149 rm -f conftest.$ac_objext conftest.$ac_ext
5152 ?*) ac_cv_sizeof_float=$ac_lo;;
5153 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5154 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5158 if test "$cross_compiling" = yes; then
5159 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5160 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5161 { (exit 1); exit 1; }; }
5163 cat >conftest.$ac_ext <<_ACEOF
5164 #line $LINENO "configure"
5165 #include "confdefs.h"
5166 $ac_includes_default
5167 long longval () { return (long) (sizeof (float)); }
5168 unsigned long ulongval () { return (long) (sizeof (float)); }
5175 FILE *f = fopen ("conftest.val", "w");
5178 if (((long) (sizeof (float))) < 0)
5180 long i = longval ();
5181 if (i != ((long) (sizeof (float))))
5183 fprintf (f, "%ld\n", i);
5187 unsigned long i = ulongval ();
5188 if (i != ((long) (sizeof (float))))
5190 fprintf (f, "%lu\n", i);
5192 exit (ferror (f) || fclose (f) != 0);
5198 rm -f conftest$ac_exeext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200 (eval $ac_link) 2>&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_sizeof_float=`cat conftest.val`
5211 echo "$as_me: program exited with status $ac_status" >&5
5212 echo "$as_me: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5216 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5217 { (exit 1); exit 1; }; }
5219 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5224 ac_cv_sizeof_float=0
5227 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5228 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5229 cat >>confdefs.h <<_ACEOF
5230 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5234 echo "$as_me:$LINENO: checking for double" >&5
5235 echo $ECHO_N "checking for double... $ECHO_C" >&6
5236 if test "${ac_cv_type_double+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 cat >conftest.$ac_ext <<_ACEOF
5240 #line $LINENO "configure"
5241 #include "confdefs.h"
5242 $ac_includes_default
5248 if (sizeof (double))
5254 rm -f conftest.$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256 (eval $ac_compile) 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -s conftest.$ac_objext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_type_double=yes
5268 echo "$as_me: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 ac_cv_type_double=no
5272 rm -f conftest.$ac_objext conftest.$ac_ext
5274 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5275 echo "${ECHO_T}$ac_cv_type_double" >&6
5277 echo "$as_me:$LINENO: checking size of double" >&5
5278 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5279 if test "${ac_cv_sizeof_double+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 if test "$ac_cv_type_double" = yes; then
5283 # The cast to unsigned long works around a bug in the HP C Compiler
5284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5286 # This bug is HP SR number 8606223364.
5287 if test "$cross_compiling" = yes; then
5288 # Depending upon the size, compute the lo and hi bounds.
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5291 #include "confdefs.h"
5292 $ac_includes_default
5296 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5303 rm -f conftest.$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -s conftest.$ac_objext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5319 #include "confdefs.h"
5320 $ac_includes_default
5324 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_hi=$ac_mid; break
5345 echo "$as_me: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5347 ac_lo=`expr $ac_mid + 1`
5348 if test $ac_lo -le $ac_mid; then
5352 ac_mid=`expr 2 '*' $ac_mid + 1`
5354 rm -f conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 #include "confdefs.h"
5362 $ac_includes_default
5366 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5373 rm -f conftest.$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5387 cat >conftest.$ac_ext <<_ACEOF
5388 #line $LINENO "configure"
5389 #include "confdefs.h"
5390 $ac_includes_default
5394 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_lo=$ac_mid; break
5415 echo "$as_me: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5417 ac_hi=`expr '(' $ac_mid ')' - 1`
5418 if test $ac_mid -le $ac_hi; then
5422 ac_mid=`expr 2 '*' $ac_mid`
5424 rm -f conftest.$ac_objext conftest.$ac_ext
5427 echo "$as_me: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5431 rm -f conftest.$ac_objext conftest.$ac_ext
5433 rm -f conftest.$ac_objext conftest.$ac_ext
5434 # Binary search between lo and hi bounds.
5435 while test "x$ac_lo" != "x$ac_hi"; do
5436 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5437 cat >conftest.$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5439 #include "confdefs.h"
5440 $ac_includes_default
5444 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5465 echo "$as_me: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5467 ac_lo=`expr '(' $ac_mid ')' + 1`
5469 rm -f conftest.$ac_objext conftest.$ac_ext
5472 ?*) ac_cv_sizeof_double=$ac_lo;;
5473 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5474 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5475 { (exit 1); exit 1; }; } ;;
5478 if test "$cross_compiling" = yes; then
5479 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5480 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5481 { (exit 1); exit 1; }; }
5483 cat >conftest.$ac_ext <<_ACEOF
5484 #line $LINENO "configure"
5485 #include "confdefs.h"
5486 $ac_includes_default
5487 long longval () { return (long) (sizeof (double)); }
5488 unsigned long ulongval () { return (long) (sizeof (double)); }
5495 FILE *f = fopen ("conftest.val", "w");
5498 if (((long) (sizeof (double))) < 0)
5500 long i = longval ();
5501 if (i != ((long) (sizeof (double))))
5503 fprintf (f, "%ld\n", i);
5507 unsigned long i = ulongval ();
5508 if (i != ((long) (sizeof (double))))
5510 fprintf (f, "%lu\n", i);
5512 exit (ferror (f) || fclose (f) != 0);
5518 rm -f conftest$ac_exeext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 ac_cv_sizeof_double=`cat conftest.val`
5531 echo "$as_me: program exited with status $ac_status" >&5
5532 echo "$as_me: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5536 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5537 { (exit 1); exit 1; }; }
5539 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5544 ac_cv_sizeof_double=0
5547 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5548 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5549 cat >>confdefs.h <<_ACEOF
5550 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5556 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5557 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5558 if test "${ac_cv_lib_z_deflate+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 ac_check_lib_save_LIBS=$LIBS
5563 cat >conftest.$ac_ext <<_ACEOF
5564 #line $LINENO "configure"
5565 #include "confdefs.h"
5567 /* Override any gcc2 internal prototype to avoid an error. */
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 (eval $ac_link) 2>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -s conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 ac_cv_lib_z_deflate=yes
5596 echo "$as_me: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 ac_cv_lib_z_deflate=no
5600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5601 LIBS=$ac_check_lib_save_LIBS
5603 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5604 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5605 if test $ac_cv_lib_z_deflate = yes; then
5608 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5609 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5613 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5614 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5615 if test "${ac_cv_lib_m_sin+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 ac_check_lib_save_LIBS=$LIBS
5620 cat >conftest.$ac_ext <<_ACEOF
5621 #line $LINENO "configure"
5622 #include "confdefs.h"
5624 /* Override any gcc2 internal prototype to avoid an error. */
5628 /* We use char because int might match the return type of a gcc2
5629 builtin and then its argument prototype would still apply. */
5639 rm -f conftest.$ac_objext 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); } &&
5645 { ac_try='test -s conftest$ac_exeext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5653 echo "$as_me: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5658 LIBS=$ac_check_lib_save_LIBS
5660 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5661 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5662 if test $ac_cv_lib_m_sin = yes; then
5663 cat >>confdefs.h <<_ACEOF
5671 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5672 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5673 if test "${ac_cv_lib_curses_main+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 ac_check_lib_save_LIBS=$LIBS
5677 LIBS="-lcurses $LIBS"
5678 cat >conftest.$ac_ext <<_ACEOF
5679 #line $LINENO "configure"
5680 #include "confdefs.h"
5691 rm -f conftest.$ac_objext conftest$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_lib_curses_main=yes
5705 echo "$as_me: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5707 ac_cv_lib_curses_main=no
5709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5710 LIBS=$ac_check_lib_save_LIBS
5712 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5713 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5714 if test $ac_cv_lib_curses_main = yes; then
5720 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5721 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5722 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 ac_check_lib_save_LIBS=$LIBS
5726 LIBS="-lncurses $LIBS"
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5729 #include "confdefs.h"
5740 rm -f conftest.$ac_objext conftest$ac_exeext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5742 (eval $ac_link) 2>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_lib_ncurses_main=yes
5754 echo "$as_me: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5756 ac_cv_lib_ncurses_main=no
5758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5759 LIBS=$ac_check_lib_save_LIBS
5761 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5762 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5763 if test $ac_cv_lib_ncurses_main = yes; then
5769 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5770 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5771 if test "${ac_cv_lib_readline_main+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 ac_check_lib_save_LIBS=$LIBS
5775 LIBS="-lreadline -lcurses $LIBS"
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5778 #include "confdefs.h"
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_lib_readline_main=yes
5803 echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5805 ac_cv_lib_readline_main=no
5807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5808 LIBS=$ac_check_lib_save_LIBS
5810 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5811 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5812 if test $ac_cv_lib_readline_main = yes; then
5815 cat >>confdefs.h <<\_ACEOF
5816 #define HAVE_READLINE 1
5824 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
5825 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
5826 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 ac_check_lib_save_LIBS=$LIBS
5830 LIBS="-lwx_gtk-2.4 $LIBS"
5831 cat >conftest.$ac_ext <<_ACEOF
5832 #line $LINENO "configure"
5833 #include "confdefs.h"
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846 (eval $ac_link) 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -s conftest$ac_exeext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_lib_wx_gtk_2_4_main=yes
5858 echo "$as_me: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5860 ac_cv_lib_wx_gtk_2_4_main=no
5862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5863 LIBS=$ac_check_lib_save_LIBS
5865 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
5866 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
5867 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
5868 wxwin=true; wx_gtk=true;
5869 cat >>confdefs.h <<\_ACEOF
5870 #define HAVE_WXWINDOWS 1
5875 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
5876 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
5877 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 ac_check_lib_save_LIBS=$LIBS
5881 LIBS="-lwx_mac-2.4 $LIBS"
5882 cat >conftest.$ac_ext <<_ACEOF
5883 #line $LINENO "configure"
5884 #include "confdefs.h"
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897 (eval $ac_link) 2>&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -s conftest$ac_exeext'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; }; then
5907 ac_cv_lib_wx_mac_2_4_main=yes
5909 echo "$as_me: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 ac_cv_lib_wx_mac_2_4_main=no
5913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5914 LIBS=$ac_check_lib_save_LIBS
5916 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
5917 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
5918 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
5919 wxwin=true; wx_gtk=true;
5920 cat >>confdefs.h <<\_ACEOF
5921 #define HAVE_WXWINDOWS 1
5926 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
5927 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
5928 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_check_lib_save_LIBS=$LIBS
5933 cat >conftest.$ac_ext <<_ACEOF
5934 #line $LINENO "configure"
5935 #include "confdefs.h"
5937 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -s conftest$ac_exeext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5964 ac_cv_lib_fftw_fftw_one=yes
5966 echo "$as_me: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5968 ac_cv_lib_fftw_fftw_one=no
5970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5971 LIBS=$ac_check_lib_save_LIBS
5973 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
5974 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
5975 if test $ac_cv_lib_fftw_fftw_one = yes; then
5977 cat >>confdefs.h <<\_ACEOF
5985 echo "$as_me:$LINENO: checking for main in -lGL" >&5
5986 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5987 if test "${ac_cv_lib_GL_main+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_check_lib_save_LIBS=$LIBS
5991 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
5992 cat >conftest.$ac_ext <<_ACEOF
5993 #line $LINENO "configure"
5994 #include "confdefs.h"
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -s conftest$ac_exeext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 ac_cv_lib_GL_main=yes
6019 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6021 ac_cv_lib_GL_main=no
6023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6024 LIBS=$ac_check_lib_save_LIBS
6026 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6027 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6028 if test $ac_cv_lib_GL_main = yes; then
6034 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6035 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6036 if test "${ac_cv_lib_pthread_main+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 ac_check_lib_save_LIBS=$LIBS
6040 LIBS="-lpthread $LIBS"
6041 cat >conftest.$ac_ext <<_ACEOF
6042 #line $LINENO "configure"
6043 #include "confdefs.h"
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -s conftest$ac_exeext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_lib_pthread_main=yes
6068 echo "$as_me: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6070 ac_cv_lib_pthread_main=no
6072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6075 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6076 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6077 if test $ac_cv_lib_pthread_main = yes; then
6084 if test "$zlib" = "true" ; then
6085 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6086 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6087 if test "${ac_cv_lib_png_main+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 ac_check_lib_save_LIBS=$LIBS
6091 LIBS="-lpng -lz -lm $LIBS"
6092 cat >conftest.$ac_ext <<_ACEOF
6093 #line $LINENO "configure"
6094 #include "confdefs.h"
6105 rm -f conftest.$ac_objext conftest$ac_exeext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107 (eval $ac_link) 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -s conftest$ac_exeext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6117 ac_cv_lib_png_main=yes
6119 echo "$as_me: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6121 ac_cv_lib_png_main=no
6123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6124 LIBS=$ac_check_lib_save_LIBS
6126 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6127 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6128 if test $ac_cv_lib_png_main = yes; then
6130 cat >>confdefs.h <<\_ACEOF
6140 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6142 if test "${ac_cv_header_stdc+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6146 #line $LINENO "configure"
6147 #include "confdefs.h"
6154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } >/dev/null; then
6162 if test -s conftest.err; then
6163 ac_cpp_err=$ac_c_preproc_warn_flag
6170 if test -z "$ac_cpp_err"; then
6171 ac_cv_header_stdc=yes
6173 echo "$as_me: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 ac_cv_header_stdc=no
6177 rm -f conftest.err conftest.$ac_ext
6179 if test $ac_cv_header_stdc = yes; then
6180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6181 cat >conftest.$ac_ext <<_ACEOF
6182 #line $LINENO "configure"
6183 #include "confdefs.h"
6187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6188 $EGREP "memchr" >/dev/null 2>&1; then
6191 ac_cv_header_stdc=no
6197 if test $ac_cv_header_stdc = yes; then
6198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 #include "confdefs.h"
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "free" >/dev/null 2>&1; then
6209 ac_cv_header_stdc=no
6215 if test $ac_cv_header_stdc = yes; then
6216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6217 if test "$cross_compiling" = yes; then
6220 cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6222 #include "confdefs.h"
6224 #if ((' ' & 0x0FF) == 0x020)
6225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6228 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6229 || ('j' <= (c) && (c) <= 'r') \
6230 || ('s' <= (c) && (c) <= 'z'))
6231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6239 for (i = 0; i < 256; i++)
6240 if (XOR (islower (i), ISLOWER (i))
6241 || toupper (i) != TOUPPER (i))
6246 rm -f conftest$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248 (eval $ac_link) 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6259 echo "$as_me: program exited with status $ac_status" >&5
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6263 ac_cv_header_stdc=no
6265 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6269 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6270 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6271 if test $ac_cv_header_stdc = yes; then
6273 cat >>confdefs.h <<\_ACEOF
6274 #define STDC_HEADERS 1
6303 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
6305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6307 echo "$as_me:$LINENO: checking for $ac_header" >&5
6308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6315 # Is the header compilable?
6316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6318 cat >conftest.$ac_ext <<_ACEOF
6319 #line $LINENO "configure"
6320 #include "confdefs.h"
6321 $ac_includes_default
6322 #include <$ac_header>
6324 rm -f conftest.$ac_objext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6326 (eval $ac_compile) 2>&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -s conftest.$ac_objext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_header_compiler=yes
6338 echo "$as_me: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 ac_header_compiler=no
6342 rm -f conftest.$ac_objext conftest.$ac_ext
6343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6344 echo "${ECHO_T}$ac_header_compiler" >&6
6346 # Is the header present?
6347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6352 #include <$ac_header>
6354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } >/dev/null; then
6362 if test -s conftest.err; then
6363 ac_cpp_err=$ac_c_preproc_warn_flag
6370 if test -z "$ac_cpp_err"; then
6371 ac_header_preproc=yes
6373 echo "$as_me: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6375 ac_header_preproc=no
6377 rm -f conftest.err conftest.$ac_ext
6378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6379 echo "${ECHO_T}$ac_header_preproc" >&6
6381 # So? What about this header?
6382 case $ac_header_compiler:$ac_header_preproc in
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 eval "$as_ac_Header=$ac_header_preproc"
6403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6408 cat >>confdefs.h <<_ACEOF
6409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6417 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6418 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6419 if test "${ac_cv_c_const+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 #line $LINENO "configure"
6424 #include "confdefs.h"
6429 /* FIXME: Include the comments suggested by Paul. */
6431 /* Ultrix mips cc rejects this. */
6432 typedef int charset[2];
6434 /* SunOS 4.1.1 cc rejects this. */
6435 char const *const *ccp;
6437 /* NEC SVR4.0.2 mips cc rejects this. */
6438 struct point {int x, y;};
6439 static struct point const zero = {0,0};
6440 /* AIX XL C 1.02.0.0 rejects this.
6441 It does not let you subtract one const X* pointer from another in
6442 an arm of an if-expression whose if-part is not a constant
6444 const char *g = "string";
6445 ccp = &g + (g ? g-g : 0);
6446 /* HPUX 7.0 cc rejects these. */
6449 ccp = (char const *const *) p;
6450 { /* SCO 3.2v4 cc rejects this. */
6452 char const *s = 0 ? (char *) 0 : (char const *) 0;
6456 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6458 const int *foo = &x[0];
6461 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6462 typedef const int *iptr;
6466 { /* AIX XL C 1.02.0.0 rejects this saying
6467 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6468 struct s { int j; const int *ap[3]; };
6469 struct s *b; b->j = 5;
6471 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6498 rm -f conftest.$ac_objext conftest.$ac_ext
6500 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6501 echo "${ECHO_T}$ac_cv_c_const" >&6
6502 if test $ac_cv_c_const = no; then
6504 cat >>confdefs.h <<\_ACEOF
6510 echo "$as_me:$LINENO: checking for off_t" >&5
6511 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6512 if test "${ac_cv_type_off_t+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6517 #include "confdefs.h"
6518 $ac_includes_default
6530 rm -f conftest.$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
6536 { ac_try='test -s conftest.$ac_objext'
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_type_off_t=yes
6544 echo "$as_me: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6548 rm -f conftest.$ac_objext conftest.$ac_ext
6550 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6551 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6552 if test $ac_cv_type_off_t = yes; then
6556 cat >>confdefs.h <<_ACEOF
6562 echo "$as_me:$LINENO: checking for size_t" >&5
6563 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6564 if test "${ac_cv_type_size_t+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6576 if (sizeof (size_t))
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_type_size_t=yes
6596 echo "$as_me: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 ac_cv_type_size_t=no
6600 rm -f conftest.$ac_objext conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6603 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6604 if test $ac_cv_type_size_t = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define size_t unsigned
6614 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6615 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6616 if test "${ac_cv_struct_tm+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 cat >conftest.$ac_ext <<_ACEOF
6620 #line $LINENO "configure"
6621 #include "confdefs.h"
6622 #include <sys/types.h>
6628 struct tm *tp; tp->tm_sec;
6633 rm -f conftest.$ac_objext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6635 (eval $ac_compile) 2>&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } &&
6639 { ac_try='test -s conftest.$ac_objext'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6645 ac_cv_struct_tm=time.h
6647 echo "$as_me: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6649 ac_cv_struct_tm=sys/time.h
6651 rm -f conftest.$ac_objext conftest.$ac_ext
6653 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6654 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6655 if test $ac_cv_struct_tm = sys/time.h; then
6657 cat >>confdefs.h <<\_ACEOF
6658 #define TM_IN_SYS_TIME 1
6665 for ac_func in vprintf
6667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6668 echo "$as_me:$LINENO: checking for $ac_func" >&5
6669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6670 if eval "test \"\${$as_ac_var+set}\" = set"; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 cat >conftest.$ac_ext <<_ACEOF
6674 #line $LINENO "configure"
6675 #include "confdefs.h"
6676 /* System header to define __stub macros and hopefully few prototypes,
6677 which can conflict with char $ac_func (); below. */
6679 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6691 /* The GNU C library defines this for functions which it implements
6692 to always fail with ENOSYS. Some functions are actually named
6693 something starting with __ and the normal name is an alias. */
6694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6706 (eval $ac_link) 2>&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -s conftest$ac_exeext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 eval "$as_ac_var=yes"
6718 echo "$as_me: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6720 eval "$as_ac_var=no"
6722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6726 if test `eval echo '${'$as_ac_var'}'` = yes; then
6727 cat >>confdefs.h <<_ACEOF
6728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6731 echo "$as_me:$LINENO: checking for _doprnt" >&5
6732 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6733 if test "${ac_cv_func__doprnt+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6737 #line $LINENO "configure"
6738 #include "confdefs.h"
6739 /* System header to define __stub macros and hopefully few prototypes,
6740 which can conflict with char _doprnt (); below. */
6742 /* Override any gcc2 internal prototype to avoid an error. */
6746 /* We use char because int might match the return type of a gcc2
6747 builtin and then its argument prototype would still apply. */
6754 /* The GNU C library defines this for functions which it implements
6755 to always fail with ENOSYS. Some functions are actually named
6756 something starting with __ and the normal name is an alias. */
6757 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6767 rm -f conftest.$ac_objext conftest$ac_exeext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769 (eval $ac_link) 2>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -s conftest$ac_exeext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 ac_cv_func__doprnt=yes
6781 echo "$as_me: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6783 ac_cv_func__doprnt=no
6785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6788 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6789 if test $ac_cv_func__doprnt = yes; then
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_DOPRNT 1
6808 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
6810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6811 echo "$as_me:$LINENO: checking for $ac_func" >&5
6812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6813 if eval "test \"\${$as_ac_var+set}\" = set"; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 cat >conftest.$ac_ext <<_ACEOF
6817 #line $LINENO "configure"
6818 #include "confdefs.h"
6819 /* System header to define __stub macros and hopefully few prototypes,
6820 which can conflict with char $ac_func (); below. */
6822 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6834 /* The GNU C library defines this for functions which it implements
6835 to always fail with ENOSYS. Some functions are actually named
6836 something starting with __ and the normal name is an alias. */
6837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6849 (eval $ac_link) 2>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -s conftest$ac_exeext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 eval "$as_ac_var=yes"
6861 echo "$as_me: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6863 eval "$as_ac_var=no"
6865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6869 if test `eval echo '${'$as_ac_var'}'` = yes; then
6870 cat >>confdefs.h <<_ACEOF
6871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6877 echo "$as_me:$LINENO: checking for basename" >&5
6878 echo $ECHO_N "checking for basename... $ECHO_C" >&6
6879 if test "${ac_cv_func_basename+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 cat >conftest.$ac_ext <<_ACEOF
6883 #line $LINENO "configure"
6884 #include "confdefs.h"
6885 /* System header to define __stub macros and hopefully few prototypes,
6886 which can conflict with char basename (); below. */
6888 /* Override any gcc2 internal prototype to avoid an error. */
6892 /* We use char because int might match the return type of a gcc2
6893 builtin and then its argument prototype would still apply. */
6900 /* The GNU C library defines this for functions which it implements
6901 to always fail with ENOSYS. Some functions are actually named
6902 something starting with __ and the normal name is an alias. */
6903 #if defined (__stub_basename) || defined (__stub___basename)
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915 (eval $ac_link) 2>&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try='test -s conftest$ac_exeext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_cv_func_basename=yes
6927 echo "$as_me: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6929 ac_cv_func_basename=no
6931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6933 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
6934 echo "${ECHO_T}$ac_cv_func_basename" >&6
6936 echo "$as_me:$LINENO: checking for setjmp" >&5
6937 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
6938 if test "${ac_cv_func_setjmp+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 cat >conftest.$ac_ext <<_ACEOF
6942 #line $LINENO "configure"
6943 #include "confdefs.h"
6944 /* System header to define __stub macros and hopefully few prototypes,
6945 which can conflict with char setjmp (); below. */
6947 /* Override any gcc2 internal prototype to avoid an error. */
6951 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */
6959 /* The GNU C library defines this for functions which it implements
6960 to always fail with ENOSYS. Some functions are actually named
6961 something starting with __ and the normal name is an alias. */
6962 #if defined (__stub_setjmp) || defined (__stub___setjmp)
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974 (eval $ac_link) 2>&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_func_setjmp=yes
6986 echo "$as_me: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 ac_cv_func_setjmp=no
6990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6992 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
6993 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
6995 echo "$as_me:$LINENO: checking for setpriority" >&5
6996 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
6997 if test "${ac_cv_func_setpriority+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7001 #line $LINENO "configure"
7002 #include "confdefs.h"
7003 /* System header to define __stub macros and hopefully few prototypes,
7004 which can conflict with char setpriority (); below. */
7006 /* Override any gcc2 internal prototype to avoid an error. */
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7012 char setpriority ();
7018 /* The GNU C library defines this for functions which it implements
7019 to always fail with ENOSYS. Some functions are actually named
7020 something starting with __ and the normal name is an alias. */
7021 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7031 rm -f conftest.$ac_objext conftest$ac_exeext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033 (eval $ac_link) 2>&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try='test -s conftest$ac_exeext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_func_setpriority=yes
7045 echo "$as_me: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 ac_cv_func_setpriority=no
7049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7051 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7052 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7054 echo "$as_me:$LINENO: checking for time" >&5
7055 echo $ECHO_N "checking for time... $ECHO_C" >&6
7056 if test "${ac_cv_func_time+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 cat >conftest.$ac_ext <<_ACEOF
7060 #line $LINENO "configure"
7061 #include "confdefs.h"
7062 /* System header to define __stub macros and hopefully few prototypes,
7063 which can conflict with char time (); below. */
7065 /* Override any gcc2 internal prototype to avoid an error. */
7069 /* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7077 /* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080 #if defined (__stub_time) || defined (__stub___time)
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7092 (eval $ac_link) 2>&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -s conftest$ac_exeext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7104 echo "$as_me: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7110 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7111 echo "${ECHO_T}$ac_cv_func_time" >&6
7113 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7114 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7115 if test "${ac_cv_func_gettimeofday+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7120 #include "confdefs.h"
7121 /* System header to define __stub macros and hopefully few prototypes,
7122 which can conflict with char gettimeofday (); below. */
7124 /* Override any gcc2 internal prototype to avoid an error. */
7128 /* We use char because int might match the return type of a gcc2
7129 builtin and then its argument prototype would still apply. */
7130 char gettimeofday ();
7136 /* The GNU C library defines this for functions which it implements
7137 to always fail with ENOSYS. Some functions are actually named
7138 something starting with __ and the normal name is an alias. */
7139 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_func_gettimeofday=yes
7163 echo "$as_me: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7165 ac_cv_func_gettimeofday=no
7167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7169 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7170 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7173 if test "${OSTYPE}" = "cygwin" ; then
7176 echo "$as_me:$LINENO: checking for getopt_long" >&5
7177 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7178 if test "${ac_cv_func_getopt_long+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 cat >conftest.$ac_ext <<_ACEOF
7182 #line $LINENO "configure"
7183 #include "confdefs.h"
7184 /* System header to define __stub macros and hopefully few prototypes,
7185 which can conflict with char getopt_long (); below. */
7187 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7193 char getopt_long ();
7199 /* The GNU C library defines this for functions which it implements
7200 to always fail with ENOSYS. Some functions are actually named
7201 something starting with __ and the normal name is an alias. */
7202 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7212 rm -f conftest.$ac_objext conftest$ac_exeext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214 (eval $ac_link) 2>&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try='test -s conftest$ac_exeext'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7224 ac_cv_func_getopt_long=yes
7226 echo "$as_me: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7228 ac_cv_func_getopt_long=no
7230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7232 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7233 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7234 if test $ac_cv_func_getopt_long = yes; then
7242 if test "${getopt_long}" = "false" ; then
7243 my_includes="$my_includes -I../getopt"
7245 cat >>confdefs.h <<\_ACEOF
7246 #define HAVE_GETOPT_LONG 1
7249 ctlibs_base="$ctlibs_base -lgetopt"
7250 LDFLAGS="$LDFLAGS -L../getopt"
7254 INCLUDED_GETOPT_LONG_TRUE=
7255 INCLUDED_GETOPT_LONG_FALSE='#'
7257 INCLUDED_GETOPT_LONG_TRUE='#'
7258 INCLUDED_GETOPT_LONG_FALSE=
7263 if test "${readline}" = "true" ; then
7264 ctlibs_base="$ctlibs_base -lreadline"
7265 if test "${ncurses}" = "true"; then
7266 ctlibs_base="$ctlibs_base -lncurses"
7267 elif test "${curses}" = "true"; then
7268 ctlibs_base="$ctlibs_base -lcurses"
7272 echo "$as_me:$LINENO: checking debug" >&5
7273 echo $ECHO_N "checking debug... $ECHO_C" >&6
7274 # Check whether --enable-debug or --disable-debug was given.
7275 if test "${enable_debug+set}" = set; then
7276 enableval="$enable_debug"
7277 case "${enableval}" in
7279 echo "$as_me:$LINENO: result: yes" >&5
7280 echo "${ECHO_T}yes" >&6
7283 echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6
7286 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7287 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7291 debug=false; echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7296 if test "$debug" = "true"; then
7305 if test "$datadir" != "" ; then
7306 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7309 if test "$debug" = "true" ; then
7310 CFLAGS="$CFLAGS -g -DDEBUG"
7312 cat >>confdefs.h <<\_ACEOF
7317 CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
7319 cat >>confdefs.h <<\_ACEOF
7325 if test "${pthread}" = "true" ; then
7327 cat >>confdefs.h <<\_ACEOF
7328 #define HAVE_WXTHREADS 1
7333 echo "$as_me:$LINENO: checking sstream" >&5
7334 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7335 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7336 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
7337 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7339 cat >>confdefs.h <<\_ACEOF
7340 #define HAVE_SSTREAM 1
7343 echo "$as_me:$LINENO: result: yes" >&5
7344 echo "${ECHO_T}yes" >&6
7346 echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7350 CFLAGS="$CFLAGS -Wall"
7351 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7352 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7353 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7354 if test "${enable_verbose_warnings+set}" = set; then
7355 enableval="$enable_verbose_warnings"
7356 case "$enableval" in
7358 echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7360 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7363 echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6
7368 echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7373 echo "$as_me:$LINENO: checking static executables" >&5
7374 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7375 # Check whether --enable-static or --disable-static was given.
7376 if test "${enable_static+set}" = set; then
7377 enableval="$enable_static"
7378 case "$enableval" in
7380 echo "$as_me:$LINENO: result: yes" >&5
7381 echo "${ECHO_T}yes" >&6
7382 CFLAGS="$CFLAGS --static"
7385 echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6
7390 echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7396 # Check whether --with-lam or --without-lam was given.
7397 if test "${with_lam+set}" = set; then
7399 if test "$withval" != "no" ; then
7405 if test "$withval" != "no" ; then
7406 if test "$prefix" != "NONE" ; then
7407 trylamdir="$trylamdir $prefix"
7410 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7411 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7412 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7413 if test -x "$testlamdir/bin/hcp" ; then
7414 if test "$testlamdir" != "/usr"; then
7415 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7416 CFLAGS="$CFLAGS -I$testlamdir/include"
7418 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7419 lamdir="$testlamdir"
7426 echo "$as_me:$LINENO: result: $lamdir" >&5
7427 echo "${ECHO_T}$lamdir" >&6
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7435 # Check whether --with-ctn or --without-ctn was given.
7436 if test "${with_ctn+set}" = set; then
7438 if test "$withval" != "no" ; then
7444 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7445 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7446 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7447 echo "$as_me:$LINENO: result: disabled" >&5
7448 echo "${ECHO_T}disabled" >&6
7450 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7451 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7452 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7453 if test -f "$testctndir/libctn.a" ; then
7454 LDFLAGS="$LDFLAGS -L$testctndir"
7459 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7460 if test -f "$testctndir/ctn_os.h" ; then
7461 CFLAGS="$CFLAGS -I$testctndir"
7466 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7469 cat >>confdefs.h <<\_ACEOF
7470 #define HAVE_CTN_DICOM 1
7473 echo "$as_me:$LINENO: result: yes" >&5
7474 echo "${ECHO_T}yes" >&6
7476 echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7481 echo "$as_me:$LINENO: checking for web access" >&5
7482 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7484 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7485 if test "${with_cgibin_dir+set}" = set; then
7486 withval="$with_cgibin_dir"
7487 cgibindir=$withval ;
7491 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7492 if test "${with_cgibin_url+set}" = set; then
7493 withval="$with_cgibin_url"
7494 cgibinurl=$withval ;
7498 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7499 if test "${with_webdata_dir+set}" = set; then
7500 withval="$with_webdata_dir"
7501 webdatadir=$withval ;
7505 # Check whether --with-webdata-url or --without-webdata-url was given.
7506 if test "${with_webdata_url+set}" = set; then
7507 withval="$with_webdata_url"
7508 webdataurl=$withval ;
7512 # Check whether --with-html-dir or --without-html-dir was given.
7513 if test "${with_html_dir+set}" = set; then
7514 withval="$with_html_dir"
7518 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7519 cgiprograms="ctsim.cgi ctsim.conf"
7523 if test -n "$htmldir" ; then
7524 htmldata=simulate.html
7529 if test -n "$htmldir"; then
7538 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7541 echo "$as_me:$LINENO: result: yes" >&5
7542 echo "${ECHO_T}yes" >&6
7543 if test -z "$cgibindir" ; then
7544 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7545 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7546 { (exit 1); exit 1; }; }
7547 elif test -z "$cgibinurl" ; then
7548 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7549 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7550 { (exit 1); exit 1; }; }
7551 elif test -z "$webdatadir" ; then
7552 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7553 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7554 { (exit 1); exit 1; }; }
7555 elif test -z "$webdataurl" ; then
7556 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7557 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7558 { (exit 1); exit 1; }; }
7559 elif test -z "$htmldir" ; then
7560 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7561 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7562 { (exit 1); exit 1; }; }
7565 echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6
7571 if test -n "$lamdir"; then
7581 echo "$as_me:$LINENO: checking for X" >&5
7582 echo $ECHO_N "checking for X... $ECHO_C" >&6
7585 # Check whether --with-x or --without-x was given.
7586 if test "${with_x+set}" = set; then
7590 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7591 if test "x$with_x" = xno; then
7592 # The user explicitly disabled X.
7595 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7596 # Both variables are already set.
7599 if test "${ac_cv_have_x+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 # One or both of the vars are not set, and there is no cached value.
7603 ac_x_includes=no ac_x_libraries=no
7605 if mkdir conftest.dir; then
7607 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7608 cat >Imakefile <<'_ACEOF'
7610 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7612 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7613 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7614 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7615 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7616 for ac_extension in a so sl; do
7617 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7618 test -f $ac_im_libdir/libX11.$ac_extension; then
7619 ac_im_usrlibdir=$ac_im_libdir; break
7622 # Screen out bogus values from the imake configuration. They are
7623 # bogus both because they are the default anyway, and because
7624 # using them would break gcc on systems where it needs fixed includes.
7625 case $ac_im_incroot in
7627 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7629 case $ac_im_usrlibdir in
7631 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7638 # Standard set of common directories for X headers.
7639 # Check X11 before X11Rn because it is often a symlink to the current release.
7651 /usr/local/X11/include
7652 /usr/local/X11R6/include
7653 /usr/local/X11R5/include
7654 /usr/local/X11R4/include
7656 /usr/local/include/X11
7657 /usr/local/include/X11R6
7658 /usr/local/include/X11R5
7659 /usr/local/include/X11R4
7663 /usr/XFree86/include/X11
7667 /usr/unsupported/include
7669 /usr/local/x11r5/include
7670 /usr/lpp/Xamples/include
7672 /usr/openwin/include
7673 /usr/openwin/share/include'
7675 if test "$ac_x_includes" = no; then
7676 # Guess where to find include files, by looking for Intrinsic.h.
7677 # First, try using that file with no special directory specified.
7678 cat >conftest.$ac_ext <<_ACEOF
7679 #line $LINENO "configure"
7680 #include "confdefs.h"
7681 #include <X11/Intrinsic.h>
7683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7686 grep -v '^ *+' conftest.er1 >conftest.err
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } >/dev/null; then
7691 if test -s conftest.err; then
7692 ac_cpp_err=$ac_c_preproc_warn_flag
7699 if test -z "$ac_cpp_err"; then
7700 # We can compile using X headers with no special include directory.
7703 echo "$as_me: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7705 for ac_dir in $ac_x_header_dirs; do
7706 if test -r "$ac_dir/X11/Intrinsic.h"; then
7707 ac_x_includes=$ac_dir
7712 rm -f conftest.err conftest.$ac_ext
7713 fi # $ac_x_includes = no
7715 if test "$ac_x_libraries" = no; then
7716 # Check for the libraries.
7717 # See if we find them without any special options.
7718 # Don't add to $LIBS permanently.
7721 cat >conftest.$ac_ext <<_ACEOF
7722 #line $LINENO "configure"
7723 #include "confdefs.h"
7724 #include <X11/Intrinsic.h>
7733 rm -f conftest.$ac_objext conftest$ac_exeext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7735 (eval $ac_link) 2>&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try='test -s conftest$ac_exeext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7746 # We can link X programs with no special library path.
7749 echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7752 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7754 # Don't even attempt the hair of trying to link an X program!
7755 for ac_extension in a so sl; do
7756 if test -r $ac_dir/libXt.$ac_extension; then
7757 ac_x_libraries=$ac_dir
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764 fi # $ac_x_libraries = no
7766 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7767 # Didn't find X anywhere. Cache the known absence of X.
7768 ac_cv_have_x="have_x=no"
7770 # Record where we found X for the cache.
7771 ac_cv_have_x="have_x=yes \
7772 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7777 eval "$ac_cv_have_x"
7780 if test "$have_x" != yes; then
7781 echo "$as_me:$LINENO: result: $have_x" >&5
7782 echo "${ECHO_T}$have_x" >&6
7785 # If each of the values was on the command line, it overrides each guess.
7786 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7787 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7788 # Update the cache value to reflect the command line values.
7789 ac_cv_have_x="have_x=yes \
7790 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7791 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7792 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7795 if test "$no_x" = yes; then
7796 # Not all programs may use this symbol, but it does not hurt to define it.
7798 cat >>confdefs.h <<\_ACEOF
7799 #define X_DISPLAY_MISSING 1
7802 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7804 if test -n "$x_includes"; then
7805 X_CFLAGS="$X_CFLAGS -I$x_includes"
7808 # It would also be nice to do this for all -L options, not just this one.
7809 if test -n "$x_libraries"; then
7810 X_LIBS="$X_LIBS -L$x_libraries"
7811 # For Solaris; some versions of Sun CC require a space after -R and
7812 # others require no space. Words are not sufficient . . . .
7813 case `(uname -sr) 2>/dev/null` in
7815 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7816 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7817 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7818 cat >conftest.$ac_ext <<_ACEOF
7819 #line $LINENO "configure"
7820 #include "confdefs.h"
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832 (eval $ac_link) 2>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -s conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7844 echo "$as_me: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7849 if test $ac_R_nospace = yes; then
7850 echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7852 X_LIBS="$X_LIBS -R$x_libraries"
7854 LIBS="$ac_xsave_LIBS -R $x_libraries"
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7869 (eval $ac_link) 2>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -s conftest$ac_exeext'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7881 echo "$as_me: failed program was:" >&5
7882 cat conftest.$ac_ext >&5
7885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7886 if test $ac_R_space = yes; then
7887 echo "$as_me:$LINENO: result: yes" >&5
7888 echo "${ECHO_T}yes" >&6
7889 X_LIBS="$X_LIBS -R $x_libraries"
7891 echo "$as_me:$LINENO: result: neither works" >&5
7892 echo "${ECHO_T}neither works" >&6
7899 # Check for system-dependent libraries X programs must link with.
7900 # Do this before checking for the system-independent R6 libraries
7901 # (-lICE), since we may need -lsocket or whatever for X linking.
7903 if test "$ISC" = yes; then
7904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7906 # Martyn Johnson says this is needed for Ultrix, if the X
7907 # libraries were built with DECnet support. And Karl Berry says
7908 # the Alpha needs dnet_stub (dnet does not exist).
7909 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7914 /* Override any gcc2 internal prototype to avoid an error. */
7918 /* We use char because int might match the return type of a gcc2
7919 builtin and then its argument prototype would still apply. */
7920 char XOpenDisplay ();
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7931 (eval $ac_link) 2>&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -s conftest$ac_exeext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7943 echo "$as_me: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7945 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7946 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7947 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 ac_check_lib_save_LIBS=$LIBS
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7954 #include "confdefs.h"
7956 /* Override any gcc2 internal prototype to avoid an error. */
7960 /* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7973 (eval $ac_link) 2>&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -s conftest$ac_exeext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_cv_lib_dnet_dnet_ntoa=yes
7985 echo "$as_me: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7987 ac_cv_lib_dnet_dnet_ntoa=no
7989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7990 LIBS=$ac_check_lib_save_LIBS
7992 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7993 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7994 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7995 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7998 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7999 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8000 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8001 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 ac_check_lib_save_LIBS=$LIBS
8005 LIBS="-ldnet_stub $LIBS"
8006 cat >conftest.$ac_ext <<_ACEOF
8007 #line $LINENO "configure"
8008 #include "confdefs.h"
8010 /* Override any gcc2 internal prototype to avoid an error. */
8014 /* We use char because int might match the return type of a gcc2
8015 builtin and then its argument prototype would still apply. */
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027 (eval $ac_link) 2>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8039 echo "$as_me: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 ac_cv_lib_dnet_stub_dnet_ntoa=no
8043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8044 LIBS=$ac_check_lib_save_LIBS
8046 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8047 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8048 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8049 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8055 LIBS="$ac_xsave_LIBS"
8057 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8058 # to get the SysV transport functions.
8059 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8061 # The nsl library prevents programs from opening the X display
8062 # on Irix 5.2, according to T.E. Dickey.
8063 # The functions gethostbyname, getservbyname, and inet_addr are
8064 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8065 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8066 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8067 if test "${ac_cv_func_gethostbyname+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 cat >conftest.$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8072 #include "confdefs.h"
8073 /* System header to define __stub macros and hopefully few prototypes,
8074 which can conflict with char gethostbyname (); below. */
8076 /* Override any gcc2 internal prototype to avoid an error. */
8080 /* We use char because int might match the return type of a gcc2
8081 builtin and then its argument prototype would still apply. */
8082 char gethostbyname ();
8088 /* The GNU C library defines this for functions which it implements
8089 to always fail with ENOSYS. Some functions are actually named
8090 something starting with __ and the normal name is an alias. */
8091 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest$ac_exeext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_cv_func_gethostbyname=yes
8115 echo "$as_me: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 ac_cv_func_gethostbyname=no
8119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8121 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8122 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8124 if test $ac_cv_func_gethostbyname = no; then
8125 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8126 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8127 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 ac_check_lib_save_LIBS=$LIBS
8132 cat >conftest.$ac_ext <<_ACEOF
8133 #line $LINENO "configure"
8134 #include "confdefs.h"
8136 /* Override any gcc2 internal prototype to avoid an error. */
8140 /* We use char because int might match the return type of a gcc2
8141 builtin and then its argument prototype would still apply. */
8142 char gethostbyname ();
8151 rm -f conftest.$ac_objext conftest$ac_exeext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8153 (eval $ac_link) 2>&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 ac_cv_lib_nsl_gethostbyname=yes
8165 echo "$as_me: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8167 ac_cv_lib_nsl_gethostbyname=no
8169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8170 LIBS=$ac_check_lib_save_LIBS
8172 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8173 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8174 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8175 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8178 if test $ac_cv_lib_nsl_gethostbyname = no; then
8179 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8180 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8181 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 ac_check_lib_save_LIBS=$LIBS
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8188 #include "confdefs.h"
8190 /* Override any gcc2 internal prototype to avoid an error. */
8194 /* We use char because int might match the return type of a gcc2
8195 builtin and then its argument prototype would still apply. */
8196 char gethostbyname ();
8205 rm -f conftest.$ac_objext conftest$ac_exeext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8207 (eval $ac_link) 2>&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -s conftest$ac_exeext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 ac_cv_lib_bsd_gethostbyname=yes
8219 echo "$as_me: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8221 ac_cv_lib_bsd_gethostbyname=no
8223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8224 LIBS=$ac_check_lib_save_LIBS
8226 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8227 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8228 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8229 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8235 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8236 # socket/setsockopt and other routines are undefined under SCO ODT
8237 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8238 # on later versions), says Simon Leinen: it contains gethostby*
8239 # variants that don't use the name server (or something). -lsocket
8240 # must be given before -lnsl if both are needed. We assume that
8241 # if connect needs -lnsl, so does gethostbyname.
8242 echo "$as_me:$LINENO: checking for connect" >&5
8243 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8244 if test "${ac_cv_func_connect+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 cat >conftest.$ac_ext <<_ACEOF
8248 #line $LINENO "configure"
8249 #include "confdefs.h"
8250 /* System header to define __stub macros and hopefully few prototypes,
8251 which can conflict with char connect (); below. */
8253 /* Override any gcc2 internal prototype to avoid an error. */
8257 /* We use char because int might match the return type of a gcc2
8258 builtin and then its argument prototype would still apply. */
8265 /* The GNU C library defines this for functions which it implements
8266 to always fail with ENOSYS. Some functions are actually named
8267 something starting with __ and the normal name is an alias. */
8268 #if defined (__stub_connect) || defined (__stub___connect)
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_func_connect=yes
8292 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8294 ac_cv_func_connect=no
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8299 echo "${ECHO_T}$ac_cv_func_connect" >&6
8301 if test $ac_cv_func_connect = no; then
8302 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8303 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8304 if test "${ac_cv_lib_socket_connect+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 ac_check_lib_save_LIBS=$LIBS
8308 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8309 cat >conftest.$ac_ext <<_ACEOF
8310 #line $LINENO "configure"
8311 #include "confdefs.h"
8313 /* Override any gcc2 internal prototype to avoid an error. */
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330 (eval $ac_link) 2>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_cv_lib_socket_connect=yes
8342 echo "$as_me: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8344 ac_cv_lib_socket_connect=no
8346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8347 LIBS=$ac_check_lib_save_LIBS
8349 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8350 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8351 if test $ac_cv_lib_socket_connect = yes; then
8352 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8357 # Guillermo Gomez says -lposix is necessary on A/UX.
8358 echo "$as_me:$LINENO: checking for remove" >&5
8359 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8360 if test "${ac_cv_func_remove+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 cat >conftest.$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 #include "confdefs.h"
8366 /* System header to define __stub macros and hopefully few prototypes,
8367 which can conflict with char remove (); below. */
8369 /* Override any gcc2 internal prototype to avoid an error. */
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8381 /* The GNU C library defines this for functions which it implements
8382 to always fail with ENOSYS. Some functions are actually named
8383 something starting with __ and the normal name is an alias. */
8384 #if defined (__stub_remove) || defined (__stub___remove)
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -s conftest$ac_exeext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_func_remove=yes
8408 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 ac_cv_func_remove=no
8412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8415 echo "${ECHO_T}$ac_cv_func_remove" >&6
8417 if test $ac_cv_func_remove = no; then
8418 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8419 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8420 if test "${ac_cv_lib_posix_remove+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lposix $LIBS"
8425 cat >conftest.$ac_ext <<_ACEOF
8426 #line $LINENO "configure"
8427 #include "confdefs.h"
8429 /* Override any gcc2 internal prototype to avoid an error. */
8433 /* We use char because int might match the return type of a gcc2
8434 builtin and then its argument prototype would still apply. */
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_cv_lib_posix_remove=yes
8458 echo "$as_me: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8460 ac_cv_lib_posix_remove=no
8462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_lib_save_LIBS
8465 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8466 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8467 if test $ac_cv_lib_posix_remove = yes; then
8468 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8473 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8474 echo "$as_me:$LINENO: checking for shmat" >&5
8475 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8476 if test "${ac_cv_func_shmat+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 cat >conftest.$ac_ext <<_ACEOF
8480 #line $LINENO "configure"
8481 #include "confdefs.h"
8482 /* System header to define __stub macros and hopefully few prototypes,
8483 which can conflict with char shmat (); below. */
8485 /* Override any gcc2 internal prototype to avoid an error. */
8489 /* We use char because int might match the return type of a gcc2
8490 builtin and then its argument prototype would still apply. */
8497 /* The GNU C library defines this for functions which it implements
8498 to always fail with ENOSYS. Some functions are actually named
8499 something starting with __ and the normal name is an alias. */
8500 #if defined (__stub_shmat) || defined (__stub___shmat)
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512 (eval $ac_link) 2>&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 ac_cv_func_shmat=yes
8524 echo "$as_me: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8530 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8531 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8533 if test $ac_cv_func_shmat = no; then
8534 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8535 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8536 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 ac_check_lib_save_LIBS=$LIBS
8541 cat >conftest.$ac_ext <<_ACEOF
8542 #line $LINENO "configure"
8543 #include "confdefs.h"
8545 /* Override any gcc2 internal prototype to avoid an error. */
8549 /* We use char because int might match the return type of a gcc2
8550 builtin and then its argument prototype would still apply. */
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562 (eval $ac_link) 2>&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_cv_lib_ipc_shmat=yes
8574 echo "$as_me: failed program was:" >&5
8575 cat conftest.$ac_ext >&5
8576 ac_cv_lib_ipc_shmat=no
8578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8581 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8582 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8583 if test $ac_cv_lib_ipc_shmat = yes; then
8584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8590 # Check for libraries that X11R6 Xt/Xaw programs need.
8591 ac_save_LDFLAGS=$LDFLAGS
8592 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8593 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8594 # check for ICE first), but we must link in the order -lSM -lICE or
8595 # we get undefined symbols. So assume we have SM if we have ICE.
8596 # These have to be linked with before -lX11, unlike the other
8597 # libraries we check for below, so use a different variable.
8598 # John Interrante, Karl Berry
8599 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8600 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8601 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 ac_check_lib_save_LIBS=$LIBS
8605 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8610 /* Override any gcc2 internal prototype to avoid an error. */
8614 /* We use char because int might match the return type of a gcc2
8615 builtin and then its argument prototype would still apply. */
8616 char IceConnectionNumber ();
8620 IceConnectionNumber ();
8625 rm -f conftest.$ac_objext conftest$ac_exeext
8626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8627 (eval $ac_link) 2>&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } &&
8631 { ac_try='test -s conftest$ac_exeext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_lib_ICE_IceConnectionNumber=yes
8639 echo "$as_me: failed program was:" >&5
8640 cat conftest.$ac_ext >&5
8641 ac_cv_lib_ICE_IceConnectionNumber=no
8643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_lib_save_LIBS
8646 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8647 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8648 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8649 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8652 LDFLAGS=$ac_save_LDFLAGS
8663 X_TOOLKIT_LIBS="-lXt"
8664 X_BASIC_LIBS="-lXext -lX11 -lXmu"
8666 our_saved_LDFLAGS="$LDFLAGS"
8667 LDFLAGS="$X_LIBS $LDFLAGS"
8668 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
8669 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
8670 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 ac_check_lib_save_LIBS=$LIBS
8674 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
8675 cat >conftest.$ac_ext <<_ACEOF
8676 #line $LINENO "configure"
8677 #include "confdefs.h"
8679 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8685 char XtToolkitThreadInitialize ();
8689 XtToolkitThreadInitialize ();
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>&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_lib_Xt_XtToolkitThreadInitialize=yes
8708 echo "$as_me: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
8712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8715 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
8716 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
8717 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
8719 cat >>confdefs.h <<\_ACEOF
8720 #define X_THREAD_SUPPORT 1
8725 LDFLAGS="$our_saved_LDFLAGS"
8729 if test "x$no_x" = "xyes"; then
8738 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
8741 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8743 echo "$as_me:$LINENO: checking for X" >&5
8744 echo $ECHO_N "checking for X... $ECHO_C" >&6
8745 if test "$no_x" != "yes" ; then
8747 cat >>confdefs.h <<\_ACEOF
8751 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
8752 my_includes="$my_includes -I/usr/X11R6/include"
8753 ctlib_graphics="$ctlibs_base -lctgraphics"
8754 echo "$as_me:$LINENO: result: yes" >&5
8755 echo "${ECHO_T}yes" >&6
8756 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
8757 if test "$libgl" = "true" ; then
8758 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
8759 if test "$wxwin" = "true" ; then
8760 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
8763 if test "$wxwin" = "true" ; then
8765 cat >>confdefs.h <<\_ACEOF
8781 echo "$as_me:$LINENO: result: no" >&5
8782 echo "${ECHO_T}no" >&6
8785 if test "$png" = "true" ; then
8786 ctlibs_tools="$ctlibs_tools -lpng"
8788 if test "$zlib" = "true" ; then
8789 ctlibs_tools="$ctlibs_tools -lz"
8791 if test "$fftw" = "true" ; then
8792 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
8794 if test "$ctn" = "true"; then
8795 ctlibs_tools="$ctlibs_tools -lctn"
8798 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
8799 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
8800 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 ac_check_lib_save_LIBS=$LIBS
8804 LIBS="-ldmallocxx $LIBS"
8805 cat >conftest.$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8807 #include "confdefs.h"
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820 (eval $ac_link) 2>&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try='test -s conftest$ac_exeext'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 ac_cv_lib_dmallocxx_main=yes
8832 echo "$as_me: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8834 ac_cv_lib_dmallocxx_main=no
8836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8837 LIBS=$ac_check_lib_save_LIBS
8839 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
8840 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
8841 if test $ac_cv_lib_dmallocxx_main = yes; then
8847 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
8848 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
8849 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8850 if test "${enable_dmalloc+set}" = set; then
8851 enableval="$enable_dmalloc"
8852 case "${enableval}" in
8853 yes) usedmalloc=true
8854 echo "$as_me:$LINENO: result: yes" >&5
8855 echo "${ECHO_T}yes" >&6
8857 no) usedmalloc=false
8858 echo "$as_me:$LINENO: result: no" >&5
8859 echo "${ECHO_T}no" >&6
8861 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
8862 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
8866 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
8867 echo "${ECHO_T}no" >&6
8870 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
8871 ctlibs_tools="$ctlibs_tools -ldmallocxx"
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_DMALLOC 1
8877 echo "$as_me:$LINENO: result: Using dmalloc" >&5
8878 echo "${ECHO_T}Using dmalloc" >&6
8881 echo "$as_me:$LINENO: checking for main in -lefence" >&5
8882 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
8883 if test "${ac_cv_lib_efence_main+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_check_lib_save_LIBS=$LIBS
8887 LIBS="-lefence $LIBS"
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 #include "confdefs.h"
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_lib_efence_main=yes
8915 echo "$as_me: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8917 ac_cv_lib_efence_main=no
8919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
8923 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
8924 if test $ac_cv_lib_efence_main = yes; then
8930 echo "$as_me:$LINENO: checking for enable-efence" >&5
8931 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
8932 # Check whether --enable-efence or --disable-efence was given.
8933 if test "${enable_efence+set}" = set; then
8934 enableval="$enable_efence"
8935 case "${enableval}" in
8937 echo "$as_me:$LINENO: result: yes" >&5
8938 echo "${ECHO_T}yes" >&6
8941 echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6
8944 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
8945 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
8949 useefence=false; echo "$as_me:$LINENO: result: no" >&5
8950 echo "${ECHO_T}no" >&6
8953 if test "$efence" = "true" -a "$useefence" = "true" ; then
8954 ctlibs_tools="$ctlibs_tools -lefence"
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_EFENCE 1
8960 echo "$as_me:$LINENO: result: Using efence" >&5
8961 echo "${ECHO_T}Using efence" >&6
8964 if test "$wxwin" = "true" ; then
8965 if test "$wx_gtk" = "true" ; then
8966 wxcflags=`$wxconfig --cflags`
8967 wxlibs=`$wxconfig --libs`
8969 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
8970 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
8972 CFLAGS="$CFLAGS -I../include $wxcflags"
8973 ctlib_graphics="$ctlib_graphics $wxlibs"
8977 HAVE_WXWINDOWS_TRUE=
8978 HAVE_WXWINDOWS_FALSE='#'
8980 HAVE_WXWINDOWS_TRUE='#'
8981 HAVE_WXWINDOWS_FALSE=
8988 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
8989 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
8992 if test -n "$lamdir" ; then
8993 lamprograms="ctsimtext-lam"
9001 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"
9004 cat >confcache <<\_ACEOF
9005 # This file is a shell script that caches the results of configure
9006 # tests run on this system so they can be shared between configure
9007 # scripts and configure runs, see configure's option --config-cache.
9008 # It is not useful on other systems. If it contains results you don't
9009 # want to keep, you may remove or edit it.
9011 # config.status only pays attention to the cache file if you give it
9012 # the --recheck option to rerun configure.
9014 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9015 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9020 # The following way of writing the cache mishandles newlines in values,
9021 # but we know of no workaround that is simple, portable, and efficient.
9022 # So, don't put newlines in cache variables' values.
9023 # Ultrix sh set writes to stderr and can't be redirected directly,
9024 # and sets the high bit in the cache file unless we assign to the vars.
9027 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9029 # `set' does not quote correctly, so add quotes (double-quote
9030 # substitution turns \\\\ into \\, and sed turns \\ into \).
9033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9036 # `set' quotes correctly as required by POSIX, so do not add quotes.
9038 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9045 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9047 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9049 if cmp -s $cache_file confcache; then :; else
9050 if test -w $cache_file; then
9051 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9052 cat confcache >$cache_file
9054 echo "not updating unwritable cache $cache_file"
9059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9060 # Let make expand exec_prefix.
9061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9063 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9064 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9065 # trailing colons and then remove the whole line if VPATH becomes empty
9066 # (actually we leave an empty line to preserve line numbers).
9067 if test "x$srcdir" = x.; then
9068 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9069 s/:*\$(srcdir):*/:/;
9070 s/:*\${srcdir}:*/:/;
9072 s/^\([^=]*=[ ]*\):*/\1/;
9078 DEFS=-DHAVE_CONFIG_H
9082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9083 # 1. Remove the extension, and $U if already installed.
9084 ac_i=`echo "$ac_i" |
9085 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9087 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9088 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9092 LTLIBOBJS=$ac_ltlibobjs
9095 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9096 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9097 Usually this means the macro was only invoked conditionally." >&5
9098 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9099 Usually this means the macro was only invoked conditionally." >&2;}
9100 { (exit 1); exit 1; }; }
9102 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
9103 { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
9104 Usually this means the macro was only invoked conditionally." >&5
9105 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
9106 Usually this means the macro was only invoked conditionally." >&2;}
9107 { (exit 1); exit 1; }; }
9109 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
9110 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
9111 Usually this means the macro was only invoked conditionally." >&5
9112 echo "$as_me: error: conditional \"DEBUG\" was never defined.
9113 Usually this means the macro was only invoked conditionally." >&2;}
9114 { (exit 1); exit 1; }; }
9116 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
9117 { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
9118 Usually this means the macro was only invoked conditionally." >&5
9119 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
9120 Usually this means the macro was only invoked conditionally." >&2;}
9121 { (exit 1); exit 1; }; }
9123 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
9124 { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
9125 Usually this means the macro was only invoked conditionally." >&5
9126 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
9127 Usually this means the macro was only invoked conditionally." >&2;}
9128 { (exit 1); exit 1; }; }
9130 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
9131 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
9132 Usually this means the macro was only invoked conditionally." >&5
9133 echo "$as_me: error: conditional \"NO_X\" was never defined.
9134 Usually this means the macro was only invoked conditionally." >&2;}
9135 { (exit 1); exit 1; }; }
9137 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
9138 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
9139 Usually this means the macro was only invoked conditionally." >&5
9140 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
9141 Usually this means the macro was only invoked conditionally." >&2;}
9142 { (exit 1); exit 1; }; }
9144 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
9145 { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
9146 Usually this means the macro was only invoked conditionally." >&5
9147 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
9148 Usually this means the macro was only invoked conditionally." >&2;}
9149 { (exit 1); exit 1; }; }
9152 : ${CONFIG_STATUS=./config.status}
9153 ac_clean_files_save=$ac_clean_files
9154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9155 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9156 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9157 cat >$CONFIG_STATUS <<_ACEOF
9159 # Generated by $as_me.
9160 # Run this file to recreate the current configuration.
9161 # Compiler output produced by configure, useful for debugging
9162 # configure, is in config.log if it exists.
9165 SHELL=\${CONFIG_SHELL-$SHELL}
9168 cat >>$CONFIG_STATUS <<\_ACEOF
9169 ## --------------------- ##
9170 ## M4sh Initialization. ##
9171 ## --------------------- ##
9173 # Be Bourne compatible
9174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9177 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9178 # is contrary to our usage. Disable this feature.
9179 alias -g '${1+"$@"}'='"$@"'
9180 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9184 # Support unset when possible.
9185 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9192 # Work around bugs in pre-3.0 UWIN ksh.
9193 $as_unset ENV MAIL MAILPATH
9199 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
9201 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9202 eval $as_var=C; export $as_var
9208 # Required to use basename.
9209 if expr a : '\(a\)' >/dev/null 2>&1; then
9215 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9216 as_basename=basename
9222 # Name of the executable.
9223 as_me=`$as_basename "$0" ||
9224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9225 X"$0" : 'X\(//\)$' \| \
9226 X"$0" : 'X\(/\)$' \| \
9227 . : '\(.\)' 2>/dev/null ||
9229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9230 /^X\/\(\/\/\)$/{ s//\1/; q; }
9231 /^X\/\(\/\).*/{ s//\1/; q; }
9235 # PATH needs CR, and LINENO needs CR and PATH.
9236 # Avoid depending upon Character Ranges.
9237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9240 as_cr_digits='0123456789'
9241 as_cr_alnum=$as_cr_Letters$as_cr_digits
9243 # The user is always right.
9244 if test "${PATH_SEPARATOR+set}" != set; then
9245 echo "#! /bin/sh" >conftest.sh
9246 echo "exit 0" >>conftest.sh
9247 chmod +x conftest.sh
9248 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
9259 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9260 test "x$as_lineno_1" != "x$as_lineno_2" &&
9261 test "x$as_lineno_3" = "x$as_lineno_2" || {
9262 # Find who we are. Look in the path if we contain no path at all
9265 *[\\/]* ) as_myself=$0 ;;
9266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 test -z "$as_dir" && as_dir=.
9271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9276 # We did not find ourselves, most probably we were run as `sh COMMAND'
9277 # in which case we are not to be found in the path.
9278 if test "x$as_myself" = x; then
9281 if test ! -f "$as_myself"; then
9282 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9283 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9284 { (exit 1); exit 1; }; }
9286 case $CONFIG_SHELL in
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9292 test -z "$as_dir" && as_dir=.
9293 for as_base in sh bash ksh sh5; do
9296 if ("$as_dir/$as_base" -c '
9299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9300 test "x$as_lineno_1" != "x$as_lineno_2" &&
9301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9302 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9303 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9304 CONFIG_SHELL=$as_dir/$as_base
9306 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9314 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9315 # uniformly replaced by the line number. The first 'sed' inserts a
9316 # line-number line before each line; the second 'sed' does the real
9317 # work. The second script uses 'N' to pair each line-number line
9318 # with the numbered line, and appends trailing '-' during
9319 # substitution so that $LINENO is not a special case at line end.
9320 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9321 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9322 sed '=' <$as_myself |
9327 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9330 s,^['$as_cr_digits']*\n,,
9332 chmod +x $as_me.lineno ||
9333 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9334 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9335 { (exit 1); exit 1; }; }
9337 # Don't try to exec as it changes $[0], causing all sort of problems
9338 # (the dirname of $[0] is not the place where we might find the
9339 # original and so on. Autoconf is especially sensible to this).
9341 # Exit status is that of the last command.
9346 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9347 *c*,-n*) ECHO_N= ECHO_C='
9349 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9350 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9353 if expr a : '\(a\)' >/dev/null 2>&1; then
9359 rm -f conf$$ conf$$.exe conf$$.file
9361 if ln -s conf$$.file conf$$ 2>/dev/null; then
9362 # We could just check for DJGPP; but this test a) works b) is more generic
9363 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9364 if test -f conf$$.exe; then
9365 # Don't use ln at all; we don't have any links
9370 elif ln conf$$.file conf$$ 2>/dev/null; then
9375 rm -f conf$$ conf$$.exe conf$$.file
9377 if mkdir -p . 2>/dev/null; then
9383 as_executable_p="test -f"
9385 # Sed expression to map a string onto a valid CPP name.
9386 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9388 # Sed expression to map a string onto a valid variable name.
9389 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9393 # We need space, tab and new line, in precisely that order.
9403 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9404 # report actual input values of CONFIG_FILES etc. instead of their
9405 # values after options handling. Logging --version etc. is OK.
9409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9410 ## Running $as_me. ##
9415 This file was extended by $as_me, which was
9416 generated by GNU Autoconf 2.54. Invocation command line was
9418 CONFIG_FILES = $CONFIG_FILES
9419 CONFIG_HEADERS = $CONFIG_HEADERS
9420 CONFIG_LINKS = $CONFIG_LINKS
9421 CONFIG_COMMANDS = $CONFIG_COMMANDS
9425 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9429 # Files that config.status was made for.
9430 if test -n "$ac_config_files"; then
9431 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9434 if test -n "$ac_config_headers"; then
9435 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9438 if test -n "$ac_config_links"; then
9439 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9442 if test -n "$ac_config_commands"; then
9443 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9446 cat >>$CONFIG_STATUS <<\_ACEOF
9449 \`$as_me' instantiates files from templates according to the
9450 current configuration.
9452 Usage: $0 [OPTIONS] [FILE]...
9454 -h, --help print this help, then exit
9455 -V, --version print version number, then exit
9456 -d, --debug don't remove temporary files
9457 --recheck update $as_me by reconfiguring in the same conditions
9458 --file=FILE[:TEMPLATE]
9459 instantiate the configuration file FILE
9460 --header=FILE[:TEMPLATE]
9461 instantiate the configuration header FILE
9463 Configuration files:
9466 Configuration headers:
9469 Configuration commands:
9472 Report bugs to <bug-autoconf@gnu.org>."
9475 cat >>$CONFIG_STATUS <<_ACEOF
9478 configured by $0, generated by GNU Autoconf 2.54,
9479 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9481 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9482 Free Software Foundation, Inc.
9483 This config.status script is free software; the Free Software Foundation
9484 gives unlimited permission to copy, distribute and modify it."
9489 cat >>$CONFIG_STATUS <<\_ACEOF
9490 # If no file are specified by the user, then we need to provide default
9491 # value. By we need to know if files were specified by the user.
9497 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9498 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9506 *) # This is not an option, so the user has probably given explicit
9509 ac_need_defaults=false;;
9513 # Handling of the options.
9515 cat >>$CONFIG_STATUS <<_ACEOF
9516 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9517 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9518 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9520 cat >>$CONFIG_STATUS <<\_ACEOF
9521 --version | --vers* | -V )
9522 echo "$ac_cs_version"; exit 0 ;;
9524 # Conflict between --help and --header
9525 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9526 Try \`$0 --help' for more information." >&5
9527 echo "$as_me: error: ambiguous option: $1
9528 Try \`$0 --help' for more information." >&2;}
9529 { (exit 1); exit 1; }; };;
9530 --help | --hel | -h )
9531 echo "$ac_cs_usage"; exit 0 ;;
9532 --debug | --d* | -d )
9534 --file | --fil | --fi | --f )
9536 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9537 ac_need_defaults=false;;
9538 --header | --heade | --head | --hea )
9540 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9541 ac_need_defaults=false;;
9544 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9545 Try \`$0 --help' for more information." >&5
9546 echo "$as_me: error: unrecognized option: $1
9547 Try \`$0 --help' for more information." >&2;}
9548 { (exit 1); exit 1; }; } ;;
9550 *) ac_config_targets="$ac_config_targets $1" ;;
9558 cat >>$CONFIG_STATUS <<_ACEOF
9560 # INIT-COMMANDS section.
9563 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9569 cat >>$CONFIG_STATUS <<\_ACEOF
9570 for ac_config_target in $ac_config_targets
9572 case "$ac_config_target" in
9573 # Handling of arguments.
9574 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9575 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9576 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9577 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9578 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9579 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9580 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9581 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9582 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9583 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9584 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9585 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9586 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9587 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9588 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9589 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9590 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9591 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9592 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9593 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9594 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9595 { (exit 1); exit 1; }; };;
9599 # If the user did not use the arguments to specify the items to instantiate,
9600 # then the envvar interface is used. Set only those that are not.
9601 # We use the long form for the default assignment because of an extremely
9602 # bizarre bug on SunOS 4.1.3.
9603 if $ac_need_defaults; then
9604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9605 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9606 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9609 # Create a temporary directory, and hook for its removal unless debugging.
9612 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9613 trap '{ (exit 1); exit 1; }' 1 2 13 15
9616 # Create a (secure) tmp directory for tmp files.
9619 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9620 test -n "$tmp" && test -d "$tmp"
9623 tmp=$TMPDIR/cs$$-$RANDOM
9624 (umask 077 && mkdir $tmp)
9627 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9628 { (exit 1); exit 1; }
9633 cat >>$CONFIG_STATUS <<_ACEOF
9636 # CONFIG_FILES section.
9639 # No need to generate the scripts if there are no CONFIG_FILES.
9640 # This happens for instance when ./config.status config.h
9641 if test -n "\$CONFIG_FILES"; then
9642 # Protect against being on the right side of a sed subst in config.status.
9643 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9644 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9645 s,@SHELL@,$SHELL,;t t
9646 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9647 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9648 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9649 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9650 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9651 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9652 s,@exec_prefix@,$exec_prefix,;t t
9653 s,@prefix@,$prefix,;t t
9654 s,@program_transform_name@,$program_transform_name,;t t
9655 s,@bindir@,$bindir,;t t
9656 s,@sbindir@,$sbindir,;t t
9657 s,@libexecdir@,$libexecdir,;t t
9658 s,@datadir@,$datadir,;t t
9659 s,@sysconfdir@,$sysconfdir,;t t
9660 s,@sharedstatedir@,$sharedstatedir,;t t
9661 s,@localstatedir@,$localstatedir,;t t
9662 s,@libdir@,$libdir,;t t
9663 s,@includedir@,$includedir,;t t
9664 s,@oldincludedir@,$oldincludedir,;t t
9665 s,@infodir@,$infodir,;t t
9666 s,@mandir@,$mandir,;t t
9667 s,@build_alias@,$build_alias,;t t
9668 s,@host_alias@,$host_alias,;t t
9669 s,@target_alias@,$target_alias,;t t
9671 s,@ECHO_C@,$ECHO_C,;t t
9672 s,@ECHO_N@,$ECHO_N,;t t
9673 s,@ECHO_T@,$ECHO_T,;t t
9675 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9676 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9677 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9678 s,@PACKAGE@,$PACKAGE,;t t
9679 s,@VERSION@,$VERSION,;t t
9680 s,@ACLOCAL@,$ACLOCAL,;t t
9681 s,@AUTOCONF@,$AUTOCONF,;t t
9682 s,@AUTOMAKE@,$AUTOMAKE,;t t
9683 s,@AUTOHEADER@,$AUTOHEADER,;t t
9684 s,@MAKEINFO@,$MAKEINFO,;t t
9685 s,@AMTAR@,$AMTAR,;t t
9686 s,@install_sh@,$install_sh,;t t
9687 s,@STRIP@,$STRIP,;t t
9688 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9689 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9691 s,@SET_MAKE@,$SET_MAKE,;t t
9692 s,@RANLIB@,$RANLIB,;t t
9693 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9695 s,@CFLAGS@,$CFLAGS,;t t
9696 s,@LDFLAGS@,$LDFLAGS,;t t
9697 s,@CPPFLAGS@,$CPPFLAGS,;t t
9698 s,@ac_ct_CC@,$ac_ct_CC,;t t
9699 s,@EXEEXT@,$EXEEXT,;t t
9700 s,@OBJEXT@,$OBJEXT,;t t
9701 s,@DEPDIR@,$DEPDIR,;t t
9702 s,@am__include@,$am__include,;t t
9703 s,@am__quote@,$am__quote,;t t
9704 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9705 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9706 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9707 s,@CCDEPMODE@,$CCDEPMODE,;t t
9709 s,@CXXFLAGS@,$CXXFLAGS,;t t
9710 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9711 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9712 s,@wxconfig@,$wxconfig,;t t
9713 s,@build@,$build,;t t
9714 s,@build_cpu@,$build_cpu,;t t
9715 s,@build_vendor@,$build_vendor,;t t
9716 s,@build_os@,$build_os,;t t
9718 s,@host_cpu@,$host_cpu,;t t
9719 s,@host_vendor@,$host_vendor,;t t
9720 s,@host_os@,$host_os,;t t
9722 s,@EGREP@,$EGREP,;t t
9723 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
9724 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
9725 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
9726 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
9727 s,@lamdir@,$lamdir,;t t
9728 s,@mpienable@,$mpienable,;t t
9729 s,@cgibindir@,$cgibindir,;t t
9730 s,@cgibinurl@,$cgibinurl,;t t
9731 s,@webdatadir@,$webdatadir,;t t
9732 s,@webdataurl@,$webdataurl,;t t
9733 s,@htmldir@,$htmldir,;t t
9734 s,@cgiprograms@,$cgiprograms,;t t
9735 s,@htmldata@,$htmldata,;t t
9736 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
9737 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
9738 s,@webenabled@,$webenabled,;t t
9739 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
9740 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
9741 s,@X_CFLAGS@,$X_CFLAGS,;t t
9742 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9743 s,@X_LIBS@,$X_LIBS,;t t
9744 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9745 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
9746 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
9747 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
9748 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
9749 s,@my_includes@,$my_includes,;t t
9750 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
9751 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
9752 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
9753 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
9754 s,@wxcflags@,$wxcflags,;t t
9755 s,@wxlibs@,$wxlibs,;t t
9756 s,@ctlibs@,$ctlibs,;t t
9757 s,@lamprograms@,$lamprograms,;t t
9758 s,@lamdefs@,$lamdefs,;t t
9759 s,@LIBOBJS@,$LIBOBJS,;t t
9760 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9765 cat >>$CONFIG_STATUS <<\_ACEOF
9766 # Split the substitutions into bite-sized pieces for seds with
9767 # small command number limits, like on Digital OSF/1 and HP-UX.
9769 ac_sed_frag=1 # Number of current file.
9770 ac_beg=1 # First line for current file.
9771 ac_end=$ac_max_sed_lines # Line after last line for current file.
9774 while $ac_more_lines; do
9775 if test $ac_beg -gt 1; then
9776 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9778 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9780 if test ! -s $tmp/subs.frag; then
9783 # The purpose of the label and of the branching condition is to
9784 # speed up the sed processing (if there are no `@' at all, there
9785 # is no need to browse any of the substitutions).
9786 # These are the two extra sed commands mentioned above.
9788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9789 if test -z "$ac_sed_cmds"; then
9790 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9792 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9794 ac_sed_frag=`expr $ac_sed_frag + 1`
9796 ac_end=`expr $ac_end + $ac_max_sed_lines`
9799 if test -z "$ac_sed_cmds"; then
9802 fi # test -n "$CONFIG_FILES"
9805 cat >>$CONFIG_STATUS <<\_ACEOF
9806 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9809 - | *:- | *:-:* ) # input from stdin
9811 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9813 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9815 * ) ac_file_in=$ac_file.in ;;
9818 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9819 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9821 X"$ac_file" : 'X\(//\)[^/]' \| \
9822 X"$ac_file" : 'X\(//\)$' \| \
9823 X"$ac_file" : 'X\(/\)' \| \
9824 . : '\(.\)' 2>/dev/null ||
9826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9828 /^X\(\/\/\)$/{ s//\1/; q; }
9829 /^X\(\/\).*/{ s//\1/; q; }
9831 { if $as_mkdir_p; then
9836 while test ! -d "$as_dir"; do
9837 as_dirs="$as_dir $as_dirs"
9838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9840 X"$as_dir" : 'X\(//\)[^/]' \| \
9841 X"$as_dir" : 'X\(//\)$' \| \
9842 X"$as_dir" : 'X\(/\)' \| \
9843 . : '\(.\)' 2>/dev/null ||
9845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9847 /^X\(\/\/\)$/{ s//\1/; q; }
9848 /^X\(\/\).*/{ s//\1/; q; }
9851 test ! -n "$as_dirs" || mkdir $as_dirs
9852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9854 { (exit 1); exit 1; }; }; }
9858 if test "$ac_dir" != .; then
9859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9860 # A "../" for each directory in $ac_dir_suffix.
9861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9863 ac_dir_suffix= ac_top_builddir=
9867 .) # No --srcdir option. We are building in place.
9869 if test -z "$ac_top_builddir"; then
9872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9874 [\\/]* | ?:[\\/]* ) # Absolute path.
9875 ac_srcdir=$srcdir$ac_dir_suffix;
9876 ac_top_srcdir=$srcdir ;;
9878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9881 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9883 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9884 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9885 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9886 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9891 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9894 if test x"$ac_file" != x-; then
9895 { echo "$as_me:$LINENO: creating $ac_file" >&5
9896 echo "$as_me: creating $ac_file" >&6;}
9899 # Let's still pretend it is `configure' which instantiates (i.e., don't
9900 # use $as_me), people would be surprised to read:
9901 # /* config.h. Generated by config.status. */
9902 if test x"$ac_file" = x-; then
9905 configure_input="$ac_file. "
9907 configure_input=$configure_input"Generated from `echo $ac_file_in |
9908 sed 's,.*/,,'` by configure."
9910 # First look for the input files in the build tree, otherwise in the
9912 ac_file_inputs=`IFS=:
9913 for f in $ac_file_in; do
9915 -) echo $tmp/stdin ;;
9917 # Absolute (can't be DOS-style, as IFS=:)
9918 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9919 echo "$as_me: error: cannot find input file: $f" >&2;}
9920 { (exit 1); exit 1; }; }
9923 if test -f "$f"; then
9926 elif test -f "$srcdir/$f"; then
9931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9932 echo "$as_me: error: cannot find input file: $f" >&2;}
9933 { (exit 1); exit 1; }; }
9936 done` || { (exit 1); exit 1; }
9938 cat >>$CONFIG_STATUS <<_ACEOF
9942 cat >>$CONFIG_STATUS <<\_ACEOF
9944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9945 s,@configure_input@,$configure_input,;t t
9946 s,@srcdir@,$ac_srcdir,;t t
9947 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9948 s,@top_srcdir@,$ac_top_srcdir,;t t
9949 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9950 s,@builddir@,$ac_builddir,;t t
9951 s,@abs_builddir@,$ac_abs_builddir,;t t
9952 s,@top_builddir@,$ac_top_builddir,;t t
9953 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9954 s,@INSTALL@,$ac_INSTALL,;t t
9955 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9957 if test x"$ac_file" != x-; then
9958 mv $tmp/out $ac_file
9966 cat >>$CONFIG_STATUS <<\_ACEOF
9969 # CONFIG_HEADER section.
9972 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9973 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9975 # ac_d sets the value in "#define NAME VALUE" lines.
9976 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9977 ac_dB='[ ].*$,\1#\2'
9980 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9981 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9982 ac_uB='$,\1#\2define\3'
9986 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9987 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9989 - | *:- | *:-:* ) # input from stdin
9991 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9993 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9995 * ) ac_file_in=$ac_file.in ;;
9998 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9999 echo "$as_me: creating $ac_file" >&6;}
10001 # First look for the input files in the build tree, otherwise in the
10003 ac_file_inputs=`IFS=:
10004 for f in $ac_file_in; do
10006 -) echo $tmp/stdin ;;
10008 # Absolute (can't be DOS-style, as IFS=:)
10009 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10010 echo "$as_me: error: cannot find input file: $f" >&2;}
10011 { (exit 1); exit 1; }; }
10014 if test -f "$f"; then
10017 elif test -f "$srcdir/$f"; then
10022 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10023 echo "$as_me: error: cannot find input file: $f" >&2;}
10024 { (exit 1); exit 1; }; }
10027 done` || { (exit 1); exit 1; }
10028 # Remove the trailing spaces.
10029 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10033 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10034 # `conftest.undefs', that substitutes the proper values into
10035 # config.h.in to produce config.h. The first handles `#define'
10036 # templates, and the second `#undef' templates.
10037 # And first: Protect against being on the right side of a sed subst in
10038 # config.status. Protect against being in an unquoted here document
10039 # in config.status.
10040 rm -f conftest.defines conftest.undefs
10041 # Using a here document instead of a string reduces the quoting nightmare.
10042 # Putting comments in sed scripts is not portable.
10044 # `end' is used to avoid that the second main sed command (meant for
10045 # 0-ary CPP macros) applies to n-ary macro definitions.
10046 # See the Autoconf documentation for `clear'.
10047 cat >confdef2sed.sed <<\_ACEOF
10052 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10054 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10057 # If some macros were called several times there might be several times
10058 # the same #defines, which is useless. Nevertheless, we may not want to
10059 # sort them, since we want the *last* AC-DEFINE to be honored.
10060 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10061 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10062 rm -f confdef2sed.sed
10064 # This sed command replaces #undef with comments. This is necessary, for
10065 # example, in the case of _POSIX_SOURCE, which is predefined and required
10066 # on some systems where configure will not decide to define it.
10067 cat >>conftest.undefs <<\_ACEOF
10068 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10071 # Break up conftest.defines because some shells have a limit on the size
10072 # of here documents, and old seds have small limits too (100 cmds).
10073 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10074 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10075 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10076 echo ' :' >>$CONFIG_STATUS
10077 rm -f conftest.tail
10078 while grep . conftest.defines >/dev/null
10080 # Write a limited-size here document to $tmp/defines.sed.
10081 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10082 # Speed up: don't consider the non `#define' lines.
10083 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10084 # Work around the forget-to-reset-the-flag bug.
10085 echo 't clr' >>$CONFIG_STATUS
10086 echo ': clr' >>$CONFIG_STATUS
10087 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10089 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10091 mv $tmp/out $tmp/in
10093 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10094 rm -f conftest.defines
10095 mv conftest.tail conftest.defines
10097 rm -f conftest.defines
10098 echo ' fi # grep' >>$CONFIG_STATUS
10099 echo >>$CONFIG_STATUS
10101 # Break up conftest.undefs because some shells have a limit on the size
10102 # of here documents, and old seds have small limits too (100 cmds).
10103 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10104 rm -f conftest.tail
10105 while grep . conftest.undefs >/dev/null
10107 # Write a limited-size here document to $tmp/undefs.sed.
10108 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10109 # Speed up: don't consider the non `#undef'
10110 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10111 # Work around the forget-to-reset-the-flag bug.
10112 echo 't clr' >>$CONFIG_STATUS
10113 echo ': clr' >>$CONFIG_STATUS
10114 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10116 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10118 mv $tmp/out $tmp/in
10120 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10121 rm -f conftest.undefs
10122 mv conftest.tail conftest.undefs
10124 rm -f conftest.undefs
10126 cat >>$CONFIG_STATUS <<\_ACEOF
10127 # Let's still pretend it is `configure' which instantiates (i.e., don't
10128 # use $as_me), people would be surprised to read:
10129 # /* config.h. Generated by config.status. */
10130 if test x"$ac_file" = x-; then
10131 echo "/* Generated by configure. */" >$tmp/config.h
10133 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10135 cat $tmp/in >>$tmp/config.h
10137 if test x"$ac_file" != x-; then
10138 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10139 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10140 echo "$as_me: $ac_file is unchanged" >&6;}
10142 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10144 X"$ac_file" : 'X\(//\)[^/]' \| \
10145 X"$ac_file" : 'X\(//\)$' \| \
10146 X"$ac_file" : 'X\(/\)' \| \
10147 . : '\(.\)' 2>/dev/null ||
10149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10151 /^X\(\/\/\)$/{ s//\1/; q; }
10152 /^X\(\/\).*/{ s//\1/; q; }
10154 { if $as_mkdir_p; then
10159 while test ! -d "$as_dir"; do
10160 as_dirs="$as_dir $as_dirs"
10161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10163 X"$as_dir" : 'X\(//\)[^/]' \| \
10164 X"$as_dir" : 'X\(//\)$' \| \
10165 X"$as_dir" : 'X\(/\)' \| \
10166 . : '\(.\)' 2>/dev/null ||
10168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10170 /^X\(\/\/\)$/{ s//\1/; q; }
10171 /^X\(\/\).*/{ s//\1/; q; }
10174 test ! -n "$as_dirs" || mkdir $as_dirs
10175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10177 { (exit 1); exit 1; }; }; }
10180 mv $tmp/config.h $ac_file
10184 rm -f $tmp/config.h
10186 # Run the commands associated with the file.
10188 config.h ) # update the timestamp
10189 echo 'timestamp for config.h' >"./stamp-h1"
10194 cat >>$CONFIG_STATUS <<\_ACEOF
10197 # CONFIG_COMMANDS section.
10199 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10200 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10201 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10202 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10203 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10204 X"$ac_dest" : 'X\(//\)[^/]' \| \
10205 X"$ac_dest" : 'X\(//\)$' \| \
10206 X"$ac_dest" : 'X\(/\)' \| \
10207 . : '\(.\)' 2>/dev/null ||
10209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10211 /^X\(\/\/\)$/{ s//\1/; q; }
10212 /^X\(\/\).*/{ s//\1/; q; }
10216 if test "$ac_dir" != .; then
10217 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10218 # A "../" for each directory in $ac_dir_suffix.
10219 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10221 ac_dir_suffix= ac_top_builddir=
10225 .) # No --srcdir option. We are building in place.
10227 if test -z "$ac_top_builddir"; then
10230 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10232 [\\/]* | ?:[\\/]* ) # Absolute path.
10233 ac_srcdir=$srcdir$ac_dir_suffix;
10234 ac_top_srcdir=$srcdir ;;
10235 *) # Relative path.
10236 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10237 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10239 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10241 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10242 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10243 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10244 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10247 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10248 echo "$as_me: executing $ac_dest commands" >&6;}
10250 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10251 # Strip MF so we end up with the name of the file.
10252 mf=`echo "$mf" | sed -e 's/:.*$//'`
10253 # Check whether this is an Automake generated Makefile or not.
10254 # We used to match only the files named `Makefile.in', but
10255 # some people rename them; so instead we look at the file content.
10256 # Grep'ing the first line is not enough: some people post-process
10257 # each Makefile.in and add a new line on top of each file to say so.
10258 # So let's grep whole file.
10259 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10260 dirpart=`(dirname "$mf") 2>/dev/null ||
10261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10262 X"$mf" : 'X\(//\)[^/]' \| \
10263 X"$mf" : 'X\(//\)$' \| \
10264 X"$mf" : 'X\(/\)' \| \
10265 . : '\(.\)' 2>/dev/null ||
10267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10269 /^X\(\/\/\)$/{ s//\1/; q; }
10270 /^X\(\/\).*/{ s//\1/; q; }
10275 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10276 # Extract the definition of DEP_FILES from the Makefile without
10278 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10279 test -z "$DEPDIR" && continue
10280 # When using ansi2knr, U may be empty or an underscore; expand it
10281 U=`sed -n -e '/^U = / s///p' < "$mf"`
10282 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10283 # We invoke sed twice because it is the simplest approach to
10284 # changing $(DEPDIR) to its actual value in the expansion.
10285 for file in `sed -n -e '
10286 /^DEP_FILES = .*\\\\$/ {
10295 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10296 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10297 # Make sure the directory exists.
10298 test -f "$dirpart/$file" && continue
10299 fdir=`(dirname "$file") 2>/dev/null ||
10300 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10301 X"$file" : 'X\(//\)[^/]' \| \
10302 X"$file" : 'X\(//\)$' \| \
10303 X"$file" : 'X\(/\)' \| \
10304 . : '\(.\)' 2>/dev/null ||
10306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10308 /^X\(\/\/\)$/{ s//\1/; q; }
10309 /^X\(\/\).*/{ s//\1/; q; }
10311 { if $as_mkdir_p; then
10312 mkdir -p $dirpart/$fdir
10314 as_dir=$dirpart/$fdir
10316 while test ! -d "$as_dir"; do
10317 as_dirs="$as_dir $as_dirs"
10318 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10320 X"$as_dir" : 'X\(//\)[^/]' \| \
10321 X"$as_dir" : 'X\(//\)$' \| \
10322 X"$as_dir" : 'X\(/\)' \| \
10323 . : '\(.\)' 2>/dev/null ||
10325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10327 /^X\(\/\/\)$/{ s//\1/; q; }
10328 /^X\(\/\).*/{ s//\1/; q; }
10331 test ! -n "$as_dirs" || mkdir $as_dirs
10332 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10333 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10334 { (exit 1); exit 1; }; }; }
10336 # echo "creating $dirpart/$file"
10337 echo '# dummy' > "$dirpart/$file"
10345 cat >>$CONFIG_STATUS <<\_ACEOF
10347 { (exit 0); exit 0; }
10349 chmod +x $CONFIG_STATUS
10350 ac_clean_files=$ac_clean_files_save
10353 # configure is writing to config.log, and then calls config.status.
10354 # config.status does its own redirection, appending to config.log.
10355 # Unfortunately, on DOS this fails, as config.log is still kept open
10356 # by configure, so config.status won't be able to write to it; its
10357 # output is simply discarded. So we exec the FD to /dev/null,
10358 # effectively closing config.log, so it can be properly (re)opened and
10359 # appended to by config.status. When coming back to configure, we
10360 # need to make the FD available again.
10361 if test "$no_create" != yes; then
10364 $SHELL $CONFIG_STATUS || ac_cs_success=false
10366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10367 # would make configure fail if this is the last instruction.
10368 $ac_cs_success || { (exit 1); exit 1; }