3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-verbose-warnings
16 Enable verbose compiler warnings."
18 --enable-debug Turn on debugging"
20 --with-lam[=PATH] Set path of LAM MPI "
22 --with-cgibin-dir=PATH Set path of CGI binaries directory "
24 --with-cgibin-url=PATH Set URL path of CGI binaries "
26 --with-webdata-dir=PATH Set path of webdata"
28 --with-webdata-url=PATH Set URL path of webdata"
30 --with-html-dir=PATH Set directory of html files"
32 --with-x use the X Window System"
34 --enable-dmalloc Use dmalloc memory allocation"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
70 # Initialize some other variables.
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host | --host | --hos | --ho)
212 -host=* | --host=* | --hos=* | --ho=*)
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
333 -site=* | --site=* | --sit=*)
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=src/ctsim.cpp
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='\c' ac_t=
546 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
547 if test -f $ac_dir/install-sh; then
549 ac_install_sh="$ac_aux_dir/install-sh -c"
551 elif test -f $ac_dir/install.sh; then
553 ac_install_sh="$ac_aux_dir/install.sh -c"
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 ac_config_guess=$ac_aux_dir/config.guess
561 ac_config_sub=$ac_aux_dir/config.sub
562 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564 # Find a good install program. We prefer a C program (faster),
565 # so one script is as good as another. But avoid the broken or
566 # incompatible versions:
567 # SysV /etc/install, /usr/sbin/install
568 # SunOS /usr/etc/install
571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
574 # ./install, which can be erroneously created by make from ./install.sh.
575 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
576 echo "configure:577: checking for a BSD compatible install" >&5
577 if test -z "$INSTALL"; then
578 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
581 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
582 for ac_dir in $PATH; do
583 # Account for people who put trailing slashes in PATH elements.
585 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
587 # OSF1 and SCO ODT 3.0 have their own names for install.
588 # Don't use installbsd from OSF since it installs stuff as root
590 for ac_prog in ginstall scoinst install; do
591 if test -f $ac_dir/$ac_prog; then
592 if test $ac_prog = install &&
593 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
594 # AIX install. It has an incompatible calling convention.
597 ac_cv_path_install="$ac_dir/$ac_prog -c"
608 if test "${ac_cv_path_install+set}" = set; then
609 INSTALL="$ac_cv_path_install"
611 # As a last resort, use the slow shell script. We don't cache a
612 # path for INSTALL within a source directory, because that will
613 # break other packages using the cache if that directory is
614 # removed, or if the path is relative.
615 INSTALL="$ac_install_sh"
618 echo "$ac_t""$INSTALL" 1>&6
620 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
621 # It thinks the first close brace ends the variable substitution.
622 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
624 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
626 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
628 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
629 echo "configure:630: checking whether build environment is sane" >&5
632 echo timestamp > conftestfile
633 # Do `set' in a subshell so we don't clobber the current shell's
634 # arguments. Must try -L first in case configure is actually a
635 # symlink; some systems play weird games with the mod time of symlinks
636 # (eg FreeBSD returns the mod time of the symlink's containing
639 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
640 if test "$*" = "X"; then
642 set X `ls -t $srcdir/configure conftestfile`
644 if test "$*" != "X $srcdir/configure conftestfile" \
645 && test "$*" != "X conftestfile $srcdir/configure"; then
647 # If neither matched, then we have a broken ls. This can happen
648 # if, for instance, CONFIG_SHELL is bash and it inherits a
649 # broken ls alias from the environment. This has actually
650 # happened. Such a system could not be considered "sane".
651 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
652 alias in your environment" 1>&2; exit 1; }
655 test "$2" = conftestfile
661 { echo "configure: error: newly created file is older than distributed files!
662 Check your system clock" 1>&2; exit 1; }
665 echo "$ac_t""yes" 1>&6
666 if test "$program_transform_name" = s,x,x,; then
667 program_transform_name=
669 # Double any \ or $. echo might interpret backslashes.
670 cat <<\EOF_SED > conftestsed
671 s,\\,\\\\,g; s,\$,$$,g
673 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
676 test "$program_prefix" != NONE &&
677 program_transform_name="s,^,${program_prefix},; $program_transform_name"
678 # Use a double $ so make ignores it.
679 test "$program_suffix" != NONE &&
680 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
682 # sed with no file args requires a program.
683 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
685 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
686 echo "configure:687: checking whether ${MAKE-make} sets \${MAKE}" >&5
687 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
688 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
691 cat > conftestmake <<\EOF
693 @echo 'ac_maketemp="${MAKE}"'
695 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
696 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
697 if test -n "$ac_maketemp"; then
698 eval ac_cv_prog_make_${ac_make}_set=yes
700 eval ac_cv_prog_make_${ac_make}_set=no
704 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
705 echo "$ac_t""yes" 1>&6
708 echo "$ac_t""no" 1>&6
709 SET_MAKE="MAKE=${MAKE-make}"
717 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
718 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
720 cat >> confdefs.h <<EOF
721 #define PACKAGE "$PACKAGE"
724 cat >> confdefs.h <<EOF
725 #define VERSION "$VERSION"
730 missing_dir=`cd $ac_aux_dir && pwd`
731 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
732 echo "configure:733: checking for working aclocal" >&5
733 # Run test in a subshell; some versions of sh will print an error if
734 # an executable is not found, even if stderr is redirected.
735 # Redirect stdin to placate older versions of autoconf. Sigh.
736 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
738 echo "$ac_t""found" 1>&6
740 ACLOCAL="$missing_dir/missing aclocal"
741 echo "$ac_t""missing" 1>&6
744 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
745 echo "configure:746: checking for working autoconf" >&5
746 # Run test in a subshell; some versions of sh will print an error if
747 # an executable is not found, even if stderr is redirected.
748 # Redirect stdin to placate older versions of autoconf. Sigh.
749 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
751 echo "$ac_t""found" 1>&6
753 AUTOCONF="$missing_dir/missing autoconf"
754 echo "$ac_t""missing" 1>&6
757 echo $ac_n "checking for working automake""... $ac_c" 1>&6
758 echo "configure:759: checking for working automake" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (automake --version) < /dev/null > /dev/null 2>&1; then
764 echo "$ac_t""found" 1>&6
766 AUTOMAKE="$missing_dir/missing automake"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
771 echo "configure:772: checking for working autoheader" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
776 AUTOHEADER=autoheader
777 echo "$ac_t""found" 1>&6
779 AUTOHEADER="$missing_dir/missing autoheader"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
784 echo "configure:785: checking for working makeinfo" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
790 echo "$ac_t""found" 1>&6
792 MAKEINFO="$missing_dir/missing makeinfo"
793 echo "$ac_t""missing" 1>&6
801 for ac_prog in gawk mawk nawk awk
803 # Extract the first word of "$ac_prog", so it can be a program name with args.
804 set dummy $ac_prog; ac_word=$2
805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
806 echo "configure:807: checking for $ac_word" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 if test -n "$AWK"; then
811 ac_cv_prog_AWK="$AWK" # Let the user override the test.
813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
815 for ac_dir in $ac_dummy; do
816 test -z "$ac_dir" && ac_dir=.
817 if test -f $ac_dir/$ac_word; then
818 ac_cv_prog_AWK="$ac_prog"
825 AWK="$ac_cv_prog_AWK"
826 if test -n "$AWK"; then
827 echo "$ac_t""$AWK" 1>&6
829 echo "$ac_t""no" 1>&6
832 test -n "$AWK" && break
835 # Find a good install program. We prefer a C program (faster),
836 # so one script is as good as another. But avoid the broken or
837 # incompatible versions:
838 # SysV /etc/install, /usr/sbin/install
839 # SunOS /usr/etc/install
842 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
843 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
844 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
845 # ./install, which can be erroneously created by make from ./install.sh.
846 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
847 echo "configure:848: checking for a BSD compatible install" >&5
848 if test -z "$INSTALL"; then
849 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
853 for ac_dir in $PATH; do
854 # Account for people who put trailing slashes in PATH elements.
856 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
858 # OSF1 and SCO ODT 3.0 have their own names for install.
859 # Don't use installbsd from OSF since it installs stuff as root
861 for ac_prog in ginstall scoinst install; do
862 if test -f $ac_dir/$ac_prog; then
863 if test $ac_prog = install &&
864 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # AIX install. It has an incompatible calling convention.
868 ac_cv_path_install="$ac_dir/$ac_prog -c"
879 if test "${ac_cv_path_install+set}" = set; then
880 INSTALL="$ac_cv_path_install"
882 # As a last resort, use the slow shell script. We don't cache a
883 # path for INSTALL within a source directory, because that will
884 # break other packages using the cache if that directory is
885 # removed, or if the path is relative.
886 INSTALL="$ac_install_sh"
889 echo "$ac_t""$INSTALL" 1>&6
891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
892 # It thinks the first close brace ends the variable substitution.
893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
899 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
900 echo "configure:901: checking whether ${MAKE-make} sets \${MAKE}" >&5
901 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
902 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 cat > conftestmake <<\EOF
907 @echo 'ac_maketemp="${MAKE}"'
909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
910 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
911 if test -n "$ac_maketemp"; then
912 eval ac_cv_prog_make_${ac_make}_set=yes
914 eval ac_cv_prog_make_${ac_make}_set=no
918 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
919 echo "$ac_t""yes" 1>&6
922 echo "$ac_t""no" 1>&6
923 SET_MAKE="MAKE=${MAKE-make}"
926 # Extract the first word of "ranlib", so it can be a program name with args.
927 set dummy ranlib; ac_word=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 if test -n "$RANLIB"; then
934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
938 for ac_dir in $ac_dummy; do
939 test -z "$ac_dir" && ac_dir=.
940 if test -f $ac_dir/$ac_word; then
941 ac_cv_prog_RANLIB="ranlib"
946 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
949 RANLIB="$ac_cv_prog_RANLIB"
950 if test -n "$RANLIB"; then
951 echo "$ac_t""$RANLIB" 1>&6
953 echo "$ac_t""no" 1>&6
956 # Extract the first word of "gcc", so it can be a program name with args.
957 set dummy gcc; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 if test -n "$CC"; then
964 ac_cv_prog_CC="$CC" # Let the user override the test.
966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968 for ac_dir in $ac_dummy; do
969 test -z "$ac_dir" && ac_dir=.
970 if test -f $ac_dir/$ac_word; then
979 if test -n "$CC"; then
980 echo "$ac_t""$CC" 1>&6
982 echo "$ac_t""no" 1>&6
985 if test -z "$CC"; then
986 # Extract the first word of "cc", so it can be a program name with args.
987 set dummy cc; ac_word=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 if test -n "$CC"; then
994 ac_cv_prog_CC="$CC" # Let the user override the test.
996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
999 for ac_dir in $ac_dummy; do
1000 test -z "$ac_dir" && ac_dir=.
1001 if test -f $ac_dir/$ac_word; then
1002 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1003 ac_prog_rejected=yes
1011 if test $ac_prog_rejected = yes; then
1012 # We found a bogon in the path, so make sure we never use it.
1013 set dummy $ac_cv_prog_CC
1015 if test $# -gt 0; then
1016 # We chose a different compiler from the bogus one.
1017 # However, it has the same basename, so the bogon will be chosen
1018 # first if we set CC to just the basename; use the full file name.
1020 set dummy "$ac_dir/$ac_word" "$@"
1028 if test -n "$CC"; then
1029 echo "$ac_t""$CC" 1>&6
1031 echo "$ac_t""no" 1>&6
1034 if test -z "$CC"; then
1035 case "`uname -s`" in
1037 # Extract the first word of "cl", so it can be a program name with args.
1038 set dummy cl; ac_word=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 echo "configure:1041: checking for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 if test -n "$CC"; then
1045 ac_cv_prog_CC="$CC" # Let the user override the test.
1047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1060 if test -n "$CC"; then
1061 echo "$ac_t""$CC" 1>&6
1063 echo "$ac_t""no" 1>&6
1068 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1071 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1072 echo "configure:1073: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1075 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1076 ac_cpp='$CPP $CPPFLAGS'
1077 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1078 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1079 cross_compiling=$ac_cv_prog_cc_cross
1081 cat > conftest.$ac_ext << EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1088 if { (eval echo configure:1089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1089 ac_cv_prog_cc_works=yes
1090 # If we can't run a trivial program, we are probably using a cross compiler.
1091 if (./conftest; exit) 2>/dev/null; then
1092 ac_cv_prog_cc_cross=no
1094 ac_cv_prog_cc_cross=yes
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1099 ac_cv_prog_cc_works=no
1103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1104 ac_cpp='$CPP $CPPFLAGS'
1105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1107 cross_compiling=$ac_cv_prog_cc_cross
1109 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1110 if test $ac_cv_prog_cc_works = no; then
1111 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1113 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1115 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1116 cross_compiling=$ac_cv_prog_cc_cross
1118 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether we are using GNU C" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 cat > conftest.c <<EOF
1128 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1137 if test $ac_cv_prog_gcc = yes; then
1143 ac_test_CFLAGS="${CFLAGS+set}"
1144 ac_save_CFLAGS="$CFLAGS"
1146 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether ${CC-cc} accepts -g" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 echo 'void f(){}' > conftest.c
1152 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1161 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1162 if test "$ac_test_CFLAGS" = set; then
1163 CFLAGS="$ac_save_CFLAGS"
1164 elif test $ac_cv_prog_cc_g = yes; then
1165 if test "$GCC" = yes; then
1171 if test "$GCC" = yes; then
1178 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1180 # Extract the first word of "$ac_prog", so it can be a program name with args.
1181 set dummy $ac_prog; ac_word=$2
1182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1183 echo "configure:1184: checking for $ac_word" >&5
1184 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 if test -n "$CXX"; then
1188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1192 for ac_dir in $ac_dummy; do
1193 test -z "$ac_dir" && ac_dir=.
1194 if test -f $ac_dir/$ac_word; then
1195 ac_cv_prog_CXX="$ac_prog"
1202 CXX="$ac_cv_prog_CXX"
1203 if test -n "$CXX"; then
1204 echo "$ac_t""$CXX" 1>&6
1206 echo "$ac_t""no" 1>&6
1209 test -n "$CXX" && break
1211 test -n "$CXX" || CXX="gcc"
1214 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1218 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1219 ac_cpp='$CXXCPP $CPPFLAGS'
1220 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1221 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1222 cross_compiling=$ac_cv_prog_cxx_cross
1224 cat > conftest.$ac_ext << EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1229 int main(){return(0);}
1231 if { (eval echo configure:1232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1232 ac_cv_prog_cxx_works=yes
1233 # If we can't run a trivial program, we are probably using a cross compiler.
1234 if (./conftest; exit) 2>/dev/null; then
1235 ac_cv_prog_cxx_cross=no
1237 ac_cv_prog_cxx_cross=yes
1240 echo "configure: failed program was:" >&5
1241 cat conftest.$ac_ext >&5
1242 ac_cv_prog_cxx_works=no
1246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1247 ac_cpp='$CPP $CPPFLAGS'
1248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1250 cross_compiling=$ac_cv_prog_cc_cross
1252 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1253 if test $ac_cv_prog_cxx_works = no; then
1254 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1256 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1257 echo "configure:1258: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1258 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1259 cross_compiling=$ac_cv_prog_cxx_cross
1261 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether we are using GNU C++" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 cat > conftest.C <<EOF
1271 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1278 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1280 if test $ac_cv_prog_gxx = yes; then
1286 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1287 ac_save_CXXFLAGS="$CXXFLAGS"
1289 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1290 echo "configure:1291: checking whether ${CXX-g++} accepts -g" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 echo 'void f(){}' > conftest.cc
1295 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1296 ac_cv_prog_cxx_g=yes
1304 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1305 if test "$ac_test_CXXFLAGS" = set; then
1306 CXXFLAGS="$ac_save_CXXFLAGS"
1307 elif test $ac_cv_prog_cxx_g = yes; then
1308 if test "$GXX" = yes; then
1314 if test "$GXX" = yes; then
1321 # Extract the first word of "wx-config", so it can be a program name with args.
1322 set dummy wx-config; ac_word=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_path_wxconfig'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1330 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
1333 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a dos path.
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1338 for ac_dir in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_path_wxconfig="$ac_dir/$ac_word"
1349 wxconfig="$ac_cv_path_wxconfig"
1350 if test -n "$wxconfig"; then
1351 echo "$ac_t""$wxconfig" 1>&6
1353 echo "$ac_t""no" 1>&6
1359 # Make sure we can run config.sub.
1360 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1361 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1364 echo $ac_n "checking host system type""... $ac_c" 1>&6
1365 echo "configure:1366: checking host system type" >&5
1368 case "$host_alias" in
1372 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1373 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1375 *) host_alias=$nonopt ;;
1379 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1380 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383 echo "$ac_t""$host" 1>&6
1385 echo $ac_n "checking for inline""... $ac_c" 1>&6
1386 echo "configure:1387: checking for inline" >&5
1387 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1391 for ac_kw in inline __inline__ __inline; do
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1400 if { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1402 ac_cv_c_inline=$ac_kw; break
1404 echo "configure: failed program was:" >&5
1405 cat conftest.$ac_ext >&5
1412 echo "$ac_t""$ac_cv_c_inline" 1>&6
1413 case "$ac_cv_c_inline" in
1415 no) cat >> confdefs.h <<\EOF
1419 *) cat >> confdefs.h <<EOF
1420 #define inline $ac_cv_c_inline
1425 echo $ac_n "checking size of short""... $ac_c" 1>&6
1426 echo "configure:1427: checking size of short" >&5
1427 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 if test "$cross_compiling" = yes; then
1431 ac_cv_sizeof_short=2
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1439 FILE *f=fopen("conftestval", "w");
1441 fprintf(f, "%d\n", sizeof(short));
1445 if { (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1447 ac_cv_sizeof_short=`cat conftestval`
1449 echo "configure: failed program was:" >&5
1450 cat conftest.$ac_ext >&5
1452 ac_cv_sizeof_short=0
1458 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1459 cat >> confdefs.h <<EOF
1460 #define SIZEOF_SHORT $ac_cv_sizeof_short
1464 echo $ac_n "checking size of int""... $ac_c" 1>&6
1465 echo "configure:1466: checking size of int" >&5
1466 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 if test "$cross_compiling" = yes; then
1472 cat > conftest.$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1478 FILE *f=fopen("conftestval", "w");
1480 fprintf(f, "%d\n", sizeof(int));
1484 if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1486 ac_cv_sizeof_int=`cat conftestval`
1488 echo "configure: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1497 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1498 cat >> confdefs.h <<EOF
1499 #define SIZEOF_INT $ac_cv_sizeof_int
1503 echo $ac_n "checking size of long""... $ac_c" 1>&6
1504 echo "configure:1505: checking size of long" >&5
1505 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 if test "$cross_compiling" = yes; then
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1517 FILE *f=fopen("conftestval", "w");
1519 fprintf(f, "%d\n", sizeof(long));
1523 if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1525 ac_cv_sizeof_long=`cat conftestval`
1527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
1536 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1537 cat >> confdefs.h <<EOF
1538 #define SIZEOF_LONG $ac_cv_sizeof_long
1542 echo $ac_n "checking size of float""... $ac_c" 1>&6
1543 echo "configure:1544: checking size of float" >&5
1544 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1547 if test "$cross_compiling" = yes; then
1548 ac_cv_sizeof_float=4
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1556 FILE *f=fopen("conftestval", "w");
1558 fprintf(f, "%d\n", sizeof(float));
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1564 ac_cv_sizeof_float=`cat conftestval`
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 ac_cv_sizeof_float=0
1575 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1576 cat >> confdefs.h <<EOF
1577 #define SIZEOF_FLOAT $ac_cv_sizeof_float
1581 echo $ac_n "checking size of double""... $ac_c" 1>&6
1582 echo "configure:1583: checking size of double" >&5
1583 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 if test "$cross_compiling" = yes; then
1587 ac_cv_sizeof_double=8
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1595 FILE *f=fopen("conftestval", "w");
1597 fprintf(f, "%d\n", sizeof(double));
1601 if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1603 ac_cv_sizeof_double=`cat conftestval`
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1608 ac_cv_sizeof_double=0
1614 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1615 cat >> confdefs.h <<EOF
1616 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1624 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1625 echo "configure:1626: checking whether byte ordering is bigendian" >&5
1626 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 ac_cv_c_bigendian=unknown
1630 # See if sys/param.h defines the BYTE_ORDER macro.
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 #include <sys/types.h>
1635 #include <sys/param.h>
1638 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1643 if { (eval echo configure:1644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1645 # It does; now see whether it defined to BIG_ENDIAN or not.
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 #include <sys/types.h>
1650 #include <sys/param.h>
1653 #if BYTE_ORDER != BIG_ENDIAN
1658 if { (eval echo configure:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1660 ac_cv_c_bigendian=yes
1662 echo "configure: failed program was:" >&5
1663 cat conftest.$ac_ext >&5
1665 ac_cv_c_bigendian=no
1669 echo "configure: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1673 if test $ac_cv_c_bigendian = unknown; then
1674 if test "$cross_compiling" = yes; then
1675 ac_cv_c_bigendian=unknown
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1681 /* Are we little or big endian? From Harbison&Steele. */
1685 char c[sizeof (long)];
1688 exit (u.c[sizeof (long) - 1] == 1);
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1693 ac_cv_c_bigendian=no
1695 echo "configure: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1698 ac_cv_c_bigendian=yes
1706 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1707 if test $ac_cv_c_bigendian = unknown; then
1708 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'}"
1709 to config.cache file" 1>&2
1711 if test $ac_cv_c_bigendian = yes; then
1712 cat >> confdefs.h <<\EOF
1713 #define WORDS_BIGENDIAN 1
1720 echo $ac_n "checking for main in -lz""... $ac_c" 1>&6
1721 echo "configure:1722: checking for main in -lz" >&5
1722 ac_lib_var=`echo z'_'main | sed 'y%./+-%__p_%'`
1723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 ac_save_LIBS="$LIBS"
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1738 eval "ac_cv_lib_$ac_lib_var=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1743 eval "ac_cv_lib_$ac_lib_var=no"
1746 LIBS="$ac_save_LIBS"
1749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1750 echo "$ac_t""yes" 1>&6
1753 echo "$ac_t""no" 1>&6
1754 zlib="false" ; echo "configure: warning: zlib missing. Will need zlib for PNG support" 1>&2
1757 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1758 echo "configure:1759: checking for main in -lm" >&5
1759 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 ac_save_LIBS="$LIBS"
1765 cat > conftest.$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1773 if { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1775 eval "ac_cv_lib_$ac_lib_var=yes"
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1780 eval "ac_cv_lib_$ac_lib_var=no"
1783 LIBS="$ac_save_LIBS"
1786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1787 echo "$ac_t""yes" 1>&6
1788 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1790 cat >> confdefs.h <<EOF
1791 #define $ac_tr_lib 1
1797 echo "$ac_t""no" 1>&6
1800 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1801 echo "configure:1802: checking for main in -lcurses" >&5
1802 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 ac_save_LIBS="$LIBS"
1807 LIBS="-lcurses $LIBS"
1808 cat > conftest.$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1818 eval "ac_cv_lib_$ac_lib_var=yes"
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1823 eval "ac_cv_lib_$ac_lib_var=no"
1826 LIBS="$ac_save_LIBS"
1829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1833 echo "$ac_t""no" 1>&6
1837 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1838 echo "configure:1839: checking for main in -lncurses" >&5
1839 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 ac_save_LIBS="$LIBS"
1844 LIBS="-lncurses $LIBS"
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1853 if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1855 eval "ac_cv_lib_$ac_lib_var=yes"
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1860 eval "ac_cv_lib_$ac_lib_var=no"
1863 LIBS="$ac_save_LIBS"
1866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1867 echo "$ac_t""yes" 1>&6
1870 echo "$ac_t""no" 1>&6
1874 echo $ac_n "checking for main in -lg2""... $ac_c" 1>&6
1875 echo "configure:1876: checking for main in -lg2" >&5
1876 ac_lib_var=`echo g2'_'main | sed 'y%./+-%__p_%'`
1877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 ac_save_LIBS="$LIBS"
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1892 eval "ac_cv_lib_$ac_lib_var=yes"
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1897 eval "ac_cv_lib_$ac_lib_var=no"
1900 LIBS="$ac_save_LIBS"
1903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1904 echo "$ac_t""yes" 1>&6
1907 echo "$ac_t""no" 1>&6
1912 echo $ac_n "checking for main in -lwx_gtk""... $ac_c" 1>&6
1913 echo "configure:1914: checking for main in -lwx_gtk" >&5
1914 ac_lib_var=`echo wx_gtk'_'main | sed 'y%./+-%__p_%'`
1915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1918 ac_save_LIBS="$LIBS"
1919 LIBS="-lwx_gtk $LIBS"
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1928 if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1930 eval "ac_cv_lib_$ac_lib_var=yes"
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 eval "ac_cv_lib_$ac_lib_var=no"
1938 LIBS="$ac_save_LIBS"
1941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1942 echo "$ac_t""yes" 1>&6
1943 wxwin=true; wx_gtk=true; cat >> confdefs.h <<\EOF
1944 #define HAVE_WXWINDOWS 1
1948 echo "$ac_t""no" 1>&6
1951 echo $ac_n "checking for main in -lwx_msw""... $ac_c" 1>&6
1952 echo "configure:1953: checking for main in -lwx_msw" >&5
1953 ac_lib_var=`echo wx_msw'_'main | sed 'y%./+-%__p_%'`
1954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 ac_save_LIBS="$LIBS"
1958 LIBS="-lwx_msw $LIBS"
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1967 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1969 eval "ac_cv_lib_$ac_lib_var=yes"
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1974 eval "ac_cv_lib_$ac_lib_var=no"
1977 LIBS="$ac_save_LIBS"
1980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1982 wxwin=true; wx_msw=true; cat >> confdefs.h <<\EOF
1983 #define HAVE_WXWINDOWS 1
1987 echo "$ac_t""no" 1>&6
1990 echo $ac_n "checking for main in -lhdf5""... $ac_c" 1>&6
1991 echo "configure:1992: checking for main in -lhdf5" >&5
1992 ac_lib_var=`echo hdf5'_'main | sed 'y%./+-%__p_%'`
1993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 ac_save_LIBS="$LIBS"
1997 LIBS="-lhdf5 -lz $LIBS"
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2008 eval "ac_cv_lib_$ac_lib_var=yes"
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2013 eval "ac_cv_lib_$ac_lib_var=no"
2016 LIBS="$ac_save_LIBS"
2019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2020 echo "$ac_t""yes" 1>&6
2023 echo "$ac_t""no" 1>&6
2027 echo $ac_n "checking for main in -lfftw""... $ac_c" 1>&6
2028 echo "configure:2029: checking for main in -lfftw" >&5
2029 ac_lib_var=`echo fftw'_'main | sed 'y%./+-%__p_%'`
2030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 ac_save_LIBS="$LIBS"
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2043 if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2045 eval "ac_cv_lib_$ac_lib_var=yes"
2047 echo "configure: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
2050 eval "ac_cv_lib_$ac_lib_var=no"
2053 LIBS="$ac_save_LIBS"
2056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2057 echo "$ac_t""yes" 1>&6
2058 fftw=true; cat >> confdefs.h <<\EOF
2063 echo "$ac_t""no" 1>&6
2068 if test "$zlib" = "true" ; then
2069 echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
2070 echo "configure:2071: checking for main in -lpng" >&5
2071 ac_lib_var=`echo png'_'main | sed 'y%./+-%__p_%'`
2072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 ac_save_LIBS="$LIBS"
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2085 if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2087 eval "ac_cv_lib_$ac_lib_var=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 eval "ac_cv_lib_$ac_lib_var=no"
2095 LIBS="$ac_save_LIBS"
2098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 png=true ; cat >> confdefs.h <<\EOF
2105 echo "$ac_t""no" 1>&6
2111 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2112 echo "configure:2113: checking how to run the C preprocessor" >&5
2113 # On Suns, sometimes $CPP names a directory.
2114 if test -n "$CPP" && test -d "$CPP"; then
2117 if test -z "$CPP"; then
2118 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 # This must be in double quotes, not single quotes, because CPP may get
2122 # substituted into the Makefile and "${CC-cc}" will confuse make.
2124 # On the NeXT, cc -E runs the code through the compiler's parser,
2125 # not just through cpp.
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2133 { (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2135 if test -z "$ac_err"; then
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2142 CPP="${CC-cc} -E -traditional-cpp"
2143 cat > conftest.$ac_ext <<EOF
2144 #line 2145 "configure"
2145 #include "confdefs.h"
2149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2150 { (eval echo configure:2151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2152 if test -z "$ac_err"; then
2156 echo "configure: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2159 CPP="${CC-cc} -nologo -E"
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2167 { (eval echo configure:2168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2169 if test -z "$ac_err"; then
2173 echo "configure: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2183 ac_cv_prog_CPP="$CPP"
2185 CPP="$ac_cv_prog_CPP"
2187 ac_cv_prog_CPP="$CPP"
2189 echo "$ac_t""$CPP" 1>&6
2191 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2192 echo "configure:2193: checking for ANSI C header files" >&5
2193 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 cat > conftest.$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2205 { (eval echo configure:2206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2207 if test -z "$ac_err"; then
2209 ac_cv_header_stdc=yes
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 ac_cv_header_stdc=no
2219 if test $ac_cv_header_stdc = yes; then
2220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2227 egrep "memchr" >/dev/null 2>&1; then
2231 ac_cv_header_stdc=no
2237 if test $ac_cv_header_stdc = yes; then
2238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2239 cat > conftest.$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2245 egrep "free" >/dev/null 2>&1; then
2249 ac_cv_header_stdc=no
2255 if test $ac_cv_header_stdc = yes; then
2256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2257 if test "$cross_compiling" = yes; then
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2264 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2265 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2267 int main () { int i; for (i = 0; i < 256; i++)
2268 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2272 if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2279 ac_cv_header_stdc=no
2287 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2288 if test $ac_cv_header_stdc = yes; then
2289 cat >> confdefs.h <<\EOF
2290 #define STDC_HEADERS 1
2295 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
2297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_hdr" >&5
2300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then
2313 eval "ac_cv_header_$ac_safe=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 eval "ac_cv_header_$ac_safe=no"
2323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2326 cat >> confdefs.h <<EOF
2327 #define $ac_tr_hdr 1
2331 echo "$ac_t""no" 1>&6
2336 echo $ac_n "checking for working const""... $ac_c" 1>&6
2337 echo "configure:2338: checking for working const" >&5
2338 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2347 /* Ultrix mips cc rejects this. */
2348 typedef int charset[2]; const charset x;
2349 /* SunOS 4.1.1 cc rejects this. */
2350 char const *const *ccp;
2352 /* NEC SVR4.0.2 mips cc rejects this. */
2353 struct point {int x, y;};
2354 static struct point const zero = {0,0};
2355 /* AIX XL C 1.02.0.0 rejects this.
2356 It does not let you subtract one const X* pointer from another in an arm
2357 of an if-expression whose if-part is not a constant expression */
2358 const char *g = "string";
2359 ccp = &g + (g ? g-g : 0);
2360 /* HPUX 7.0 cc rejects these. */
2363 ccp = (char const *const *) p;
2364 { /* SCO 3.2v4 cc rejects this. */
2366 char const *s = 0 ? (char *) 0 : (char const *) 0;
2370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2372 const int *foo = &x[0];
2375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2376 typedef const int *iptr;
2380 { /* AIX XL C 1.02.0.0 rejects this saying
2381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2382 struct s { int j; const int *ap[3]; };
2383 struct s *b; b->j = 5;
2385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2391 if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2403 echo "$ac_t""$ac_cv_c_const" 1>&6
2404 if test $ac_cv_c_const = no; then
2405 cat >> confdefs.h <<\EOF
2411 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2412 echo "configure:2413: checking for off_t" >&5
2413 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 #include <sys/types.h>
2425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2426 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2428 ac_cv_type_off_t=yes
2436 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2437 if test $ac_cv_type_off_t = no; then
2438 cat >> confdefs.h <<\EOF
2444 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2445 echo "configure:2446: checking for size_t" >&5
2446 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 cat > conftest.$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2452 #include <sys/types.h>
2458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2459 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2461 ac_cv_type_size_t=yes
2464 ac_cv_type_size_t=no
2469 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2470 if test $ac_cv_type_size_t = no; then
2471 cat >> confdefs.h <<\EOF
2472 #define size_t unsigned
2477 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2478 echo "configure:2479: checking whether struct tm is in sys/time.h or time.h" >&5
2479 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 #include <sys/types.h>
2488 struct tm *tp; tp->tm_sec;
2491 if { (eval echo configure:2492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493 ac_cv_struct_tm=time.h
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 ac_cv_struct_tm=sys/time.h
2503 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2504 if test $ac_cv_struct_tm = sys/time.h; then
2505 cat >> confdefs.h <<\EOF
2506 #define TM_IN_SYS_TIME 1
2512 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2513 echo "configure:2514: checking for vprintf" >&5
2514 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* System header to define __stub macros and hopefully few prototypes,
2521 which can conflict with char vprintf(); below. */
2523 /* Override any gcc2 internal prototype to avoid an error. */
2524 /* We use char because int might match the return type of a gcc2
2525 builtin and then its argument prototype would still apply. */
2530 /* The GNU C library defines this for functions which it implements
2531 to always fail with ENOSYS. Some functions are actually named
2532 something starting with __ and the normal name is an alias. */
2533 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2543 eval "ac_cv_func_vprintf=yes"
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 eval "ac_cv_func_vprintf=no"
2553 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 cat >> confdefs.h <<\EOF
2556 #define HAVE_VPRINTF 1
2560 echo "$ac_t""no" 1>&6
2563 if test "$ac_cv_func_vprintf" != yes; then
2564 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2565 echo "configure:2566: checking for _doprnt" >&5
2566 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 cat > conftest.$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 /* System header to define __stub macros and hopefully few prototypes,
2573 which can conflict with char _doprnt(); below. */
2575 /* Override any gcc2 internal prototype to avoid an error. */
2576 /* We use char because int might match the return type of a gcc2
2577 builtin and then its argument prototype would still apply. */
2582 /* The GNU C library defines this for functions which it implements
2583 to always fail with ENOSYS. Some functions are actually named
2584 something starting with __ and the normal name is an alias. */
2585 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2593 if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2595 eval "ac_cv_func__doprnt=yes"
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2600 eval "ac_cv_func__doprnt=no"
2605 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 cat >> confdefs.h <<\EOF
2608 #define HAVE_DOPRNT 1
2612 echo "$ac_t""no" 1>&6
2617 for ac_func in strtod strtol snprintf htonl
2619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2620 echo "configure:2621: checking for $ac_func" >&5
2621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2627 /* System header to define __stub macros and hopefully few prototypes,
2628 which can conflict with char $ac_func(); below. */
2630 /* Override any gcc2 internal prototype to avoid an error. */
2631 /* We use char because int might match the return type of a gcc2
2632 builtin and then its argument prototype would still apply. */
2637 /* The GNU C library defines this for functions which it implements
2638 to always fail with ENOSYS. Some functions are actually named
2639 something starting with __ and the normal name is an alias. */
2640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2648 if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2650 eval "ac_cv_func_$ac_func=yes"
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2655 eval "ac_cv_func_$ac_func=no"
2660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2661 echo "$ac_t""yes" 1>&6
2662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2663 cat >> confdefs.h <<EOF
2664 #define $ac_tr_func 1
2668 echo "$ac_t""no" 1>&6
2672 echo $ac_n "checking for basename""... $ac_c" 1>&6
2673 echo "configure:2674: checking for basename" >&5
2674 if eval "test \"`echo '$''{'ac_cv_func_basename'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 /* System header to define __stub macros and hopefully few prototypes,
2681 which can conflict with char basename(); below. */
2683 /* Override any gcc2 internal prototype to avoid an error. */
2684 /* We use char because int might match the return type of a gcc2
2685 builtin and then its argument prototype would still apply. */
2690 /* The GNU C library defines this for functions which it implements
2691 to always fail with ENOSYS. Some functions are actually named
2692 something starting with __ and the normal name is an alias. */
2693 #if defined (__stub_basename) || defined (__stub___basename)
2701 if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2703 eval "ac_cv_func_basename=yes"
2705 echo "configure: failed program was:" >&5
2706 cat conftest.$ac_ext >&5
2708 eval "ac_cv_func_basename=no"
2713 if eval "test \"`echo '$ac_cv_func_'basename`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2717 echo "$ac_t""no" 1>&6
2720 echo $ac_n "checking for setjmp""... $ac_c" 1>&6
2721 echo "configure:2722: checking for setjmp" >&5
2722 if eval "test \"`echo '$''{'ac_cv_func_setjmp'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 /* System header to define __stub macros and hopefully few prototypes,
2729 which can conflict with char setjmp(); below. */
2731 /* Override any gcc2 internal prototype to avoid an error. */
2732 /* We use char because int might match the return type of a gcc2
2733 builtin and then its argument prototype would still apply. */
2738 /* The GNU C library defines this for functions which it implements
2739 to always fail with ENOSYS. Some functions are actually named
2740 something starting with __ and the normal name is an alias. */
2741 #if defined (__stub_setjmp) || defined (__stub___setjmp)
2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2751 eval "ac_cv_func_setjmp=yes"
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2756 eval "ac_cv_func_setjmp=no"
2761 if eval "test \"`echo '$ac_cv_func_'setjmp`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2765 echo "$ac_t""no" 1>&6
2768 if test "${OSTYPE}" = "cygwin" ; then
2771 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2772 echo "configure:2773: checking for getopt_long" >&5
2773 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 /* System header to define __stub macros and hopefully few prototypes,
2780 which can conflict with char getopt_long(); below. */
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2789 /* The GNU C library defines this for functions which it implements
2790 to always fail with ENOSYS. Some functions are actually named
2791 something starting with __ and the normal name is an alias. */
2792 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2802 eval "ac_cv_func_getopt_long=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2807 eval "ac_cv_func_getopt_long=no"
2812 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2816 echo "$ac_t""no" 1>&6
2821 if test "${getopt_long}" = "false" ; then
2822 my_includes="$myincludes -I../getopt"
2823 cat >> confdefs.h <<\EOF
2824 #define HAVE_GETOPT_LONG 1
2827 ctlibs_base="$ctlibs_base -lgetopt"
2828 LDFLAGS="$LDFLAGS -L../getopt"
2832 INCLUDED_GETOPT_LONG_TRUE=
2833 INCLUDED_GETOPT_LONG_FALSE='#'
2835 INCLUDED_GETOPT_LONG_TRUE='#'
2836 INCLUDED_GETOPT_LONG_FALSE=
2841 if test -n "$GCC"; then
2842 CFLAGS="$CFLAGS -Wall"
2845 echo $ac_n "checking whether to enable verbose warnings""... $ac_c" 1>&6
2846 echo "configure:2847: checking whether to enable verbose warnings" >&5
2847 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
2848 if test "${enable_verbose_warnings+set}" = set; then
2849 enableval="$enable_verbose_warnings"
2850 case "$enableval" in
2852 echo "$ac_t""yes" 1>&6
2854 if test -n "$GCC"; then
2859 if test -n "$GCC"; then
2860 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
2864 if test -n "$GCC"; then
2865 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
2869 if test -n "$GCC"; then
2870 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
2874 if test -n "$GCC"; then
2875 CFLAGS="$CFLAGS -pedantic"
2879 if test -n "$GCC"; then
2880 CFLAGS="$CFLAGS -Wredundant-decls"
2886 echo "$ac_t""no" 1>&6
2890 echo "$ac_t""no" 1>&6
2895 echo $ac_n "checking debug""... $ac_c" 1>&6
2896 echo "configure:2897: checking debug" >&5
2897 # Check whether --enable-debug or --disable-debug was given.
2898 if test "${enable_debug+set}" = set; then
2899 enableval="$enable_debug"
2900 case "${enableval}" in
2902 echo "$ac_t""yes" 1>&6
2905 echo "$ac_t""no" 1>&6
2907 *) echo "$ac_t""bad value ${enableval} for --enable-debug" 1>&6
2911 debug=false; echo "$ac_t""no" 1>&6
2916 if test "$debug" = "true"; then
2924 if test "$debug" = "true" ; then
2926 if test -n "$GCC"; then
2927 CFLAGS="$CFLAGS -g -DDEBUG"
2930 cat >> confdefs.h <<\EOF
2936 if test -n "$GCC"; then
2937 CFLAGS="$CFLAGS -g -O3 -DNDEBUG --fast-math"
2940 cat >> confdefs.h <<\EOF
2946 # Check whether --with-lam or --without-lam was given.
2947 if test "${with_lam+set}" = set; then
2949 if test "$withval" != "no" ; then
2956 if test "$withval" != "no" ; then
2957 if test "$prefix" != "NONE" ; then
2958 trylamdir="$trylamdir $prefix"
2961 echo $ac_n "checking for LAM MPI installation""... $ac_c" 1>&6
2962 echo "configure:2963: checking for LAM MPI installation" >&5
2963 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
2964 if test -x "$testlamdir/bin/hcc" ; then
2965 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
2966 CFLAGS="$CFLAGS -I$testlamdir/include"
2967 lamdir="$testlamdir"
2974 echo "$ac_t""$lamdir" 1>&6
2976 echo "$ac_t""no" 1>&6
2979 echo $ac_n "checking for web access""... $ac_c" 1>&6
2980 echo "configure:2981: checking for web access" >&5
2981 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
2982 if test "${with_cgibin_dir+set}" = set; then
2983 withval="$with_cgibin_dir"
2984 cgibindir=$withval ;
2988 # Check whether --with-cgibin-url or --without-cgibin-url was given.
2989 if test "${with_cgibin_url+set}" = set; then
2990 withval="$with_cgibin_url"
2991 cgibinurl=$withval ;
2995 # Check whether --with-webdata-dir or --without-webdata-dir was given.
2996 if test "${with_webdata_dir+set}" = set; then
2997 withval="$with_webdata_dir"
2998 webdatadir=$withval ;
3002 # Check whether --with-webdata-url or --without-webdata-url was given.
3003 if test "${with_webdata_url+set}" = set; then
3004 withval="$with_webdata_url"
3005 webdataurl=$withval ;
3009 # Check whether --with-html-dir or --without-html-dir was given.
3010 if test "${with_html_dir+set}" = set; then
3011 withval="$with_html_dir"
3016 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
3017 cgiprograms="ctsim.cgi ctsim.conf"
3021 if test -n "$htmldir" ; then
3022 htmldata=simulate.html
3027 if test -n "$htmldir"; then
3035 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
3038 echo "$ac_t""yes" 1>&6
3039 if test -z "$cgibindir" ; then
3040 { echo "configure: error: --with-cgibin-dir not set for web access" 1>&2; exit 1; }
3041 elif test -z "$cgibinurl" ; then
3042 { echo "configure: error: --with-cgibin-url not set for web access" 1>&2; exit 1; }
3043 elif test -z "$webdatadir" ; then
3044 { echo "configure: error: --with-webdata-dir not set for web access" 1>&2; exit 1; }
3045 elif test -z "$webdataurl" ; then
3046 { echo "configure: error: --with-webdata-url not set for web access" 1>&2; exit 1; }
3047 elif test -z "$htmldir" ; then
3048 { echo "configure: error: --with-html-dir not set for web access" 1>&2; exit 1; }
3051 echo "$ac_t""no" 1>&6
3056 if test -n "$lamdir"; then
3065 # If we find X, set shell vars x_includes and x_libraries to the
3066 # paths, otherwise set no_x=yes.
3067 # Uses ac_ vars as temps to allow command line to override cache and checks.
3068 # --without-x overrides everything else, but does not touch the cache.
3069 echo $ac_n "checking for X""... $ac_c" 1>&6
3070 echo "configure:3071: checking for X" >&5
3072 # Check whether --with-x or --without-x was given.
3073 if test "${with_x+set}" = set; then
3078 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3079 if test "x$with_x" = xno; then
3080 # The user explicitly disabled X.
3083 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3084 # Both variables are already set.
3087 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 # One or both of the vars are not set, and there is no cached value.
3091 ac_x_includes=NO ac_x_libraries=NO
3093 if mkdir conftestdir; then
3095 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3096 cat > Imakefile <<'EOF'
3098 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3100 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3102 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3103 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3104 for ac_extension in a so sl; do
3105 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3106 test -f $ac_im_libdir/libX11.$ac_extension; then
3107 ac_im_usrlibdir=$ac_im_libdir; break
3110 # Screen out bogus values from the imake configuration. They are
3111 # bogus both because they are the default anyway, and because
3112 # using them would break gcc on systems where it needs fixed includes.
3113 case "$ac_im_incroot" in
3115 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3117 case "$ac_im_usrlibdir" in
3119 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3126 if test "$ac_x_includes" = NO; then
3127 # Guess where to find include files, by looking for this one X11 .h file.
3128 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3130 # First, try using that file with no special directory specified.
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #include <$x_direct_test_include>
3136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3137 { (eval echo configure:3138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3139 if test -z "$ac_err"; then
3141 # We can compile using X headers with no special include directory.
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3148 # Look for the header file in a standard set of common directories.
3149 # Check X11 before X11Rn because it is often a symlink to the current release.
3152 /usr/X11R6/include \
3153 /usr/X11R5/include \
3154 /usr/X11R4/include \
3157 /usr/include/X11R6 \
3158 /usr/include/X11R5 \
3159 /usr/include/X11R4 \
3161 /usr/local/X11/include \
3162 /usr/local/X11R6/include \
3163 /usr/local/X11R5/include \
3164 /usr/local/X11R4/include \
3166 /usr/local/include/X11 \
3167 /usr/local/include/X11R6 \
3168 /usr/local/include/X11R5 \
3169 /usr/local/include/X11R4 \
3173 /usr/XFree86/include/X11 \
3176 /usr/local/include \
3177 /usr/unsupported/include \
3178 /usr/athena/include \
3179 /usr/local/x11r5/include \
3180 /usr/lpp/Xamples/include \
3182 /usr/openwin/include \
3183 /usr/openwin/share/include \
3186 if test -r "$ac_dir/$x_direct_test_include"; then
3187 ac_x_includes=$ac_dir
3193 fi # $ac_x_includes = NO
3195 if test "$ac_x_libraries" = NO; then
3196 # Check for the libraries.
3198 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3199 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3201 # See if we find them without any special options.
3202 # Don't add to $LIBS permanently.
3203 ac_save_LIBS="$LIBS"
3204 LIBS="-l$x_direct_test_library $LIBS"
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3210 ${x_direct_test_function}()
3213 if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3215 LIBS="$ac_save_LIBS"
3216 # We can link X programs with no special library path.
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3222 LIBS="$ac_save_LIBS"
3223 # First see if replacing the include by lib works.
3224 # Check X11 before X11Rn because it is often a symlink to the current release.
3225 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3236 /usr/local/X11/lib \
3237 /usr/local/X11R6/lib \
3238 /usr/local/X11R5/lib \
3239 /usr/local/X11R4/lib \
3241 /usr/local/lib/X11 \
3242 /usr/local/lib/X11R6 \
3243 /usr/local/lib/X11R5 \
3244 /usr/local/lib/X11R4 \
3248 /usr/XFree86/lib/X11 \
3252 /usr/unsupported/lib \
3254 /usr/local/x11r5/lib \
3255 /usr/lpp/Xamples/lib \
3259 /usr/openwin/share/lib \
3262 for ac_extension in a so sl; do
3263 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3264 ac_x_libraries=$ac_dir
3271 fi # $ac_x_libraries = NO
3273 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3274 # Didn't find X anywhere. Cache the known absence of X.
3275 ac_cv_have_x="have_x=no"
3277 # Record where we found X for the cache.
3278 ac_cv_have_x="have_x=yes \
3279 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3283 eval "$ac_cv_have_x"
3286 if test "$have_x" != yes; then
3287 echo "$ac_t""$have_x" 1>&6
3290 # If each of the values was on the command line, it overrides each guess.
3291 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3292 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3293 # Update the cache value to reflect the command line values.
3294 ac_cv_have_x="have_x=yes \
3295 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3296 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3299 if test "$no_x" = yes; then
3300 # Not all programs may use this symbol, but it does not hurt to define it.
3301 cat >> confdefs.h <<\EOF
3302 #define X_DISPLAY_MISSING 1
3305 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3307 if test -n "$x_includes"; then
3308 X_CFLAGS="$X_CFLAGS -I$x_includes"
3311 # It would also be nice to do this for all -L options, not just this one.
3312 if test -n "$x_libraries"; then
3313 X_LIBS="$X_LIBS -L$x_libraries"
3314 # For Solaris; some versions of Sun CC require a space after -R and
3315 # others require no space. Words are not sufficient . . . .
3316 case "`(uname -sr) 2>/dev/null`" in
3318 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3319 echo "configure:3320: checking whether -R must be followed by a space" >&5
3320 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3329 if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3333 echo "configure: failed program was:" >&5
3334 cat conftest.$ac_ext >&5
3339 if test $ac_R_nospace = yes; then
3340 echo "$ac_t""no" 1>&6
3341 X_LIBS="$X_LIBS -R$x_libraries"
3343 LIBS="$ac_xsave_LIBS -R $x_libraries"
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3352 if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3356 echo "configure: failed program was:" >&5
3357 cat conftest.$ac_ext >&5
3362 if test $ac_R_space = yes; then
3363 echo "$ac_t""yes" 1>&6
3364 X_LIBS="$X_LIBS -R $x_libraries"
3366 echo "$ac_t""neither works" 1>&6
3369 LIBS="$ac_xsave_LIBS"
3373 # Check for system-dependent libraries X programs must link with.
3374 # Do this before checking for the system-independent R6 libraries
3375 # (-lICE), since we may need -lsocket or whatever for X linking.
3377 if test "$ISC" = yes; then
3378 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3380 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3381 # libraries were built with DECnet support. And karl@cs.umb.edu says
3382 # the Alpha needs dnet_stub (dnet does not exist).
3383 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3384 echo "configure:3385: checking for dnet_ntoa in -ldnet" >&5
3385 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 ac_save_LIBS="$LIBS"
3391 cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 /* Override any gcc2 internal prototype to avoid an error. */
3395 /* We use char because int might match the return type of a gcc2
3396 builtin and then its argument prototype would still apply. */
3403 if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405 eval "ac_cv_lib_$ac_lib_var=yes"
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3410 eval "ac_cv_lib_$ac_lib_var=no"
3413 LIBS="$ac_save_LIBS"
3416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3417 echo "$ac_t""yes" 1>&6
3418 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3420 echo "$ac_t""no" 1>&6
3423 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3424 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3425 echo "configure:3426: checking for dnet_ntoa in -ldnet_stub" >&5
3426 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 ac_save_LIBS="$LIBS"
3431 LIBS="-ldnet_stub $LIBS"
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3435 /* Override any gcc2 internal prototype to avoid an error. */
3436 /* We use char because int might match the return type of a gcc2
3437 builtin and then its argument prototype would still apply. */
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3446 eval "ac_cv_lib_$ac_lib_var=yes"
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3451 eval "ac_cv_lib_$ac_lib_var=no"
3454 LIBS="$ac_save_LIBS"
3457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3459 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3461 echo "$ac_t""no" 1>&6
3466 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3467 # to get the SysV transport functions.
3468 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3470 # The nsl library prevents programs from opening the X display
3471 # on Irix 5.2, according to dickey@clark.net.
3472 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3473 echo "configure:3474: checking for gethostbyname" >&5
3474 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 /* System header to define __stub macros and hopefully few prototypes,
3481 which can conflict with char gethostbyname(); below. */
3483 /* Override any gcc2 internal prototype to avoid an error. */
3484 /* We use char because int might match the return type of a gcc2
3485 builtin and then its argument prototype would still apply. */
3486 char gethostbyname();
3490 /* The GNU C library defines this for functions which it implements
3491 to always fail with ENOSYS. Some functions are actually named
3492 something starting with __ and the normal name is an alias. */
3493 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3503 eval "ac_cv_func_gethostbyname=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_func_gethostbyname=no"
3513 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3517 echo "$ac_t""no" 1>&6
3520 if test $ac_cv_func_gethostbyname = no; then
3521 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3522 echo "configure:3523: checking for gethostbyname in -lnsl" >&5
3523 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 ac_save_LIBS="$LIBS"
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 /* Override any gcc2 internal prototype to avoid an error. */
3533 /* We use char because int might match the return type of a gcc2
3534 builtin and then its argument prototype would still apply. */
3535 char gethostbyname();
3541 if { (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3543 eval "ac_cv_lib_$ac_lib_var=yes"
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 eval "ac_cv_lib_$ac_lib_var=no"
3551 LIBS="$ac_save_LIBS"
3554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3555 echo "$ac_t""yes" 1>&6
3556 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3558 echo "$ac_t""no" 1>&6
3563 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3564 # socket/setsockopt and other routines are undefined under SCO ODT
3565 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3566 # on later versions), says simon@lia.di.epfl.ch: it contains
3567 # gethostby* variants that don't use the nameserver (or something).
3568 # -lsocket must be given before -lnsl if both are needed.
3569 # We assume that if connect needs -lnsl, so does gethostbyname.
3570 echo $ac_n "checking for connect""... $ac_c" 1>&6
3571 echo "configure:3572: checking for connect" >&5
3572 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* System header to define __stub macros and hopefully few prototypes,
3579 which can conflict with char connect(); below. */
3581 /* Override any gcc2 internal prototype to avoid an error. */
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3588 /* The GNU C library defines this for functions which it implements
3589 to always fail with ENOSYS. Some functions are actually named
3590 something starting with __ and the normal name is an alias. */
3591 #if defined (__stub_connect) || defined (__stub___connect)
3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3601 eval "ac_cv_func_connect=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_func_connect=no"
3611 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3615 echo "$ac_t""no" 1>&6
3618 if test $ac_cv_func_connect = no; then
3619 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3620 echo "configure:3621: checking for connect in -lsocket" >&5
3621 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 ac_save_LIBS="$LIBS"
3626 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3641 eval "ac_cv_lib_$ac_lib_var=yes"
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3646 eval "ac_cv_lib_$ac_lib_var=no"
3649 LIBS="$ac_save_LIBS"
3652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3653 echo "$ac_t""yes" 1>&6
3654 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3656 echo "$ac_t""no" 1>&6
3661 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3662 echo $ac_n "checking for remove""... $ac_c" 1>&6
3663 echo "configure:3664: checking for remove" >&5
3664 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 /* System header to define __stub macros and hopefully few prototypes,
3671 which can conflict with char remove(); below. */
3673 /* Override any gcc2 internal prototype to avoid an error. */
3674 /* We use char because int might match the return type of a gcc2
3675 builtin and then its argument prototype would still apply. */
3680 /* The GNU C library defines this for functions which it implements
3681 to always fail with ENOSYS. Some functions are actually named
3682 something starting with __ and the normal name is an alias. */
3683 #if defined (__stub_remove) || defined (__stub___remove)
3691 if { (eval echo configure:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3693 eval "ac_cv_func_remove=yes"
3695 echo "configure: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3698 eval "ac_cv_func_remove=no"
3703 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3707 echo "$ac_t""no" 1>&6
3710 if test $ac_cv_func_remove = no; then
3711 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3712 echo "configure:3713: checking for remove in -lposix" >&5
3713 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3717 ac_save_LIBS="$LIBS"
3718 LIBS="-lposix $LIBS"
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 /* Override any gcc2 internal prototype to avoid an error. */
3723 /* We use char because int might match the return type of a gcc2
3724 builtin and then its argument prototype would still apply. */
3731 if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3733 eval "ac_cv_lib_$ac_lib_var=yes"
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3738 eval "ac_cv_lib_$ac_lib_var=no"
3741 LIBS="$ac_save_LIBS"
3744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3748 echo "$ac_t""no" 1>&6
3753 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3754 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3755 echo "configure:3756: checking for shmat" >&5
3756 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3762 /* System header to define __stub macros and hopefully few prototypes,
3763 which can conflict with char shmat(); below. */
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3772 /* The GNU C library defines this for functions which it implements
3773 to always fail with ENOSYS. Some functions are actually named
3774 something starting with __ and the normal name is an alias. */
3775 #if defined (__stub_shmat) || defined (__stub___shmat)
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 eval "ac_cv_func_shmat=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_func_shmat=no"
3795 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3796 echo "$ac_t""yes" 1>&6
3799 echo "$ac_t""no" 1>&6
3802 if test $ac_cv_func_shmat = no; then
3803 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3804 echo "configure:3805: checking for shmat in -lipc" >&5
3805 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 ac_save_LIBS="$LIBS"
3811 cat > conftest.$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3814 /* Override any gcc2 internal prototype to avoid an error. */
3815 /* We use char because int might match the return type of a gcc2
3816 builtin and then its argument prototype would still apply. */
3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3825 eval "ac_cv_lib_$ac_lib_var=yes"
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3830 eval "ac_cv_lib_$ac_lib_var=no"
3833 LIBS="$ac_save_LIBS"
3836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3840 echo "$ac_t""no" 1>&6
3846 # Check for libraries that X11R6 Xt/Xaw programs need.
3847 ac_save_LDFLAGS="$LDFLAGS"
3848 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3849 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3850 # check for ICE first), but we must link in the order -lSM -lICE or
3851 # we get undefined symbols. So assume we have SM if we have ICE.
3852 # These have to be linked with before -lX11, unlike the other
3853 # libraries we check for below, so use a different variable.
3854 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3855 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3856 echo "configure:3857: checking for IceConnectionNumber in -lICE" >&5
3857 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 ac_save_LIBS="$LIBS"
3862 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3866 /* Override any gcc2 internal prototype to avoid an error. */
3867 /* We use char because int might match the return type of a gcc2
3868 builtin and then its argument prototype would still apply. */
3869 char IceConnectionNumber();
3872 IceConnectionNumber()
3875 if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3877 eval "ac_cv_lib_$ac_lib_var=yes"
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3882 eval "ac_cv_lib_$ac_lib_var=no"
3885 LIBS="$ac_save_LIBS"
3888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
3890 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3892 echo "$ac_t""no" 1>&6
3895 LDFLAGS="$ac_save_LDFLAGS"
3906 X_TOOLKIT_LIBS="-lXt"
3907 X_BASIC_LIBS="-lXext -lX11"
3909 our_saved_LDFLAGS="$LDFLAGS"
3910 LDFLAGS="$X_LIBS $LDFLAGS"
3911 echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
3912 echo "configure:3913: checking for XtToolkitThreadInitialize in -lXt" >&5
3913 ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
3914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 ac_save_LIBS="$LIBS"
3918 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 /* Override any gcc2 internal prototype to avoid an error. */
3923 /* We use char because int might match the return type of a gcc2
3924 builtin and then its argument prototype would still apply. */
3925 char XtToolkitThreadInitialize();
3928 XtToolkitThreadInitialize()
3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3933 eval "ac_cv_lib_$ac_lib_var=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3938 eval "ac_cv_lib_$ac_lib_var=no"
3941 LIBS="$ac_save_LIBS"
3944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3945 echo "$ac_t""yes" 1>&6
3946 cat >> confdefs.h <<\EOF
3947 #define X_THREAD_SUPPORT 1
3951 echo "$ac_t""no" 1>&6
3954 LDFLAGS="$our_saved_LDFLAGS"
3956 our_saved_LDFLAGS="$LDFLAGS"
3957 LDFLAGS="$X_LIBS $LDFLAGS"
3958 echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
3959 echo "configure:3960: checking for XdbeQueryExtension in -lXext" >&5
3960 ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
3961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3964 ac_save_LIBS="$LIBS"
3965 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* Override any gcc2 internal prototype to avoid an error. */
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3972 char XdbeQueryExtension();
3975 XdbeQueryExtension()
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3980 eval "ac_cv_lib_$ac_lib_var=yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3985 eval "ac_cv_lib_$ac_lib_var=no"
3988 LIBS="$ac_save_LIBS"
3991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3993 cat >> confdefs.h <<\EOF
3994 #define HAVE_DBE_SUPPORT 1
3998 echo "$ac_t""no" 1>&6
4001 echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
4002 echo "configure:4003: checking for XmbufQueryExtension in -lXext" >&5
4003 ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
4004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 ac_save_LIBS="$LIBS"
4008 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4009 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4012 /* Override any gcc2 internal prototype to avoid an error. */
4013 /* We use char because int might match the return type of a gcc2
4014 builtin and then its argument prototype would still apply. */
4015 char XmbufQueryExtension();
4018 XmbufQueryExtension()
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4023 eval "ac_cv_lib_$ac_lib_var=yes"
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 eval "ac_cv_lib_$ac_lib_var=no"
4031 LIBS="$ac_save_LIBS"
4034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4035 echo "$ac_t""yes" 1>&6
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_MBX_SUPPORT 1
4041 echo "$ac_t""no" 1>&6
4044 LDFLAGS="$our_saved_LDFLAGS"
4045 our_saved_CPPFLAGS="$CPPFLAGS"
4046 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4047 for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
4049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4051 echo "configure:4052: checking for $ac_hdr" >&5
4052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6
4055 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4061 { (eval echo configure:4062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4063 if test -z "$ac_err"; then
4065 eval "ac_cv_header_$ac_safe=yes"
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 eval "ac_cv_header_$ac_safe=no"
4075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4076 echo "$ac_t""yes" 1>&6
4077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4078 cat >> confdefs.h <<EOF
4079 #define $ac_tr_hdr 1
4083 echo "$ac_t""no" 1>&6
4087 CPPFLAGS="$our_saved_CPPFLAGS"
4091 if test "x$no_x" = "xyes"; then
4099 my_includes="$my_includes -I../include -I.."
4102 echo $ac_n "checking interactive graphics""... $ac_c" 1>&6
4103 echo "configure:4104: checking interactive graphics" >&5
4104 if test "$no_x" != "yes" ; then
4105 cat >> confdefs.h <<\EOF
4109 cat >> confdefs.h <<\EOF
4122 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
4123 ctlibs_graphics="$ctlibs_base -lctgraphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
4124 echo "$ac_t""yes" 1>&6
4126 echo "$ac_t""no" 1>&6
4129 if test "$png" = "true" ; then
4130 ctlibs_tools="$ctlibs_tools -lpng"
4132 if test "$zlib" = "true" ; then
4133 ctlibs_tools="$ctlibs_tools -lz"
4135 if test "$g2" = "true" ; then
4136 ctlibs_tools="$ctlibs_tools -lg2"
4139 if test "$fftw" = "true" ; then
4140 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
4143 echo $ac_n "checking for main in -ldmallocxx""... $ac_c" 1>&6
4144 echo "configure:4145: checking for main in -ldmallocxx" >&5
4145 ac_lib_var=`echo dmallocxx'_'main | sed 'y%./+-%__p_%'`
4146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 ac_save_LIBS="$LIBS"
4150 LIBS="-ldmallocxx $LIBS"
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4159 if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4161 eval "ac_cv_lib_$ac_lib_var=yes"
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4166 eval "ac_cv_lib_$ac_lib_var=no"
4169 LIBS="$ac_save_LIBS"
4172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4176 echo "$ac_t""no" 1>&6
4180 echo $ac_n "checking for enable-dmalloc""... $ac_c" 1>&6
4181 echo "configure:4182: checking for enable-dmalloc" >&5
4182 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4183 if test "${enable_dmalloc+set}" = set; then
4184 enableval="$enable_dmalloc"
4185 case "${enableval}" in
4186 yes) usedmalloc=true
4187 echo "$ac_t""yes" 1>&6
4189 no) usedmalloc=false
4190 echo "$ac_t""no" 1>&6
4192 *) echo "$ac_t""bad value ${enableval} for --enable-dmalloc" 1>&6
4196 usedmalloc=false; echo "$ac_t""no" 1>&6
4200 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
4201 ctlibs_tools="$ctlibs_tools -ldmallocxx"
4202 cat >> confdefs.h <<\EOF
4203 #define HAVE_DMALLOC 1
4206 echo "$ac_t""Using dmalloc" 1>&6
4209 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
4210 ctlibs="$ctlibs_base -lctsim $ctlibs_graphics -lctsupport $ctlibs_tools"
4213 if test "$wxwin" = "true" ; then
4214 wxcflags=`$wxconfig --cflags`
4215 CFLAGS="$CFLAGS -I../include $wxcflags"
4216 wxlibs=`$wxconfig --libs`
4217 wxlibs="$wxlibs $ctlibs"
4221 HAVE_WXWINDOWS_TRUE=
4222 HAVE_WXWINDOWS_FALSE='#'
4224 HAVE_WXWINDOWS_TRUE='#'
4225 HAVE_WXWINDOWS_FALSE=
4231 if test -n "$lamdir" ; then
4232 lamprograms="pjrec-lam phm2if-lam phm2pj-lam"
4239 cat > confcache <<\EOF
4240 # This file is a shell script that caches the results of configure
4241 # tests run on this system so they can be shared between configure
4242 # scripts and configure runs. It is not useful on other systems.
4243 # If it contains results you don't want to keep, you may remove or edit it.
4245 # By default, configure uses ./config.cache as the cache file,
4246 # creating it if it does not exist already. You can give configure
4247 # the --cache-file=FILE option to use a different cache file; that is
4248 # what configure does when it calls configure scripts in
4249 # subdirectories, so they share the cache.
4250 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4251 # config.status only pays attention to the cache file if you give it the
4252 # --recheck option to rerun configure.
4255 # The following way of writing the cache mishandles newlines in values,
4256 # but we know of no workaround that is simple, portable, and efficient.
4257 # So, don't put newlines in cache variables' values.
4258 # Ultrix sh set writes to stderr and can't be redirected directly,
4259 # and sets the high bit in the cache file unless we assign to the vars.
4261 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4263 # `set' does not quote correctly, so add quotes (double-quote substitution
4264 # turns \\\\ into \\, and sed turns \\ into \).
4266 -e "s/'/'\\\\''/g" \
4267 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4270 # `set' quotes correctly as required by POSIX, so do not add quotes.
4271 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4274 if cmp -s $cache_file confcache; then
4277 if test -w $cache_file; then
4278 echo "updating cache $cache_file"
4279 cat confcache > $cache_file
4281 echo "not updating unwritable cache $cache_file"
4286 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4288 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4289 # Let make expand exec_prefix.
4290 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4292 # Any assignment to VPATH causes Sun make to only execute
4293 # the first set of double-colon rules, so remove it if not needed.
4294 # If there is a colon in the path, we need to keep it.
4295 if test "x$srcdir" = x.; then
4296 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4299 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4301 DEFS=-DHAVE_CONFIG_H
4303 # Without the "./", some shells look in PATH for config.status.
4304 : ${CONFIG_STATUS=./config.status}
4306 echo creating $CONFIG_STATUS
4307 rm -f $CONFIG_STATUS
4308 cat > $CONFIG_STATUS <<EOF
4310 # Generated automatically by configure.
4311 # Run this file to recreate the current configuration.
4312 # This directory was configured as follows,
4313 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4315 # $0 $ac_configure_args
4317 # Compiler output produced by configure, useful for debugging
4318 # configure, is in ./config.log if it exists.
4320 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4323 case "\$ac_option" in
4324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4325 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4326 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4327 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4328 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4330 -help | --help | --hel | --he | --h)
4331 echo "\$ac_cs_usage"; exit 0 ;;
4332 *) echo "\$ac_cs_usage"; exit 1 ;;
4336 ac_given_srcdir=$srcdir
4337 ac_given_INSTALL="$INSTALL"
4339 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
4341 cat >> $CONFIG_STATUS <<EOF
4343 # Protect against being on the right side of a sed subst in config.status.
4344 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4345 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4349 s%@CFLAGS@%$CFLAGS%g
4350 s%@CPPFLAGS@%$CPPFLAGS%g
4351 s%@CXXFLAGS@%$CXXFLAGS%g
4352 s%@FFLAGS@%$FFLAGS%g
4354 s%@LDFLAGS@%$LDFLAGS%g
4356 s%@exec_prefix@%$exec_prefix%g
4357 s%@prefix@%$prefix%g
4358 s%@program_transform_name@%$program_transform_name%g
4359 s%@bindir@%$bindir%g
4360 s%@sbindir@%$sbindir%g
4361 s%@libexecdir@%$libexecdir%g
4362 s%@datadir@%$datadir%g
4363 s%@sysconfdir@%$sysconfdir%g
4364 s%@sharedstatedir@%$sharedstatedir%g
4365 s%@localstatedir@%$localstatedir%g
4366 s%@libdir@%$libdir%g
4367 s%@includedir@%$includedir%g
4368 s%@oldincludedir@%$oldincludedir%g
4369 s%@infodir@%$infodir%g
4370 s%@mandir@%$mandir%g
4371 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4372 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4373 s%@INSTALL_DATA@%$INSTALL_DATA%g
4374 s%@PACKAGE@%$PACKAGE%g
4375 s%@VERSION@%$VERSION%g
4376 s%@ACLOCAL@%$ACLOCAL%g
4377 s%@AUTOCONF@%$AUTOCONF%g
4378 s%@AUTOMAKE@%$AUTOMAKE%g
4379 s%@AUTOHEADER@%$AUTOHEADER%g
4380 s%@MAKEINFO@%$MAKEINFO%g
4381 s%@SET_MAKE@%$SET_MAKE%g
4383 s%@RANLIB@%$RANLIB%g
4386 s%@wxconfig@%$wxconfig%g
4388 s%@host_alias@%$host_alias%g
4389 s%@host_cpu@%$host_cpu%g
4390 s%@host_vendor@%$host_vendor%g
4391 s%@host_os@%$host_os%g
4393 s%@INCLUDED_GETOPT_LONG_TRUE@%$INCLUDED_GETOPT_LONG_TRUE%g
4394 s%@INCLUDED_GETOPT_LONG_FALSE@%$INCLUDED_GETOPT_LONG_FALSE%g
4395 s%@DEBUG_TRUE@%$DEBUG_TRUE%g
4396 s%@DEBUG_FALSE@%$DEBUG_FALSE%g
4397 s%@lamdir@%$lamdir%g
4398 s%@mpienable@%$mpienable%g
4399 s%@cgibindir@%$cgibindir%g
4400 s%@cgibinurl@%$cgibinurl%g
4401 s%@webdatadir@%$webdatadir%g
4402 s%@webdataurl@%$webdataurl%g
4403 s%@htmldir@%$htmldir%g
4404 s%@cgiprograms@%$cgiprograms%g
4405 s%@htmldata@%$htmldata%g
4406 s%@USE_HTML_TRUE@%$USE_HTML_TRUE%g
4407 s%@USE_HTML_FALSE@%$USE_HTML_FALSE%g
4408 s%@webenabled@%$webenabled%g
4409 s%@USE_LAM_TRUE@%$USE_LAM_TRUE%g
4410 s%@USE_LAM_FALSE@%$USE_LAM_FALSE%g
4411 s%@X_CFLAGS@%$X_CFLAGS%g
4412 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4413 s%@X_LIBS@%$X_LIBS%g
4414 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4415 s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4416 s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4417 s%@NO_X_TRUE@%$NO_X_TRUE%g
4418 s%@NO_X_FALSE@%$NO_X_FALSE%g
4419 s%@my_includes@%$my_includes%g
4420 s%@HAVE_SGP_TRUE@%$HAVE_SGP_TRUE%g
4421 s%@HAVE_SGP_FALSE@%$HAVE_SGP_FALSE%g
4422 s%@ctlibs@%$ctlibs%g
4423 s%@HAVE_WXWINDOWS_TRUE@%$HAVE_WXWINDOWS_TRUE%g
4424 s%@HAVE_WXWINDOWS_FALSE@%$HAVE_WXWINDOWS_FALSE%g
4425 s%@wxcflags@%$wxcflags%g
4426 s%@wxlibs@%$wxlibs%g
4427 s%@lamprograms@%$lamprograms%g
4432 cat >> $CONFIG_STATUS <<\EOF
4434 # Split the substitutions into bite-sized pieces for seds with
4435 # small command number limits, like on Digital OSF/1 and HP-UX.
4436 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4437 ac_file=1 # Number of current file.
4438 ac_beg=1 # First line for current file.
4439 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4442 while $ac_more_lines; do
4443 if test $ac_beg -gt 1; then
4444 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4446 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4448 if test ! -s conftest.s$ac_file; then
4450 rm -f conftest.s$ac_file
4452 if test -z "$ac_sed_cmds"; then
4453 ac_sed_cmds="sed -f conftest.s$ac_file"
4455 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4457 ac_file=`expr $ac_file + 1`
4459 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4462 if test -z "$ac_sed_cmds"; then
4467 cat >> $CONFIG_STATUS <<EOF
4469 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"}
4471 cat >> $CONFIG_STATUS <<\EOF
4472 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4473 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4475 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4476 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4477 *) ac_file_in="${ac_file}.in" ;;
4480 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4482 # Remove last slash and all that follows it. Not all systems have dirname.
4483 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4484 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4485 # The file is in a subdirectory.
4486 test ! -d "$ac_dir" && mkdir "$ac_dir"
4487 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4488 # A "../" for each directory in $ac_dir_suffix.
4489 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4491 ac_dir_suffix= ac_dots=
4494 case "$ac_given_srcdir" in
4496 if test -z "$ac_dots"; then top_srcdir=.
4497 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4498 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4500 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4501 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4504 case "$ac_given_INSTALL" in
4505 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4506 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4509 echo creating "$ac_file"
4511 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4513 *Makefile*) ac_comsub="1i\\
4514 # $configure_input" ;;
4518 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4520 s%@configure_input@%$configure_input%g
4521 s%@srcdir@%$srcdir%g
4522 s%@top_srcdir@%$top_srcdir%g
4523 s%@INSTALL@%$INSTALL%g
4524 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4528 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4529 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4531 # ac_d sets the value in "#define NAME VALUE" lines.
4532 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4533 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4536 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4537 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4538 ac_uB='\([ ]\)%\1#\2define\3'
4541 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4542 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4543 ac_eB='$%\1#\2define\3'
4547 if test "${CONFIG_HEADERS+set}" != set; then
4549 cat >> $CONFIG_STATUS <<EOF
4550 CONFIG_HEADERS="config.h"
4552 cat >> $CONFIG_STATUS <<\EOF
4554 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4557 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4558 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4559 *) ac_file_in="${ac_file}.in" ;;
4562 echo creating $ac_file
4564 rm -f conftest.frag conftest.in conftest.out
4565 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4566 cat $ac_file_inputs > conftest.in
4570 # Transform confdefs.h into a sed script conftest.vals that substitutes
4571 # the proper values into config.h.in to produce config.h. And first:
4572 # Protect against being on the right side of a sed subst in config.status.
4573 # Protect against being in an unquoted here document in config.status.
4575 cat > conftest.hdr <<\EOF
4578 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4582 sed -n -f conftest.hdr confdefs.h > conftest.vals
4585 # This sed command replaces #undef with comments. This is necessary, for
4586 # example, in the case of _POSIX_SOURCE, which is predefined and required
4587 # on some systems where configure will not decide to define it.
4588 cat >> conftest.vals <<\EOF
4589 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4592 # Break up conftest.vals because some shells have a limit on
4593 # the size of here documents, and old seds have small limits too.
4598 ac_lines=`grep -c . conftest.vals`
4599 # grep -c gives empty output for an empty file on some AIX systems.
4600 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4601 # Write a limited-size here document to conftest.frag.
4602 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4603 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4605 sed -f conftest.frag conftest.in > conftest.out
4607 mv conftest.out conftest.in
4609 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4611 mv conftest.tail conftest.vals
4615 cat >> $CONFIG_STATUS <<\EOF
4616 rm -f conftest.frag conftest.h
4617 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4618 cat conftest.in >> conftest.h
4620 if cmp -s $ac_file conftest.h 2>/dev/null; then
4621 echo "$ac_file is unchanged"
4624 # Remove last slash and all that follows it. Not all systems have dirname.
4625 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4626 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4627 # The file is in a subdirectory.
4628 test ! -d "$ac_dir" && mkdir "$ac_dir"
4631 mv conftest.h $ac_file
4636 cat >> $CONFIG_STATUS <<EOF
4640 cat >> $CONFIG_STATUS <<\EOF
4641 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4645 chmod +x $CONFIG_STATUS
4646 rm -fr confdefs* $ac_clean_files
4647 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1