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 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
45 cache_file=./config.cache
54 program_transform_name=s,x,x,
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
75 # Initialize some other variables.
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
215 -host | --host | --hos | --ho)
217 -host=* | --host=* | --hos=* | --ho=*)
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
232 -libdir | --libdir | --libdi | --libd)
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
259 # Obsolete; use --without-fp.
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 sbindir="$ac_optarg" ;;
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 sharedstatedir="$ac_optarg" ;;
336 -site | --site | --sit)
338 -site=* | --site=* | --sit=*)
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344 srcdir="$ac_optarg" ;;
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347 | --syscon | --sysco | --sysc | --sys | --sy)
348 ac_prev=sysconfdir ;;
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351 sysconfdir="$ac_optarg" ;;
353 -target | --target | --targe | --targ | --tar | --ta | --t)
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356 target="$ac_optarg" ;;
358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 -version | --version | --versio | --versi | --vers)
362 echo "configure generated by autoconf version 2.13"
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* | --without-*)
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
388 # Obsolete; use --with-x.
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392 | --x-incl | --x-inc | --x-in | --x-i)
393 ac_prev=x_includes ;;
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396 x_includes="$ac_optarg" ;;
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400 ac_prev=x_libraries ;;
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403 x_libraries="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454 | --no-cr | --no-c) ;;
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file=src/ctsim.cpp
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted=yes
485 # Try the directory containing this script, then its parent.
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
490 if test ! -r $srcdir/$ac_unique_file; then
494 ac_srcdir_defaulted=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE; then
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
524 echo "creating cache $cache_file"
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
537 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
546 ac_n= ac_c='\c' ac_t=
551 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
552 if test -f $ac_dir/install-sh; then
554 ac_install_sh="$ac_aux_dir/install-sh -c"
556 elif test -f $ac_dir/install.sh; then
558 ac_install_sh="$ac_aux_dir/install.sh -c"
562 if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
565 ac_config_guess=$ac_aux_dir/config.guess
566 ac_config_sub=$ac_aux_dir/config.sub
567 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
569 # Find a good install program. We prefer a C program (faster),
570 # so one script is as good as another. But avoid the broken or
571 # incompatible versions:
572 # SysV /etc/install, /usr/sbin/install
573 # SunOS /usr/etc/install
576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
579 # ./install, which can be erroneously created by make from ./install.sh.
580 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
581 echo "configure:582: checking for a BSD compatible install" >&5
582 if test -z "$INSTALL"; then
583 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
587 for ac_dir in $PATH; do
588 # Account for people who put trailing slashes in PATH elements.
590 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
592 # OSF1 and SCO ODT 3.0 have their own names for install.
593 # Don't use installbsd from OSF since it installs stuff as root
595 for ac_prog in ginstall scoinst install; do
596 if test -f $ac_dir/$ac_prog; then
597 if test $ac_prog = install &&
598 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
599 # AIX install. It has an incompatible calling convention.
602 ac_cv_path_install="$ac_dir/$ac_prog -c"
613 if test "${ac_cv_path_install+set}" = set; then
614 INSTALL="$ac_cv_path_install"
616 # As a last resort, use the slow shell script. We don't cache a
617 # path for INSTALL within a source directory, because that will
618 # break other packages using the cache if that directory is
619 # removed, or if the path is relative.
620 INSTALL="$ac_install_sh"
623 echo "$ac_t""$INSTALL" 1>&6
625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
626 # It thinks the first close brace ends the variable substitution.
627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
633 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
634 echo "configure:635: checking whether build environment is sane" >&5
637 echo timestamp > conftestfile
638 # Do `set' in a subshell so we don't clobber the current shell's
639 # arguments. Must try -L first in case configure is actually a
640 # symlink; some systems play weird games with the mod time of symlinks
641 # (eg FreeBSD returns the mod time of the symlink's containing
644 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
645 if test "$*" = "X"; then
647 set X `ls -t $srcdir/configure conftestfile`
649 if test "$*" != "X $srcdir/configure conftestfile" \
650 && test "$*" != "X conftestfile $srcdir/configure"; then
652 # If neither matched, then we have a broken ls. This can happen
653 # if, for instance, CONFIG_SHELL is bash and it inherits a
654 # broken ls alias from the environment. This has actually
655 # happened. Such a system could not be considered "sane".
656 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
657 alias in your environment" 1>&2; exit 1; }
660 test "$2" = conftestfile
666 { echo "configure: error: newly created file is older than distributed files!
667 Check your system clock" 1>&2; exit 1; }
670 echo "$ac_t""yes" 1>&6
671 if test "$program_transform_name" = s,x,x,; then
672 program_transform_name=
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED > conftestsed
676 s,\\,\\\\,g; s,\$,$$,g
678 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
681 test "$program_prefix" != NONE &&
682 program_transform_name="s,^,${program_prefix},; $program_transform_name"
683 # Use a double $ so make ignores it.
684 test "$program_suffix" != NONE &&
685 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
687 # sed with no file args requires a program.
688 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
690 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${MAKE-make} sets \${MAKE}" >&5
692 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
693 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 cat > conftestmake <<\EOF
698 @echo 'ac_maketemp="${MAKE}"'
700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
701 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
702 if test -n "$ac_maketemp"; then
703 eval ac_cv_prog_make_${ac_make}_set=yes
705 eval ac_cv_prog_make_${ac_make}_set=no
709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
710 echo "$ac_t""yes" 1>&6
713 echo "$ac_t""no" 1>&6
714 SET_MAKE="MAKE=${MAKE-make}"
722 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
723 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
725 cat >> confdefs.h <<EOF
726 #define PACKAGE "$PACKAGE"
729 cat >> confdefs.h <<EOF
730 #define VERSION "$VERSION"
735 missing_dir=`cd $ac_aux_dir && pwd`
736 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
737 echo "configure:738: checking for working aclocal" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
743 echo "$ac_t""found" 1>&6
745 ACLOCAL="$missing_dir/missing aclocal"
746 echo "$ac_t""missing" 1>&6
749 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
750 echo "configure:751: checking for working autoconf" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
756 echo "$ac_t""found" 1>&6
758 AUTOCONF="$missing_dir/missing autoconf"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working automake""... $ac_c" 1>&6
763 echo "configure:764: checking for working automake" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (automake --version) < /dev/null > /dev/null 2>&1; then
769 echo "$ac_t""found" 1>&6
771 AUTOMAKE="$missing_dir/missing automake"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
776 echo "configure:777: checking for working autoheader" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
781 AUTOHEADER=autoheader
782 echo "$ac_t""found" 1>&6
784 AUTOHEADER="$missing_dir/missing autoheader"
785 echo "$ac_t""missing" 1>&6
788 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
789 echo "configure:790: checking for working makeinfo" >&5
790 # Run test in a subshell; some versions of sh will print an error if
791 # an executable is not found, even if stderr is redirected.
792 # Redirect stdin to placate older versions of autoconf. Sigh.
793 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
795 echo "$ac_t""found" 1>&6
797 MAKEINFO="$missing_dir/missing makeinfo"
798 echo "$ac_t""missing" 1>&6
806 for ac_prog in gawk mawk nawk awk
808 # Extract the first word of "$ac_prog", so it can be a program name with args.
809 set dummy $ac_prog; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$AWK"; then
816 ac_cv_prog_AWK="$AWK" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
823 ac_cv_prog_AWK="$ac_prog"
830 AWK="$ac_cv_prog_AWK"
831 if test -n "$AWK"; then
832 echo "$ac_t""$AWK" 1>&6
834 echo "$ac_t""no" 1>&6
837 test -n "$AWK" && break
840 # Find a good install program. We prefer a C program (faster),
841 # so one script is as good as another. But avoid the broken or
842 # incompatible versions:
843 # SysV /etc/install, /usr/sbin/install
844 # SunOS /usr/etc/install
847 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
850 # ./install, which can be erroneously created by make from ./install.sh.
851 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
852 echo "configure:853: checking for a BSD compatible install" >&5
853 if test -z "$INSTALL"; then
854 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
858 for ac_dir in $PATH; do
859 # Account for people who put trailing slashes in PATH elements.
861 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
863 # OSF1 and SCO ODT 3.0 have their own names for install.
864 # Don't use installbsd from OSF since it installs stuff as root
866 for ac_prog in ginstall scoinst install; do
867 if test -f $ac_dir/$ac_prog; then
868 if test $ac_prog = install &&
869 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
870 # AIX install. It has an incompatible calling convention.
873 ac_cv_path_install="$ac_dir/$ac_prog -c"
884 if test "${ac_cv_path_install+set}" = set; then
885 INSTALL="$ac_cv_path_install"
887 # As a last resort, use the slow shell script. We don't cache a
888 # path for INSTALL within a source directory, because that will
889 # break other packages using the cache if that directory is
890 # removed, or if the path is relative.
891 INSTALL="$ac_install_sh"
894 echo "$ac_t""$INSTALL" 1>&6
896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
897 # It thinks the first close brace ends the variable substitution.
898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
904 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
905 echo "configure:906: checking whether ${MAKE-make} sets \${MAKE}" >&5
906 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
907 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 cat > conftestmake <<\EOF
912 @echo 'ac_maketemp="${MAKE}"'
914 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
915 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
916 if test -n "$ac_maketemp"; then
917 eval ac_cv_prog_make_${ac_make}_set=yes
919 eval ac_cv_prog_make_${ac_make}_set=no
923 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
924 echo "$ac_t""yes" 1>&6
927 echo "$ac_t""no" 1>&6
928 SET_MAKE="MAKE=${MAKE-make}"
931 # Extract the first word of "ranlib", so it can be a program name with args.
932 set dummy ranlib; ac_word=$2
933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
934 echo "configure:935: checking for $ac_word" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 if test -n "$RANLIB"; then
939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
943 for ac_dir in $ac_dummy; do
944 test -z "$ac_dir" && ac_dir=.
945 if test -f $ac_dir/$ac_word; then
946 ac_cv_prog_RANLIB="ranlib"
951 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
954 RANLIB="$ac_cv_prog_RANLIB"
955 if test -n "$RANLIB"; then
956 echo "$ac_t""$RANLIB" 1>&6
958 echo "$ac_t""no" 1>&6
962 CFLAGS="$CFLAGS -I/usr/local/include"
963 LDFLAGS="$LDFLAGS -L/usr/local/lib"
964 # Extract the first word of "gcc", so it can be a program name with args.
965 set dummy gcc; ac_word=$2
966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
967 echo "configure:968: checking for $ac_word" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 if test -n "$CC"; then
972 ac_cv_prog_CC="$CC" # Let the user override the test.
974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
976 for ac_dir in $ac_dummy; do
977 test -z "$ac_dir" && ac_dir=.
978 if test -f $ac_dir/$ac_word; then
987 if test -n "$CC"; then
988 echo "$ac_t""$CC" 1>&6
990 echo "$ac_t""no" 1>&6
993 if test -z "$CC"; then
994 # Extract the first word of "cc", so it can be a program name with args.
995 set dummy cc; ac_word=$2
996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
997 echo "configure:998: checking for $ac_word" >&5
998 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 if test -n "$CC"; then
1002 ac_cv_prog_CC="$CC" # Let the user override the test.
1004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1007 for ac_dir in $ac_dummy; do
1008 test -z "$ac_dir" && ac_dir=.
1009 if test -f $ac_dir/$ac_word; then
1010 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1011 ac_prog_rejected=yes
1019 if test $ac_prog_rejected = yes; then
1020 # We found a bogon in the path, so make sure we never use it.
1021 set dummy $ac_cv_prog_CC
1023 if test $# -gt 0; then
1024 # We chose a different compiler from the bogus one.
1025 # However, it has the same basename, so the bogon will be chosen
1026 # first if we set CC to just the basename; use the full file name.
1028 set dummy "$ac_dir/$ac_word" "$@"
1036 if test -n "$CC"; then
1037 echo "$ac_t""$CC" 1>&6
1039 echo "$ac_t""no" 1>&6
1042 if test -z "$CC"; then
1043 case "`uname -s`" in
1045 # Extract the first word of "cl", so it can be a program name with args.
1046 set dummy cl; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 if test -n "$CC"; then
1053 ac_cv_prog_CC="$CC" # Let the user override the test.
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1057 for ac_dir in $ac_dummy; do
1058 test -z "$ac_dir" && ac_dir=.
1059 if test -f $ac_dir/$ac_word; then
1068 if test -n "$CC"; then
1069 echo "$ac_t""$CC" 1>&6
1071 echo "$ac_t""no" 1>&6
1076 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1079 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1084 ac_cpp='$CPP $CPPFLAGS'
1085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1087 cross_compiling=$ac_cv_prog_cc_cross
1089 cat > conftest.$ac_ext << EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097 ac_cv_prog_cc_works=yes
1098 # If we can't run a trivial program, we are probably using a cross compiler.
1099 if (./conftest; exit) 2>/dev/null; then
1100 ac_cv_prog_cc_cross=no
1102 ac_cv_prog_cc_cross=yes
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1107 ac_cv_prog_cc_works=no
1111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112 ac_cpp='$CPP $CPPFLAGS'
1113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115 cross_compiling=$ac_cv_prog_cc_cross
1117 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1118 if test $ac_cv_prog_cc_works = no; then
1119 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1121 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1123 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1124 cross_compiling=$ac_cv_prog_cc_cross
1126 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether we are using GNU C" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 cat > conftest.c <<EOF
1136 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1143 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1145 if test $ac_cv_prog_gcc = yes; then
1151 ac_test_CFLAGS="${CFLAGS+set}"
1152 ac_save_CFLAGS="$CFLAGS"
1154 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether ${CC-cc} accepts -g" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 echo 'void f(){}' > conftest.c
1160 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1169 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1170 if test "$ac_test_CFLAGS" = set; then
1171 CFLAGS="$ac_save_CFLAGS"
1172 elif test $ac_cv_prog_cc_g = yes; then
1173 if test "$GCC" = yes; then
1179 if test "$GCC" = yes; then
1186 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1188 # Extract the first word of "$ac_prog", so it can be a program name with args.
1189 set dummy $ac_prog; ac_word=$2
1190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1191 echo "configure:1192: checking for $ac_word" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 if test -n "$CXX"; then
1196 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1200 for ac_dir in $ac_dummy; do
1201 test -z "$ac_dir" && ac_dir=.
1202 if test -f $ac_dir/$ac_word; then
1203 ac_cv_prog_CXX="$ac_prog"
1210 CXX="$ac_cv_prog_CXX"
1211 if test -n "$CXX"; then
1212 echo "$ac_t""$CXX" 1>&6
1214 echo "$ac_t""no" 1>&6
1217 test -n "$CXX" && break
1219 test -n "$CXX" || CXX="gcc"
1222 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1227 ac_cpp='$CXXCPP $CPPFLAGS'
1228 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1229 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1230 cross_compiling=$ac_cv_prog_cxx_cross
1232 cat > conftest.$ac_ext << EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1237 int main(){return(0);}
1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1240 ac_cv_prog_cxx_works=yes
1241 # If we can't run a trivial program, we are probably using a cross compiler.
1242 if (./conftest; exit) 2>/dev/null; then
1243 ac_cv_prog_cxx_cross=no
1245 ac_cv_prog_cxx_cross=yes
1248 echo "configure: failed program was:" >&5
1249 cat conftest.$ac_ext >&5
1250 ac_cv_prog_cxx_works=no
1254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1255 ac_cpp='$CPP $CPPFLAGS'
1256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1258 cross_compiling=$ac_cv_prog_cc_cross
1260 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1261 if test $ac_cv_prog_cxx_works = no; then
1262 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1264 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1266 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1267 cross_compiling=$ac_cv_prog_cxx_cross
1269 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether we are using GNU C++" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 cat > conftest.C <<EOF
1279 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1286 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1288 if test $ac_cv_prog_gxx = yes; then
1294 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1295 ac_save_CXXFLAGS="$CXXFLAGS"
1297 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether ${CXX-g++} accepts -g" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 echo 'void f(){}' > conftest.cc
1303 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1304 ac_cv_prog_cxx_g=yes
1312 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1313 if test "$ac_test_CXXFLAGS" = set; then
1314 CXXFLAGS="$ac_save_CXXFLAGS"
1315 elif test $ac_cv_prog_cxx_g = yes; then
1316 if test "$GXX" = yes; then
1322 if test "$GXX" = yes; then
1329 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1330 echo "configure:1331: checking whether byte ordering is bigendian" >&5
1331 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 ac_cv_c_bigendian=unknown
1335 # See if sys/param.h defines the BYTE_ORDER macro.
1336 cat > conftest.$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339 #include <sys/types.h>
1340 #include <sys/param.h>
1343 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1348 if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1350 # It does; now see whether it defined to BIG_ENDIAN or not.
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1354 #include <sys/types.h>
1355 #include <sys/param.h>
1358 #if BYTE_ORDER != BIG_ENDIAN
1363 if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1365 ac_cv_c_bigendian=yes
1367 echo "configure: failed program was:" >&5
1368 cat conftest.$ac_ext >&5
1370 ac_cv_c_bigendian=no
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1378 if test $ac_cv_c_bigendian = unknown; then
1379 if test "$cross_compiling" = yes; then
1380 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1386 /* Are we little or big endian? From Harbison&Steele. */
1390 char c[sizeof (long)];
1393 exit (u.c[sizeof (long) - 1] == 1);
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1398 ac_cv_c_bigendian=no
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1403 ac_cv_c_bigendian=yes
1411 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1412 if test $ac_cv_c_bigendian = yes; then
1413 cat >> confdefs.h <<\EOF
1414 #define WORDS_BIGENDIAN 1
1420 # Extract the first word of "wx-config", so it can be a program name with args.
1421 set dummy wx-config; ac_word=$2
1422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1423 echo "configure:1424: checking for $ac_word" >&5
1424 if eval "test \"`echo '$''{'ac_cv_path_wxconfig'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1429 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
1432 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a dos path.
1435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1437 for ac_dir in $ac_dummy; do
1438 test -z "$ac_dir" && ac_dir=.
1439 if test -f $ac_dir/$ac_word; then
1440 ac_cv_path_wxconfig="$ac_dir/$ac_word"
1448 wxconfig="$ac_cv_path_wxconfig"
1449 if test -n "$wxconfig"; then
1450 echo "$ac_t""$wxconfig" 1>&6
1452 echo "$ac_t""no" 1>&6
1458 # Make sure we can run config.sub.
1459 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1460 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1463 echo $ac_n "checking host system type""... $ac_c" 1>&6
1464 echo "configure:1465: checking host system type" >&5
1467 case "$host_alias" in
1471 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1472 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1474 *) host_alias=$nonopt ;;
1478 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1479 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$ac_t""$host" 1>&6
1484 echo $ac_n "checking for inline""... $ac_c" 1>&6
1485 echo "configure:1486: checking for inline" >&5
1486 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1490 for ac_kw in inline __inline__ __inline; do
1491 cat > conftest.$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1499 if { (eval echo configure:1500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1501 ac_cv_c_inline=$ac_kw; break
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1511 echo "$ac_t""$ac_cv_c_inline" 1>&6
1512 case "$ac_cv_c_inline" in
1514 no) cat >> confdefs.h <<\EOF
1518 *) cat >> confdefs.h <<EOF
1519 #define inline $ac_cv_c_inline
1524 echo $ac_n "checking size of short""... $ac_c" 1>&6
1525 echo "configure:1526: checking size of short" >&5
1526 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 if test "$cross_compiling" = yes; then
1530 ac_cv_sizeof_short=2
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1538 FILE *f=fopen("conftestval", "w");
1540 fprintf(f, "%d\n", sizeof(short));
1544 if { (eval echo configure:1545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1546 ac_cv_sizeof_short=`cat conftestval`
1548 echo "configure: failed program was:" >&5
1549 cat conftest.$ac_ext >&5
1551 ac_cv_sizeof_short=0
1557 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1558 cat >> confdefs.h <<EOF
1559 #define SIZEOF_SHORT $ac_cv_sizeof_short
1563 echo $ac_n "checking size of int""... $ac_c" 1>&6
1564 echo "configure:1565: checking size of int" >&5
1565 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1568 if test "$cross_compiling" = yes; then
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1577 FILE *f=fopen("conftestval", "w");
1579 fprintf(f, "%d\n", sizeof(int));
1583 if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1585 ac_cv_sizeof_int=`cat conftestval`
1587 echo "configure: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1596 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1597 cat >> confdefs.h <<EOF
1598 #define SIZEOF_INT $ac_cv_sizeof_int
1602 echo $ac_n "checking size of long""... $ac_c" 1>&6
1603 echo "configure:1604: checking size of long" >&5
1604 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 if test "$cross_compiling" = yes; then
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1616 FILE *f=fopen("conftestval", "w");
1618 fprintf(f, "%d\n", sizeof(long));
1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1624 ac_cv_sizeof_long=`cat conftestval`
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1635 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1636 cat >> confdefs.h <<EOF
1637 #define SIZEOF_LONG $ac_cv_sizeof_long
1641 echo $ac_n "checking size of float""... $ac_c" 1>&6
1642 echo "configure:1643: checking size of float" >&5
1643 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 if test "$cross_compiling" = yes; then
1647 ac_cv_sizeof_float=4
1649 cat > conftest.$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1655 FILE *f=fopen("conftestval", "w");
1657 fprintf(f, "%d\n", sizeof(float));
1661 if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1663 ac_cv_sizeof_float=`cat conftestval`
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1668 ac_cv_sizeof_float=0
1674 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1675 cat >> confdefs.h <<EOF
1676 #define SIZEOF_FLOAT $ac_cv_sizeof_float
1680 echo $ac_n "checking size of double""... $ac_c" 1>&6
1681 echo "configure:1682: checking size of double" >&5
1682 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 if test "$cross_compiling" = yes; then
1686 ac_cv_sizeof_double=8
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1694 FILE *f=fopen("conftestval", "w");
1696 fprintf(f, "%d\n", sizeof(double));
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1702 ac_cv_sizeof_double=`cat conftestval`
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 ac_cv_sizeof_double=0
1713 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1714 cat >> confdefs.h <<EOF
1715 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1720 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1721 echo "configure:1722: checking for deflate in -lz" >&5
1722 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 ac_save_LIBS="$LIBS"
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1731 /* Override any gcc2 internal prototype to avoid an error. */
1732 /* We use char because int might match the return type of a gcc2
1733 builtin and then its argument prototype would still apply. */
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1742 eval "ac_cv_lib_$ac_lib_var=yes"
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 eval "ac_cv_lib_$ac_lib_var=no"
1750 LIBS="$ac_save_LIBS"
1753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1754 echo "$ac_t""yes" 1>&6
1757 echo "$ac_t""no" 1>&6
1758 zlib="false" ; echo "configure: warning: zlib missing. Will need zlib for PNG support" 1>&2
1761 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1762 echo "configure:1763: checking for sin in -lm" >&5
1763 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 ac_save_LIBS="$LIBS"
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1772 /* Override any gcc2 internal prototype to avoid an error. */
1773 /* We use char because int might match the return type of a gcc2
1774 builtin and then its argument prototype would still apply. */
1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1783 eval "ac_cv_lib_$ac_lib_var=yes"
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1788 eval "ac_cv_lib_$ac_lib_var=no"
1791 LIBS="$ac_save_LIBS"
1794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1795 echo "$ac_t""yes" 1>&6
1796 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1798 cat >> confdefs.h <<EOF
1799 #define $ac_tr_lib 1
1805 echo "$ac_t""no" 1>&6
1808 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1809 echo "configure:1810: checking for main in -lcurses" >&5
1810 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 ac_save_LIBS="$LIBS"
1815 LIBS="-lcurses $LIBS"
1816 cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1824 if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1826 eval "ac_cv_lib_$ac_lib_var=yes"
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 eval "ac_cv_lib_$ac_lib_var=no"
1834 LIBS="$ac_save_LIBS"
1837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1838 echo "$ac_t""yes" 1>&6
1841 echo "$ac_t""no" 1>&6
1845 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1846 echo "configure:1847: checking for main in -lncurses" >&5
1847 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 ac_save_LIBS="$LIBS"
1852 LIBS="-lncurses $LIBS"
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1861 if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1863 eval "ac_cv_lib_$ac_lib_var=yes"
1865 echo "configure: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1868 eval "ac_cv_lib_$ac_lib_var=no"
1871 LIBS="$ac_save_LIBS"
1874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1875 echo "$ac_t""yes" 1>&6
1878 echo "$ac_t""no" 1>&6
1882 echo $ac_n "checking for main in -lg2""... $ac_c" 1>&6
1883 echo "configure:1884: checking for main in -lg2" >&5
1884 ac_lib_var=`echo g2'_'main | sed 'y%./+-%__p_%'`
1885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 ac_save_LIBS="$LIBS"
1890 cat > conftest.$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1898 if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1900 eval "ac_cv_lib_$ac_lib_var=yes"
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 eval "ac_cv_lib_$ac_lib_var=no"
1908 LIBS="$ac_save_LIBS"
1911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1912 echo "$ac_t""yes" 1>&6
1915 echo "$ac_t""no" 1>&6
1919 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1920 echo "configure:1921: checking for main in -lreadline" >&5
1921 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 ac_save_LIBS="$LIBS"
1926 LIBS="-lreadline $LIBS"
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1935 if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1937 eval "ac_cv_lib_$ac_lib_var=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 eval "ac_cv_lib_$ac_lib_var=no"
1945 LIBS="$ac_save_LIBS"
1948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1949 echo "$ac_t""yes" 1>&6
1950 readline=true; cat >> confdefs.h <<\EOF
1951 #define HAVE_READLINE 1
1955 echo "$ac_t""no" 1>&6
1959 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1960 echo "configure:1961: checking for main in -lncurses" >&5
1961 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 ac_save_LIBS="$LIBS"
1966 LIBS="-lncurses $LIBS"
1967 cat > conftest.$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1975 if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1977 eval "ac_cv_lib_$ac_lib_var=yes"
1979 echo "configure: failed program was:" >&5
1980 cat conftest.$ac_ext >&5
1982 eval "ac_cv_lib_$ac_lib_var=no"
1985 LIBS="$ac_save_LIBS"
1988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1989 echo "$ac_t""yes" 1>&6
1990 ncurses=true; cat >> confdefs.h <<\EOF
1991 #define HAVE_NCURSES 1
1995 echo "$ac_t""no" 1>&6
1999 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2000 echo "configure:2001: checking for main in -lcurses" >&5
2001 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 ac_save_LIBS="$LIBS"
2006 LIBS="-lcurses $LIBS"
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2015 if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2017 eval "ac_cv_lib_$ac_lib_var=yes"
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2022 eval "ac_cv_lib_$ac_lib_var=no"
2025 LIBS="$ac_save_LIBS"
2028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2029 echo "$ac_t""yes" 1>&6
2030 curses=true; cat >> confdefs.h <<\EOF
2031 #define HAVE_CURSES 1
2035 echo "$ac_t""no" 1>&6
2040 echo $ac_n "checking for main in -lwx_gtk""... $ac_c" 1>&6
2041 echo "configure:2042: checking for main in -lwx_gtk" >&5
2042 ac_lib_var=`echo wx_gtk'_'main | sed 'y%./+-%__p_%'`
2043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 ac_save_LIBS="$LIBS"
2047 LIBS="-lwx_gtk $LIBS"
2048 cat > conftest.$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2056 if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2058 eval "ac_cv_lib_$ac_lib_var=yes"
2060 echo "configure: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2063 eval "ac_cv_lib_$ac_lib_var=no"
2066 LIBS="$ac_save_LIBS"
2069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2070 echo "$ac_t""yes" 1>&6
2071 wxwin=true; wx_gtk=true; cat >> confdefs.h <<\EOF
2072 #define HAVE_WXWINDOWS 1
2076 echo "$ac_t""no" 1>&6
2079 echo $ac_n "checking for main in -lwx""... $ac_c" 1>&6
2080 echo "configure:2081: checking for main in -lwx" >&5
2081 ac_lib_var=`echo wx'_'main | sed 'y%./+-%__p_%'`
2082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 ac_save_LIBS="$LIBS"
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2095 if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2097 eval "ac_cv_lib_$ac_lib_var=yes"
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2102 eval "ac_cv_lib_$ac_lib_var=no"
2105 LIBS="$ac_save_LIBS"
2108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 wxwin=true; wx_msw=true; cat >> confdefs.h <<\EOF
2111 #define HAVE_WXWINDOWS 1
2115 echo "$ac_t""no" 1>&6
2118 echo $ac_n "checking for main in -lhdf5""... $ac_c" 1>&6
2119 echo "configure:2120: checking for main in -lhdf5" >&5
2120 ac_lib_var=`echo hdf5'_'main | sed 'y%./+-%__p_%'`
2121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 ac_save_LIBS="$LIBS"
2125 LIBS="-lhdf5 -lz $LIBS"
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2134 if { (eval echo configure:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2136 eval "ac_cv_lib_$ac_lib_var=yes"
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2141 eval "ac_cv_lib_$ac_lib_var=no"
2144 LIBS="$ac_save_LIBS"
2147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2148 echo "$ac_t""yes" 1>&6
2151 echo "$ac_t""no" 1>&6
2155 echo $ac_n "checking for fftw_one in -lfftw""... $ac_c" 1>&6
2156 echo "configure:2157: checking for fftw_one in -lfftw" >&5
2157 ac_lib_var=`echo fftw'_'fftw_one | sed 'y%./+-%__p_%'`
2158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2161 ac_save_LIBS="$LIBS"
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166 /* Override any gcc2 internal prototype to avoid an error. */
2167 /* We use char because int might match the return type of a gcc2
2168 builtin and then its argument prototype would still apply. */
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2177 eval "ac_cv_lib_$ac_lib_var=yes"
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2182 eval "ac_cv_lib_$ac_lib_var=no"
2185 LIBS="$ac_save_LIBS"
2188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2189 echo "$ac_t""yes" 1>&6
2190 fftw=true; cat >> confdefs.h <<\EOF
2195 echo "$ac_t""no" 1>&6
2199 echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
2200 echo "configure:2201: checking for main in -lGL" >&5
2201 ac_lib_var=`echo GL'_'main | sed 'y%./+-%__p_%'`
2202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 ac_save_LIBS="$LIBS"
2206 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2215 if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217 eval "ac_cv_lib_$ac_lib_var=yes"
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 eval "ac_cv_lib_$ac_lib_var=no"
2225 LIBS="$ac_save_LIBS"
2228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2229 echo "$ac_t""yes" 1>&6
2232 echo "$ac_t""no" 1>&6
2236 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
2237 echo "configure:2238: checking for main in -lpthread" >&5
2238 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
2239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 ac_save_LIBS="$LIBS"
2243 LIBS="-lpthread $LIBS"
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2252 if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2254 eval "ac_cv_lib_$ac_lib_var=yes"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 eval "ac_cv_lib_$ac_lib_var=no"
2262 LIBS="$ac_save_LIBS"
2265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2266 echo "$ac_t""yes" 1>&6
2269 echo "$ac_t""no" 1>&6
2274 if test "$zlib" = "true" ; then
2275 echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
2276 echo "configure:2277: checking for main in -lpng" >&5
2277 ac_lib_var=`echo png'_'main | sed 'y%./+-%__p_%'`
2278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 ac_save_LIBS="$LIBS"
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2291 if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2293 eval "ac_cv_lib_$ac_lib_var=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 eval "ac_cv_lib_$ac_lib_var=no"
2301 LIBS="$ac_save_LIBS"
2304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2305 echo "$ac_t""yes" 1>&6
2306 png=true ; cat >> confdefs.h <<\EOF
2311 echo "$ac_t""no" 1>&6
2317 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2318 echo "configure:2319: checking how to run the C preprocessor" >&5
2319 # On Suns, sometimes $CPP names a directory.
2320 if test -n "$CPP" && test -d "$CPP"; then
2323 if test -z "$CPP"; then
2324 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 # This must be in double quotes, not single quotes, because CPP may get
2328 # substituted into the Makefile and "${CC-cc}" will confuse make.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp.
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2339 { (eval echo configure:2340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2341 if test -z "$ac_err"; then
2345 echo "configure: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2348 CPP="${CC-cc} -E -traditional-cpp"
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2356 { (eval echo configure:2357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2358 if test -z "$ac_err"; then
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2365 CPP="${CC-cc} -nologo -E"
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2373 { (eval echo configure:2374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2375 if test -z "$ac_err"; then
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2389 ac_cv_prog_CPP="$CPP"
2391 CPP="$ac_cv_prog_CPP"
2393 ac_cv_prog_CPP="$CPP"
2395 echo "$ac_t""$CPP" 1>&6
2397 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2398 echo "configure:2399: checking for ANSI C header files" >&5
2399 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2411 { (eval echo configure:2412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2413 if test -z "$ac_err"; then
2415 ac_cv_header_stdc=yes
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 ac_cv_header_stdc=no
2425 if test $ac_cv_header_stdc = yes; then
2426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2433 egrep "memchr" >/dev/null 2>&1; then
2437 ac_cv_header_stdc=no
2443 if test $ac_cv_header_stdc = yes; then
2444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2451 egrep "free" >/dev/null 2>&1; then
2455 ac_cv_header_stdc=no
2461 if test $ac_cv_header_stdc = yes; then
2462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2463 if test "$cross_compiling" = yes; then
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2470 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2471 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2473 int main () { int i; for (i = 0; i < 256; i++)
2474 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 ac_cv_header_stdc=no
2493 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2494 if test $ac_cv_header_stdc = yes; then
2495 cat >> confdefs.h <<\EOF
2496 #define STDC_HEADERS 1
2501 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
2503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2505 echo "configure:2506: checking for $ac_hdr" >&5
2506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2515 { (eval echo configure:2516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2517 if test -z "$ac_err"; then
2519 eval "ac_cv_header_$ac_safe=yes"
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2525 eval "ac_cv_header_$ac_safe=no"
2529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2530 echo "$ac_t""yes" 1>&6
2531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2532 cat >> confdefs.h <<EOF
2533 #define $ac_tr_hdr 1
2537 echo "$ac_t""no" 1>&6
2542 echo $ac_n "checking for working const""... $ac_c" 1>&6
2543 echo "configure:2544: checking for working const" >&5
2544 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2553 /* Ultrix mips cc rejects this. */
2554 typedef int charset[2]; const charset x;
2555 /* SunOS 4.1.1 cc rejects this. */
2556 char const *const *ccp;
2558 /* NEC SVR4.0.2 mips cc rejects this. */
2559 struct point {int x, y;};
2560 static struct point const zero = {0,0};
2561 /* AIX XL C 1.02.0.0 rejects this.
2562 It does not let you subtract one const X* pointer from another in an arm
2563 of an if-expression whose if-part is not a constant expression */
2564 const char *g = "string";
2565 ccp = &g + (g ? g-g : 0);
2566 /* HPUX 7.0 cc rejects these. */
2569 ccp = (char const *const *) p;
2570 { /* SCO 3.2v4 cc rejects this. */
2572 char const *s = 0 ? (char *) 0 : (char const *) 0;
2576 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2578 const int *foo = &x[0];
2581 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2582 typedef const int *iptr;
2586 { /* AIX XL C 1.02.0.0 rejects this saying
2587 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2588 struct s { int j; const int *ap[3]; };
2589 struct s *b; b->j = 5;
2591 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2597 if { (eval echo configure:2598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2609 echo "$ac_t""$ac_cv_c_const" 1>&6
2610 if test $ac_cv_c_const = no; then
2611 cat >> confdefs.h <<\EOF
2617 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2618 echo "configure:2619: checking for off_t" >&5
2619 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2625 #include <sys/types.h>
2631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2632 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2634 ac_cv_type_off_t=yes
2642 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2643 if test $ac_cv_type_off_t = no; then
2644 cat >> confdefs.h <<\EOF
2650 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2651 echo "configure:2652: checking for size_t" >&5
2652 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #include <sys/types.h>
2664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2665 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2667 ac_cv_type_size_t=yes
2670 ac_cv_type_size_t=no
2675 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2676 if test $ac_cv_type_size_t = no; then
2677 cat >> confdefs.h <<\EOF
2678 #define size_t unsigned
2683 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2684 echo "configure:2685: checking whether struct tm is in sys/time.h or time.h" >&5
2685 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 cat > conftest.$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2691 #include <sys/types.h>
2694 struct tm *tp; tp->tm_sec;
2697 if { (eval echo configure:2698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2699 ac_cv_struct_tm=time.h
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2704 ac_cv_struct_tm=sys/time.h
2709 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2710 if test $ac_cv_struct_tm = sys/time.h; then
2711 cat >> confdefs.h <<\EOF
2712 #define TM_IN_SYS_TIME 1
2718 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2719 echo "configure:2720: checking for vprintf" >&5
2720 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 /* System header to define __stub macros and hopefully few prototypes,
2727 which can conflict with char vprintf(); below. */
2729 /* Override any gcc2 internal prototype to avoid an error. */
2730 /* We use char because int might match the return type of a gcc2
2731 builtin and then its argument prototype would still apply. */
2736 /* The GNU C library defines this for functions which it implements
2737 to always fail with ENOSYS. Some functions are actually named
2738 something starting with __ and the normal name is an alias. */
2739 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2747 if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2749 eval "ac_cv_func_vprintf=yes"
2751 echo "configure: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2754 eval "ac_cv_func_vprintf=no"
2759 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2761 cat >> confdefs.h <<\EOF
2762 #define HAVE_VPRINTF 1
2766 echo "$ac_t""no" 1>&6
2769 if test "$ac_cv_func_vprintf" != yes; then
2770 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2771 echo "configure:2772: checking for _doprnt" >&5
2772 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 /* System header to define __stub macros and hopefully few prototypes,
2779 which can conflict with char _doprnt(); below. */
2781 /* Override any gcc2 internal prototype to avoid an error. */
2782 /* We use char because int might match the return type of a gcc2
2783 builtin and then its argument prototype would still apply. */
2788 /* The GNU C library defines this for functions which it implements
2789 to always fail with ENOSYS. Some functions are actually named
2790 something starting with __ and the normal name is an alias. */
2791 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2801 eval "ac_cv_func__doprnt=yes"
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2806 eval "ac_cv_func__doprnt=no"
2811 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 cat >> confdefs.h <<\EOF
2814 #define HAVE_DOPRNT 1
2818 echo "$ac_t""no" 1>&6
2823 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
2825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_func" >&5
2827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2833 /* System header to define __stub macros and hopefully few prototypes,
2834 which can conflict with char $ac_func(); below. */
2836 /* Override any gcc2 internal prototype to avoid an error. */
2837 /* We use char because int might match the return type of a gcc2
2838 builtin and then its argument prototype would still apply. */
2843 /* The GNU C library defines this for functions which it implements
2844 to always fail with ENOSYS. Some functions are actually named
2845 something starting with __ and the normal name is an alias. */
2846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2856 eval "ac_cv_func_$ac_func=yes"
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2861 eval "ac_cv_func_$ac_func=no"
2866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2867 echo "$ac_t""yes" 1>&6
2868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2869 cat >> confdefs.h <<EOF
2870 #define $ac_tr_func 1
2874 echo "$ac_t""no" 1>&6
2878 echo $ac_n "checking for basename""... $ac_c" 1>&6
2879 echo "configure:2880: checking for basename" >&5
2880 if eval "test \"`echo '$''{'ac_cv_func_basename'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2883 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2886 /* System header to define __stub macros and hopefully few prototypes,
2887 which can conflict with char basename(); below. */
2889 /* Override any gcc2 internal prototype to avoid an error. */
2890 /* We use char because int might match the return type of a gcc2
2891 builtin and then its argument prototype would still apply. */
2896 /* The GNU C library defines this for functions which it implements
2897 to always fail with ENOSYS. Some functions are actually named
2898 something starting with __ and the normal name is an alias. */
2899 #if defined (__stub_basename) || defined (__stub___basename)
2907 if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2909 eval "ac_cv_func_basename=yes"
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2914 eval "ac_cv_func_basename=no"
2919 if eval "test \"`echo '$ac_cv_func_'basename`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2923 echo "$ac_t""no" 1>&6
2926 echo $ac_n "checking for setjmp""... $ac_c" 1>&6
2927 echo "configure:2928: checking for setjmp" >&5
2928 if eval "test \"`echo '$''{'ac_cv_func_setjmp'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2934 /* System header to define __stub macros and hopefully few prototypes,
2935 which can conflict with char setjmp(); below. */
2937 /* Override any gcc2 internal prototype to avoid an error. */
2938 /* We use char because int might match the return type of a gcc2
2939 builtin and then its argument prototype would still apply. */
2944 /* The GNU C library defines this for functions which it implements
2945 to always fail with ENOSYS. Some functions are actually named
2946 something starting with __ and the normal name is an alias. */
2947 #if defined (__stub_setjmp) || defined (__stub___setjmp)
2955 if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2957 eval "ac_cv_func_setjmp=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 eval "ac_cv_func_setjmp=no"
2967 if eval "test \"`echo '$ac_cv_func_'setjmp`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2971 echo "$ac_t""no" 1>&6
2974 echo $ac_n "checking for setpriority""... $ac_c" 1>&6
2975 echo "configure:2976: checking for setpriority" >&5
2976 if eval "test \"`echo '$''{'ac_cv_func_setpriority'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 /* System header to define __stub macros and hopefully few prototypes,
2983 which can conflict with char setpriority(); below. */
2985 /* Override any gcc2 internal prototype to avoid an error. */
2986 /* We use char because int might match the return type of a gcc2
2987 builtin and then its argument prototype would still apply. */
2992 /* The GNU C library defines this for functions which it implements
2993 to always fail with ENOSYS. Some functions are actually named
2994 something starting with __ and the normal name is an alias. */
2995 #if defined (__stub_setpriority) || defined (__stub___setpriority)
3003 if { (eval echo configure:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3005 eval "ac_cv_func_setpriority=yes"
3007 echo "configure: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3010 eval "ac_cv_func_setpriority=no"
3015 if eval "test \"`echo '$ac_cv_func_'setpriority`\" = yes"; then
3016 echo "$ac_t""yes" 1>&6
3019 echo "$ac_t""no" 1>&6
3022 echo $ac_n "checking for time""... $ac_c" 1>&6
3023 echo "configure:3024: checking for time" >&5
3024 if eval "test \"`echo '$''{'ac_cv_func_time'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 /* System header to define __stub macros and hopefully few prototypes,
3031 which can conflict with char time(); below. */
3033 /* Override any gcc2 internal prototype to avoid an error. */
3034 /* We use char because int might match the return type of a gcc2
3035 builtin and then its argument prototype would still apply. */
3040 /* The GNU C library defines this for functions which it implements
3041 to always fail with ENOSYS. Some functions are actually named
3042 something starting with __ and the normal name is an alias. */
3043 #if defined (__stub_time) || defined (__stub___time)
3051 if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3053 eval "ac_cv_func_time=yes"
3055 echo "configure: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3058 eval "ac_cv_func_time=no"
3063 if eval "test \"`echo '$ac_cv_func_'time`\" = yes"; then
3064 echo "$ac_t""yes" 1>&6
3067 echo "$ac_t""no" 1>&6
3070 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3071 echo "configure:3072: checking for gettimeofday" >&5
3072 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 /* System header to define __stub macros and hopefully few prototypes,
3079 which can conflict with char gettimeofday(); below. */
3081 /* Override any gcc2 internal prototype to avoid an error. */
3082 /* We use char because int might match the return type of a gcc2
3083 builtin and then its argument prototype would still apply. */
3084 char gettimeofday();
3088 /* The GNU C library defines this for functions which it implements
3089 to always fail with ENOSYS. Some functions are actually named
3090 something starting with __ and the normal name is an alias. */
3091 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3101 eval "ac_cv_func_gettimeofday=yes"
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3106 eval "ac_cv_func_gettimeofday=no"
3111 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3112 echo "$ac_t""yes" 1>&6
3115 echo "$ac_t""no" 1>&6
3119 if test "${OSTYPE}" = "cygwin" ; then
3122 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3123 echo "configure:3124: checking for getopt_long" >&5
3124 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3127 cat > conftest.$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3130 /* System header to define __stub macros and hopefully few prototypes,
3131 which can conflict with char getopt_long(); below. */
3133 /* Override any gcc2 internal prototype to avoid an error. */
3134 /* We use char because int might match the return type of a gcc2
3135 builtin and then its argument prototype would still apply. */
3140 /* The GNU C library defines this for functions which it implements
3141 to always fail with ENOSYS. Some functions are actually named
3142 something starting with __ and the normal name is an alias. */
3143 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3151 if { (eval echo configure:3152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3153 eval "ac_cv_func_getopt_long=yes"
3155 echo "configure: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3158 eval "ac_cv_func_getopt_long=no"
3163 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3164 echo "$ac_t""yes" 1>&6
3167 echo "$ac_t""no" 1>&6
3173 if test "${getopt_long}" = "false" ; then
3174 my_includes="$my_includes -I../getopt"
3175 cat >> confdefs.h <<\EOF
3176 #define HAVE_GETOPT_LONG 1
3179 ctlibs_base="$ctlibs_base -lgetopt"
3180 LDFLAGS="$LDFLAGS -L../getopt"
3184 INCLUDED_GETOPT_LONG_TRUE=
3185 INCLUDED_GETOPT_LONG_FALSE='#'
3187 INCLUDED_GETOPT_LONG_TRUE='#'
3188 INCLUDED_GETOPT_LONG_FALSE=
3192 if test "${readline}" = "true" ; then
3193 ctlibs_base="$ctlibs_base -lreadline"
3194 if test "${ncurses}" = "true"; then
3195 ctlibs_base="$ctlibs_base -lncurses"
3196 elif test "${curses}" = "true"; then
3197 ctlibs_base="$ctlibs_base -lcurses"
3201 echo $ac_n "checking debug""... $ac_c" 1>&6
3202 echo "configure:3203: checking debug" >&5
3203 # Check whether --enable-debug or --disable-debug was given.
3204 if test "${enable_debug+set}" = set; then
3205 enableval="$enable_debug"
3206 case "${enableval}" in
3208 echo "$ac_t""yes" 1>&6
3211 echo "$ac_t""no" 1>&6
3213 *) echo "$ac_t""bad value ${enableval} for --enable-debug" 1>&6
3217 debug=false; echo "$ac_t""no" 1>&6
3222 if test "$debug" = "true"; then
3230 if test "$debug" = "true" ; then
3232 cat >> confdefs.h <<\EOF
3237 CFLAGS="-O3 -DNDEBUG -fomit-frame-pointer"
3238 cat >> confdefs.h <<\EOF
3244 echo $ac_n "checking sstream""... $ac_c" 1>&6
3245 echo "configure:3246: checking sstream" >&5
3246 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
3247 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_SSTREAM 1
3252 echo "$ac_t""yes" 1>&6
3254 echo "$ac_t""no" 1>&6
3257 if test "${pthread}" = "true" ; then
3259 if test -n "$GCC"; then
3260 CFLAGS="$CFLAGS -pthread -D_REENTRANT"
3263 cat >> confdefs.h <<\EOF
3264 #define HAVE_WXTHREADS 1
3270 if test -n "$GCC"; then
3271 CFLAGS="$CFLAGS -Wall"
3274 echo $ac_n "checking whether to enable verbose warnings""... $ac_c" 1>&6
3275 echo "configure:3276: checking whether to enable verbose warnings" >&5
3276 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
3277 if test "${enable_verbose_warnings+set}" = set; then
3278 enableval="$enable_verbose_warnings"
3279 case "$enableval" in
3281 echo "$ac_t""yes" 1>&6
3283 if test -n "$GCC"; then
3288 if test -n "$GCC"; then
3289 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
3293 if test -n "$GCC"; then
3294 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
3298 if test -n "$GCC"; then
3299 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
3303 if test -n "$GCC"; then
3304 CFLAGS="$CFLAGS -pedantic"
3308 if test -n "$GCC"; then
3309 CFLAGS="$CFLAGS -Wredundant-decls"
3315 echo "$ac_t""no" 1>&6
3319 echo "$ac_t""no" 1>&6
3324 echo $ac_n "checking static executables""... $ac_c" 1>&6
3325 echo "configure:3326: checking static executables" >&5
3326 # Check whether --enable-static or --disable-static was given.
3327 if test "${enable_static+set}" = set; then
3328 enableval="$enable_static"
3329 case "$enableval" in
3331 echo "$ac_t""yes" 1>&6
3333 if test -n "$GCC"; then
3334 CFLAGS="$CFLAGS --static"
3339 echo "$ac_t""no" 1>&6
3343 echo "$ac_t""no" 1>&6
3348 # Check whether --with-lam or --without-lam was given.
3349 if test "${with_lam+set}" = set; then
3351 if test "$withval" != "no" ; then
3358 if test "$withval" != "no" ; then
3359 if test "$prefix" != "NONE" ; then
3360 trylamdir="$trylamdir $prefix"
3363 echo $ac_n "checking for LAM MPI installation""... $ac_c" 1>&6
3364 echo "configure:3365: checking for LAM MPI installation" >&5
3365 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
3366 if test -x "$testlamdir/bin/hcp" ; then
3367 if test "$testlamdir" != "/usr"; then
3368 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
3369 CFLAGS="$CFLAGS -I$testlamdir/include"
3371 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
3372 lamdir="$testlamdir"
3379 echo "$ac_t""$lamdir" 1>&6
3381 echo "$ac_t""no" 1>&6
3385 # Check whether --with-ctn or --without-ctn was given.
3386 if test "${with_ctn+set}" = set; then
3388 if test "$withval" != "no" ; then
3395 if test "$withval" != "no" ; then
3396 if test "$prefix" != "NONE" ; then
3397 tryctndir="$tryctndir $prefix"
3400 echo $ac_n "checking for CTN DICOM installation""... $ac_c" 1>&6
3401 echo "configure:3402: checking for CTN DICOM installation" >&5
3402 for testctndir in "." $tryctndir /usr/local /usr/local/ctn /usr /usr/ctn /opt /opt/ctn ; do
3403 if test -f "$testctndir/lib/libctn.a" ; then
3404 if test "$testctndir" != "/usr"; then
3405 LDFLAGS="$LDFLAGS -L$testctndir/lib"
3406 CFLAGS="$CFLAGS -I$testctndir/include"
3408 ctndir="$testctndir"
3410 cat >> confdefs.h <<\EOF
3411 #define HAVE_CTN_DICOM 1
3417 echo "$ac_t""$ctndir" 1>&6
3419 echo "$ac_t""no" 1>&6
3424 echo $ac_n "checking for web access""... $ac_c" 1>&6
3425 echo "configure:3426: checking for web access" >&5
3426 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
3427 if test "${with_cgibin_dir+set}" = set; then
3428 withval="$with_cgibin_dir"
3429 cgibindir=$withval ;
3433 # Check whether --with-cgibin-url or --without-cgibin-url was given.
3434 if test "${with_cgibin_url+set}" = set; then
3435 withval="$with_cgibin_url"
3436 cgibinurl=$withval ;
3440 # Check whether --with-webdata-dir or --without-webdata-dir was given.
3441 if test "${with_webdata_dir+set}" = set; then
3442 withval="$with_webdata_dir"
3443 webdatadir=$withval ;
3447 # Check whether --with-webdata-url or --without-webdata-url was given.
3448 if test "${with_webdata_url+set}" = set; then
3449 withval="$with_webdata_url"
3450 webdataurl=$withval ;
3454 # Check whether --with-html-dir or --without-html-dir was given.
3455 if test "${with_html_dir+set}" = set; then
3456 withval="$with_html_dir"
3461 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
3462 cgiprograms="ctsim.cgi ctsim.conf"
3466 if test -n "$htmldir" ; then
3467 htmldata=simulate.html
3472 if test -n "$htmldir"; then
3480 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
3483 echo "$ac_t""yes" 1>&6
3484 if test -z "$cgibindir" ; then
3485 { echo "configure: error: --with-cgibin-dir not set for web access" 1>&2; exit 1; }
3486 elif test -z "$cgibinurl" ; then
3487 { echo "configure: error: --with-cgibin-url not set for web access" 1>&2; exit 1; }
3488 elif test -z "$webdatadir" ; then
3489 { echo "configure: error: --with-webdata-dir not set for web access" 1>&2; exit 1; }
3490 elif test -z "$webdataurl" ; then
3491 { echo "configure: error: --with-webdata-url not set for web access" 1>&2; exit 1; }
3492 elif test -z "$htmldir" ; then
3493 { echo "configure: error: --with-html-dir not set for web access" 1>&2; exit 1; }
3496 echo "$ac_t""no" 1>&6
3501 if test -n "$lamdir"; then
3510 # If we find X, set shell vars x_includes and x_libraries to the
3511 # paths, otherwise set no_x=yes.
3512 # Uses ac_ vars as temps to allow command line to override cache and checks.
3513 # --without-x overrides everything else, but does not touch the cache.
3514 echo $ac_n "checking for X""... $ac_c" 1>&6
3515 echo "configure:3516: checking for X" >&5
3517 # Check whether --with-x or --without-x was given.
3518 if test "${with_x+set}" = set; then
3523 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3524 if test "x$with_x" = xno; then
3525 # The user explicitly disabled X.
3528 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3529 # Both variables are already set.
3532 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3535 # One or both of the vars are not set, and there is no cached value.
3536 ac_x_includes=NO ac_x_libraries=NO
3538 if mkdir conftestdir; then
3540 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3541 cat > Imakefile <<'EOF'
3543 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3545 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3547 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3548 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3549 for ac_extension in a so sl; do
3550 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3551 test -f $ac_im_libdir/libX11.$ac_extension; then
3552 ac_im_usrlibdir=$ac_im_libdir; break
3555 # Screen out bogus values from the imake configuration. They are
3556 # bogus both because they are the default anyway, and because
3557 # using them would break gcc on systems where it needs fixed includes.
3558 case "$ac_im_incroot" in
3560 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3562 case "$ac_im_usrlibdir" in
3564 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3571 if test "$ac_x_includes" = NO; then
3572 # Guess where to find include files, by looking for this one X11 .h file.
3573 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3575 # First, try using that file with no special directory specified.
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <$x_direct_test_include>
3581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3582 { (eval echo configure:3583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3584 if test -z "$ac_err"; then
3586 # We can compile using X headers with no special include directory.
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3593 # Look for the header file in a standard set of common directories.
3594 # Check X11 before X11Rn because it is often a symlink to the current release.
3597 /usr/X11R6/include \
3598 /usr/X11R5/include \
3599 /usr/X11R4/include \
3602 /usr/include/X11R6 \
3603 /usr/include/X11R5 \
3604 /usr/include/X11R4 \
3606 /usr/local/X11/include \
3607 /usr/local/X11R6/include \
3608 /usr/local/X11R5/include \
3609 /usr/local/X11R4/include \
3611 /usr/local/include/X11 \
3612 /usr/local/include/X11R6 \
3613 /usr/local/include/X11R5 \
3614 /usr/local/include/X11R4 \
3618 /usr/XFree86/include/X11 \
3621 /usr/local/include \
3622 /usr/unsupported/include \
3623 /usr/athena/include \
3624 /usr/local/x11r5/include \
3625 /usr/lpp/Xamples/include \
3627 /usr/openwin/include \
3628 /usr/openwin/share/include \
3631 if test -r "$ac_dir/$x_direct_test_include"; then
3632 ac_x_includes=$ac_dir
3638 fi # $ac_x_includes = NO
3640 if test "$ac_x_libraries" = NO; then
3641 # Check for the libraries.
3643 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3644 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3646 # See if we find them without any special options.
3647 # Don't add to $LIBS permanently.
3648 ac_save_LIBS="$LIBS"
3649 LIBS="-l$x_direct_test_library $LIBS"
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3655 ${x_direct_test_function}()
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3660 LIBS="$ac_save_LIBS"
3661 # We can link X programs with no special library path.
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 LIBS="$ac_save_LIBS"
3668 # First see if replacing the include by lib works.
3669 # Check X11 before X11Rn because it is often a symlink to the current release.
3670 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3681 /usr/local/X11/lib \
3682 /usr/local/X11R6/lib \
3683 /usr/local/X11R5/lib \
3684 /usr/local/X11R4/lib \
3686 /usr/local/lib/X11 \
3687 /usr/local/lib/X11R6 \
3688 /usr/local/lib/X11R5 \
3689 /usr/local/lib/X11R4 \
3693 /usr/XFree86/lib/X11 \
3697 /usr/unsupported/lib \
3699 /usr/local/x11r5/lib \
3700 /usr/lpp/Xamples/lib \
3704 /usr/openwin/share/lib \
3707 for ac_extension in a so sl; do
3708 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3709 ac_x_libraries=$ac_dir
3716 fi # $ac_x_libraries = NO
3718 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3719 # Didn't find X anywhere. Cache the known absence of X.
3720 ac_cv_have_x="have_x=no"
3722 # Record where we found X for the cache.
3723 ac_cv_have_x="have_x=yes \
3724 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3728 eval "$ac_cv_have_x"
3731 if test "$have_x" != yes; then
3732 echo "$ac_t""$have_x" 1>&6
3735 # If each of the values was on the command line, it overrides each guess.
3736 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3737 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3738 # Update the cache value to reflect the command line values.
3739 ac_cv_have_x="have_x=yes \
3740 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3741 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3744 if test "$no_x" = yes; then
3745 # Not all programs may use this symbol, but it does not hurt to define it.
3746 cat >> confdefs.h <<\EOF
3747 #define X_DISPLAY_MISSING 1
3750 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3752 if test -n "$x_includes"; then
3753 X_CFLAGS="$X_CFLAGS -I$x_includes"
3756 # It would also be nice to do this for all -L options, not just this one.
3757 if test -n "$x_libraries"; then
3758 X_LIBS="$X_LIBS -L$x_libraries"
3759 # For Solaris; some versions of Sun CC require a space after -R and
3760 # others require no space. Words are not sufficient . . . .
3761 case "`(uname -sr) 2>/dev/null`" in
3763 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3764 echo "configure:3765: checking whether -R must be followed by a space" >&5
3765 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3774 if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3784 if test $ac_R_nospace = yes; then
3785 echo "$ac_t""no" 1>&6
3786 X_LIBS="$X_LIBS -R$x_libraries"
3788 LIBS="$ac_xsave_LIBS -R $x_libraries"
3789 cat > conftest.$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3807 if test $ac_R_space = yes; then
3808 echo "$ac_t""yes" 1>&6
3809 X_LIBS="$X_LIBS -R $x_libraries"
3811 echo "$ac_t""neither works" 1>&6
3814 LIBS="$ac_xsave_LIBS"
3818 # Check for system-dependent libraries X programs must link with.
3819 # Do this before checking for the system-independent R6 libraries
3820 # (-lICE), since we may need -lsocket or whatever for X linking.
3822 if test "$ISC" = yes; then
3823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3825 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3826 # libraries were built with DECnet support. And karl@cs.umb.edu says
3827 # the Alpha needs dnet_stub (dnet does not exist).
3828 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3829 echo "configure:3830: checking for dnet_ntoa in -ldnet" >&5
3830 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 ac_save_LIBS="$LIBS"
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3850 eval "ac_cv_lib_$ac_lib_var=yes"
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3855 eval "ac_cv_lib_$ac_lib_var=no"
3858 LIBS="$ac_save_LIBS"
3861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3862 echo "$ac_t""yes" 1>&6
3863 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3865 echo "$ac_t""no" 1>&6
3868 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3869 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3870 echo "configure:3871: checking for dnet_ntoa in -ldnet_stub" >&5
3871 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3875 ac_save_LIBS="$LIBS"
3876 LIBS="-ldnet_stub $LIBS"
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3891 eval "ac_cv_lib_$ac_lib_var=yes"
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3896 eval "ac_cv_lib_$ac_lib_var=no"
3899 LIBS="$ac_save_LIBS"
3902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3904 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3906 echo "$ac_t""no" 1>&6
3911 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3912 # to get the SysV transport functions.
3913 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3915 # The nsl library prevents programs from opening the X display
3916 # on Irix 5.2, according to dickey@clark.net.
3917 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3918 echo "configure:3919: checking for gethostbyname" >&5
3919 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 /* System header to define __stub macros and hopefully few prototypes,
3926 which can conflict with char gethostbyname(); below. */
3928 /* Override any gcc2 internal prototype to avoid an error. */
3929 /* We use char because int might match the return type of a gcc2
3930 builtin and then its argument prototype would still apply. */
3931 char gethostbyname();
3935 /* The GNU C library defines this for functions which it implements
3936 to always fail with ENOSYS. Some functions are actually named
3937 something starting with __ and the normal name is an alias. */
3938 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3946 if { (eval echo configure:3947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3948 eval "ac_cv_func_gethostbyname=yes"
3950 echo "configure: failed program was:" >&5
3951 cat conftest.$ac_ext >&5
3953 eval "ac_cv_func_gethostbyname=no"
3958 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3959 echo "$ac_t""yes" 1>&6
3962 echo "$ac_t""no" 1>&6
3965 if test $ac_cv_func_gethostbyname = no; then
3966 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3967 echo "configure:3968: checking for gethostbyname in -lnsl" >&5
3968 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 ac_save_LIBS="$LIBS"
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 /* Override any gcc2 internal prototype to avoid an error. */
3978 /* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3980 char gethostbyname();
3986 if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3988 eval "ac_cv_lib_$ac_lib_var=yes"
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3993 eval "ac_cv_lib_$ac_lib_var=no"
3996 LIBS="$ac_save_LIBS"
3999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4000 echo "$ac_t""yes" 1>&6
4001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4003 echo "$ac_t""no" 1>&6
4008 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4009 # socket/setsockopt and other routines are undefined under SCO ODT
4010 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4011 # on later versions), says simon@lia.di.epfl.ch: it contains
4012 # gethostby* variants that don't use the nameserver (or something).
4013 # -lsocket must be given before -lnsl if both are needed.
4014 # We assume that if connect needs -lnsl, so does gethostbyname.
4015 echo $ac_n "checking for connect""... $ac_c" 1>&6
4016 echo "configure:4017: checking for connect" >&5
4017 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4023 /* System header to define __stub macros and hopefully few prototypes,
4024 which can conflict with char connect(); below. */
4026 /* Override any gcc2 internal prototype to avoid an error. */
4027 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */
4033 /* The GNU C library defines this for functions which it implements
4034 to always fail with ENOSYS. Some functions are actually named
4035 something starting with __ and the normal name is an alias. */
4036 #if defined (__stub_connect) || defined (__stub___connect)
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4046 eval "ac_cv_func_connect=yes"
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4051 eval "ac_cv_func_connect=no"
4056 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4057 echo "$ac_t""yes" 1>&6
4060 echo "$ac_t""no" 1>&6
4063 if test $ac_cv_func_connect = no; then
4064 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4065 echo "configure:4066: checking for connect in -lsocket" >&5
4066 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4070 ac_save_LIBS="$LIBS"
4071 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 /* Override any gcc2 internal prototype to avoid an error. */
4076 /* We use char because int might match the return type of a gcc2
4077 builtin and then its argument prototype would still apply. */
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4086 eval "ac_cv_lib_$ac_lib_var=yes"
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4091 eval "ac_cv_lib_$ac_lib_var=no"
4094 LIBS="$ac_save_LIBS"
4097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4098 echo "$ac_t""yes" 1>&6
4099 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4101 echo "$ac_t""no" 1>&6
4106 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4107 echo $ac_n "checking for remove""... $ac_c" 1>&6
4108 echo "configure:4109: checking for remove" >&5
4109 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 /* System header to define __stub macros and hopefully few prototypes,
4116 which can conflict with char remove(); below. */
4118 /* Override any gcc2 internal prototype to avoid an error. */
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4125 /* The GNU C library defines this for functions which it implements
4126 to always fail with ENOSYS. Some functions are actually named
4127 something starting with __ and the normal name is an alias. */
4128 #if defined (__stub_remove) || defined (__stub___remove)
4136 if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4138 eval "ac_cv_func_remove=yes"
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4143 eval "ac_cv_func_remove=no"
4148 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4149 echo "$ac_t""yes" 1>&6
4152 echo "$ac_t""no" 1>&6
4155 if test $ac_cv_func_remove = no; then
4156 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4157 echo "configure:4158: checking for remove in -lposix" >&5
4158 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4162 ac_save_LIBS="$LIBS"
4163 LIBS="-lposix $LIBS"
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 /* Override any gcc2 internal prototype to avoid an error. */
4168 /* We use char because int might match the return type of a gcc2
4169 builtin and then its argument prototype would still apply. */
4176 if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4178 eval "ac_cv_lib_$ac_lib_var=yes"
4180 echo "configure: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4183 eval "ac_cv_lib_$ac_lib_var=no"
4186 LIBS="$ac_save_LIBS"
4189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4190 echo "$ac_t""yes" 1>&6
4191 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4193 echo "$ac_t""no" 1>&6
4198 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4199 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4200 echo "configure:4201: checking for shmat" >&5
4201 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4207 /* System header to define __stub macros and hopefully few prototypes,
4208 which can conflict with char shmat(); below. */
4210 /* Override any gcc2 internal prototype to avoid an error. */
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4217 /* The GNU C library defines this for functions which it implements
4218 to always fail with ENOSYS. Some functions are actually named
4219 something starting with __ and the normal name is an alias. */
4220 #if defined (__stub_shmat) || defined (__stub___shmat)
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4230 eval "ac_cv_func_shmat=yes"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4235 eval "ac_cv_func_shmat=no"
4240 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4241 echo "$ac_t""yes" 1>&6
4244 echo "$ac_t""no" 1>&6
4247 if test $ac_cv_func_shmat = no; then
4248 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4249 echo "configure:4250: checking for shmat in -lipc" >&5
4250 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 ac_save_LIBS="$LIBS"
4256 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure"
4258 #include "confdefs.h"
4259 /* Override any gcc2 internal prototype to avoid an error. */
4260 /* We use char because int might match the return type of a gcc2
4261 builtin and then its argument prototype would still apply. */
4268 if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4270 eval "ac_cv_lib_$ac_lib_var=yes"
4272 echo "configure: failed program was:" >&5
4273 cat conftest.$ac_ext >&5
4275 eval "ac_cv_lib_$ac_lib_var=no"
4278 LIBS="$ac_save_LIBS"
4281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4282 echo "$ac_t""yes" 1>&6
4283 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4285 echo "$ac_t""no" 1>&6
4291 # Check for libraries that X11R6 Xt/Xaw programs need.
4292 ac_save_LDFLAGS="$LDFLAGS"
4293 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4294 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4295 # check for ICE first), but we must link in the order -lSM -lICE or
4296 # we get undefined symbols. So assume we have SM if we have ICE.
4297 # These have to be linked with before -lX11, unlike the other
4298 # libraries we check for below, so use a different variable.
4299 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4300 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4301 echo "configure:4302: checking for IceConnectionNumber in -lICE" >&5
4302 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 ac_save_LIBS="$LIBS"
4307 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4314 char IceConnectionNumber();
4317 IceConnectionNumber()
4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4322 eval "ac_cv_lib_$ac_lib_var=yes"
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4327 eval "ac_cv_lib_$ac_lib_var=no"
4330 LIBS="$ac_save_LIBS"
4333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4334 echo "$ac_t""yes" 1>&6
4335 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4337 echo "$ac_t""no" 1>&6
4340 LDFLAGS="$ac_save_LDFLAGS"
4351 X_TOOLKIT_LIBS="-lXt"
4352 X_BASIC_LIBS="-lXext -lX11 -lXmu"
4354 our_saved_LDFLAGS="$LDFLAGS"
4355 LDFLAGS="$X_LIBS $LDFLAGS"
4356 echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
4357 echo "configure:4358: checking for XtToolkitThreadInitialize in -lXt" >&5
4358 ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
4359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 ac_save_LIBS="$LIBS"
4363 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
4364 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4367 /* Override any gcc2 internal prototype to avoid an error. */
4368 /* We use char because int might match the return type of a gcc2
4369 builtin and then its argument prototype would still apply. */
4370 char XtToolkitThreadInitialize();
4373 XtToolkitThreadInitialize()
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4378 eval "ac_cv_lib_$ac_lib_var=yes"
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4383 eval "ac_cv_lib_$ac_lib_var=no"
4386 LIBS="$ac_save_LIBS"
4389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4391 cat >> confdefs.h <<\EOF
4392 #define X_THREAD_SUPPORT 1
4396 echo "$ac_t""no" 1>&6
4399 LDFLAGS="$our_saved_LDFLAGS"
4401 our_saved_LDFLAGS="$LDFLAGS"
4402 LDFLAGS="$X_LIBS $LDFLAGS"
4403 echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
4404 echo "configure:4405: checking for XdbeQueryExtension in -lXext" >&5
4405 ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
4406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 ac_save_LIBS="$LIBS"
4410 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4417 char XdbeQueryExtension();
4420 XdbeQueryExtension()
4423 if { (eval echo configure:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4425 eval "ac_cv_lib_$ac_lib_var=yes"
4427 echo "configure: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4430 eval "ac_cv_lib_$ac_lib_var=no"
4433 LIBS="$ac_save_LIBS"
4436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4438 cat >> confdefs.h <<\EOF
4439 #define HAVE_DBE_SUPPORT 1
4443 echo "$ac_t""no" 1>&6
4446 echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
4447 echo "configure:4448: checking for XmbufQueryExtension in -lXext" >&5
4448 ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
4449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 ac_save_LIBS="$LIBS"
4453 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 /* Override any gcc2 internal prototype to avoid an error. */
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4460 char XmbufQueryExtension();
4463 XmbufQueryExtension()
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4468 eval "ac_cv_lib_$ac_lib_var=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_lib_$ac_lib_var=no"
4476 LIBS="$ac_save_LIBS"
4479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 cat >> confdefs.h <<\EOF
4482 #define HAVE_MBX_SUPPORT 1
4486 echo "$ac_t""no" 1>&6
4489 LDFLAGS="$our_saved_LDFLAGS"
4490 our_saved_CPPFLAGS="$CPPFLAGS"
4491 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4492 for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
4494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_hdr" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4506 { (eval echo configure:4507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4508 if test -z "$ac_err"; then
4510 eval "ac_cv_header_$ac_safe=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_header_$ac_safe=no"
4520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4523 cat >> confdefs.h <<EOF
4524 #define $ac_tr_hdr 1
4528 echo "$ac_t""no" 1>&6
4532 CPPFLAGS="$our_saved_CPPFLAGS"
4536 if test "x$no_x" = "xyes"; then
4544 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
4547 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4549 echo $ac_n "checking for X""... $ac_c" 1>&6
4550 echo "configure:4551: checking for X" >&5
4551 if test "$no_x" != "yes" ; then
4552 cat >> confdefs.h <<\EOF
4565 cat >> confdefs.h <<\EOF
4569 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
4570 ctlib_graphics="$ctlibs_base -lctgraphics"
4571 echo "$ac_t""yes" 1>&6
4572 if test "$g2" = "true" ; then
4573 ctlib_graphics="$ctlib_graphics -lg2"
4574 cat >> confdefs.h <<\EOF
4579 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
4580 if test "$libgl" = "true" ; then
4581 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl -lglut -lGL -lGLU"
4584 if test "$wxwin" = "true" ; then
4585 cat >> confdefs.h <<\EOF
4599 echo "$ac_t""no" 1>&6
4602 if test "$png" = "true" ; then
4603 ctlibs_tools="$ctlibs_tools -lpng"
4605 if test "$zlib" = "true" ; then
4606 ctlibs_tools="$ctlibs_tools -lz"
4608 if test "$fftw" = "true" ; then
4609 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
4611 if test "$ctn" = "true"; then
4612 ctlibs_tools="$ctlibs_tools -lctn"
4615 echo $ac_n "checking for main in -ldmallocxx""... $ac_c" 1>&6
4616 echo "configure:4617: checking for main in -ldmallocxx" >&5
4617 ac_lib_var=`echo dmallocxx'_'main | sed 'y%./+-%__p_%'`
4618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 ac_save_LIBS="$LIBS"
4622 LIBS="-ldmallocxx $LIBS"
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4631 if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4633 eval "ac_cv_lib_$ac_lib_var=yes"
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4638 eval "ac_cv_lib_$ac_lib_var=no"
4641 LIBS="$ac_save_LIBS"
4644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4648 echo "$ac_t""no" 1>&6
4652 echo $ac_n "checking for enable-dmalloc""... $ac_c" 1>&6
4653 echo "configure:4654: checking for enable-dmalloc" >&5
4654 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4655 if test "${enable_dmalloc+set}" = set; then
4656 enableval="$enable_dmalloc"
4657 case "${enableval}" in
4658 yes) usedmalloc=true
4659 echo "$ac_t""yes" 1>&6
4661 no) usedmalloc=false
4662 echo "$ac_t""no" 1>&6
4664 *) echo "$ac_t""bad value ${enableval} for --enable-dmalloc" 1>&6
4668 usedmalloc=false; echo "$ac_t""no" 1>&6
4672 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
4673 ctlibs_tools="$ctlibs_tools -ldmallocxx"
4674 cat >> confdefs.h <<\EOF
4675 #define HAVE_DMALLOC 1
4678 echo "$ac_t""Using dmalloc" 1>&6
4681 if test "$wxwin" = "true" ; then
4682 if test "$wx_gtk" = "true" ; then
4683 wxcflags=`$wxconfig --cflags`
4684 wxlibs=`$wxconfig --libs`
4686 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
4687 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
4689 CFLAGS="$CFLAGS -I../include $wxcflags"
4690 ctlib_graphics="$ctlib_graphics $wxlibs"
4694 HAVE_WXWINDOWS_TRUE=
4695 HAVE_WXWINDOWS_FALSE='#'
4697 HAVE_WXWINDOWS_TRUE='#'
4698 HAVE_WXWINDOWS_FALSE=
4704 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
4705 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
4708 if test -n "$lamdir" ; then
4709 lamprograms="ctsimtext-lam"
4718 cat > confcache <<\EOF
4719 # This file is a shell script that caches the results of configure
4720 # tests run on this system so they can be shared between configure
4721 # scripts and configure runs. It is not useful on other systems.
4722 # If it contains results you don't want to keep, you may remove or edit it.
4724 # By default, configure uses ./config.cache as the cache file,
4725 # creating it if it does not exist already. You can give configure
4726 # the --cache-file=FILE option to use a different cache file; that is
4727 # what configure does when it calls configure scripts in
4728 # subdirectories, so they share the cache.
4729 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4730 # config.status only pays attention to the cache file if you give it the
4731 # --recheck option to rerun configure.
4734 # The following way of writing the cache mishandles newlines in values,
4735 # but we know of no workaround that is simple, portable, and efficient.
4736 # So, don't put newlines in cache variables' values.
4737 # Ultrix sh set writes to stderr and can't be redirected directly,
4738 # and sets the high bit in the cache file unless we assign to the vars.
4740 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4742 # `set' does not quote correctly, so add quotes (double-quote substitution
4743 # turns \\\\ into \\, and sed turns \\ into \).
4745 -e "s/'/'\\\\''/g" \
4746 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4749 # `set' quotes correctly as required by POSIX, so do not add quotes.
4750 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4753 if cmp -s $cache_file confcache; then
4756 if test -w $cache_file; then
4757 echo "updating cache $cache_file"
4758 cat confcache > $cache_file
4760 echo "not updating unwritable cache $cache_file"
4765 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4768 # Let make expand exec_prefix.
4769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4771 # Any assignment to VPATH causes Sun make to only execute
4772 # the first set of double-colon rules, so remove it if not needed.
4773 # If there is a colon in the path, we need to keep it.
4774 if test "x$srcdir" = x.; then
4775 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4778 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4780 DEFS=-DHAVE_CONFIG_H
4782 # Without the "./", some shells look in PATH for config.status.
4783 : ${CONFIG_STATUS=./config.status}
4785 echo creating $CONFIG_STATUS
4786 rm -f $CONFIG_STATUS
4787 cat > $CONFIG_STATUS <<EOF
4789 # Generated automatically by configure.
4790 # Run this file to recreate the current configuration.
4791 # This directory was configured as follows,
4792 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4794 # $0 $ac_configure_args
4796 # Compiler output produced by configure, useful for debugging
4797 # configure, is in ./config.log if it exists.
4799 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4802 case "\$ac_option" in
4803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4804 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4805 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4806 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4807 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4809 -help | --help | --hel | --he | --h)
4810 echo "\$ac_cs_usage"; exit 0 ;;
4811 *) echo "\$ac_cs_usage"; exit 1 ;;
4815 ac_given_srcdir=$srcdir
4816 ac_given_INSTALL="$INSTALL"
4818 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
4820 cat >> $CONFIG_STATUS <<EOF
4822 # Protect against being on the right side of a sed subst in config.status.
4823 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4824 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4828 s%@CFLAGS@%$CFLAGS%g
4829 s%@CPPFLAGS@%$CPPFLAGS%g
4830 s%@CXXFLAGS@%$CXXFLAGS%g
4831 s%@FFLAGS@%$FFLAGS%g
4833 s%@LDFLAGS@%$LDFLAGS%g
4835 s%@exec_prefix@%$exec_prefix%g
4836 s%@prefix@%$prefix%g
4837 s%@program_transform_name@%$program_transform_name%g
4838 s%@bindir@%$bindir%g
4839 s%@sbindir@%$sbindir%g
4840 s%@libexecdir@%$libexecdir%g
4841 s%@datadir@%$datadir%g
4842 s%@sysconfdir@%$sysconfdir%g
4843 s%@sharedstatedir@%$sharedstatedir%g
4844 s%@localstatedir@%$localstatedir%g
4845 s%@libdir@%$libdir%g
4846 s%@includedir@%$includedir%g
4847 s%@oldincludedir@%$oldincludedir%g
4848 s%@infodir@%$infodir%g
4849 s%@mandir@%$mandir%g
4850 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4851 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4852 s%@INSTALL_DATA@%$INSTALL_DATA%g
4853 s%@PACKAGE@%$PACKAGE%g
4854 s%@VERSION@%$VERSION%g
4855 s%@ACLOCAL@%$ACLOCAL%g
4856 s%@AUTOCONF@%$AUTOCONF%g
4857 s%@AUTOMAKE@%$AUTOMAKE%g
4858 s%@AUTOHEADER@%$AUTOHEADER%g
4859 s%@MAKEINFO@%$MAKEINFO%g
4860 s%@SET_MAKE@%$SET_MAKE%g
4862 s%@RANLIB@%$RANLIB%g
4865 s%@wxconfig@%$wxconfig%g
4867 s%@host_alias@%$host_alias%g
4868 s%@host_cpu@%$host_cpu%g
4869 s%@host_vendor@%$host_vendor%g
4870 s%@host_os@%$host_os%g
4872 s%@INCLUDED_GETOPT_LONG_TRUE@%$INCLUDED_GETOPT_LONG_TRUE%g
4873 s%@INCLUDED_GETOPT_LONG_FALSE@%$INCLUDED_GETOPT_LONG_FALSE%g
4874 s%@DEBUG_TRUE@%$DEBUG_TRUE%g
4875 s%@DEBUG_FALSE@%$DEBUG_FALSE%g
4876 s%@lamdir@%$lamdir%g
4877 s%@mpienable@%$mpienable%g
4878 s%@cgibindir@%$cgibindir%g
4879 s%@cgibinurl@%$cgibinurl%g
4880 s%@webdatadir@%$webdatadir%g
4881 s%@webdataurl@%$webdataurl%g
4882 s%@htmldir@%$htmldir%g
4883 s%@cgiprograms@%$cgiprograms%g
4884 s%@htmldata@%$htmldata%g
4885 s%@USE_HTML_TRUE@%$USE_HTML_TRUE%g
4886 s%@USE_HTML_FALSE@%$USE_HTML_FALSE%g
4887 s%@webenabled@%$webenabled%g
4888 s%@USE_LAM_TRUE@%$USE_LAM_TRUE%g
4889 s%@USE_LAM_FALSE@%$USE_LAM_FALSE%g
4890 s%@X_CFLAGS@%$X_CFLAGS%g
4891 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4892 s%@X_LIBS@%$X_LIBS%g
4893 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4894 s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4895 s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4896 s%@NO_X_TRUE@%$NO_X_TRUE%g
4897 s%@NO_X_FALSE@%$NO_X_FALSE%g
4898 s%@my_includes@%$my_includes%g
4899 s%@HAVE_SGP_TRUE@%$HAVE_SGP_TRUE%g
4900 s%@HAVE_SGP_FALSE@%$HAVE_SGP_FALSE%g
4901 s%@HAVE_WXWINDOWS_TRUE@%$HAVE_WXWINDOWS_TRUE%g
4902 s%@HAVE_WXWINDOWS_FALSE@%$HAVE_WXWINDOWS_FALSE%g
4903 s%@wxcflags@%$wxcflags%g
4904 s%@wxlibs@%$wxlibs%g
4905 s%@ctlibs@%$ctlibs%g
4906 s%@lamprograms@%$lamprograms%g
4907 s%@lamdefs@%$lamdefs%g
4912 cat >> $CONFIG_STATUS <<\EOF
4914 # Split the substitutions into bite-sized pieces for seds with
4915 # small command number limits, like on Digital OSF/1 and HP-UX.
4916 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4917 ac_file=1 # Number of current file.
4918 ac_beg=1 # First line for current file.
4919 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4922 while $ac_more_lines; do
4923 if test $ac_beg -gt 1; then
4924 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4926 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4928 if test ! -s conftest.s$ac_file; then
4930 rm -f conftest.s$ac_file
4932 if test -z "$ac_sed_cmds"; then
4933 ac_sed_cmds="sed -f conftest.s$ac_file"
4935 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4937 ac_file=`expr $ac_file + 1`
4939 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4942 if test -z "$ac_sed_cmds"; then
4947 cat >> $CONFIG_STATUS <<EOF
4949 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"}
4951 cat >> $CONFIG_STATUS <<\EOF
4952 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4953 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4955 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4956 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4957 *) ac_file_in="${ac_file}.in" ;;
4960 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4962 # Remove last slash and all that follows it. Not all systems have dirname.
4963 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4964 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4965 # The file is in a subdirectory.
4966 test ! -d "$ac_dir" && mkdir "$ac_dir"
4967 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4968 # A "../" for each directory in $ac_dir_suffix.
4969 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4971 ac_dir_suffix= ac_dots=
4974 case "$ac_given_srcdir" in
4976 if test -z "$ac_dots"; then top_srcdir=.
4977 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4978 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4980 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4981 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4984 case "$ac_given_INSTALL" in
4985 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4986 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4989 echo creating "$ac_file"
4991 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4993 *Makefile*) ac_comsub="1i\\
4994 # $configure_input" ;;
4998 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5000 s%@configure_input@%$configure_input%g
5001 s%@srcdir@%$srcdir%g
5002 s%@top_srcdir@%$top_srcdir%g
5003 s%@INSTALL@%$INSTALL%g
5004 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5008 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5009 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5011 # ac_d sets the value in "#define NAME VALUE" lines.
5012 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5013 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5016 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5017 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5018 ac_uB='\([ ]\)%\1#\2define\3'
5021 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5022 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5023 ac_eB='$%\1#\2define\3'
5027 if test "${CONFIG_HEADERS+set}" != set; then
5029 cat >> $CONFIG_STATUS <<EOF
5030 CONFIG_HEADERS="config.h"
5032 cat >> $CONFIG_STATUS <<\EOF
5034 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5035 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5037 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5038 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5039 *) ac_file_in="${ac_file}.in" ;;
5042 echo creating $ac_file
5044 rm -f conftest.frag conftest.in conftest.out
5045 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5046 cat $ac_file_inputs > conftest.in
5050 # Transform confdefs.h into a sed script conftest.vals that substitutes
5051 # the proper values into config.h.in to produce config.h. And first:
5052 # Protect against being on the right side of a sed subst in config.status.
5053 # Protect against being in an unquoted here document in config.status.
5055 cat > conftest.hdr <<\EOF
5058 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5062 sed -n -f conftest.hdr confdefs.h > conftest.vals
5065 # This sed command replaces #undef with comments. This is necessary, for
5066 # example, in the case of _POSIX_SOURCE, which is predefined and required
5067 # on some systems where configure will not decide to define it.
5068 cat >> conftest.vals <<\EOF
5069 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5072 # Break up conftest.vals because some shells have a limit on
5073 # the size of here documents, and old seds have small limits too.
5078 ac_lines=`grep -c . conftest.vals`
5079 # grep -c gives empty output for an empty file on some AIX systems.
5080 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5081 # Write a limited-size here document to conftest.frag.
5082 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5083 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5085 sed -f conftest.frag conftest.in > conftest.out
5087 mv conftest.out conftest.in
5089 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5091 mv conftest.tail conftest.vals
5095 cat >> $CONFIG_STATUS <<\EOF
5096 rm -f conftest.frag conftest.h
5097 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5098 cat conftest.in >> conftest.h
5100 if cmp -s $ac_file conftest.h 2>/dev/null; then
5101 echo "$ac_file is unchanged"
5104 # Remove last slash and all that follows it. Not all systems have dirname.
5105 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5106 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5107 # The file is in a subdirectory.
5108 test ! -d "$ac_dir" && mkdir "$ac_dir"
5111 mv conftest.h $ac_file
5116 cat >> $CONFIG_STATUS <<EOF
5120 cat >> $CONFIG_STATUS <<\EOF
5121 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5125 chmod +x $CONFIG_STATUS
5126 rm -fr confdefs* $ac_clean_files
5127 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1