3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
22 --enable-static[=PKGS] build static libraries [default=yes]"
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
28 --disable-libtool-lock avoid locking (might break parallel builds)"
30 --with-pic try to use only PIC/non-PIC objects [default=use both]"
32 --with-target-subdir=SUBDIR
33 configuring with a cross compiler"
35 --with-cross-host=HOST configuring with a cross compiler"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --enable-parallel-mark parallelize marking and free list construction"
42 --with-ecos enable runtime eCos target support"
44 --enable-full-debug include full support for pointer backtracing etc."
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file=./config.cache
59 program_transform_name=s,x,x,
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
112 -build | --build | --buil | --bui | --bu)
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
128 datadir="$ac_optarg" ;;
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host | --host | --hos | --ho)
222 -host=* | --host=* | --hos=* | --ho=*)
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
343 -site=* | --site=* | --sit=*)
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=gcj_mlc.c
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
551 ac_n= ac_c='\c' ac_t=
557 for ac_dir in . $srcdir/.; do
558 if test -f $ac_dir/install-sh; then
560 ac_install_sh="$ac_aux_dir/install-sh -c"
562 elif test -f $ac_dir/install.sh; then
564 ac_install_sh="$ac_aux_dir/install.sh -c"
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
571 ac_config_guess=$ac_aux_dir/config.guess
572 ac_config_sub=$ac_aux_dir/config.sub
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
576 # Find a good install program. We prefer a C program (faster),
577 # so one script is as good as another. But avoid the broken or
578 # incompatible versions:
579 # SysV /etc/install, /usr/sbin/install
580 # SunOS /usr/etc/install
583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
586 # ./install, which can be erroneously created by make from ./install.sh.
587 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
588 echo "configure:589: checking for a BSD compatible install" >&5
589 if test -z "$INSTALL"; then
590 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
591 echo $ac_n "(cached) $ac_c" 1>&6
593 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
594 for ac_dir in $PATH; do
595 # Account for people who put trailing slashes in PATH elements.
597 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
599 # OSF1 and SCO ODT 3.0 have their own names for install.
600 # Don't use installbsd from OSF since it installs stuff as root
602 for ac_prog in ginstall scoinst install; do
603 if test -f $ac_dir/$ac_prog; then
604 if test $ac_prog = install &&
605 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
606 # AIX install. It has an incompatible calling convention.
609 ac_cv_path_install="$ac_dir/$ac_prog -c"
620 if test "${ac_cv_path_install+set}" = set; then
621 INSTALL="$ac_cv_path_install"
623 # As a last resort, use the slow shell script. We don't cache a
624 # path for INSTALL within a source directory, because that will
625 # break other packages using the cache if that directory is
626 # removed, or if the path is relative.
627 INSTALL="$ac_install_sh"
630 echo "$ac_t""$INSTALL" 1>&6
632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
633 # It thinks the first close brace ends the variable substitution.
634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
640 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
641 echo "configure:642: checking whether build environment is sane" >&5
644 echo timestamp > conftestfile
645 # Do `set' in a subshell so we don't clobber the current shell's
646 # arguments. Must try -L first in case configure is actually a
647 # symlink; some systems play weird games with the mod time of symlinks
648 # (eg FreeBSD returns the mod time of the symlink's containing
651 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
652 if test "$*" = "X"; then
654 set X `ls -t $srcdir/configure conftestfile`
656 if test "$*" != "X $srcdir/configure conftestfile" \
657 && test "$*" != "X conftestfile $srcdir/configure"; then
659 # If neither matched, then we have a broken ls. This can happen
660 # if, for instance, CONFIG_SHELL is bash and it inherits a
661 # broken ls alias from the environment. This has actually
662 # happened. Such a system could not be considered "sane".
663 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
664 alias in your environment" 1>&2; exit 1; }
667 test "$2" = conftestfile
673 { echo "configure: error: newly created file is older than distributed files!
674 Check your system clock" 1>&2; exit 1; }
677 echo "$ac_t""yes" 1>&6
678 if test "$program_transform_name" = s,x,x,; then
679 program_transform_name=
681 # Double any \ or $. echo might interpret backslashes.
682 cat <<\EOF_SED > conftestsed
683 s,\\,\\\\,g; s,\$,$$,g
685 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
688 test "$program_prefix" != NONE &&
689 program_transform_name="s,^,${program_prefix},; $program_transform_name"
690 # Use a double $ so make ignores it.
691 test "$program_suffix" != NONE &&
692 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
694 # sed with no file args requires a program.
695 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
697 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
698 echo "configure:699: checking whether ${MAKE-make} sets \${MAKE}" >&5
699 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
700 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 cat > conftestmake <<\EOF
705 @echo 'ac_maketemp="${MAKE}"'
707 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
708 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
709 if test -n "$ac_maketemp"; then
710 eval ac_cv_prog_make_${ac_make}_set=yes
712 eval ac_cv_prog_make_${ac_make}_set=no
716 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
717 echo "$ac_t""yes" 1>&6
720 echo "$ac_t""no" 1>&6
721 SET_MAKE="MAKE=${MAKE-make}"
724 if test $host != $build; then
725 ac_tool_prefix=${host_alias}-
730 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
731 echo "configure:732: checking for Cygwin environment" >&5
732 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 cat > conftest.$ac_ext <<EOF
736 #line 737 "configure"
737 #include "confdefs.h"
742 #define __CYGWIN__ __CYGWIN32__
747 if { (eval echo configure:748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
751 echo "configure: failed program was:" >&5
752 cat conftest.$ac_ext >&5
760 echo "$ac_t""$ac_cv_cygwin" 1>&6
762 test "$ac_cv_cygwin" = yes && CYGWIN=yes
763 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
764 echo "configure:765: checking for mingw32 environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
768 cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
776 if { (eval echo configure:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
780 echo "configure: failed program was:" >&5
781 cat conftest.$ac_ext >&5
789 echo "$ac_t""$ac_cv_mingw32" 1>&6
791 test "$ac_cv_mingw32" = yes && MINGW32=yes
793 # Check whether --enable-multilib or --disable-multilib was given.
794 if test "${enable_multilib+set}" = set; then
795 enableval="$enable_multilib"
796 case "${enableval}" in
799 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
806 if test "${srcdir}" = "."; then
807 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
808 gc_basedir="${srcdir}/${with_multisrctop}../."
810 gc_basedir="${srcdir}/${with_multisrctop}."
813 gc_basedir="${srcdir}/."
817 for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
818 if test -f $ac_dir/install-sh; then
820 ac_install_sh="$ac_aux_dir/install-sh -c"
822 elif test -f $ac_dir/install.sh; then
824 ac_install_sh="$ac_aux_dir/install.sh -c"
828 if test -z "$ac_aux_dir"; then
829 { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; }
831 ac_config_guess=$ac_aux_dir/config.guess
832 ac_config_sub=$ac_aux_dir/config.sub
833 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
836 # This overrides the previous occurrence for automake, but not for
837 # autoconf, which is exactly what we want.
839 for ac_dir in .. $srcdir/..; do
840 if test -f $ac_dir/install-sh; then
842 ac_install_sh="$ac_aux_dir/install-sh -c"
844 elif test -f $ac_dir/install.sh; then
846 ac_install_sh="$ac_aux_dir/install.sh -c"
850 if test -z "$ac_aux_dir"; then
851 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
853 ac_config_guess=$ac_aux_dir/config.guess
854 ac_config_sub=$ac_aux_dir/config.sub
855 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
860 # Do some error checking and defaulting for the host and target type.
862 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
865 # 1. You are not allowed to specify --host, --target, and nonopt at the
867 # 2. Host defaults to nonopt.
868 # 3. If nonopt is not specified, then host defaults to the current host,
869 # as determined by config.guess.
870 # 4. Target and build default to nonopt.
871 # 5. If nonopt is not specified, then target and build default to host.
873 # The aliases save the names the user supplied, while $host etc.
874 # will get canonicalized.
875 case $host---$target---$nonopt in
876 NONE---*---* | *---NONE---* | *---*---NONE) ;;
877 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
881 # Make sure we can run config.sub.
882 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
883 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
886 echo $ac_n "checking host system type""... $ac_c" 1>&6
887 echo "configure:888: checking host system type" >&5
890 case "$host_alias" in
894 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
895 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
897 *) host_alias=$nonopt ;;
901 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
902 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
903 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
904 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905 echo "$ac_t""$host" 1>&6
907 echo $ac_n "checking target system type""... $ac_c" 1>&6
908 echo "configure:909: checking target system type" >&5
911 case "$target_alias" in
914 NONE) target_alias=$host_alias ;;
915 *) target_alias=$nonopt ;;
919 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
920 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
921 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
922 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
923 echo "$ac_t""$target" 1>&6
925 echo $ac_n "checking build system type""... $ac_c" 1>&6
926 echo "configure:927: checking build system type" >&5
929 case "$build_alias" in
932 NONE) build_alias=$host_alias ;;
933 *) build_alias=$nonopt ;;
937 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
938 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
939 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
940 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
941 echo "$ac_t""$build" 1>&6
943 test "$host_alias" != "$target_alias" &&
944 test "$program_prefix$program_suffix$program_transform_name" = \
946 program_prefix=${target_alias}-
949 # This works around an automake problem.
950 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
958 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
959 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
964 missing_dir=`cd $ac_aux_dir && pwd`
965 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
966 echo "configure:967: checking for working aclocal" >&5
967 # Run test in a subshell; some versions of sh will print an error if
968 # an executable is not found, even if stderr is redirected.
969 # Redirect stdin to placate older versions of autoconf. Sigh.
970 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
972 echo "$ac_t""found" 1>&6
974 ACLOCAL="$missing_dir/missing aclocal"
975 echo "$ac_t""missing" 1>&6
978 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
979 echo "configure:980: checking for working autoconf" >&5
980 # Run test in a subshell; some versions of sh will print an error if
981 # an executable is not found, even if stderr is redirected.
982 # Redirect stdin to placate older versions of autoconf. Sigh.
983 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
985 echo "$ac_t""found" 1>&6
987 AUTOCONF="$missing_dir/missing autoconf"
988 echo "$ac_t""missing" 1>&6
991 echo $ac_n "checking for working automake""... $ac_c" 1>&6
992 echo "configure:993: checking for working automake" >&5
993 # Run test in a subshell; some versions of sh will print an error if
994 # an executable is not found, even if stderr is redirected.
995 # Redirect stdin to placate older versions of autoconf. Sigh.
996 if (automake --version) < /dev/null > /dev/null 2>&1; then
998 echo "$ac_t""found" 1>&6
1000 AUTOMAKE="$missing_dir/missing automake"
1001 echo "$ac_t""missing" 1>&6
1004 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1005 echo "configure:1006: checking for working autoheader" >&5
1006 # Run test in a subshell; some versions of sh will print an error if
1007 # an executable is not found, even if stderr is redirected.
1008 # Redirect stdin to placate older versions of autoconf. Sigh.
1009 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1010 AUTOHEADER=autoheader
1011 echo "$ac_t""found" 1>&6
1013 AUTOHEADER="$missing_dir/missing autoheader"
1014 echo "$ac_t""missing" 1>&6
1017 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working makeinfo" >&5
1019 # Run test in a subshell; some versions of sh will print an error if
1020 # an executable is not found, even if stderr is redirected.
1021 # Redirect stdin to placate older versions of autoconf. Sigh.
1022 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1024 echo "$ac_t""found" 1>&6
1026 MAKEINFO="$missing_dir/missing makeinfo"
1027 echo "$ac_t""missing" 1>&6
1032 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1033 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1034 # are probably using a cross compiler, which will not be able to fully
1035 # link an executable. This should really be fixed in autoconf
1041 # Extract the first word of "gcc", so it can be a program name with args.
1042 set dummy gcc; ac_word=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 if test -n "$CC"; then
1049 ac_cv_prog_CC="$CC" # Let the user override the test.
1051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1053 for ac_dir in $ac_dummy; do
1054 test -z "$ac_dir" && ac_dir=.
1055 if test -f $ac_dir/$ac_word; then
1064 if test -n "$CC"; then
1065 echo "$ac_t""$CC" 1>&6
1067 echo "$ac_t""no" 1>&6
1070 if test -z "$CC"; then
1071 # Extract the first word of "cc", so it can be a program name with args.
1072 set dummy cc; ac_word=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$CC"; then
1079 ac_cv_prog_CC="$CC" # Let the user override the test.
1081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1084 for ac_dir in $ac_dummy; do
1085 test -z "$ac_dir" && ac_dir=.
1086 if test -f $ac_dir/$ac_word; then
1087 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1088 ac_prog_rejected=yes
1096 if test $ac_prog_rejected = yes; then
1097 # We found a bogon in the path, so make sure we never use it.
1098 set dummy $ac_cv_prog_CC
1100 if test $# -gt 0; then
1101 # We chose a different compiler from the bogus one.
1102 # However, it has the same basename, so the bogon will be chosen
1103 # first if we set CC to just the basename; use the full file name.
1105 set dummy "$ac_dir/$ac_word" "$@"
1113 if test -n "$CC"; then
1114 echo "$ac_t""$CC" 1>&6
1116 echo "$ac_t""no" 1>&6
1119 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1122 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether we are using GNU C" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 cat > conftest.c <<EOF
1132 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1139 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1141 if test $ac_cv_prog_gcc = yes; then
1143 ac_test_CFLAGS="${CFLAGS+set}"
1144 ac_save_CFLAGS="$CFLAGS"
1146 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether ${CC-cc} accepts -g" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 echo 'void f(){}' > conftest.c
1152 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1161 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1162 if test "$ac_test_CFLAGS" = set; then
1163 CFLAGS="$ac_save_CFLAGS"
1164 elif test $ac_cv_prog_cc_g = yes; then
1171 test "${CFLAGS+set}" = set || CFLAGS="-g"
1175 # Likewise for AC_PROG_CXX.
1179 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1181 # Extract the first word of "$ac_prog", so it can be a program name with args.
1182 set dummy $ac_prog; ac_word=$2
1183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_word" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 if test -n "$CXX"; then
1189 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1193 for ac_dir in $ac_dummy; do
1194 test -z "$ac_dir" && ac_dir=.
1195 if test -f $ac_dir/$ac_word; then
1196 ac_cv_prog_CXX="$ac_prog"
1203 CXX="$ac_cv_prog_CXX"
1204 if test -n "$CXX"; then
1205 echo "$ac_t""$CXX" 1>&6
1207 echo "$ac_t""no" 1>&6
1210 test -n "$CXX" && break
1212 test -n "$CXX" || CXX="gcc"
1214 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1216 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether we are using GNU C++" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftest.C <<EOF
1226 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1233 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1235 if test $ac_cv_prog_gxx = yes; then
1237 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1238 ac_save_CXXFLAGS="$CXXFLAGS"
1240 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether ${CXX-g++} accepts -g" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 echo 'void f(){}' > conftest.cc
1246 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1247 ac_cv_prog_cxx_g=yes
1255 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1256 if test "$ac_test_CXXFLAGS" = set; then
1257 CXXFLAGS="$ac_save_CXXFLAGS"
1258 elif test $ac_cv_prog_cxx_g = yes; then
1265 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1269 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1270 # run it explicitly here, it will be run implicitly before
1271 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1272 # be run before AC_CANONICAL_HOST.
1273 echo $ac_n "checking build system type""... $ac_c" 1>&6
1274 echo "configure:1275: checking build system type" >&5
1277 case "$build_alias" in
1280 NONE) build_alias=$host_alias ;;
1281 *) build_alias=$nonopt ;;
1285 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1286 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1287 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1288 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1289 echo "$ac_t""$build" 1>&6
1292 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1293 set dummy ${ac_tool_prefix}as; ac_word=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 if test -n "$AS"; then
1300 ac_cv_prog_AS="$AS" # Let the user override the test.
1302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1304 for ac_dir in $ac_dummy; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/$ac_word; then
1307 ac_cv_prog_AS="${ac_tool_prefix}as"
1312 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1316 if test -n "$AS"; then
1317 echo "$ac_t""$AS" 1>&6
1319 echo "$ac_t""no" 1>&6
1324 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1325 set dummy ${ac_tool_prefix}ar; ac_word=$2
1326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_word" >&5
1328 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1331 if test -n "$AR"; then
1332 ac_cv_prog_AR="$AR" # Let the user override the test.
1334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1336 for ac_dir in $ac_dummy; do
1337 test -z "$ac_dir" && ac_dir=.
1338 if test -f $ac_dir/$ac_word; then
1339 ac_cv_prog_AR="${ac_tool_prefix}ar"
1344 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1348 if test -n "$AR"; then
1349 echo "$ac_t""$AR" 1>&6
1351 echo "$ac_t""no" 1>&6
1356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_word" >&5
1360 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 if test -n "$RANLIB"; then
1364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1368 for ac_dir in $ac_dummy; do
1369 test -z "$ac_dir" && ac_dir=.
1370 if test -f $ac_dir/$ac_word; then
1371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1378 RANLIB="$ac_cv_prog_RANLIB"
1379 if test -n "$RANLIB"; then
1380 echo "$ac_t""$RANLIB" 1>&6
1382 echo "$ac_t""no" 1>&6
1386 if test -z "$ac_cv_prog_RANLIB"; then
1387 if test -n "$ac_tool_prefix"; then
1388 # Extract the first word of "ranlib", so it can be a program name with args.
1389 set dummy ranlib; ac_word=$2
1390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_word" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 if test -n "$RANLIB"; then
1396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 for ac_dir in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_RANLIB="ranlib"
1408 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1411 RANLIB="$ac_cv_prog_RANLIB"
1412 if test -n "$RANLIB"; then
1413 echo "$ac_t""$RANLIB" 1>&6
1415 echo "$ac_t""no" 1>&6
1424 # Find a good install program. We prefer a C program (faster),
1425 # so one script is as good as another. But avoid the broken or
1426 # incompatible versions:
1427 # SysV /etc/install, /usr/sbin/install
1428 # SunOS /usr/etc/install
1429 # IRIX /sbin/install
1431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1434 # ./install, which can be erroneously created by make from ./install.sh.
1435 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1436 echo "configure:1437: checking for a BSD compatible install" >&5
1437 if test -z "$INSTALL"; then
1438 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1442 for ac_dir in $PATH; do
1443 # Account for people who put trailing slashes in PATH elements.
1445 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1447 # OSF1 and SCO ODT 3.0 have their own names for install.
1448 # Don't use installbsd from OSF since it installs stuff as root
1450 for ac_prog in ginstall scoinst install; do
1451 if test -f $ac_dir/$ac_prog; then
1452 if test $ac_prog = install &&
1453 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1454 # AIX install. It has an incompatible calling convention.
1457 ac_cv_path_install="$ac_dir/$ac_prog -c"
1468 if test "${ac_cv_path_install+set}" = set; then
1469 INSTALL="$ac_cv_path_install"
1471 # As a last resort, use the slow shell script. We don't cache a
1472 # path for INSTALL within a source directory, because that will
1473 # break other packages using the cache if that directory is
1474 # removed, or if the path is relative.
1475 INSTALL="$ac_install_sh"
1478 echo "$ac_t""$INSTALL" 1>&6
1480 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1481 # It thinks the first close brace ends the variable substitution.
1482 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1484 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1486 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1489 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1490 echo "configure:1491: checking whether to enable maintainer-specific portions of Makefiles" >&5
1491 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1492 if test "${enable_maintainer_mode+set}" = set; then
1493 enableval="$enable_maintainer_mode"
1494 USE_MAINTAINER_MODE=$enableval
1496 USE_MAINTAINER_MODE=no
1499 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1502 if test $USE_MAINTAINER_MODE = yes; then
1503 MAINTAINER_MODE_TRUE=
1504 MAINTAINER_MODE_FALSE='#'
1506 MAINTAINER_MODE_TRUE='#'
1507 MAINTAINER_MODE_FALSE=
1509 MAINT=$MAINTAINER_MODE_TRUE
1513 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1514 # at least currently, we never actually build a program, so we never
1515 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1516 # fails, because we are probably configuring with a cross compiler
1517 # which can't create executables. So we include AC_EXEEXT to keep
1518 # automake happy, but we don't execute it, since we don't care about
1521 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1522 # to nothing, so nothing would remain between `then' and `fi' if it
1523 # were not for the `:' below.
1527 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1528 echo "configure:1529: checking for executable suffix" >&5
1529 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1536 echo 'int main () { return 0; }' > conftest.$ac_ext
1538 if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1539 for file in conftest.*; do
1541 *.c | *.o | *.obj) ;;
1542 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1546 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1549 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1554 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1555 echo "$ac_t""${ac_cv_exeext}" 1>&6
1560 . ${srcdir}/configure.host
1562 case ${gc_basedir} in
1563 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
1564 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1567 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1570 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1575 GC_CFLAGS=${gc_cflags}
1579 # Check whether --enable-shared or --disable-shared was given.
1580 if test "${enable_shared+set}" = set; then
1581 enableval="$enable_shared"
1582 p=${PACKAGE-default}
1584 yes) enable_shared=yes ;;
1585 no) enable_shared=no ;;
1588 # Look at the argument we got. We use all the common list separators.
1589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1590 for pkg in $enableval; do
1591 if test "X$pkg" = "X$p"; then
1602 # Check whether --enable-static or --disable-static was given.
1603 if test "${enable_static+set}" = set; then
1604 enableval="$enable_static"
1605 p=${PACKAGE-default}
1607 yes) enable_static=yes ;;
1608 no) enable_static=no ;;
1611 # Look at the argument we got. We use all the common list separators.
1612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1613 for pkg in $enableval; do
1614 if test "X$pkg" = "X$p"; then
1625 # Check whether --enable-fast-install or --disable-fast-install was given.
1626 if test "${enable_fast_install+set}" = set; then
1627 enableval="$enable_fast_install"
1628 p=${PACKAGE-default}
1630 yes) enable_fast_install=yes ;;
1631 no) enable_fast_install=no ;;
1633 enable_fast_install=no
1634 # Look at the argument we got. We use all the common list separators.
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1636 for pkg in $enableval; do
1637 if test "X$pkg" = "X$p"; then
1638 enable_fast_install=yes
1645 enable_fast_install=yes
1648 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1649 if test "${with_gnu_ld+set}" = set; then
1650 withval="$with_gnu_ld"
1651 test "$withval" = no || with_gnu_ld=yes
1657 if test "$GCC" = yes; then
1658 # Check if gcc -print-prog-name=ld gives a path.
1659 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1660 echo "configure:1661: checking for ld used by GCC" >&5
1663 # gcc leaves a trailing carriage return which upsets mingw
1664 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1666 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1669 # Accept absolute paths.
1670 [\\/]* | [A-Za-z]:[\\/]*)
1671 re_direlt='/[^/][^/]*/\.\./'
1672 # Canonicalize the path of ld
1673 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1674 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1675 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1677 test -z "$LD" && LD="$ac_prog"
1680 # If it fails, then pretend we aren't using GCC.
1684 # If it is relative, then search for the first ld in PATH.
1688 elif test "$with_gnu_ld" = yes; then
1689 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1690 echo "configure:1691: checking for GNU ld" >&5
1692 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1693 echo "configure:1694: checking for non-GNU ld" >&5
1695 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 if test -z "$LD"; then
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1700 for ac_dir in $PATH; do
1701 test -z "$ac_dir" && ac_dir=.
1702 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1703 lt_cv_path_LD="$ac_dir/$ac_prog"
1704 # Check to see if the program is GNU ld. I'd rather use --version,
1705 # but apparently some GNU ld's only accept -v.
1706 # Break only if it was the GNU/non-GNU ld that we prefer.
1707 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1708 test "$with_gnu_ld" != no && break
1710 test "$with_gnu_ld" != yes && break
1716 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1721 if test -n "$LD"; then
1722 echo "$ac_t""$LD" 1>&6
1724 echo "$ac_t""no" 1>&6
1726 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1727 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1728 echo "configure:1729: checking if the linker ($LD) is GNU ld" >&5
1729 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1733 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1734 lt_cv_prog_gnu_ld=yes
1736 lt_cv_prog_gnu_ld=no
1740 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1741 with_gnu_ld=$lt_cv_prog_gnu_ld
1744 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1745 echo "configure:1746: checking for $LD option to reload object files" >&5
1746 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 lt_cv_ld_reload_flag='-r'
1752 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1753 reload_flag=$lt_cv_ld_reload_flag
1754 test -n "$reload_flag" && reload_flag=" $reload_flag"
1756 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1757 echo "configure:1758: checking for BSD-compatible nm" >&5
1758 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 if test -n "$NM"; then
1762 # Let the user override the test.
1765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1766 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1767 test -z "$ac_dir" && ac_dir=.
1768 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1769 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1770 # Check to see if the nm accepts a BSD-compat flag.
1771 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1772 # nm: unknown option "B" ignored
1773 # Tru64's nm complains that /dev/null is an invalid object file
1774 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1775 lt_cv_path_NM="$tmp_nm -B"
1777 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1778 lt_cv_path_NM="$tmp_nm -p"
1781 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1782 continue # so that we can try to find one that supports BSD flags
1787 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1792 echo "$ac_t""$NM" 1>&6
1794 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1795 echo "configure:1796: checking whether ln -s works" >&5
1796 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1800 if ln -s X conftestdata 2>/dev/null
1803 ac_cv_prog_LN_S="ln -s"
1808 LN_S="$ac_cv_prog_LN_S"
1809 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1810 echo "$ac_t""yes" 1>&6
1812 echo "$ac_t""no" 1>&6
1815 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1816 echo "configure:1817: checking how to recognise dependant libraries" >&5
1817 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 lt_cv_file_magic_cmd='$MAGIC_CMD'
1821 lt_cv_file_magic_test_file=
1822 lt_cv_deplibs_check_method='unknown'
1823 # Need to set the preceding variable on all platforms that support
1824 # interlibrary dependencies.
1825 # 'none' -- dependencies not supported.
1826 # `unknown' -- same as none, but documents that we really don't know.
1827 # 'pass_all' -- all dependencies passed with no checks.
1828 # 'test_compile' -- check by making test program.
1829 # 'file_magic [regex]' -- check by looking for files in library path
1830 # which responds to the $file_magic_cmd with a given egrep regex.
1831 # If you have `file' or equivalent on your system and you're not sure
1832 # whether `pass_all' will *always* work, you probably want this one.
1836 lt_cv_deplibs_check_method=pass_all
1840 lt_cv_deplibs_check_method=pass_all
1844 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1845 lt_cv_file_magic_cmd='/usr/bin/file -L'
1846 lt_cv_file_magic_test_file=/shlib/libc.so
1849 cygwin* | mingw* |pw32*)
1850 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1851 lt_cv_file_magic_cmd='$OBJDUMP -f'
1854 darwin* | rhapsody*)
1855 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1856 lt_cv_file_magic_cmd='/usr/bin/file -L'
1858 rhapsody* | darwin1.012)
1859 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1862 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1868 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1871 # Not sure whether the presence of OpenBSD here was a mistake.
1872 # Let's accept both of them until this is cleared up.
1873 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1874 lt_cv_file_magic_cmd=/usr/bin/file
1875 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1879 lt_cv_deplibs_check_method=pass_all
1884 lt_cv_deplibs_check_method=pass_all
1888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1889 lt_cv_file_magic_cmd=/usr/bin/file
1890 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1896 # this will be overridden with pass_all, but let us keep it just in case
1897 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1901 *-32|*"-32 ") libmagic=32-bit;;
1902 *-n32|*"-n32 ") libmagic=N32;;
1903 *-64|*"-64 ") libmagic=64-bit;;
1904 *) libmagic=never-match;;
1906 # this will be overridden with pass_all, but let us keep it just in case
1907 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1910 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1911 lt_cv_deplibs_check_method=pass_all
1914 # This must be Linux ELF.
1917 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1918 lt_cv_deplibs_check_method=pass_all ;;
1920 # glibc up to 2.1.1 does not perform some relocations on ARM
1921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1923 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1927 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1928 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1930 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1936 lt_cv_file_magic_cmd=/usr/bin/file
1937 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1940 osf3* | osf4* | osf5*)
1941 # this will be overridden with pass_all, but let us keep it just in case
1942 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1943 lt_cv_file_magic_test_file=/shlib/libc.so
1944 lt_cv_deplibs_check_method=pass_all
1948 lt_cv_deplibs_check_method=pass_all
1952 lt_cv_deplibs_check_method=pass_all
1953 lt_cv_file_magic_test_file=/lib/libc.so
1956 sysv5uw[78]* | sysv4*uw2*)
1957 lt_cv_deplibs_check_method=pass_all
1960 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1961 case $host_vendor in
1963 lt_cv_deplibs_check_method=pass_all
1966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1975 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1976 file_magic_cmd=$lt_cv_file_magic_cmd
1977 deplibs_check_method=$lt_cv_deplibs_check_method
1979 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1980 echo "configure:1981: checking for object suffix" >&5
1981 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1985 echo 'int i = 1;' > conftest.$ac_ext
1986 if { (eval echo configure:1987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1987 for ac_file in conftest.*; do
1990 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1994 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1999 echo "$ac_t""$ac_cv_objext" 1>&6
2000 OBJEXT=$ac_cv_objext
2001 ac_objext=$ac_cv_objext
2003 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2005 # Only perform the check for file, if the check method requires it
2006 case $deplibs_check_method in
2008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2009 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2010 echo "configure:2011: checking for ${ac_tool_prefix}file" >&5
2011 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2022 ac_save_MAGIC_CMD="$MAGIC_CMD"
2023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2024 ac_dummy="/usr/bin:$PATH"
2025 for ac_dir in $ac_dummy; do
2026 test -z "$ac_dir" && ac_dir=.
2027 if test -f $ac_dir/${ac_tool_prefix}file; then
2028 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2029 if test -n "$file_magic_test_file"; then
2030 case $deplibs_check_method in
2032 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2035 egrep "$file_magic_regex" > /dev/null; then
2040 *** Warning: the command libtool uses to detect shared libraries,
2041 *** $file_magic_cmd, produces output that libtool cannot recognize.
2042 *** The result is that libtool may fail to recognize shared libraries
2043 *** as such. This will affect the creation of libtool libraries that
2044 *** depend on shared libraries, but programs linked with such libtool
2045 *** libraries will work regardless of this problem. Nevertheless, you
2046 *** may want to report the problem to your system manager and/or to
2047 *** bug-libtool@gnu.org
2057 MAGIC_CMD="$ac_save_MAGIC_CMD"
2062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2063 if test -n "$MAGIC_CMD"; then
2064 echo "$ac_t""$MAGIC_CMD" 1>&6
2066 echo "$ac_t""no" 1>&6
2069 if test -z "$lt_cv_path_MAGIC_CMD"; then
2070 if test -n "$ac_tool_prefix"; then
2071 echo $ac_n "checking for file""... $ac_c" 1>&6
2072 echo "configure:2073: checking for file" >&5
2073 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2084 ac_save_MAGIC_CMD="$MAGIC_CMD"
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2086 ac_dummy="/usr/bin:$PATH"
2087 for ac_dir in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir=.
2089 if test -f $ac_dir/file; then
2090 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2091 if test -n "$file_magic_test_file"; then
2092 case $deplibs_check_method in
2094 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2097 egrep "$file_magic_regex" > /dev/null; then
2102 *** Warning: the command libtool uses to detect shared libraries,
2103 *** $file_magic_cmd, produces output that libtool cannot recognize.
2104 *** The result is that libtool may fail to recognize shared libraries
2105 *** as such. This will affect the creation of libtool libraries that
2106 *** depend on shared libraries, but programs linked with such libtool
2107 *** libraries will work regardless of this problem. Nevertheless, you
2108 *** may want to report the problem to your system manager and/or to
2109 *** bug-libtool@gnu.org
2119 MAGIC_CMD="$ac_save_MAGIC_CMD"
2124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2125 if test -n "$MAGIC_CMD"; then
2126 echo "$ac_t""$MAGIC_CMD" 1>&6
2128 echo "$ac_t""no" 1>&6
2140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_word" >&5
2144 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 if test -n "$RANLIB"; then
2148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2152 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 if test -f $ac_dir/$ac_word; then
2155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2162 RANLIB="$ac_cv_prog_RANLIB"
2163 if test -n "$RANLIB"; then
2164 echo "$ac_t""$RANLIB" 1>&6
2166 echo "$ac_t""no" 1>&6
2170 if test -z "$ac_cv_prog_RANLIB"; then
2171 if test -n "$ac_tool_prefix"; then
2172 # Extract the first word of "ranlib", so it can be a program name with args.
2173 set dummy ranlib; ac_word=$2
2174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_word" >&5
2176 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 if test -n "$RANLIB"; then
2180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2184 for ac_dir in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir=.
2186 if test -f $ac_dir/$ac_word; then
2187 ac_cv_prog_RANLIB="ranlib"
2192 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2195 RANLIB="$ac_cv_prog_RANLIB"
2196 if test -n "$RANLIB"; then
2197 echo "$ac_t""$RANLIB" 1>&6
2199 echo "$ac_t""no" 1>&6
2207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2208 set dummy ${ac_tool_prefix}strip; ac_word=$2
2209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2210 echo "configure:2211: checking for $ac_word" >&5
2211 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 if test -n "$STRIP"; then
2215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2219 for ac_dir in $ac_dummy; do
2220 test -z "$ac_dir" && ac_dir=.
2221 if test -f $ac_dir/$ac_word; then
2222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2229 STRIP="$ac_cv_prog_STRIP"
2230 if test -n "$STRIP"; then
2231 echo "$ac_t""$STRIP" 1>&6
2233 echo "$ac_t""no" 1>&6
2237 if test -z "$ac_cv_prog_STRIP"; then
2238 if test -n "$ac_tool_prefix"; then
2239 # Extract the first word of "strip", so it can be a program name with args.
2240 set dummy strip; ac_word=$2
2241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2242 echo "configure:2243: checking for $ac_word" >&5
2243 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 if test -n "$STRIP"; then
2247 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2251 for ac_dir in $ac_dummy; do
2252 test -z "$ac_dir" && ac_dir=.
2253 if test -f $ac_dir/$ac_word; then
2254 ac_cv_prog_STRIP="strip"
2259 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2262 STRIP="$ac_cv_prog_STRIP"
2263 if test -n "$STRIP"; then
2264 echo "$ac_t""$STRIP" 1>&6
2266 echo "$ac_t""no" 1>&6
2275 # Check for any special flags to pass to ltconfig.
2276 libtool_flags="--cache-file=$cache_file"
2277 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2278 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2279 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2280 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2281 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2284 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2285 if test "${enable_libtool_lock+set}" = set; then
2286 enableval="$enable_libtool_lock"
2290 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2291 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2293 # Check whether --with-pic or --without-pic was given.
2294 if test "${with_pic+set}" = set; then
2301 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2302 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2304 # Some flags need to be propagated to the compiler or linker for good
2308 # Find out which ABI we are using.
2309 echo '#line 2310 "configure"' > conftest.$ac_ext
2310 if { (eval echo configure:2311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2311 case `/usr/bin/file conftest.$ac_objext` in
2327 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2328 SAVE_CFLAGS="$CFLAGS"
2329 CFLAGS="$CFLAGS -belf"
2330 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2331 echo "configure:2332: checking whether the C compiler needs -belf" >&5
2332 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2340 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2341 cross_compiling=$ac_cv_prog_cc_cross
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353 lt_cv_cc_needs_belf=yes
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 lt_cv_cc_needs_belf=no
2362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2366 cross_compiling=$ac_cv_prog_cc_cross
2370 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2371 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2372 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2373 CFLAGS="$SAVE_CFLAGS"
2380 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2381 echo "configure:2382: checking how to run the C++ preprocessor" >&5
2382 if test -z "$CXXCPP"; then
2383 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2387 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2388 ac_cpp='$CXXCPP $CPPFLAGS'
2389 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2390 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2391 cross_compiling=$ac_cv_prog_cxx_cross
2392 CXXCPP="${CXX-g++} -E"
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2399 { (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2401 if test -z "$ac_err"; then
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2411 ac_cv_prog_CXXCPP="$CXXCPP"
2413 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2416 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2417 cross_compiling=$ac_cv_prog_cc_cross
2420 CXXCPP="$ac_cv_prog_CXXCPP"
2421 echo "$ac_t""$CXXCPP" 1>&6
2424 # Save cache, so that ltconfig can load it
2425 cat > confcache <<\EOF
2426 # This file is a shell script that caches the results of configure
2427 # tests run on this system so they can be shared between configure
2428 # scripts and configure runs. It is not useful on other systems.
2429 # If it contains results you don't want to keep, you may remove or edit it.
2431 # By default, configure uses ./config.cache as the cache file,
2432 # creating it if it does not exist already. You can give configure
2433 # the --cache-file=FILE option to use a different cache file; that is
2434 # what configure does when it calls configure scripts in
2435 # subdirectories, so they share the cache.
2436 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2437 # config.status only pays attention to the cache file if you give it the
2438 # --recheck option to rerun configure.
2441 # The following way of writing the cache mishandles newlines in values,
2442 # but we know of no workaround that is simple, portable, and efficient.
2443 # So, don't put newlines in cache variables' values.
2444 # Ultrix sh set writes to stderr and can't be redirected directly,
2445 # and sets the high bit in the cache file unless we assign to the vars.
2447 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2449 # `set' does not quote correctly, so add quotes (double-quote substitution
2450 # turns \\\\ into \\, and sed turns \\ into \).
2452 -e "s/'/'\\\\''/g" \
2453 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2456 # `set' quotes correctly as required by POSIX, so do not add quotes.
2457 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2460 if cmp -s $cache_file confcache; then
2463 if test -w $cache_file; then
2464 echo "updating cache $cache_file"
2465 cat confcache > $cache_file
2467 echo "not updating unwritable cache $cache_file"
2473 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2474 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2475 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2476 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2477 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2478 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2479 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2480 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2481 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2482 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2484 # Reload cache, that may have been modified by ltconfig
2485 if test -r "$cache_file"; then
2486 echo "loading cache $cache_file"
2489 echo "creating cache $cache_file"
2494 # This can be used to rebuild libtool when needed
2495 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2497 # Always use our own libtool.
2498 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2500 # Redirect the config.log output again, so that the ltconfig log is not
2501 # clobbered by the next message.
2502 exec 5>>./config.log
2506 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2508 lt_save_CFLAGS="$CFLAGS"
2509 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2510 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2511 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2512 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2513 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2514 deplibs_check_method="$deplibs_check_method" \
2515 file_magic_cmd="$file_magic_cmd" \
2516 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2517 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2518 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2520 CFLAGS="$lt_save_CFLAGS"
2522 # Redirect the config.log output again, so that the ltconfig log is not
2523 # clobbered by the next message.
2524 exec 5>>./config.log
2532 # Check whether --with-target-subdir or --without-target-subdir was given.
2533 if test "${with_target_subdir+set}" = set; then
2534 withval="$with_target_subdir"
2538 # Check whether --with-cross-host or --without-cross-host was given.
2539 if test "${with_cross_host+set}" = set; then
2540 withval="$with_cross_host"
2545 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2546 echo "configure:2547: checking whether to enable maintainer-specific portions of Makefiles" >&5
2547 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2548 if test "${enable_maintainer_mode+set}" = set; then
2549 enableval="$enable_maintainer_mode"
2550 USE_MAINTAINER_MODE=$enableval
2552 USE_MAINTAINER_MODE=no
2555 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2558 if test $USE_MAINTAINER_MODE = yes; then
2559 MAINTAINER_MODE_TRUE=
2560 MAINTAINER_MODE_FALSE='#'
2562 MAINTAINER_MODE_TRUE='#'
2563 MAINTAINER_MODE_FALSE=
2565 MAINT=$MAINTAINER_MODE_TRUE
2568 # automake wants to see AC_EXEEXT. But we don't need it. And having
2569 # it is actually a problem, because the compiler we're passed can't
2570 # necessarily do a full link. So we fool automake here.
2572 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2573 # to nothing, so nothing would remain between `then' and `fi' if it
2574 # were not for the `:' below.
2578 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2579 echo "configure:2580: checking for executable suffix" >&5
2580 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2587 echo 'int main () { return 0; }' > conftest.$ac_ext
2589 if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2590 for file in conftest.*; do
2592 *.c | *.o | *.obj) ;;
2593 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2597 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2600 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2605 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2606 echo "$ac_t""${ac_cv_exeext}" 1>&6
2611 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2612 echo "configure:2613: checking for thread model used by GCC" >&5
2613 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2614 if test -z "$THREADS"; then
2617 echo "$ac_t""$THREADS" 1>&6
2619 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2620 if test "${enable_parallel_mark+set}" = set; then
2621 enableval="$enable_parallel_mark"
2624 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2631 INCLUDES=-I${srcdir}/include
2639 THREADLIBS=-lpthread
2641 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux*)
2642 cat >> confdefs.h <<\EOF
2643 #define GC_LINUX_THREADS 1
2646 cat >> confdefs.h <<\EOF
2647 #define _REENTRANT 1
2650 if test "${enable_parallel_mark}"; then
2651 cat >> confdefs.h <<\EOF
2652 #define PARALLEL_MARK 1
2656 cat >> confdefs.h <<\EOF
2657 #define THREAD_LOCAL_ALLOC 1
2662 cat >> confdefs.h <<\EOF
2663 #define GC_LINUX_THREADS 1
2666 cat >> confdefs.h <<\EOF
2667 #define _REENTRANT 1
2672 echo "configure: warning: "Only HP/UX 11 threads are supported."" 1>&2
2673 cat >> confdefs.h <<\EOF
2674 #define GC_HPUX_THREADS 1
2677 cat >> confdefs.h <<\EOF
2678 #define _POSIX_C_SOURCE 199506L
2681 if test "${enable_parallel_mark}" = yes; then
2682 cat >> confdefs.h <<\EOF
2683 #define PARALLEL_MARK 1
2687 cat >> confdefs.h <<\EOF
2688 #define THREAD_LOCAL_ALLOC 1
2691 THREADLIBS="-lpthread -lrt"
2694 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2
2695 cat >> confdefs.h <<\EOF
2696 #define FREEBSD_THREADS 1
2699 INCLUDES="$INCLUDES -pthread"
2703 cat >> confdefs.h <<\EOF
2704 #define GC_SOLARIS_THREADS 1
2707 cat >> confdefs.h <<\EOF
2708 #define GC_SOLARIS_PTHREADS 1
2713 cat >> confdefs.h <<\EOF
2714 #define GC_IRIX_THREADS 1
2723 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2724 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2727 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2732 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2733 echo "configure:2734: checking for dlopen in -ldl" >&5
2734 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 ac_save_LIBS="$LIBS"
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 /* Override any gcc2 internal prototype to avoid an error. */
2744 /* We use char because int might match the return type of a gcc2
2745 builtin and then its argument prototype would still apply. */
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2754 eval "ac_cv_lib_$ac_lib_var=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2759 eval "ac_cv_lib_$ac_lib_var=no"
2762 LIBS="$ac_save_LIBS"
2765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2769 echo "$ac_t""no" 1>&6
2774 target_all=libgcjgc.la
2778 # Check whether --with-ecos or --without-ecos was given.
2779 if test "${with_ecos+set}" = set; then
2780 withval="$with_ecos"
2781 TARGET_ECOS="$with_ecos"
2788 case "$TARGET_ECOS" in
2792 cat >> confdefs.h <<\EOF
2796 CXXINCLUDES="-I${TARGET_ECOS}/include"
2797 addobjs="$addobjs ecos.lo"
2808 machdep="alpha_mach_dep.lo"
2810 i?86-*-solaris2.[89]*)
2811 cat >> confdefs.h <<\EOF
2812 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
2817 machdep="mips_ultrix_mach_dep.lo"
2818 cat >> confdefs.h <<\EOF
2819 #define STACKBASE __stackbase
2822 cat >> confdefs.h <<\EOF
2823 #define DATASTART_IS_ETEXT 1
2828 machdep="mips_ultrix_mach-dep.lo"
2831 machdep="mips_sgi_mach_dep.lo"
2832 cat >> confdefs.h <<\EOF
2833 #define NO_EXECUTE_PERMISSION 1
2837 sparc-sun-solaris2.3*)
2838 cat >> confdefs.h <<\EOF
2839 #define SUNOS53_SHARED_LIB 1
2844 if test x"$machdep" = x; then
2845 machdep="mach_dep.lo"
2847 addobjs="$addobjs $machdep"
2851 sparc-sun-solaris2*)
2852 if test "$GCC" = yes; then
2854 for i in $CFLAGS; do
2859 new_CFLAGS="$new_CFLAGS $i"
2863 CFLAGS="$new_CFLAGS"
2871 cat >> confdefs.h <<\EOF
2875 cat >> confdefs.h <<\EOF
2876 #define NO_SIGNALS 1
2879 cat >> confdefs.h <<\EOF
2880 #define NO_EXECUTE_PERMISSION 1
2883 cat >> confdefs.h <<\EOF
2884 #define ALL_INTERIOR_POINTERS 1
2888 cat >> confdefs.h <<\EOF
2889 #define JAVA_FINALIZATION 1
2892 cat >> confdefs.h <<\EOF
2893 #define GC_GCJ_SUPPORT 1
2896 cat >> confdefs.h <<\EOF
2897 #define ATOMIC_UNCOLLECTABLE 1
2901 if test -n "${with_cross_host}"; then
2902 cat >> confdefs.h <<\EOF
2906 cat >> confdefs.h <<\EOF
2910 cat >> confdefs.h <<\EOF
2911 #define SMALL_CONFIG 1
2914 cat >> confdefs.h <<\EOF
2915 #define NO_DEBUGGING 1
2920 # Check whether --enable-full-debug or --disable-full-debug was given.
2921 if test "${enable_full_debug+set}" = set; then
2922 enableval="$enable_full_debug"
2923 if test "$enable_full_debug" = "yes"; then
2924 echo "configure: warning: "Must define GC_DEBUG and use debug alloc. in clients."" 1>&2
2925 cat >> confdefs.h <<\EOF
2926 #define KEEP_BACK_PTRS 1
2929 cat >> confdefs.h <<\EOF
2930 #define DBG_HDRS_ALL 1
2934 x86-*-linux* | i586-*-linux* | i686-*-linux* )
2935 echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2
2936 cat >> confdefs.h <<\EOF
2937 #define SAVE_CALL_COUNT 8
2948 if test -z "$with_cross_host"; then
2950 USE_LIBDIR_FALSE='#'
2956 if test "${multilib}" = "yes"; then
2957 multilib_arg="--enable-multilib"
2963 cat > confcache <<\EOF
2964 # This file is a shell script that caches the results of configure
2965 # tests run on this system so they can be shared between configure
2966 # scripts and configure runs. It is not useful on other systems.
2967 # If it contains results you don't want to keep, you may remove or edit it.
2969 # By default, configure uses ./config.cache as the cache file,
2970 # creating it if it does not exist already. You can give configure
2971 # the --cache-file=FILE option to use a different cache file; that is
2972 # what configure does when it calls configure scripts in
2973 # subdirectories, so they share the cache.
2974 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2975 # config.status only pays attention to the cache file if you give it the
2976 # --recheck option to rerun configure.
2979 # The following way of writing the cache mishandles newlines in values,
2980 # but we know of no workaround that is simple, portable, and efficient.
2981 # So, don't put newlines in cache variables' values.
2982 # Ultrix sh set writes to stderr and can't be redirected directly,
2983 # and sets the high bit in the cache file unless we assign to the vars.
2985 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2987 # `set' does not quote correctly, so add quotes (double-quote substitution
2988 # turns \\\\ into \\, and sed turns \\ into \).
2990 -e "s/'/'\\\\''/g" \
2991 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2994 # `set' quotes correctly as required by POSIX, so do not add quotes.
2995 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2998 if cmp -s $cache_file confcache; then
3001 if test -w $cache_file; then
3002 echo "updating cache $cache_file"
3003 cat confcache > $cache_file
3005 echo "not updating unwritable cache $cache_file"
3010 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3012 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3013 # Let make expand exec_prefix.
3014 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3016 # Any assignment to VPATH causes Sun make to only execute
3017 # the first set of double-colon rules, so remove it if not needed.
3018 # If there is a colon in the path, we need to keep it.
3019 if test "x$srcdir" = x.; then
3020 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3023 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3025 # Transform confdefs.h into DEFS.
3026 # Protect against shell expansion while executing Makefile rules.
3027 # Protect against Makefile macro expansion.
3028 cat > conftest.defs <<\EOF
3029 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3030 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3035 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3039 # Without the "./", some shells look in PATH for config.status.
3040 : ${CONFIG_STATUS=./config.status}
3042 echo creating $CONFIG_STATUS
3043 rm -f $CONFIG_STATUS
3044 cat > $CONFIG_STATUS <<EOF
3046 # Generated automatically by configure.
3047 # Run this file to recreate the current configuration.
3048 # This directory was configured as follows,
3049 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3051 # $0 $ac_configure_args
3053 # Compiler output produced by configure, useful for debugging
3054 # configure, is in ./config.log if it exists.
3056 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3059 case "\$ac_option" in
3060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3061 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3062 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3063 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3064 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3066 -help | --help | --hel | --he | --h)
3067 echo "\$ac_cs_usage"; exit 0 ;;
3068 *) echo "\$ac_cs_usage"; exit 1 ;;
3072 ac_given_srcdir=$srcdir
3073 ac_given_INSTALL="$INSTALL"
3075 trap 'rm -fr `echo "Makefile include/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3077 cat >> $CONFIG_STATUS <<EOF
3079 # Protect against being on the right side of a sed subst in config.status.
3080 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3081 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3085 s%@CFLAGS@%$CFLAGS%g
3086 s%@CPPFLAGS@%$CPPFLAGS%g
3087 s%@CXXFLAGS@%$CXXFLAGS%g
3088 s%@FFLAGS@%$FFLAGS%g
3090 s%@LDFLAGS@%$LDFLAGS%g
3092 s%@exec_prefix@%$exec_prefix%g
3093 s%@prefix@%$prefix%g
3094 s%@program_transform_name@%$program_transform_name%g
3095 s%@bindir@%$bindir%g
3096 s%@sbindir@%$sbindir%g
3097 s%@libexecdir@%$libexecdir%g
3098 s%@datadir@%$datadir%g
3099 s%@sysconfdir@%$sysconfdir%g
3100 s%@sharedstatedir@%$sharedstatedir%g
3101 s%@localstatedir@%$localstatedir%g
3102 s%@libdir@%$libdir%g
3103 s%@includedir@%$includedir%g
3104 s%@oldincludedir@%$oldincludedir%g
3105 s%@infodir@%$infodir%g
3106 s%@mandir@%$mandir%g
3107 s%@gc_basedir@%$gc_basedir%g
3109 s%@host_alias@%$host_alias%g
3110 s%@host_cpu@%$host_cpu%g
3111 s%@host_vendor@%$host_vendor%g
3112 s%@host_os@%$host_os%g
3113 s%@target@%$target%g
3114 s%@target_alias@%$target_alias%g
3115 s%@target_cpu@%$target_cpu%g
3116 s%@target_vendor@%$target_vendor%g
3117 s%@target_os@%$target_os%g
3119 s%@build_alias@%$build_alias%g
3120 s%@build_cpu@%$build_cpu%g
3121 s%@build_vendor@%$build_vendor%g
3122 s%@build_os@%$build_os%g
3123 s%@mkinstalldirs@%$mkinstalldirs%g
3124 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3125 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3126 s%@INSTALL_DATA@%$INSTALL_DATA%g
3127 s%@PACKAGE@%$PACKAGE%g
3128 s%@VERSION@%$VERSION%g
3129 s%@ACLOCAL@%$ACLOCAL%g
3130 s%@AUTOCONF@%$AUTOCONF%g
3131 s%@AUTOMAKE@%$AUTOMAKE%g
3132 s%@AUTOHEADER@%$AUTOHEADER%g
3133 s%@MAKEINFO@%$MAKEINFO%g
3134 s%@SET_MAKE@%$SET_MAKE%g
3139 s%@RANLIB@%$RANLIB%g
3140 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3141 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3143 s%@EXEEXT@%$EXEEXT%g
3144 s%@GC_CFLAGS@%$GC_CFLAGS%g
3146 s%@OBJEXT@%$OBJEXT%g
3148 s%@LIBTOOL@%$LIBTOOL%g
3149 s%@CXXCPP@%$CXXCPP%g
3150 s%@THREADLIBS@%$THREADLIBS%g
3151 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3152 s%@target_all@%$target_all%g
3153 s%@INCLUDES@%$INCLUDES%g
3154 s%@CXXINCLUDES@%$CXXINCLUDES%g
3155 s%@addobjs@%$addobjs%g
3156 s%@MY_CFLAGS@%$MY_CFLAGS%g
3157 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3158 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3163 cat >> $CONFIG_STATUS <<\EOF
3165 # Split the substitutions into bite-sized pieces for seds with
3166 # small command number limits, like on Digital OSF/1 and HP-UX.
3167 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3168 ac_file=1 # Number of current file.
3169 ac_beg=1 # First line for current file.
3170 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3173 while $ac_more_lines; do
3174 if test $ac_beg -gt 1; then
3175 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3177 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3179 if test ! -s conftest.s$ac_file; then
3181 rm -f conftest.s$ac_file
3183 if test -z "$ac_sed_cmds"; then
3184 ac_sed_cmds="sed -f conftest.s$ac_file"
3186 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3188 ac_file=`expr $ac_file + 1`
3190 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3193 if test -z "$ac_sed_cmds"; then
3198 cat >> $CONFIG_STATUS <<EOF
3200 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3202 cat >> $CONFIG_STATUS <<\EOF
3203 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3204 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3206 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3207 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3208 *) ac_file_in="${ac_file}.in" ;;
3211 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3213 # Remove last slash and all that follows it. Not all systems have dirname.
3214 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3215 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3216 # The file is in a subdirectory.
3217 test ! -d "$ac_dir" && mkdir "$ac_dir"
3218 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3219 # A "../" for each directory in $ac_dir_suffix.
3220 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3222 ac_dir_suffix= ac_dots=
3225 case "$ac_given_srcdir" in
3227 if test -z "$ac_dots"; then top_srcdir=.
3228 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3229 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3231 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3232 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3235 case "$ac_given_INSTALL" in
3236 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3237 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3240 echo creating "$ac_file"
3242 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3244 *Makefile*) ac_comsub="1i\\
3245 # $configure_input" ;;
3249 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3251 s%@configure_input@%$configure_input%g
3252 s%@srcdir@%$srcdir%g
3253 s%@top_srcdir@%$top_srcdir%g
3254 s%@INSTALL@%$INSTALL%g
3255 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3260 cat >> $CONFIG_STATUS <<EOF
3264 with_multisubdir=${with_multisubdir}
3265 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3266 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3267 gc_basedir=${gc_basedir}
3272 cat >> $CONFIG_STATUS <<\EOF
3274 echo "$DEFS" > boehm-cflags
3276 if test -n "$CONFIG_FILES"; then
3277 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3281 chmod +x $CONFIG_STATUS
3282 rm -fr confdefs* $ac_clean_files
3283 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1