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-threads=TYPE choose threading package"
42 --enable-java-gc=TYPE choose garbage collector [boehm]"
44 --with-ecos enable runtime eCos target support"
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
=gc_mark.h
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.
577 # Do some error checking and defaulting for the host and target type.
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias
=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
628 case "$target_alias" in
631 NONE
) target_alias
=$host_alias ;;
632 *) target_alias
=$nonopt ;;
636 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
646 case "$build_alias" in
649 NONE
) build_alias
=$host_alias ;;
650 *) build_alias
=$nonopt ;;
654 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
663 program_prefix
=${target_alias}-
666 # Find a good install program. We prefer a C program (faster),
667 # so one script is as good as another. But avoid the broken or
668 # incompatible versions:
669 # SysV /etc/install, /usr/sbin/install
670 # SunOS /usr/etc/install
673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
676 # ./install, which can be erroneously created by make from ./install.sh.
677 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
678 echo "configure:679: checking for a BSD compatible install" >&5
679 if test -z "$INSTALL"; then
680 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
684 for ac_dir
in $PATH; do
685 # Account for people who put trailing slashes in PATH elements.
687 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
689 # OSF1 and SCO ODT 3.0 have their own names for install.
690 # Don't use installbsd from OSF since it installs stuff as root
692 for ac_prog
in ginstall scoinst
install; do
693 if test -f $ac_dir/$ac_prog; then
694 if test $ac_prog = install &&
695 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
696 # AIX install. It has an incompatible calling convention.
699 ac_cv_path_install
="$ac_dir/$ac_prog -c"
710 if test "${ac_cv_path_install+set}" = set; then
711 INSTALL
="$ac_cv_path_install"
713 # As a last resort, use the slow shell script. We don't cache a
714 # path for INSTALL within a source directory, because that will
715 # break other packages using the cache if that directory is
716 # removed, or if the path is relative.
717 INSTALL
="$ac_install_sh"
720 echo "$ac_t""$INSTALL" 1>&6
722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
723 # It thinks the first close brace ends the variable substitution.
724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
728 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
730 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
731 echo "configure:732: checking whether build environment is sane" >&5
734 echo timestamp
> conftestfile
735 # Do `set' in a subshell so we don't clobber the current shell's
736 # arguments. Must try -L first in case configure is actually a
737 # symlink; some systems play weird games with the mod time of symlinks
738 # (eg FreeBSD returns the mod time of the symlink's containing
741 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
742 if test "$*" = "X"; then
744 set X
`ls -t $srcdir/configure conftestfile`
746 if test "$*" != "X $srcdir/configure conftestfile" \
747 && test "$*" != "X conftestfile $srcdir/configure"; then
749 # If neither matched, then we have a broken ls. This can happen
750 # if, for instance, CONFIG_SHELL is bash and it inherits a
751 # broken ls alias from the environment. This has actually
752 # happened. Such a system could not be considered "sane".
753 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
754 alias in your environment" 1>&2; exit 1; }
757 test "$2" = conftestfile
763 { echo "configure: error: newly created file is older than distributed files!
764 Check your system clock" 1>&2; exit 1; }
767 echo "$ac_t""yes" 1>&6
768 if test "$program_transform_name" = s
,x
,x
,; then
769 program_transform_name
=
771 # Double any \ or $. echo might interpret backslashes.
772 cat <<\EOF_SED
> conftestsed
773 s
,\\,\\\\,g
; s
,\$
,$$
,g
775 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
778 test "$program_prefix" != NONE
&&
779 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
780 # Use a double $ so make ignores it.
781 test "$program_suffix" != NONE
&&
782 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
784 # sed with no file args requires a program.
785 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
787 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
788 echo "configure:789: checking whether ${MAKE-make} sets \${MAKE}" >&5
789 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
790 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 cat > conftestmake
<<\EOF
795 @
echo 'ac_maketemp="${MAKE}"'
797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
798 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
799 if test -n "$ac_maketemp"; then
800 eval ac_cv_prog_make_
${ac_make}_set
=yes
802 eval ac_cv_prog_make_
${ac_make}_set
=no
806 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
807 echo "$ac_t""yes" 1>&6
810 echo "$ac_t""no" 1>&6
811 SET_MAKE
="MAKE=${MAKE-make}"
814 if test $host != $build; then
815 ac_tool_prefix
=${host_alias}-
820 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
821 echo "configure:822: checking for Cygwin environment" >&5
822 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftest.
$ac_ext <<EOF
826 #line 827 "configure"
827 #include "confdefs.h"
832 #define __CYGWIN__ __CYGWIN32__
837 if { (eval echo configure
:838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
841 echo "configure: failed program was:" >&5
842 cat conftest.
$ac_ext >&5
850 echo "$ac_t""$ac_cv_cygwin" 1>&6
852 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
853 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
854 echo "configure:855: checking for mingw32 environment" >&5
855 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 cat > conftest.
$ac_ext <<EOF
859 #line 860 "configure"
860 #include "confdefs.h"
866 if { (eval echo configure
:867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
870 echo "configure: failed program was:" >&5
871 cat conftest.
$ac_ext >&5
879 echo "$ac_t""$ac_cv_mingw32" 1>&6
881 test "$ac_cv_mingw32" = yes && MINGW32
=yes
883 # Check whether --enable-multilib or --disable-multilib was given.
884 if test "${enable_multilib+set}" = set; then
885 enableval
="$enable_multilib"
886 case "${enableval}" in
889 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
896 if test "${srcdir}" = "."; then
897 if test "${with_target_subdir}" != "."; then
898 boehm_gc_basedir
="${srcdir}/${with_multisrctop}../."
900 boehm_gc_basedir
="${srcdir}/${with_multisrctop}."
903 boehm_gc_basedir
="${srcdir}/."
908 # Make sure we can run config.sub.
909 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
913 echo $ac_n "checking host system type""... $ac_c" 1>&6
914 echo "configure:915: checking host system type" >&5
917 case "$host_alias" in
921 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
924 *) host_alias
=$nonopt ;;
928 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$host" 1>&6
940 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
941 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
946 missing_dir
=`cd $ac_aux_dir && pwd`
947 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
948 echo "configure:949: checking for working aclocal" >&5
949 # Run test in a subshell; some versions of sh will print an error if
950 # an executable is not found, even if stderr is redirected.
951 # Redirect stdin to placate older versions of autoconf. Sigh.
952 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
954 echo "$ac_t""found" 1>&6
956 ACLOCAL
="$missing_dir/missing aclocal"
957 echo "$ac_t""missing" 1>&6
960 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
961 echo "configure:962: checking for working autoconf" >&5
962 # Run test in a subshell; some versions of sh will print an error if
963 # an executable is not found, even if stderr is redirected.
964 # Redirect stdin to placate older versions of autoconf. Sigh.
965 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
967 echo "$ac_t""found" 1>&6
969 AUTOCONF
="$missing_dir/missing autoconf"
970 echo "$ac_t""missing" 1>&6
973 echo $ac_n "checking for working automake""... $ac_c" 1>&6
974 echo "configure:975: checking for working automake" >&5
975 # Run test in a subshell; some versions of sh will print an error if
976 # an executable is not found, even if stderr is redirected.
977 # Redirect stdin to placate older versions of autoconf. Sigh.
978 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
980 echo "$ac_t""found" 1>&6
982 AUTOMAKE
="$missing_dir/missing automake"
983 echo "$ac_t""missing" 1>&6
986 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
987 echo "configure:988: checking for working autoheader" >&5
988 # Run test in a subshell; some versions of sh will print an error if
989 # an executable is not found, even if stderr is redirected.
990 # Redirect stdin to placate older versions of autoconf. Sigh.
991 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
992 AUTOHEADER
=autoheader
993 echo "$ac_t""found" 1>&6
995 AUTOHEADER
="$missing_dir/missing autoheader"
996 echo "$ac_t""missing" 1>&6
999 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1000 echo "configure:1001: checking for working makeinfo" >&5
1001 # Run test in a subshell; some versions of sh will print an error if
1002 # an executable is not found, even if stderr is redirected.
1003 # Redirect stdin to placate older versions of autoconf. Sigh.
1004 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1006 echo "$ac_t""found" 1>&6
1008 MAKEINFO
="$missing_dir/missing makeinfo"
1009 echo "$ac_t""missing" 1>&6
1014 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1015 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1016 # are probably using a cross compiler, which will not be able to fully
1017 # link an executable. This should really be fixed in autoconf
1023 # Extract the first word of "gcc", so it can be a program name with args.
1024 set dummy gcc
; ac_word
=$2
1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026 echo "configure:1027: checking for $ac_word" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 if test -n "$CC"; then
1031 ac_cv_prog_CC
="$CC" # Let the user override the test.
1033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1035 for ac_dir
in $ac_dummy; do
1036 test -z "$ac_dir" && ac_dir
=.
1037 if test -f $ac_dir/$ac_word; then
1046 if test -n "$CC"; then
1047 echo "$ac_t""$CC" 1>&6
1049 echo "$ac_t""no" 1>&6
1052 if test -z "$CC"; then
1053 # Extract the first word of "cc", so it can be a program name with args.
1054 set dummy cc
; ac_word
=$2
1055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1056 echo "configure:1057: checking for $ac_word" >&5
1057 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 if test -n "$CC"; then
1061 ac_cv_prog_CC
="$CC" # Let the user override the test.
1063 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1066 for ac_dir
in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir
=.
1068 if test -f $ac_dir/$ac_word; then
1069 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1070 ac_prog_rejected
=yes
1078 if test $ac_prog_rejected = yes; then
1079 # We found a bogon in the path, so make sure we never use it.
1080 set dummy
$ac_cv_prog_CC
1082 if test $# -gt 0; then
1083 # We chose a different compiler from the bogus one.
1084 # However, it has the same basename, so the bogon will be chosen
1085 # first if we set CC to just the basename; use the full file name.
1087 set dummy
"$ac_dir/$ac_word" "$@"
1095 if test -n "$CC"; then
1096 echo "$ac_t""$CC" 1>&6
1098 echo "$ac_t""no" 1>&6
1101 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1104 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether we are using GNU C" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 cat > conftest.c
<<EOF
1114 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1121 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1123 if test $ac_cv_prog_gcc = yes; then
1125 ac_test_CFLAGS
="${CFLAGS+set}"
1126 ac_save_CFLAGS
="$CFLAGS"
1128 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1129 echo "configure:1130: checking whether ${CC-cc} accepts -g" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 echo 'void f(){}' > conftest.c
1134 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1143 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1144 if test "$ac_test_CFLAGS" = set; then
1145 CFLAGS
="$ac_save_CFLAGS"
1146 elif test $ac_cv_prog_cc_g = yes; then
1153 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1157 # Likewise for AC_PROG_CXX.
1161 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1163 # Extract the first word of "$ac_prog", so it can be a program name with args.
1164 set dummy
$ac_prog; ac_word
=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 if test -n "$CXX"; then
1171 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1173 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1175 for ac_dir
in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir
=.
1177 if test -f $ac_dir/$ac_word; then
1178 ac_cv_prog_CXX
="$ac_prog"
1185 CXX
="$ac_cv_prog_CXX"
1186 if test -n "$CXX"; then
1187 echo "$ac_t""$CXX" 1>&6
1189 echo "$ac_t""no" 1>&6
1192 test -n "$CXX" && break
1194 test -n "$CXX" || CXX
="gcc"
1196 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether we are using GNU C++" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 cat > conftest.C
<<EOF
1208 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1215 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1217 if test $ac_cv_prog_gxx = yes; then
1219 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1220 ac_save_CXXFLAGS
="$CXXFLAGS"
1222 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether ${CXX-g++} accepts -g" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 echo 'void f(){}' > conftest.cc
1228 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1229 ac_cv_prog_cxx_g
=yes
1237 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1238 if test "$ac_test_CXXFLAGS" = set; then
1239 CXXFLAGS
="$ac_save_CXXFLAGS"
1240 elif test $ac_cv_prog_cxx_g = yes; then
1247 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1251 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1252 # run it explicitly here, it will be run implicitly before
1253 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1254 # be run before AC_CANONICAL_HOST.
1255 echo $ac_n "checking build system type""... $ac_c" 1>&6
1256 echo "configure:1257: checking build system type" >&5
1259 case "$build_alias" in
1262 NONE
) build_alias
=$host_alias ;;
1263 *) build_alias
=$nonopt ;;
1267 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1268 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$ac_t""$build" 1>&6
1274 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1275 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 if test -n "$AS"; then
1282 ac_cv_prog_AS
="$AS" # Let the user override the test.
1284 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1286 for ac_dir
in $ac_dummy; do
1287 test -z "$ac_dir" && ac_dir
=.
1288 if test -f $ac_dir/$ac_word; then
1289 ac_cv_prog_AS
="${ac_tool_prefix}as"
1294 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1298 if test -n "$AS"; then
1299 echo "$ac_t""$AS" 1>&6
1301 echo "$ac_t""no" 1>&6
1306 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1307 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1309 echo "configure:1310: checking for $ac_word" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 if test -n "$AR"; then
1314 ac_cv_prog_AR
="$AR" # Let the user override the test.
1316 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1318 for ac_dir
in $ac_dummy; do
1319 test -z "$ac_dir" && ac_dir
=.
1320 if test -f $ac_dir/$ac_word; then
1321 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1326 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1330 if test -n "$AR"; then
1331 echo "$ac_t""$AR" 1>&6
1333 echo "$ac_t""no" 1>&6
1338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1339 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_word" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 if test -n "$RANLIB"; then
1346 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1348 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1350 for ac_dir
in $ac_dummy; do
1351 test -z "$ac_dir" && ac_dir
=.
1352 if test -f $ac_dir/$ac_word; then
1353 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1360 RANLIB
="$ac_cv_prog_RANLIB"
1361 if test -n "$RANLIB"; then
1362 echo "$ac_t""$RANLIB" 1>&6
1364 echo "$ac_t""no" 1>&6
1368 if test -z "$ac_cv_prog_RANLIB"; then
1369 if test -n "$ac_tool_prefix"; then
1370 # Extract the first word of "ranlib", so it can be a program name with args.
1371 set dummy ranlib
; ac_word
=$2
1372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373 echo "configure:1374: checking for $ac_word" >&5
1374 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 if test -n "$RANLIB"; then
1378 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1380 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1382 for ac_dir
in $ac_dummy; do
1383 test -z "$ac_dir" && ac_dir
=.
1384 if test -f $ac_dir/$ac_word; then
1385 ac_cv_prog_RANLIB
="ranlib"
1390 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1393 RANLIB
="$ac_cv_prog_RANLIB"
1394 if test -n "$RANLIB"; then
1395 echo "$ac_t""$RANLIB" 1>&6
1397 echo "$ac_t""no" 1>&6
1406 # Find a good install program. We prefer a C program (faster),
1407 # so one script is as good as another. But avoid the broken or
1408 # incompatible versions:
1409 # SysV /etc/install, /usr/sbin/install
1410 # SunOS /usr/etc/install
1411 # IRIX /sbin/install
1413 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1414 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1415 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1416 # ./install, which can be erroneously created by make from ./install.sh.
1417 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1418 echo "configure:1419: checking for a BSD compatible install" >&5
1419 if test -z "$INSTALL"; then
1420 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1424 for ac_dir
in $PATH; do
1425 # Account for people who put trailing slashes in PATH elements.
1427 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1429 # OSF1 and SCO ODT 3.0 have their own names for install.
1430 # Don't use installbsd from OSF since it installs stuff as root
1432 for ac_prog
in ginstall scoinst
install; do
1433 if test -f $ac_dir/$ac_prog; then
1434 if test $ac_prog = install &&
1435 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1436 # AIX install. It has an incompatible calling convention.
1439 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1450 if test "${ac_cv_path_install+set}" = set; then
1451 INSTALL
="$ac_cv_path_install"
1453 # As a last resort, use the slow shell script. We don't cache a
1454 # path for INSTALL within a source directory, because that will
1455 # break other packages using the cache if that directory is
1456 # removed, or if the path is relative.
1457 INSTALL
="$ac_install_sh"
1460 echo "$ac_t""$INSTALL" 1>&6
1462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1463 # It thinks the first close brace ends the variable substitution.
1464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1468 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1471 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1472 echo "configure:1473: checking whether to enable maintainer-specific portions of Makefiles" >&5
1473 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1474 if test "${enable_maintainer_mode+set}" = set; then
1475 enableval
="$enable_maintainer_mode"
1476 USE_MAINTAINER_MODE
=$enableval
1478 USE_MAINTAINER_MODE
=no
1481 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1484 if test $USE_MAINTAINER_MODE = yes; then
1485 MAINTAINER_MODE_TRUE
=
1486 MAINTAINER_MODE_FALSE
='#'
1488 MAINTAINER_MODE_TRUE
='#'
1489 MAINTAINER_MODE_FALSE
=
1491 MAINT
=$MAINTAINER_MODE_TRUE
1495 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1496 # at least currently, we never actually build a program, so we never
1497 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1498 # fails, because we are probably configuring with a cross compiler
1499 # which can't create executables. So we include AC_EXEEXT to keep
1500 # automake happy, but we don't execute it, since we don't care about
1505 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1506 echo "configure:1507: checking for executable suffix" >&5
1507 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1514 echo 'int main () { return 0; }' > conftest.
$ac_ext
1516 if { (eval echo configure
:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1517 for file in conftest.
*; do
1519 *.c |
*.o |
*.obj
) ;;
1520 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1524 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1527 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1532 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1533 echo "$ac_t""${ac_cv_exeext}" 1>&6
1538 .
${boehm_gc_basedir}/configure.
host
1540 case ${boehm_gc_basedir} in
1541 /* | A-Za-z
:/\\*) boehm_gc_flagbasedir
=${boehm_gc_basedir} ;;
1542 *) boehm_gc_flagbasedir
='$(top_builddir)/'${boehm_gc_basedir} ;;
1545 boehm_gc_cflags
="${boehm_gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${boehm_gc_flagbasedir}/libc/include"
1548 boehm_gc_cflags
="${boehm_gc_cflags} -I${boehm_gc_flagbasedir}/../winsup/include"
1552 boehm_gc_cflags
="${boehm_gc_cflags} -fno-builtin"
1554 BOEHM_GC_CFLAGS
=${boehm_gc_cflags}
1558 # Check whether --enable-shared or --disable-shared was given.
1559 if test "${enable_shared+set}" = set; then
1560 enableval
="$enable_shared"
1561 p
=${PACKAGE-default}
1562 case "$enableval" in
1563 yes) enable_shared
=yes ;;
1564 no
) enable_shared
=no
;;
1567 # Look at the argument we got. We use all the common list separators.
1568 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1569 for pkg
in $enableval; do
1570 if test "X$pkg" = "X$p"; then
1581 # Check whether --enable-static or --disable-static was given.
1582 if test "${enable_static+set}" = set; then
1583 enableval
="$enable_static"
1584 p
=${PACKAGE-default}
1585 case "$enableval" in
1586 yes) enable_static
=yes ;;
1587 no
) enable_static
=no
;;
1590 # Look at the argument we got. We use all the common list separators.
1591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1592 for pkg
in $enableval; do
1593 if test "X$pkg" = "X$p"; then
1604 # Check whether --enable-fast-install or --disable-fast-install was given.
1605 if test "${enable_fast_install+set}" = set; then
1606 enableval
="$enable_fast_install"
1607 p
=${PACKAGE-default}
1608 case "$enableval" in
1609 yes) enable_fast_install
=yes ;;
1610 no
) enable_fast_install
=no
;;
1612 enable_fast_install
=no
1613 # Look at the argument we got. We use all the common list separators.
1614 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1615 for pkg
in $enableval; do
1616 if test "X$pkg" = "X$p"; then
1617 enable_fast_install
=yes
1624 enable_fast_install
=yes
1627 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1628 if test "${with_gnu_ld+set}" = set; then
1629 withval
="$with_gnu_ld"
1630 test "$withval" = no || with_gnu_ld
=yes
1636 if test "$ac_cv_prog_gcc" = yes; then
1637 # Check if gcc -print-prog-name=ld gives a path.
1638 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1639 echo "configure:1640: checking for ld used by GCC" >&5
1642 # gcc leaves a trailing carriage return which upsets mingw
1643 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1645 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1648 # Accept absolute paths.
1649 [\\/]* |
[A-Za-z
]:[\\/]*)
1650 re_direlt
='/[^/][^/]*/\.\./'
1651 # Canonicalize the path of ld
1652 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1653 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1654 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1656 test -z "$LD" && LD
="$ac_prog"
1659 # If it fails, then pretend we aren't using GCC.
1663 # If it is relative, then search for the first ld in PATH.
1667 elif test "$with_gnu_ld" = yes; then
1668 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1669 echo "configure:1670: checking for GNU ld" >&5
1671 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1672 echo "configure:1673: checking for non-GNU ld" >&5
1674 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 if test -z "$LD"; then
1678 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1679 for ac_dir
in $PATH; do
1680 test -z "$ac_dir" && ac_dir
=.
1681 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1682 ac_cv_path_LD
="$ac_dir/$ac_prog"
1683 # Check to see if the program is GNU ld. I'd rather use --version,
1684 # but apparently some GNU ld's only accept -v.
1685 # Break only if it was the GNU/non-GNU ld that we prefer.
1686 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1687 test "$with_gnu_ld" != no
&& break
1689 test "$with_gnu_ld" != yes && break
1695 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1700 if test -n "$LD"; then
1701 echo "$ac_t""$LD" 1>&6
1703 echo "$ac_t""no" 1>&6
1705 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1706 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1707 echo "configure:1708: checking if the linker ($LD) is GNU ld" >&5
1708 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1712 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1713 ac_cv_prog_gnu_ld
=yes
1715 ac_cv_prog_gnu_ld
=no
1719 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1720 with_gnu_ld
=$ac_cv_prog_gnu_ld
1723 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $LD option to reload object files" >&5
1725 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 lt_cv_ld_reload_flag
='-r'
1731 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1732 reload_flag
=$lt_cv_ld_reload_flag
1733 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1735 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1736 echo "configure:1737: checking for BSD-compatible nm" >&5
1737 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 if test -n "$NM"; then
1741 # Let the user override the test.
1744 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1745 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1746 test -z "$ac_dir" && ac_dir
=.
1747 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1748 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1749 # Check to see if the nm accepts a BSD-compat flag.
1750 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1751 # nm: unknown option "B" ignored
1752 # Tru64's nm complains that /dev/null is an invalid object file
1753 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1754 ac_cv_path_NM
="$tmp_nm -B"
1756 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1757 ac_cv_path_NM
="$tmp_nm -p"
1760 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1761 continue # so that we can try to find one that supports BSD flags
1766 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1771 echo "$ac_t""$NM" 1>&6
1773 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether ln -s works" >&5
1775 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1779 if ln -s X conftestdata
2>/dev
/null
1782 ac_cv_prog_LN_S
="ln -s"
1787 LN_S
="$ac_cv_prog_LN_S"
1788 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1789 echo "$ac_t""yes" 1>&6
1791 echo "$ac_t""no" 1>&6
1794 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1795 echo "configure:1796: checking how to recognise dependant libraries" >&5
1796 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1800 lt_cv_file_magic_test_file
=
1801 lt_cv_deplibs_check_method
='unknown'
1802 # Need to set the preceding variable on all platforms that support
1803 # interlibrary dependencies.
1804 # 'none' -- dependencies not supported.
1805 # `unknown' -- same as none, but documents that we really don't know.
1806 # 'pass_all' -- all dependencies passed with no checks.
1807 # 'test_compile' -- check by making test program.
1808 # 'file_magic [regex]' -- check by looking for files in library path
1809 # which responds to the $file_magic_cmd with a given egrep regex.
1810 # If you have `file' or equivalent on your system and you're not sure
1811 # whether `pass_all' will *always* work, you probably want this one.
1815 lt_cv_deplibs_check_method
=pass_all
1819 lt_cv_deplibs_check_method
=pass_all
1823 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1824 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1825 lt_cv_file_magic_test_file
=/shlib
/libc.so
1828 cygwin
* | mingw
* |pw32
*)
1829 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1830 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1834 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1837 # Not sure whether the presence of OpenBSD here was a mistake.
1838 # Let's accept both of them until this is cleared up.
1839 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1840 lt_cv_file_magic_cmd
=/usr
/bin
/file
1841 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1845 lt_cv_deplibs_check_method
=pass_all
1850 lt_cv_deplibs_check_method
=pass_all
1854 # TODO: Does this work for hpux-11 too?
1855 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1856 lt_cv_file_magic_cmd
=/usr
/bin
/file
1857 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1863 # this will be overridden with pass_all, but let us keep it just in case
1864 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1868 *-32|
*"-32 ") libmagic
=32-bit;;
1869 *-n32|
*"-n32 ") libmagic
=N32
;;
1870 *-64|
*"-64 ") libmagic
=64-bit;;
1871 *) libmagic
=never-match
;;
1873 # this will be overridden with pass_all, but let us keep it just in case
1874 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1877 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1878 lt_cv_deplibs_check_method
=pass_all
1881 # This must be Linux ELF.
1884 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1885 lt_cv_deplibs_check_method
=pass_all
;;
1887 # glibc up to 2.1.1 does not perform some relocations on ARM
1888 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1890 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1894 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1896 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1897 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1898 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1902 osf3
* | osf4
* | osf5
*)
1903 # this will be overridden with pass_all, but let us keep it just in case
1904 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1905 lt_cv_file_magic_test_file
=/shlib
/libc.so
1906 lt_cv_deplibs_check_method
=pass_all
1910 lt_cv_deplibs_check_method
=pass_all
1914 lt_cv_deplibs_check_method
=pass_all
1915 lt_cv_file_magic_test_file
=/lib
/libc.so
1918 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1919 case "$host_vendor" in
1921 lt_cv_deplibs_check_method
=pass_all
1924 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]'
1925 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1933 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1934 file_magic_cmd
=$lt_cv_file_magic_cmd
1935 deplibs_check_method
=$lt_cv_deplibs_check_method
1937 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1938 echo "configure:1939: checking for object suffix" >&5
1939 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1943 echo 'int i = 1;' > conftest.
$ac_ext
1944 if { (eval echo configure
:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1945 for ac_file
in conftest.
*; do
1948 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1952 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1957 echo "$ac_t""$ac_cv_objext" 1>&6
1958 OBJEXT
=$ac_cv_objext
1959 ac_objext
=$ac_cv_objext
1961 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1963 # Only perform the check for file, if the check method requires it
1964 case "$deplibs_check_method" in
1966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1967 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1968 echo "configure:1969: checking for ${ac_tool_prefix}file" >&5
1969 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 case "$MAGIC_CMD" in
1974 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1977 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1980 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1982 ac_dummy
="/usr/bin:$PATH"
1983 for ac_dir
in $ac_dummy; do
1984 test -z "$ac_dir" && ac_dir
=.
1985 if test -f $ac_dir/${ac_tool_prefix}file; then
1986 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1987 if test -n "$file_magic_test_file"; then
1988 case "$deplibs_check_method" in
1990 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1991 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1992 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1993 egrep "$file_magic_regex" > /dev
/null
; then
1998 *** Warning: the command libtool uses to detect shared libraries,
1999 *** $file_magic_cmd, produces output that libtool cannot recognize.
2000 *** The result is that libtool may fail to recognize shared libraries
2001 *** as such. This will affect the creation of libtool libraries that
2002 *** depend on shared libraries, but programs linked with such libtool
2003 *** libraries will work regardless of this problem. Nevertheless, you
2004 *** may want to report the problem to your system manager and/or to
2005 *** bug-libtool@gnu.org
2015 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2020 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2021 if test -n "$MAGIC_CMD"; then
2022 echo "$ac_t""$MAGIC_CMD" 1>&6
2024 echo "$ac_t""no" 1>&6
2027 if test -z "$lt_cv_path_MAGIC_CMD"; then
2028 if test -n "$ac_tool_prefix"; then
2029 echo $ac_n "checking for file""... $ac_c" 1>&6
2030 echo "configure:2031: checking for file" >&5
2031 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 case "$MAGIC_CMD" in
2036 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2039 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2042 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2043 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2044 ac_dummy
="/usr/bin:$PATH"
2045 for ac_dir
in $ac_dummy; do
2046 test -z "$ac_dir" && ac_dir
=.
2047 if test -f $ac_dir/file; then
2048 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2049 if test -n "$file_magic_test_file"; then
2050 case "$deplibs_check_method" in
2052 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2053 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2054 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2055 egrep "$file_magic_regex" > /dev
/null
; then
2060 *** Warning: the command libtool uses to detect shared libraries,
2061 *** $file_magic_cmd, produces output that libtool cannot recognize.
2062 *** The result is that libtool may fail to recognize shared libraries
2063 *** as such. This will affect the creation of libtool libraries that
2064 *** depend on shared libraries, but programs linked with such libtool
2065 *** libraries will work regardless of this problem. Nevertheless, you
2066 *** may want to report the problem to your system manager and/or to
2067 *** bug-libtool@gnu.org
2077 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2082 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2083 if test -n "$MAGIC_CMD"; then
2084 echo "$ac_t""$MAGIC_CMD" 1>&6
2086 echo "$ac_t""no" 1>&6
2098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2099 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_word" >&5
2102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 if test -n "$RANLIB"; then
2106 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2108 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2110 for ac_dir
in $ac_dummy; do
2111 test -z "$ac_dir" && ac_dir
=.
2112 if test -f $ac_dir/$ac_word; then
2113 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2120 RANLIB
="$ac_cv_prog_RANLIB"
2121 if test -n "$RANLIB"; then
2122 echo "$ac_t""$RANLIB" 1>&6
2124 echo "$ac_t""no" 1>&6
2128 if test -z "$ac_cv_prog_RANLIB"; then
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "ranlib", so it can be a program name with args.
2131 set dummy ranlib
; ac_word
=$2
2132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_word" >&5
2134 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 if test -n "$RANLIB"; then
2138 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2140 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2142 for ac_dir
in $ac_dummy; do
2143 test -z "$ac_dir" && ac_dir
=.
2144 if test -f $ac_dir/$ac_word; then
2145 ac_cv_prog_RANLIB
="ranlib"
2150 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2153 RANLIB
="$ac_cv_prog_RANLIB"
2154 if test -n "$RANLIB"; then
2155 echo "$ac_t""$RANLIB" 1>&6
2157 echo "$ac_t""no" 1>&6
2165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2166 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 if test -n "$STRIP"; then
2173 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2175 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2177 for ac_dir
in $ac_dummy; do
2178 test -z "$ac_dir" && ac_dir
=.
2179 if test -f $ac_dir/$ac_word; then
2180 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2187 STRIP
="$ac_cv_prog_STRIP"
2188 if test -n "$STRIP"; then
2189 echo "$ac_t""$STRIP" 1>&6
2191 echo "$ac_t""no" 1>&6
2195 if test -z "$ac_cv_prog_STRIP"; then
2196 if test -n "$ac_tool_prefix"; then
2197 # Extract the first word of "strip", so it can be a program name with args.
2198 set dummy strip
; ac_word
=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 if test -n "$STRIP"; then
2205 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2207 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2209 for ac_dir
in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir
=.
2211 if test -f $ac_dir/$ac_word; then
2212 ac_cv_prog_STRIP
="strip"
2217 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2220 STRIP
="$ac_cv_prog_STRIP"
2221 if test -n "$STRIP"; then
2222 echo "$ac_t""$STRIP" 1>&6
2224 echo "$ac_t""no" 1>&6
2233 # Check for any special flags to pass to ltconfig.
2234 libtool_flags
="--cache-file=$cache_file"
2235 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2236 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2237 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2238 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2239 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2242 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2243 if test "${enable_libtool_lock+set}" = set; then
2244 enableval
="$enable_libtool_lock"
2248 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2249 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2251 # Check whether --with-pic or --without-pic was given.
2252 if test "${with_pic+set}" = set; then
2259 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2260 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2262 # Some flags need to be propagated to the compiler or linker for good
2266 # Find out which ABI we are using.
2267 echo '#line 2268 "configure"' > conftest.
$ac_ext
2268 if { (eval echo configure
:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2269 case "`/usr/bin/file conftest.o`" in
2285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2286 SAVE_CFLAGS
="$CFLAGS"
2287 CFLAGS
="$CFLAGS -belf"
2288 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2289 echo "configure:2290: checking whether the C compiler needs -belf" >&5
2290 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2296 ac_cpp
='$CPP $CPPFLAGS'
2297 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2298 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2299 cross_compiling
=$ac_cv_prog_cc_cross
2301 cat > conftest.
$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2309 if { (eval echo configure
:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2311 lt_cv_cc_needs_belf
=yes
2313 echo "configure: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2316 lt_cv_cc_needs_belf
=no
2320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2321 ac_cpp
='$CPP $CPPFLAGS'
2322 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2323 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2324 cross_compiling
=$ac_cv_prog_cc_cross
2328 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2329 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2330 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2331 CFLAGS
="$SAVE_CFLAGS"
2338 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2339 echo "configure:2340: checking how to run the C++ preprocessor" >&5
2340 if test -z "$CXXCPP"; then
2341 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2346 ac_cpp
='$CXXCPP $CPPFLAGS'
2347 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2348 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2349 cross_compiling
=$ac_cv_prog_cxx_cross
2350 CXXCPP
="${CXX-g++} -E"
2351 cat > conftest.
$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2356 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357 { (eval echo configure
:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359 if test -z "$ac_err"; then
2363 echo "configure: failed program was:" >&5
2364 cat conftest.
$ac_ext >&5
2369 ac_cv_prog_CXXCPP
="$CXXCPP"
2371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2372 ac_cpp
='$CPP $CPPFLAGS'
2373 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2374 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2375 cross_compiling
=$ac_cv_prog_cc_cross
2378 CXXCPP
="$ac_cv_prog_CXXCPP"
2379 echo "$ac_t""$CXXCPP" 1>&6
2382 # Save cache, so that ltconfig can load it
2383 cat > confcache
<<\EOF
2384 # This file is a shell script that caches the results of configure
2385 # tests run on this system so they can be shared between configure
2386 # scripts and configure runs. It is not useful on other systems.
2387 # If it contains results you don't want to keep, you may remove or edit it.
2389 # By default, configure uses ./config.cache as the cache file,
2390 # creating it if it does not exist already. You can give configure
2391 # the --cache-file=FILE option to use a different cache file; that is
2392 # what configure does when it calls configure scripts in
2393 # subdirectories, so they share the cache.
2394 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2395 # config.status only pays attention to the cache file if you give it the
2396 # --recheck option to rerun configure.
2399 # The following way of writing the cache mishandles newlines in values,
2400 # but we know of no workaround that is simple, portable, and efficient.
2401 # So, don't put newlines in cache variables' values.
2402 # Ultrix sh set writes to stderr and can't be redirected directly,
2403 # and sets the high bit in the cache file unless we assign to the vars.
2405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2407 # `set' does not quote correctly, so add quotes (double-quote substitution
2408 # turns \\\\ into \\, and sed turns \\ into \).
2410 -e "s/'/'\\\\''/g" \
2411 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2414 # `set' quotes correctly as required by POSIX, so do not add quotes.
2415 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2418 if cmp -s $cache_file confcache
; then
2421 if test -w $cache_file; then
2422 echo "updating cache $cache_file"
2423 cat confcache
> $cache_file
2425 echo "not updating unwritable cache $cache_file"
2431 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2432 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2433 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2434 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2435 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2436 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2437 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2438 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2439 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2440 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2442 # Reload cache, that may have been modified by ltconfig
2443 if test -r "$cache_file"; then
2444 echo "loading cache $cache_file"
2447 echo "creating cache $cache_file"
2452 # This can be used to rebuild libtool when needed
2453 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2455 # Always use our own libtool.
2456 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2458 # Redirect the config.log output again, so that the ltconfig log is not
2459 # clobbered by the next message.
2460 exec 5>>.
/config.log
2465 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2467 lt_save_CFLAGS
="$CFLAGS"
2468 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
2469 MAGIC_CMD
="$MAGIC_CMD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2470 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2471 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2472 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2473 deplibs_check_method
="$deplibs_check_method" \
2474 file_magic_cmd
="$file_magic_cmd" \
2475 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
2476 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
2477 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2479 CFLAGS
="$lt_save_CFLAGS"
2481 # Redirect the config.log output again, so that the ltconfig log is not
2482 # clobbered by the next message.
2483 exec 5>>.
/config.log
2492 # Check whether --with-target-subdir or --without-target-subdir was given.
2493 if test "${with_target_subdir+set}" = set; then
2494 withval
="$with_target_subdir"
2498 # Check whether --with-cross-host or --without-cross-host was given.
2499 if test "${with_cross_host+set}" = set; then
2500 withval
="$with_cross_host"
2505 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2506 echo "configure:2507: checking whether to enable maintainer-specific portions of Makefiles" >&5
2507 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2508 if test "${enable_maintainer_mode+set}" = set; then
2509 enableval
="$enable_maintainer_mode"
2510 USE_MAINTAINER_MODE
=$enableval
2512 USE_MAINTAINER_MODE
=no
2515 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2518 if test $USE_MAINTAINER_MODE = yes; then
2519 MAINTAINER_MODE_TRUE
=
2520 MAINTAINER_MODE_FALSE
='#'
2522 MAINTAINER_MODE_TRUE
='#'
2523 MAINTAINER_MODE_FALSE
=
2525 MAINT
=$MAINTAINER_MODE_TRUE
2528 # automake wants to see AC_EXEEXT. But we don't need it. And having
2529 # it is actually a problem, because the compiler we're passed can't
2530 # necessarily do a full link. So we fool automake here.
2531 if test "x" = "y"; then
2534 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2535 echo "configure:2536: checking for executable suffix" >&5
2536 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2543 echo 'int main () { return 0; }' > conftest.
$ac_ext
2545 if { (eval echo configure
:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2546 for file in conftest.
*; do
2548 *.c |
*.o |
*.obj
) ;;
2549 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2553 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2556 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2561 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2562 echo "$ac_t""${ac_cv_exeext}" 1>&6
2567 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2568 echo "configure:2569: checking for threads package to use" >&5
2569 # Check whether --enable-threads or --disable-threads was given.
2570 if test "${enable_threads+set}" = set; then
2571 enableval
="$enable_threads"
2578 if test "$THREADS" = yes; then
2584 # FIXME: this isn't correct in all cases.
2591 # No built-in threads library on IRIX 5.* and older.
2595 # FIXME: for now, choose POSIX, because we implement that.
2596 # Later, choose irix threads.
2600 # FIXME: for now, choose POSIX, because we implement that.
2601 # Later, choose solaris threads.
2621 cat >> confdefs.h
<<\EOF
2622 #define LINUX_THREADS 1
2625 cat >> confdefs.h
<<\EOF
2626 #define _REENTRANT 1
2631 cat >> confdefs.h
<<\EOF
2632 #define SOLARIS_THREADS 1
2635 cat >> confdefs.h
<<\EOF
2636 #define _SOLARIS_PTHREADS 1
2641 cat >> confdefs.h
<<\EOF
2642 #define IRIX_THREADS 1
2649 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
2650 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2653 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2656 echo "$ac_t""$THREADS" 1>&6
2659 # Check whether --enable-java-gc or --disable-java-gc was given.
2660 if test "${enable_java_gc+set}" = set; then
2661 enableval
="$enable_java_gc"
2669 if test "$GC" = "boehm"; then
2670 target_all
=libgcjgc.la
2675 # Check whether --with-ecos or --without-ecos was given.
2676 if test "${with_ecos+set}" = set; then
2677 withval
="$with_ecos"
2678 TARGET_ECOS
="$with_ecos"
2685 case "$TARGET_ECOS" in
2689 cat >> confdefs.h
<<\EOF
2693 CXXINCLUDES
="-I${TARGET_ECOS}/include"
2694 addobjs
="$addobjs ecos.lo"
2704 # alpha_mach_dep.s assumes that pointers are not saved in fp registers.
2705 # Gcc on a 21264 can spill pointers to fp registers. Oops.
2707 # machdep="alpha_mach_dep.lo"
2710 machdep
="mips_ultrix_mach_dep.lo"
2711 cat >> confdefs.h
<<\EOF
2712 #define STACKBASE __stackbase
2715 cat >> confdefs.h
<<\EOF
2716 #define DATASTART_IS_ETEXT 1
2721 machdep
="mips_ultrix_mach-dep.lo"
2724 machdep
="mips_sgi_mach_dep.lo"
2725 cat >> confdefs.h
<<\EOF
2726 #define NO_EXECUTE_PERMISSION 1
2730 sparc-sun-solaris2.3
*)
2731 cat >> confdefs.h
<<\EOF
2732 #define SUNOS53_SHARED_LIB 1
2737 if test x
"$machdep" = x
; then
2738 machdep
="mach_dep.lo"
2740 addobjs
="$addobjs $machdep"
2744 sparc-sun-solaris2
*)
2745 if test "$GCC" = yes; then
2747 for i
in $CFLAGS; do
2752 new_CFLAGS
="$new_CFLAGS $i"
2756 CFLAGS
="$new_CFLAGS"
2764 cat >> confdefs.h
<<\EOF
2768 cat >> confdefs.h
<<\EOF
2769 #define NO_SIGNALS 1
2772 cat >> confdefs.h
<<\EOF
2773 #define JAVA_FINALIZATION 1
2776 cat >> confdefs.h
<<\EOF
2777 #define GC_GCJ_SUPPORT 1
2781 if test -n "${with_cross_host}"; then
2782 cat >> confdefs.h
<<\EOF
2786 cat >> confdefs.h
<<\EOF
2790 cat >> confdefs.h
<<\EOF
2791 #define SMALL_CONFIG 1
2794 cat >> confdefs.h
<<\EOF
2795 #define NO_DEBUGGING 1
2802 if test -z "$with_cross_host"; then
2804 USE_LIBDIR_FALSE
='#'
2810 if test "${multilib}" = "yes"; then
2811 multilib_arg
="--enable-multilib"
2817 cat > confcache
<<\EOF
2818 # This file is a shell script that caches the results of configure
2819 # tests run on this system so they can be shared between configure
2820 # scripts and configure runs. It is not useful on other systems.
2821 # If it contains results you don't want to keep, you may remove or edit it.
2823 # By default, configure uses ./config.cache as the cache file,
2824 # creating it if it does not exist already. You can give configure
2825 # the --cache-file=FILE option to use a different cache file; that is
2826 # what configure does when it calls configure scripts in
2827 # subdirectories, so they share the cache.
2828 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2829 # config.status only pays attention to the cache file if you give it the
2830 # --recheck option to rerun configure.
2833 # The following way of writing the cache mishandles newlines in values,
2834 # but we know of no workaround that is simple, portable, and efficient.
2835 # So, don't put newlines in cache variables' values.
2836 # Ultrix sh set writes to stderr and can't be redirected directly,
2837 # and sets the high bit in the cache file unless we assign to the vars.
2839 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2841 # `set' does not quote correctly, so add quotes (double-quote substitution
2842 # turns \\\\ into \\, and sed turns \\ into \).
2844 -e "s/'/'\\\\''/g" \
2845 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2848 # `set' quotes correctly as required by POSIX, so do not add quotes.
2849 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2852 if cmp -s $cache_file confcache
; then
2855 if test -w $cache_file; then
2856 echo "updating cache $cache_file"
2857 cat confcache
> $cache_file
2859 echo "not updating unwritable cache $cache_file"
2864 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2866 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2867 # Let make expand exec_prefix.
2868 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2870 # Any assignment to VPATH causes Sun make to only execute
2871 # the first set of double-colon rules, so remove it if not needed.
2872 # If there is a colon in the path, we need to keep it.
2873 if test "x$srcdir" = x.
; then
2874 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2877 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2879 # Transform confdefs.h into DEFS.
2880 # Protect against shell expansion while executing Makefile rules.
2881 # Protect against Makefile macro expansion.
2882 cat > conftest.defs
<<\EOF
2883 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2884 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2889 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2893 # Without the "./", some shells look in PATH for config.status.
2894 : ${CONFIG_STATUS=./config.status}
2896 echo creating $CONFIG_STATUS
2897 rm -f $CONFIG_STATUS
2898 cat > $CONFIG_STATUS <<EOF
2900 # Generated automatically by configure.
2901 # Run this file to recreate the current configuration.
2902 # This directory was configured as follows,
2903 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2905 # $0 $ac_configure_args
2907 # Compiler output produced by configure, useful for debugging
2908 # configure, is in ./config.log if it exists.
2910 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2913 case "\$ac_option" in
2914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2915 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2916 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2917 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2918 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2920 -help | --help | --hel | --he | --h)
2921 echo "\$ac_cs_usage"; exit 0 ;;
2922 *) echo "\$ac_cs_usage"; exit 1 ;;
2926 ac_given_srcdir=$srcdir
2927 ac_given_INSTALL="$INSTALL"
2929 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2931 cat >> $CONFIG_STATUS <<EOF
2933 # Protect against being on the right side of a sed subst in config.status.
2934 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2935 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2939 s%@CFLAGS@%$CFLAGS%g
2940 s%@CPPFLAGS@%$CPPFLAGS%g
2941 s%@CXXFLAGS@%$CXXFLAGS%g
2942 s%@FFLAGS@%$FFLAGS%g
2944 s%@LDFLAGS@%$LDFLAGS%g
2946 s%@exec_prefix@%$exec_prefix%g
2947 s%@prefix@%$prefix%g
2948 s%@program_transform_name@%$program_transform_name%g
2949 s%@bindir@%$bindir%g
2950 s%@sbindir@%$sbindir%g
2951 s%@libexecdir@%$libexecdir%g
2952 s%@datadir@%$datadir%g
2953 s%@sysconfdir@%$sysconfdir%g
2954 s%@sharedstatedir@%$sharedstatedir%g
2955 s%@localstatedir@%$localstatedir%g
2956 s%@libdir@%$libdir%g
2957 s%@includedir@%$includedir%g
2958 s%@oldincludedir@%$oldincludedir%g
2959 s%@infodir@%$infodir%g
2960 s%@mandir@%$mandir%g
2962 s%@host_alias@%$host_alias%g
2963 s%@host_cpu@%$host_cpu%g
2964 s%@host_vendor@%$host_vendor%g
2965 s%@host_os@%$host_os%g
2966 s%@target@%$target%g
2967 s%@target_alias@%$target_alias%g
2968 s%@target_cpu@%$target_cpu%g
2969 s%@target_vendor@%$target_vendor%g
2970 s%@target_os@%$target_os%g
2972 s%@build_alias@%$build_alias%g
2973 s%@build_cpu@%$build_cpu%g
2974 s%@build_vendor@%$build_vendor%g
2975 s%@build_os@%$build_os%g
2976 s%@boehm_gc_basedir@%$boehm_gc_basedir%g
2977 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2978 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2979 s%@INSTALL_DATA@%$INSTALL_DATA%g
2980 s%@PACKAGE@%$PACKAGE%g
2981 s%@VERSION@%$VERSION%g
2982 s%@ACLOCAL@%$ACLOCAL%g
2983 s%@AUTOCONF@%$AUTOCONF%g
2984 s%@AUTOMAKE@%$AUTOMAKE%g
2985 s%@AUTOHEADER@%$AUTOHEADER%g
2986 s%@MAKEINFO@%$MAKEINFO%g
2987 s%@SET_MAKE@%$SET_MAKE%g
2992 s%@RANLIB@%$RANLIB%g
2993 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2994 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2996 s%@EXEEXT@%$EXEEXT%g
2997 s%@BOEHM_GC_CFLAGS@%$BOEHM_GC_CFLAGS%g
2999 s%@OBJEXT@%$OBJEXT%g
3001 s%@LIBTOOL@%$LIBTOOL%g
3002 s%@CXXCPP@%$CXXCPP%g
3003 s%@THREADLIB@%$THREADLIB%g
3004 s%@target_all@%$target_all%g
3005 s%@INCLUDES@%$INCLUDES%g
3006 s%@CXXINCLUDES@%$CXXINCLUDES%g
3007 s%@addobjs@%$addobjs%g
3008 s%@MY_CFLAGS@%$MY_CFLAGS%g
3009 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3010 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3015 cat >> $CONFIG_STATUS <<\EOF
3017 # Split the substitutions into bite-sized pieces for seds with
3018 # small command number limits, like on Digital OSF/1 and HP-UX.
3019 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3020 ac_file=1 # Number of current file.
3021 ac_beg=1 # First line for current file.
3022 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3025 while $ac_more_lines; do
3026 if test $ac_beg -gt 1; then
3027 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3029 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3031 if test ! -s conftest.s$ac_file; then
3033 rm -f conftest.s$ac_file
3035 if test -z "$ac_sed_cmds"; then
3036 ac_sed_cmds="sed -f conftest.s$ac_file"
3038 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3040 ac_file=`expr $ac_file + 1`
3042 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3045 if test -z "$ac_sed_cmds"; then
3050 cat >> $CONFIG_STATUS <<EOF
3052 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3054 cat >> $CONFIG_STATUS <<\EOF
3055 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3056 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3058 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
3059 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
3060 *) ac_file_in="${ac_file}.in" ;;
3063 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3065 # Remove last slash and all that follows it. Not all systems have dirname.
3066 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3067 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3068 # The file is in a subdirectory.
3069 test ! -d "$ac_dir" && mkdir "$ac_dir"
3070 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
3071 # A "../" for each directory in $ac_dir_suffix.
3072 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
3074 ac_dir_suffix= ac_dots=
3077 case "$ac_given_srcdir" in
3079 if test -z "$ac_dots"; then top_srcdir=.
3080 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
3081 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3083 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3084 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3087 case "$ac_given_INSTALL" in
3088 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3089 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3092 echo creating "$ac_file"
3094 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
3096 *Makefile*) ac_comsub="1i\\
3097 # $configure_input" ;;
3101 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3103 s%@configure_input@%$configure_input%g
3104 s%@srcdir@%$srcdir%g
3105 s%@top_srcdir@%$top_srcdir%g
3106 s%@INSTALL@%$INSTALL%g
3107 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3112 cat >> $CONFIG_STATUS <<EOF
3116 with_multisubdir=${with_multisubdir}
3117 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3118 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3119 boehm_gc_basedir=${boehm_gc_basedir}
3124 cat >> $CONFIG_STATUS <<\EOF
3126 echo "$DEFS" > boehm-cflags
3128 if test -n "$CONFIG_FILES"; then
3129 ac_file=Makefile . ${boehm_gc_basedir}/../config-ml.in
3133 chmod +x $CONFIG_STATUS
3134 rm -fr confdefs* $ac_clean_files
3135 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1