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:
14 ac_default_prefix=/usr/local/cacao
16 --enable-threads enable threads support"
18 --enable-gc2 enable new garbage collector"
20 # Initialize some variables set by options.
21 # The variables have the same names as the options, with
22 # dashes changed to underlines.
24 cache_file=./config.cache
33 program_transform_name=s,x,x,
41 bindir='${exec_prefix}/bin'
42 sbindir='${exec_prefix}/sbin'
43 libexecdir='${exec_prefix}/libexec'
44 datadir='${prefix}/share'
45 sysconfdir='${prefix}/etc'
46 sharedstatedir='${prefix}/com'
47 localstatedir='${prefix}/var'
48 libdir='${exec_prefix}/lib'
49 includedir='${prefix}/include'
50 oldincludedir='/usr/include'
51 infodir='${prefix}/info'
52 mandir='${prefix}/man'
54 # Initialize some other variables.
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host | --host | --hos | --ho)
195 -host=* | --host=* | --hos=* | --ho=*)
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
316 -site=* | --site=* | --sit=*)
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.12"
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=compiler.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='\c' ac_t=
527 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
528 if test -f $ac_dir/install-sh; then
530 ac_install_sh="$ac_aux_dir/install-sh -c"
532 elif test -f $ac_dir/install.sh; then
534 ac_install_sh="$ac_aux_dir/install.sh -c"
538 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
541 ac_config_guess=$ac_aux_dir/config.guess
542 ac_config_sub=$ac_aux_dir/config.sub
543 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
546 # Make sure we can run config.sub.
547 if $ac_config_sub sun4 >/dev/null 2>&1; then :
548 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
551 echo $ac_n "checking host system type""... $ac_c" 1>&6
552 echo "configure:553: checking host system type" >&5
555 case "$host_alias" in
559 if host_alias=`$ac_config_guess`; then :
560 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
562 *) host_alias=$nonopt ;;
566 host=`$ac_config_sub $host_alias`
567 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
568 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
569 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
570 echo "$ac_t""$host" 1>&6
573 # Find a good install program. We prefer a C program (faster),
574 # so one script is as good as another. But avoid the broken or
575 # incompatible versions:
576 # SysV /etc/install, /usr/sbin/install
577 # SunOS /usr/etc/install
580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
582 # ./install, which can be erroneously created by make from ./install.sh.
583 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
584 echo "configure:585: checking for a BSD compatible install" >&5
585 if test -z "$INSTALL"; then
586 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
587 echo $ac_n "(cached) $ac_c" 1>&6
589 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
590 for ac_dir in $PATH; do
591 # Account for people who put trailing slashes in PATH elements.
593 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
595 # OSF1 and SCO ODT 3.0 have their own names for install.
596 for ac_prog in ginstall installbsd scoinst install; do
597 if test -f $ac_dir/$ac_prog; then
598 if test $ac_prog = install &&
599 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
600 # AIX install. It has an incompatible calling convention.
601 # OSF/1 installbsd also uses dspmsg, but is usable.
604 ac_cv_path_install="$ac_dir/$ac_prog -c"
615 if test "${ac_cv_path_install+set}" = set; then
616 INSTALL="$ac_cv_path_install"
618 # As a last resort, use the slow shell script. We don't cache a
619 # path for INSTALL within a source directory, because that will
620 # break other packages using the cache if that directory is
621 # removed, or if the path is relative.
622 INSTALL="$ac_install_sh"
625 echo "$ac_t""$INSTALL" 1>&6
627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
628 # It thinks the first close brace ends the variable substitution.
629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
636 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
637 echo "configure:638: checking whether build environment is sane" >&5
640 echo timestamp > conftestfile
641 # Do `set' in a subshell so we don't clobber the current shell's
642 # arguments. Must try -L first in case configure is actually a
643 # symlink; some systems play weird games with the mod time of symlinks
644 # (eg FreeBSD returns the mod time of the symlink's containing
647 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
648 if test "$*" = "X"; then
650 set X `ls -t $srcdir/configure conftestfile`
652 if test "$*" != "X $srcdir/configure conftestfile" \
653 && test "$*" != "X conftestfile $srcdir/configure"; then
655 # If neither matched, then we have a broken ls. This can happen
656 # if, for instance, CONFIG_SHELL is bash and it inherits a
657 # broken ls alias from the environment. This has actually
658 # happened. Such a system could not be considered "sane".
659 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
660 alias in your environment" 1>&2; exit 1; }
663 test "$2" = conftestfile
669 { echo "configure: error: newly created file is older than distributed files!
670 Check your system clock" 1>&2; exit 1; }
673 echo "$ac_t""yes" 1>&6
674 if test "$program_transform_name" = s,x,x,; then
675 program_transform_name=
677 # Double any \ or $. echo might interpret backslashes.
678 cat <<\EOF_SED > conftestsed
679 s,\\,\\\\,g; s,\$,$$,g
681 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
684 test "$program_prefix" != NONE &&
685 program_transform_name="s,^,${program_prefix},; $program_transform_name"
686 # Use a double $ so make ignores it.
687 test "$program_suffix" != NONE &&
688 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
690 # sed with no file args requires a program.
691 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
693 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
694 echo "configure:695: checking whether ${MAKE-make} sets \${MAKE}" >&5
695 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
696 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 cat > conftestmake <<\EOF
701 @echo 'ac_maketemp="${MAKE}"'
703 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
704 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
705 if test -n "$ac_maketemp"; then
706 eval ac_cv_prog_make_${ac_make}_set=yes
708 eval ac_cv_prog_make_${ac_make}_set=no
712 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
713 echo "$ac_t""yes" 1>&6
716 echo "$ac_t""no" 1>&6
717 SET_MAKE="MAKE=${MAKE-make}"
725 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
726 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
728 cat >> confdefs.h <<EOF
729 #define PACKAGE "$PACKAGE"
732 cat >> confdefs.h <<EOF
733 #define VERSION "$VERSION"
738 missing_dir=`cd $ac_aux_dir && pwd`
739 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
740 echo "configure:741: checking for working aclocal" >&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 (aclocal --version) < /dev/null > /dev/null 2>&1; then
746 echo "$ac_t""found" 1>&6
748 ACLOCAL="$missing_dir/missing aclocal"
749 echo "$ac_t""missing" 1>&6
752 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
753 echo "configure:754: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
759 echo "$ac_t""found" 1>&6
761 AUTOCONF="$missing_dir/missing autoconf"
762 echo "$ac_t""missing" 1>&6
765 echo $ac_n "checking for working automake""... $ac_c" 1>&6
766 echo "configure:767: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
772 echo "$ac_t""found" 1>&6
774 AUTOMAKE="$missing_dir/missing automake"
775 echo "$ac_t""missing" 1>&6
778 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
779 echo "configure:780: checking for working autoheader" >&5
780 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
784 AUTOHEADER=autoheader
785 echo "$ac_t""found" 1>&6
787 AUTOHEADER="$missing_dir/missing autoheader"
788 echo "$ac_t""missing" 1>&6
791 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
792 echo "configure:793: checking for working makeinfo" >&5
793 # Run test in a subshell; some versions of sh will print an error if
794 # an executable is not found, even if stderr is redirected.
795 # Redirect stdin to placate older versions of autoconf. Sigh.
796 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
798 echo "$ac_t""found" 1>&6
800 MAKEINFO="$missing_dir/missing makeinfo"
801 echo "$ac_t""missing" 1>&6
815 CFLAGS="-ieee -O2 -g3"
816 COMPILER_SOURCES="compiler.h compiler.c"
817 COMPILER_OBJECTS="compiler.o"
818 cat >> confdefs.h <<\EOF
819 #define OLD_COMPILER 1
826 CFLAGS="-64 -g -DMAP_ANONYMOUS=0 -woff 1048,1110,1164,1515"
832 sparc* | powerpc* | ppc* | * )
833 { echo "configure: error: $host-cpu systems are not supported at this time" 1>&2; exit 1; } ;;
840 cat >> confdefs.h <<EOF
841 #define SYSDEP_DIR "$SYSDEP_DIR"
846 # Extract the first word of "gcc", so it can be a program name with args.
847 set dummy gcc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
857 for ac_dir in $PATH; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
868 if test -n "$CC"; then
869 echo "$ac_t""$CC" 1>&6
871 echo "$ac_t""no" 1>&6
874 if test -z "$CC"; then
875 # Extract the first word of "cc", so it can be a program name with args.
876 set dummy cc; ac_word=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 if test -n "$CC"; then
883 ac_cv_prog_CC="$CC" # Let the user override the test.
885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
887 for ac_dir in $PATH; do
888 test -z "$ac_dir" && ac_dir=.
889 if test -f $ac_dir/$ac_word; then
890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
899 if test $ac_prog_rejected = yes; then
900 # We found a bogon in the path, so make sure we never use it.
901 set dummy $ac_cv_prog_CC
903 if test $# -gt 0; then
904 # We chose a different compiler from the bogus one.
905 # However, it has the same basename, so the bogon will be chosen
906 # first if we set CC to just the basename; use the full file name.
908 set dummy "$ac_dir/$ac_word" "$@"
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
919 echo "$ac_t""no" 1>&6
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 cat > conftest.$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
940 if { (eval echo configure:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
941 ac_cv_prog_cc_works=yes
942 # If we can't run a trivial program, we are probably using a cross compiler.
943 if (./conftest; exit) 2>/dev/null; then
944 ac_cv_prog_cc_cross=no
946 ac_cv_prog_cc_cross=yes
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
951 ac_cv_prog_cc_works=no
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.c <<EOF
974 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
985 ac_test_CFLAGS="${CFLAGS+set}"
986 ac_save_CFLAGS="$CFLAGS"
988 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
989 echo "configure:990: checking whether ${CC-cc} accepts -g" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 echo 'void f(){}' > conftest.c
994 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1003 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1004 if test "$ac_test_CFLAGS" = set; then
1005 CFLAGS="$ac_save_CFLAGS"
1006 elif test $ac_cv_prog_cc_g = yes; then
1013 test "${CFLAGS+set}" = set || CFLAGS="-g"
1016 # Extract the first word of "ranlib", so it can be a program name with args.
1017 set dummy ranlib; ac_word=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 if test -n "$RANLIB"; then
1024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1027 for ac_dir in $PATH; do
1028 test -z "$ac_dir" && ac_dir=.
1029 if test -f $ac_dir/$ac_word; then
1030 ac_cv_prog_RANLIB="ranlib"
1035 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1038 RANLIB="$ac_cv_prog_RANLIB"
1039 if test -n "$RANLIB"; then
1040 echo "$ac_t""$RANLIB" 1>&6
1042 echo "$ac_t""no" 1>&6
1046 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1047 echo "configure:1048: checking for sin in -lm" >&5
1048 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 ac_save_LIBS="$LIBS"
1054 cat > conftest.$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1057 /* Override any gcc2 internal prototype to avoid an error. */
1058 /* We use char because int might match the return type of a gcc2
1059 builtin and then its argument prototype would still apply. */
1066 if { (eval echo configure:1067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1068 eval "ac_cv_lib_$ac_lib_var=yes"
1070 echo "configure: failed program was:" >&5
1071 cat conftest.$ac_ext >&5
1073 eval "ac_cv_lib_$ac_lib_var=no"
1076 LIBS="$ac_save_LIBS"
1079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1080 echo "$ac_t""yes" 1>&6
1081 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1082 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1083 cat >> confdefs.h <<EOF
1084 #define $ac_tr_lib 1
1090 echo "$ac_t""no" 1>&6
1095 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1098 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_hdr that defines DIR" >&5
1100 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 cat > conftest.$ac_ext <<EOF
1104 #line 1105 "configure"
1105 #include "confdefs.h"
1106 #include <sys/types.h>
1112 if { (eval echo configure:1113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1114 eval "ac_cv_header_dirent_$ac_safe=yes"
1116 echo "configure: failed program was:" >&5
1117 cat conftest.$ac_ext >&5
1119 eval "ac_cv_header_dirent_$ac_safe=no"
1123 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1124 echo "$ac_t""yes" 1>&6
1125 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1126 cat >> confdefs.h <<EOF
1127 #define $ac_tr_hdr 1
1129 ac_header_dirent=$ac_hdr; break
1131 echo "$ac_t""no" 1>&6
1134 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1135 if test $ac_header_dirent = dirent.h; then
1136 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1137 echo "configure:1138: checking for opendir in -ldir" >&5
1138 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 ac_save_LIBS="$LIBS"
1144 cat > conftest.$ac_ext <<EOF
1145 #line 1146 "configure"
1146 #include "confdefs.h"
1147 /* Override any gcc2 internal prototype to avoid an error. */
1148 /* We use char because int might match the return type of a gcc2
1149 builtin and then its argument prototype would still apply. */
1156 if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1158 eval "ac_cv_lib_$ac_lib_var=yes"
1160 echo "configure: failed program was:" >&5
1161 cat conftest.$ac_ext >&5
1163 eval "ac_cv_lib_$ac_lib_var=no"
1166 LIBS="$ac_save_LIBS"
1169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1170 echo "$ac_t""yes" 1>&6
1173 echo "$ac_t""no" 1>&6
1177 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1178 echo "configure:1179: checking for opendir in -lx" >&5
1179 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 ac_save_LIBS="$LIBS"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 /* Override any gcc2 internal prototype to avoid an error. */
1189 /* We use char because int might match the return type of a gcc2
1190 builtin and then its argument prototype would still apply. */
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1199 eval "ac_cv_lib_$ac_lib_var=yes"
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1204 eval "ac_cv_lib_$ac_lib_var=no"
1207 LIBS="$ac_save_LIBS"
1210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1211 echo "$ac_t""yes" 1>&6
1214 echo "$ac_t""no" 1>&6
1219 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1220 echo "configure:1221: checking how to run the C preprocessor" >&5
1221 # On Suns, sometimes $CPP names a directory.
1222 if test -n "$CPP" && test -d "$CPP"; then
1225 if test -z "$CPP"; then
1226 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 # This must be in double quotes, not single quotes, because CPP may get
1230 # substituted into the Makefile and "${CC-cc}" will confuse make.
1232 # On the NeXT, cc -E runs the code through the compiler's parser,
1233 # not just through cpp.
1234 cat > conftest.$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1241 { (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1242 ac_err=`grep -v '^ *+' conftest.out`
1243 if test -z "$ac_err"; then
1247 echo "configure: failed program was:" >&5
1248 cat conftest.$ac_ext >&5
1250 CPP="${CC-cc} -E -traditional-cpp"
1251 cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1258 { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1259 ac_err=`grep -v '^ *+' conftest.out`
1260 if test -z "$ac_err"; then
1264 echo "configure: failed program was:" >&5
1265 cat conftest.$ac_ext >&5
1272 ac_cv_prog_CPP="$CPP"
1274 CPP="$ac_cv_prog_CPP"
1276 ac_cv_prog_CPP="$CPP"
1278 echo "$ac_t""$CPP" 1>&6
1280 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1281 echo "configure:1282: checking for ANSI C header files" >&5
1282 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 cat > conftest.$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #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
1298 ac_cv_header_stdc=yes
1301 echo "configure: failed program was:" >&5
1302 cat conftest.$ac_ext >&5
1304 ac_cv_header_stdc=no
1308 if test $ac_cv_header_stdc = yes; then
1309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1316 egrep "memchr" >/dev/null 2>&1; then
1320 ac_cv_header_stdc=no
1326 if test $ac_cv_header_stdc = yes; then
1327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1334 egrep "free" >/dev/null 2>&1; then
1338 ac_cv_header_stdc=no
1344 if test $ac_cv_header_stdc = yes; then
1345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1346 if test "$cross_compiling" = yes; then
1349 cat > conftest.$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1353 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1354 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1356 int main () { int i; for (i = 0; i < 256; i++)
1357 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1368 ac_cv_header_stdc=no
1376 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1377 if test $ac_cv_header_stdc = yes; then
1378 cat >> confdefs.h <<\EOF
1379 #define STDC_HEADERS 1
1384 for ac_hdr in fcntl.h sys/time.h unistd.h
1386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1388 echo "configure:1389: checking for $ac_hdr" >&5
1389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1398 { (eval echo configure:1399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1399 ac_err=`grep -v '^ *+' conftest.out`
1400 if test -z "$ac_err"; then
1402 eval "ac_cv_header_$ac_safe=yes"
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1408 eval "ac_cv_header_$ac_safe=no"
1412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1413 echo "$ac_t""yes" 1>&6
1414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1415 cat >> confdefs.h <<EOF
1416 #define $ac_tr_hdr 1
1420 echo "$ac_t""no" 1>&6
1425 echo $ac_n "checking for working const""... $ac_c" 1>&6
1426 echo "configure:1427: checking for working const" >&5
1427 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1436 /* Ultrix mips cc rejects this. */
1437 typedef int charset[2]; const charset x;
1438 /* SunOS 4.1.1 cc rejects this. */
1439 char const *const *ccp;
1441 /* NEC SVR4.0.2 mips cc rejects this. */
1442 struct point {int x, y;};
1443 static struct point const zero = {0,0};
1444 /* AIX XL C 1.02.0.0 rejects this.
1445 It does not let you subtract one const X* pointer from another in an arm
1446 of an if-expression whose if-part is not a constant expression */
1447 const char *g = "string";
1448 ccp = &g + (g ? g-g : 0);
1449 /* HPUX 7.0 cc rejects these. */
1452 ccp = (char const *const *) p;
1453 { /* SCO 3.2v4 cc rejects this. */
1455 char const *s = 0 ? (char *) 0 : (char const *) 0;
1459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1461 const int *foo = &x[0];
1464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1465 typedef const int *iptr;
1469 { /* AIX XL C 1.02.0.0 rejects this saying
1470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1471 struct s { int j; const int *ap[3]; };
1472 struct s *b; b->j = 5;
1474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1480 if { (eval echo configure:1481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1492 echo "$ac_t""$ac_cv_c_const" 1>&6
1493 if test $ac_cv_c_const = no; then
1494 cat >> confdefs.h <<\EOF
1500 echo $ac_n "checking for inline""... $ac_c" 1>&6
1501 echo "configure:1502: checking for inline" >&5
1502 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1506 for ac_kw in inline __inline__ __inline; do
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1515 if { (eval echo configure:1516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1517 ac_cv_c_inline=$ac_kw; break
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1527 echo "$ac_t""$ac_cv_c_inline" 1>&6
1528 case "$ac_cv_c_inline" in
1530 no) cat >> confdefs.h <<\EOF
1534 *) cat >> confdefs.h <<EOF
1535 #define inline $ac_cv_c_inline
1540 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1541 echo "configure:1542: checking for off_t" >&5
1542 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 #include <sys/types.h>
1554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1555 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1557 ac_cv_type_off_t=yes
1565 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1566 if test $ac_cv_type_off_t = no; then
1567 cat >> confdefs.h <<\EOF
1573 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1574 echo "configure:1575: checking for size_t" >&5
1575 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 #include <sys/types.h>
1587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1588 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1590 ac_cv_type_size_t=yes
1593 ac_cv_type_size_t=no
1598 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1599 if test $ac_cv_type_size_t = no; then
1600 cat >> confdefs.h <<\EOF
1601 #define size_t unsigned
1606 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1607 echo "configure:1608: checking whether time.h and sys/time.h may both be included" >&5
1608 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1614 #include <sys/types.h>
1615 #include <sys/time.h>
1621 if { (eval echo configure:1622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1623 ac_cv_header_time=yes
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1628 ac_cv_header_time=no
1633 echo "$ac_t""$ac_cv_header_time" 1>&6
1634 if test $ac_cv_header_time = yes; then
1635 cat >> confdefs.h <<\EOF
1636 #define TIME_WITH_SYS_TIME 1
1641 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether struct tm is in sys/time.h or time.h" >&5
1643 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 #include <sys/types.h>
1652 struct tm *tp; tp->tm_sec;
1655 if { (eval echo configure:1656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1657 ac_cv_struct_tm=time.h
1659 echo "configure: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1662 ac_cv_struct_tm=sys/time.h
1667 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1668 if test $ac_cv_struct_tm = sys/time.h; then
1669 cat >> confdefs.h <<\EOF
1670 #define TM_IN_SYS_TIME 1
1676 if test $ac_cv_prog_gcc = yes; then
1677 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether ${CC-cc} needs -traditional" >&5
1679 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 ac_pattern="Autoconf.*'x'"
1683 cat > conftest.$ac_ext <<EOF
1684 #line 1685 "configure"
1685 #include "confdefs.h"
1689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1690 egrep "$ac_pattern" >/dev/null 2>&1; then
1692 ac_cv_prog_gcc_traditional=yes
1695 ac_cv_prog_gcc_traditional=no
1700 if test $ac_cv_prog_gcc_traditional = no; then
1701 cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1708 egrep "$ac_pattern" >/dev/null 2>&1; then
1710 ac_cv_prog_gcc_traditional=yes
1717 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1718 if test $ac_cv_prog_gcc_traditional = yes; then
1719 CC="$CC -traditional"
1723 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1724 echo "configure:1725: checking for 8-bit clean memcmp" >&5
1725 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 if test "$cross_compiling" = yes; then
1729 ac_cv_func_memcmp_clean=no
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1737 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1738 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1742 if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1744 ac_cv_func_memcmp_clean=yes
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1749 ac_cv_func_memcmp_clean=no
1756 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1757 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
1759 for ac_hdr in unistd.h
1761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1763 echo "configure:1764: checking for $ac_hdr" >&5
1764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1773 { (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1774 ac_err=`grep -v '^ *+' conftest.out`
1775 if test -z "$ac_err"; then
1777 eval "ac_cv_header_$ac_safe=yes"
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1783 eval "ac_cv_header_$ac_safe=no"
1787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1788 echo "$ac_t""yes" 1>&6
1789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1790 cat >> confdefs.h <<EOF
1791 #define $ac_tr_hdr 1
1795 echo "$ac_t""no" 1>&6
1799 for ac_func in getpagesize
1801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1802 echo "configure:1803: checking for $ac_func" >&5
1803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $ac_func(); below. */
1812 /* Override any gcc2 internal prototype to avoid an error. */
1813 /* We use char because int might match the return type of a gcc2
1814 builtin and then its argument prototype would still apply. */
1819 /* The GNU C library defines this for functions which it implements
1820 to always fail with ENOSYS. Some functions are actually named
1821 something starting with __ and the normal name is an alias. */
1822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1830 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1832 eval "ac_cv_func_$ac_func=yes"
1834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1837 eval "ac_cv_func_$ac_func=no"
1842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1845 cat >> confdefs.h <<EOF
1846 #define $ac_tr_func 1
1850 echo "$ac_t""no" 1>&6
1854 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1855 echo "configure:1856: checking for working mmap" >&5
1856 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 if test "$cross_compiling" = yes; then
1860 ac_cv_func_mmap_fixed_mapped=no
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1866 /* Thanks to Mike Haertel and Jim Avera for this test.
1867 Here is a matrix of mmap possibilities:
1868 mmap private not fixed
1869 mmap private fixed at somewhere currently unmapped
1870 mmap private fixed at somewhere already mapped
1871 mmap shared not fixed
1872 mmap shared fixed at somewhere currently unmapped
1873 mmap shared fixed at somewhere already mapped
1874 For private mappings, we should verify that changes cannot be read()
1875 back from the file, nor mmap's back from the file at a different
1876 address. (There have been systems where private was not correctly
1877 implemented like the infamous i386 svr4.0, and systems where the
1878 VM page cache was not coherent with the filesystem buffer cache
1879 like early versions of FreeBSD and possibly contemporary NetBSD.)
1880 For shared mappings, we should conversely verify that changes get
1881 propogated back to all the places they're supposed to be.
1883 Grep wants private fixed already mapped.
1884 The main things grep needs to know about mmap are:
1885 * does it exist and is it safe to write into the mmap'd area
1886 * how to use it (BSD variants) */
1887 #include <sys/types.h>
1889 #include <sys/mman.h>
1891 /* This mess was copied from the GNU getpagesize.h. */
1892 #ifndef HAVE_GETPAGESIZE
1893 # ifdef HAVE_UNISTD_H
1894 # include <unistd.h>
1897 /* Assume that all systems that can run configure have sys/param.h. */
1898 # ifndef HAVE_SYS_PARAM_H
1899 # define HAVE_SYS_PARAM_H 1
1902 # ifdef _SC_PAGESIZE
1903 # define getpagesize() sysconf(_SC_PAGESIZE)
1904 # else /* no _SC_PAGESIZE */
1905 # ifdef HAVE_SYS_PARAM_H
1906 # include <sys/param.h>
1907 # ifdef EXEC_PAGESIZE
1908 # define getpagesize() EXEC_PAGESIZE
1909 # else /* no EXEC_PAGESIZE */
1911 # define getpagesize() NBPG * CLSIZE
1914 # endif /* no CLSIZE */
1915 # else /* no NBPG */
1917 # define getpagesize() NBPC
1918 # else /* no NBPC */
1920 # define getpagesize() PAGESIZE
1921 # endif /* PAGESIZE */
1922 # endif /* no NBPC */
1923 # endif /* no NBPG */
1924 # endif /* no EXEC_PAGESIZE */
1925 # else /* no HAVE_SYS_PARAM_H */
1926 # define getpagesize() 8192 /* punt totally */
1927 # endif /* no HAVE_SYS_PARAM_H */
1928 # endif /* no _SC_PAGESIZE */
1930 #endif /* no HAVE_GETPAGESIZE */
1933 extern "C" { void *malloc(unsigned); }
1941 char *data, *data2, *data3;
1945 pagesize = getpagesize();
1948 * First, make a file with some known garbage in it.
1950 data = malloc(pagesize);
1953 for (i = 0; i < pagesize; ++i)
1954 *(data + i) = rand();
1956 fd = creat("conftestmmap", 0600);
1959 if (write(fd, data, pagesize) != pagesize)
1964 * Next, try to mmap the file at a fixed address which
1965 * already has something else allocated at it. If we can,
1966 * also make sure that we see the same garbage.
1968 fd = open("conftestmmap", O_RDWR);
1971 data2 = malloc(2 * pagesize);
1974 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1975 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1976 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1978 for (i = 0; i < pagesize; ++i)
1979 if (*(data + i) != *(data2 + i))
1983 * Finally, make sure that changes to the mapped area
1984 * do not percolate back to the file as seen by read().
1985 * (This is a bug on some variants of i386 svr4.0.)
1987 for (i = 0; i < pagesize; ++i)
1988 *(data2 + i) = *(data2 + i) + 1;
1989 data3 = malloc(pagesize);
1992 if (read(fd, data3, pagesize) != pagesize)
1994 for (i = 0; i < pagesize; ++i)
1995 if (*(data + i) != *(data3 + i))
1998 unlink("conftestmmap");
2003 if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2005 ac_cv_func_mmap_fixed_mapped=yes
2007 echo "configure: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2010 ac_cv_func_mmap_fixed_mapped=no
2017 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2018 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2019 cat >> confdefs.h <<\EOF
2025 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2026 echo "configure:2027: checking return type of signal handlers" >&5
2027 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 #include <sys/types.h>
2039 extern "C" void (*signal (int, void (*)(int)))(int);
2041 void (*signal ()) ();
2048 if { (eval echo configure:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2050 ac_cv_type_signal=void
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2055 ac_cv_type_signal=int
2060 echo "$ac_t""$ac_cv_type_signal" 1>&6
2061 cat >> confdefs.h <<EOF
2062 #define RETSIGTYPE $ac_cv_type_signal
2066 for ac_func in getcwd gettimeofday mkdir mktime select socket
2068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_func" >&5
2070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 /* System header to define __stub macros and hopefully few prototypes,
2077 which can conflict with char $ac_func(); below. */
2079 /* Override any gcc2 internal prototype to avoid an error. */
2080 /* We use char because int might match the return type of a gcc2
2081 builtin and then its argument prototype would still apply. */
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2097 if { (eval echo configure:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2099 eval "ac_cv_func_$ac_func=yes"
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 eval "ac_cv_func_$ac_func=no"
2109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2110 echo "$ac_t""yes" 1>&6
2111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2112 cat >> confdefs.h <<EOF
2113 #define $ac_tr_func 1
2117 echo "$ac_t""no" 1>&6
2122 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2123 echo $ac_n "checking whether MAP_FAILED is defined""... $ac_c" 1>&6
2124 echo "configure:2125: checking whether MAP_FAILED is defined" >&5
2125 if eval "test \"`echo '$''{'ac_cv_map_failed'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2131 #include <sys/mman.h>
2136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2137 egrep "yes" >/dev/null 2>&1; then
2139 ac_cv_map_failed=yes
2148 echo "$ac_t""$ac_cv_map_failed" 1>&6
2150 echo $ac_n "checking whether MAP_ANONYMOUS is defined""... $ac_c" 1>&6
2151 echo "configure:2152: checking whether MAP_ANONYMOUS is defined" >&5
2152 if eval "test \"`echo '$''{'ac_cv_map_anonymous'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 #include <sys/mman.h>
2159 #ifdef MAP_ANONYMOUS
2163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2164 egrep "yes" >/dev/null 2>&1; then
2166 ac_cv_map_anonymous=yes
2169 ac_cv_map_anonymous=no
2175 echo "$ac_t""$ac_cv_map_anonymous" 1>&6
2177 if test $ac_cv_map_failed = yes; then
2178 cat >> confdefs.h <<\EOF
2179 #define HAVE_MAP_FAILED 1
2184 if test $ac_cv_map_anonymous = yes; then
2185 cat >> confdefs.h <<\EOF
2186 #define HAVE_MAP_ANONYMOUS 1
2194 # Check whether --enable-threads or --disable-threads was given.
2195 if test "${enable_threads+set}" = set; then
2196 enableval="$enable_threads"
2200 # Check whether --enable-gc2 or --disable-gc2 was given.
2201 if test "${enable_gc2+set}" = set; then
2202 enableval="$enable_gc2"
2207 echo $ac_n "checking whether to include threads support""... $ac_c" 1>&6
2208 echo "configure:2209: checking whether to include threads support" >&5
2209 if test x"$enable_threads" = "xno"; then
2210 echo "$ac_t""no" 1>&6
2212 echo "$ac_t""yes" 1>&6
2214 cat >> confdefs.h <<\EOF
2215 #define USE_THREADS 1
2218 cat >> confdefs.h <<\EOF
2219 #define EXTERNAL_OVERFLOW 1
2222 cat >> confdefs.h <<\EOF
2223 #define DONT_FREE_FIRST 1
2227 LIBTHREAD="libthreads.a"
2228 THREAD_OBJ="threads/libthreads.a"
2233 echo $ac_n "checking which garbage collector to use""... $ac_c" 1>&6
2234 echo "configure:2235: checking which garbage collector to use" >&5
2235 if test x"$enable_gc2" = "xno"; then
2236 echo "$ac_t""old garbage collector" 1>&6
2237 GC_OBJ="mm/libmm_old.a"
2239 echo "$ac_t""new garbage collector" 1>&6
2240 GC_OBJ="mm/libmm_new.a"
2246 cat > confcache <<\EOF
2247 # This file is a shell script that caches the results of configure
2248 # tests run on this system so they can be shared between configure
2249 # scripts and configure runs. It is not useful on other systems.
2250 # If it contains results you don't want to keep, you may remove or edit it.
2252 # By default, configure uses ./config.cache as the cache file,
2253 # creating it if it does not exist already. You can give configure
2254 # the --cache-file=FILE option to use a different cache file; that is
2255 # what configure does when it calls configure scripts in
2256 # subdirectories, so they share the cache.
2257 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2258 # config.status only pays attention to the cache file if you give it the
2259 # --recheck option to rerun configure.
2262 # The following way of writing the cache mishandles newlines in values,
2263 # but we know of no workaround that is simple, portable, and efficient.
2264 # So, don't put newlines in cache variables' values.
2265 # Ultrix sh set writes to stderr and can't be redirected directly,
2266 # and sets the high bit in the cache file unless we assign to the vars.
2268 case `(ac_space=' '; set) 2>&1` in
2270 # `set' does not quote correctly, so add quotes (double-quote substitution
2271 # turns \\\\ into \\, and sed turns \\ into \).
2273 -e "s/'/'\\\\''/g" \
2274 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2277 # `set' quotes correctly as required by POSIX, so do not add quotes.
2278 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2281 if cmp -s $cache_file confcache; then
2284 if test -w $cache_file; then
2285 echo "updating cache $cache_file"
2286 cat confcache > $cache_file
2288 echo "not updating unwritable cache $cache_file"
2293 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2296 # Let make expand exec_prefix.
2297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2299 # Any assignment to VPATH causes Sun make to only execute
2300 # the first set of double-colon rules, so remove it if not needed.
2301 # If there is a colon in the path, we need to keep it.
2302 if test "x$srcdir" = x.; then
2303 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2306 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2308 DEFS=-DHAVE_CONFIG_H
2310 # Without the "./", some shells look in PATH for config.status.
2311 : ${CONFIG_STATUS=./config.status}
2313 echo creating $CONFIG_STATUS
2314 rm -f $CONFIG_STATUS
2315 cat > $CONFIG_STATUS <<EOF
2317 # Generated automatically by configure.
2318 # Run this file to recreate the current configuration.
2319 # This directory was configured as follows,
2320 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2322 # $0 $ac_configure_args
2324 # Compiler output produced by configure, useful for debugging
2325 # configure, is in ./config.log if it exists.
2327 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2330 case "\$ac_option" in
2331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2332 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2333 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2334 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2335 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2337 -help | --help | --hel | --he | --h)
2338 echo "\$ac_cs_usage"; exit 0 ;;
2339 *) echo "\$ac_cs_usage"; exit 1 ;;
2343 ac_given_srcdir=$srcdir
2344 ac_given_INSTALL="$INSTALL"
2346 trap 'rm -fr `echo "Makefile \
2357 tst/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2359 cat >> $CONFIG_STATUS <<EOF
2361 # Protect against being on the right side of a sed subst in config.status.
2362 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2363 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2366 s%@CFLAGS@%$CFLAGS%g
2367 s%@CPPFLAGS@%$CPPFLAGS%g
2368 s%@CXXFLAGS@%$CXXFLAGS%g
2370 s%@LDFLAGS@%$LDFLAGS%g
2372 s%@exec_prefix@%$exec_prefix%g
2373 s%@prefix@%$prefix%g
2374 s%@program_transform_name@%$program_transform_name%g
2375 s%@bindir@%$bindir%g
2376 s%@sbindir@%$sbindir%g
2377 s%@libexecdir@%$libexecdir%g
2378 s%@datadir@%$datadir%g
2379 s%@sysconfdir@%$sysconfdir%g
2380 s%@sharedstatedir@%$sharedstatedir%g
2381 s%@localstatedir@%$localstatedir%g
2382 s%@libdir@%$libdir%g
2383 s%@includedir@%$includedir%g
2384 s%@oldincludedir@%$oldincludedir%g
2385 s%@infodir@%$infodir%g
2386 s%@mandir@%$mandir%g
2388 s%@host_alias@%$host_alias%g
2389 s%@host_cpu@%$host_cpu%g
2390 s%@host_vendor@%$host_vendor%g
2391 s%@host_os@%$host_os%g
2392 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2393 s%@INSTALL_DATA@%$INSTALL_DATA%g
2394 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2395 s%@PACKAGE@%$PACKAGE%g
2396 s%@VERSION@%$VERSION%g
2397 s%@ACLOCAL@%$ACLOCAL%g
2398 s%@AUTOCONF@%$AUTOCONF%g
2399 s%@AUTOMAKE@%$AUTOMAKE%g
2400 s%@AUTOHEADER@%$AUTOHEADER%g
2401 s%@MAKEINFO@%$MAKEINFO%g
2402 s%@SET_MAKE@%$SET_MAKE%g
2403 s%@COMPILER_SOURCES@%$COMPILER_SOURCES%g
2404 s%@COMPILER_OBJECTS@%$COMPILER_OBJECTS%g
2405 s%@SYSDEP_DIR@%$SYSDEP_DIR%g
2407 s%@RANLIB@%$RANLIB%g
2409 s%@LIBOBJS@%$LIBOBJS%g
2410 s%@LIBTHREAD@%$LIBTHREAD%g
2411 s%@THREAD_OBJ@%$THREAD_OBJ%g
2412 s%@GC_OBJ@%$GC_OBJ%g
2417 cat >> $CONFIG_STATUS <<\EOF
2419 # Split the substitutions into bite-sized pieces for seds with
2420 # small command number limits, like on Digital OSF/1 and HP-UX.
2421 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2422 ac_file=1 # Number of current file.
2423 ac_beg=1 # First line for current file.
2424 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2427 while $ac_more_lines; do
2428 if test $ac_beg -gt 1; then
2429 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2431 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2433 if test ! -s conftest.s$ac_file; then
2435 rm -f conftest.s$ac_file
2437 if test -z "$ac_sed_cmds"; then
2438 ac_sed_cmds="sed -f conftest.s$ac_file"
2440 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2442 ac_file=`expr $ac_file + 1`
2444 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2447 if test -z "$ac_sed_cmds"; then
2452 cat >> $CONFIG_STATUS <<EOF
2454 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
2467 cat >> $CONFIG_STATUS <<\EOF
2468 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2469 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2471 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2472 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2473 *) ac_file_in="${ac_file}.in" ;;
2476 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2478 # Remove last slash and all that follows it. Not all systems have dirname.
2479 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2480 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2481 # The file is in a subdirectory.
2482 test ! -d "$ac_dir" && mkdir "$ac_dir"
2483 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2484 # A "../" for each directory in $ac_dir_suffix.
2485 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2487 ac_dir_suffix= ac_dots=
2490 case "$ac_given_srcdir" in
2492 if test -z "$ac_dots"; then top_srcdir=.
2493 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2494 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2496 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2497 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2500 case "$ac_given_INSTALL" in
2501 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2502 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2505 echo creating "$ac_file"
2507 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2509 *Makefile*) ac_comsub="1i\\
2510 # $configure_input" ;;
2514 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2516 s%@configure_input@%$configure_input%g
2517 s%@srcdir@%$srcdir%g
2518 s%@top_srcdir@%$top_srcdir%g
2519 s%@INSTALL@%$INSTALL%g
2520 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2524 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2525 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2527 # ac_d sets the value in "#define NAME VALUE" lines.
2528 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2529 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2532 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2533 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2534 ac_uB='\([ ]\)%\1#\2define\3'
2537 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2538 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2539 ac_eB='$%\1#\2define\3'
2543 if test "${CONFIG_HEADERS+set}" != set; then
2545 cat >> $CONFIG_STATUS <<EOF
2546 CONFIG_HEADERS="config.h"
2548 cat >> $CONFIG_STATUS <<\EOF
2550 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2551 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2553 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2554 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2555 *) ac_file_in="${ac_file}.in" ;;
2558 echo creating $ac_file
2560 rm -f conftest.frag conftest.in conftest.out
2561 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2562 cat $ac_file_inputs > conftest.in
2566 # Transform confdefs.h into a sed script conftest.vals that substitutes
2567 # the proper values into config.h.in to produce config.h. And first:
2568 # Protect against being on the right side of a sed subst in config.status.
2569 # Protect against being in an unquoted here document in config.status.
2571 cat > conftest.hdr <<\EOF
2574 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2578 sed -n -f conftest.hdr confdefs.h > conftest.vals
2581 # This sed command replaces #undef with comments. This is necessary, for
2582 # example, in the case of _POSIX_SOURCE, which is predefined and required
2583 # on some systems where configure will not decide to define it.
2584 cat >> conftest.vals <<\EOF
2585 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2588 # Break up conftest.vals because some shells have a limit on
2589 # the size of here documents, and old seds have small limits too.
2594 ac_lines=`grep -c . conftest.vals`
2595 # grep -c gives empty output for an empty file on some AIX systems.
2596 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2597 # Write a limited-size here document to conftest.frag.
2598 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2599 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2601 sed -f conftest.frag conftest.in > conftest.out
2603 mv conftest.out conftest.in
2605 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2607 mv conftest.tail conftest.vals
2611 cat >> $CONFIG_STATUS <<\EOF
2612 rm -f conftest.frag conftest.h
2613 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2614 cat conftest.in >> conftest.h
2616 if cmp -s $ac_file conftest.h 2>/dev/null; then
2617 echo "$ac_file is unchanged"
2620 # Remove last slash and all that follows it. Not all systems have dirname.
2621 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2622 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2623 # The file is in a subdirectory.
2624 test ! -d "$ac_dir" && mkdir "$ac_dir"
2627 mv conftest.h $ac_file
2632 cat >> $CONFIG_STATUS <<EOF
2636 cat >> $CONFIG_STATUS <<\EOF
2637 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2641 chmod +x $CONFIG_STATUS
2642 rm -fr confdefs* $ac_clean_files
2643 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1