3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-debug Turn on debugging"
17 --enable-verbose-warnings
18 Enable verbose compiler warnings."
21 Enable static executables."
23 --with-lam[=PATH] Set path of LAM MPI "
25 --with-ctn[=PATH] Set path of CTN DICOM library "
27 --with-cgibin-dir=PATH Set path of CGI binaries directory "
29 --with-cgibin-url=PATH Set URL path of CGI binaries "
31 --with-webdata-dir=PATH Set path of webdata"
33 --with-webdata-url=PATH Set URL path of webdata"
35 --with-html-dir=PATH Set directory of html files"
37 --with-x use the X Window System"
39 --enable-dmalloc Use dmalloc memory allocation"
41 --enable-efence Use ElectricFence memory allocation"
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file=./config.cache
56 program_transform_name=s,x,x,
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174 Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
217 -host | --host | --hos | --ho)
219 -host=* | --host=* | --hos=* | --ho=*)
222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
234 -libdir | --libdir | --libdi | --libd)
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
261 # Obsolete; use --without-fp.
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 sbindir="$ac_optarg" ;;
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 sharedstatedir="$ac_optarg" ;;
338 -site | --site | --sit)
340 -site=* | --site=* | --sit=*)
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=src/ctsim.cpp
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='\c' ac_t=
553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
554 if test -f $ac_dir/install-sh; then
556 ac_install_sh="$ac_aux_dir/install-sh -c"
558 elif test -f $ac_dir/install.sh; then
560 ac_install_sh="$ac_aux_dir/install.sh -c"
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 # Find a good install program. We prefer a C program (faster),
572 # so one script is as good as another. But avoid the broken or
573 # incompatible versions:
574 # SysV /etc/install, /usr/sbin/install
575 # SunOS /usr/etc/install
578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
581 # ./install, which can be erroneously created by make from ./install.sh.
582 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
583 echo "configure:584: checking for a BSD compatible install" >&5
584 if test -z "$INSTALL"; then
585 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
589 for ac_dir in $PATH; do
590 # Account for people who put trailing slashes in PATH elements.
592 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
594 # OSF1 and SCO ODT 3.0 have their own names for install.
595 # Don't use installbsd from OSF since it installs stuff as root
597 for ac_prog in ginstall scoinst install; do
598 if test -f $ac_dir/$ac_prog; then
599 if test $ac_prog = install &&
600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
601 # AIX install. It has an incompatible calling convention.
604 ac_cv_path_install="$ac_dir/$ac_prog -c"
615 if test "${ac_cv_path_install+set}" = set; then
616 INSTALL="$ac_cv_path_install"
618 # As a last resort, use the slow shell script. We don't cache a
619 # path for INSTALL within a source directory, because that will
620 # break other packages using the cache if that directory is
621 # removed, or if the path is relative.
622 INSTALL="$ac_install_sh"
625 echo "$ac_t""$INSTALL" 1>&6
627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
628 # It thinks the first close brace ends the variable substitution.
629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
635 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
636 echo "configure:637: checking whether build environment is sane" >&5
639 echo timestamp > conftestfile
640 # Do `set' in a subshell so we don't clobber the current shell's
641 # arguments. Must try -L first in case configure is actually a
642 # symlink; some systems play weird games with the mod time of symlinks
643 # (eg FreeBSD returns the mod time of the symlink's containing
646 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
647 if test "$*" = "X"; then
649 set X `ls -t $srcdir/configure conftestfile`
651 if test "$*" != "X $srcdir/configure conftestfile" \
652 && test "$*" != "X conftestfile $srcdir/configure"; then
654 # If neither matched, then we have a broken ls. This can happen
655 # if, for instance, CONFIG_SHELL is bash and it inherits a
656 # broken ls alias from the environment. This has actually
657 # happened. Such a system could not be considered "sane".
658 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
659 alias in your environment" 1>&2; exit 1; }
662 test "$2" = conftestfile
668 { echo "configure: error: newly created file is older than distributed files!
669 Check your system clock" 1>&2; exit 1; }
672 echo "$ac_t""yes" 1>&6
673 if test "$program_transform_name" = s,x,x,; then
674 program_transform_name=
676 # Double any \ or $. echo might interpret backslashes.
677 cat <<\EOF_SED > conftestsed
678 s,\\,\\\\,g; s,\$,$$,g
680 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
683 test "$program_prefix" != NONE &&
684 program_transform_name="s,^,${program_prefix},; $program_transform_name"
685 # Use a double $ so make ignores it.
686 test "$program_suffix" != NONE &&
687 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
689 # sed with no file args requires a program.
690 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
692 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
694 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
695 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 cat > conftestmake <<\EOF
700 @echo 'ac_maketemp="${MAKE}"'
702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
703 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
704 if test -n "$ac_maketemp"; then
705 eval ac_cv_prog_make_${ac_make}_set=yes
707 eval ac_cv_prog_make_${ac_make}_set=no
711 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
712 echo "$ac_t""yes" 1>&6
715 echo "$ac_t""no" 1>&6
716 SET_MAKE="MAKE=${MAKE-make}"
724 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
725 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
727 cat >> confdefs.h <<EOF
728 #define PACKAGE "$PACKAGE"
731 cat >> confdefs.h <<EOF
732 #define VERSION "$VERSION"
737 missing_dir=`cd $ac_aux_dir && pwd`
738 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
739 echo "configure:740: checking for working aclocal" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
745 echo "$ac_t""found" 1>&6
747 ACLOCAL="$missing_dir/missing aclocal"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoconf" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
758 echo "$ac_t""found" 1>&6
760 AUTOCONF="$missing_dir/missing autoconf"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working automake""... $ac_c" 1>&6
765 echo "configure:766: checking for working automake" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (automake --version) < /dev/null > /dev/null 2>&1; then
771 echo "$ac_t""found" 1>&6
773 AUTOMAKE="$missing_dir/missing automake"
774 echo "$ac_t""missing" 1>&6
777 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
778 echo "configure:779: checking for working autoheader" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf. Sigh.
782 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
783 AUTOHEADER=autoheader
784 echo "$ac_t""found" 1>&6
786 AUTOHEADER="$missing_dir/missing autoheader"
787 echo "$ac_t""missing" 1>&6
790 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
791 echo "configure:792: checking for working makeinfo" >&5
792 # Run test in a subshell; some versions of sh will print an error if
793 # an executable is not found, even if stderr is redirected.
794 # Redirect stdin to placate older versions of autoconf. Sigh.
795 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
797 echo "$ac_t""found" 1>&6
799 MAKEINFO="$missing_dir/missing makeinfo"
800 echo "$ac_t""missing" 1>&6
808 for ac_prog in gawk mawk nawk awk
810 # Extract the first word of "$ac_prog", so it can be a program name with args.
811 set dummy $ac_prog; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$AWK"; then
818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
825 ac_cv_prog_AWK="$ac_prog"
832 AWK="$ac_cv_prog_AWK"
833 if test -n "$AWK"; then
834 echo "$ac_t""$AWK" 1>&6
836 echo "$ac_t""no" 1>&6
839 test -n "$AWK" && break
842 # Find a good install program. We prefer a C program (faster),
843 # so one script is as good as another. But avoid the broken or
844 # incompatible versions:
845 # SysV /etc/install, /usr/sbin/install
846 # SunOS /usr/etc/install
849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
852 # ./install, which can be erroneously created by make from ./install.sh.
853 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
854 echo "configure:855: checking for a BSD compatible install" >&5
855 if test -z "$INSTALL"; then
856 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
860 for ac_dir in $PATH; do
861 # Account for people who put trailing slashes in PATH elements.
863 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
865 # OSF1 and SCO ODT 3.0 have their own names for install.
866 # Don't use installbsd from OSF since it installs stuff as root
868 for ac_prog in ginstall scoinst install; do
869 if test -f $ac_dir/$ac_prog; then
870 if test $ac_prog = install &&
871 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
872 # AIX install. It has an incompatible calling convention.
875 ac_cv_path_install="$ac_dir/$ac_prog -c"
886 if test "${ac_cv_path_install+set}" = set; then
887 INSTALL="$ac_cv_path_install"
889 # As a last resort, use the slow shell script. We don't cache a
890 # path for INSTALL within a source directory, because that will
891 # break other packages using the cache if that directory is
892 # removed, or if the path is relative.
893 INSTALL="$ac_install_sh"
896 echo "$ac_t""$INSTALL" 1>&6
898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
899 # It thinks the first close brace ends the variable substitution.
900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
906 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
907 echo "configure:908: checking whether ${MAKE-make} sets \${MAKE}" >&5
908 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
909 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 cat > conftestmake <<\EOF
914 @echo 'ac_maketemp="${MAKE}"'
916 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
917 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
918 if test -n "$ac_maketemp"; then
919 eval ac_cv_prog_make_${ac_make}_set=yes
921 eval ac_cv_prog_make_${ac_make}_set=no
925 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
926 echo "$ac_t""yes" 1>&6
929 echo "$ac_t""no" 1>&6
930 SET_MAKE="MAKE=${MAKE-make}"
933 # Extract the first word of "ranlib", so it can be a program name with args.
934 set dummy ranlib; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 if test -n "$RANLIB"; then
941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
945 for ac_dir in $ac_dummy; do
946 test -z "$ac_dir" && ac_dir=.
947 if test -f $ac_dir/$ac_word; then
948 ac_cv_prog_RANLIB="ranlib"
953 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
956 RANLIB="$ac_cv_prog_RANLIB"
957 if test -n "$RANLIB"; then
958 echo "$ac_t""$RANLIB" 1>&6
960 echo "$ac_t""no" 1>&6
964 CFLAGS="$CFLAGS -I/usr/local/include"
965 LDFLAGS="$LDFLAGS -L/usr/local/lib"
966 # Extract the first word of "gcc", so it can be a program name with args.
967 set dummy gcc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 if test -n "$CC"; then
974 ac_cv_prog_CC="$CC" # Let the user override the test.
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
978 for ac_dir in $ac_dummy; do
979 test -z "$ac_dir" && ac_dir=.
980 if test -f $ac_dir/$ac_word; then
989 if test -n "$CC"; then
990 echo "$ac_t""$CC" 1>&6
992 echo "$ac_t""no" 1>&6
995 if test -z "$CC"; then
996 # Extract the first word of "cc", so it can be a program name with args.
997 set dummy cc; ac_word=$2
998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
999 echo "configure:1000: checking for $ac_word" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 if test -n "$CC"; then
1004 ac_cv_prog_CC="$CC" # Let the user override the test.
1006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1009 for ac_dir in $ac_dummy; do
1010 test -z "$ac_dir" && ac_dir=.
1011 if test -f $ac_dir/$ac_word; then
1012 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1013 ac_prog_rejected=yes
1021 if test $ac_prog_rejected = yes; then
1022 # We found a bogon in the path, so make sure we never use it.
1023 set dummy $ac_cv_prog_CC
1025 if test $# -gt 0; then
1026 # We chose a different compiler from the bogus one.
1027 # However, it has the same basename, so the bogon will be chosen
1028 # first if we set CC to just the basename; use the full file name.
1030 set dummy "$ac_dir/$ac_word" "$@"
1038 if test -n "$CC"; then
1039 echo "$ac_t""$CC" 1>&6
1041 echo "$ac_t""no" 1>&6
1044 if test -z "$CC"; then
1045 case "`uname -s`" in
1047 # Extract the first word of "cl", so it can be a program name with args.
1048 set dummy cl; ac_word=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1059 for ac_dir in $ac_dummy; do
1060 test -z "$ac_dir" && ac_dir=.
1061 if test -f $ac_dir/$ac_word; then
1070 if test -n "$CC"; then
1071 echo "$ac_t""$CC" 1>&6
1073 echo "$ac_t""no" 1>&6
1078 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1081 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1086 ac_cpp='$CPP $CPPFLAGS'
1087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1089 cross_compiling=$ac_cv_prog_cc_cross
1091 cat > conftest.$ac_ext << EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1098 if { (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1099 ac_cv_prog_cc_works=yes
1100 # If we can't run a trivial program, we are probably using a cross compiler.
1101 if (./conftest; exit) 2>/dev/null; then
1102 ac_cv_prog_cc_cross=no
1104 ac_cv_prog_cc_cross=yes
1107 echo "configure: failed program was:" >&5
1108 cat conftest.$ac_ext >&5
1109 ac_cv_prog_cc_works=no
1113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1114 ac_cpp='$CPP $CPPFLAGS'
1115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1117 cross_compiling=$ac_cv_prog_cc_cross
1119 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1120 if test $ac_cv_prog_cc_works = no; then
1121 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1123 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1124 echo "configure:1125: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1125 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1126 cross_compiling=$ac_cv_prog_cc_cross
1128 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1129 echo "configure:1130: checking whether we are using GNU C" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 cat > conftest.c <<EOF
1138 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1145 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1147 if test $ac_cv_prog_gcc = yes; then
1153 ac_test_CFLAGS="${CFLAGS+set}"
1154 ac_save_CFLAGS="$CFLAGS"
1156 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1157 echo "configure:1158: checking whether ${CC-cc} accepts -g" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 echo 'void f(){}' > conftest.c
1162 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1171 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1172 if test "$ac_test_CFLAGS" = set; then
1173 CFLAGS="$ac_save_CFLAGS"
1174 elif test $ac_cv_prog_cc_g = yes; then
1175 if test "$GCC" = yes; then
1181 if test "$GCC" = yes; then
1188 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1190 # Extract the first word of "$ac_prog", so it can be a program name with args.
1191 set dummy $ac_prog; ac_word=$2
1192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1193 echo "configure:1194: checking for $ac_word" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 if test -n "$CXX"; then
1198 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1202 for ac_dir in $ac_dummy; do
1203 test -z "$ac_dir" && ac_dir=.
1204 if test -f $ac_dir/$ac_word; then
1205 ac_cv_prog_CXX="$ac_prog"
1212 CXX="$ac_cv_prog_CXX"
1213 if test -n "$CXX"; then
1214 echo "$ac_t""$CXX" 1>&6
1216 echo "$ac_t""no" 1>&6
1219 test -n "$CXX" && break
1221 test -n "$CXX" || CXX="gcc"
1224 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1229 ac_cpp='$CXXCPP $CPPFLAGS'
1230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1232 cross_compiling=$ac_cv_prog_cxx_cross
1234 cat > conftest.$ac_ext << EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1239 int main(){return(0);}
1241 if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1242 ac_cv_prog_cxx_works=yes
1243 # If we can't run a trivial program, we are probably using a cross compiler.
1244 if (./conftest; exit) 2>/dev/null; then
1245 ac_cv_prog_cxx_cross=no
1247 ac_cv_prog_cxx_cross=yes
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1252 ac_cv_prog_cxx_works=no
1256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1257 ac_cpp='$CPP $CPPFLAGS'
1258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1260 cross_compiling=$ac_cv_prog_cc_cross
1262 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1263 if test $ac_cv_prog_cxx_works = no; then
1264 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1266 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1267 echo "configure:1268: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1268 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1269 cross_compiling=$ac_cv_prog_cxx_cross
1271 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether we are using GNU C++" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 cat > conftest.C <<EOF
1281 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1288 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1290 if test $ac_cv_prog_gxx = yes; then
1296 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1297 ac_save_CXXFLAGS="$CXXFLAGS"
1299 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether ${CXX-g++} accepts -g" >&5
1301 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 echo 'void f(){}' > conftest.cc
1305 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1306 ac_cv_prog_cxx_g=yes
1314 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1315 if test "$ac_test_CXXFLAGS" = set; then
1316 CXXFLAGS="$ac_save_CXXFLAGS"
1317 elif test $ac_cv_prog_cxx_g = yes; then
1318 if test "$GXX" = yes; then
1324 if test "$GXX" = yes; then
1331 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether byte ordering is bigendian" >&5
1333 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 ac_cv_c_bigendian=unknown
1337 # See if sys/param.h defines the BYTE_ORDER macro.
1338 cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1341 #include <sys/types.h>
1342 #include <sys/param.h>
1345 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1350 if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1352 # It does; now see whether it defined to BIG_ENDIAN or not.
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 #include <sys/types.h>
1357 #include <sys/param.h>
1360 #if BYTE_ORDER != BIG_ENDIAN
1365 if { (eval echo configure:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1367 ac_cv_c_bigendian=yes
1369 echo "configure: failed program was:" >&5
1370 cat conftest.$ac_ext >&5
1372 ac_cv_c_bigendian=no
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1380 if test $ac_cv_c_bigendian = unknown; then
1381 if test "$cross_compiling" = yes; then
1382 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1388 /* Are we little or big endian? From Harbison&Steele. */
1392 char c[sizeof (long)];
1395 exit (u.c[sizeof (long) - 1] == 1);
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1400 ac_cv_c_bigendian=no
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 ac_cv_c_bigendian=yes
1413 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1414 if test $ac_cv_c_bigendian = yes; then
1415 cat >> confdefs.h <<\EOF
1416 #define WORDS_BIGENDIAN 1
1422 # Extract the first word of "wx-config", so it can be a program name with args.
1423 set dummy wx-config; ac_word=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_path_wxconfig'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1431 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
1434 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a dos path.
1437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1439 for ac_dir in $ac_dummy; do
1440 test -z "$ac_dir" && ac_dir=.
1441 if test -f $ac_dir/$ac_word; then
1442 ac_cv_path_wxconfig="$ac_dir/$ac_word"
1450 wxconfig="$ac_cv_path_wxconfig"
1451 if test -n "$wxconfig"; then
1452 echo "$ac_t""$wxconfig" 1>&6
1454 echo "$ac_t""no" 1>&6
1460 # Make sure we can run config.sub.
1461 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1462 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1465 echo $ac_n "checking host system type""... $ac_c" 1>&6
1466 echo "configure:1467: checking host system type" >&5
1469 case "$host_alias" in
1473 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1474 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1476 *) host_alias=$nonopt ;;
1480 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1481 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484 echo "$ac_t""$host" 1>&6
1486 echo $ac_n "checking for inline""... $ac_c" 1>&6
1487 echo "configure:1488: checking for inline" >&5
1488 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1492 for ac_kw in inline __inline__ __inline; do
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1501 if { (eval echo configure:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1503 ac_cv_c_inline=$ac_kw; break
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1513 echo "$ac_t""$ac_cv_c_inline" 1>&6
1514 case "$ac_cv_c_inline" in
1516 no) cat >> confdefs.h <<\EOF
1520 *) cat >> confdefs.h <<EOF
1521 #define inline $ac_cv_c_inline
1526 echo $ac_n "checking size of short""... $ac_c" 1>&6
1527 echo "configure:1528: checking size of short" >&5
1528 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 if test "$cross_compiling" = yes; then
1532 ac_cv_sizeof_short=2
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1540 FILE *f=fopen("conftestval", "w");
1542 fprintf(f, "%d\n", sizeof(short));
1546 if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1548 ac_cv_sizeof_short=`cat conftestval`
1550 echo "configure: failed program was:" >&5
1551 cat conftest.$ac_ext >&5
1553 ac_cv_sizeof_short=0
1559 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1560 cat >> confdefs.h <<EOF
1561 #define SIZEOF_SHORT $ac_cv_sizeof_short
1565 echo $ac_n "checking size of int""... $ac_c" 1>&6
1566 echo "configure:1567: checking size of int" >&5
1567 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 if test "$cross_compiling" = yes; then
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1579 FILE *f=fopen("conftestval", "w");
1581 fprintf(f, "%d\n", sizeof(int));
1585 if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1587 ac_cv_sizeof_int=`cat conftestval`
1589 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1598 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1599 cat >> confdefs.h <<EOF
1600 #define SIZEOF_INT $ac_cv_sizeof_int
1604 echo $ac_n "checking size of long""... $ac_c" 1>&6
1605 echo "configure:1606: checking size of long" >&5
1606 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 if test "$cross_compiling" = yes; then
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1618 FILE *f=fopen("conftestval", "w");
1620 fprintf(f, "%d\n", sizeof(long));
1624 if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1626 ac_cv_sizeof_long=`cat conftestval`
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1637 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1638 cat >> confdefs.h <<EOF
1639 #define SIZEOF_LONG $ac_cv_sizeof_long
1643 echo $ac_n "checking size of float""... $ac_c" 1>&6
1644 echo "configure:1645: checking size of float" >&5
1645 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1648 if test "$cross_compiling" = yes; then
1649 ac_cv_sizeof_float=4
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1657 FILE *f=fopen("conftestval", "w");
1659 fprintf(f, "%d\n", sizeof(float));
1663 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1665 ac_cv_sizeof_float=`cat conftestval`
1667 echo "configure: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1670 ac_cv_sizeof_float=0
1676 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1677 cat >> confdefs.h <<EOF
1678 #define SIZEOF_FLOAT $ac_cv_sizeof_float
1682 echo $ac_n "checking size of double""... $ac_c" 1>&6
1683 echo "configure:1684: checking size of double" >&5
1684 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 if test "$cross_compiling" = yes; then
1688 ac_cv_sizeof_double=8
1690 cat > conftest.$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1696 FILE *f=fopen("conftestval", "w");
1698 fprintf(f, "%d\n", sizeof(double));
1702 if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1704 ac_cv_sizeof_double=`cat conftestval`
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1709 ac_cv_sizeof_double=0
1715 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1716 cat >> confdefs.h <<EOF
1717 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1722 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1723 echo "configure:1724: checking for deflate in -lz" >&5
1724 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 ac_save_LIBS="$LIBS"
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 /* Override any gcc2 internal prototype to avoid an error. */
1734 /* We use char because int might match the return type of a gcc2
1735 builtin and then its argument prototype would still apply. */
1742 if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1744 eval "ac_cv_lib_$ac_lib_var=yes"
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1749 eval "ac_cv_lib_$ac_lib_var=no"
1752 LIBS="$ac_save_LIBS"
1755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1756 echo "$ac_t""yes" 1>&6
1759 echo "$ac_t""no" 1>&6
1760 zlib="false" ; echo "configure: warning: zlib missing. Will need zlib for PNG support" 1>&2
1763 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1764 echo "configure:1765: checking for sin in -lm" >&5
1765 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 ac_save_LIBS="$LIBS"
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1774 /* Override any gcc2 internal prototype to avoid an error. */
1775 /* We use char because int might match the return type of a gcc2
1776 builtin and then its argument prototype would still apply. */
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1785 eval "ac_cv_lib_$ac_lib_var=yes"
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1790 eval "ac_cv_lib_$ac_lib_var=no"
1793 LIBS="$ac_save_LIBS"
1796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1797 echo "$ac_t""yes" 1>&6
1798 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1800 cat >> confdefs.h <<EOF
1801 #define $ac_tr_lib 1
1807 echo "$ac_t""no" 1>&6
1810 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1811 echo "configure:1812: checking for main in -lcurses" >&5
1812 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 ac_save_LIBS="$LIBS"
1817 LIBS="-lcurses $LIBS"
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1826 if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1828 eval "ac_cv_lib_$ac_lib_var=yes"
1830 echo "configure: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1833 eval "ac_cv_lib_$ac_lib_var=no"
1836 LIBS="$ac_save_LIBS"
1839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1843 echo "$ac_t""no" 1>&6
1847 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1848 echo "configure:1849: checking for main in -lncurses" >&5
1849 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 ac_save_LIBS="$LIBS"
1854 LIBS="-lncurses $LIBS"
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1863 if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1865 eval "ac_cv_lib_$ac_lib_var=yes"
1867 echo "configure: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1870 eval "ac_cv_lib_$ac_lib_var=no"
1873 LIBS="$ac_save_LIBS"
1876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1877 echo "$ac_t""yes" 1>&6
1880 echo "$ac_t""no" 1>&6
1884 echo $ac_n "checking for main in -lg2""... $ac_c" 1>&6
1885 echo "configure:1886: checking for main in -lg2" >&5
1886 ac_lib_var=`echo g2'_'main | sed 'y%./+-%__p_%'`
1887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 ac_save_LIBS="$LIBS"
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902 eval "ac_cv_lib_$ac_lib_var=yes"
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 eval "ac_cv_lib_$ac_lib_var=no"
1910 LIBS="$ac_save_LIBS"
1913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1914 echo "$ac_t""yes" 1>&6
1917 echo "$ac_t""no" 1>&6
1921 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1922 echo "configure:1923: checking for main in -lreadline" >&5
1923 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 ac_save_LIBS="$LIBS"
1928 LIBS="-lreadline $LIBS"
1929 cat > conftest.$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1937 if { (eval echo configure:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1939 eval "ac_cv_lib_$ac_lib_var=yes"
1941 echo "configure: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1944 eval "ac_cv_lib_$ac_lib_var=no"
1947 LIBS="$ac_save_LIBS"
1950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1951 echo "$ac_t""yes" 1>&6
1952 readline=true; cat >> confdefs.h <<\EOF
1953 #define HAVE_READLINE 1
1957 echo "$ac_t""no" 1>&6
1961 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1962 echo "configure:1963: checking for main in -lncurses" >&5
1963 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 ac_save_LIBS="$LIBS"
1968 LIBS="-lncurses $LIBS"
1969 cat > conftest.$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1977 if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 eval "ac_cv_lib_$ac_lib_var=yes"
1981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1984 eval "ac_cv_lib_$ac_lib_var=no"
1987 LIBS="$ac_save_LIBS"
1990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1991 echo "$ac_t""yes" 1>&6
1992 ncurses=true; cat >> confdefs.h <<\EOF
1993 #define HAVE_NCURSES 1
1997 echo "$ac_t""no" 1>&6
2001 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2002 echo "configure:2003: checking for main in -lcurses" >&5
2003 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 ac_save_LIBS="$LIBS"
2008 LIBS="-lcurses $LIBS"
2009 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2019 eval "ac_cv_lib_$ac_lib_var=yes"
2021 echo "configure: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2024 eval "ac_cv_lib_$ac_lib_var=no"
2027 LIBS="$ac_save_LIBS"
2030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 curses=true; cat >> confdefs.h <<\EOF
2033 #define HAVE_CURSES 1
2037 echo "$ac_t""no" 1>&6
2042 echo $ac_n "checking for main in -lwx_gtk""... $ac_c" 1>&6
2043 echo "configure:2044: checking for main in -lwx_gtk" >&5
2044 ac_lib_var=`echo wx_gtk'_'main | sed 'y%./+-%__p_%'`
2045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 ac_save_LIBS="$LIBS"
2049 LIBS="-lwx_gtk $LIBS"
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2058 if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2060 eval "ac_cv_lib_$ac_lib_var=yes"
2062 echo "configure: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2065 eval "ac_cv_lib_$ac_lib_var=no"
2068 LIBS="$ac_save_LIBS"
2071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2072 echo "$ac_t""yes" 1>&6
2073 wxwin=true; wx_gtk=true; cat >> confdefs.h <<\EOF
2074 #define HAVE_WXWINDOWS 1
2078 echo "$ac_t""no" 1>&6
2081 echo $ac_n "checking for main in -lwx""... $ac_c" 1>&6
2082 echo "configure:2083: checking for main in -lwx" >&5
2083 ac_lib_var=`echo wx'_'main | sed 'y%./+-%__p_%'`
2084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 ac_save_LIBS="$LIBS"
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2097 if { (eval echo configure:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2099 eval "ac_cv_lib_$ac_lib_var=yes"
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 eval "ac_cv_lib_$ac_lib_var=no"
2107 LIBS="$ac_save_LIBS"
2110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2111 echo "$ac_t""yes" 1>&6
2112 wxwin=true; wx_msw=true; cat >> confdefs.h <<\EOF
2113 #define HAVE_WXWINDOWS 1
2117 echo "$ac_t""no" 1>&6
2120 echo $ac_n "checking for main in -lhdf5""... $ac_c" 1>&6
2121 echo "configure:2122: checking for main in -lhdf5" >&5
2122 ac_lib_var=`echo hdf5'_'main | sed 'y%./+-%__p_%'`
2123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 ac_save_LIBS="$LIBS"
2127 LIBS="-lhdf5 -lz $LIBS"
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2136 if { (eval echo configure:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2138 eval "ac_cv_lib_$ac_lib_var=yes"
2140 echo "configure: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2143 eval "ac_cv_lib_$ac_lib_var=no"
2146 LIBS="$ac_save_LIBS"
2149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2150 echo "$ac_t""yes" 1>&6
2153 echo "$ac_t""no" 1>&6
2157 echo $ac_n "checking for fftw_one in -lfftw""... $ac_c" 1>&6
2158 echo "configure:2159: checking for fftw_one in -lfftw" >&5
2159 ac_lib_var=`echo fftw'_'fftw_one | sed 'y%./+-%__p_%'`
2160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 ac_save_LIBS="$LIBS"
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2168 /* Override any gcc2 internal prototype to avoid an error. */
2169 /* We use char because int might match the return type of a gcc2
2170 builtin and then its argument prototype would still apply. */
2177 if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2179 eval "ac_cv_lib_$ac_lib_var=yes"
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2184 eval "ac_cv_lib_$ac_lib_var=no"
2187 LIBS="$ac_save_LIBS"
2190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2191 echo "$ac_t""yes" 1>&6
2192 fftw=true; cat >> confdefs.h <<\EOF
2197 echo "$ac_t""no" 1>&6
2201 echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
2202 echo "configure:2203: checking for main in -lGL" >&5
2203 ac_lib_var=`echo GL'_'main | sed 'y%./+-%__p_%'`
2204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 ac_save_LIBS="$LIBS"
2208 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2217 if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2219 eval "ac_cv_lib_$ac_lib_var=yes"
2221 echo "configure: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2224 eval "ac_cv_lib_$ac_lib_var=no"
2227 LIBS="$ac_save_LIBS"
2230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2234 echo "$ac_t""no" 1>&6
2238 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
2239 echo "configure:2240: checking for main in -lpthread" >&5
2240 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
2241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 ac_save_LIBS="$LIBS"
2245 LIBS="-lpthread $LIBS"
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2254 if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2256 eval "ac_cv_lib_$ac_lib_var=yes"
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2261 eval "ac_cv_lib_$ac_lib_var=no"
2264 LIBS="$ac_save_LIBS"
2267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2268 echo "$ac_t""yes" 1>&6
2271 echo "$ac_t""no" 1>&6
2276 if test "$zlib" = "true" ; then
2277 echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
2278 echo "configure:2279: checking for main in -lpng" >&5
2279 ac_lib_var=`echo png'_'main | sed 'y%./+-%__p_%'`
2280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 ac_save_LIBS="$LIBS"
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2293 if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2295 eval "ac_cv_lib_$ac_lib_var=yes"
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 eval "ac_cv_lib_$ac_lib_var=no"
2303 LIBS="$ac_save_LIBS"
2306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2307 echo "$ac_t""yes" 1>&6
2308 png=true ; cat >> confdefs.h <<\EOF
2313 echo "$ac_t""no" 1>&6
2319 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2320 echo "configure:2321: checking how to run the C preprocessor" >&5
2321 # On Suns, sometimes $CPP names a directory.
2322 if test -n "$CPP" && test -d "$CPP"; then
2325 if test -z "$CPP"; then
2326 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 # This must be in double quotes, not single quotes, because CPP may get
2330 # substituted into the Makefile and "${CC-cc}" will confuse make.
2332 # On the NeXT, cc -E runs the code through the compiler's parser,
2333 # not just through cpp.
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2341 { (eval echo configure:2342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2343 if test -z "$ac_err"; then
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 CPP="${CC-cc} -E -traditional-cpp"
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2358 { (eval echo configure:2359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2360 if test -z "$ac_err"; then
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2367 CPP="${CC-cc} -nologo -E"
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2375 { (eval echo configure:2376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2377 if test -z "$ac_err"; then
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2391 ac_cv_prog_CPP="$CPP"
2393 CPP="$ac_cv_prog_CPP"
2395 ac_cv_prog_CPP="$CPP"
2397 echo "$ac_t""$CPP" 1>&6
2399 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2400 echo "configure:2401: checking for ANSI C header files" >&5
2401 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2413 { (eval echo configure:2414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2415 if test -z "$ac_err"; then
2417 ac_cv_header_stdc=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 ac_cv_header_stdc=no
2427 if test $ac_cv_header_stdc = yes; then
2428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2435 egrep "memchr" >/dev/null 2>&1; then
2439 ac_cv_header_stdc=no
2445 if test $ac_cv_header_stdc = yes; then
2446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2453 egrep "free" >/dev/null 2>&1; then
2457 ac_cv_header_stdc=no
2463 if test $ac_cv_header_stdc = yes; then
2464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2465 if test "$cross_compiling" = yes; then
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2472 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2473 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2475 int main () { int i; for (i = 0; i < 256; i++)
2476 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2480 if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 ac_cv_header_stdc=no
2495 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2496 if test $ac_cv_header_stdc = yes; then
2497 cat >> confdefs.h <<\EOF
2498 #define STDC_HEADERS 1
2503 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 sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
2505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2507 echo "configure:2508: checking for $ac_hdr" >&5
2508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2517 { (eval echo configure:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2519 if test -z "$ac_err"; then
2521 eval "ac_cv_header_$ac_safe=yes"
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2527 eval "ac_cv_header_$ac_safe=no"
2531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2532 echo "$ac_t""yes" 1>&6
2533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2534 cat >> confdefs.h <<EOF
2535 #define $ac_tr_hdr 1
2539 echo "$ac_t""no" 1>&6
2544 echo $ac_n "checking for working const""... $ac_c" 1>&6
2545 echo "configure:2546: checking for working const" >&5
2546 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2549 cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2555 /* Ultrix mips cc rejects this. */
2556 typedef int charset[2]; const charset x;
2557 /* SunOS 4.1.1 cc rejects this. */
2558 char const *const *ccp;
2560 /* NEC SVR4.0.2 mips cc rejects this. */
2561 struct point {int x, y;};
2562 static struct point const zero = {0,0};
2563 /* AIX XL C 1.02.0.0 rejects this.
2564 It does not let you subtract one const X* pointer from another in an arm
2565 of an if-expression whose if-part is not a constant expression */
2566 const char *g = "string";
2567 ccp = &g + (g ? g-g : 0);
2568 /* HPUX 7.0 cc rejects these. */
2571 ccp = (char const *const *) p;
2572 { /* SCO 3.2v4 cc rejects this. */
2574 char const *s = 0 ? (char *) 0 : (char const *) 0;
2578 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2580 const int *foo = &x[0];
2583 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2584 typedef const int *iptr;
2588 { /* AIX XL C 1.02.0.0 rejects this saying
2589 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2590 struct s { int j; const int *ap[3]; };
2591 struct s *b; b->j = 5;
2593 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2599 if { (eval echo configure:2600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2611 echo "$ac_t""$ac_cv_c_const" 1>&6
2612 if test $ac_cv_c_const = no; then
2613 cat >> confdefs.h <<\EOF
2619 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2620 echo "configure:2621: checking for off_t" >&5
2621 if eval "test \"`echo '$''{'ac_cv_type_off_t'+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 #include <sys/types.h>
2633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2634 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2636 ac_cv_type_off_t=yes
2644 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2645 if test $ac_cv_type_off_t = no; then
2646 cat >> confdefs.h <<\EOF
2652 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2653 echo "configure:2654: checking for size_t" >&5
2654 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <sys/types.h>
2666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2667 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2669 ac_cv_type_size_t=yes
2672 ac_cv_type_size_t=no
2677 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2678 if test $ac_cv_type_size_t = no; then
2679 cat >> confdefs.h <<\EOF
2680 #define size_t unsigned
2685 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2686 echo "configure:2687: checking whether struct tm is in sys/time.h or time.h" >&5
2687 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 cat > conftest.$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2693 #include <sys/types.h>
2696 struct tm *tp; tp->tm_sec;
2699 if { (eval echo configure:2700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2701 ac_cv_struct_tm=time.h
2703 echo "configure: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2706 ac_cv_struct_tm=sys/time.h
2711 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2712 if test $ac_cv_struct_tm = sys/time.h; then
2713 cat >> confdefs.h <<\EOF
2714 #define TM_IN_SYS_TIME 1
2720 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2721 echo "configure:2722: checking for vprintf" >&5
2722 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+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 vprintf(); 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_vprintf) || defined (__stub___vprintf)
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_vprintf=yes"
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2756 eval "ac_cv_func_vprintf=no"
2761 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 cat >> confdefs.h <<\EOF
2764 #define HAVE_VPRINTF 1
2768 echo "$ac_t""no" 1>&6
2771 if test "$ac_cv_func_vprintf" != yes; then
2772 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2773 echo "configure:2774: checking for _doprnt" >&5
2774 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char _doprnt(); below. */
2783 /* Override any gcc2 internal prototype to avoid an error. */
2784 /* We use char because int might match the return type of a gcc2
2785 builtin and then its argument prototype would still apply. */
2790 /* The GNU C library defines this for functions which it implements
2791 to always fail with ENOSYS. Some functions are actually named
2792 something starting with __ and the normal name is an alias. */
2793 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2801 if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2803 eval "ac_cv_func__doprnt=yes"
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2808 eval "ac_cv_func__doprnt=no"
2813 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2814 echo "$ac_t""yes" 1>&6
2815 cat >> confdefs.h <<\EOF
2816 #define HAVE_DOPRNT 1
2820 echo "$ac_t""no" 1>&6
2825 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
2827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_func" >&5
2829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 /* System header to define __stub macros and hopefully few prototypes,
2836 which can conflict with char $ac_func(); below. */
2838 /* Override any gcc2 internal prototype to avoid an error. */
2839 /* We use char because int might match the return type of a gcc2
2840 builtin and then its argument prototype would still apply. */
2845 /* The GNU C library defines this for functions which it implements
2846 to always fail with ENOSYS. Some functions are actually named
2847 something starting with __ and the normal name is an alias. */
2848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2858 eval "ac_cv_func_$ac_func=yes"
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2863 eval "ac_cv_func_$ac_func=no"
2868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2869 echo "$ac_t""yes" 1>&6
2870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2871 cat >> confdefs.h <<EOF
2872 #define $ac_tr_func 1
2876 echo "$ac_t""no" 1>&6
2880 echo $ac_n "checking for basename""... $ac_c" 1>&6
2881 echo "configure:2882: checking for basename" >&5
2882 if eval "test \"`echo '$''{'ac_cv_func_basename'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2888 /* System header to define __stub macros and hopefully few prototypes,
2889 which can conflict with char basename(); below. */
2891 /* Override any gcc2 internal prototype to avoid an error. */
2892 /* We use char because int might match the return type of a gcc2
2893 builtin and then its argument prototype would still apply. */
2898 /* The GNU C library defines this for functions which it implements
2899 to always fail with ENOSYS. Some functions are actually named
2900 something starting with __ and the normal name is an alias. */
2901 #if defined (__stub_basename) || defined (__stub___basename)
2909 if { (eval echo configure:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2911 eval "ac_cv_func_basename=yes"
2913 echo "configure: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2916 eval "ac_cv_func_basename=no"
2921 if eval "test \"`echo '$ac_cv_func_'basename`\" = yes"; then
2922 echo "$ac_t""yes" 1>&6
2925 echo "$ac_t""no" 1>&6
2928 echo $ac_n "checking for setjmp""... $ac_c" 1>&6
2929 echo "configure:2930: checking for setjmp" >&5
2930 if eval "test \"`echo '$''{'ac_cv_func_setjmp'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 /* System header to define __stub macros and hopefully few prototypes,
2937 which can conflict with char setjmp(); below. */
2939 /* Override any gcc2 internal prototype to avoid an error. */
2940 /* We use char because int might match the return type of a gcc2
2941 builtin and then its argument prototype would still apply. */
2946 /* The GNU C library defines this for functions which it implements
2947 to always fail with ENOSYS. Some functions are actually named
2948 something starting with __ and the normal name is an alias. */
2949 #if defined (__stub_setjmp) || defined (__stub___setjmp)
2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2959 eval "ac_cv_func_setjmp=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2964 eval "ac_cv_func_setjmp=no"
2969 if eval "test \"`echo '$ac_cv_func_'setjmp`\" = yes"; then
2970 echo "$ac_t""yes" 1>&6
2973 echo "$ac_t""no" 1>&6
2976 echo $ac_n "checking for setpriority""... $ac_c" 1>&6
2977 echo "configure:2978: checking for setpriority" >&5
2978 if eval "test \"`echo '$''{'ac_cv_func_setpriority'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* System header to define __stub macros and hopefully few prototypes,
2985 which can conflict with char setpriority(); below. */
2987 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2994 /* The GNU C library defines this for functions which it implements
2995 to always fail with ENOSYS. Some functions are actually named
2996 something starting with __ and the normal name is an alias. */
2997 #if defined (__stub_setpriority) || defined (__stub___setpriority)
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3007 eval "ac_cv_func_setpriority=yes"
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3012 eval "ac_cv_func_setpriority=no"
3017 if eval "test \"`echo '$ac_cv_func_'setpriority`\" = yes"; then
3018 echo "$ac_t""yes" 1>&6
3021 echo "$ac_t""no" 1>&6
3024 echo $ac_n "checking for time""... $ac_c" 1>&6
3025 echo "configure:3026: checking for time" >&5
3026 if eval "test \"`echo '$''{'ac_cv_func_time'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3032 /* System header to define __stub macros and hopefully few prototypes,
3033 which can conflict with char time(); below. */
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3042 /* The GNU C library defines this for functions which it implements
3043 to always fail with ENOSYS. Some functions are actually named
3044 something starting with __ and the normal name is an alias. */
3045 #if defined (__stub_time) || defined (__stub___time)
3053 if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3055 eval "ac_cv_func_time=yes"
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3060 eval "ac_cv_func_time=no"
3065 if eval "test \"`echo '$ac_cv_func_'time`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3069 echo "$ac_t""no" 1>&6
3072 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3073 echo "configure:3074: checking for gettimeofday" >&5
3074 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 /* System header to define __stub macros and hopefully few prototypes,
3081 which can conflict with char gettimeofday(); below. */
3083 /* Override any gcc2 internal prototype to avoid an error. */
3084 /* We use char because int might match the return type of a gcc2
3085 builtin and then its argument prototype would still apply. */
3086 char gettimeofday();
3090 /* The GNU C library defines this for functions which it implements
3091 to always fail with ENOSYS. Some functions are actually named
3092 something starting with __ and the normal name is an alias. */
3093 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3103 eval "ac_cv_func_gettimeofday=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3108 eval "ac_cv_func_gettimeofday=no"
3113 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3114 echo "$ac_t""yes" 1>&6
3117 echo "$ac_t""no" 1>&6
3121 if test "${OSTYPE}" = "cygwin" ; then
3124 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3125 echo "configure:3126: checking for getopt_long" >&5
3126 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 /* System header to define __stub macros and hopefully few prototypes,
3133 which can conflict with char getopt_long(); below. */
3135 /* Override any gcc2 internal prototype to avoid an error. */
3136 /* We use char because int might match the return type of a gcc2
3137 builtin and then its argument prototype would still apply. */
3142 /* The GNU C library defines this for functions which it implements
3143 to always fail with ENOSYS. Some functions are actually named
3144 something starting with __ and the normal name is an alias. */
3145 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3153 if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3155 eval "ac_cv_func_getopt_long=yes"
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3160 eval "ac_cv_func_getopt_long=no"
3165 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3166 echo "$ac_t""yes" 1>&6
3169 echo "$ac_t""no" 1>&6
3175 if test "${pthread}" = "true" ; then
3177 if test -n "$GCC"; then
3178 CFLAGS="$CFLAGS -pthread -D_REENTRANT"
3181 cat >> confdefs.h <<\EOF
3182 #define HAVE_WXTHREADS 1
3187 if test "${getopt_long}" = "false" ; then
3188 my_includes="$my_includes -I../getopt"
3189 cat >> confdefs.h <<\EOF
3190 #define HAVE_GETOPT_LONG 1
3193 ctlibs_base="$ctlibs_base -lgetopt"
3194 LDFLAGS="$LDFLAGS -L../getopt"
3198 INCLUDED_GETOPT_LONG_TRUE=
3199 INCLUDED_GETOPT_LONG_FALSE='#'
3201 INCLUDED_GETOPT_LONG_TRUE='#'
3202 INCLUDED_GETOPT_LONG_FALSE=
3206 if test "${readline}" = "true" ; then
3207 ctlibs_base="$ctlibs_base -lreadline"
3208 if test "${ncurses}" = "true"; then
3209 ctlibs_base="$ctlibs_base -lncurses"
3210 elif test "${curses}" = "true"; then
3211 ctlibs_base="$ctlibs_base -lcurses"
3215 echo $ac_n "checking debug""... $ac_c" 1>&6
3216 echo "configure:3217: checking debug" >&5
3217 # Check whether --enable-debug or --disable-debug was given.
3218 if test "${enable_debug+set}" = set; then
3219 enableval="$enable_debug"
3220 case "${enableval}" in
3222 echo "$ac_t""yes" 1>&6
3225 echo "$ac_t""no" 1>&6
3227 *) echo "$ac_t""bad value ${enableval} for --enable-debug" 1>&6
3231 debug=false; echo "$ac_t""no" 1>&6
3236 if test "$debug" = "true"; then
3244 if test "$debug" = "true" ; then
3246 cat >> confdefs.h <<\EOF
3251 CFLAGS="-O3 -DNDEBUG -fomit-frame-pointer"
3252 cat >> confdefs.h <<\EOF
3258 echo $ac_n "checking sstream""... $ac_c" 1>&6
3259 echo "configure:3260: checking sstream" >&5
3260 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
3261 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
3262 cat >> confdefs.h <<\EOF
3263 #define HAVE_SSTREAM 1
3266 echo "$ac_t""yes" 1>&6
3268 echo "$ac_t""no" 1>&6
3272 if test -n "$GCC"; then
3273 CFLAGS="$CFLAGS -Wall"
3276 echo $ac_n "checking whether to enable verbose warnings""... $ac_c" 1>&6
3277 echo "configure:3278: checking whether to enable verbose warnings" >&5
3278 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
3279 if test "${enable_verbose_warnings+set}" = set; then
3280 enableval="$enable_verbose_warnings"
3281 case "$enableval" in
3283 echo "$ac_t""yes" 1>&6
3285 if test -n "$GCC"; then
3290 if test -n "$GCC"; then
3291 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
3295 if test -n "$GCC"; then
3296 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
3300 if test -n "$GCC"; then
3301 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
3305 if test -n "$GCC"; then
3306 CFLAGS="$CFLAGS -pedantic"
3310 if test -n "$GCC"; then
3311 CFLAGS="$CFLAGS -Wredundant-decls"
3317 echo "$ac_t""no" 1>&6
3321 echo "$ac_t""no" 1>&6
3326 echo $ac_n "checking static executables""... $ac_c" 1>&6
3327 echo "configure:3328: checking static executables" >&5
3328 # Check whether --enable-static or --disable-static was given.
3329 if test "${enable_static+set}" = set; then
3330 enableval="$enable_static"
3331 case "$enableval" in
3333 echo "$ac_t""yes" 1>&6
3335 if test -n "$GCC"; then
3336 CFLAGS="$CFLAGS --static"
3341 echo "$ac_t""no" 1>&6
3345 echo "$ac_t""no" 1>&6
3350 # Check whether --with-lam or --without-lam was given.
3351 if test "${with_lam+set}" = set; then
3353 if test "$withval" != "no" ; then
3360 if test "$withval" != "no" ; then
3361 if test "$prefix" != "NONE" ; then
3362 trylamdir="$trylamdir $prefix"
3365 echo $ac_n "checking for LAM MPI installation""... $ac_c" 1>&6
3366 echo "configure:3367: checking for LAM MPI installation" >&5
3367 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
3368 if test -x "$testlamdir/bin/hcp" ; then
3369 if test "$testlamdir" != "/usr"; then
3370 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
3371 CFLAGS="$CFLAGS -I$testlamdir/include"
3373 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
3374 lamdir="$testlamdir"
3381 echo "$ac_t""$lamdir" 1>&6
3383 echo "$ac_t""no" 1>&6
3387 # Check whether --with-ctn or --without-ctn was given.
3388 if test "${with_ctn+set}" = set; then
3390 if test "$withval" != "no" ; then
3397 if test "$withval" != "no" ; then
3398 if test "$prefix" != "NONE" ; then
3399 tryctndir="$tryctndir $prefix"
3402 echo $ac_n "checking for CTN DICOM installation""... $ac_c" 1>&6
3403 echo "configure:3404: checking for CTN DICOM installation" >&5
3404 for testctndir in "." $tryctndir /usr/local /usr/local/ctn /usr /usr/ctn /opt /opt/ctn ; do
3405 if test -f "$testctndir/lib/libctn.a" ; then
3406 if test "$testctndir" != "/usr"; then
3407 LDFLAGS="$LDFLAGS -L$testctndir/lib"
3408 CFLAGS="$CFLAGS -I$testctndir/include"
3410 ctndir="$testctndir"
3412 cat >> confdefs.h <<\EOF
3413 #define HAVE_CTN_DICOM 1
3419 echo "$ac_t""$ctndir" 1>&6
3421 echo "$ac_t""no" 1>&6
3426 echo $ac_n "checking for web access""... $ac_c" 1>&6
3427 echo "configure:3428: checking for web access" >&5
3428 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
3429 if test "${with_cgibin_dir+set}" = set; then
3430 withval="$with_cgibin_dir"
3431 cgibindir=$withval ;
3435 # Check whether --with-cgibin-url or --without-cgibin-url was given.
3436 if test "${with_cgibin_url+set}" = set; then
3437 withval="$with_cgibin_url"
3438 cgibinurl=$withval ;
3442 # Check whether --with-webdata-dir or --without-webdata-dir was given.
3443 if test "${with_webdata_dir+set}" = set; then
3444 withval="$with_webdata_dir"
3445 webdatadir=$withval ;
3449 # Check whether --with-webdata-url or --without-webdata-url was given.
3450 if test "${with_webdata_url+set}" = set; then
3451 withval="$with_webdata_url"
3452 webdataurl=$withval ;
3456 # Check whether --with-html-dir or --without-html-dir was given.
3457 if test "${with_html_dir+set}" = set; then
3458 withval="$with_html_dir"
3463 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
3464 cgiprograms="ctsim.cgi ctsim.conf"
3468 if test -n "$htmldir" ; then
3469 htmldata=simulate.html
3474 if test -n "$htmldir"; then
3482 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
3485 echo "$ac_t""yes" 1>&6
3486 if test -z "$cgibindir" ; then
3487 { echo "configure: error: --with-cgibin-dir not set for web access" 1>&2; exit 1; }
3488 elif test -z "$cgibinurl" ; then
3489 { echo "configure: error: --with-cgibin-url not set for web access" 1>&2; exit 1; }
3490 elif test -z "$webdatadir" ; then
3491 { echo "configure: error: --with-webdata-dir not set for web access" 1>&2; exit 1; }
3492 elif test -z "$webdataurl" ; then
3493 { echo "configure: error: --with-webdata-url not set for web access" 1>&2; exit 1; }
3494 elif test -z "$htmldir" ; then
3495 { echo "configure: error: --with-html-dir not set for web access" 1>&2; exit 1; }
3498 echo "$ac_t""no" 1>&6
3503 if test -n "$lamdir"; then
3512 # If we find X, set shell vars x_includes and x_libraries to the
3513 # paths, otherwise set no_x=yes.
3514 # Uses ac_ vars as temps to allow command line to override cache and checks.
3515 # --without-x overrides everything else, but does not touch the cache.
3516 echo $ac_n "checking for X""... $ac_c" 1>&6
3517 echo "configure:3518: checking for X" >&5
3519 # Check whether --with-x or --without-x was given.
3520 if test "${with_x+set}" = set; then
3525 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3526 if test "x$with_x" = xno; then
3527 # The user explicitly disabled X.
3530 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3531 # Both variables are already set.
3534 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3537 # One or both of the vars are not set, and there is no cached value.
3538 ac_x_includes=NO ac_x_libraries=NO
3540 if mkdir conftestdir; then
3542 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3543 cat > Imakefile <<'EOF'
3545 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3547 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3548 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3549 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3550 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3551 for ac_extension in a so sl; do
3552 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3553 test -f $ac_im_libdir/libX11.$ac_extension; then
3554 ac_im_usrlibdir=$ac_im_libdir; break
3557 # Screen out bogus values from the imake configuration. They are
3558 # bogus both because they are the default anyway, and because
3559 # using them would break gcc on systems where it needs fixed includes.
3560 case "$ac_im_incroot" in
3562 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3564 case "$ac_im_usrlibdir" in
3566 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3573 if test "$ac_x_includes" = NO; then
3574 # Guess where to find include files, by looking for this one X11 .h file.
3575 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3577 # First, try using that file with no special directory specified.
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 #include <$x_direct_test_include>
3583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3584 { (eval echo configure:3585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3586 if test -z "$ac_err"; then
3588 # We can compile using X headers with no special include directory.
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3595 # Look for the header file in a standard set of common directories.
3596 # Check X11 before X11Rn because it is often a symlink to the current release.
3599 /usr/X11R6/include \
3600 /usr/X11R5/include \
3601 /usr/X11R4/include \
3604 /usr/include/X11R6 \
3605 /usr/include/X11R5 \
3606 /usr/include/X11R4 \
3608 /usr/local/X11/include \
3609 /usr/local/X11R6/include \
3610 /usr/local/X11R5/include \
3611 /usr/local/X11R4/include \
3613 /usr/local/include/X11 \
3614 /usr/local/include/X11R6 \
3615 /usr/local/include/X11R5 \
3616 /usr/local/include/X11R4 \
3620 /usr/XFree86/include/X11 \
3623 /usr/local/include \
3624 /usr/unsupported/include \
3625 /usr/athena/include \
3626 /usr/local/x11r5/include \
3627 /usr/lpp/Xamples/include \
3629 /usr/openwin/include \
3630 /usr/openwin/share/include \
3633 if test -r "$ac_dir/$x_direct_test_include"; then
3634 ac_x_includes=$ac_dir
3640 fi # $ac_x_includes = NO
3642 if test "$ac_x_libraries" = NO; then
3643 # Check for the libraries.
3645 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3646 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3648 # See if we find them without any special options.
3649 # Don't add to $LIBS permanently.
3650 ac_save_LIBS="$LIBS"
3651 LIBS="-l$x_direct_test_library $LIBS"
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3657 ${x_direct_test_function}()
3660 if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3662 LIBS="$ac_save_LIBS"
3663 # We can link X programs with no special library path.
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3669 LIBS="$ac_save_LIBS"
3670 # First see if replacing the include by lib works.
3671 # Check X11 before X11Rn because it is often a symlink to the current release.
3672 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3683 /usr/local/X11/lib \
3684 /usr/local/X11R6/lib \
3685 /usr/local/X11R5/lib \
3686 /usr/local/X11R4/lib \
3688 /usr/local/lib/X11 \
3689 /usr/local/lib/X11R6 \
3690 /usr/local/lib/X11R5 \
3691 /usr/local/lib/X11R4 \
3695 /usr/XFree86/lib/X11 \
3699 /usr/unsupported/lib \
3701 /usr/local/x11r5/lib \
3702 /usr/lpp/Xamples/lib \
3706 /usr/openwin/share/lib \
3709 for ac_extension in a so sl; do
3710 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3711 ac_x_libraries=$ac_dir
3718 fi # $ac_x_libraries = NO
3720 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3721 # Didn't find X anywhere. Cache the known absence of X.
3722 ac_cv_have_x="have_x=no"
3724 # Record where we found X for the cache.
3725 ac_cv_have_x="have_x=yes \
3726 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3730 eval "$ac_cv_have_x"
3733 if test "$have_x" != yes; then
3734 echo "$ac_t""$have_x" 1>&6
3737 # If each of the values was on the command line, it overrides each guess.
3738 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3739 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3740 # Update the cache value to reflect the command line values.
3741 ac_cv_have_x="have_x=yes \
3742 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3743 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3746 if test "$no_x" = yes; then
3747 # Not all programs may use this symbol, but it does not hurt to define it.
3748 cat >> confdefs.h <<\EOF
3749 #define X_DISPLAY_MISSING 1
3752 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3754 if test -n "$x_includes"; then
3755 X_CFLAGS="$X_CFLAGS -I$x_includes"
3758 # It would also be nice to do this for all -L options, not just this one.
3759 if test -n "$x_libraries"; then
3760 X_LIBS="$X_LIBS -L$x_libraries"
3761 # For Solaris; some versions of Sun CC require a space after -R and
3762 # others require no space. Words are not sufficient . . . .
3763 case "`(uname -sr) 2>/dev/null`" in
3765 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3766 echo "configure:3767: checking whether -R must be followed by a space" >&5
3767 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3776 if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3780 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3786 if test $ac_R_nospace = yes; then
3787 echo "$ac_t""no" 1>&6
3788 X_LIBS="$X_LIBS -R$x_libraries"
3790 LIBS="$ac_xsave_LIBS -R $x_libraries"
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3799 if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3809 if test $ac_R_space = yes; then
3810 echo "$ac_t""yes" 1>&6
3811 X_LIBS="$X_LIBS -R $x_libraries"
3813 echo "$ac_t""neither works" 1>&6
3816 LIBS="$ac_xsave_LIBS"
3820 # Check for system-dependent libraries X programs must link with.
3821 # Do this before checking for the system-independent R6 libraries
3822 # (-lICE), since we may need -lsocket or whatever for X linking.
3824 if test "$ISC" = yes; then
3825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3827 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3828 # libraries were built with DECnet support. And karl@cs.umb.edu says
3829 # the Alpha needs dnet_stub (dnet does not exist).
3830 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3831 echo "configure:3832: checking for dnet_ntoa in -ldnet" >&5
3832 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 ac_save_LIBS="$LIBS"
3838 cat > conftest.$ac_ext <<EOF
3839 #line 3840 "configure"
3840 #include "confdefs.h"
3841 /* Override any gcc2 internal prototype to avoid an error. */
3842 /* We use char because int might match the return type of a gcc2
3843 builtin and then its argument prototype would still apply. */
3850 if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 eval "ac_cv_lib_$ac_lib_var=yes"
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3857 eval "ac_cv_lib_$ac_lib_var=no"
3860 LIBS="$ac_save_LIBS"
3863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3864 echo "$ac_t""yes" 1>&6
3865 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3867 echo "$ac_t""no" 1>&6
3870 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3871 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3872 echo "configure:3873: checking for dnet_ntoa in -ldnet_stub" >&5
3873 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3877 ac_save_LIBS="$LIBS"
3878 LIBS="-ldnet_stub $LIBS"
3879 cat > conftest.$ac_ext <<EOF
3880 #line 3881 "configure"
3881 #include "confdefs.h"
3882 /* Override any gcc2 internal prototype to avoid an error. */
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3891 if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3893 eval "ac_cv_lib_$ac_lib_var=yes"
3895 echo "configure: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3898 eval "ac_cv_lib_$ac_lib_var=no"
3901 LIBS="$ac_save_LIBS"
3904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3905 echo "$ac_t""yes" 1>&6
3906 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3908 echo "$ac_t""no" 1>&6
3913 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3914 # to get the SysV transport functions.
3915 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3917 # The nsl library prevents programs from opening the X display
3918 # on Irix 5.2, according to dickey@clark.net.
3919 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3920 echo "configure:3921: checking for gethostbyname" >&5
3921 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3927 /* System header to define __stub macros and hopefully few prototypes,
3928 which can conflict with char gethostbyname(); below. */
3930 /* Override any gcc2 internal prototype to avoid an error. */
3931 /* We use char because int might match the return type of a gcc2
3932 builtin and then its argument prototype would still apply. */
3933 char gethostbyname();
3937 /* The GNU C library defines this for functions which it implements
3938 to always fail with ENOSYS. Some functions are actually named
3939 something starting with __ and the normal name is an alias. */
3940 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3948 if { (eval echo configure:3949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3950 eval "ac_cv_func_gethostbyname=yes"
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3955 eval "ac_cv_func_gethostbyname=no"
3960 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3961 echo "$ac_t""yes" 1>&6
3964 echo "$ac_t""no" 1>&6
3967 if test $ac_cv_func_gethostbyname = no; then
3968 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3969 echo "configure:3970: checking for gethostbyname in -lnsl" >&5
3970 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 ac_save_LIBS="$LIBS"
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3982 char gethostbyname();
3988 if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3990 eval "ac_cv_lib_$ac_lib_var=yes"
3992 echo "configure: failed program was:" >&5
3993 cat conftest.$ac_ext >&5
3995 eval "ac_cv_lib_$ac_lib_var=no"
3998 LIBS="$ac_save_LIBS"
4001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4002 echo "$ac_t""yes" 1>&6
4003 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4005 echo "$ac_t""no" 1>&6
4010 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4011 # socket/setsockopt and other routines are undefined under SCO ODT
4012 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4013 # on later versions), says simon@lia.di.epfl.ch: it contains
4014 # gethostby* variants that don't use the nameserver (or something).
4015 # -lsocket must be given before -lnsl if both are needed.
4016 # We assume that if connect needs -lnsl, so does gethostbyname.
4017 echo $ac_n "checking for connect""... $ac_c" 1>&6
4018 echo "configure:4019: checking for connect" >&5
4019 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4025 /* System header to define __stub macros and hopefully few prototypes,
4026 which can conflict with char connect(); below. */
4028 /* Override any gcc2 internal prototype to avoid an error. */
4029 /* We use char because int might match the return type of a gcc2
4030 builtin and then its argument prototype would still apply. */
4035 /* The GNU C library defines this for functions which it implements
4036 to always fail with ENOSYS. Some functions are actually named
4037 something starting with __ and the normal name is an alias. */
4038 #if defined (__stub_connect) || defined (__stub___connect)
4046 if { (eval echo configure:4047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4048 eval "ac_cv_func_connect=yes"
4050 echo "configure: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4053 eval "ac_cv_func_connect=no"
4058 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4062 echo "$ac_t""no" 1>&6
4065 if test $ac_cv_func_connect = no; then
4066 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4067 echo "configure:4068: checking for connect in -lsocket" >&5
4068 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 ac_save_LIBS="$LIBS"
4073 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4088 eval "ac_cv_lib_$ac_lib_var=yes"
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4093 eval "ac_cv_lib_$ac_lib_var=no"
4096 LIBS="$ac_save_LIBS"
4099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4100 echo "$ac_t""yes" 1>&6
4101 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4103 echo "$ac_t""no" 1>&6
4108 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4109 echo $ac_n "checking for remove""... $ac_c" 1>&6
4110 echo "configure:4111: checking for remove" >&5
4111 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char remove(); below. */
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4127 /* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */
4130 #if defined (__stub_remove) || defined (__stub___remove)
4138 if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4140 eval "ac_cv_func_remove=yes"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4145 eval "ac_cv_func_remove=no"
4150 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4154 echo "$ac_t""no" 1>&6
4157 if test $ac_cv_func_remove = no; then
4158 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4159 echo "configure:4160: checking for remove in -lposix" >&5
4160 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 ac_save_LIBS="$LIBS"
4165 LIBS="-lposix $LIBS"
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4180 eval "ac_cv_lib_$ac_lib_var=yes"
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4185 eval "ac_cv_lib_$ac_lib_var=no"
4188 LIBS="$ac_save_LIBS"
4191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4193 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4195 echo "$ac_t""no" 1>&6
4200 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4201 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4202 echo "configure:4203: checking for shmat" >&5
4203 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 /* System header to define __stub macros and hopefully few prototypes,
4210 which can conflict with char shmat(); below. */
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4219 /* The GNU C library defines this for functions which it implements
4220 to always fail with ENOSYS. Some functions are actually named
4221 something starting with __ and the normal name is an alias. */
4222 #if defined (__stub_shmat) || defined (__stub___shmat)
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4232 eval "ac_cv_func_shmat=yes"
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4237 eval "ac_cv_func_shmat=no"
4242 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4243 echo "$ac_t""yes" 1>&6
4246 echo "$ac_t""no" 1>&6
4249 if test $ac_cv_func_shmat = no; then
4250 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4251 echo "configure:4252: checking for shmat in -lipc" >&5
4252 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4256 ac_save_LIBS="$LIBS"
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* Override any gcc2 internal prototype to avoid an error. */
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4272 eval "ac_cv_lib_$ac_lib_var=yes"
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4277 eval "ac_cv_lib_$ac_lib_var=no"
4280 LIBS="$ac_save_LIBS"
4283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4285 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4287 echo "$ac_t""no" 1>&6
4293 # Check for libraries that X11R6 Xt/Xaw programs need.
4294 ac_save_LDFLAGS="$LDFLAGS"
4295 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4296 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4297 # check for ICE first), but we must link in the order -lSM -lICE or
4298 # we get undefined symbols. So assume we have SM if we have ICE.
4299 # These have to be linked with before -lX11, unlike the other
4300 # libraries we check for below, so use a different variable.
4301 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4302 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4303 echo "configure:4304: checking for IceConnectionNumber in -lICE" >&5
4304 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 ac_save_LIBS="$LIBS"
4309 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 /* Override any gcc2 internal prototype to avoid an error. */
4314 /* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4316 char IceConnectionNumber();
4319 IceConnectionNumber()
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4324 eval "ac_cv_lib_$ac_lib_var=yes"
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4329 eval "ac_cv_lib_$ac_lib_var=no"
4332 LIBS="$ac_save_LIBS"
4335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4336 echo "$ac_t""yes" 1>&6
4337 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4339 echo "$ac_t""no" 1>&6
4342 LDFLAGS="$ac_save_LDFLAGS"
4353 X_TOOLKIT_LIBS="-lXt"
4354 X_BASIC_LIBS="-lXext -lX11 -lXmu"
4356 our_saved_LDFLAGS="$LDFLAGS"
4357 LDFLAGS="$X_LIBS $LDFLAGS"
4358 echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
4359 echo "configure:4360: checking for XtToolkitThreadInitialize in -lXt" >&5
4360 ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
4361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4364 ac_save_LIBS="$LIBS"
4365 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
4366 cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4369 /* Override any gcc2 internal prototype to avoid an error. */
4370 /* We use char because int might match the return type of a gcc2
4371 builtin and then its argument prototype would still apply. */
4372 char XtToolkitThreadInitialize();
4375 XtToolkitThreadInitialize()
4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4380 eval "ac_cv_lib_$ac_lib_var=yes"
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4385 eval "ac_cv_lib_$ac_lib_var=no"
4388 LIBS="$ac_save_LIBS"
4391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4392 echo "$ac_t""yes" 1>&6
4393 cat >> confdefs.h <<\EOF
4394 #define X_THREAD_SUPPORT 1
4398 echo "$ac_t""no" 1>&6
4401 LDFLAGS="$our_saved_LDFLAGS"
4403 our_saved_LDFLAGS="$LDFLAGS"
4404 LDFLAGS="$X_LIBS $LDFLAGS"
4405 echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
4406 echo "configure:4407: checking for XdbeQueryExtension in -lXext" >&5
4407 ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
4408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 ac_save_LIBS="$LIBS"
4412 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 /* Override any gcc2 internal prototype to avoid an error. */
4417 /* We use char because int might match the return type of a gcc2
4418 builtin and then its argument prototype would still apply. */
4419 char XdbeQueryExtension();
4422 XdbeQueryExtension()
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 eval "ac_cv_lib_$ac_lib_var=yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 eval "ac_cv_lib_$ac_lib_var=no"
4435 LIBS="$ac_save_LIBS"
4438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4440 cat >> confdefs.h <<\EOF
4441 #define HAVE_DBE_SUPPORT 1
4445 echo "$ac_t""no" 1>&6
4448 echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
4449 echo "configure:4450: checking for XmbufQueryExtension in -lXext" >&5
4450 ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
4451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4454 ac_save_LIBS="$LIBS"
4455 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 /* Override any gcc2 internal prototype to avoid an error. */
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4462 char XmbufQueryExtension();
4465 XmbufQueryExtension()
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4470 eval "ac_cv_lib_$ac_lib_var=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_lib_$ac_lib_var=no"
4478 LIBS="$ac_save_LIBS"
4481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 cat >> confdefs.h <<\EOF
4484 #define HAVE_MBX_SUPPORT 1
4488 echo "$ac_t""no" 1>&6
4491 LDFLAGS="$our_saved_LDFLAGS"
4492 our_saved_CPPFLAGS="$CPPFLAGS"
4493 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4494 for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
4496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_hdr" >&5
4499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4508 { (eval echo configure:4509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4510 if test -z "$ac_err"; then
4512 eval "ac_cv_header_$ac_safe=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 eval "ac_cv_header_$ac_safe=no"
4522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4525 cat >> confdefs.h <<EOF
4526 #define $ac_tr_hdr 1
4530 echo "$ac_t""no" 1>&6
4534 CPPFLAGS="$our_saved_CPPFLAGS"
4538 if test "x$no_x" = "xyes"; then
4546 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
4549 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4551 echo $ac_n "checking for X""... $ac_c" 1>&6
4552 echo "configure:4553: checking for X" >&5
4553 if test "$no_x" != "yes" ; then
4554 cat >> confdefs.h <<\EOF
4567 cat >> confdefs.h <<\EOF
4571 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
4572 ctlib_graphics="$ctlibs_base -lctgraphics"
4573 echo "$ac_t""yes" 1>&6
4574 if test "$g2" = "true" ; then
4575 ctlib_graphics="$ctlib_graphics -lg2"
4576 cat >> confdefs.h <<\EOF
4581 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
4582 if test "$libgl" = "true" ; then
4583 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl -lglut -lGL -lGLU"
4586 if test "$wxwin" = "true" ; then
4587 cat >> confdefs.h <<\EOF
4601 echo "$ac_t""no" 1>&6
4604 if test "$png" = "true" ; then
4605 ctlibs_tools="$ctlibs_tools -lpng"
4607 if test "$zlib" = "true" ; then
4608 ctlibs_tools="$ctlibs_tools -lz"
4610 if test "$fftw" = "true" ; then
4611 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
4613 if test "$ctn" = "true"; then
4614 ctlibs_tools="$ctlibs_tools -lctn"
4617 echo $ac_n "checking for main in -ldmallocxx""... $ac_c" 1>&6
4618 echo "configure:4619: checking for main in -ldmallocxx" >&5
4619 ac_lib_var=`echo dmallocxx'_'main | sed 'y%./+-%__p_%'`
4620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4623 ac_save_LIBS="$LIBS"
4624 LIBS="-ldmallocxx $LIBS"
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4635 eval "ac_cv_lib_$ac_lib_var=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4640 eval "ac_cv_lib_$ac_lib_var=no"
4643 LIBS="$ac_save_LIBS"
4646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4647 echo "$ac_t""yes" 1>&6
4650 echo "$ac_t""no" 1>&6
4654 echo $ac_n "checking for enable-dmalloc""... $ac_c" 1>&6
4655 echo "configure:4656: checking for enable-dmalloc" >&5
4656 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4657 if test "${enable_dmalloc+set}" = set; then
4658 enableval="$enable_dmalloc"
4659 case "${enableval}" in
4660 yes) usedmalloc=true
4661 echo "$ac_t""yes" 1>&6
4663 no) usedmalloc=false
4664 echo "$ac_t""no" 1>&6
4666 *) echo "$ac_t""bad value ${enableval} for --enable-dmalloc" 1>&6
4670 usedmalloc=false; echo "$ac_t""no" 1>&6
4674 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
4675 ctlibs_tools="$ctlibs_tools -ldmallocxx"
4676 cat >> confdefs.h <<\EOF
4677 #define HAVE_DMALLOC 1
4680 echo "$ac_t""Using dmalloc" 1>&6
4683 echo $ac_n "checking for main in -lefence""... $ac_c" 1>&6
4684 echo "configure:4685: checking for main in -lefence" >&5
4685 ac_lib_var=`echo efence'_'main | sed 'y%./+-%__p_%'`
4686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 ac_save_LIBS="$LIBS"
4690 LIBS="-lefence $LIBS"
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4699 if { (eval echo configure:4700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4701 eval "ac_cv_lib_$ac_lib_var=yes"
4703 echo "configure: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4706 eval "ac_cv_lib_$ac_lib_var=no"
4709 LIBS="$ac_save_LIBS"
4712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4713 echo "$ac_t""yes" 1>&6
4716 echo "$ac_t""no" 1>&6
4720 echo $ac_n "checking for enable-efence""... $ac_c" 1>&6
4721 echo "configure:4722: checking for enable-efence" >&5
4722 # Check whether --enable-efence or --disable-efence was given.
4723 if test "${enable_efence+set}" = set; then
4724 enableval="$enable_efence"
4725 case "${enableval}" in
4727 echo "$ac_t""yes" 1>&6
4730 echo "$ac_t""no" 1>&6
4732 *) echo "$ac_t""bad value ${enableval} for --enable-efence" 1>&6
4736 useefence=false; echo "$ac_t""no" 1>&6
4740 if test "$efence" = "true" -a "$useefence" = "true" ; then
4741 ctlibs_tools="$ctlibs_tools -lefence"
4742 cat >> confdefs.h <<\EOF
4743 #define HAVE_EFENCE 1
4746 echo "$ac_t""Using efence" 1>&6
4749 if test "$wxwin" = "true" ; then
4750 if test "$wx_gtk" = "true" ; then
4751 wxcflags=`$wxconfig --cflags`
4752 wxlibs=`$wxconfig --libs`
4754 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
4755 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
4757 CFLAGS="$CFLAGS -I../include $wxcflags"
4758 ctlib_graphics="$ctlib_graphics $wxlibs"
4762 HAVE_WXWINDOWS_TRUE=
4763 HAVE_WXWINDOWS_FALSE='#'
4765 HAVE_WXWINDOWS_TRUE='#'
4766 HAVE_WXWINDOWS_FALSE=
4772 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
4773 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
4776 if test -n "$lamdir" ; then
4777 lamprograms="ctsimtext-lam"
4786 cat > confcache <<\EOF
4787 # This file is a shell script that caches the results of configure
4788 # tests run on this system so they can be shared between configure
4789 # scripts and configure runs. It is not useful on other systems.
4790 # If it contains results you don't want to keep, you may remove or edit it.
4792 # By default, configure uses ./config.cache as the cache file,
4793 # creating it if it does not exist already. You can give configure
4794 # the --cache-file=FILE option to use a different cache file; that is
4795 # what configure does when it calls configure scripts in
4796 # subdirectories, so they share the cache.
4797 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4798 # config.status only pays attention to the cache file if you give it the
4799 # --recheck option to rerun configure.
4802 # The following way of writing the cache mishandles newlines in values,
4803 # but we know of no workaround that is simple, portable, and efficient.
4804 # So, don't put newlines in cache variables' values.
4805 # Ultrix sh set writes to stderr and can't be redirected directly,
4806 # and sets the high bit in the cache file unless we assign to the vars.
4808 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4810 # `set' does not quote correctly, so add quotes (double-quote substitution
4811 # turns \\\\ into \\, and sed turns \\ into \).
4813 -e "s/'/'\\\\''/g" \
4814 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4817 # `set' quotes correctly as required by POSIX, so do not add quotes.
4818 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4821 if cmp -s $cache_file confcache; then
4824 if test -w $cache_file; then
4825 echo "updating cache $cache_file"
4826 cat confcache > $cache_file
4828 echo "not updating unwritable cache $cache_file"
4833 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4836 # Let make expand exec_prefix.
4837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4839 # Any assignment to VPATH causes Sun make to only execute
4840 # the first set of double-colon rules, so remove it if not needed.
4841 # If there is a colon in the path, we need to keep it.
4842 if test "x$srcdir" = x.; then
4843 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4846 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4848 DEFS=-DHAVE_CONFIG_H
4850 # Without the "./", some shells look in PATH for config.status.
4851 : ${CONFIG_STATUS=./config.status}
4853 echo creating $CONFIG_STATUS
4854 rm -f $CONFIG_STATUS
4855 cat > $CONFIG_STATUS <<EOF
4857 # Generated automatically by configure.
4858 # Run this file to recreate the current configuration.
4859 # This directory was configured as follows,
4860 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4862 # $0 $ac_configure_args
4864 # Compiler output produced by configure, useful for debugging
4865 # configure, is in ./config.log if it exists.
4867 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4870 case "\$ac_option" in
4871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4872 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4873 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4874 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4875 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4877 -help | --help | --hel | --he | --h)
4878 echo "\$ac_cs_usage"; exit 0 ;;
4879 *) echo "\$ac_cs_usage"; exit 1 ;;
4883 ac_given_srcdir=$srcdir
4884 ac_given_INSTALL="$INSTALL"
4886 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
4888 cat >> $CONFIG_STATUS <<EOF
4890 # Protect against being on the right side of a sed subst in config.status.
4891 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4892 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4896 s%@CFLAGS@%$CFLAGS%g
4897 s%@CPPFLAGS@%$CPPFLAGS%g
4898 s%@CXXFLAGS@%$CXXFLAGS%g
4899 s%@FFLAGS@%$FFLAGS%g
4901 s%@LDFLAGS@%$LDFLAGS%g
4903 s%@exec_prefix@%$exec_prefix%g
4904 s%@prefix@%$prefix%g
4905 s%@program_transform_name@%$program_transform_name%g
4906 s%@bindir@%$bindir%g
4907 s%@sbindir@%$sbindir%g
4908 s%@libexecdir@%$libexecdir%g
4909 s%@datadir@%$datadir%g
4910 s%@sysconfdir@%$sysconfdir%g
4911 s%@sharedstatedir@%$sharedstatedir%g
4912 s%@localstatedir@%$localstatedir%g
4913 s%@libdir@%$libdir%g
4914 s%@includedir@%$includedir%g
4915 s%@oldincludedir@%$oldincludedir%g
4916 s%@infodir@%$infodir%g
4917 s%@mandir@%$mandir%g
4918 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4919 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4920 s%@INSTALL_DATA@%$INSTALL_DATA%g
4921 s%@PACKAGE@%$PACKAGE%g
4922 s%@VERSION@%$VERSION%g
4923 s%@ACLOCAL@%$ACLOCAL%g
4924 s%@AUTOCONF@%$AUTOCONF%g
4925 s%@AUTOMAKE@%$AUTOMAKE%g
4926 s%@AUTOHEADER@%$AUTOHEADER%g
4927 s%@MAKEINFO@%$MAKEINFO%g
4928 s%@SET_MAKE@%$SET_MAKE%g
4930 s%@RANLIB@%$RANLIB%g
4933 s%@wxconfig@%$wxconfig%g
4935 s%@host_alias@%$host_alias%g
4936 s%@host_cpu@%$host_cpu%g
4937 s%@host_vendor@%$host_vendor%g
4938 s%@host_os@%$host_os%g
4940 s%@INCLUDED_GETOPT_LONG_TRUE@%$INCLUDED_GETOPT_LONG_TRUE%g
4941 s%@INCLUDED_GETOPT_LONG_FALSE@%$INCLUDED_GETOPT_LONG_FALSE%g
4942 s%@DEBUG_TRUE@%$DEBUG_TRUE%g
4943 s%@DEBUG_FALSE@%$DEBUG_FALSE%g
4944 s%@lamdir@%$lamdir%g
4945 s%@mpienable@%$mpienable%g
4946 s%@cgibindir@%$cgibindir%g
4947 s%@cgibinurl@%$cgibinurl%g
4948 s%@webdatadir@%$webdatadir%g
4949 s%@webdataurl@%$webdataurl%g
4950 s%@htmldir@%$htmldir%g
4951 s%@cgiprograms@%$cgiprograms%g
4952 s%@htmldata@%$htmldata%g
4953 s%@USE_HTML_TRUE@%$USE_HTML_TRUE%g
4954 s%@USE_HTML_FALSE@%$USE_HTML_FALSE%g
4955 s%@webenabled@%$webenabled%g
4956 s%@USE_LAM_TRUE@%$USE_LAM_TRUE%g
4957 s%@USE_LAM_FALSE@%$USE_LAM_FALSE%g
4958 s%@X_CFLAGS@%$X_CFLAGS%g
4959 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4960 s%@X_LIBS@%$X_LIBS%g
4961 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4962 s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4963 s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4964 s%@NO_X_TRUE@%$NO_X_TRUE%g
4965 s%@NO_X_FALSE@%$NO_X_FALSE%g
4966 s%@my_includes@%$my_includes%g
4967 s%@HAVE_SGP_TRUE@%$HAVE_SGP_TRUE%g
4968 s%@HAVE_SGP_FALSE@%$HAVE_SGP_FALSE%g
4969 s%@HAVE_WXWINDOWS_TRUE@%$HAVE_WXWINDOWS_TRUE%g
4970 s%@HAVE_WXWINDOWS_FALSE@%$HAVE_WXWINDOWS_FALSE%g
4971 s%@wxcflags@%$wxcflags%g
4972 s%@wxlibs@%$wxlibs%g
4973 s%@ctlibs@%$ctlibs%g
4974 s%@lamprograms@%$lamprograms%g
4975 s%@lamdefs@%$lamdefs%g
4980 cat >> $CONFIG_STATUS <<\EOF
4982 # Split the substitutions into bite-sized pieces for seds with
4983 # small command number limits, like on Digital OSF/1 and HP-UX.
4984 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4985 ac_file=1 # Number of current file.
4986 ac_beg=1 # First line for current file.
4987 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4990 while $ac_more_lines; do
4991 if test $ac_beg -gt 1; then
4992 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4994 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4996 if test ! -s conftest.s$ac_file; then
4998 rm -f conftest.s$ac_file
5000 if test -z "$ac_sed_cmds"; then
5001 ac_sed_cmds="sed -f conftest.s$ac_file"
5003 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5005 ac_file=`expr $ac_file + 1`
5007 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5010 if test -z "$ac_sed_cmds"; then
5015 cat >> $CONFIG_STATUS <<EOF
5017 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"}
5019 cat >> $CONFIG_STATUS <<\EOF
5020 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5021 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5023 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5024 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5025 *) ac_file_in="${ac_file}.in" ;;
5028 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5030 # Remove last slash and all that follows it. Not all systems have dirname.
5031 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5032 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5033 # The file is in a subdirectory.
5034 test ! -d "$ac_dir" && mkdir "$ac_dir"
5035 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5036 # A "../" for each directory in $ac_dir_suffix.
5037 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5039 ac_dir_suffix= ac_dots=
5042 case "$ac_given_srcdir" in
5044 if test -z "$ac_dots"; then top_srcdir=.
5045 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5046 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5048 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5049 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5052 case "$ac_given_INSTALL" in
5053 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5054 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5057 echo creating "$ac_file"
5059 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5061 *Makefile*) ac_comsub="1i\\
5062 # $configure_input" ;;
5066 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5068 s%@configure_input@%$configure_input%g
5069 s%@srcdir@%$srcdir%g
5070 s%@top_srcdir@%$top_srcdir%g
5071 s%@INSTALL@%$INSTALL%g
5072 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5076 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5077 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5079 # ac_d sets the value in "#define NAME VALUE" lines.
5080 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5081 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5084 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5085 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5086 ac_uB='\([ ]\)%\1#\2define\3'
5089 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5090 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5091 ac_eB='$%\1#\2define\3'
5095 if test "${CONFIG_HEADERS+set}" != set; then
5097 cat >> $CONFIG_STATUS <<EOF
5098 CONFIG_HEADERS="config.h"
5100 cat >> $CONFIG_STATUS <<\EOF
5102 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5103 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5105 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5106 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5107 *) ac_file_in="${ac_file}.in" ;;
5110 echo creating $ac_file
5112 rm -f conftest.frag conftest.in conftest.out
5113 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5114 cat $ac_file_inputs > conftest.in
5118 # Transform confdefs.h into a sed script conftest.vals that substitutes
5119 # the proper values into config.h.in to produce config.h. And first:
5120 # Protect against being on the right side of a sed subst in config.status.
5121 # Protect against being in an unquoted here document in config.status.
5123 cat > conftest.hdr <<\EOF
5126 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5130 sed -n -f conftest.hdr confdefs.h > conftest.vals
5133 # This sed command replaces #undef with comments. This is necessary, for
5134 # example, in the case of _POSIX_SOURCE, which is predefined and required
5135 # on some systems where configure will not decide to define it.
5136 cat >> conftest.vals <<\EOF
5137 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5140 # Break up conftest.vals because some shells have a limit on
5141 # the size of here documents, and old seds have small limits too.
5146 ac_lines=`grep -c . conftest.vals`
5147 # grep -c gives empty output for an empty file on some AIX systems.
5148 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5149 # Write a limited-size here document to conftest.frag.
5150 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5151 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5153 sed -f conftest.frag conftest.in > conftest.out
5155 mv conftest.out conftest.in
5157 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5159 mv conftest.tail conftest.vals
5163 cat >> $CONFIG_STATUS <<\EOF
5164 rm -f conftest.frag conftest.h
5165 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5166 cat conftest.in >> conftest.h
5168 if cmp -s $ac_file conftest.h 2>/dev/null; then
5169 echo "$ac_file is unchanged"
5172 # Remove last slash and all that follows it. Not all systems have dirname.
5173 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5174 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5175 # The file is in a subdirectory.
5176 test ! -d "$ac_dir" && mkdir "$ac_dir"
5179 mv conftest.h $ac_file
5184 cat >> $CONFIG_STATUS <<EOF
5188 cat >> $CONFIG_STATUS <<\EOF
5189 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5193 chmod +x $CONFIG_STATUS
5194 rm -fr confdefs* $ac_clean_files
5195 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1