3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --with-logging Include logging output (default)"
17 --with-efence Specify if we are building with "electric-fence""
19 --with-x use the X Window System"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
58 # Maximum number of lines to put in a shell here document.
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
73 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 # Accept the important Cygnus configure options, so we can diagnose typos.
81 -bindir | --bindir | --bindi | --bind | --bin | --bi)
83 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84 bindir="$ac_optarg" ;;
86 -build | --build | --buil | --bui | --bu)
88 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 -cache-file | --cache-file | --cache-fil | --cache-fi \
92 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96 cache_file="$ac_optarg" ;;
98 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102 datadir="$ac_optarg" ;;
104 -disable-* | --disable-*)
105 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106 # Reject names that are not valid shell variable names.
107 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111 eval "enable_${ac_feature}=no" ;;
113 -enable-* | --enable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}='$ac_optarg'" ;;
126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
128 | --exec | --exe | --ex)
129 ac_prev=exec_prefix ;;
130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
132 | --exec=* | --exe=* | --ex=*)
133 exec_prefix="$ac_optarg" ;;
135 -gas | --gas | --ga | --g)
136 # Obsolete; use --with-gas.
139 -help | --help | --hel | --he)
140 # Omit some internal or obsolete options to make the list less imposing.
141 # This message is too long to be a string in the A/UX 3.1 sh.
143 Usage: configure [options] [host]
144 Options: [defaults in brackets after descriptions]
146 --cache-file=FILE cache test results in FILE
147 --help print this message
148 --no-create do not create output files
149 --quiet, --silent do not print \`checking...' messages
150 --version print the version of autoconf that created configure
151 Directory and file names:
152 --prefix=PREFIX install architecture-independent files in PREFIX
154 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156 --bindir=DIR user executables in DIR [EPREFIX/bin]
157 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
158 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
159 --datadir=DIR read-only architecture-independent data in DIR
161 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
165 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
166 --includedir=DIR C header files in DIR [PREFIX/include]
167 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
168 --infodir=DIR info documentation in DIR [PREFIX/info]
169 --mandir=DIR man documentation in DIR [PREFIX/man]
170 --srcdir=DIR find the sources in DIR [configure dir or ..]
171 --program-prefix=PREFIX prepend PREFIX to installed program names
172 --program-suffix=SUFFIX append SUFFIX to installed program names
173 --program-transform-name=PROGRAM
174 run sed PROGRAM on installed program names
178 --build=BUILD configure for building on BUILD [BUILD=HOST]
179 --host=HOST configure for HOST [guessed]
180 --target=TARGET configure for TARGET [TARGET=HOST]
181 Features and packages:
182 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
183 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
184 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
185 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
186 --x-includes=DIR X include files are in DIR
187 --x-libraries=DIR X library files are in DIR
189 if test -n "$ac_help"; then
190 echo "--enable and --with options recognized:$ac_help"
194 -host | --host | --hos | --ho)
196 -host=* | --host=* | --hos=* | --ho=*)
199 -includedir | --includedir | --includedi | --included | --include \
200 | --includ | --inclu | --incl | --inc)
201 ac_prev=includedir ;;
202 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
203 | --includ=* | --inclu=* | --incl=* | --inc=*)
204 includedir="$ac_optarg" ;;
206 -infodir | --infodir | --infodi | --infod | --info | --inf)
208 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
209 infodir="$ac_optarg" ;;
211 -libdir | --libdir | --libdi | --libd)
213 -libdir=* | --libdir=* | --libdi=* | --libd=*)
214 libdir="$ac_optarg" ;;
216 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
217 | --libexe | --libex | --libe)
218 ac_prev=libexecdir ;;
219 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
220 | --libexe=* | --libex=* | --libe=*)
221 libexecdir="$ac_optarg" ;;
223 -localstatedir | --localstatedir | --localstatedi | --localstated \
224 | --localstate | --localstat | --localsta | --localst \
225 | --locals | --local | --loca | --loc | --lo)
226 ac_prev=localstatedir ;;
227 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
228 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
229 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
230 localstatedir="$ac_optarg" ;;
232 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
235 mandir="$ac_optarg" ;;
238 # Obsolete; use --without-fp.
241 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
246 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
250 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
251 | --oldin | --oldi | --old | --ol | --o)
252 ac_prev=oldincludedir ;;
253 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
254 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
255 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
256 oldincludedir="$ac_optarg" ;;
258 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
261 prefix="$ac_optarg" ;;
263 -program-prefix | --program-prefix | --program-prefi | --program-pref \
264 | --program-pre | --program-pr | --program-p)
265 ac_prev=program_prefix ;;
266 -program-prefix=* | --program-prefix=* | --program-prefi=* \
267 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
268 program_prefix="$ac_optarg" ;;
270 -program-suffix | --program-suffix | --program-suffi | --program-suff \
271 | --program-suf | --program-su | --program-s)
272 ac_prev=program_suffix ;;
273 -program-suffix=* | --program-suffix=* | --program-suffi=* \
274 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
275 program_suffix="$ac_optarg" ;;
277 -program-transform-name | --program-transform-name \
278 | --program-transform-nam | --program-transform-na \
279 | --program-transform-n | --program-transform- \
280 | --program-transform | --program-transfor \
281 | --program-transfo | --program-transf \
282 | --program-trans | --program-tran \
283 | --progr-tra | --program-tr | --program-t)
284 ac_prev=program_transform_name ;;
285 -program-transform-name=* | --program-transform-name=* \
286 | --program-transform-nam=* | --program-transform-na=* \
287 | --program-transform-n=* | --program-transform-=* \
288 | --program-transform=* | --program-transfor=* \
289 | --program-transfo=* | --program-transf=* \
290 | --program-trans=* | --program-tran=* \
291 | --progr-tra=* | --program-tr=* | --program-t=*)
292 program_transform_name="$ac_optarg" ;;
294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
295 | -silent | --silent | --silen | --sile | --sil)
298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302 sbindir="$ac_optarg" ;;
304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
306 | --sharedst | --shareds | --shared | --share | --shar \
308 ac_prev=sharedstatedir ;;
309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313 sharedstatedir="$ac_optarg" ;;
315 -site | --site | --sit)
317 -site=* | --site=* | --sit=*)
320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
323 srcdir="$ac_optarg" ;;
325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
326 | --syscon | --sysco | --sysc | --sys | --sy)
327 ac_prev=sysconfdir ;;
328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
330 sysconfdir="$ac_optarg" ;;
332 -target | --target | --targe | --targ | --tar | --ta | --t)
334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
335 target="$ac_optarg" ;;
337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 -version | --version | --versio | --versi | --vers)
341 echo "configure generated by autoconf version 2.12"
345 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346 # Reject names that are not valid shell variable names.
347 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350 ac_package=`echo $ac_package| sed 's/-/_/g'`
355 eval "with_${ac_package}='$ac_optarg'" ;;
357 -without-* | --without-*)
358 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}=no" ;;
367 # Obsolete; use --with-x.
370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
371 | --x-incl | --x-inc | --x-in | --x-i)
372 ac_prev=x_includes ;;
373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
375 x_includes="$ac_optarg" ;;
377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
379 ac_prev=x_libraries ;;
380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
382 x_libraries="$ac_optarg" ;;
384 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389 echo "configure: warning: $ac_option: invalid host type" 1>&2
391 if test "x$nonopt" != xNONE; then
392 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400 if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406 # File descriptor usage:
409 # 2 errors and warnings
410 # 3 some systems may open it to /dev/tty
411 # 4 used on the Kubota Titan
412 # 6 checking for... messages and results
413 # 5 compiler messages saved in config.log
414 if test "$silent" = yes; then
422 This file contains any messages produced by compilers while
423 running configure, to aid debugging if configure makes a mistake.
426 # Strip out --no-create and --no-recursion so they do not pile up.
427 # Also quote any args containing shell metacharacters.
432 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
433 | --no-cr | --no-c) ;;
434 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
435 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
438 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443 # Only set these to C if already set. These must not be set unconditionally
444 # because not all systems understand e.g. LANG=C (notably SCO).
445 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446 # Non-C LC_CTYPE values break the ctype check.
447 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
448 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
453 rm -rf conftest* confdefs.h
454 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 # A filename unique to this package, relative to the directory that
458 # configure is in, which we can look for to find out if srcdir is correct.
459 ac_unique_file=bucket/newbucket.cxx
461 # Find the source files, if location was not specified.
462 if test -z "$srcdir"; then
463 ac_srcdir_defaulted=yes
464 # Try the directory containing this script, then its parent.
466 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469 if test ! -r $srcdir/$ac_unique_file; then
473 ac_srcdir_defaulted=no
475 if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484 # Prefer explicitly selected file to automatically selected ones.
485 if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE; then
487 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 for ac_site_file in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
499 if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
503 echo "creating cache $cache_file"
508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509 ac_cpp='$CPP $CPPFLAGS'
510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512 cross_compiling=$ac_cv_prog_cc_cross
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523 ac_n= ac_c='\c' ac_t=
529 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
530 if test -f $ac_dir/install-sh; then
532 ac_install_sh="$ac_aux_dir/install-sh -c"
534 elif test -f $ac_dir/install.sh; then
536 ac_install_sh="$ac_aux_dir/install.sh -c"
540 if test -z "$ac_aux_dir"; then
541 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
543 ac_config_guess=$ac_aux_dir/config.guess
544 ac_config_sub=$ac_aux_dir/config.sub
545 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
547 # Find a good install program. We prefer a C program (faster),
548 # so one script is as good as another. But avoid the broken or
549 # incompatible versions:
550 # SysV /etc/install, /usr/sbin/install
551 # SunOS /usr/etc/install
554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
556 # ./install, which can be erroneously created by make from ./install.sh.
557 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
558 echo "configure:559: checking for a BSD compatible install" >&5
559 if test -z "$INSTALL"; then
560 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
561 echo $ac_n "(cached) $ac_c" 1>&6
563 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
564 for ac_dir in $PATH; do
565 # Account for people who put trailing slashes in PATH elements.
567 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
569 # OSF1 and SCO ODT 3.0 have their own names for install.
570 for ac_prog in ginstall installbsd scoinst install; do
571 if test -f $ac_dir/$ac_prog; then
572 if test $ac_prog = install &&
573 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
574 # AIX install. It has an incompatible calling convention.
575 # OSF/1 installbsd also uses dspmsg, but is usable.
578 ac_cv_path_install="$ac_dir/$ac_prog -c"
589 if test "${ac_cv_path_install+set}" = set; then
590 INSTALL="$ac_cv_path_install"
592 # As a last resort, use the slow shell script. We don't cache a
593 # path for INSTALL within a source directory, because that will
594 # break other packages using the cache if that directory is
595 # removed, or if the path is relative.
596 INSTALL="$ac_install_sh"
599 echo "$ac_t""$INSTALL" 1>&6
601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
602 # It thinks the first close brace ends the variable substitution.
603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
610 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
611 echo "configure:612: checking whether build environment is sane" >&5
614 echo timestamp > conftestfile
615 # Do `set' in a subshell so we don't clobber the current shell's
616 # arguments. Must try -L first in case configure is actually a
617 # symlink; some systems play weird games with the mod time of symlinks
618 # (eg FreeBSD returns the mod time of the symlink's containing
621 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
622 if test "$*" = "X"; then
624 set X `ls -t $srcdir/configure conftestfile`
626 if test "$*" != "X $srcdir/configure conftestfile" \
627 && test "$*" != "X conftestfile $srcdir/configure"; then
629 # If neither matched, then we have a broken ls. This can happen
630 # if, for instance, CONFIG_SHELL is bash and it inherits a
631 # broken ls alias from the environment. This has actually
632 # happened. Such a system could not be considered "sane".
633 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
634 alias in your environment" 1>&2; exit 1; }
637 test "$2" = conftestfile
643 { echo "configure: error: newly created file is older than distributed files!
644 Check your system clock" 1>&2; exit 1; }
647 echo "$ac_t""yes" 1>&6
648 if test "$program_transform_name" = s,x,x,; then
649 program_transform_name=
651 # Double any \ or $. echo might interpret backslashes.
652 cat <<\EOF_SED > conftestsed
653 s,\\,\\\\,g; s,\$,$$,g
655 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
658 test "$program_prefix" != NONE &&
659 program_transform_name="s,^,${program_prefix},; $program_transform_name"
660 # Use a double $ so make ignores it.
661 test "$program_suffix" != NONE &&
662 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
664 # sed with no file args requires a program.
665 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
667 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
668 echo "configure:669: checking whether ${MAKE-make} sets \${MAKE}" >&5
669 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
670 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 cat > conftestmake <<\EOF
675 @echo 'ac_maketemp="${MAKE}"'
677 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
678 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
679 if test -n "$ac_maketemp"; then
680 eval ac_cv_prog_make_${ac_make}_set=yes
682 eval ac_cv_prog_make_${ac_make}_set=no
686 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
687 echo "$ac_t""yes" 1>&6
690 echo "$ac_t""no" 1>&6
691 SET_MAKE="MAKE=${MAKE-make}"
699 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
700 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
702 cat >> confdefs.h <<EOF
703 #define PACKAGE "$PACKAGE"
706 cat >> confdefs.h <<EOF
707 #define VERSION "$VERSION"
712 missing_dir=`cd $ac_aux_dir && pwd`
713 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
714 echo "configure:715: checking for working aclocal" >&5
715 # Run test in a subshell; some versions of sh will print an error if
716 # an executable is not found, even if stderr is redirected.
717 # Redirect stdin to placate older versions of autoconf. Sigh.
718 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
720 echo "$ac_t""found" 1>&6
722 ACLOCAL="$missing_dir/missing aclocal"
723 echo "$ac_t""missing" 1>&6
726 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
727 echo "configure:728: checking for working autoconf" >&5
728 # Run test in a subshell; some versions of sh will print an error if
729 # an executable is not found, even if stderr is redirected.
730 # Redirect stdin to placate older versions of autoconf. Sigh.
731 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
733 echo "$ac_t""found" 1>&6
735 AUTOCONF="$missing_dir/missing autoconf"
736 echo "$ac_t""missing" 1>&6
739 echo $ac_n "checking for working automake""... $ac_c" 1>&6
740 echo "configure:741: checking for working automake" >&5
741 # Run test in a subshell; some versions of sh will print an error if
742 # an executable is not found, even if stderr is redirected.
743 # Redirect stdin to placate older versions of autoconf. Sigh.
744 if (automake --version) < /dev/null > /dev/null 2>&1; then
746 echo "$ac_t""found" 1>&6
748 AUTOMAKE="$missing_dir/missing automake"
749 echo "$ac_t""missing" 1>&6
752 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
753 echo "configure:754: checking for working autoheader" >&5
754 # Run test in a subshell; some versions of sh will print an error if
755 # an executable is not found, even if stderr is redirected.
756 # Redirect stdin to placate older versions of autoconf. Sigh.
757 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
758 AUTOHEADER=autoheader
759 echo "$ac_t""found" 1>&6
761 AUTOHEADER="$missing_dir/missing autoheader"
762 echo "$ac_t""missing" 1>&6
765 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
766 echo "configure:767: checking for working makeinfo" >&5
767 # Run test in a subshell; some versions of sh will print an error if
768 # an executable is not found, even if stderr is redirected.
769 # Redirect stdin to placate older versions of autoconf. Sigh.
770 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
772 echo "$ac_t""found" 1>&6
774 MAKEINFO="$missing_dir/missing makeinfo"
775 echo "$ac_t""missing" 1>&6
780 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
781 echo "configure:782: checking whether ${MAKE-make} sets \${MAKE}" >&5
782 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
783 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 cat > conftestmake <<\EOF
788 @echo 'ac_maketemp="${MAKE}"'
790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
791 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
792 if test -n "$ac_maketemp"; then
793 eval ac_cv_prog_make_${ac_make}_set=yes
795 eval ac_cv_prog_make_${ac_make}_set=no
799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
800 echo "$ac_t""yes" 1>&6
803 echo "$ac_t""no" 1>&6
804 SET_MAKE="MAKE=${MAKE-make}"
807 # Extract the first word of "gcc", so it can be a program name with args.
808 set dummy gcc; ac_word=$2
809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810 echo "configure:811: checking for $ac_word" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 if test -n "$CC"; then
815 ac_cv_prog_CC="$CC" # Let the user override the test.
817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
818 for ac_dir in $PATH; do
819 test -z "$ac_dir" && ac_dir=.
820 if test -f $ac_dir/$ac_word; then
829 if test -n "$CC"; then
830 echo "$ac_t""$CC" 1>&6
832 echo "$ac_t""no" 1>&6
835 if test -z "$CC"; then
836 # Extract the first word of "cc", so it can be a program name with args.
837 set dummy cc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC="$CC" # Let the user override the test.
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
848 for ac_dir in $PATH; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
851 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
860 if test $ac_prog_rejected = yes; then
861 # We found a bogon in the path, so make sure we never use it.
862 set dummy $ac_cv_prog_CC
864 if test $# -gt 0; then
865 # We chose a different compiler from the bogus one.
866 # However, it has the same basename, so the bogon will be chosen
867 # first if we set CC to just the basename; use the full file name.
869 set dummy "$ac_dir/$ac_word" "$@"
877 if test -n "$CC"; then
878 echo "$ac_t""$CC" 1>&6
880 echo "$ac_t""no" 1>&6
883 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
887 echo "configure:888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
891 ac_cpp='$CPP $CPPFLAGS'
892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
893 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
894 cross_compiling=$ac_cv_prog_cc_cross
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
901 if { (eval echo configure:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
902 ac_cv_prog_cc_works=yes
903 # If we can't run a trivial program, we are probably using a cross compiler.
904 if (./conftest; exit) 2>/dev/null; then
905 ac_cv_prog_cc_cross=no
907 ac_cv_prog_cc_cross=yes
910 echo "configure: failed program was:" >&5
911 cat conftest.$ac_ext >&5
912 ac_cv_prog_cc_works=no
916 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
917 if test $ac_cv_prog_cc_works = no; then
918 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
921 echo "configure:922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
922 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
923 cross_compiling=$ac_cv_prog_cc_cross
925 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
926 echo "configure:927: checking whether we are using GNU C" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 cat > conftest.c <<EOF
935 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
942 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
944 if test $ac_cv_prog_gcc = yes; then
946 ac_test_CFLAGS="${CFLAGS+set}"
947 ac_save_CFLAGS="$CFLAGS"
949 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
950 echo "configure:951: checking whether ${CC-cc} accepts -g" >&5
951 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 echo 'void f(){}' > conftest.c
955 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
964 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
965 if test "$ac_test_CFLAGS" = set; then
966 CFLAGS="$ac_save_CFLAGS"
967 elif test $ac_cv_prog_cc_g = yes; then
974 test "${CFLAGS+set}" = set || CFLAGS="-g"
977 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
979 # Extract the first word of "$ac_prog", so it can be a program name with args.
980 set dummy $ac_prog; ac_word=$2
981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982 echo "configure:983: checking for $ac_word" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 if test -n "$CXX"; then
987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
990 for ac_dir in $PATH; do
991 test -z "$ac_dir" && ac_dir=.
992 if test -f $ac_dir/$ac_word; then
993 ac_cv_prog_CXX="$ac_prog"
1000 CXX="$ac_cv_prog_CXX"
1001 if test -n "$CXX"; then
1002 echo "$ac_t""$CXX" 1>&6
1004 echo "$ac_t""no" 1>&6
1007 test -n "$CXX" && break
1009 test -n "$CXX" || CXX="gcc"
1012 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1016 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1017 ac_cpp='$CXXCPP $CPPFLAGS'
1018 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1019 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1020 cross_compiling=$ac_cv_prog_cxx_cross
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1027 if { (eval echo configure:1028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1028 ac_cv_prog_cxx_works=yes
1029 # If we can't run a trivial program, we are probably using a cross compiler.
1030 if (./conftest; exit) 2>/dev/null; then
1031 ac_cv_prog_cxx_cross=no
1033 ac_cv_prog_cxx_cross=yes
1036 echo "configure: failed program was:" >&5
1037 cat conftest.$ac_ext >&5
1038 ac_cv_prog_cxx_works=no
1042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1043 ac_cpp='$CPP $CPPFLAGS'
1044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1045 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1046 cross_compiling=$ac_cv_prog_cc_cross
1048 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1049 if test $ac_cv_prog_cxx_works = no; then
1050 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1052 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1053 echo "configure:1054: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1054 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1055 cross_compiling=$ac_cv_prog_cxx_cross
1057 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1058 echo "configure:1059: checking whether we are using GNU C++" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 cat > conftest.C <<EOF
1067 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1074 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1076 if test $ac_cv_prog_gxx = yes; then
1078 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1079 ac_save_CXXFLAGS="$CXXFLAGS"
1081 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether ${CXX-g++} accepts -g" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 echo 'void f(){}' > conftest.cc
1087 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1088 ac_cv_prog_cxx_g=yes
1096 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1097 if test "$ac_test_CXXFLAGS" = set; then
1098 CXXFLAGS="$ac_save_CXXFLAGS"
1099 elif test $ac_cv_prog_cxx_g = yes; then
1106 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1109 # Extract the first word of "ranlib", so it can be a program name with args.
1110 set dummy ranlib; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$RANLIB"; then
1117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1120 for ac_dir in $PATH; do
1121 test -z "$ac_dir" && ac_dir=.
1122 if test -f $ac_dir/$ac_word; then
1123 ac_cv_prog_RANLIB="ranlib"
1128 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1131 RANLIB="$ac_cv_prog_RANLIB"
1132 if test -n "$RANLIB"; then
1133 echo "$ac_t""$RANLIB" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 # Find a good install program. We prefer a C program (faster),
1139 # so one script is as good as another. But avoid the broken or
1140 # incompatible versions:
1141 # SysV /etc/install, /usr/sbin/install
1142 # SunOS /usr/etc/install
1143 # IRIX /sbin/install
1145 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1146 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1147 # ./install, which can be erroneously created by make from ./install.sh.
1148 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1149 echo "configure:1150: checking for a BSD compatible install" >&5
1150 if test -z "$INSTALL"; then
1151 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1155 for ac_dir in $PATH; do
1156 # Account for people who put trailing slashes in PATH elements.
1158 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1160 # OSF1 and SCO ODT 3.0 have their own names for install.
1161 for ac_prog in ginstall installbsd scoinst install; do
1162 if test -f $ac_dir/$ac_prog; then
1163 if test $ac_prog = install &&
1164 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1165 # AIX install. It has an incompatible calling convention.
1166 # OSF/1 installbsd also uses dspmsg, but is usable.
1169 ac_cv_path_install="$ac_dir/$ac_prog -c"
1180 if test "${ac_cv_path_install+set}" = set; then
1181 INSTALL="$ac_cv_path_install"
1183 # As a last resort, use the slow shell script. We don't cache a
1184 # path for INSTALL within a source directory, because that will
1185 # break other packages using the cache if that directory is
1186 # removed, or if the path is relative.
1187 INSTALL="$ac_install_sh"
1190 echo "$ac_t""$INSTALL" 1>&6
1192 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1193 # It thinks the first close brace ends the variable substitution.
1194 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1196 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1198 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether ln -s works" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1204 if ln -s X conftestdata 2>/dev/null
1207 ac_cv_prog_LN_S="ln -s"
1212 LN_S="$ac_cv_prog_LN_S"
1213 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1214 echo "$ac_t""yes" 1>&6
1216 echo "$ac_t""no" 1>&6
1220 if echo $includedir | egrep "simgear$" > /dev/null; then
1221 echo "includedir is" $includedir "libdir is" $libdir
1223 includedir="${includedir}/simgear"
1224 echo "includedir changed to" $includedir "libdir is" $libdir
1228 # set logging default value
1230 # Check whether --with-logging or --without-logging was given.
1231 if test "${with_logging+set}" = set; then
1232 withval="$with_logging"
1236 if test "x$with_logging" = "xno" ; then
1237 cat >> confdefs.h <<\EOF
1243 # Check whether --with-efence or --without-efence was given.
1244 if test "${with_efence+set}" = set; then
1245 withval="$with_efence"
1250 if test "x$with_efence" = "xyes" ; then
1251 echo "Building with efence"
1252 LIBS= "$LIBS -lefence"
1255 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1256 echo "configure:1257: checking how to run the C preprocessor" >&5
1257 # On Suns, sometimes $CPP names a directory.
1258 if test -n "$CPP" && test -d "$CPP"; then
1261 if test -z "$CPP"; then
1262 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 # This must be in double quotes, not single quotes, because CPP may get
1266 # substituted into the Makefile and "${CC-cc}" will confuse make.
1268 # On the NeXT, cc -E runs the code through the compiler's parser,
1269 # not just through cpp.
1270 cat > conftest.$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1277 { (eval echo configure:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1278 ac_err=`grep -v '^ *+' conftest.out`
1279 if test -z "$ac_err"; then
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1286 CPP="${CC-cc} -E -traditional-cpp"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1294 { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1295 ac_err=`grep -v '^ *+' conftest.out`
1296 if test -z "$ac_err"; then
1300 echo "configure: failed program was:" >&5
1301 cat conftest.$ac_ext >&5
1308 ac_cv_prog_CPP="$CPP"
1310 CPP="$ac_cv_prog_CPP"
1312 ac_cv_prog_CPP="$CPP"
1314 echo "$ac_t""$CPP" 1>&6
1316 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
1317 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
1318 echo "configure:1319: checking for windows.h" >&5
1319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325 #include <windows.h>
1327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1328 { (eval echo configure:1329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1329 ac_err=`grep -v '^ *+' conftest.out`
1330 if test -z "$ac_err"; then
1332 eval "ac_cv_header_$ac_safe=yes"
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1338 eval "ac_cv_header_$ac_safe=no"
1342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1343 echo "$ac_t""yes" 1>&6
1346 echo "$ac_t""no" 1>&6
1350 EXTRA_DIRS="/usr/local /usr/local/plib /usr/X11R6"
1352 if test -d /opt/X11R6 ; then
1353 EXTRA_DIRS="$EXTRA_DIRS /opt/X11R6"
1356 if test "x$ac_cv_header_windows_h" = "xyes" ; then
1357 EXTRA_DIRS="${EXTRA_DIRS} `pwd`/Win32"
1358 # elif test `uname -s` = "SunOS" ; then
1359 # EXTRA_DIRS="${EXTRA_DIRS} `pwd`/SunOS"
1361 echo "checking for extra include and lib directories..." 1>&6
1362 exdirs="$prefix ${EXTRA_DIRS}"
1365 if test "$subexdirs" = "" ; then
1368 for subexdir in $subexdirs ; do
1369 if test "$subexdir" = "-" ; then
1372 subexdir="/$subexdir"
1374 for exdir in $exdirs ; do
1375 if test "$exdir" != "/usr" || test "$subexdir" != ""; then
1376 incdir="${exdir}/include${subexdir}"
1379 if test -r $incdir ; then
1382 # echo " + already had $incdir" 1>&6
1385 if test "$CPPFLAGS" = "" ; then
1386 CPPFLAGS="-I$incdir"
1388 CPPFLAGS="$CPPFLAGS -I$incdir"
1390 echo " + found $incdir" 1>&6
1396 mylibdir="${exdir}/lib${subexdir}"
1398 mylibdir="$mylibdir"
1399 if test -r $mylibdir ; then
1402 # echo " + already had $mylibdir" 1>&6
1405 if test "$LDFLAGS" = "" ; then
1406 LDFLAGS="-L$mylibdir"
1408 LDFLAGS="$LDFLAGS -L$mylibdir"
1410 echo " + found $mylibdir" 1>&6
1416 progdir="${exdir}/bin${subexdirr}"
1419 if test -r $progdir ; then
1422 # echo " + already had $progdir" 1>&6
1425 # echo " + already had $progdir" 1>&6
1428 if test "$PATH" = "" ; then
1431 PATH="$PATH:$progdir"
1433 echo " + found $progdir" 1>&6
1447 ENABLE_UNIX_SERIAL_TRUE=
1448 ENABLE_UNIX_SERIAL_FALSE='#'
1450 ENABLE_UNIX_SERIAL_TRUE='#'
1451 ENABLE_UNIX_SERIAL_FALSE=
1454 # If we find X, set shell vars x_includes and x_libraries to the
1455 # paths, otherwise set no_x=yes.
1456 # Uses ac_ vars as temps to allow command line to override cache and checks.
1457 # --without-x overrides everything else, but does not touch the cache.
1458 echo $ac_n "checking for X""... $ac_c" 1>&6
1459 echo "configure:1460: checking for X" >&5
1461 # Check whether --with-x or --without-x was given.
1462 if test "${with_x+set}" = set; then
1467 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1468 if test "x$with_x" = xno; then
1469 # The user explicitly disabled X.
1472 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1473 # Both variables are already set.
1476 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1479 # One or both of the vars are not set, and there is no cached value.
1480 ac_x_includes=NO ac_x_libraries=NO
1482 if mkdir conftestdir; then
1484 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1485 cat > Imakefile <<'EOF'
1487 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1489 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1491 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1492 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1493 for ac_extension in a so sl; do
1494 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1495 test -f $ac_im_libdir/libX11.$ac_extension; then
1496 ac_im_usrlibdir=$ac_im_libdir; break
1499 # Screen out bogus values from the imake configuration. They are
1500 # bogus both because they are the default anyway, and because
1501 # using them would break gcc on systems where it needs fixed includes.
1502 case "$ac_im_incroot" in
1504 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1506 case "$ac_im_usrlibdir" in
1508 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1515 if test "$ac_x_includes" = NO; then
1516 # Guess where to find include files, by looking for this one X11 .h file.
1517 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1519 # First, try using that file with no special directory specified.
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 #include <$x_direct_test_include>
1525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1526 { (eval echo configure:1527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1527 ac_err=`grep -v '^ *+' conftest.out`
1528 if test -z "$ac_err"; then
1530 # We can compile using X headers with no special include directory.
1534 echo "configure: failed program was:" >&5
1535 cat conftest.$ac_ext >&5
1537 # Look for the header file in a standard set of common directories.
1538 # Check X11 before X11Rn because it is often a symlink to the current release.
1541 /usr/X11R6/include \
1542 /usr/X11R5/include \
1543 /usr/X11R4/include \
1546 /usr/include/X11R6 \
1547 /usr/include/X11R5 \
1548 /usr/include/X11R4 \
1550 /usr/local/X11/include \
1551 /usr/local/X11R6/include \
1552 /usr/local/X11R5/include \
1553 /usr/local/X11R4/include \
1555 /usr/local/include/X11 \
1556 /usr/local/include/X11R6 \
1557 /usr/local/include/X11R5 \
1558 /usr/local/include/X11R4 \
1562 /usr/XFree86/include/X11 \
1565 /usr/local/include \
1566 /usr/unsupported/include \
1567 /usr/athena/include \
1568 /usr/local/x11r5/include \
1569 /usr/lpp/Xamples/include \
1571 /usr/openwin/include \
1572 /usr/openwin/share/include \
1575 if test -r "$ac_dir/$x_direct_test_include"; then
1576 ac_x_includes=$ac_dir
1582 fi # $ac_x_includes = NO
1584 if test "$ac_x_libraries" = NO; then
1585 # Check for the libraries.
1587 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1588 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1590 # See if we find them without any special options.
1591 # Don't add to $LIBS permanently.
1592 ac_save_LIBS="$LIBS"
1593 LIBS="-l$x_direct_test_library $LIBS"
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1599 ${x_direct_test_function}()
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1604 LIBS="$ac_save_LIBS"
1605 # We can link X programs with no special library path.
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 LIBS="$ac_save_LIBS"
1612 # First see if replacing the include by lib works.
1613 # Check X11 before X11Rn because it is often a symlink to the current release.
1614 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1625 /usr/local/X11/lib \
1626 /usr/local/X11R6/lib \
1627 /usr/local/X11R5/lib \
1628 /usr/local/X11R4/lib \
1630 /usr/local/lib/X11 \
1631 /usr/local/lib/X11R6 \
1632 /usr/local/lib/X11R5 \
1633 /usr/local/lib/X11R4 \
1637 /usr/XFree86/lib/X11 \
1641 /usr/unsupported/lib \
1643 /usr/local/x11r5/lib \
1644 /usr/lpp/Xamples/lib \
1648 /usr/openwin/share/lib \
1651 for ac_extension in a so sl; do
1652 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1653 ac_x_libraries=$ac_dir
1660 fi # $ac_x_libraries = NO
1662 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1663 # Didn't find X anywhere. Cache the known absence of X.
1664 ac_cv_have_x="have_x=no"
1666 # Record where we found X for the cache.
1667 ac_cv_have_x="have_x=yes \
1668 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1672 eval "$ac_cv_have_x"
1675 if test "$have_x" != yes; then
1676 echo "$ac_t""$have_x" 1>&6
1679 # If each of the values was on the command line, it overrides each guess.
1680 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1681 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1682 # Update the cache value to reflect the command line values.
1683 ac_cv_have_x="have_x=yes \
1684 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1685 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1688 if test "$no_x" = yes; then
1689 # Not all programs may use this symbol, but it does not hurt to define it.
1690 cat >> confdefs.h <<\EOF
1691 #define X_DISPLAY_MISSING 1
1694 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1696 if test -n "$x_includes"; then
1697 X_CFLAGS="$X_CFLAGS -I$x_includes"
1700 # It would also be nice to do this for all -L options, not just this one.
1701 if test -n "$x_libraries"; then
1702 X_LIBS="$X_LIBS -L$x_libraries"
1703 # For Solaris; some versions of Sun CC require a space after -R and
1704 # others require no space. Words are not sufficient . . . .
1705 case "`(uname -sr) 2>/dev/null`" in
1707 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1708 echo "configure:1709: checking whether -R must be followed by a space" >&5
1709 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1718 if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1728 if test $ac_R_nospace = yes; then
1729 echo "$ac_t""no" 1>&6
1730 X_LIBS="$X_LIBS -R$x_libraries"
1732 LIBS="$ac_xsave_LIBS -R $x_libraries"
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1745 echo "configure: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1751 if test $ac_R_space = yes; then
1752 echo "$ac_t""yes" 1>&6
1753 X_LIBS="$X_LIBS -R $x_libraries"
1755 echo "$ac_t""neither works" 1>&6
1758 LIBS="$ac_xsave_LIBS"
1762 # Check for system-dependent libraries X programs must link with.
1763 # Do this before checking for the system-independent R6 libraries
1764 # (-lICE), since we may need -lsocket or whatever for X linking.
1766 if test "$ISC" = yes; then
1767 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1769 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1770 # libraries were built with DECnet support. And karl@cs.umb.edu says
1771 # the Alpha needs dnet_stub (dnet does not exist).
1772 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1773 echo "configure:1774: checking for dnet_ntoa in -ldnet" >&5
1774 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 ac_save_LIBS="$LIBS"
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1783 /* Override any gcc2 internal prototype to avoid an error. */
1784 /* We use char because int might match the return type of a gcc2
1785 builtin and then its argument prototype would still apply. */
1792 if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1794 eval "ac_cv_lib_$ac_lib_var=yes"
1796 echo "configure: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1799 eval "ac_cv_lib_$ac_lib_var=no"
1802 LIBS="$ac_save_LIBS"
1805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1806 echo "$ac_t""yes" 1>&6
1807 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1809 echo "$ac_t""no" 1>&6
1812 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1813 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1814 echo "configure:1815: checking for dnet_ntoa in -ldnet_stub" >&5
1815 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 ac_save_LIBS="$LIBS"
1820 LIBS="-ldnet_stub $LIBS"
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 /* Override any gcc2 internal prototype to avoid an error. */
1825 /* We use char because int might match the return type of a gcc2
1826 builtin and then its argument prototype would still apply. */
1833 if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1835 eval "ac_cv_lib_$ac_lib_var=yes"
1837 echo "configure: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1840 eval "ac_cv_lib_$ac_lib_var=no"
1843 LIBS="$ac_save_LIBS"
1846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1847 echo "$ac_t""yes" 1>&6
1848 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1850 echo "$ac_t""no" 1>&6
1855 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1856 # to get the SysV transport functions.
1857 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1859 # The nsl library prevents programs from opening the X display
1860 # on Irix 5.2, according to dickey@clark.net.
1861 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1862 echo "configure:1863: checking for gethostbyname" >&5
1863 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 /* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char gethostbyname(); below. */
1872 /* Override any gcc2 internal prototype to avoid an error. */
1873 /* We use char because int might match the return type of a gcc2
1874 builtin and then its argument prototype would still apply. */
1875 char gethostbyname();
1879 /* The GNU C library defines this for functions which it implements
1880 to always fail with ENOSYS. Some functions are actually named
1881 something starting with __ and the normal name is an alias. */
1882 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1892 eval "ac_cv_func_gethostbyname=yes"
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1897 eval "ac_cv_func_gethostbyname=no"
1902 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1903 echo "$ac_t""yes" 1>&6
1906 echo "$ac_t""no" 1>&6
1909 if test $ac_cv_func_gethostbyname = no; then
1910 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1911 echo "configure:1912: checking for gethostbyname in -lnsl" >&5
1912 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 ac_save_LIBS="$LIBS"
1918 cat > conftest.$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1921 /* Override any gcc2 internal prototype to avoid an error. */
1922 /* We use char because int might match the return type of a gcc2
1923 builtin and then its argument prototype would still apply. */
1924 char gethostbyname();
1930 if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1932 eval "ac_cv_lib_$ac_lib_var=yes"
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 eval "ac_cv_lib_$ac_lib_var=no"
1940 LIBS="$ac_save_LIBS"
1943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1944 echo "$ac_t""yes" 1>&6
1945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1947 echo "$ac_t""no" 1>&6
1952 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1953 # socket/setsockopt and other routines are undefined under SCO ODT
1954 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1955 # on later versions), says simon@lia.di.epfl.ch: it contains
1956 # gethostby* variants that don't use the nameserver (or something).
1957 # -lsocket must be given before -lnsl if both are needed.
1958 # We assume that if connect needs -lnsl, so does gethostbyname.
1959 echo $ac_n "checking for connect""... $ac_c" 1>&6
1960 echo "configure:1961: checking for connect" >&5
1961 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 /* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char connect(); below. */
1970 /* Override any gcc2 internal prototype to avoid an error. */
1971 /* We use char because int might match the return type of a gcc2
1972 builtin and then its argument prototype would still apply. */
1977 /* The GNU C library defines this for functions which it implements
1978 to always fail with ENOSYS. Some functions are actually named
1979 something starting with __ and the normal name is an alias. */
1980 #if defined (__stub_connect) || defined (__stub___connect)
1988 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1990 eval "ac_cv_func_connect=yes"
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1995 eval "ac_cv_func_connect=no"
2000 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2001 echo "$ac_t""yes" 1>&6
2004 echo "$ac_t""no" 1>&6
2007 if test $ac_cv_func_connect = no; then
2008 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2009 echo "configure:2010: checking for connect in -lsocket" >&5
2010 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 ac_save_LIBS="$LIBS"
2015 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2019 /* Override any gcc2 internal prototype to avoid an error. */
2020 /* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2028 if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2030 eval "ac_cv_lib_$ac_lib_var=yes"
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2035 eval "ac_cv_lib_$ac_lib_var=no"
2038 LIBS="$ac_save_LIBS"
2041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2045 echo "$ac_t""no" 1>&6
2050 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2051 echo $ac_n "checking for remove""... $ac_c" 1>&6
2052 echo "configure:2053: checking for remove" >&5
2053 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 cat > conftest.$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2059 /* System header to define __stub macros and hopefully few prototypes,
2060 which can conflict with char remove(); below. */
2062 /* Override any gcc2 internal prototype to avoid an error. */
2063 /* We use char because int might match the return type of a gcc2
2064 builtin and then its argument prototype would still apply. */
2069 /* The GNU C library defines this for functions which it implements
2070 to always fail with ENOSYS. Some functions are actually named
2071 something starting with __ and the normal name is an alias. */
2072 #if defined (__stub_remove) || defined (__stub___remove)
2080 if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2082 eval "ac_cv_func_remove=yes"
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 eval "ac_cv_func_remove=no"
2092 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2096 echo "$ac_t""no" 1>&6
2099 if test $ac_cv_func_remove = no; then
2100 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2101 echo "configure:2102: checking for remove in -lposix" >&5
2102 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 ac_save_LIBS="$LIBS"
2107 LIBS="-lposix $LIBS"
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2111 /* Override any gcc2 internal prototype to avoid an error. */
2112 /* We use char because int might match the return type of a gcc2
2113 builtin and then its argument prototype would still apply. */
2120 if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2122 eval "ac_cv_lib_$ac_lib_var=yes"
2124 echo "configure: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2127 eval "ac_cv_lib_$ac_lib_var=no"
2130 LIBS="$ac_save_LIBS"
2133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2134 echo "$ac_t""yes" 1>&6
2135 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2137 echo "$ac_t""no" 1>&6
2142 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2143 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2144 echo "configure:2145: checking for shmat" >&5
2145 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 /* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char shmat(); below. */
2154 /* Override any gcc2 internal prototype to avoid an error. */
2155 /* We use char because int might match the return type of a gcc2
2156 builtin and then its argument prototype would still apply. */
2161 /* The GNU C library defines this for functions which it implements
2162 to always fail with ENOSYS. Some functions are actually named
2163 something starting with __ and the normal name is an alias. */
2164 #if defined (__stub_shmat) || defined (__stub___shmat)
2172 if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2174 eval "ac_cv_func_shmat=yes"
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2179 eval "ac_cv_func_shmat=no"
2184 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2185 echo "$ac_t""yes" 1>&6
2188 echo "$ac_t""no" 1>&6
2191 if test $ac_cv_func_shmat = no; then
2192 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2193 echo "configure:2194: checking for shmat in -lipc" >&5
2194 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 ac_save_LIBS="$LIBS"
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 /* Override any gcc2 internal prototype to avoid an error. */
2204 /* We use char because int might match the return type of a gcc2
2205 builtin and then its argument prototype would still apply. */
2212 if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2214 eval "ac_cv_lib_$ac_lib_var=yes"
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 eval "ac_cv_lib_$ac_lib_var=no"
2222 LIBS="$ac_save_LIBS"
2225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2226 echo "$ac_t""yes" 1>&6
2227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2229 echo "$ac_t""no" 1>&6
2235 # Check for libraries that X11R6 Xt/Xaw programs need.
2236 ac_save_LDFLAGS="$LDFLAGS"
2237 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2238 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2239 # check for ICE first), but we must link in the order -lSM -lICE or
2240 # we get undefined symbols. So assume we have SM if we have ICE.
2241 # These have to be linked with before -lX11, unlike the other
2242 # libraries we check for below, so use a different variable.
2243 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2244 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2245 echo "configure:2246: checking for IceConnectionNumber in -lICE" >&5
2246 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 ac_save_LIBS="$LIBS"
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 /* Override any gcc2 internal prototype to avoid an error. */
2256 /* We use char because int might match the return type of a gcc2
2257 builtin and then its argument prototype would still apply. */
2258 char IceConnectionNumber();
2261 IceConnectionNumber()
2264 if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2266 eval "ac_cv_lib_$ac_lib_var=yes"
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2271 eval "ac_cv_lib_$ac_lib_var=no"
2274 LIBS="$ac_save_LIBS"
2277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2278 echo "$ac_t""yes" 1>&6
2279 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2281 echo "$ac_t""no" 1>&6
2284 LDFLAGS="$ac_save_LDFLAGS"
2292 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
2293 echo "configure:2294: checking for cos in -lm" >&5
2294 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
2295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 ac_save_LIBS="$LIBS"
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 /* Override any gcc2 internal prototype to avoid an error. */
2304 /* We use char because int might match the return type of a gcc2
2305 builtin and then its argument prototype would still apply. */
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2314 eval "ac_cv_lib_$ac_lib_var=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 eval "ac_cv_lib_$ac_lib_var=no"
2322 LIBS="$ac_save_LIBS"
2325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2326 echo "$ac_t""yes" 1>&6
2327 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2329 cat >> confdefs.h <<EOF
2330 #define $ac_tr_lib 1
2336 echo "$ac_t""no" 1>&6
2342 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2343 echo "configure:2344: checking for socket in -lsocket" >&5
2344 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 ac_save_LIBS="$LIBS"
2349 LIBS="-lsocket $LIBS"
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2353 /* Override any gcc2 internal prototype to avoid an error. */
2354 /* We use char because int might match the return type of a gcc2
2355 builtin and then its argument prototype would still apply. */
2362 if { (eval echo configure:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2364 eval "ac_cv_lib_$ac_lib_var=yes"
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2369 eval "ac_cv_lib_$ac_lib_var=no"
2372 LIBS="$ac_save_LIBS"
2375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2376 echo "$ac_t""yes" 1>&6
2377 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2378 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2379 cat >> confdefs.h <<EOF
2380 #define $ac_tr_lib 1
2383 LIBS="-lsocket $LIBS"
2386 echo "$ac_t""no" 1>&6
2389 echo $ac_n "checking for XCreateWindow in -lX11""... $ac_c" 1>&6
2390 echo "configure:2391: checking for XCreateWindow in -lX11" >&5
2391 ac_lib_var=`echo X11'_'XCreateWindow | sed 'y%./+-%__p_%'`
2392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 ac_save_LIBS="$LIBS"
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 /* Override any gcc2 internal prototype to avoid an error. */
2401 /* We use char because int might match the return type of a gcc2
2402 builtin and then its argument prototype would still apply. */
2403 char XCreateWindow();
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2411 eval "ac_cv_lib_$ac_lib_var=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 eval "ac_cv_lib_$ac_lib_var=no"
2419 LIBS="$ac_save_LIBS"
2422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2423 echo "$ac_t""yes" 1>&6
2424 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2426 cat >> confdefs.h <<EOF
2427 #define $ac_tr_lib 1
2433 echo "$ac_t""no" 1>&6
2436 echo $ac_n "checking for XShmCreateImage in -lXext""... $ac_c" 1>&6
2437 echo "configure:2438: checking for XShmCreateImage in -lXext" >&5
2438 ac_lib_var=`echo Xext'_'XShmCreateImage | sed 'y%./+-%__p_%'`
2439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 ac_save_LIBS="$LIBS"
2444 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2447 /* Override any gcc2 internal prototype to avoid an error. */
2448 /* We use char because int might match the return type of a gcc2
2449 builtin and then its argument prototype would still apply. */
2450 char XShmCreateImage();
2456 if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2458 eval "ac_cv_lib_$ac_lib_var=yes"
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 eval "ac_cv_lib_$ac_lib_var=no"
2466 LIBS="$ac_save_LIBS"
2469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2470 echo "$ac_t""yes" 1>&6
2471 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2472 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2473 cat >> confdefs.h <<EOF
2474 #define $ac_tr_lib 1
2480 echo "$ac_t""no" 1>&6
2483 echo $ac_n "checking for XGetExtensionVersion in -lXi""... $ac_c" 1>&6
2484 echo "configure:2485: checking for XGetExtensionVersion in -lXi" >&5
2485 ac_lib_var=`echo Xi'_'XGetExtensionVersion | sed 'y%./+-%__p_%'`
2486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 ac_save_LIBS="$LIBS"
2491 cat > conftest.$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2494 /* Override any gcc2 internal prototype to avoid an error. */
2495 /* We use char because int might match the return type of a gcc2
2496 builtin and then its argument prototype would still apply. */
2497 char XGetExtensionVersion();
2500 XGetExtensionVersion()
2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2505 eval "ac_cv_lib_$ac_lib_var=yes"
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2510 eval "ac_cv_lib_$ac_lib_var=no"
2513 LIBS="$ac_save_LIBS"
2516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2517 echo "$ac_t""yes" 1>&6
2518 ac_tr_lib=HAVE_LIB`echo Xi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2519 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2520 cat >> confdefs.h <<EOF
2521 #define $ac_tr_lib 1
2527 echo "$ac_t""no" 1>&6
2530 echo $ac_n "checking for IceOpenConnection in -lICE""... $ac_c" 1>&6
2531 echo "configure:2532: checking for IceOpenConnection in -lICE" >&5
2532 ac_lib_var=`echo ICE'_'IceOpenConnection | sed 'y%./+-%__p_%'`
2533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 ac_save_LIBS="$LIBS"
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 /* Override any gcc2 internal prototype to avoid an error. */
2542 /* We use char because int might match the return type of a gcc2
2543 builtin and then its argument prototype would still apply. */
2544 char IceOpenConnection();
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2552 eval "ac_cv_lib_$ac_lib_var=yes"
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 eval "ac_cv_lib_$ac_lib_var=no"
2560 LIBS="$ac_save_LIBS"
2563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2565 ac_tr_lib=HAVE_LIB`echo ICE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2567 cat >> confdefs.h <<EOF
2568 #define $ac_tr_lib 1
2574 echo "$ac_t""no" 1>&6
2577 echo $ac_n "checking for SmcOpenConnection in -lSM""... $ac_c" 1>&6
2578 echo "configure:2579: checking for SmcOpenConnection in -lSM" >&5
2579 ac_lib_var=`echo SM'_'SmcOpenConnection | sed 'y%./+-%__p_%'`
2580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 ac_save_LIBS="$LIBS"
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 /* Override any gcc2 internal prototype to avoid an error. */
2589 /* We use char because int might match the return type of a gcc2
2590 builtin and then its argument prototype would still apply. */
2591 char SmcOpenConnection();
2597 if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2599 eval "ac_cv_lib_$ac_lib_var=yes"
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2604 eval "ac_cv_lib_$ac_lib_var=no"
2607 LIBS="$ac_save_LIBS"
2610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_lib=HAVE_LIB`echo SM | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2613 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2614 cat >> confdefs.h <<EOF
2615 #define $ac_tr_lib 1
2621 echo "$ac_t""no" 1>&6
2624 echo $ac_n "checking for XtMalloc in -lXt""... $ac_c" 1>&6
2625 echo "configure:2626: checking for XtMalloc in -lXt" >&5
2626 ac_lib_var=`echo Xt'_'XtMalloc | sed 'y%./+-%__p_%'`
2627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 ac_save_LIBS="$LIBS"
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 /* Override any gcc2 internal prototype to avoid an error. */
2636 /* We use char because int might match the return type of a gcc2
2637 builtin and then its argument prototype would still apply. */
2644 if { (eval echo configure:2645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2646 eval "ac_cv_lib_$ac_lib_var=yes"
2648 echo "configure: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2651 eval "ac_cv_lib_$ac_lib_var=no"
2654 LIBS="$ac_save_LIBS"
2657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2658 echo "$ac_t""yes" 1>&6
2659 ac_tr_lib=HAVE_LIB`echo Xt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2661 cat >> confdefs.h <<EOF
2662 #define $ac_tr_lib 1
2668 echo "$ac_t""no" 1>&6
2671 echo $ac_n "checking for XmuLookupStandardColormap in -lXmu""... $ac_c" 1>&6
2672 echo "configure:2673: checking for XmuLookupStandardColormap in -lXmu" >&5
2673 ac_lib_var=`echo Xmu'_'XmuLookupStandardColormap | sed 'y%./+-%__p_%'`
2674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 ac_save_LIBS="$LIBS"
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 /* Override any gcc2 internal prototype to avoid an error. */
2683 /* We use char because int might match the return type of a gcc2
2684 builtin and then its argument prototype would still apply. */
2685 char XmuLookupStandardColormap();
2688 XmuLookupStandardColormap()
2691 if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2693 eval "ac_cv_lib_$ac_lib_var=yes"
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2698 eval "ac_cv_lib_$ac_lib_var=no"
2701 LIBS="$ac_save_LIBS"
2704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2705 echo "$ac_t""yes" 1>&6
2706 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2707 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2708 cat >> confdefs.h <<EOF
2709 #define $ac_tr_lib 1
2715 echo "$ac_t""no" 1>&6
2720 if test "x$ac_cv_header_windows_h" != "xyes" ; then
2722 echo $ac_n "checking for glNewList in -lGLcore""... $ac_c" 1>&6
2723 echo "configure:2724: checking for glNewList in -lGLcore" >&5
2724 ac_lib_var=`echo GLcore'_'glNewList | sed 'y%./+-%__p_%'`
2725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 ac_save_LIBS="$LIBS"
2729 LIBS="-lGLcore $LIBS"
2730 cat > conftest.$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 /* Override any gcc2 internal prototype to avoid an error. */
2734 /* We use char because int might match the return type of a gcc2
2735 builtin and then its argument prototype would still apply. */
2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2744 eval "ac_cv_lib_$ac_lib_var=yes"
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2749 eval "ac_cv_lib_$ac_lib_var=no"
2752 LIBS="$ac_save_LIBS"
2755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2757 ac_tr_lib=HAVE_LIB`echo GLcore | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2759 cat >> confdefs.h <<EOF
2760 #define $ac_tr_lib 1
2763 LIBS="-lGLcore $LIBS"
2766 echo "$ac_t""no" 1>&6
2769 if test "x$ac_cv_lib_GLcore_glNewList" = "xno" ; then
2770 echo $ac_n "checking for glNewList in -lGL""... $ac_c" 1>&6
2771 echo "configure:2772: checking for glNewList in -lGL" >&5
2772 ac_lib_var=`echo GL'_'glNewList | sed 'y%./+-%__p_%'`
2773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 ac_save_LIBS="$LIBS"
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
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. */
2790 if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2792 eval "ac_cv_lib_$ac_lib_var=yes"
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2797 eval "ac_cv_lib_$ac_lib_var=no"
2800 LIBS="$ac_save_LIBS"
2803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2805 ac_tr_lib=HAVE_LIB`echo GL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2807 cat >> confdefs.h <<EOF
2808 #define $ac_tr_lib 1
2814 echo "$ac_t""no" 1>&6
2817 if test "x$ac_cv_lib_GL_glNewList" = "xno" ; then
2818 echo $ac_n "checking for glNewList in -lMesaGL""... $ac_c" 1>&6
2819 echo "configure:2820: checking for glNewList in -lMesaGL" >&5
2820 ac_lib_var=`echo MesaGL'_'glNewList | sed 'y%./+-%__p_%'`
2821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 ac_save_LIBS="$LIBS"
2825 LIBS="-lMesaGL $LIBS"
2826 cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 /* Override any gcc2 internal prototype to avoid an error. */
2830 /* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2840 eval "ac_cv_lib_$ac_lib_var=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2845 eval "ac_cv_lib_$ac_lib_var=no"
2848 LIBS="$ac_save_LIBS"
2851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_lib=HAVE_LIB`echo MesaGL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2854 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2855 cat >> confdefs.h <<EOF
2856 #define $ac_tr_lib 1
2859 LIBS="-lMesaGL $LIBS"
2862 echo "$ac_t""no" 1>&6
2867 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
2868 echo "configure:2869: checking for glXCreateContext in -lGL" >&5
2869 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
2870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 ac_save_LIBS="$LIBS"
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2878 /* Override any gcc2 internal prototype to avoid an error. */
2879 /* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
2881 char glXCreateContext();
2887 if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2889 eval "ac_cv_lib_$ac_lib_var=yes"
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2894 eval "ac_cv_lib_$ac_lib_var=no"
2897 LIBS="$ac_save_LIBS"
2900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2901 echo "$ac_t""yes" 1>&6
2902 ac_tr_lib=HAVE_LIB`echo GL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2903 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2904 cat >> confdefs.h <<EOF
2905 #define $ac_tr_lib 1
2911 echo "$ac_t""no" 1>&6
2916 if test "x$ac_cv_lib_MesaGL_glNewList" = "xyes" ; then
2917 ac_safe=`echo "GL/xmesa.h" | sed 'y%./+-%__p_%'`
2918 echo $ac_n "checking for GL/xmesa.h""... $ac_c" 1>&6
2919 echo "configure:2920: checking for GL/xmesa.h" >&5
2920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 #include <GL/xmesa.h>
2928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2929 { (eval echo configure:2930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2930 ac_err=`grep -v '^ *+' conftest.out`
2931 if test -z "$ac_err"; then
2933 eval "ac_cv_header_$ac_safe=yes"
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2939 eval "ac_cv_header_$ac_safe=no"
2943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2944 echo "$ac_t""yes" 1>&6
2947 echo "$ac_t""no" 1>&6
2950 if test "x$ac_cv_header_GL_xmesa_h" = "xyes"; then
2951 cat >> confdefs.h <<\EOF
2955 cat >> confdefs.h <<\EOF
2962 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
2963 echo "configure:2964: checking for gluLookAt in -lGLU" >&5
2964 ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
2965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 ac_save_LIBS="$LIBS"
2970 cat > conftest.$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2973 /* Override any gcc2 internal prototype to avoid an error. */
2974 /* We use char because int might match the return type of a gcc2
2975 builtin and then its argument prototype would still apply. */
2982 if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2984 eval "ac_cv_lib_$ac_lib_var=yes"
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2989 eval "ac_cv_lib_$ac_lib_var=no"
2992 LIBS="$ac_save_LIBS"
2995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2996 echo "$ac_t""yes" 1>&6
2997 ac_tr_lib=HAVE_LIB`echo GLU | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2998 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2999 cat >> confdefs.h <<EOF
3000 #define $ac_tr_lib 1
3006 echo "$ac_t""no" 1>&6
3009 if test "x$ac_cv_lib_GLU_gluLookAt" = "xno" ; then
3010 echo $ac_n "checking for gluLookAt in -lMesaGLU""... $ac_c" 1>&6
3011 echo "configure:3012: checking for gluLookAt in -lMesaGLU" >&5
3012 ac_lib_var=`echo MesaGLU'_'gluLookAt | sed 'y%./+-%__p_%'`
3013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 ac_save_LIBS="$LIBS"
3017 LIBS="-lMesaGLU $LIBS"
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3032 eval "ac_cv_lib_$ac_lib_var=yes"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 eval "ac_cv_lib_$ac_lib_var=no"
3040 LIBS="$ac_save_LIBS"
3043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 ac_tr_lib=HAVE_LIB`echo MesaGLU | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3047 cat >> confdefs.h <<EOF
3048 #define $ac_tr_lib 1
3051 LIBS="-lMesaGLU $LIBS"
3054 echo "$ac_t""no" 1>&6
3059 echo $ac_n "checking for glutGetModifiers in -lglut""... $ac_c" 1>&6
3060 echo "configure:3061: checking for glutGetModifiers in -lglut" >&5
3061 ac_lib_var=`echo glut'_'glutGetModifiers | sed 'y%./+-%__p_%'`
3062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 ac_save_LIBS="$LIBS"
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 /* Override any gcc2 internal prototype to avoid an error. */
3071 /* We use char because int might match the return type of a gcc2
3072 builtin and then its argument prototype would still apply. */
3073 char glutGetModifiers();
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3081 eval "ac_cv_lib_$ac_lib_var=yes"
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3086 eval "ac_cv_lib_$ac_lib_var=no"
3089 LIBS="$ac_save_LIBS"
3092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3093 echo "$ac_t""yes" 1>&6
3094 ac_tr_lib=HAVE_LIB`echo glut | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3095 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3096 cat >> confdefs.h <<EOF
3097 #define $ac_tr_lib 1
3103 echo "$ac_t""no" 1>&6
3108 echo $ac_n "checking for glutGameModeString in -lglut""... $ac_c" 1>&6
3109 echo "configure:3110: checking for glutGameModeString in -lglut" >&5
3110 ac_lib_var=`echo glut'_'glutGameModeString | sed 'y%./+-%__p_%'`
3111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3114 ac_save_LIBS="$LIBS"
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 /* Override any gcc2 internal prototype to avoid an error. */
3120 /* We use char because int might match the return type of a gcc2
3121 builtin and then its argument prototype would still apply. */
3122 char glutGameModeString();
3125 glutGameModeString()
3128 if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3130 eval "ac_cv_lib_$ac_lib_var=yes"
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3135 eval "ac_cv_lib_$ac_lib_var=no"
3138 LIBS="$ac_save_LIBS"
3141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3142 echo "$ac_t""yes" 1>&6
3143 ac_tr_lib=HAVE_LIB`echo glut | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3144 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3145 cat >> confdefs.h <<EOF
3146 #define $ac_tr_lib 1
3152 echo "$ac_t""no" 1>&6
3158 echo Win32 specific hacks...
3159 cat >> confdefs.h <<\EOF
3166 if test "no" = "yes"; then
3167 ENABLE_XMESA_FX_TRUE=
3168 ENABLE_XMESA_FX_FALSE='#'
3170 ENABLE_XMESA_FX_TRUE='#'
3171 ENABLE_XMESA_FX_FALSE=
3174 ac_cv_lib_glut_glutGetModifiers="yes"
3175 ac_cv_lib_glut_glutGameModeString="yes"
3177 if test "x$with_sgi_opengl" = "xyes" ; then
3178 echo "Building with glut.dll, glu.dll, and opengl.dll"
3183 echo "Building with glut32.dll, glu32.dll, and opengl32.dll"
3186 WIN32_OPENGL=opengl32
3189 LIBS="$LIBS -l${WIN32_GLUT} -l${WIN32_GLU} -l${WIN32_OPENGL}"
3190 LIBS="$LIBS -luser32 -lgdi32"
3191 echo "Will link apps with $LIBS"
3194 if test "x$ac_cv_lib_glut_glutGetModifiers" = "xno"; then
3196 echo "Unable to find the necessary OpenGL or GLUT libraries."
3197 echo "See config.log for automated test details and results ..."
3201 if test "x$ac_cv_lib_glut_glutGameModeString" = "xno"; then
3203 echo "Your version of glut doesn't support game mode."
3204 echo "You need to fetch and install the latest version of glut from:"
3206 echo " http://reality.sgi.com/opengl/glut3/glut3.html"
3218 if test "x$ac_cv_lib_X11_XCreateWindow" = "xyes" ; then
3220 HAVE_XWINDOWS_FALSE='#'
3222 HAVE_XWINDOWS_TRUE='#'
3223 HAVE_XWINDOWS_FALSE=
3226 ac_safe=`echo "plib/pu.h" | sed 'y%./+-%__p_%'`
3227 echo $ac_n "checking for plib/pu.h""... $ac_c" 1>&6
3228 echo "configure:3229: checking for plib/pu.h" >&5
3229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #include <plib/pu.h>
3237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3238 { (eval echo configure:3239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3239 ac_err=`grep -v '^ *+' conftest.out`
3240 if test -z "$ac_err"; then
3242 eval "ac_cv_header_$ac_safe=yes"
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3248 eval "ac_cv_header_$ac_safe=no"
3252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3253 echo "$ac_t""yes" 1>&6
3256 echo "$ac_t""no" 1>&6
3259 if test "x$ac_cv_header_plib_pu_h" != "xyes"; then
3261 echo "You *must* have the plib library installed on your system to build"
3262 echo "the FGFS simulator!"
3264 echo "Please see README.plib for more details."
3266 echo "configure aborted."
3270 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
3271 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
3272 echo "configure:3273: checking for zlib.h" >&5
3273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3282 { (eval echo configure:3283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3283 ac_err=`grep -v '^ *+' conftest.out`
3284 if test -z "$ac_err"; then
3286 eval "ac_cv_header_$ac_safe=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_header_$ac_safe=no"
3296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3297 echo "$ac_t""yes" 1>&6
3300 echo "$ac_t""no" 1>&6
3303 if test "x$ac_cv_header_zlib_h" != "xyes"; then
3304 echo "no zlib found, building."
3308 if test "x$ac_cv_header_zlib_h" = "xyes" ; then
3316 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3317 echo "configure:3318: checking for ANSI C header files" >&5
3318 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3330 { (eval echo configure:3331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3331 ac_err=`grep -v '^ *+' conftest.out`
3332 if test -z "$ac_err"; then
3334 ac_cv_header_stdc=yes
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3340 ac_cv_header_stdc=no
3344 if test $ac_cv_header_stdc = yes; then
3345 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3352 egrep "memchr" >/dev/null 2>&1; then
3356 ac_cv_header_stdc=no
3362 if test $ac_cv_header_stdc = yes; then
3363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3370 egrep "free" >/dev/null 2>&1; then
3374 ac_cv_header_stdc=no
3380 if test $ac_cv_header_stdc = yes; then
3381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3382 if test "$cross_compiling" = yes; then
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3389 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3390 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3391 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3392 int main () { int i; for (i = 0; i < 256; i++)
3393 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 ac_cv_header_stdc=no
3412 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3413 if test $ac_cv_header_stdc = yes; then
3414 cat >> confdefs.h <<\EOF
3415 #define STDC_HEADERS 1
3421 fcntl.h getopt.h malloc.h memory.h stdlib.h sys/param.h sys/stat.h \
3422 sys/time.h sys/timeb.h unistd.h windows.h winbase.h values.h
3424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3426 echo "configure:3427: checking for $ac_hdr" >&5
3427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3436 { (eval echo configure:3437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3437 ac_err=`grep -v '^ *+' conftest.out`
3438 if test -z "$ac_err"; then
3440 eval "ac_cv_header_$ac_safe=yes"
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3446 eval "ac_cv_header_$ac_safe=no"
3450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3451 echo "$ac_t""yes" 1>&6
3452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3453 cat >> confdefs.h <<EOF
3454 #define $ac_tr_hdr 1
3458 echo "$ac_t""no" 1>&6
3463 echo $ac_n "checking for working const""... $ac_c" 1>&6
3464 echo "configure:3465: checking for working const" >&5
3465 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3474 /* Ultrix mips cc rejects this. */
3475 typedef int charset[2]; const charset x;
3476 /* SunOS 4.1.1 cc rejects this. */
3477 char const *const *ccp;
3479 /* NEC SVR4.0.2 mips cc rejects this. */
3480 struct point {int x, y;};
3481 static struct point const zero = {0,0};
3482 /* AIX XL C 1.02.0.0 rejects this.
3483 It does not let you subtract one const X* pointer from another in an arm
3484 of an if-expression whose if-part is not a constant expression */
3485 const char *g = "string";
3486 ccp = &g + (g ? g-g : 0);
3487 /* HPUX 7.0 cc rejects these. */
3490 ccp = (char const *const *) p;
3491 { /* SCO 3.2v4 cc rejects this. */
3493 char const *s = 0 ? (char *) 0 : (char const *) 0;
3497 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3499 const int *foo = &x[0];
3502 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3503 typedef const int *iptr;
3507 { /* AIX XL C 1.02.0.0 rejects this saying
3508 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3509 struct s { int j; const int *ap[3]; };
3510 struct s *b; b->j = 5;
3512 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3518 if { (eval echo configure:3519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522 echo "configure: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3530 echo "$ac_t""$ac_cv_c_const" 1>&6
3531 if test $ac_cv_c_const = no; then
3532 cat >> confdefs.h <<\EOF
3538 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3539 echo "configure:3540: checking for size_t" >&5
3540 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <sys/types.h>
3552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3555 ac_cv_type_size_t=yes
3558 ac_cv_type_size_t=no
3563 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3564 if test $ac_cv_type_size_t = no; then
3565 cat >> confdefs.h <<\EOF
3566 #define size_t unsigned
3571 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3572 echo "configure:3573: checking whether time.h and sys/time.h may both be included" >&5
3573 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <sys/types.h>
3580 #include <sys/time.h>
3586 if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3588 ac_cv_header_time=yes
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3593 ac_cv_header_time=no
3598 echo "$ac_t""$ac_cv_header_time" 1>&6
3599 if test $ac_cv_header_time = yes; then
3600 cat >> confdefs.h <<\EOF
3601 #define TIME_WITH_SYS_TIME 1
3606 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3607 echo "configure:3608: checking whether struct tm is in sys/time.h or time.h" >&5
3608 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3611 cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3614 #include <sys/types.h>
3617 struct tm *tp; tp->tm_sec;
3620 if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622 ac_cv_struct_tm=time.h
3624 echo "configure: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3627 ac_cv_struct_tm=sys/time.h
3632 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3633 if test $ac_cv_struct_tm = sys/time.h; then
3634 cat >> confdefs.h <<\EOF
3635 #define TM_IN_SYS_TIME 1
3641 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3642 echo "configure:3643: checking return type of signal handlers" >&5
3643 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 #include <sys/types.h>
3655 extern "C" void (*signal (int, void (*)(int)))(int);
3657 void (*signal ()) ();
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666 ac_cv_type_signal=void
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 ac_cv_type_signal=int
3676 echo "$ac_t""$ac_cv_type_signal" 1>&6
3677 cat >> confdefs.h <<EOF
3678 #define RETSIGTYPE $ac_cv_type_signal
3682 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3683 echo "configure:3684: checking for vprintf" >&5
3684 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* System header to define __stub macros and hopefully few prototypes,
3691 which can conflict with char vprintf(); below. */
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3700 /* The GNU C library defines this for functions which it implements
3701 to always fail with ENOSYS. Some functions are actually named
3702 something starting with __ and the normal name is an alias. */
3703 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3713 eval "ac_cv_func_vprintf=yes"
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3718 eval "ac_cv_func_vprintf=no"
3723 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3725 cat >> confdefs.h <<\EOF
3726 #define HAVE_VPRINTF 1
3730 echo "$ac_t""no" 1>&6
3733 if test "$ac_cv_func_vprintf" != yes; then
3734 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3735 echo "configure:3736: checking for _doprnt" >&5
3736 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 /* System header to define __stub macros and hopefully few prototypes,
3743 which can conflict with char _doprnt(); below. */
3745 /* Override any gcc2 internal prototype to avoid an error. */
3746 /* We use char because int might match the return type of a gcc2
3747 builtin and then its argument prototype would still apply. */
3752 /* The GNU C library defines this for functions which it implements
3753 to always fail with ENOSYS. Some functions are actually named
3754 something starting with __ and the normal name is an alias. */
3755 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3763 if { (eval echo configure:3764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3765 eval "ac_cv_func__doprnt=yes"
3767 echo "configure: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3770 eval "ac_cv_func__doprnt=no"
3775 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3776 echo "$ac_t""yes" 1>&6
3777 cat >> confdefs.h <<\EOF
3778 #define HAVE_DOPRNT 1
3782 echo "$ac_t""no" 1>&6
3787 for ac_func in ftime gettimeofday timegm memcpy bcopy mktime strstr rand \
3788 random setitimer getitimer signal GetLocalTime rint getrusage
3790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3791 echo "configure:3792: checking for $ac_func" >&5
3792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* System header to define __stub macros and hopefully few prototypes,
3799 which can conflict with char $ac_func(); below. */
3801 /* Override any gcc2 internal prototype to avoid an error. */
3802 /* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3808 /* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3819 if { (eval echo configure:3820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3821 eval "ac_cv_func_$ac_func=yes"
3823 echo "configure: failed program was:" >&5
3824 cat conftest.$ac_ext >&5
3826 eval "ac_cv_func_$ac_func=no"
3831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3832 echo "$ac_t""yes" 1>&6
3833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3834 cat >> confdefs.h <<EOF
3835 #define $ac_tr_func 1
3839 echo "$ac_t""no" 1>&6
3849 cat > confcache <<\EOF
3850 # This file is a shell script that caches the results of configure
3851 # tests run on this system so they can be shared between configure
3852 # scripts and configure runs. It is not useful on other systems.
3853 # If it contains results you don't want to keep, you may remove or edit it.
3855 # By default, configure uses ./config.cache as the cache file,
3856 # creating it if it does not exist already. You can give configure
3857 # the --cache-file=FILE option to use a different cache file; that is
3858 # what configure does when it calls configure scripts in
3859 # subdirectories, so they share the cache.
3860 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3861 # config.status only pays attention to the cache file if you give it the
3862 # --recheck option to rerun configure.
3865 # The following way of writing the cache mishandles newlines in values,
3866 # but we know of no workaround that is simple, portable, and efficient.
3867 # So, don't put newlines in cache variables' values.
3868 # Ultrix sh set writes to stderr and can't be redirected directly,
3869 # and sets the high bit in the cache file unless we assign to the vars.
3871 case `(ac_space=' '; set) 2>&1` in
3873 # `set' does not quote correctly, so add quotes (double-quote substitution
3874 # turns \\\\ into \\, and sed turns \\ into \).
3876 -e "s/'/'\\\\''/g" \
3877 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3880 # `set' quotes correctly as required by POSIX, so do not add quotes.
3881 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3884 if cmp -s $cache_file confcache; then
3887 if test -w $cache_file; then
3888 echo "updating cache $cache_file"
3889 cat confcache > $cache_file
3891 echo "not updating unwritable cache $cache_file"
3896 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3898 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3899 # Let make expand exec_prefix.
3900 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3902 # Any assignment to VPATH causes Sun make to only execute
3903 # the first set of double-colon rules, so remove it if not needed.
3904 # If there is a colon in the path, we need to keep it.
3905 if test "x$srcdir" = x.; then
3906 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3909 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3911 DEFS=-DHAVE_CONFIG_H
3913 # Without the "./", some shells look in PATH for config.status.
3914 : ${CONFIG_STATUS=./config.status}
3916 echo creating $CONFIG_STATUS
3917 rm -f $CONFIG_STATUS
3918 cat > $CONFIG_STATUS <<EOF
3920 # Generated automatically by configure.
3921 # Run this file to recreate the current configuration.
3922 # This directory was configured as follows,
3923 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3925 # $0 $ac_configure_args
3927 # Compiler output produced by configure, useful for debugging
3928 # configure, is in ./config.log if it exists.
3930 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3933 case "\$ac_option" in
3934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3935 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3936 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3937 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3938 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3940 -help | --help | --hel | --he | --h)
3941 echo "\$ac_cs_usage"; exit 0 ;;
3942 *) echo "\$ac_cs_usage"; exit 1 ;;
3946 ac_given_srcdir=$srcdir
3947 ac_given_INSTALL="$INSTALL"
3949 trap 'rm -fr `echo "\
3961 include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3963 cat >> $CONFIG_STATUS <<EOF
3965 # Protect against being on the right side of a sed subst in config.status.
3966 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3967 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3970 s%@CFLAGS@%$CFLAGS%g
3971 s%@CPPFLAGS@%$CPPFLAGS%g
3972 s%@CXXFLAGS@%$CXXFLAGS%g
3974 s%@LDFLAGS@%$LDFLAGS%g
3976 s%@exec_prefix@%$exec_prefix%g
3977 s%@prefix@%$prefix%g
3978 s%@program_transform_name@%$program_transform_name%g
3979 s%@bindir@%$bindir%g
3980 s%@sbindir@%$sbindir%g
3981 s%@libexecdir@%$libexecdir%g
3982 s%@datadir@%$datadir%g
3983 s%@sysconfdir@%$sysconfdir%g
3984 s%@sharedstatedir@%$sharedstatedir%g
3985 s%@localstatedir@%$localstatedir%g
3986 s%@libdir@%$libdir%g
3987 s%@includedir@%$includedir%g
3988 s%@oldincludedir@%$oldincludedir%g
3989 s%@infodir@%$infodir%g
3990 s%@mandir@%$mandir%g
3991 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3992 s%@INSTALL_DATA@%$INSTALL_DATA%g
3993 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3994 s%@PACKAGE@%$PACKAGE%g
3995 s%@VERSION@%$VERSION%g
3996 s%@ACLOCAL@%$ACLOCAL%g
3997 s%@AUTOCONF@%$AUTOCONF%g
3998 s%@AUTOMAKE@%$AUTOMAKE%g
3999 s%@AUTOHEADER@%$AUTOHEADER%g
4000 s%@MAKEINFO@%$MAKEINFO%g
4001 s%@SET_MAKE@%$SET_MAKE%g
4004 s%@RANLIB@%$RANLIB%g
4007 s%@ENABLE_UNIX_SERIAL_TRUE@%$ENABLE_UNIX_SERIAL_TRUE%g
4008 s%@ENABLE_UNIX_SERIAL_FALSE@%$ENABLE_UNIX_SERIAL_FALSE%g
4009 s%@X_CFLAGS@%$X_CFLAGS%g
4010 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4011 s%@X_LIBS@%$X_LIBS%g
4012 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4013 s%@ENABLE_XMESA_FX_TRUE@%$ENABLE_XMESA_FX_TRUE%g
4014 s%@ENABLE_XMESA_FX_FALSE@%$ENABLE_XMESA_FX_FALSE%g
4015 s%@base_LIBS@%$base_LIBS%g
4016 s%@opengl_LIBS@%$opengl_LIBS%g
4017 s%@HAVE_XWINDOWS_TRUE@%$HAVE_XWINDOWS_TRUE%g
4018 s%@HAVE_XWINDOWS_FALSE@%$HAVE_XWINDOWS_FALSE%g
4019 s%@HAVE_ZLIB_TRUE@%$HAVE_ZLIB_TRUE%g
4020 s%@HAVE_ZLIB_FALSE@%$HAVE_ZLIB_FALSE%g
4025 cat >> $CONFIG_STATUS <<\EOF
4027 # Split the substitutions into bite-sized pieces for seds with
4028 # small command number limits, like on Digital OSF/1 and HP-UX.
4029 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4030 ac_file=1 # Number of current file.
4031 ac_beg=1 # First line for current file.
4032 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4035 while $ac_more_lines; do
4036 if test $ac_beg -gt 1; then
4037 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4039 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4041 if test ! -s conftest.s$ac_file; then
4043 rm -f conftest.s$ac_file
4045 if test -z "$ac_sed_cmds"; then
4046 ac_sed_cmds="sed -f conftest.s$ac_file"
4048 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4050 ac_file=`expr $ac_file + 1`
4052 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4055 if test -z "$ac_sed_cmds"; then
4060 cat >> $CONFIG_STATUS <<EOF
4062 CONFIG_FILES=\${CONFIG_FILES-"\
4076 cat >> $CONFIG_STATUS <<\EOF
4077 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4080 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4081 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4082 *) ac_file_in="${ac_file}.in" ;;
4085 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4087 # Remove last slash and all that follows it. Not all systems have dirname.
4088 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4089 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4090 # The file is in a subdirectory.
4091 test ! -d "$ac_dir" && mkdir "$ac_dir"
4092 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4093 # A "../" for each directory in $ac_dir_suffix.
4094 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4096 ac_dir_suffix= ac_dots=
4099 case "$ac_given_srcdir" in
4101 if test -z "$ac_dots"; then top_srcdir=.
4102 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4103 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4105 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4106 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4109 case "$ac_given_INSTALL" in
4110 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4111 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4114 echo creating "$ac_file"
4116 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4118 *Makefile*) ac_comsub="1i\\
4119 # $configure_input" ;;
4123 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4125 s%@configure_input@%$configure_input%g
4126 s%@srcdir@%$srcdir%g
4127 s%@top_srcdir@%$top_srcdir%g
4128 s%@INSTALL@%$INSTALL%g
4129 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4133 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4134 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4136 # ac_d sets the value in "#define NAME VALUE" lines.
4137 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4138 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4141 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4142 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4143 ac_uB='\([ ]\)%\1#\2define\3'
4146 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4147 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4148 ac_eB='$%\1#\2define\3'
4152 if test "${CONFIG_HEADERS+set}" != set; then
4154 cat >> $CONFIG_STATUS <<EOF
4155 CONFIG_HEADERS="include/config.h"
4157 cat >> $CONFIG_STATUS <<\EOF
4159 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4162 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4163 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4164 *) ac_file_in="${ac_file}.in" ;;
4167 echo creating $ac_file
4169 rm -f conftest.frag conftest.in conftest.out
4170 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4171 cat $ac_file_inputs > conftest.in
4175 # Transform confdefs.h into a sed script conftest.vals that substitutes
4176 # the proper values into config.h.in to produce config.h. And first:
4177 # Protect against being on the right side of a sed subst in config.status.
4178 # Protect against being in an unquoted here document in config.status.
4180 cat > conftest.hdr <<\EOF
4183 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4187 sed -n -f conftest.hdr confdefs.h > conftest.vals
4190 # This sed command replaces #undef with comments. This is necessary, for
4191 # example, in the case of _POSIX_SOURCE, which is predefined and required
4192 # on some systems where configure will not decide to define it.
4193 cat >> conftest.vals <<\EOF
4194 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4197 # Break up conftest.vals because some shells have a limit on
4198 # the size of here documents, and old seds have small limits too.
4203 ac_lines=`grep -c . conftest.vals`
4204 # grep -c gives empty output for an empty file on some AIX systems.
4205 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4206 # Write a limited-size here document to conftest.frag.
4207 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4208 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4210 sed -f conftest.frag conftest.in > conftest.out
4212 mv conftest.out conftest.in
4214 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4216 mv conftest.tail conftest.vals
4220 cat >> $CONFIG_STATUS <<\EOF
4221 rm -f conftest.frag conftest.h
4222 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4223 cat conftest.in >> conftest.h
4225 if cmp -s $ac_file conftest.h 2>/dev/null; then
4226 echo "$ac_file is unchanged"
4229 # Remove last slash and all that follows it. Not all systems have dirname.
4230 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4231 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4232 # The file is in a subdirectory.
4233 test ! -d "$ac_dir" && mkdir "$ac_dir"
4236 mv conftest.h $ac_file
4241 cat >> $CONFIG_STATUS <<EOF
4245 cat >> $CONFIG_STATUS <<\EOF
4246 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
4250 chmod +x $CONFIG_STATUS
4251 rm -fr confdefs* $ac_clean_files
4252 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4258 echo "Configure Summary"
4259 echo "================="
4261 echo "Prefix: $prefix"
4263 if test "x$with_logging" != "x"; then
4264 echo "Debug messages: $with_logging"
4266 echo "Debug messages: yes"
4269 if test "x$with_efence" != "x"; then
4270 echo "Electric fence: $with_efence"
4272 echo "Electric fence: no"