3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-verbose-warnings
16 Enable verbose compiler warnings."
18 --enable-debug Turn on debugging"
20 --with-lam[=PATH] Set path of LAM MPI "
22 --with-cgibin-dir=PATH Set path of CGI binaries directory "
24 --with-cgibin-url=PATH Set URL path of CGI binaries "
26 --with-webdata-dir=PATH Set path of webdata"
28 --with-webdata-url=PATH Set URL path of webdata"
30 --with-html-dir=PATH Set directory of html files"
32 --with-x use the X Window System"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file=./config.cache
47 program_transform_name=s,x,x,
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
68 # Initialize some other variables.
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 datadir="$ac_optarg" ;;
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host | --host | --hos | --ho)
210 -host=* | --host=* | --hos=* | --ho=*)
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
331 -site=* | --site=* | --sit=*)
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
346 -target | --target | --targe | --targ | --tar | --ta | --t)
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.13"
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=src/ctrec.cpp
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='\c' ac_t=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
547 ac_install_sh="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh; then
551 ac_install_sh="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562 # Find a good install program. We prefer a C program (faster),
563 # so one script is as good as another. But avoid the broken or
564 # incompatible versions:
565 # SysV /etc/install, /usr/sbin/install
566 # SunOS /usr/etc/install
569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
572 # ./install, which can be erroneously created by make from ./install.sh.
573 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
574 echo "configure:575: checking for a BSD compatible install" >&5
575 if test -z "$INSTALL"; then
576 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
577 echo $ac_n "(cached) $ac_c" 1>&6
579 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
580 for ac_dir in $PATH; do
581 # Account for people who put trailing slashes in PATH elements.
583 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
585 # OSF1 and SCO ODT 3.0 have their own names for install.
586 # Don't use installbsd from OSF since it installs stuff as root
588 for ac_prog in ginstall scoinst install; do
589 if test -f $ac_dir/$ac_prog; then
590 if test $ac_prog = install &&
591 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
592 # AIX install. It has an incompatible calling convention.
595 ac_cv_path_install="$ac_dir/$ac_prog -c"
606 if test "${ac_cv_path_install+set}" = set; then
607 INSTALL="$ac_cv_path_install"
609 # As a last resort, use the slow shell script. We don't cache a
610 # path for INSTALL within a source directory, because that will
611 # break other packages using the cache if that directory is
612 # removed, or if the path is relative.
613 INSTALL="$ac_install_sh"
616 echo "$ac_t""$INSTALL" 1>&6
618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
619 # It thinks the first close brace ends the variable substitution.
620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
626 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
627 echo "configure:628: checking whether build environment is sane" >&5
630 echo timestamp > conftestfile
631 # Do `set' in a subshell so we don't clobber the current shell's
632 # arguments. Must try -L first in case configure is actually a
633 # symlink; some systems play weird games with the mod time of symlinks
634 # (eg FreeBSD returns the mod time of the symlink's containing
637 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
638 if test "$*" = "X"; then
640 set X `ls -t $srcdir/configure conftestfile`
642 if test "$*" != "X $srcdir/configure conftestfile" \
643 && test "$*" != "X conftestfile $srcdir/configure"; then
645 # If neither matched, then we have a broken ls. This can happen
646 # if, for instance, CONFIG_SHELL is bash and it inherits a
647 # broken ls alias from the environment. This has actually
648 # happened. Such a system could not be considered "sane".
649 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
650 alias in your environment" 1>&2; exit 1; }
653 test "$2" = conftestfile
659 { echo "configure: error: newly created file is older than distributed files!
660 Check your system clock" 1>&2; exit 1; }
663 echo "$ac_t""yes" 1>&6
664 if test "$program_transform_name" = s,x,x,; then
665 program_transform_name=
667 # Double any \ or $. echo might interpret backslashes.
668 cat <<\EOF_SED > conftestsed
669 s,\\,\\\\,g; s,\$,$$,g
671 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
674 test "$program_prefix" != NONE &&
675 program_transform_name="s,^,${program_prefix},; $program_transform_name"
676 # Use a double $ so make ignores it.
677 test "$program_suffix" != NONE &&
678 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
680 # sed with no file args requires a program.
681 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
683 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
684 echo "configure:685: checking whether ${MAKE-make} sets \${MAKE}" >&5
685 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
686 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 cat > conftestmake <<\EOF
691 @echo 'ac_maketemp="${MAKE}"'
693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
694 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
695 if test -n "$ac_maketemp"; then
696 eval ac_cv_prog_make_${ac_make}_set=yes
698 eval ac_cv_prog_make_${ac_make}_set=no
702 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
703 echo "$ac_t""yes" 1>&6
706 echo "$ac_t""no" 1>&6
707 SET_MAKE="MAKE=${MAKE-make}"
716 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
717 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
719 cat >> confdefs.h <<EOF
720 #define PACKAGE "$PACKAGE"
723 cat >> confdefs.h <<EOF
724 #define VERSION "$VERSION"
729 missing_dir=`cd $ac_aux_dir && pwd`
730 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
731 echo "configure:732: checking for working aclocal" >&5
732 # Run test in a subshell; some versions of sh will print an error if
733 # an executable is not found, even if stderr is redirected.
734 # Redirect stdin to placate older versions of autoconf. Sigh.
735 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
737 echo "$ac_t""found" 1>&6
739 ACLOCAL="$missing_dir/missing aclocal"
740 echo "$ac_t""missing" 1>&6
743 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
744 echo "configure:745: checking for working autoconf" >&5
745 # Run test in a subshell; some versions of sh will print an error if
746 # an executable is not found, even if stderr is redirected.
747 # Redirect stdin to placate older versions of autoconf. Sigh.
748 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
750 echo "$ac_t""found" 1>&6
752 AUTOCONF="$missing_dir/missing autoconf"
753 echo "$ac_t""missing" 1>&6
756 echo $ac_n "checking for working automake""... $ac_c" 1>&6
757 echo "configure:758: checking for working automake" >&5
758 # Run test in a subshell; some versions of sh will print an error if
759 # an executable is not found, even if stderr is redirected.
760 # Redirect stdin to placate older versions of autoconf. Sigh.
761 if (automake --version) < /dev/null > /dev/null 2>&1; then
763 echo "$ac_t""found" 1>&6
765 AUTOMAKE="$missing_dir/missing automake"
766 echo "$ac_t""missing" 1>&6
769 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
770 echo "configure:771: checking for working autoheader" >&5
771 # Run test in a subshell; some versions of sh will print an error if
772 # an executable is not found, even if stderr is redirected.
773 # Redirect stdin to placate older versions of autoconf. Sigh.
774 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
775 AUTOHEADER=autoheader
776 echo "$ac_t""found" 1>&6
778 AUTOHEADER="$missing_dir/missing autoheader"
779 echo "$ac_t""missing" 1>&6
782 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
783 echo "configure:784: checking for working makeinfo" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf. Sigh.
787 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
789 echo "$ac_t""found" 1>&6
791 MAKEINFO="$missing_dir/missing makeinfo"
792 echo "$ac_t""missing" 1>&6
800 for ac_prog in gawk mawk nawk awk
802 # Extract the first word of "$ac_prog", so it can be a program name with args.
803 set dummy $ac_prog; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$AWK"; then
810 ac_cv_prog_AWK="$AWK" # Let the user override the test.
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
814 for ac_dir in $ac_dummy; do
815 test -z "$ac_dir" && ac_dir=.
816 if test -f $ac_dir/$ac_word; then
817 ac_cv_prog_AWK="$ac_prog"
824 AWK="$ac_cv_prog_AWK"
825 if test -n "$AWK"; then
826 echo "$ac_t""$AWK" 1>&6
828 echo "$ac_t""no" 1>&6
831 test -n "$AWK" && break
834 # Find a good install program. We prefer a C program (faster),
835 # so one script is as good as another. But avoid the broken or
836 # incompatible versions:
837 # SysV /etc/install, /usr/sbin/install
838 # SunOS /usr/etc/install
841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
844 # ./install, which can be erroneously created by make from ./install.sh.
845 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
846 echo "configure:847: checking for a BSD compatible install" >&5
847 if test -z "$INSTALL"; then
848 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
852 for ac_dir in $PATH; do
853 # Account for people who put trailing slashes in PATH elements.
855 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
857 # OSF1 and SCO ODT 3.0 have their own names for install.
858 # Don't use installbsd from OSF since it installs stuff as root
860 for ac_prog in ginstall scoinst install; do
861 if test -f $ac_dir/$ac_prog; then
862 if test $ac_prog = install &&
863 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
864 # AIX install. It has an incompatible calling convention.
867 ac_cv_path_install="$ac_dir/$ac_prog -c"
878 if test "${ac_cv_path_install+set}" = set; then
879 INSTALL="$ac_cv_path_install"
881 # As a last resort, use the slow shell script. We don't cache a
882 # path for INSTALL within a source directory, because that will
883 # break other packages using the cache if that directory is
884 # removed, or if the path is relative.
885 INSTALL="$ac_install_sh"
888 echo "$ac_t""$INSTALL" 1>&6
890 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
891 # It thinks the first close brace ends the variable substitution.
892 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
894 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
896 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
898 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
899 echo "configure:900: checking whether ${MAKE-make} sets \${MAKE}" >&5
900 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
901 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 cat > conftestmake <<\EOF
906 @echo 'ac_maketemp="${MAKE}"'
908 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
909 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
910 if test -n "$ac_maketemp"; then
911 eval ac_cv_prog_make_${ac_make}_set=yes
913 eval ac_cv_prog_make_${ac_make}_set=no
917 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
918 echo "$ac_t""yes" 1>&6
921 echo "$ac_t""no" 1>&6
922 SET_MAKE="MAKE=${MAKE-make}"
925 # Extract the first word of "ranlib", so it can be a program name with args.
926 set dummy ranlib; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 if test -n "$RANLIB"; then
933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
937 for ac_dir in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_prog_RANLIB="ranlib"
945 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
948 RANLIB="$ac_cv_prog_RANLIB"
949 if test -n "$RANLIB"; then
950 echo "$ac_t""$RANLIB" 1>&6
952 echo "$ac_t""no" 1>&6
955 # Extract the first word of "gcc", so it can be a program name with args.
956 set dummy gcc; ac_word=$2
957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
958 echo "configure:959: checking for $ac_word" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 if test -n "$CC"; then
963 ac_cv_prog_CC="$CC" # Let the user override the test.
965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
967 for ac_dir in $ac_dummy; do
968 test -z "$ac_dir" && ac_dir=.
969 if test -f $ac_dir/$ac_word; then
978 if test -n "$CC"; then
979 echo "$ac_t""$CC" 1>&6
981 echo "$ac_t""no" 1>&6
984 if test -z "$CC"; then
985 # Extract the first word of "cc", so it can be a program name with args.
986 set dummy cc; ac_word=$2
987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
988 echo "configure:989: checking for $ac_word" >&5
989 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
992 if test -n "$CC"; then
993 ac_cv_prog_CC="$CC" # Let the user override the test.
995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
998 for ac_dir in $ac_dummy; do
999 test -z "$ac_dir" && ac_dir=.
1000 if test -f $ac_dir/$ac_word; then
1001 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1002 ac_prog_rejected=yes
1010 if test $ac_prog_rejected = yes; then
1011 # We found a bogon in the path, so make sure we never use it.
1012 set dummy $ac_cv_prog_CC
1014 if test $# -gt 0; then
1015 # We chose a different compiler from the bogus one.
1016 # However, it has the same basename, so the bogon will be chosen
1017 # first if we set CC to just the basename; use the full file name.
1019 set dummy "$ac_dir/$ac_word" "$@"
1027 if test -n "$CC"; then
1028 echo "$ac_t""$CC" 1>&6
1030 echo "$ac_t""no" 1>&6
1033 if test -z "$CC"; then
1034 case "`uname -s`" in
1036 # Extract the first word of "cl", so it can be a program name with args.
1037 set dummy cl; ac_word=$2
1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039 echo "configure:1040: checking for $ac_word" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 if test -n "$CC"; then
1044 ac_cv_prog_CC="$CC" # Let the user override the test.
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1048 for ac_dir in $ac_dummy; do
1049 test -z "$ac_dir" && ac_dir=.
1050 if test -f $ac_dir/$ac_word; then
1059 if test -n "$CC"; then
1060 echo "$ac_t""$CC" 1>&6
1062 echo "$ac_t""no" 1>&6
1067 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1070 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1071 echo "configure:1072: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1075 ac_cpp='$CPP $CPPFLAGS'
1076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1078 cross_compiling=$ac_cv_prog_cc_cross
1080 cat > conftest.$ac_ext << EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1087 if { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1088 ac_cv_prog_cc_works=yes
1089 # If we can't run a trivial program, we are probably using a cross compiler.
1090 if (./conftest; exit) 2>/dev/null; then
1091 ac_cv_prog_cc_cross=no
1093 ac_cv_prog_cc_cross=yes
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1098 ac_cv_prog_cc_works=no
1102 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1103 ac_cpp='$CPP $CPPFLAGS'
1104 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1105 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1106 cross_compiling=$ac_cv_prog_cc_cross
1108 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1109 if test $ac_cv_prog_cc_works = no; then
1110 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1112 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1113 echo "configure:1114: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1114 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1115 cross_compiling=$ac_cv_prog_cc_cross
1117 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1118 echo "configure:1119: checking whether we are using GNU C" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 cat > conftest.c <<EOF
1127 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1134 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1136 if test $ac_cv_prog_gcc = yes; then
1142 ac_test_CFLAGS="${CFLAGS+set}"
1143 ac_save_CFLAGS="$CFLAGS"
1145 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1146 echo "configure:1147: checking whether ${CC-cc} accepts -g" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 echo 'void f(){}' > conftest.c
1151 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1160 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1161 if test "$ac_test_CFLAGS" = set; then
1162 CFLAGS="$ac_save_CFLAGS"
1163 elif test $ac_cv_prog_cc_g = yes; then
1164 if test "$GCC" = yes; then
1170 if test "$GCC" = yes; then
1177 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1179 # Extract the first word of "$ac_prog", so it can be a program name with args.
1180 set dummy $ac_prog; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 if test -n "$CXX"; then
1187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1191 for ac_dir in $ac_dummy; do
1192 test -z "$ac_dir" && ac_dir=.
1193 if test -f $ac_dir/$ac_word; then
1194 ac_cv_prog_CXX="$ac_prog"
1201 CXX="$ac_cv_prog_CXX"
1202 if test -n "$CXX"; then
1203 echo "$ac_t""$CXX" 1>&6
1205 echo "$ac_t""no" 1>&6
1208 test -n "$CXX" && break
1210 test -n "$CXX" || CXX="gcc"
1213 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1214 echo "configure:1215: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1218 ac_cpp='$CXXCPP $CPPFLAGS'
1219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1221 cross_compiling=$ac_cv_prog_cxx_cross
1223 cat > conftest.$ac_ext << EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1228 int main(){return(0);}
1230 if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1231 ac_cv_prog_cxx_works=yes
1232 # If we can't run a trivial program, we are probably using a cross compiler.
1233 if (./conftest; exit) 2>/dev/null; then
1234 ac_cv_prog_cxx_cross=no
1236 ac_cv_prog_cxx_cross=yes
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1241 ac_cv_prog_cxx_works=no
1245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1246 ac_cpp='$CPP $CPPFLAGS'
1247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1249 cross_compiling=$ac_cv_prog_cc_cross
1251 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1252 if test $ac_cv_prog_cxx_works = no; then
1253 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1255 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1256 echo "configure:1257: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1257 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1258 cross_compiling=$ac_cv_prog_cxx_cross
1260 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether we are using GNU C++" >&5
1262 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 cat > conftest.C <<EOF
1270 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1277 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1279 if test $ac_cv_prog_gxx = yes; then
1285 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1286 ac_save_CXXFLAGS="$CXXFLAGS"
1288 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1289 echo "configure:1290: checking whether ${CXX-g++} accepts -g" >&5
1290 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 echo 'void f(){}' > conftest.cc
1294 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1295 ac_cv_prog_cxx_g=yes
1303 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1304 if test "$ac_test_CXXFLAGS" = set; then
1305 CXXFLAGS="$ac_save_CXXFLAGS"
1306 elif test $ac_cv_prog_cxx_g = yes; then
1307 if test "$GXX" = yes; then
1313 if test "$GXX" = yes; then
1324 # Make sure we can run config.sub.
1325 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1326 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1329 echo $ac_n "checking host system type""... $ac_c" 1>&6
1330 echo "configure:1331: checking host system type" >&5
1333 case "$host_alias" in
1337 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1338 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1340 *) host_alias=$nonopt ;;
1344 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1345 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1346 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1347 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348 echo "$ac_t""$host" 1>&6
1350 echo $ac_n "checking for inline""... $ac_c" 1>&6
1351 echo "configure:1352: checking for inline" >&5
1352 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1356 for ac_kw in inline __inline__ __inline; do
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1365 if { (eval echo configure:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1367 ac_cv_c_inline=$ac_kw; break
1369 echo "configure: failed program was:" >&5
1370 cat conftest.$ac_ext >&5
1377 echo "$ac_t""$ac_cv_c_inline" 1>&6
1378 case "$ac_cv_c_inline" in
1380 no) cat >> confdefs.h <<\EOF
1384 *) cat >> confdefs.h <<EOF
1385 #define inline $ac_cv_c_inline
1390 echo $ac_n "checking size of short""... $ac_c" 1>&6
1391 echo "configure:1392: checking size of short" >&5
1392 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 if test "$cross_compiling" = yes; then
1396 ac_cv_sizeof_short=2
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1404 FILE *f=fopen("conftestval", "w");
1406 fprintf(f, "%d\n", sizeof(short));
1410 if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1412 ac_cv_sizeof_short=`cat conftestval`
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1417 ac_cv_sizeof_short=0
1423 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1424 cat >> confdefs.h <<EOF
1425 #define SIZEOF_SHORT $ac_cv_sizeof_short
1429 echo $ac_n "checking size of int""... $ac_c" 1>&6
1430 echo "configure:1431: checking size of int" >&5
1431 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 if test "$cross_compiling" = yes; then
1437 cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1443 FILE *f=fopen("conftestval", "w");
1445 fprintf(f, "%d\n", sizeof(int));
1449 if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1451 ac_cv_sizeof_int=`cat conftestval`
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1462 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1463 cat >> confdefs.h <<EOF
1464 #define SIZEOF_INT $ac_cv_sizeof_int
1468 echo $ac_n "checking size of long""... $ac_c" 1>&6
1469 echo "configure:1470: checking size of long" >&5
1470 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 if test "$cross_compiling" = yes; then
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1482 FILE *f=fopen("conftestval", "w");
1484 fprintf(f, "%d\n", sizeof(long));
1488 if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1490 ac_cv_sizeof_long=`cat conftestval`
1492 echo "configure: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1501 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1502 cat >> confdefs.h <<EOF
1503 #define SIZEOF_LONG $ac_cv_sizeof_long
1507 echo $ac_n "checking size of float""... $ac_c" 1>&6
1508 echo "configure:1509: checking size of float" >&5
1509 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 if test "$cross_compiling" = yes; then
1513 ac_cv_sizeof_float=4
1515 cat > conftest.$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1521 FILE *f=fopen("conftestval", "w");
1523 fprintf(f, "%d\n", sizeof(float));
1527 if { (eval echo configure:1528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1529 ac_cv_sizeof_float=`cat conftestval`
1531 echo "configure: failed program was:" >&5
1532 cat conftest.$ac_ext >&5
1534 ac_cv_sizeof_float=0
1540 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1541 cat >> confdefs.h <<EOF
1542 #define SIZEOF_FLOAT $ac_cv_sizeof_float
1546 echo $ac_n "checking size of double""... $ac_c" 1>&6
1547 echo "configure:1548: checking size of double" >&5
1548 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 if test "$cross_compiling" = yes; then
1552 ac_cv_sizeof_double=8
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1560 FILE *f=fopen("conftestval", "w");
1562 fprintf(f, "%d\n", sizeof(double));
1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1568 ac_cv_sizeof_double=`cat conftestval`
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1573 ac_cv_sizeof_double=0
1579 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1580 cat >> confdefs.h <<EOF
1581 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1589 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1590 echo "configure:1591: checking whether byte ordering is bigendian" >&5
1591 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 ac_cv_c_bigendian=unknown
1595 # See if sys/param.h defines the BYTE_ORDER macro.
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 #include <sys/types.h>
1600 #include <sys/param.h>
1603 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1608 if { (eval echo configure:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 # It does; now see whether it defined to BIG_ENDIAN or not.
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1614 #include <sys/types.h>
1615 #include <sys/param.h>
1618 #if BYTE_ORDER != BIG_ENDIAN
1623 if { (eval echo configure:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1625 ac_cv_c_bigendian=yes
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1630 ac_cv_c_bigendian=no
1634 echo "configure: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1638 if test $ac_cv_c_bigendian = unknown; then
1639 if test "$cross_compiling" = yes; then
1640 ac_cv_c_bigendian=unknown
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1646 /* Are we little or big endian? From Harbison&Steele. */
1650 char c[sizeof (long)];
1653 exit (u.c[sizeof (long) - 1] == 1);
1656 if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1658 ac_cv_c_bigendian=no
1660 echo "configure: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1663 ac_cv_c_bigendian=yes
1671 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1672 if test $ac_cv_c_bigendian = unknown; then
1673 echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}"
1674 to config.cache file" 1>&2
1676 if test $ac_cv_c_bigendian = yes; then
1677 cat >> confdefs.h <<\EOF
1678 #define WORDS_BIGENDIAN 1
1685 echo $ac_n "checking for main in -lz""... $ac_c" 1>&6
1686 echo "configure:1687: checking for main in -lz" >&5
1687 ac_lib_var=`echo z'_'main | sed 'y%./+-%__p_%'`
1688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 ac_save_LIBS="$LIBS"
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1703 eval "ac_cv_lib_$ac_lib_var=yes"
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1708 eval "ac_cv_lib_$ac_lib_var=no"
1711 LIBS="$ac_save_LIBS"
1714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1715 echo "$ac_t""yes" 1>&6
1718 echo "$ac_t""no" 1>&6
1719 zlib="false" ; echo "configure: warning: zlib missing. Will need zlib for PNG support" 1>&2
1722 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1723 echo "configure:1724: checking for main in -lm" >&5
1724 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 ac_save_LIBS="$LIBS"
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740 eval "ac_cv_lib_$ac_lib_var=yes"
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 eval "ac_cv_lib_$ac_lib_var=no"
1748 LIBS="$ac_save_LIBS"
1751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1752 echo "$ac_t""yes" 1>&6
1753 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1755 cat >> confdefs.h <<EOF
1756 #define $ac_tr_lib 1
1762 echo "$ac_t""no" 1>&6
1765 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1766 echo "configure:1767: checking for main in -lcurses" >&5
1767 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 ac_save_LIBS="$LIBS"
1772 LIBS="-lcurses $LIBS"
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1783 eval "ac_cv_lib_$ac_lib_var=yes"
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1788 eval "ac_cv_lib_$ac_lib_var=no"
1791 LIBS="$ac_save_LIBS"
1794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1795 echo "$ac_t""yes" 1>&6
1798 echo "$ac_t""no" 1>&6
1802 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1803 echo "configure:1804: checking for main in -lncurses" >&5
1804 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 ac_save_LIBS="$LIBS"
1809 LIBS="-lncurses $LIBS"
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1820 eval "ac_cv_lib_$ac_lib_var=yes"
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 eval "ac_cv_lib_$ac_lib_var=no"
1828 LIBS="$ac_save_LIBS"
1831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1832 echo "$ac_t""yes" 1>&6
1835 echo "$ac_t""no" 1>&6
1839 echo $ac_n "checking for main in -lg2""... $ac_c" 1>&6
1840 echo "configure:1841: checking for main in -lg2" >&5
1841 ac_lib_var=`echo g2'_'main | sed 'y%./+-%__p_%'`
1842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 ac_save_LIBS="$LIBS"
1847 cat > conftest.$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1855 if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1857 eval "ac_cv_lib_$ac_lib_var=yes"
1859 echo "configure: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1862 eval "ac_cv_lib_$ac_lib_var=no"
1865 LIBS="$ac_save_LIBS"
1868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1869 echo "$ac_t""yes" 1>&6
1872 echo "$ac_t""no" 1>&6
1876 echo $ac_n "checking for main in -lwx_gtk""... $ac_c" 1>&6
1877 echo "configure:1878: checking for main in -lwx_gtk" >&5
1878 ac_lib_var=`echo wx_gtk'_'main | sed 'y%./+-%__p_%'`
1879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 ac_save_LIBS="$LIBS"
1883 LIBS="-lwx_gtk $LIBS"
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1894 eval "ac_cv_lib_$ac_lib_var=yes"
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 eval "ac_cv_lib_$ac_lib_var=no"
1902 LIBS="$ac_save_LIBS"
1905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 wxwin=true; wx_gtk=true; cat >> confdefs.h <<\EOF
1908 #define HAVE_WXWINDOWS 1
1912 echo "$ac_t""no" 1>&6
1916 echo $ac_n "checking for main in -lwx_msw""... $ac_c" 1>&6
1917 echo "configure:1918: checking for main in -lwx_msw" >&5
1918 ac_lib_var=`echo wx_msw'_'main | sed 'y%./+-%__p_%'`
1919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 ac_save_LIBS="$LIBS"
1923 LIBS="-lwx_msw $LIBS"
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1932 if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1934 eval "ac_cv_lib_$ac_lib_var=yes"
1936 echo "configure: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1939 eval "ac_cv_lib_$ac_lib_var=no"
1942 LIBS="$ac_save_LIBS"
1945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 wxwin=true; wx_msw=true; cat >> confdefs.h <<\EOF
1948 #define HAVE_WXWINDOWS 1
1952 echo "$ac_t""no" 1>&6
1957 if test "$zlib" = "true" ; then
1958 echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
1959 echo "configure:1960: checking for main in -lpng" >&5
1960 ac_lib_var=`echo png'_'main | sed 'y%./+-%__p_%'`
1961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 ac_save_LIBS="$LIBS"
1966 cat > conftest.$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1976 eval "ac_cv_lib_$ac_lib_var=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_lib_$ac_lib_var=no"
1984 LIBS="$ac_save_LIBS"
1987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1989 png=true ; cat >> confdefs.h <<\EOF
1994 echo "$ac_t""no" 1>&6
2000 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2001 echo "configure:2002: checking how to run the C preprocessor" >&5
2002 # On Suns, sometimes $CPP names a directory.
2003 if test -n "$CPP" && test -d "$CPP"; then
2006 if test -z "$CPP"; then
2007 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2008 echo $ac_n "(cached) $ac_c" 1>&6
2010 # This must be in double quotes, not single quotes, because CPP may get
2011 # substituted into the Makefile and "${CC-cc}" will confuse make.
2013 # On the NeXT, cc -E runs the code through the compiler's parser,
2014 # not just through cpp.
2015 cat > conftest.$ac_ext <<EOF
2016 #line 2017 "configure"
2017 #include "confdefs.h"
2021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2022 { (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2024 if test -z "$ac_err"; then
2028 echo "configure: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2031 CPP="${CC-cc} -E -traditional-cpp"
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2039 { (eval echo configure:2040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2041 if test -z "$ac_err"; then
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2048 CPP="${CC-cc} -nologo -E"
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2056 { (eval echo configure:2057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2058 if test -z "$ac_err"; then
2062 echo "configure: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2072 ac_cv_prog_CPP="$CPP"
2074 CPP="$ac_cv_prog_CPP"
2076 ac_cv_prog_CPP="$CPP"
2078 echo "$ac_t""$CPP" 1>&6
2080 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2081 echo "configure:2082: checking for ANSI C header files" >&5
2082 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2094 { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2096 if test -z "$ac_err"; then
2098 ac_cv_header_stdc=yes
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 ac_cv_header_stdc=no
2108 if test $ac_cv_header_stdc = yes; then
2109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2110 cat > conftest.$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2116 egrep "memchr" >/dev/null 2>&1; then
2120 ac_cv_header_stdc=no
2126 if test $ac_cv_header_stdc = yes; then
2127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2134 egrep "free" >/dev/null 2>&1; then
2138 ac_cv_header_stdc=no
2144 if test $ac_cv_header_stdc = yes; then
2145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2146 if test "$cross_compiling" = yes; then
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2153 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2154 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2156 int main () { int i; for (i = 0; i < 256; i++)
2157 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 ac_cv_header_stdc=no
2176 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2177 if test $ac_cv_header_stdc = yes; then
2178 cat >> confdefs.h <<\EOF
2179 #define STDC_HEADERS 1
2184 for ac_hdr 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 g2.h
2186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_hdr" >&5
2189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2200 if test -z "$ac_err"; then
2202 eval "ac_cv_header_$ac_safe=yes"
2205 echo "configure: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2208 eval "ac_cv_header_$ac_safe=no"
2212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2215 cat >> confdefs.h <<EOF
2216 #define $ac_tr_hdr 1
2220 echo "$ac_t""no" 1>&6
2225 echo $ac_n "checking for working const""... $ac_c" 1>&6
2226 echo "configure:2227: checking for working const" >&5
2227 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2236 /* Ultrix mips cc rejects this. */
2237 typedef int charset[2]; const charset x;
2238 /* SunOS 4.1.1 cc rejects this. */
2239 char const *const *ccp;
2241 /* NEC SVR4.0.2 mips cc rejects this. */
2242 struct point {int x, y;};
2243 static struct point const zero = {0,0};
2244 /* AIX XL C 1.02.0.0 rejects this.
2245 It does not let you subtract one const X* pointer from another in an arm
2246 of an if-expression whose if-part is not a constant expression */
2247 const char *g = "string";
2248 ccp = &g + (g ? g-g : 0);
2249 /* HPUX 7.0 cc rejects these. */
2252 ccp = (char const *const *) p;
2253 { /* SCO 3.2v4 cc rejects this. */
2255 char const *s = 0 ? (char *) 0 : (char const *) 0;
2259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2261 const int *foo = &x[0];
2264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2265 typedef const int *iptr;
2269 { /* AIX XL C 1.02.0.0 rejects this saying
2270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2271 struct s { int j; const int *ap[3]; };
2272 struct s *b; b->j = 5;
2274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2280 if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2292 echo "$ac_t""$ac_cv_c_const" 1>&6
2293 if test $ac_cv_c_const = no; then
2294 cat >> confdefs.h <<\EOF
2300 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2301 echo "configure:2302: checking for off_t" >&5
2302 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <sys/types.h>
2314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2315 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2317 ac_cv_type_off_t=yes
2325 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2326 if test $ac_cv_type_off_t = no; then
2327 cat >> confdefs.h <<\EOF
2333 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2334 echo "configure:2335: checking for size_t" >&5
2335 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 #include <sys/types.h>
2347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2348 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2350 ac_cv_type_size_t=yes
2353 ac_cv_type_size_t=no
2358 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2359 if test $ac_cv_type_size_t = no; then
2360 cat >> confdefs.h <<\EOF
2361 #define size_t unsigned
2366 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2367 echo "configure:2368: checking whether struct tm is in sys/time.h or time.h" >&5
2368 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <sys/types.h>
2377 struct tm *tp; tp->tm_sec;
2380 if { (eval echo configure:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 ac_cv_struct_tm=time.h
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2387 ac_cv_struct_tm=sys/time.h
2392 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2393 if test $ac_cv_struct_tm = sys/time.h; then
2394 cat >> confdefs.h <<\EOF
2395 #define TM_IN_SYS_TIME 1
2401 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2402 echo "configure:2403: checking for vprintf" >&5
2403 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 /* System header to define __stub macros and hopefully few prototypes,
2410 which can conflict with char vprintf(); below. */
2412 /* Override any gcc2 internal prototype to avoid an error. */
2413 /* We use char because int might match the return type of a gcc2
2414 builtin and then its argument prototype would still apply. */
2419 /* The GNU C library defines this for functions which it implements
2420 to always fail with ENOSYS. Some functions are actually named
2421 something starting with __ and the normal name is an alias. */
2422 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2432 eval "ac_cv_func_vprintf=yes"
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2437 eval "ac_cv_func_vprintf=no"
2442 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2443 echo "$ac_t""yes" 1>&6
2444 cat >> confdefs.h <<\EOF
2445 #define HAVE_VPRINTF 1
2449 echo "$ac_t""no" 1>&6
2452 if test "$ac_cv_func_vprintf" != yes; then
2453 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2454 echo "configure:2455: checking for _doprnt" >&5
2455 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 /* System header to define __stub macros and hopefully few prototypes,
2462 which can conflict with char _doprnt(); below. */
2464 /* Override any gcc2 internal prototype to avoid an error. */
2465 /* We use char because int might match the return type of a gcc2
2466 builtin and then its argument prototype would still apply. */
2471 /* The GNU C library defines this for functions which it implements
2472 to always fail with ENOSYS. Some functions are actually named
2473 something starting with __ and the normal name is an alias. */
2474 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2484 eval "ac_cv_func__doprnt=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 eval "ac_cv_func__doprnt=no"
2494 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 cat >> confdefs.h <<\EOF
2497 #define HAVE_DOPRNT 1
2501 echo "$ac_t""no" 1>&6
2506 for ac_func in strtod strtol snprintf htonl
2508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_func" >&5
2510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2516 /* System header to define __stub macros and hopefully few prototypes,
2517 which can conflict with char $ac_func(); below. */
2519 /* Override any gcc2 internal prototype to avoid an error. */
2520 /* We use char because int might match the return type of a gcc2
2521 builtin and then its argument prototype would still apply. */
2526 /* The GNU C library defines this for functions which it implements
2527 to always fail with ENOSYS. Some functions are actually named
2528 something starting with __ and the normal name is an alias. */
2529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2537 if { (eval echo configure:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2539 eval "ac_cv_func_$ac_func=yes"
2541 echo "configure: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2544 eval "ac_cv_func_$ac_func=no"
2549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2550 echo "$ac_t""yes" 1>&6
2551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2552 cat >> confdefs.h <<EOF
2553 #define $ac_tr_func 1
2557 echo "$ac_t""no" 1>&6
2561 echo $ac_n "checking for basename""... $ac_c" 1>&6
2562 echo "configure:2563: checking for basename" >&5
2563 if eval "test \"`echo '$''{'ac_cv_func_basename'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 /* System header to define __stub macros and hopefully few prototypes,
2570 which can conflict with char basename(); below. */
2572 /* Override any gcc2 internal prototype to avoid an error. */
2573 /* We use char because int might match the return type of a gcc2
2574 builtin and then its argument prototype would still apply. */
2579 /* The GNU C library defines this for functions which it implements
2580 to always fail with ENOSYS. Some functions are actually named
2581 something starting with __ and the normal name is an alias. */
2582 #if defined (__stub_basename) || defined (__stub___basename)
2590 if { (eval echo configure:2591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2592 eval "ac_cv_func_basename=yes"
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2597 eval "ac_cv_func_basename=no"
2602 if eval "test \"`echo '$ac_cv_func_'basename`\" = yes"; then
2603 echo "$ac_t""yes" 1>&6
2606 echo "$ac_t""no" 1>&6
2609 echo $ac_n "checking for setjmp""... $ac_c" 1>&6
2610 echo "configure:2611: checking for setjmp" >&5
2611 if eval "test \"`echo '$''{'ac_cv_func_setjmp'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 /* System header to define __stub macros and hopefully few prototypes,
2618 which can conflict with char setjmp(); below. */
2620 /* Override any gcc2 internal prototype to avoid an error. */
2621 /* We use char because int might match the return type of a gcc2
2622 builtin and then its argument prototype would still apply. */
2627 /* The GNU C library defines this for functions which it implements
2628 to always fail with ENOSYS. Some functions are actually named
2629 something starting with __ and the normal name is an alias. */
2630 #if defined (__stub_setjmp) || defined (__stub___setjmp)
2638 if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2640 eval "ac_cv_func_setjmp=yes"
2642 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2645 eval "ac_cv_func_setjmp=no"
2650 if eval "test \"`echo '$ac_cv_func_'setjmp`\" = yes"; then
2651 echo "$ac_t""yes" 1>&6
2654 echo "$ac_t""no" 1>&6
2657 if test "${OSTYPE}" = "cygwin" ; then
2660 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2661 echo "configure:2662: checking for getopt_long" >&5
2662 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 /* System header to define __stub macros and hopefully few prototypes,
2669 which can conflict with char getopt_long(); below. */
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 /* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2678 /* The GNU C library defines this for functions which it implements
2679 to always fail with ENOSYS. Some functions are actually named
2680 something starting with __ and the normal name is an alias. */
2681 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2691 eval "ac_cv_func_getopt_long=yes"
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2696 eval "ac_cv_func_getopt_long=no"
2701 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2705 echo "$ac_t""no" 1>&6
2710 if test "${getopt_long}" = "false" ; then
2711 my_includes="$myincludes -I../getopt"
2712 cat >> confdefs.h <<\EOF
2713 #define HAVE_GETOPT_LONG 1
2716 ctlibs_base="$ctlibs_base -lgetopt"
2717 LDFLAGS="$LDFLAGS -L../getopt"
2721 INCLUDED_GETOPT_LONG_TRUE=
2722 INCLUDED_GETOPT_LONG_FALSE='#'
2724 INCLUDED_GETOPT_LONG_TRUE='#'
2725 INCLUDED_GETOPT_LONG_FALSE=
2731 if test -n "$GCC"; then
2732 CFLAGS="$CFLAGS -Wall"
2735 echo $ac_n "checking whether to enable verbose warnings""... $ac_c" 1>&6
2736 echo "configure:2737: checking whether to enable verbose warnings" >&5
2737 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
2738 if test "${enable_verbose_warnings+set}" = set; then
2739 enableval="$enable_verbose_warnings"
2740 case "$enableval" in
2742 echo "$ac_t""yes" 1>&6
2744 if test -n "$GCC"; then
2749 if test -n "$GCC"; then
2750 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
2754 if test -n "$GCC"; then
2755 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
2759 if test -n "$GCC"; then
2760 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
2764 if test -n "$GCC"; then
2765 CFLAGS="$CFLAGS -pedantic"
2769 if test -n "$GCC"; then
2770 CFLAGS="$CFLAGS -Wredundant-decls"
2776 echo "$ac_t""no" 1>&6
2780 echo "$ac_t""no" 1>&6
2785 # Check whether --enable-debug or --disable-debug was given.
2786 if test "${enable_debug+set}" = set; then
2787 enableval="$enable_debug"
2788 case "${enableval}" in
2793 CFLAGS="$CFLAGS -O2"
2795 *) { echo "configure: error: bad value ${enableval} for --enable-debug" 1>&2; exit 1; }
2804 if test "$debug" = "true"; then
2812 # Check whether --with-lam or --without-lam was given.
2813 if test "${with_lam+set}" = set; then
2815 if test "$withval" != "no" ; then
2822 if test "$withval" != "no" ; then
2823 if test "$prefix" != "NONE" ; then
2824 trylamdir="$trylamdir $prefix"
2827 echo $ac_n "checking for LAM MPI installation""... $ac_c" 1>&6
2828 echo "configure:2829: checking for LAM MPI installation" >&5
2829 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
2830 if test -x "$testlamdir/bin/hcc" ; then
2831 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
2832 CFLAGS="$CFLAGS -I$testlamdir/include"
2833 lamdir="$testlamdir"
2840 echo "$ac_t""$lamdir" 1>&6
2842 echo "$ac_t""no" 1>&6
2845 echo $ac_n "checking for web access""... $ac_c" 1>&6
2846 echo "configure:2847: checking for web access" >&5
2847 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
2848 if test "${with_cgibin_dir+set}" = set; then
2849 withval="$with_cgibin_dir"
2850 cgibindir=$withval ;
2854 # Check whether --with-cgibin-url or --without-cgibin-url was given.
2855 if test "${with_cgibin_url+set}" = set; then
2856 withval="$with_cgibin_url"
2857 cgibinurl=$withval ;
2861 # Check whether --with-webdata-dir or --without-webdata-dir was given.
2862 if test "${with_webdata_dir+set}" = set; then
2863 withval="$with_webdata_dir"
2864 webdatadir=$withval ;
2868 # Check whether --with-webdata-url or --without-webdata-url was given.
2869 if test "${with_webdata_url+set}" = set; then
2870 withval="$with_webdata_url"
2871 webdataurl=$withval ;
2875 # Check whether --with-html-dir or --without-html-dir was given.
2876 if test "${with_html_dir+set}" = set; then
2877 withval="$with_html_dir"
2882 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
2883 cgiprograms="ctsim.cgi ctsim.conf"
2887 if test -n "$htmldir" ; then
2888 htmldata=simulate.html
2893 if test -n "$htmldir"; then
2901 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
2904 echo "$ac_t""yes" 1>&6
2905 if test -z "$cgibindir" ; then
2906 { echo "configure: error: --with-cgibin-dir not set for web access" 1>&2; exit 1; }
2907 elif test -z "$cgibinurl" ; then
2908 { echo "configure: error: --with-cgibin-url not set for web access" 1>&2; exit 1; }
2909 elif test -z "$webdatadir" ; then
2910 { echo "configure: error: --with-webdata-dir not set for web access" 1>&2; exit 1; }
2911 elif test -z "$webdataurl" ; then
2912 { echo "configure: error: --with-webdata-url not set for web access" 1>&2; exit 1; }
2913 elif test -z "$htmldir" ; then
2914 { echo "configure: error: --with-html-dir not set for web access" 1>&2; exit 1; }
2917 echo "$ac_t""no" 1>&6
2922 if test -n "$lamdir"; then
2931 # If we find X, set shell vars x_includes and x_libraries to the
2932 # paths, otherwise set no_x=yes.
2933 # Uses ac_ vars as temps to allow command line to override cache and checks.
2934 # --without-x overrides everything else, but does not touch the cache.
2935 echo $ac_n "checking for X""... $ac_c" 1>&6
2936 echo "configure:2937: checking for X" >&5
2938 # Check whether --with-x or --without-x was given.
2939 if test "${with_x+set}" = set; then
2944 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2945 if test "x$with_x" = xno; then
2946 # The user explicitly disabled X.
2949 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2950 # Both variables are already set.
2953 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 # One or both of the vars are not set, and there is no cached value.
2957 ac_x_includes=NO ac_x_libraries=NO
2959 if mkdir conftestdir; then
2961 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2962 cat > Imakefile <<'EOF'
2964 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2966 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2967 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2968 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2969 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2970 for ac_extension in a so sl; do
2971 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2972 test -f $ac_im_libdir/libX11.$ac_extension; then
2973 ac_im_usrlibdir=$ac_im_libdir; break
2976 # Screen out bogus values from the imake configuration. They are
2977 # bogus both because they are the default anyway, and because
2978 # using them would break gcc on systems where it needs fixed includes.
2979 case "$ac_im_incroot" in
2981 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2983 case "$ac_im_usrlibdir" in
2985 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2992 if test "$ac_x_includes" = NO; then
2993 # Guess where to find include files, by looking for this one X11 .h file.
2994 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2996 # First, try using that file with no special directory specified.
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 #include <$x_direct_test_include>
3002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3003 { (eval echo configure:3004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3005 if test -z "$ac_err"; then
3007 # We can compile using X headers with no special include directory.
3011 echo "configure: failed program was:" >&5
3012 cat conftest.$ac_ext >&5
3014 # Look for the header file in a standard set of common directories.
3015 # Check X11 before X11Rn because it is often a symlink to the current release.
3018 /usr/X11R6/include \
3019 /usr/X11R5/include \
3020 /usr/X11R4/include \
3023 /usr/include/X11R6 \
3024 /usr/include/X11R5 \
3025 /usr/include/X11R4 \
3027 /usr/local/X11/include \
3028 /usr/local/X11R6/include \
3029 /usr/local/X11R5/include \
3030 /usr/local/X11R4/include \
3032 /usr/local/include/X11 \
3033 /usr/local/include/X11R6 \
3034 /usr/local/include/X11R5 \
3035 /usr/local/include/X11R4 \
3039 /usr/XFree86/include/X11 \
3042 /usr/local/include \
3043 /usr/unsupported/include \
3044 /usr/athena/include \
3045 /usr/local/x11r5/include \
3046 /usr/lpp/Xamples/include \
3048 /usr/openwin/include \
3049 /usr/openwin/share/include \
3052 if test -r "$ac_dir/$x_direct_test_include"; then
3053 ac_x_includes=$ac_dir
3059 fi # $ac_x_includes = NO
3061 if test "$ac_x_libraries" = NO; then
3062 # Check for the libraries.
3064 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3065 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3067 # See if we find them without any special options.
3068 # Don't add to $LIBS permanently.
3069 ac_save_LIBS="$LIBS"
3070 LIBS="-l$x_direct_test_library $LIBS"
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3076 ${x_direct_test_function}()
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3081 LIBS="$ac_save_LIBS"
3082 # We can link X programs with no special library path.
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3088 LIBS="$ac_save_LIBS"
3089 # First see if replacing the include by lib works.
3090 # Check X11 before X11Rn because it is often a symlink to the current release.
3091 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3102 /usr/local/X11/lib \
3103 /usr/local/X11R6/lib \
3104 /usr/local/X11R5/lib \
3105 /usr/local/X11R4/lib \
3107 /usr/local/lib/X11 \
3108 /usr/local/lib/X11R6 \
3109 /usr/local/lib/X11R5 \
3110 /usr/local/lib/X11R4 \
3114 /usr/XFree86/lib/X11 \
3118 /usr/unsupported/lib \
3120 /usr/local/x11r5/lib \
3121 /usr/lpp/Xamples/lib \
3125 /usr/openwin/share/lib \
3128 for ac_extension in a so sl; do
3129 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3130 ac_x_libraries=$ac_dir
3137 fi # $ac_x_libraries = NO
3139 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3140 # Didn't find X anywhere. Cache the known absence of X.
3141 ac_cv_have_x="have_x=no"
3143 # Record where we found X for the cache.
3144 ac_cv_have_x="have_x=yes \
3145 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3149 eval "$ac_cv_have_x"
3152 if test "$have_x" != yes; then
3153 echo "$ac_t""$have_x" 1>&6
3156 # If each of the values was on the command line, it overrides each guess.
3157 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3158 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3159 # Update the cache value to reflect the command line values.
3160 ac_cv_have_x="have_x=yes \
3161 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3162 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3165 if test "$no_x" = yes; then
3166 # Not all programs may use this symbol, but it does not hurt to define it.
3167 cat >> confdefs.h <<\EOF
3168 #define X_DISPLAY_MISSING 1
3171 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3173 if test -n "$x_includes"; then
3174 X_CFLAGS="$X_CFLAGS -I$x_includes"
3177 # It would also be nice to do this for all -L options, not just this one.
3178 if test -n "$x_libraries"; then
3179 X_LIBS="$X_LIBS -L$x_libraries"
3180 # For Solaris; some versions of Sun CC require a space after -R and
3181 # others require no space. Words are not sufficient . . . .
3182 case "`(uname -sr) 2>/dev/null`" in
3184 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3185 echo "configure:3186: checking whether -R must be followed by a space" >&5
3186 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3205 if test $ac_R_nospace = yes; then
3206 echo "$ac_t""no" 1>&6
3207 X_LIBS="$X_LIBS -R$x_libraries"
3209 LIBS="$ac_xsave_LIBS -R $x_libraries"
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3228 if test $ac_R_space = yes; then
3229 echo "$ac_t""yes" 1>&6
3230 X_LIBS="$X_LIBS -R $x_libraries"
3232 echo "$ac_t""neither works" 1>&6
3235 LIBS="$ac_xsave_LIBS"
3239 # Check for system-dependent libraries X programs must link with.
3240 # Do this before checking for the system-independent R6 libraries
3241 # (-lICE), since we may need -lsocket or whatever for X linking.
3243 if test "$ISC" = yes; then
3244 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3246 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3247 # libraries were built with DECnet support. And karl@cs.umb.edu says
3248 # the Alpha needs dnet_stub (dnet does not exist).
3249 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3250 echo "configure:3251: checking for dnet_ntoa in -ldnet" >&5
3251 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 ac_save_LIBS="$LIBS"
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 /* Override any gcc2 internal prototype to avoid an error. */
3261 /* We use char because int might match the return type of a gcc2
3262 builtin and then its argument prototype would still apply. */
3269 if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3271 eval "ac_cv_lib_$ac_lib_var=yes"
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3276 eval "ac_cv_lib_$ac_lib_var=no"
3279 LIBS="$ac_save_LIBS"
3282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3283 echo "$ac_t""yes" 1>&6
3284 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3286 echo "$ac_t""no" 1>&6
3289 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3290 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3291 echo "configure:3292: checking for dnet_ntoa in -ldnet_stub" >&5
3292 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 ac_save_LIBS="$LIBS"
3297 LIBS="-ldnet_stub $LIBS"
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 /* Override any gcc2 internal prototype to avoid an error. */
3302 /* We use char because int might match the return type of a gcc2
3303 builtin and then its argument prototype would still apply. */
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 eval "ac_cv_lib_$ac_lib_var=yes"
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 eval "ac_cv_lib_$ac_lib_var=no"
3320 LIBS="$ac_save_LIBS"
3323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3327 echo "$ac_t""no" 1>&6
3332 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3333 # to get the SysV transport functions.
3334 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3336 # The nsl library prevents programs from opening the X display
3337 # on Irix 5.2, according to dickey@clark.net.
3338 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3339 echo "configure:3340: checking for gethostbyname" >&5
3340 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 /* System header to define __stub macros and hopefully few prototypes,
3347 which can conflict with char gethostbyname(); below. */
3349 /* Override any gcc2 internal prototype to avoid an error. */
3350 /* We use char because int might match the return type of a gcc2
3351 builtin and then its argument prototype would still apply. */
3352 char gethostbyname();
3356 /* The GNU C library defines this for functions which it implements
3357 to always fail with ENOSYS. Some functions are actually named
3358 something starting with __ and the normal name is an alias. */
3359 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3367 if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 eval "ac_cv_func_gethostbyname=yes"
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3374 eval "ac_cv_func_gethostbyname=no"
3379 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3380 echo "$ac_t""yes" 1>&6
3383 echo "$ac_t""no" 1>&6
3386 if test $ac_cv_func_gethostbyname = no; then
3387 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3388 echo "configure:3389: checking for gethostbyname in -lnsl" >&5
3389 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 ac_save_LIBS="$LIBS"
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3401 char gethostbyname();
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 eval "ac_cv_lib_$ac_lib_var=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3414 eval "ac_cv_lib_$ac_lib_var=no"
3417 LIBS="$ac_save_LIBS"
3420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3421 echo "$ac_t""yes" 1>&6
3422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3424 echo "$ac_t""no" 1>&6
3429 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3430 # socket/setsockopt and other routines are undefined under SCO ODT
3431 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3432 # on later versions), says simon@lia.di.epfl.ch: it contains
3433 # gethostby* variants that don't use the nameserver (or something).
3434 # -lsocket must be given before -lnsl if both are needed.
3435 # We assume that if connect needs -lnsl, so does gethostbyname.
3436 echo $ac_n "checking for connect""... $ac_c" 1>&6
3437 echo "configure:3438: checking for connect" >&5
3438 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 /* System header to define __stub macros and hopefully few prototypes,
3445 which can conflict with char connect(); below. */
3447 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3454 /* The GNU C library defines this for functions which it implements
3455 to always fail with ENOSYS. Some functions are actually named
3456 something starting with __ and the normal name is an alias. */
3457 #if defined (__stub_connect) || defined (__stub___connect)
3465 if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3467 eval "ac_cv_func_connect=yes"
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3472 eval "ac_cv_func_connect=no"
3477 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3481 echo "$ac_t""no" 1>&6
3484 if test $ac_cv_func_connect = no; then
3485 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3486 echo "configure:3487: checking for connect in -lsocket" >&5
3487 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 ac_save_LIBS="$LIBS"
3492 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 /* Override any gcc2 internal prototype to avoid an error. */
3497 /* We use char because int might match the return type of a gcc2
3498 builtin and then its argument prototype would still apply. */
3505 if { (eval echo configure:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3507 eval "ac_cv_lib_$ac_lib_var=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 eval "ac_cv_lib_$ac_lib_var=no"
3515 LIBS="$ac_save_LIBS"
3518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3520 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3522 echo "$ac_t""no" 1>&6
3527 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3528 echo $ac_n "checking for remove""... $ac_c" 1>&6
3529 echo "configure:3530: checking for remove" >&5
3530 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 /* System header to define __stub macros and hopefully few prototypes,
3537 which can conflict with char remove(); below. */
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3546 /* The GNU C library defines this for functions which it implements
3547 to always fail with ENOSYS. Some functions are actually named
3548 something starting with __ and the normal name is an alias. */
3549 #if defined (__stub_remove) || defined (__stub___remove)
3557 if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3559 eval "ac_cv_func_remove=yes"
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3564 eval "ac_cv_func_remove=no"
3569 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3570 echo "$ac_t""yes" 1>&6
3573 echo "$ac_t""no" 1>&6
3576 if test $ac_cv_func_remove = no; then
3577 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3578 echo "configure:3579: checking for remove in -lposix" >&5
3579 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 ac_save_LIBS="$LIBS"
3584 LIBS="-lposix $LIBS"
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3597 if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3599 eval "ac_cv_lib_$ac_lib_var=yes"
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3604 eval "ac_cv_lib_$ac_lib_var=no"
3607 LIBS="$ac_save_LIBS"
3610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3611 echo "$ac_t""yes" 1>&6
3612 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3614 echo "$ac_t""no" 1>&6
3619 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3620 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3621 echo "configure:3622: checking for shmat" >&5
3622 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 cat > conftest.$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3628 /* System header to define __stub macros and hopefully few prototypes,
3629 which can conflict with char shmat(); below. */
3631 /* Override any gcc2 internal prototype to avoid an error. */
3632 /* We use char because int might match the return type of a gcc2
3633 builtin and then its argument prototype would still apply. */
3638 /* The GNU C library defines this for functions which it implements
3639 to always fail with ENOSYS. Some functions are actually named
3640 something starting with __ and the normal name is an alias. */
3641 #if defined (__stub_shmat) || defined (__stub___shmat)
3649 if { (eval echo configure:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3651 eval "ac_cv_func_shmat=yes"
3653 echo "configure: failed program was:" >&5
3654 cat conftest.$ac_ext >&5
3656 eval "ac_cv_func_shmat=no"
3661 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3662 echo "$ac_t""yes" 1>&6
3665 echo "$ac_t""no" 1>&6
3668 if test $ac_cv_func_shmat = no; then
3669 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3670 echo "configure:3671: checking for shmat in -lipc" >&5
3671 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 ac_save_LIBS="$LIBS"
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 /* Override any gcc2 internal prototype to avoid an error. */
3681 /* We use char because int might match the return type of a gcc2
3682 builtin and then its argument prototype would still apply. */
3689 if { (eval echo configure:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3691 eval "ac_cv_lib_$ac_lib_var=yes"
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3696 eval "ac_cv_lib_$ac_lib_var=no"
3699 LIBS="$ac_save_LIBS"
3702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3703 echo "$ac_t""yes" 1>&6
3704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3706 echo "$ac_t""no" 1>&6
3712 # Check for libraries that X11R6 Xt/Xaw programs need.
3713 ac_save_LDFLAGS="$LDFLAGS"
3714 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3715 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3716 # check for ICE first), but we must link in the order -lSM -lICE or
3717 # we get undefined symbols. So assume we have SM if we have ICE.
3718 # These have to be linked with before -lX11, unlike the other
3719 # libraries we check for below, so use a different variable.
3720 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3721 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3722 echo "configure:3723: checking for IceConnectionNumber in -lICE" >&5
3723 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 ac_save_LIBS="$LIBS"
3728 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 /* We use char because int might match the return type of a gcc2
3734 builtin and then its argument prototype would still apply. */
3735 char IceConnectionNumber();
3738 IceConnectionNumber()
3741 if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3743 eval "ac_cv_lib_$ac_lib_var=yes"
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3748 eval "ac_cv_lib_$ac_lib_var=no"
3751 LIBS="$ac_save_LIBS"
3754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3755 echo "$ac_t""yes" 1>&6
3756 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3758 echo "$ac_t""no" 1>&6
3761 LDFLAGS="$ac_save_LDFLAGS"
3772 X_TOOLKIT_LIBS="-lXt"
3773 X_BASIC_LIBS="-lXext -lX11"
3775 our_saved_LDFLAGS="$LDFLAGS"
3776 LDFLAGS="$X_LIBS $LDFLAGS"
3777 echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
3778 echo "configure:3779: checking for XtToolkitThreadInitialize in -lXt" >&5
3779 ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
3780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3783 ac_save_LIBS="$LIBS"
3784 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3791 char XtToolkitThreadInitialize();
3794 XtToolkitThreadInitialize()
3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3799 eval "ac_cv_lib_$ac_lib_var=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_lib_$ac_lib_var=no"
3807 LIBS="$ac_save_LIBS"
3810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 cat >> confdefs.h <<\EOF
3813 #define X_THREAD_SUPPORT 1
3817 echo "$ac_t""no" 1>&6
3820 LDFLAGS="$our_saved_LDFLAGS"
3822 our_saved_LDFLAGS="$LDFLAGS"
3823 LDFLAGS="$X_LIBS $LDFLAGS"
3824 echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
3825 echo "configure:3826: checking for XdbeQueryExtension in -lXext" >&5
3826 ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
3827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 ac_save_LIBS="$LIBS"
3831 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 /* Override any gcc2 internal prototype to avoid an error. */
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3838 char XdbeQueryExtension();
3841 XdbeQueryExtension()
3844 if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3846 eval "ac_cv_lib_$ac_lib_var=yes"
3848 echo "configure: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3851 eval "ac_cv_lib_$ac_lib_var=no"
3854 LIBS="$ac_save_LIBS"
3857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 cat >> confdefs.h <<\EOF
3860 #define HAVE_DBE_SUPPORT 1
3864 echo "$ac_t""no" 1>&6
3867 echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
3868 echo "configure:3869: checking for XmbufQueryExtension in -lXext" >&5
3869 ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
3870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 ac_save_LIBS="$LIBS"
3874 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
3875 cat > conftest.$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3878 /* Override any gcc2 internal prototype to avoid an error. */
3879 /* We use char because int might match the return type of a gcc2
3880 builtin and then its argument prototype would still apply. */
3881 char XmbufQueryExtension();
3884 XmbufQueryExtension()
3887 if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3889 eval "ac_cv_lib_$ac_lib_var=yes"
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3894 eval "ac_cv_lib_$ac_lib_var=no"
3897 LIBS="$ac_save_LIBS"
3900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3901 echo "$ac_t""yes" 1>&6
3902 cat >> confdefs.h <<\EOF
3903 #define HAVE_MBX_SUPPORT 1
3907 echo "$ac_t""no" 1>&6
3910 LDFLAGS="$our_saved_LDFLAGS"
3911 our_saved_CPPFLAGS="$CPPFLAGS"
3912 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
3913 for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
3915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3917 echo "configure:3918: checking for $ac_hdr" >&5
3918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3927 { (eval echo configure:3928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3929 if test -z "$ac_err"; then
3931 eval "ac_cv_header_$ac_safe=yes"
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3937 eval "ac_cv_header_$ac_safe=no"
3941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3942 echo "$ac_t""yes" 1>&6
3943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3944 cat >> confdefs.h <<EOF
3945 #define $ac_tr_hdr 1
3949 echo "$ac_t""no" 1>&6
3953 CPPFLAGS="$our_saved_CPPFLAGS"
3957 if test "x$no_x" = "xyes"; then
3965 my_includes="$my_includes -I../include -I.."
3968 echo $ac_n "checking interactive graphics""... $ac_c" 1>&6
3969 echo "configure:3970: checking interactive graphics" >&5
3970 if test "$no_x" != "yes" ; then
3971 cat >> confdefs.h <<\EOF
3975 cat >> confdefs.h <<\EOF
3988 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
3989 ctlibs_graphics="$ctlibs_base -lctgraphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
3990 echo "$ac_t""yes" 1>&6
3992 echo "$ac_t""no" 1>&6
3995 if test "$png" = "true" ; then
3996 ctlibs_tools="$ctlibs_tools -lpng"
3998 if test "$zlib" = "true" ; then
3999 ctlibs_tools="$ctlibs_tools -lz"
4001 if test "$g2" = "true" ; then
4002 ctlibs_tools="$ctlibs_tools -lg2"
4004 if test "$wx_gtk" = "true" ; then
4005 ctlibs_tools="$ctlibs_tools -lwx_gtk"
4008 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
4009 ctlibs="$ctlibs_base -lctsim $ctlibs_graphics -lctsupport $ctlibs_tools"
4012 if test -n "$lamdir" ; then
4013 lamprograms="ctrec-lam phm2if-lam phm2pj-lam"
4018 cat > confcache <<\EOF
4019 # This file is a shell script that caches the results of configure
4020 # tests run on this system so they can be shared between configure
4021 # scripts and configure runs. It is not useful on other systems.
4022 # If it contains results you don't want to keep, you may remove or edit it.
4024 # By default, configure uses ./config.cache as the cache file,
4025 # creating it if it does not exist already. You can give configure
4026 # the --cache-file=FILE option to use a different cache file; that is
4027 # what configure does when it calls configure scripts in
4028 # subdirectories, so they share the cache.
4029 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4030 # config.status only pays attention to the cache file if you give it the
4031 # --recheck option to rerun configure.
4034 # The following way of writing the cache mishandles newlines in values,
4035 # but we know of no workaround that is simple, portable, and efficient.
4036 # So, don't put newlines in cache variables' values.
4037 # Ultrix sh set writes to stderr and can't be redirected directly,
4038 # and sets the high bit in the cache file unless we assign to the vars.
4040 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4042 # `set' does not quote correctly, so add quotes (double-quote substitution
4043 # turns \\\\ into \\, and sed turns \\ into \).
4045 -e "s/'/'\\\\''/g" \
4046 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4049 # `set' quotes correctly as required by POSIX, so do not add quotes.
4050 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4053 if cmp -s $cache_file confcache; then
4056 if test -w $cache_file; then
4057 echo "updating cache $cache_file"
4058 cat confcache > $cache_file
4060 echo "not updating unwritable cache $cache_file"
4065 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4067 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4068 # Let make expand exec_prefix.
4069 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4071 # Any assignment to VPATH causes Sun make to only execute
4072 # the first set of double-colon rules, so remove it if not needed.
4073 # If there is a colon in the path, we need to keep it.
4074 if test "x$srcdir" = x.; then
4075 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4078 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4080 DEFS=-DHAVE_CONFIG_H
4082 # Without the "./", some shells look in PATH for config.status.
4083 : ${CONFIG_STATUS=./config.status}
4085 echo creating $CONFIG_STATUS
4086 rm -f $CONFIG_STATUS
4087 cat > $CONFIG_STATUS <<EOF
4089 # Generated automatically by configure.
4090 # Run this file to recreate the current configuration.
4091 # This directory was configured as follows,
4092 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4094 # $0 $ac_configure_args
4096 # Compiler output produced by configure, useful for debugging
4097 # configure, is in ./config.log if it exists.
4099 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4102 case "\$ac_option" in
4103 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4104 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4105 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4106 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4107 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4109 -help | --help | --hel | --he | --h)
4110 echo "\$ac_cs_usage"; exit 0 ;;
4111 *) echo "\$ac_cs_usage"; exit 1 ;;
4115 ac_given_srcdir=$srcdir
4116 ac_given_INSTALL="$INSTALL"
4118 trap 'rm -fr `echo "Makefile src/Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile src/sample-ctrec.sh cgi-bin/ctsim.conf config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4120 cat >> $CONFIG_STATUS <<EOF
4122 # Protect against being on the right side of a sed subst in config.status.
4123 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4124 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4128 s%@CFLAGS@%$CFLAGS%g
4129 s%@CPPFLAGS@%$CPPFLAGS%g
4130 s%@CXXFLAGS@%$CXXFLAGS%g
4131 s%@FFLAGS@%$FFLAGS%g
4133 s%@LDFLAGS@%$LDFLAGS%g
4135 s%@exec_prefix@%$exec_prefix%g
4136 s%@prefix@%$prefix%g
4137 s%@program_transform_name@%$program_transform_name%g
4138 s%@bindir@%$bindir%g
4139 s%@sbindir@%$sbindir%g
4140 s%@libexecdir@%$libexecdir%g
4141 s%@datadir@%$datadir%g
4142 s%@sysconfdir@%$sysconfdir%g
4143 s%@sharedstatedir@%$sharedstatedir%g
4144 s%@localstatedir@%$localstatedir%g
4145 s%@libdir@%$libdir%g
4146 s%@includedir@%$includedir%g
4147 s%@oldincludedir@%$oldincludedir%g
4148 s%@infodir@%$infodir%g
4149 s%@mandir@%$mandir%g
4150 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4151 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4152 s%@INSTALL_DATA@%$INSTALL_DATA%g
4153 s%@PACKAGE@%$PACKAGE%g
4154 s%@VERSION@%$VERSION%g
4155 s%@ACLOCAL@%$ACLOCAL%g
4156 s%@AUTOCONF@%$AUTOCONF%g
4157 s%@AUTOMAKE@%$AUTOMAKE%g
4158 s%@AUTOHEADER@%$AUTOHEADER%g
4159 s%@MAKEINFO@%$MAKEINFO%g
4160 s%@SET_MAKE@%$SET_MAKE%g
4162 s%@RANLIB@%$RANLIB%g
4166 s%@host_alias@%$host_alias%g
4167 s%@host_cpu@%$host_cpu%g
4168 s%@host_vendor@%$host_vendor%g
4169 s%@host_os@%$host_os%g
4171 s%@INCLUDED_GETOPT_LONG_TRUE@%$INCLUDED_GETOPT_LONG_TRUE%g
4172 s%@INCLUDED_GETOPT_LONG_FALSE@%$INCLUDED_GETOPT_LONG_FALSE%g
4173 s%@DEBUG_TRUE@%$DEBUG_TRUE%g
4174 s%@DEBUG_FALSE@%$DEBUG_FALSE%g
4175 s%@lamdir@%$lamdir%g
4176 s%@mpienable@%$mpienable%g
4177 s%@cgibindir@%$cgibindir%g
4178 s%@cgibinurl@%$cgibinurl%g
4179 s%@webdatadir@%$webdatadir%g
4180 s%@webdataurl@%$webdataurl%g
4181 s%@htmldir@%$htmldir%g
4182 s%@cgiprograms@%$cgiprograms%g
4183 s%@htmldata@%$htmldata%g
4184 s%@USE_HTML_TRUE@%$USE_HTML_TRUE%g
4185 s%@USE_HTML_FALSE@%$USE_HTML_FALSE%g
4186 s%@webenabled@%$webenabled%g
4187 s%@USE_LAM_TRUE@%$USE_LAM_TRUE%g
4188 s%@USE_LAM_FALSE@%$USE_LAM_FALSE%g
4189 s%@X_CFLAGS@%$X_CFLAGS%g
4190 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4191 s%@X_LIBS@%$X_LIBS%g
4192 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4193 s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4194 s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4195 s%@NO_X_TRUE@%$NO_X_TRUE%g
4196 s%@NO_X_FALSE@%$NO_X_FALSE%g
4197 s%@my_includes@%$my_includes%g
4198 s%@HAVE_SGP_TRUE@%$HAVE_SGP_TRUE%g
4199 s%@HAVE_SGP_FALSE@%$HAVE_SGP_FALSE%g
4200 s%@ctlibs@%$ctlibs%g
4201 s%@lamprograms@%$lamprograms%g
4206 cat >> $CONFIG_STATUS <<\EOF
4208 # Split the substitutions into bite-sized pieces for seds with
4209 # small command number limits, like on Digital OSF/1 and HP-UX.
4210 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4211 ac_file=1 # Number of current file.
4212 ac_beg=1 # First line for current file.
4213 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4216 while $ac_more_lines; do
4217 if test $ac_beg -gt 1; then
4218 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4220 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4222 if test ! -s conftest.s$ac_file; then
4224 rm -f conftest.s$ac_file
4226 if test -z "$ac_sed_cmds"; then
4227 ac_sed_cmds="sed -f conftest.s$ac_file"
4229 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4231 ac_file=`expr $ac_file + 1`
4233 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4236 if test -z "$ac_sed_cmds"; then
4241 cat >> $CONFIG_STATUS <<EOF
4243 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile src/sample-ctrec.sh cgi-bin/ctsim.conf"}
4245 cat >> $CONFIG_STATUS <<\EOF
4246 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4247 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4249 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4250 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4251 *) ac_file_in="${ac_file}.in" ;;
4254 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4256 # Remove last slash and all that follows it. Not all systems have dirname.
4257 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4258 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4259 # The file is in a subdirectory.
4260 test ! -d "$ac_dir" && mkdir "$ac_dir"
4261 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4262 # A "../" for each directory in $ac_dir_suffix.
4263 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4265 ac_dir_suffix= ac_dots=
4268 case "$ac_given_srcdir" in
4270 if test -z "$ac_dots"; then top_srcdir=.
4271 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4272 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4274 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4275 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4278 case "$ac_given_INSTALL" in
4279 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4280 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4283 echo creating "$ac_file"
4285 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4287 *Makefile*) ac_comsub="1i\\
4288 # $configure_input" ;;
4292 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4294 s%@configure_input@%$configure_input%g
4295 s%@srcdir@%$srcdir%g
4296 s%@top_srcdir@%$top_srcdir%g
4297 s%@INSTALL@%$INSTALL%g
4298 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4302 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4303 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4305 # ac_d sets the value in "#define NAME VALUE" lines.
4306 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4307 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4310 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4311 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4312 ac_uB='\([ ]\)%\1#\2define\3'
4315 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4316 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4317 ac_eB='$%\1#\2define\3'
4321 if test "${CONFIG_HEADERS+set}" != set; then
4323 cat >> $CONFIG_STATUS <<EOF
4324 CONFIG_HEADERS="config.h"
4326 cat >> $CONFIG_STATUS <<\EOF
4328 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4329 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4331 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4332 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4333 *) ac_file_in="${ac_file}.in" ;;
4336 echo creating $ac_file
4338 rm -f conftest.frag conftest.in conftest.out
4339 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4340 cat $ac_file_inputs > conftest.in
4344 # Transform confdefs.h into a sed script conftest.vals that substitutes
4345 # the proper values into config.h.in to produce config.h. And first:
4346 # Protect against being on the right side of a sed subst in config.status.
4347 # Protect against being in an unquoted here document in config.status.
4349 cat > conftest.hdr <<\EOF
4352 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4356 sed -n -f conftest.hdr confdefs.h > conftest.vals
4359 # This sed command replaces #undef with comments. This is necessary, for
4360 # example, in the case of _POSIX_SOURCE, which is predefined and required
4361 # on some systems where configure will not decide to define it.
4362 cat >> conftest.vals <<\EOF
4363 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4366 # Break up conftest.vals because some shells have a limit on
4367 # the size of here documents, and old seds have small limits too.
4372 ac_lines=`grep -c . conftest.vals`
4373 # grep -c gives empty output for an empty file on some AIX systems.
4374 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4375 # Write a limited-size here document to conftest.frag.
4376 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4377 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4379 sed -f conftest.frag conftest.in > conftest.out
4381 mv conftest.out conftest.in
4383 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4385 mv conftest.tail conftest.vals
4389 cat >> $CONFIG_STATUS <<\EOF
4390 rm -f conftest.frag conftest.h
4391 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4392 cat conftest.in >> conftest.h
4394 if cmp -s $ac_file conftest.h 2>/dev/null; then
4395 echo "$ac_file is unchanged"
4398 # Remove last slash and all that follows it. Not all systems have dirname.
4399 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4400 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4401 # The file is in a subdirectory.
4402 test ! -d "$ac_dir" && mkdir "$ac_dir"
4405 mv conftest.h $ac_file
4410 cat >> $CONFIG_STATUS <<EOF
4414 cat >> $CONFIG_STATUS <<\EOF
4415 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4419 chmod +x $CONFIG_STATUS
4420 rm -fr confdefs* $ac_clean_files
4421 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1