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-debug Turn on debugging"
17 --enable-verbose-warnings
18 Enable verbose compiler warnings."
21 Enable static executables."
23 --with-lam[=PATH] Set path of LAM MPI "
25 --with-cgibin-dir=PATH Set path of CGI binaries directory "
27 --with-cgibin-url=PATH Set URL path of CGI binaries "
29 --with-webdata-dir=PATH Set path of webdata"
31 --with-webdata-url=PATH Set URL path of webdata"
33 --with-html-dir=PATH Set directory of html files"
35 --with-x use the X Window System"
37 --enable-dmalloc Use dmalloc memory allocation"
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
43 cache_file=./config.cache
52 program_transform_name=s,x,x,
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
213 -host | --host | --hos | --ho)
215 -host=* | --host=* | --hos=* | --ho=*)
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
257 # Obsolete; use --without-fp.
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
336 -site=* | --site=* | --sit=*)
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=src/ctsim.cpp
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
522 echo "creating cache $cache_file"
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='\c' ac_t=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh; then
556 ac_install_sh="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
567 # Find a good install program. We prefer a C program (faster),
568 # so one script is as good as another. But avoid the broken or
569 # incompatible versions:
570 # SysV /etc/install, /usr/sbin/install
571 # SunOS /usr/etc/install
574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
577 # ./install, which can be erroneously created by make from ./install.sh.
578 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
579 echo "configure:580: checking for a BSD compatible install" >&5
580 if test -z "$INSTALL"; then
581 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
582 echo $ac_n "(cached) $ac_c" 1>&6
584 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
585 for ac_dir in $PATH; do
586 # Account for people who put trailing slashes in PATH elements.
588 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
590 # OSF1 and SCO ODT 3.0 have their own names for install.
591 # Don't use installbsd from OSF since it installs stuff as root
593 for ac_prog in ginstall scoinst install; do
594 if test -f $ac_dir/$ac_prog; then
595 if test $ac_prog = install &&
596 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
597 # AIX install. It has an incompatible calling convention.
600 ac_cv_path_install="$ac_dir/$ac_prog -c"
611 if test "${ac_cv_path_install+set}" = set; then
612 INSTALL="$ac_cv_path_install"
614 # As a last resort, use the slow shell script. We don't cache a
615 # path for INSTALL within a source directory, because that will
616 # break other packages using the cache if that directory is
617 # removed, or if the path is relative.
618 INSTALL="$ac_install_sh"
621 echo "$ac_t""$INSTALL" 1>&6
623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
624 # It thinks the first close brace ends the variable substitution.
625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
631 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
632 echo "configure:633: checking whether build environment is sane" >&5
635 echo timestamp > conftestfile
636 # Do `set' in a subshell so we don't clobber the current shell's
637 # arguments. Must try -L first in case configure is actually a
638 # symlink; some systems play weird games with the mod time of symlinks
639 # (eg FreeBSD returns the mod time of the symlink's containing
642 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
643 if test "$*" = "X"; then
645 set X `ls -t $srcdir/configure conftestfile`
647 if test "$*" != "X $srcdir/configure conftestfile" \
648 && test "$*" != "X conftestfile $srcdir/configure"; then
650 # If neither matched, then we have a broken ls. This can happen
651 # if, for instance, CONFIG_SHELL is bash and it inherits a
652 # broken ls alias from the environment. This has actually
653 # happened. Such a system could not be considered "sane".
654 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
655 alias in your environment" 1>&2; exit 1; }
658 test "$2" = conftestfile
664 { echo "configure: error: newly created file is older than distributed files!
665 Check your system clock" 1>&2; exit 1; }
668 echo "$ac_t""yes" 1>&6
669 if test "$program_transform_name" = s,x,x,; then
670 program_transform_name=
672 # Double any \ or $. echo might interpret backslashes.
673 cat <<\EOF_SED > conftestsed
674 s,\\,\\\\,g; s,\$,$$,g
676 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
679 test "$program_prefix" != NONE &&
680 program_transform_name="s,^,${program_prefix},; $program_transform_name"
681 # Use a double $ so make ignores it.
682 test "$program_suffix" != NONE &&
683 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
685 # sed with no file args requires a program.
686 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
688 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
689 echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
690 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
691 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
694 cat > conftestmake <<\EOF
696 @echo 'ac_maketemp="${MAKE}"'
698 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
699 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
700 if test -n "$ac_maketemp"; then
701 eval ac_cv_prog_make_${ac_make}_set=yes
703 eval ac_cv_prog_make_${ac_make}_set=no
707 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
708 echo "$ac_t""yes" 1>&6
711 echo "$ac_t""no" 1>&6
712 SET_MAKE="MAKE=${MAKE-make}"
720 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
721 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
723 cat >> confdefs.h <<EOF
724 #define PACKAGE "$PACKAGE"
727 cat >> confdefs.h <<EOF
728 #define VERSION "$VERSION"
733 missing_dir=`cd $ac_aux_dir && pwd`
734 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
735 echo "configure:736: checking for working aclocal" >&5
736 # Run test in a subshell; some versions of sh will print an error if
737 # an executable is not found, even if stderr is redirected.
738 # Redirect stdin to placate older versions of autoconf. Sigh.
739 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
741 echo "$ac_t""found" 1>&6
743 ACLOCAL="$missing_dir/missing aclocal"
744 echo "$ac_t""missing" 1>&6
747 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
748 echo "configure:749: checking for working autoconf" >&5
749 # Run test in a subshell; some versions of sh will print an error if
750 # an executable is not found, even if stderr is redirected.
751 # Redirect stdin to placate older versions of autoconf. Sigh.
752 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
754 echo "$ac_t""found" 1>&6
756 AUTOCONF="$missing_dir/missing autoconf"
757 echo "$ac_t""missing" 1>&6
760 echo $ac_n "checking for working automake""... $ac_c" 1>&6
761 echo "configure:762: checking for working automake" >&5
762 # Run test in a subshell; some versions of sh will print an error if
763 # an executable is not found, even if stderr is redirected.
764 # Redirect stdin to placate older versions of autoconf. Sigh.
765 if (automake --version) < /dev/null > /dev/null 2>&1; then
767 echo "$ac_t""found" 1>&6
769 AUTOMAKE="$missing_dir/missing automake"
770 echo "$ac_t""missing" 1>&6
773 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
774 echo "configure:775: checking for working autoheader" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
779 AUTOHEADER=autoheader
780 echo "$ac_t""found" 1>&6
782 AUTOHEADER="$missing_dir/missing autoheader"
783 echo "$ac_t""missing" 1>&6
786 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
787 echo "configure:788: checking for working makeinfo" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
793 echo "$ac_t""found" 1>&6
795 MAKEINFO="$missing_dir/missing makeinfo"
796 echo "$ac_t""missing" 1>&6
804 for ac_prog in gawk mawk nawk awk
806 # Extract the first word of "$ac_prog", so it can be a program name with args.
807 set dummy $ac_prog; ac_word=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809 echo "configure:810: checking for $ac_word" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 if test -n "$AWK"; then
814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
818 for ac_dir in $ac_dummy; do
819 test -z "$ac_dir" && ac_dir=.
820 if test -f $ac_dir/$ac_word; then
821 ac_cv_prog_AWK="$ac_prog"
828 AWK="$ac_cv_prog_AWK"
829 if test -n "$AWK"; then
830 echo "$ac_t""$AWK" 1>&6
832 echo "$ac_t""no" 1>&6
835 test -n "$AWK" && break
838 # Find a good install program. We prefer a C program (faster),
839 # so one script is as good as another. But avoid the broken or
840 # incompatible versions:
841 # SysV /etc/install, /usr/sbin/install
842 # SunOS /usr/etc/install
845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
848 # ./install, which can be erroneously created by make from ./install.sh.
849 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
850 echo "configure:851: checking for a BSD compatible install" >&5
851 if test -z "$INSTALL"; then
852 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
856 for ac_dir in $PATH; do
857 # Account for people who put trailing slashes in PATH elements.
859 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
861 # OSF1 and SCO ODT 3.0 have their own names for install.
862 # Don't use installbsd from OSF since it installs stuff as root
864 for ac_prog in ginstall scoinst install; do
865 if test -f $ac_dir/$ac_prog; then
866 if test $ac_prog = install &&
867 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
868 # AIX install. It has an incompatible calling convention.
871 ac_cv_path_install="$ac_dir/$ac_prog -c"
882 if test "${ac_cv_path_install+set}" = set; then
883 INSTALL="$ac_cv_path_install"
885 # As a last resort, use the slow shell script. We don't cache a
886 # path for INSTALL within a source directory, because that will
887 # break other packages using the cache if that directory is
888 # removed, or if the path is relative.
889 INSTALL="$ac_install_sh"
892 echo "$ac_t""$INSTALL" 1>&6
894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
895 # It thinks the first close brace ends the variable substitution.
896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
902 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
903 echo "configure:904: checking whether ${MAKE-make} sets \${MAKE}" >&5
904 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
905 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 cat > conftestmake <<\EOF
910 @echo 'ac_maketemp="${MAKE}"'
912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
913 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
914 if test -n "$ac_maketemp"; then
915 eval ac_cv_prog_make_${ac_make}_set=yes
917 eval ac_cv_prog_make_${ac_make}_set=no
921 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
922 echo "$ac_t""yes" 1>&6
925 echo "$ac_t""no" 1>&6
926 SET_MAKE="MAKE=${MAKE-make}"
929 # Extract the first word of "ranlib", so it can be a program name with args.
930 set dummy ranlib; ac_word=$2
931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
932 echo "configure:933: checking for $ac_word" >&5
933 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 if test -n "$RANLIB"; then
937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
941 for ac_dir in $ac_dummy; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
944 ac_cv_prog_RANLIB="ranlib"
949 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
952 RANLIB="$ac_cv_prog_RANLIB"
953 if test -n "$RANLIB"; then
954 echo "$ac_t""$RANLIB" 1>&6
956 echo "$ac_t""no" 1>&6
959 # Extract the first word of "gcc", so it can be a program name with args.
960 set dummy gcc; ac_word=$2
961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
962 echo "configure:963: checking for $ac_word" >&5
963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
966 if test -n "$CC"; then
967 ac_cv_prog_CC="$CC" # Let the user override the test.
969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
971 for ac_dir in $ac_dummy; do
972 test -z "$ac_dir" && ac_dir=.
973 if test -f $ac_dir/$ac_word; then
982 if test -n "$CC"; then
983 echo "$ac_t""$CC" 1>&6
985 echo "$ac_t""no" 1>&6
988 if test -z "$CC"; then
989 # Extract the first word of "cc", so it can be a program name with args.
990 set dummy cc; ac_word=$2
991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
992 echo "configure:993: checking for $ac_word" >&5
993 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 if test -n "$CC"; then
997 ac_cv_prog_CC="$CC" # Let the user override the test.
999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002 for ac_dir in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir=.
1004 if test -f $ac_dir/$ac_word; then
1005 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1006 ac_prog_rejected=yes
1014 if test $ac_prog_rejected = yes; then
1015 # We found a bogon in the path, so make sure we never use it.
1016 set dummy $ac_cv_prog_CC
1018 if test $# -gt 0; then
1019 # We chose a different compiler from the bogus one.
1020 # However, it has the same basename, so the bogon will be chosen
1021 # first if we set CC to just the basename; use the full file name.
1023 set dummy "$ac_dir/$ac_word" "$@"
1031 if test -n "$CC"; then
1032 echo "$ac_t""$CC" 1>&6
1034 echo "$ac_t""no" 1>&6
1037 if test -z "$CC"; then
1038 case "`uname -s`" in
1040 # Extract the first word of "cl", so it can be a program name with args.
1041 set dummy cl; ac_word=$2
1042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1043 echo "configure:1044: checking for $ac_word" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 if test -n "$CC"; then
1048 ac_cv_prog_CC="$CC" # Let the user override the test.
1050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1052 for ac_dir in $ac_dummy; do
1053 test -z "$ac_dir" && ac_dir=.
1054 if test -f $ac_dir/$ac_word; then
1063 if test -n "$CC"; then
1064 echo "$ac_t""$CC" 1>&6
1066 echo "$ac_t""no" 1>&6
1071 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1074 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1075 echo "configure:1076: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1079 ac_cpp='$CPP $CPPFLAGS'
1080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1082 cross_compiling=$ac_cv_prog_cc_cross
1084 cat > conftest.$ac_ext << EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1091 if { (eval echo configure:1092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1092 ac_cv_prog_cc_works=yes
1093 # If we can't run a trivial program, we are probably using a cross compiler.
1094 if (./conftest; exit) 2>/dev/null; then
1095 ac_cv_prog_cc_cross=no
1097 ac_cv_prog_cc_cross=yes
1100 echo "configure: failed program was:" >&5
1101 cat conftest.$ac_ext >&5
1102 ac_cv_prog_cc_works=no
1106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1107 ac_cpp='$CPP $CPPFLAGS'
1108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1110 cross_compiling=$ac_cv_prog_cc_cross
1112 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1113 if test $ac_cv_prog_cc_works = no; then
1114 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1118 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1119 cross_compiling=$ac_cv_prog_cc_cross
1121 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether we are using GNU C" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 cat > conftest.c <<EOF
1131 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1138 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1140 if test $ac_cv_prog_gcc = yes; then
1146 ac_test_CFLAGS="${CFLAGS+set}"
1147 ac_save_CFLAGS="$CFLAGS"
1149 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether ${CC-cc} accepts -g" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 echo 'void f(){}' > conftest.c
1155 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1164 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1165 if test "$ac_test_CFLAGS" = set; then
1166 CFLAGS="$ac_save_CFLAGS"
1167 elif test $ac_cv_prog_cc_g = yes; then
1168 if test "$GCC" = yes; then
1174 if test "$GCC" = yes; then
1181 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1183 # Extract the first word of "$ac_prog", so it can be a program name with args.
1184 set dummy $ac_prog; ac_word=$2
1185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1186 echo "configure:1187: checking for $ac_word" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 if test -n "$CXX"; then
1191 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1195 for ac_dir in $ac_dummy; do
1196 test -z "$ac_dir" && ac_dir=.
1197 if test -f $ac_dir/$ac_word; then
1198 ac_cv_prog_CXX="$ac_prog"
1205 CXX="$ac_cv_prog_CXX"
1206 if test -n "$CXX"; then
1207 echo "$ac_t""$CXX" 1>&6
1209 echo "$ac_t""no" 1>&6
1212 test -n "$CXX" && break
1214 test -n "$CXX" || CXX="gcc"
1217 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1222 ac_cpp='$CXXCPP $CPPFLAGS'
1223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1225 cross_compiling=$ac_cv_prog_cxx_cross
1227 cat > conftest.$ac_ext << EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1232 int main(){return(0);}
1234 if { (eval echo configure:1235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1235 ac_cv_prog_cxx_works=yes
1236 # If we can't run a trivial program, we are probably using a cross compiler.
1237 if (./conftest; exit) 2>/dev/null; then
1238 ac_cv_prog_cxx_cross=no
1240 ac_cv_prog_cxx_cross=yes
1243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1245 ac_cv_prog_cxx_works=no
1249 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1252 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1253 cross_compiling=$ac_cv_prog_cc_cross
1255 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1256 if test $ac_cv_prog_cxx_works = no; then
1257 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1259 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1261 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1262 cross_compiling=$ac_cv_prog_cxx_cross
1264 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether we are using GNU C++" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftest.C <<EOF
1274 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1281 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1283 if test $ac_cv_prog_gxx = yes; then
1289 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1290 ac_save_CXXFLAGS="$CXXFLAGS"
1292 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether ${CXX-g++} accepts -g" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 echo 'void f(){}' > conftest.cc
1298 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1299 ac_cv_prog_cxx_g=yes
1307 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1308 if test "$ac_test_CXXFLAGS" = set; then
1309 CXXFLAGS="$ac_save_CXXFLAGS"
1310 elif test $ac_cv_prog_cxx_g = yes; then
1311 if test "$GXX" = yes; then
1317 if test "$GXX" = yes; then
1324 # Extract the first word of "wx-config", so it can be a program name with args.
1325 set dummy wx-config; ac_word=$2
1326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_word" >&5
1328 if eval "test \"`echo '$''{'ac_cv_path_wxconfig'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1333 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
1336 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a dos path.
1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1341 for ac_dir in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir=.
1343 if test -f $ac_dir/$ac_word; then
1344 ac_cv_path_wxconfig="$ac_dir/$ac_word"
1352 wxconfig="$ac_cv_path_wxconfig"
1353 if test -n "$wxconfig"; then
1354 echo "$ac_t""$wxconfig" 1>&6
1356 echo "$ac_t""no" 1>&6
1362 # Make sure we can run config.sub.
1363 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1364 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1367 echo $ac_n "checking host system type""... $ac_c" 1>&6
1368 echo "configure:1369: checking host system type" >&5
1371 case "$host_alias" in
1375 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1376 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1378 *) host_alias=$nonopt ;;
1382 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1383 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1386 echo "$ac_t""$host" 1>&6
1388 echo $ac_n "checking for inline""... $ac_c" 1>&6
1389 echo "configure:1390: checking for inline" >&5
1390 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1394 for ac_kw in inline __inline__ __inline; do
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1403 if { (eval echo configure:1404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1405 ac_cv_c_inline=$ac_kw; break
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1415 echo "$ac_t""$ac_cv_c_inline" 1>&6
1416 case "$ac_cv_c_inline" in
1418 no) cat >> confdefs.h <<\EOF
1422 *) cat >> confdefs.h <<EOF
1423 #define inline $ac_cv_c_inline
1428 echo $ac_n "checking size of short""... $ac_c" 1>&6
1429 echo "configure:1430: checking size of short" >&5
1430 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 if test "$cross_compiling" = yes; then
1434 ac_cv_sizeof_short=2
1436 cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1442 FILE *f=fopen("conftestval", "w");
1444 fprintf(f, "%d\n", sizeof(short));
1448 if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1450 ac_cv_sizeof_short=`cat conftestval`
1452 echo "configure: failed program was:" >&5
1453 cat conftest.$ac_ext >&5
1455 ac_cv_sizeof_short=0
1461 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1462 cat >> confdefs.h <<EOF
1463 #define SIZEOF_SHORT $ac_cv_sizeof_short
1467 echo $ac_n "checking size of int""... $ac_c" 1>&6
1468 echo "configure:1469: checking size of int" >&5
1469 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 if test "$cross_compiling" = yes; then
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1481 FILE *f=fopen("conftestval", "w");
1483 fprintf(f, "%d\n", sizeof(int));
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1489 ac_cv_sizeof_int=`cat conftestval`
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1500 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1501 cat >> confdefs.h <<EOF
1502 #define SIZEOF_INT $ac_cv_sizeof_int
1506 echo $ac_n "checking size of long""... $ac_c" 1>&6
1507 echo "configure:1508: checking size of long" >&5
1508 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 if test "$cross_compiling" = yes; then
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1520 FILE *f=fopen("conftestval", "w");
1522 fprintf(f, "%d\n", sizeof(long));
1526 if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1528 ac_cv_sizeof_long=`cat conftestval`
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1539 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1540 cat >> confdefs.h <<EOF
1541 #define SIZEOF_LONG $ac_cv_sizeof_long
1545 echo $ac_n "checking size of float""... $ac_c" 1>&6
1546 echo "configure:1547: checking size of float" >&5
1547 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 if test "$cross_compiling" = yes; then
1551 ac_cv_sizeof_float=4
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1559 FILE *f=fopen("conftestval", "w");
1561 fprintf(f, "%d\n", sizeof(float));
1565 if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1567 ac_cv_sizeof_float=`cat conftestval`
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1572 ac_cv_sizeof_float=0
1578 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1579 cat >> confdefs.h <<EOF
1580 #define SIZEOF_FLOAT $ac_cv_sizeof_float
1584 echo $ac_n "checking size of double""... $ac_c" 1>&6
1585 echo "configure:1586: checking size of double" >&5
1586 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 if test "$cross_compiling" = yes; then
1590 ac_cv_sizeof_double=8
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1598 FILE *f=fopen("conftestval", "w");
1600 fprintf(f, "%d\n", sizeof(double));
1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1606 ac_cv_sizeof_double=`cat conftestval`
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 ac_cv_sizeof_double=0
1617 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1618 cat >> confdefs.h <<EOF
1619 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1627 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1628 echo "configure:1629: checking whether byte ordering is bigendian" >&5
1629 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 ac_cv_c_bigendian=unknown
1633 # See if sys/param.h defines the BYTE_ORDER macro.
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1637 #include <sys/types.h>
1638 #include <sys/param.h>
1641 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1646 if { (eval echo configure:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648 # It does; now see whether it defined to BIG_ENDIAN or not.
1649 cat > conftest.$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1652 #include <sys/types.h>
1653 #include <sys/param.h>
1656 #if BYTE_ORDER != BIG_ENDIAN
1661 if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1663 ac_cv_c_bigendian=yes
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1668 ac_cv_c_bigendian=no
1672 echo "configure: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1676 if test $ac_cv_c_bigendian = unknown; then
1677 if test "$cross_compiling" = yes; then
1678 ac_cv_c_bigendian=unknown
1680 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1684 /* Are we little or big endian? From Harbison&Steele. */
1688 char c[sizeof (long)];
1691 exit (u.c[sizeof (long) - 1] == 1);
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1696 ac_cv_c_bigendian=no
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1701 ac_cv_c_bigendian=yes
1709 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1710 if test $ac_cv_c_bigendian = unknown; then
1711 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'}"
1712 to config.cache file" 1>&2
1714 if test $ac_cv_c_bigendian = yes; then
1715 cat >> confdefs.h <<\EOF
1716 #define WORDS_BIGENDIAN 1
1723 echo $ac_n "checking for main in -lz""... $ac_c" 1>&6
1724 echo "configure:1725: checking for main in -lz" >&5
1725 ac_lib_var=`echo z'_'main | sed 'y%./+-%__p_%'`
1726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 ac_save_LIBS="$LIBS"
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1741 eval "ac_cv_lib_$ac_lib_var=yes"
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1746 eval "ac_cv_lib_$ac_lib_var=no"
1749 LIBS="$ac_save_LIBS"
1752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1753 echo "$ac_t""yes" 1>&6
1756 echo "$ac_t""no" 1>&6
1757 zlib="false" ; echo "configure: warning: zlib missing. Will need zlib for PNG support" 1>&2
1760 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1761 echo "configure:1762: checking for main in -lm" >&5
1762 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 ac_save_LIBS="$LIBS"
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1778 eval "ac_cv_lib_$ac_lib_var=yes"
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1783 eval "ac_cv_lib_$ac_lib_var=no"
1786 LIBS="$ac_save_LIBS"
1789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1790 echo "$ac_t""yes" 1>&6
1791 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1793 cat >> confdefs.h <<EOF
1794 #define $ac_tr_lib 1
1800 echo "$ac_t""no" 1>&6
1803 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1804 echo "configure:1805: checking for main in -lcurses" >&5
1805 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 ac_save_LIBS="$LIBS"
1810 LIBS="-lcurses $LIBS"
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1821 eval "ac_cv_lib_$ac_lib_var=yes"
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 eval "ac_cv_lib_$ac_lib_var=no"
1829 LIBS="$ac_save_LIBS"
1832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1833 echo "$ac_t""yes" 1>&6
1836 echo "$ac_t""no" 1>&6
1840 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1841 echo "configure:1842: checking for main in -lncurses" >&5
1842 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 ac_save_LIBS="$LIBS"
1847 LIBS="-lncurses $LIBS"
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1858 eval "ac_cv_lib_$ac_lib_var=yes"
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1863 eval "ac_cv_lib_$ac_lib_var=no"
1866 LIBS="$ac_save_LIBS"
1869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1870 echo "$ac_t""yes" 1>&6
1873 echo "$ac_t""no" 1>&6
1877 echo $ac_n "checking for main in -lg2""... $ac_c" 1>&6
1878 echo "configure:1879: checking for main in -lg2" >&5
1879 ac_lib_var=`echo g2'_'main | sed 'y%./+-%__p_%'`
1880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 ac_save_LIBS="$LIBS"
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1895 eval "ac_cv_lib_$ac_lib_var=yes"
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1900 eval "ac_cv_lib_$ac_lib_var=no"
1903 LIBS="$ac_save_LIBS"
1906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1910 echo "$ac_t""no" 1>&6
1915 echo $ac_n "checking for main in -lwx_gtk""... $ac_c" 1>&6
1916 echo "configure:1917: checking for main in -lwx_gtk" >&5
1917 ac_lib_var=`echo wx_gtk'_'main | sed 'y%./+-%__p_%'`
1918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 ac_save_LIBS="$LIBS"
1922 LIBS="-lwx_gtk $LIBS"
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1931 if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1933 eval "ac_cv_lib_$ac_lib_var=yes"
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1938 eval "ac_cv_lib_$ac_lib_var=no"
1941 LIBS="$ac_save_LIBS"
1944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1945 echo "$ac_t""yes" 1>&6
1946 wxwin=true; wx_gtk=true; cat >> confdefs.h <<\EOF
1947 #define HAVE_WXWINDOWS 1
1951 echo "$ac_t""no" 1>&6
1954 echo $ac_n "checking for main in -lwx_msw""... $ac_c" 1>&6
1955 echo "configure:1956: checking for main in -lwx_msw" >&5
1956 ac_lib_var=`echo wx_msw'_'main | sed 'y%./+-%__p_%'`
1957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 ac_save_LIBS="$LIBS"
1961 LIBS="-lwx_msw $LIBS"
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1972 eval "ac_cv_lib_$ac_lib_var=yes"
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1977 eval "ac_cv_lib_$ac_lib_var=no"
1980 LIBS="$ac_save_LIBS"
1983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1984 echo "$ac_t""yes" 1>&6
1985 wxwin=true; wx_msw=true; cat >> confdefs.h <<\EOF
1986 #define HAVE_WXWINDOWS 1
1990 echo "$ac_t""no" 1>&6
1993 echo $ac_n "checking for main in -lhdf5""... $ac_c" 1>&6
1994 echo "configure:1995: checking for main in -lhdf5" >&5
1995 ac_lib_var=`echo hdf5'_'main | sed 'y%./+-%__p_%'`
1996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 ac_save_LIBS="$LIBS"
2000 LIBS="-lhdf5 -lz $LIBS"
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2009 if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2011 eval "ac_cv_lib_$ac_lib_var=yes"
2013 echo "configure: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2016 eval "ac_cv_lib_$ac_lib_var=no"
2019 LIBS="$ac_save_LIBS"
2022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2023 echo "$ac_t""yes" 1>&6
2026 echo "$ac_t""no" 1>&6
2030 echo $ac_n "checking for main in -lfftw""... $ac_c" 1>&6
2031 echo "configure:2032: checking for main in -lfftw" >&5
2032 ac_lib_var=`echo fftw'_'main | sed 'y%./+-%__p_%'`
2033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 ac_save_LIBS="$LIBS"
2038 cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2046 if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2048 eval "ac_cv_lib_$ac_lib_var=yes"
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2053 eval "ac_cv_lib_$ac_lib_var=no"
2056 LIBS="$ac_save_LIBS"
2059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2061 fftw=true; cat >> confdefs.h <<\EOF
2066 echo "$ac_t""no" 1>&6
2071 if test "$zlib" = "true" ; then
2072 echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
2073 echo "configure:2074: checking for main in -lpng" >&5
2074 ac_lib_var=`echo png'_'main | sed 'y%./+-%__p_%'`
2075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 ac_save_LIBS="$LIBS"
2080 cat > conftest.$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2088 if { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2090 eval "ac_cv_lib_$ac_lib_var=yes"
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 eval "ac_cv_lib_$ac_lib_var=no"
2098 LIBS="$ac_save_LIBS"
2101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2102 echo "$ac_t""yes" 1>&6
2103 png=true ; cat >> confdefs.h <<\EOF
2108 echo "$ac_t""no" 1>&6
2114 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2115 echo "configure:2116: checking how to run the C preprocessor" >&5
2116 # On Suns, sometimes $CPP names a directory.
2117 if test -n "$CPP" && test -d "$CPP"; then
2120 if test -z "$CPP"; then
2121 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 # This must be in double quotes, not single quotes, because CPP may get
2125 # substituted into the Makefile and "${CC-cc}" will confuse make.
2127 # On the NeXT, cc -E runs the code through the compiler's parser,
2128 # not just through cpp.
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2136 { (eval echo configure:2137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2138 if test -z "$ac_err"; then
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2145 CPP="${CC-cc} -E -traditional-cpp"
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2153 { (eval echo configure:2154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2155 if test -z "$ac_err"; then
2159 echo "configure: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2162 CPP="${CC-cc} -nologo -E"
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170 { (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2172 if test -z "$ac_err"; then
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2186 ac_cv_prog_CPP="$CPP"
2188 CPP="$ac_cv_prog_CPP"
2190 ac_cv_prog_CPP="$CPP"
2192 echo "$ac_t""$CPP" 1>&6
2194 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2195 echo "configure:2196: checking for ANSI C header files" >&5
2196 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2208 { (eval echo configure:2209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2210 if test -z "$ac_err"; then
2212 ac_cv_header_stdc=yes
2215 echo "configure: failed program was:" >&5
2216 cat conftest.$ac_ext >&5
2218 ac_cv_header_stdc=no
2222 if test $ac_cv_header_stdc = yes; then
2223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2230 egrep "memchr" >/dev/null 2>&1; then
2234 ac_cv_header_stdc=no
2240 if test $ac_cv_header_stdc = yes; then
2241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2248 egrep "free" >/dev/null 2>&1; then
2252 ac_cv_header_stdc=no
2258 if test $ac_cv_header_stdc = yes; then
2259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2260 if test "$cross_compiling" = yes; then
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2267 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2268 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2270 int main () { int i; for (i = 0; i < 256; i++)
2271 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2282 ac_cv_header_stdc=no
2290 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2291 if test $ac_cv_header_stdc = yes; then
2292 cat >> confdefs.h <<\EOF
2293 #define STDC_HEADERS 1
2298 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 assert.h
2300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_hdr" >&5
2303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2312 { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2314 if test -z "$ac_err"; then
2316 eval "ac_cv_header_$ac_safe=yes"
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2322 eval "ac_cv_header_$ac_safe=no"
2326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2329 cat >> confdefs.h <<EOF
2330 #define $ac_tr_hdr 1
2334 echo "$ac_t""no" 1>&6
2339 echo $ac_n "checking for working const""... $ac_c" 1>&6
2340 echo "configure:2341: checking for working const" >&5
2341 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2350 /* Ultrix mips cc rejects this. */
2351 typedef int charset[2]; const charset x;
2352 /* SunOS 4.1.1 cc rejects this. */
2353 char const *const *ccp;
2355 /* NEC SVR4.0.2 mips cc rejects this. */
2356 struct point {int x, y;};
2357 static struct point const zero = {0,0};
2358 /* AIX XL C 1.02.0.0 rejects this.
2359 It does not let you subtract one const X* pointer from another in an arm
2360 of an if-expression whose if-part is not a constant expression */
2361 const char *g = "string";
2362 ccp = &g + (g ? g-g : 0);
2363 /* HPUX 7.0 cc rejects these. */
2366 ccp = (char const *const *) p;
2367 { /* SCO 3.2v4 cc rejects this. */
2369 char const *s = 0 ? (char *) 0 : (char const *) 0;
2373 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2375 const int *foo = &x[0];
2378 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2379 typedef const int *iptr;
2383 { /* AIX XL C 1.02.0.0 rejects this saying
2384 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2385 struct s { int j; const int *ap[3]; };
2386 struct s *b; b->j = 5;
2388 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2394 if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 echo "configure: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2406 echo "$ac_t""$ac_cv_c_const" 1>&6
2407 if test $ac_cv_c_const = no; then
2408 cat >> confdefs.h <<\EOF
2414 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2415 echo "configure:2416: checking for off_t" >&5
2416 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 cat > conftest.$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2422 #include <sys/types.h>
2428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2429 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2431 ac_cv_type_off_t=yes
2439 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2440 if test $ac_cv_type_off_t = no; then
2441 cat >> confdefs.h <<\EOF
2447 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2448 echo "configure:2449: checking for size_t" >&5
2449 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 #include <sys/types.h>
2461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2462 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2464 ac_cv_type_size_t=yes
2467 ac_cv_type_size_t=no
2472 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2473 if test $ac_cv_type_size_t = no; then
2474 cat >> confdefs.h <<\EOF
2475 #define size_t unsigned
2480 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2481 echo "configure:2482: checking whether struct tm is in sys/time.h or time.h" >&5
2482 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <sys/types.h>
2491 struct tm *tp; tp->tm_sec;
2494 if { (eval echo configure:2495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2496 ac_cv_struct_tm=time.h
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 ac_cv_struct_tm=sys/time.h
2506 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2507 if test $ac_cv_struct_tm = sys/time.h; then
2508 cat >> confdefs.h <<\EOF
2509 #define TM_IN_SYS_TIME 1
2515 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2516 echo "configure:2517: checking for vprintf" >&5
2517 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 /* System header to define __stub macros and hopefully few prototypes,
2524 which can conflict with char vprintf(); below. */
2526 /* Override any gcc2 internal prototype to avoid an error. */
2527 /* We use char because int might match the return type of a gcc2
2528 builtin and then its argument prototype would still apply. */
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2544 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2546 eval "ac_cv_func_vprintf=yes"
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2551 eval "ac_cv_func_vprintf=no"
2556 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 cat >> confdefs.h <<\EOF
2559 #define HAVE_VPRINTF 1
2563 echo "$ac_t""no" 1>&6
2566 if test "$ac_cv_func_vprintf" != yes; then
2567 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2568 echo "configure:2569: checking for _doprnt" >&5
2569 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 cat > conftest.$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 /* System header to define __stub macros and hopefully few prototypes,
2576 which can conflict with char _doprnt(); below. */
2578 /* Override any gcc2 internal prototype to avoid an error. */
2579 /* We use char because int might match the return type of a gcc2
2580 builtin and then its argument prototype would still apply. */
2585 /* The GNU C library defines this for functions which it implements
2586 to always fail with ENOSYS. Some functions are actually named
2587 something starting with __ and the normal name is an alias. */
2588 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2596 if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2598 eval "ac_cv_func__doprnt=yes"
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2603 eval "ac_cv_func__doprnt=no"
2608 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 cat >> confdefs.h <<\EOF
2611 #define HAVE_DOPRNT 1
2615 echo "$ac_t""no" 1>&6
2620 for ac_func in strtod strtol snprintf htonl usleep
2622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_func" >&5
2624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 /* System header to define __stub macros and hopefully few prototypes,
2631 which can conflict with char $ac_func(); below. */
2633 /* Override any gcc2 internal prototype to avoid an error. */
2634 /* We use char because int might match the return type of a gcc2
2635 builtin and then its argument prototype would still apply. */
2640 /* The GNU C library defines this for functions which it implements
2641 to always fail with ENOSYS. Some functions are actually named
2642 something starting with __ and the normal name is an alias. */
2643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2651 if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2653 eval "ac_cv_func_$ac_func=yes"
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2658 eval "ac_cv_func_$ac_func=no"
2663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2664 echo "$ac_t""yes" 1>&6
2665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2666 cat >> confdefs.h <<EOF
2667 #define $ac_tr_func 1
2671 echo "$ac_t""no" 1>&6
2675 echo $ac_n "checking for basename""... $ac_c" 1>&6
2676 echo "configure:2677: checking for basename" >&5
2677 if eval "test \"`echo '$''{'ac_cv_func_basename'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 /* System header to define __stub macros and hopefully few prototypes,
2684 which can conflict with char basename(); below. */
2686 /* Override any gcc2 internal prototype to avoid an error. */
2687 /* We use char because int might match the return type of a gcc2
2688 builtin and then its argument prototype would still apply. */
2693 /* The GNU C library defines this for functions which it implements
2694 to always fail with ENOSYS. Some functions are actually named
2695 something starting with __ and the normal name is an alias. */
2696 #if defined (__stub_basename) || defined (__stub___basename)
2704 if { (eval echo configure:2705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2706 eval "ac_cv_func_basename=yes"
2708 echo "configure: failed program was:" >&5
2709 cat conftest.$ac_ext >&5
2711 eval "ac_cv_func_basename=no"
2716 if eval "test \"`echo '$ac_cv_func_'basename`\" = yes"; then
2717 echo "$ac_t""yes" 1>&6
2720 echo "$ac_t""no" 1>&6
2723 echo $ac_n "checking for setjmp""... $ac_c" 1>&6
2724 echo "configure:2725: checking for setjmp" >&5
2725 if eval "test \"`echo '$''{'ac_cv_func_setjmp'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 /* System header to define __stub macros and hopefully few prototypes,
2732 which can conflict with char setjmp(); below. */
2734 /* Override any gcc2 internal prototype to avoid an error. */
2735 /* We use char because int might match the return type of a gcc2
2736 builtin and then its argument prototype would still apply. */
2741 /* The GNU C library defines this for functions which it implements
2742 to always fail with ENOSYS. Some functions are actually named
2743 something starting with __ and the normal name is an alias. */
2744 #if defined (__stub_setjmp) || defined (__stub___setjmp)
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2754 eval "ac_cv_func_setjmp=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2759 eval "ac_cv_func_setjmp=no"
2764 if eval "test \"`echo '$ac_cv_func_'setjmp`\" = yes"; then
2765 echo "$ac_t""yes" 1>&6
2768 echo "$ac_t""no" 1>&6
2771 if test "${OSTYPE}" = "cygwin" ; then
2774 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2775 echo "configure:2776: checking for getopt_long" >&5
2776 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 /* System header to define __stub macros and hopefully few prototypes,
2783 which can conflict with char getopt_long(); below. */
2785 /* Override any gcc2 internal prototype to avoid an error. */
2786 /* We use char because int might match the return type of a gcc2
2787 builtin and then its argument prototype would still apply. */
2792 /* The GNU C library defines this for functions which it implements
2793 to always fail with ENOSYS. Some functions are actually named
2794 something starting with __ and the normal name is an alias. */
2795 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2803 if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2805 eval "ac_cv_func_getopt_long=yes"
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2810 eval "ac_cv_func_getopt_long=no"
2815 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2819 echo "$ac_t""no" 1>&6
2824 if test "${getopt_long}" = "false" ; then
2825 my_includes="$myincludes -I../getopt"
2826 cat >> confdefs.h <<\EOF
2827 #define HAVE_GETOPT_LONG 1
2830 ctlibs_base="$ctlibs_base -lgetopt"
2831 LDFLAGS="$LDFLAGS -L../getopt"
2835 INCLUDED_GETOPT_LONG_TRUE=
2836 INCLUDED_GETOPT_LONG_FALSE='#'
2838 INCLUDED_GETOPT_LONG_TRUE='#'
2839 INCLUDED_GETOPT_LONG_FALSE=
2843 echo $ac_n "checking debug""... $ac_c" 1>&6
2844 echo "configure:2845: checking debug" >&5
2845 # Check whether --enable-debug or --disable-debug was given.
2846 if test "${enable_debug+set}" = set; then
2847 enableval="$enable_debug"
2848 case "${enableval}" in
2850 echo "$ac_t""yes" 1>&6
2853 echo "$ac_t""no" 1>&6
2855 *) echo "$ac_t""bad value ${enableval} for --enable-debug" 1>&6
2859 debug=false; echo "$ac_t""no" 1>&6
2864 if test "$debug" = "true"; then
2872 if test "$debug" = "true" ; then
2874 cat >> confdefs.h <<\EOF
2879 CFLAGS="-g -O3 -DNDEBUG"
2880 cat >> confdefs.h <<\EOF
2888 if test -n "$GCC"; then
2889 CFLAGS="$CFLAGS -Wall"
2892 echo $ac_n "checking whether to enable verbose warnings""... $ac_c" 1>&6
2893 echo "configure:2894: checking whether to enable verbose warnings" >&5
2894 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
2895 if test "${enable_verbose_warnings+set}" = set; then
2896 enableval="$enable_verbose_warnings"
2897 case "$enableval" in
2899 echo "$ac_t""yes" 1>&6
2901 if test -n "$GCC"; then
2906 if test -n "$GCC"; then
2907 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
2911 if test -n "$GCC"; then
2912 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
2916 if test -n "$GCC"; then
2917 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
2921 if test -n "$GCC"; then
2922 CFLAGS="$CFLAGS -pedantic"
2926 if test -n "$GCC"; then
2927 CFLAGS="$CFLAGS -Wredundant-decls"
2933 echo "$ac_t""no" 1>&6
2937 echo "$ac_t""no" 1>&6
2942 echo $ac_n "checking static executables""... $ac_c" 1>&6
2943 echo "configure:2944: checking static executables" >&5
2944 # Check whether --enable-static or --disable-static was given.
2945 if test "${enable_static+set}" = set; then
2946 enableval="$enable_static"
2947 case "$enableval" in
2949 echo "$ac_t""yes" 1>&6
2951 if test -n "$GCC"; then
2952 CFLAGS="$CFLAGS --static"
2957 echo "$ac_t""no" 1>&6
2961 echo "$ac_t""no" 1>&6
2966 # Check whether --with-lam or --without-lam was given.
2967 if test "${with_lam+set}" = set; then
2969 if test "$withval" != "no" ; then
2976 if test "$withval" != "no" ; then
2977 if test "$prefix" != "NONE" ; then
2978 trylamdir="$trylamdir $prefix"
2981 echo $ac_n "checking for LAM MPI installation""... $ac_c" 1>&6
2982 echo "configure:2983: checking for LAM MPI installation" >&5
2983 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
2984 if test -x "$testlamdir/bin/hcc" ; then
2985 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
2986 CFLAGS="$CFLAGS -I$testlamdir/include"
2987 lamdir="$testlamdir"
2994 echo "$ac_t""$lamdir" 1>&6
2996 echo "$ac_t""no" 1>&6
2999 echo $ac_n "checking for web access""... $ac_c" 1>&6
3000 echo "configure:3001: checking for web access" >&5
3001 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
3002 if test "${with_cgibin_dir+set}" = set; then
3003 withval="$with_cgibin_dir"
3004 cgibindir=$withval ;
3008 # Check whether --with-cgibin-url or --without-cgibin-url was given.
3009 if test "${with_cgibin_url+set}" = set; then
3010 withval="$with_cgibin_url"
3011 cgibinurl=$withval ;
3015 # Check whether --with-webdata-dir or --without-webdata-dir was given.
3016 if test "${with_webdata_dir+set}" = set; then
3017 withval="$with_webdata_dir"
3018 webdatadir=$withval ;
3022 # Check whether --with-webdata-url or --without-webdata-url was given.
3023 if test "${with_webdata_url+set}" = set; then
3024 withval="$with_webdata_url"
3025 webdataurl=$withval ;
3029 # Check whether --with-html-dir or --without-html-dir was given.
3030 if test "${with_html_dir+set}" = set; then
3031 withval="$with_html_dir"
3036 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
3037 cgiprograms="ctsim.cgi ctsim.conf"
3041 if test -n "$htmldir" ; then
3042 htmldata=simulate.html
3047 if test -n "$htmldir"; then
3055 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
3058 echo "$ac_t""yes" 1>&6
3059 if test -z "$cgibindir" ; then
3060 { echo "configure: error: --with-cgibin-dir not set for web access" 1>&2; exit 1; }
3061 elif test -z "$cgibinurl" ; then
3062 { echo "configure: error: --with-cgibin-url not set for web access" 1>&2; exit 1; }
3063 elif test -z "$webdatadir" ; then
3064 { echo "configure: error: --with-webdata-dir not set for web access" 1>&2; exit 1; }
3065 elif test -z "$webdataurl" ; then
3066 { echo "configure: error: --with-webdata-url not set for web access" 1>&2; exit 1; }
3067 elif test -z "$htmldir" ; then
3068 { echo "configure: error: --with-html-dir not set for web access" 1>&2; exit 1; }
3071 echo "$ac_t""no" 1>&6
3076 if test -n "$lamdir"; then
3085 # If we find X, set shell vars x_includes and x_libraries to the
3086 # paths, otherwise set no_x=yes.
3087 # Uses ac_ vars as temps to allow command line to override cache and checks.
3088 # --without-x overrides everything else, but does not touch the cache.
3089 echo $ac_n "checking for X""... $ac_c" 1>&6
3090 echo "configure:3091: checking for X" >&5
3092 # Check whether --with-x or --without-x was given.
3093 if test "${with_x+set}" = set; then
3098 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3099 if test "x$with_x" = xno; then
3100 # The user explicitly disabled X.
3103 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3104 # Both variables are already set.
3107 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 # One or both of the vars are not set, and there is no cached value.
3111 ac_x_includes=NO ac_x_libraries=NO
3113 if mkdir conftestdir; then
3115 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3116 cat > Imakefile <<'EOF'
3118 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3120 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3121 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3122 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3123 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3124 for ac_extension in a so sl; do
3125 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3126 test -f $ac_im_libdir/libX11.$ac_extension; then
3127 ac_im_usrlibdir=$ac_im_libdir; break
3130 # Screen out bogus values from the imake configuration. They are
3131 # bogus both because they are the default anyway, and because
3132 # using them would break gcc on systems where it needs fixed includes.
3133 case "$ac_im_incroot" in
3135 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3137 case "$ac_im_usrlibdir" in
3139 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3146 if test "$ac_x_includes" = NO; then
3147 # Guess where to find include files, by looking for this one X11 .h file.
3148 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3150 # First, try using that file with no special directory specified.
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 #include <$x_direct_test_include>
3156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3157 { (eval echo configure:3158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3159 if test -z "$ac_err"; then
3161 # We can compile using X headers with no special include directory.
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3168 # Look for the header file in a standard set of common directories.
3169 # Check X11 before X11Rn because it is often a symlink to the current release.
3172 /usr/X11R6/include \
3173 /usr/X11R5/include \
3174 /usr/X11R4/include \
3177 /usr/include/X11R6 \
3178 /usr/include/X11R5 \
3179 /usr/include/X11R4 \
3181 /usr/local/X11/include \
3182 /usr/local/X11R6/include \
3183 /usr/local/X11R5/include \
3184 /usr/local/X11R4/include \
3186 /usr/local/include/X11 \
3187 /usr/local/include/X11R6 \
3188 /usr/local/include/X11R5 \
3189 /usr/local/include/X11R4 \
3193 /usr/XFree86/include/X11 \
3196 /usr/local/include \
3197 /usr/unsupported/include \
3198 /usr/athena/include \
3199 /usr/local/x11r5/include \
3200 /usr/lpp/Xamples/include \
3202 /usr/openwin/include \
3203 /usr/openwin/share/include \
3206 if test -r "$ac_dir/$x_direct_test_include"; then
3207 ac_x_includes=$ac_dir
3213 fi # $ac_x_includes = NO
3215 if test "$ac_x_libraries" = NO; then
3216 # Check for the libraries.
3218 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3219 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3221 # See if we find them without any special options.
3222 # Don't add to $LIBS permanently.
3223 ac_save_LIBS="$LIBS"
3224 LIBS="-l$x_direct_test_library $LIBS"
3225 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3230 ${x_direct_test_function}()
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3235 LIBS="$ac_save_LIBS"
3236 # We can link X programs with no special library path.
3239 echo "configure: failed program was:" >&5
3240 cat conftest.$ac_ext >&5
3242 LIBS="$ac_save_LIBS"
3243 # First see if replacing the include by lib works.
3244 # Check X11 before X11Rn because it is often a symlink to the current release.
3245 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3256 /usr/local/X11/lib \
3257 /usr/local/X11R6/lib \
3258 /usr/local/X11R5/lib \
3259 /usr/local/X11R4/lib \
3261 /usr/local/lib/X11 \
3262 /usr/local/lib/X11R6 \
3263 /usr/local/lib/X11R5 \
3264 /usr/local/lib/X11R4 \
3268 /usr/XFree86/lib/X11 \
3272 /usr/unsupported/lib \
3274 /usr/local/x11r5/lib \
3275 /usr/lpp/Xamples/lib \
3279 /usr/openwin/share/lib \
3282 for ac_extension in a so sl; do
3283 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3284 ac_x_libraries=$ac_dir
3291 fi # $ac_x_libraries = NO
3293 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3294 # Didn't find X anywhere. Cache the known absence of X.
3295 ac_cv_have_x="have_x=no"
3297 # Record where we found X for the cache.
3298 ac_cv_have_x="have_x=yes \
3299 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3303 eval "$ac_cv_have_x"
3306 if test "$have_x" != yes; then
3307 echo "$ac_t""$have_x" 1>&6
3310 # If each of the values was on the command line, it overrides each guess.
3311 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3312 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3313 # Update the cache value to reflect the command line values.
3314 ac_cv_have_x="have_x=yes \
3315 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3316 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3319 if test "$no_x" = yes; then
3320 # Not all programs may use this symbol, but it does not hurt to define it.
3321 cat >> confdefs.h <<\EOF
3322 #define X_DISPLAY_MISSING 1
3325 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3327 if test -n "$x_includes"; then
3328 X_CFLAGS="$X_CFLAGS -I$x_includes"
3331 # It would also be nice to do this for all -L options, not just this one.
3332 if test -n "$x_libraries"; then
3333 X_LIBS="$X_LIBS -L$x_libraries"
3334 # For Solaris; some versions of Sun CC require a space after -R and
3335 # others require no space. Words are not sufficient . . . .
3336 case "`(uname -sr) 2>/dev/null`" in
3338 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3339 echo "configure:3340: checking whether -R must be followed by a space" >&5
3340 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3359 if test $ac_R_nospace = yes; then
3360 echo "$ac_t""no" 1>&6
3361 X_LIBS="$X_LIBS -R$x_libraries"
3363 LIBS="$ac_xsave_LIBS -R $x_libraries"
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3372 if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3382 if test $ac_R_space = yes; then
3383 echo "$ac_t""yes" 1>&6
3384 X_LIBS="$X_LIBS -R $x_libraries"
3386 echo "$ac_t""neither works" 1>&6
3389 LIBS="$ac_xsave_LIBS"
3393 # Check for system-dependent libraries X programs must link with.
3394 # Do this before checking for the system-independent R6 libraries
3395 # (-lICE), since we may need -lsocket or whatever for X linking.
3397 if test "$ISC" = yes; then
3398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3400 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3401 # libraries were built with DECnet support. And karl@cs.umb.edu says
3402 # the Alpha needs dnet_stub (dnet does not exist).
3403 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3404 echo "configure:3405: checking for dnet_ntoa in -ldnet" >&5
3405 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 ac_save_LIBS="$LIBS"
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3414 /* Override any gcc2 internal prototype to avoid an error. */
3415 /* We use char because int might match the return type of a gcc2
3416 builtin and then its argument prototype would still apply. */
3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3425 eval "ac_cv_lib_$ac_lib_var=yes"
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 eval "ac_cv_lib_$ac_lib_var=no"
3433 LIBS="$ac_save_LIBS"
3436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3438 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3440 echo "$ac_t""no" 1>&6
3443 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3444 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3445 echo "configure:3446: checking for dnet_ntoa in -ldnet_stub" >&5
3446 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 ac_save_LIBS="$LIBS"
3451 LIBS="-ldnet_stub $LIBS"
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3464 if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3466 eval "ac_cv_lib_$ac_lib_var=yes"
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3471 eval "ac_cv_lib_$ac_lib_var=no"
3474 LIBS="$ac_save_LIBS"
3477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3479 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3481 echo "$ac_t""no" 1>&6
3486 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3487 # to get the SysV transport functions.
3488 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3490 # The nsl library prevents programs from opening the X display
3491 # on Irix 5.2, according to dickey@clark.net.
3492 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3493 echo "configure:3494: checking for gethostbyname" >&5
3494 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 /* System header to define __stub macros and hopefully few prototypes,
3501 which can conflict with char gethostbyname(); below. */
3503 /* Override any gcc2 internal prototype to avoid an error. */
3504 /* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
3506 char gethostbyname();
3510 /* The GNU C library defines this for functions which it implements
3511 to always fail with ENOSYS. Some functions are actually named
3512 something starting with __ and the normal name is an alias. */
3513 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3521 if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3523 eval "ac_cv_func_gethostbyname=yes"
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3528 eval "ac_cv_func_gethostbyname=no"
3533 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3534 echo "$ac_t""yes" 1>&6
3537 echo "$ac_t""no" 1>&6
3540 if test $ac_cv_func_gethostbyname = no; then
3541 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3542 echo "configure:3543: checking for gethostbyname in -lnsl" >&5
3543 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 ac_save_LIBS="$LIBS"
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 /* Override any gcc2 internal prototype to avoid an error. */
3553 /* We use char because int might match the return type of a gcc2
3554 builtin and then its argument prototype would still apply. */
3555 char gethostbyname();
3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3563 eval "ac_cv_lib_$ac_lib_var=yes"
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3568 eval "ac_cv_lib_$ac_lib_var=no"
3571 LIBS="$ac_save_LIBS"
3574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3575 echo "$ac_t""yes" 1>&6
3576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3578 echo "$ac_t""no" 1>&6
3583 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3584 # socket/setsockopt and other routines are undefined under SCO ODT
3585 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3586 # on later versions), says simon@lia.di.epfl.ch: it contains
3587 # gethostby* variants that don't use the nameserver (or something).
3588 # -lsocket must be given before -lnsl if both are needed.
3589 # We assume that if connect needs -lnsl, so does gethostbyname.
3590 echo $ac_n "checking for connect""... $ac_c" 1>&6
3591 echo "configure:3592: checking for connect" >&5
3592 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 /* System header to define __stub macros and hopefully few prototypes,
3599 which can conflict with char connect(); below. */
3601 /* Override any gcc2 internal prototype to avoid an error. */
3602 /* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3608 /* The GNU C library defines this for functions which it implements
3609 to always fail with ENOSYS. Some functions are actually named
3610 something starting with __ and the normal name is an alias. */
3611 #if defined (__stub_connect) || defined (__stub___connect)
3619 if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3621 eval "ac_cv_func_connect=yes"
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3626 eval "ac_cv_func_connect=no"
3631 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3632 echo "$ac_t""yes" 1>&6
3635 echo "$ac_t""no" 1>&6
3638 if test $ac_cv_func_connect = no; then
3639 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3640 echo "configure:3641: checking for connect in -lsocket" >&5
3641 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 ac_save_LIBS="$LIBS"
3646 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 /* We use char because int might match the return type of a gcc2
3652 builtin and then its argument prototype would still apply. */
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3661 eval "ac_cv_lib_$ac_lib_var=yes"
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3666 eval "ac_cv_lib_$ac_lib_var=no"
3669 LIBS="$ac_save_LIBS"
3672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3673 echo "$ac_t""yes" 1>&6
3674 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3676 echo "$ac_t""no" 1>&6
3681 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3682 echo $ac_n "checking for remove""... $ac_c" 1>&6
3683 echo "configure:3684: checking for remove" >&5
3684 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* System header to define __stub macros and hopefully few prototypes,
3691 which can conflict with char remove(); below. */
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3700 /* The GNU C library defines this for functions which it implements
3701 to always fail with ENOSYS. Some functions are actually named
3702 something starting with __ and the normal name is an alias. */
3703 #if defined (__stub_remove) || defined (__stub___remove)
3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3713 eval "ac_cv_func_remove=yes"
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3718 eval "ac_cv_func_remove=no"
3723 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3727 echo "$ac_t""no" 1>&6
3730 if test $ac_cv_func_remove = no; then
3731 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3732 echo "configure:3733: checking for remove in -lposix" >&5
3733 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 ac_save_LIBS="$LIBS"
3738 LIBS="-lposix $LIBS"
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 /* Override any gcc2 internal prototype to avoid an error. */
3743 /* We use char because int might match the return type of a gcc2
3744 builtin and then its argument prototype would still apply. */
3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3753 eval "ac_cv_lib_$ac_lib_var=yes"
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3758 eval "ac_cv_lib_$ac_lib_var=no"
3761 LIBS="$ac_save_LIBS"
3764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3766 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3768 echo "$ac_t""no" 1>&6
3773 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3774 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3775 echo "configure:3776: checking for shmat" >&5
3776 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3779 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 /* System header to define __stub macros and hopefully few prototypes,
3783 which can conflict with char shmat(); below. */
3785 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3792 /* The GNU C library defines this for functions which it implements
3793 to always fail with ENOSYS. Some functions are actually named
3794 something starting with __ and the normal name is an alias. */
3795 #if defined (__stub_shmat) || defined (__stub___shmat)
3803 if { (eval echo configure:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3805 eval "ac_cv_func_shmat=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 eval "ac_cv_func_shmat=no"
3815 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3816 echo "$ac_t""yes" 1>&6
3819 echo "$ac_t""no" 1>&6
3822 if test $ac_cv_func_shmat = no; then
3823 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3824 echo "configure:3825: checking for shmat in -lipc" >&5
3825 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 ac_save_LIBS="$LIBS"
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 /* Override any gcc2 internal prototype to avoid an error. */
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3843 if { (eval echo configure:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3845 eval "ac_cv_lib_$ac_lib_var=yes"
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3850 eval "ac_cv_lib_$ac_lib_var=no"
3853 LIBS="$ac_save_LIBS"
3856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3858 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3860 echo "$ac_t""no" 1>&6
3866 # Check for libraries that X11R6 Xt/Xaw programs need.
3867 ac_save_LDFLAGS="$LDFLAGS"
3868 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3869 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3870 # check for ICE first), but we must link in the order -lSM -lICE or
3871 # we get undefined symbols. So assume we have SM if we have ICE.
3872 # These have to be linked with before -lX11, unlike the other
3873 # libraries we check for below, so use a different variable.
3874 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3875 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3876 echo "configure:3877: checking for IceConnectionNumber in -lICE" >&5
3877 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3881 ac_save_LIBS="$LIBS"
3882 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 /* Override any gcc2 internal prototype to avoid an error. */
3887 /* We use char because int might match the return type of a gcc2
3888 builtin and then its argument prototype would still apply. */
3889 char IceConnectionNumber();
3892 IceConnectionNumber()
3895 if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3897 eval "ac_cv_lib_$ac_lib_var=yes"
3899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3902 eval "ac_cv_lib_$ac_lib_var=no"
3905 LIBS="$ac_save_LIBS"
3908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3909 echo "$ac_t""yes" 1>&6
3910 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3912 echo "$ac_t""no" 1>&6
3915 LDFLAGS="$ac_save_LDFLAGS"
3926 X_TOOLKIT_LIBS="-lXt"
3927 X_BASIC_LIBS="-lXext -lX11"
3929 our_saved_LDFLAGS="$LDFLAGS"
3930 LDFLAGS="$X_LIBS $LDFLAGS"
3931 echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
3932 echo "configure:3933: checking for XtToolkitThreadInitialize in -lXt" >&5
3933 ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
3934 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3937 ac_save_LIBS="$LIBS"
3938 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3942 /* Override any gcc2 internal prototype to avoid an error. */
3943 /* We use char because int might match the return type of a gcc2
3944 builtin and then its argument prototype would still apply. */
3945 char XtToolkitThreadInitialize();
3948 XtToolkitThreadInitialize()
3951 if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3953 eval "ac_cv_lib_$ac_lib_var=yes"
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3958 eval "ac_cv_lib_$ac_lib_var=no"
3961 LIBS="$ac_save_LIBS"
3964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 cat >> confdefs.h <<\EOF
3967 #define X_THREAD_SUPPORT 1
3971 echo "$ac_t""no" 1>&6
3974 LDFLAGS="$our_saved_LDFLAGS"
3976 our_saved_LDFLAGS="$LDFLAGS"
3977 LDFLAGS="$X_LIBS $LDFLAGS"
3978 echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
3979 echo "configure:3980: checking for XdbeQueryExtension in -lXext" >&5
3980 ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
3981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 ac_save_LIBS="$LIBS"
3985 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
3992 char XdbeQueryExtension();
3995 XdbeQueryExtension()
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 eval "ac_cv_lib_$ac_lib_var=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_lib_$ac_lib_var=no"
4008 LIBS="$ac_save_LIBS"
4011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4012 echo "$ac_t""yes" 1>&6
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_DBE_SUPPORT 1
4018 echo "$ac_t""no" 1>&6
4021 echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
4022 echo "configure:4023: checking for XmbufQueryExtension in -lXext" >&5
4023 ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
4024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 ac_save_LIBS="$LIBS"
4028 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4032 /* Override any gcc2 internal prototype to avoid an error. */
4033 /* We use char because int might match the return type of a gcc2
4034 builtin and then its argument prototype would still apply. */
4035 char XmbufQueryExtension();
4038 XmbufQueryExtension()
4041 if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4043 eval "ac_cv_lib_$ac_lib_var=yes"
4045 echo "configure: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4048 eval "ac_cv_lib_$ac_lib_var=no"
4051 LIBS="$ac_save_LIBS"
4054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4055 echo "$ac_t""yes" 1>&6
4056 cat >> confdefs.h <<\EOF
4057 #define HAVE_MBX_SUPPORT 1
4061 echo "$ac_t""no" 1>&6
4064 LDFLAGS="$our_saved_LDFLAGS"
4065 our_saved_CPPFLAGS="$CPPFLAGS"
4066 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4067 for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
4069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4071 echo "configure:4072: checking for $ac_hdr" >&5
4072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4081 { (eval echo configure:4082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4083 if test -z "$ac_err"; then
4085 eval "ac_cv_header_$ac_safe=yes"
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4091 eval "ac_cv_header_$ac_safe=no"
4095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4098 cat >> confdefs.h <<EOF
4099 #define $ac_tr_hdr 1
4103 echo "$ac_t""no" 1>&6
4107 CPPFLAGS="$our_saved_CPPFLAGS"
4111 if test "x$no_x" = "xyes"; then
4119 my_includes="$my_includes -I../include -I.."
4122 echo $ac_n "checking interactive graphics""... $ac_c" 1>&6
4123 echo "configure:4124: checking interactive graphics" >&5
4124 if test "$no_x" != "yes" ; then
4125 cat >> confdefs.h <<\EOF
4129 cat >> confdefs.h <<\EOF
4142 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
4143 ctlibs_graphics="$ctlibs_base -lctgraphics"
4144 echo "$ac_t""yes" 1>&6
4145 if test "$g2" = "true" ; then
4146 ctlibs_graphics="$ctlibs_graphics -lg2"
4148 ctlibs_graphics="$ctlibs_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
4150 echo "$ac_t""no" 1>&6
4153 if test "$png" = "true" ; then
4154 ctlibs_tools="$ctlibs_tools -lpng"
4156 if test "$zlib" = "true" ; then
4157 ctlibs_tools="$ctlibs_tools -lz"
4159 if test "$fftw" = "true" ; then
4160 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
4163 echo $ac_n "checking for main in -ldmallocxx""... $ac_c" 1>&6
4164 echo "configure:4165: checking for main in -ldmallocxx" >&5
4165 ac_lib_var=`echo dmallocxx'_'main | sed 'y%./+-%__p_%'`
4166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 ac_save_LIBS="$LIBS"
4170 LIBS="-ldmallocxx $LIBS"
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4179 if { (eval echo configure:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4181 eval "ac_cv_lib_$ac_lib_var=yes"
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 eval "ac_cv_lib_$ac_lib_var=no"
4189 LIBS="$ac_save_LIBS"
4192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4193 echo "$ac_t""yes" 1>&6
4196 echo "$ac_t""no" 1>&6
4200 echo $ac_n "checking for enable-dmalloc""... $ac_c" 1>&6
4201 echo "configure:4202: checking for enable-dmalloc" >&5
4202 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4203 if test "${enable_dmalloc+set}" = set; then
4204 enableval="$enable_dmalloc"
4205 case "${enableval}" in
4206 yes) usedmalloc=true
4207 echo "$ac_t""yes" 1>&6
4209 no) usedmalloc=false
4210 echo "$ac_t""no" 1>&6
4212 *) echo "$ac_t""bad value ${enableval} for --enable-dmalloc" 1>&6
4216 usedmalloc=false; echo "$ac_t""no" 1>&6
4220 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
4221 ctlibs_tools="$ctlibs_tools -ldmallocxx"
4222 cat >> confdefs.h <<\EOF
4223 #define HAVE_DMALLOC 1
4226 echo "$ac_t""Using dmalloc" 1>&6
4229 if test "$wxwin" = "true" ; then
4230 wxcflags=`$wxconfig --cflags`
4231 CFLAGS="$CFLAGS -I../include $wxcflags"
4232 wxlibs=`$wxconfig --libs`
4233 ctlibs_graphics="$ctlibs_graphics $wxlibs"
4237 HAVE_WXWINDOWS_TRUE=
4238 HAVE_WXWINDOWS_FALSE='#'
4240 HAVE_WXWINDOWS_TRUE='#'
4241 HAVE_WXWINDOWS_FALSE=
4247 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
4248 ctlibs="$ctlibs_base -lctsim $ctlibs_graphics -lctsupport $ctlibs_tools"
4251 if test -n "$lamdir" ; then
4252 lamprograms="pjrec-lam phm2if-lam phm2pj-lam"
4261 cat > confcache <<\EOF
4262 # This file is a shell script that caches the results of configure
4263 # tests run on this system so they can be shared between configure
4264 # scripts and configure runs. It is not useful on other systems.
4265 # If it contains results you don't want to keep, you may remove or edit it.
4267 # By default, configure uses ./config.cache as the cache file,
4268 # creating it if it does not exist already. You can give configure
4269 # the --cache-file=FILE option to use a different cache file; that is
4270 # what configure does when it calls configure scripts in
4271 # subdirectories, so they share the cache.
4272 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4273 # config.status only pays attention to the cache file if you give it the
4274 # --recheck option to rerun configure.
4277 # The following way of writing the cache mishandles newlines in values,
4278 # but we know of no workaround that is simple, portable, and efficient.
4279 # So, don't put newlines in cache variables' values.
4280 # Ultrix sh set writes to stderr and can't be redirected directly,
4281 # and sets the high bit in the cache file unless we assign to the vars.
4283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4285 # `set' does not quote correctly, so add quotes (double-quote substitution
4286 # turns \\\\ into \\, and sed turns \\ into \).
4288 -e "s/'/'\\\\''/g" \
4289 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4292 # `set' quotes correctly as required by POSIX, so do not add quotes.
4293 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4296 if cmp -s $cache_file confcache; then
4299 if test -w $cache_file; then
4300 echo "updating cache $cache_file"
4301 cat confcache > $cache_file
4303 echo "not updating unwritable cache $cache_file"
4308 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4311 # Let make expand exec_prefix.
4312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4314 # Any assignment to VPATH causes Sun make to only execute
4315 # the first set of double-colon rules, so remove it if not needed.
4316 # If there is a colon in the path, we need to keep it.
4317 if test "x$srcdir" = x.; then
4318 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4321 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4323 DEFS=-DHAVE_CONFIG_H
4325 # Without the "./", some shells look in PATH for config.status.
4326 : ${CONFIG_STATUS=./config.status}
4328 echo creating $CONFIG_STATUS
4329 rm -f $CONFIG_STATUS
4330 cat > $CONFIG_STATUS <<EOF
4332 # Generated automatically by configure.
4333 # Run this file to recreate the current configuration.
4334 # This directory was configured as follows,
4335 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4337 # $0 $ac_configure_args
4339 # Compiler output produced by configure, useful for debugging
4340 # configure, is in ./config.log if it exists.
4342 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4345 case "\$ac_option" in
4346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4347 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4348 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4349 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4350 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4352 -help | --help | --hel | --he | --h)
4353 echo "\$ac_cs_usage"; exit 0 ;;
4354 *) echo "\$ac_cs_usage"; exit 1 ;;
4358 ac_given_srcdir=$srcdir
4359 ac_given_INSTALL="$INSTALL"
4361 trap 'rm -fr `echo "Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile Makefile man/Makefile doc/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4363 cat >> $CONFIG_STATUS <<EOF
4365 # Protect against being on the right side of a sed subst in config.status.
4366 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4367 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4371 s%@CFLAGS@%$CFLAGS%g
4372 s%@CPPFLAGS@%$CPPFLAGS%g
4373 s%@CXXFLAGS@%$CXXFLAGS%g
4374 s%@FFLAGS@%$FFLAGS%g
4376 s%@LDFLAGS@%$LDFLAGS%g
4378 s%@exec_prefix@%$exec_prefix%g
4379 s%@prefix@%$prefix%g
4380 s%@program_transform_name@%$program_transform_name%g
4381 s%@bindir@%$bindir%g
4382 s%@sbindir@%$sbindir%g
4383 s%@libexecdir@%$libexecdir%g
4384 s%@datadir@%$datadir%g
4385 s%@sysconfdir@%$sysconfdir%g
4386 s%@sharedstatedir@%$sharedstatedir%g
4387 s%@localstatedir@%$localstatedir%g
4388 s%@libdir@%$libdir%g
4389 s%@includedir@%$includedir%g
4390 s%@oldincludedir@%$oldincludedir%g
4391 s%@infodir@%$infodir%g
4392 s%@mandir@%$mandir%g
4393 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4394 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4395 s%@INSTALL_DATA@%$INSTALL_DATA%g
4396 s%@PACKAGE@%$PACKAGE%g
4397 s%@VERSION@%$VERSION%g
4398 s%@ACLOCAL@%$ACLOCAL%g
4399 s%@AUTOCONF@%$AUTOCONF%g
4400 s%@AUTOMAKE@%$AUTOMAKE%g
4401 s%@AUTOHEADER@%$AUTOHEADER%g
4402 s%@MAKEINFO@%$MAKEINFO%g
4403 s%@SET_MAKE@%$SET_MAKE%g
4405 s%@RANLIB@%$RANLIB%g
4408 s%@wxconfig@%$wxconfig%g
4410 s%@host_alias@%$host_alias%g
4411 s%@host_cpu@%$host_cpu%g
4412 s%@host_vendor@%$host_vendor%g
4413 s%@host_os@%$host_os%g
4415 s%@INCLUDED_GETOPT_LONG_TRUE@%$INCLUDED_GETOPT_LONG_TRUE%g
4416 s%@INCLUDED_GETOPT_LONG_FALSE@%$INCLUDED_GETOPT_LONG_FALSE%g
4417 s%@DEBUG_TRUE@%$DEBUG_TRUE%g
4418 s%@DEBUG_FALSE@%$DEBUG_FALSE%g
4419 s%@lamdir@%$lamdir%g
4420 s%@mpienable@%$mpienable%g
4421 s%@cgibindir@%$cgibindir%g
4422 s%@cgibinurl@%$cgibinurl%g
4423 s%@webdatadir@%$webdatadir%g
4424 s%@webdataurl@%$webdataurl%g
4425 s%@htmldir@%$htmldir%g
4426 s%@cgiprograms@%$cgiprograms%g
4427 s%@htmldata@%$htmldata%g
4428 s%@USE_HTML_TRUE@%$USE_HTML_TRUE%g
4429 s%@USE_HTML_FALSE@%$USE_HTML_FALSE%g
4430 s%@webenabled@%$webenabled%g
4431 s%@USE_LAM_TRUE@%$USE_LAM_TRUE%g
4432 s%@USE_LAM_FALSE@%$USE_LAM_FALSE%g
4433 s%@X_CFLAGS@%$X_CFLAGS%g
4434 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4435 s%@X_LIBS@%$X_LIBS%g
4436 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4437 s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4438 s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4439 s%@NO_X_TRUE@%$NO_X_TRUE%g
4440 s%@NO_X_FALSE@%$NO_X_FALSE%g
4441 s%@my_includes@%$my_includes%g
4442 s%@HAVE_SGP_TRUE@%$HAVE_SGP_TRUE%g
4443 s%@HAVE_SGP_FALSE@%$HAVE_SGP_FALSE%g
4444 s%@HAVE_WXWINDOWS_TRUE@%$HAVE_WXWINDOWS_TRUE%g
4445 s%@HAVE_WXWINDOWS_FALSE@%$HAVE_WXWINDOWS_FALSE%g
4446 s%@wxcflags@%$wxcflags%g
4447 s%@wxlibs@%$wxlibs%g
4448 s%@ctlibs@%$ctlibs%g
4449 s%@lamprograms@%$lamprograms%g
4450 s%@lamdefs@%$lamdefs%g
4455 cat >> $CONFIG_STATUS <<\EOF
4457 # Split the substitutions into bite-sized pieces for seds with
4458 # small command number limits, like on Digital OSF/1 and HP-UX.
4459 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4460 ac_file=1 # Number of current file.
4461 ac_beg=1 # First line for current file.
4462 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4465 while $ac_more_lines; do
4466 if test $ac_beg -gt 1; then
4467 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4469 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4471 if test ! -s conftest.s$ac_file; then
4473 rm -f conftest.s$ac_file
4475 if test -z "$ac_sed_cmds"; then
4476 ac_sed_cmds="sed -f conftest.s$ac_file"
4478 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4480 ac_file=`expr $ac_file + 1`
4482 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4485 if test -z "$ac_sed_cmds"; then
4490 cat >> $CONFIG_STATUS <<EOF
4492 CONFIG_FILES=\${CONFIG_FILES-"Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile Makefile man/Makefile doc/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile"}
4494 cat >> $CONFIG_STATUS <<\EOF
4495 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4498 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4499 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4500 *) ac_file_in="${ac_file}.in" ;;
4503 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4505 # Remove last slash and all that follows it. Not all systems have dirname.
4506 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4508 # The file is in a subdirectory.
4509 test ! -d "$ac_dir" && mkdir "$ac_dir"
4510 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4511 # A "../" for each directory in $ac_dir_suffix.
4512 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4514 ac_dir_suffix= ac_dots=
4517 case "$ac_given_srcdir" in
4519 if test -z "$ac_dots"; then top_srcdir=.
4520 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4521 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4523 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4524 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4527 case "$ac_given_INSTALL" in
4528 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4529 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4532 echo creating "$ac_file"
4534 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4536 *Makefile*) ac_comsub="1i\\
4537 # $configure_input" ;;
4541 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4543 s%@configure_input@%$configure_input%g
4544 s%@srcdir@%$srcdir%g
4545 s%@top_srcdir@%$top_srcdir%g
4546 s%@INSTALL@%$INSTALL%g
4547 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4554 # ac_d sets the value in "#define NAME VALUE" lines.
4555 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4556 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4559 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4560 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4561 ac_uB='\([ ]\)%\1#\2define\3'
4564 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4565 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4566 ac_eB='$%\1#\2define\3'
4570 if test "${CONFIG_HEADERS+set}" != set; then
4572 cat >> $CONFIG_STATUS <<EOF
4573 CONFIG_HEADERS="config.h"
4575 cat >> $CONFIG_STATUS <<\EOF
4577 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4580 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4581 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4582 *) ac_file_in="${ac_file}.in" ;;
4585 echo creating $ac_file
4587 rm -f conftest.frag conftest.in conftest.out
4588 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4589 cat $ac_file_inputs > conftest.in
4593 # Transform confdefs.h into a sed script conftest.vals that substitutes
4594 # the proper values into config.h.in to produce config.h. And first:
4595 # Protect against being on the right side of a sed subst in config.status.
4596 # Protect against being in an unquoted here document in config.status.
4598 cat > conftest.hdr <<\EOF
4601 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4605 sed -n -f conftest.hdr confdefs.h > conftest.vals
4608 # This sed command replaces #undef with comments. This is necessary, for
4609 # example, in the case of _POSIX_SOURCE, which is predefined and required
4610 # on some systems where configure will not decide to define it.
4611 cat >> conftest.vals <<\EOF
4612 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4615 # Break up conftest.vals because some shells have a limit on
4616 # the size of here documents, and old seds have small limits too.
4621 ac_lines=`grep -c . conftest.vals`
4622 # grep -c gives empty output for an empty file on some AIX systems.
4623 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4624 # Write a limited-size here document to conftest.frag.
4625 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4626 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4628 sed -f conftest.frag conftest.in > conftest.out
4630 mv conftest.out conftest.in
4632 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4634 mv conftest.tail conftest.vals
4638 cat >> $CONFIG_STATUS <<\EOF
4639 rm -f conftest.frag conftest.h
4640 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4641 cat conftest.in >> conftest.h
4643 if cmp -s $ac_file conftest.h 2>/dev/null; then
4644 echo "$ac_file is unchanged"
4647 # Remove last slash and all that follows it. Not all systems have dirname.
4648 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4650 # The file is in a subdirectory.
4651 test ! -d "$ac_dir" && mkdir "$ac_dir"
4654 mv conftest.h $ac_file
4659 cat >> $CONFIG_STATUS <<EOF
4663 cat >> $CONFIG_STATUS <<\EOF
4664 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4668 chmod +x $CONFIG_STATUS
4669 rm -fr confdefs* $ac_clean_files
4670 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1