From Phil Blundell:
[official-gcc.git] / boehm-gc / configure
blob3e4079128cff218990ef60fb375bc889a40c92df
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16 ac_help="$ac_help
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
19 ac_help="$ac_help
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
21 ac_help="$ac_help
22 --enable-static[=PKGS] build static libraries [default=yes]"
23 ac_help="$ac_help
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 ac_help="$ac_help
26 --with-target-subdir=SUBDIR Configuring with a cross compiler"
27 ac_help="$ac_help
28 --with-cross-host=HOST Configuring with a cross compiler"
29 ac_help="$ac_help
30 --enable-maintainer-mode enable make rules and dependencies not useful
31 (and sometimes confusing) to the casual installer"
32 ac_help="$ac_help
33 --enable-threads=TYPE choose threading package"
34 ac_help="$ac_help
35 --enable-java-gc=TYPE choose garbage collector [boehm]"
36 ac_help="$ac_help
37 --with-ecos Enable runtime eCos target support."
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
42 build=NONE
43 cache_file=./config.cache
44 exec_prefix=NONE
45 host=NONE
46 no_create=
47 nonopt=NONE
48 no_recursion=
49 prefix=NONE
50 program_prefix=NONE
51 program_suffix=NONE
52 program_transform_name=s,x,x,
53 silent=
54 site=
55 srcdir=
56 target=NONE
57 verbose=
58 x_includes=NONE
59 x_libraries=NONE
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
74 subdirs=
75 MFLAGS= MAKEFLAGS=
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
78 ac_max_here_lines=12
80 ac_prev=
81 for ac_option
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
87 ac_prev=
88 continue
91 case "$ac_option" in
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 *) ac_optarg= ;;
94 esac
96 # Accept the important Cygnus configure options, so we can diagnose typos.
98 case "$ac_option" in
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 ac_prev=bindir ;;
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
106 ac_prev=build ;;
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 ac_prev=datadir ;;
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 | --da=*)
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 case "$ac_option" in
140 *=*) ;;
141 *) ac_optarg=yes ;;
142 esac
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
156 with_gas=yes ;;
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
161 cat << EOF
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
164 Configuration:
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
172 [$ac_default_prefix]
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 [same as prefix]
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
179 [PREFIX/share]
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 [PREFIX/com]
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
195 cat << EOF
196 Host type:
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
211 exit 0 ;;
213 -host | --host | --hos | --ho)
214 ac_prev=host ;;
215 -host=* | --host=* | --hos=* | --ho=*)
216 host="$ac_optarg" ;;
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 ac_prev=infodir ;;
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
231 ac_prev=libdir ;;
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 ac_prev=mandir ;;
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
256 -nfp | --nfp | --nf)
257 # Obsolete; use --without-fp.
258 with_fp=no ;;
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 | --no-cr | --no-c)
262 no_create=yes ;;
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 no_recursion=yes ;;
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 ac_prev=prefix ;;
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
315 silent=yes ;;
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 ac_prev=sbindir ;;
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 | --sbi=* | --sb=*)
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
326 | --sha | --sh)
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 | --sha=* | --sh=*)
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
335 ac_prev=site ;;
336 -site=* | --site=* | --sit=*)
337 site="$ac_optarg" ;;
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 ac_prev=srcdir ;;
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
352 ac_prev=target ;;
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 verbose=yes ;;
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
361 exit 0 ;;
363 -with-* | --with-*)
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 case "$ac_option" in
371 *=*) ;;
372 *) ac_optarg=yes ;;
373 esac
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
385 --x)
386 # Obsolete; use --with-x.
387 with_x=yes ;;
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 nonopt="$ac_option"
416 esac
417 done
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
426 # 0 standard input
427 # 1 file creation
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
434 exec 6>/dev/null
435 else
436 exec 6>&1
438 exec 5>./config.log
440 echo "\
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
443 " 1>&5
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
447 ac_configure_args=
448 for ac_arg
450 case "$ac_arg" in
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 esac
459 done
461 # NLS nuisances.
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 echo > confdefs.h
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=gc_mark.h
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
484 ac_prog=$0
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 srcdir=$ac_confdir
488 if test ! -r $srcdir/$ac_unique_file; then
489 srcdir=..
491 else
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 else
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 else
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
514 . "$ac_site_file"
516 done
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
520 . $cache_file
521 else
522 echo "creating cache $cache_file"
523 > $cache_file
526 ac_ext=c
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
533 ac_exeext=
534 ac_objext=o
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='
539 ' ac_t=' '
540 else
541 ac_n=-n ac_c= ac_t=
543 else
544 ac_n= ac_c='\c' ac_t=
549 ac_aux_dir=
550 for ac_dir in .. $srcdir/..; do
551 if test -f $ac_dir/install-sh; then
552 ac_aux_dir=$ac_dir
553 ac_install_sh="$ac_aux_dir/install-sh -c"
554 break
555 elif test -f $ac_dir/install.sh; then
556 ac_aux_dir=$ac_dir
557 ac_install_sh="$ac_aux_dir/install.sh -c"
558 break
560 done
561 if test -z "$ac_aux_dir"; then
562 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
564 ac_config_guess=$ac_aux_dir/config.guess
565 ac_config_sub=$ac_aux_dir/config.sub
566 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
570 # Do some error checking and defaulting for the host and target type.
571 # The inputs are:
572 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
574 # The rules are:
575 # 1. You are not allowed to specify --host, --target, and nonopt at the
576 # same time.
577 # 2. Host defaults to nonopt.
578 # 3. If nonopt is not specified, then host defaults to the current host,
579 # as determined by config.guess.
580 # 4. Target and build default to nonopt.
581 # 5. If nonopt is not specified, then target and build default to host.
583 # The aliases save the names the user supplied, while $host etc.
584 # will get canonicalized.
585 case $host---$target---$nonopt in
586 NONE---*---* | *---NONE---* | *---*---NONE) ;;
587 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
588 esac
591 # Make sure we can run config.sub.
592 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
593 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
596 echo $ac_n "checking host system type""... $ac_c" 1>&6
597 echo "configure:598: checking host system type" >&5
599 host_alias=$host
600 case "$host_alias" in
601 NONE)
602 case $nonopt in
603 NONE)
604 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
605 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
606 fi ;;
607 *) host_alias=$nonopt ;;
608 esac ;;
609 esac
611 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
612 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
613 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
614 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
615 echo "$ac_t""$host" 1>&6
617 echo $ac_n "checking target system type""... $ac_c" 1>&6
618 echo "configure:619: checking target system type" >&5
620 target_alias=$target
621 case "$target_alias" in
622 NONE)
623 case $nonopt in
624 NONE) target_alias=$host_alias ;;
625 *) target_alias=$nonopt ;;
626 esac ;;
627 esac
629 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
630 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
631 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
632 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
633 echo "$ac_t""$target" 1>&6
635 echo $ac_n "checking build system type""... $ac_c" 1>&6
636 echo "configure:637: checking build system type" >&5
638 build_alias=$build
639 case "$build_alias" in
640 NONE)
641 case $nonopt in
642 NONE) build_alias=$host_alias ;;
643 *) build_alias=$nonopt ;;
644 esac ;;
645 esac
647 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
648 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
649 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
650 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
651 echo "$ac_t""$build" 1>&6
653 test "$host_alias" != "$target_alias" &&
654 test "$program_prefix$program_suffix$program_transform_name" = \
655 NONENONEs,x,x, &&
656 program_prefix=${target_alias}-
659 # Find a good install program. We prefer a C program (faster),
660 # so one script is as good as another. But avoid the broken or
661 # incompatible versions:
662 # SysV /etc/install, /usr/sbin/install
663 # SunOS /usr/etc/install
664 # IRIX /sbin/install
665 # AIX /bin/install
666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
669 # ./install, which can be erroneously created by make from ./install.sh.
670 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
671 echo "configure:672: checking for a BSD compatible install" >&5
672 if test -z "$INSTALL"; then
673 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
675 else
676 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
677 for ac_dir in $PATH; do
678 # Account for people who put trailing slashes in PATH elements.
679 case "$ac_dir/" in
680 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
682 # OSF1 and SCO ODT 3.0 have their own names for install.
683 # Don't use installbsd from OSF since it installs stuff as root
684 # by default.
685 for ac_prog in ginstall scoinst install; do
686 if test -f $ac_dir/$ac_prog; then
687 if test $ac_prog = install &&
688 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
689 # AIX install. It has an incompatible calling convention.
691 else
692 ac_cv_path_install="$ac_dir/$ac_prog -c"
693 break 2
696 done
698 esac
699 done
700 IFS="$ac_save_IFS"
703 if test "${ac_cv_path_install+set}" = set; then
704 INSTALL="$ac_cv_path_install"
705 else
706 # As a last resort, use the slow shell script. We don't cache a
707 # path for INSTALL within a source directory, because that will
708 # break other packages using the cache if that directory is
709 # removed, or if the path is relative.
710 INSTALL="$ac_install_sh"
713 echo "$ac_t""$INSTALL" 1>&6
715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
716 # It thinks the first close brace ends the variable substitution.
717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
723 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
724 echo "configure:725: checking whether build environment is sane" >&5
725 # Just in case
726 sleep 1
727 echo timestamp > conftestfile
728 # Do `set' in a subshell so we don't clobber the current shell's
729 # arguments. Must try -L first in case configure is actually a
730 # symlink; some systems play weird games with the mod time of symlinks
731 # (eg FreeBSD returns the mod time of the symlink's containing
732 # directory).
733 if (
734 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
735 if test "$*" = "X"; then
736 # -L didn't work.
737 set X `ls -t $srcdir/configure conftestfile`
739 if test "$*" != "X $srcdir/configure conftestfile" \
740 && test "$*" != "X conftestfile $srcdir/configure"; then
742 # If neither matched, then we have a broken ls. This can happen
743 # if, for instance, CONFIG_SHELL is bash and it inherits a
744 # broken ls alias from the environment. This has actually
745 # happened. Such a system could not be considered "sane".
746 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
747 alias in your environment" 1>&2; exit 1; }
750 test "$2" = conftestfile
752 then
753 # Ok.
755 else
756 { echo "configure: error: newly created file is older than distributed files!
757 Check your system clock" 1>&2; exit 1; }
759 rm -f conftest*
760 echo "$ac_t""yes" 1>&6
761 if test "$program_transform_name" = s,x,x,; then
762 program_transform_name=
763 else
764 # Double any \ or $. echo might interpret backslashes.
765 cat <<\EOF_SED > conftestsed
766 s,\\,\\\\,g; s,\$,$$,g
767 EOF_SED
768 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
769 rm -f conftestsed
771 test "$program_prefix" != NONE &&
772 program_transform_name="s,^,${program_prefix},; $program_transform_name"
773 # Use a double $ so make ignores it.
774 test "$program_suffix" != NONE &&
775 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
777 # sed with no file args requires a program.
778 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
780 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
781 echo "configure:782: checking whether ${MAKE-make} sets \${MAKE}" >&5
782 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
783 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785 else
786 cat > conftestmake <<\EOF
787 all:
788 @echo 'ac_maketemp="${MAKE}"'
790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
791 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
792 if test -n "$ac_maketemp"; then
793 eval ac_cv_prog_make_${ac_make}_set=yes
794 else
795 eval ac_cv_prog_make_${ac_make}_set=no
797 rm -f conftestmake
799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
800 echo "$ac_t""yes" 1>&6
801 SET_MAKE=
802 else
803 echo "$ac_t""no" 1>&6
804 SET_MAKE="MAKE=${MAKE-make}"
807 if test $host != $build; then
808 ac_tool_prefix=${host_alias}-
809 else
810 ac_tool_prefix=
813 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
814 echo "configure:815: checking for Cygwin environment" >&5
815 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
817 else
818 cat > conftest.$ac_ext <<EOF
819 #line 820 "configure"
820 #include "confdefs.h"
822 int main() {
824 #ifndef __CYGWIN__
825 #define __CYGWIN__ __CYGWIN32__
826 #endif
827 return __CYGWIN__;
828 ; return 0; }
830 if { (eval echo configure:831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
831 rm -rf conftest*
832 ac_cv_cygwin=yes
833 else
834 echo "configure: failed program was:" >&5
835 cat conftest.$ac_ext >&5
836 rm -rf conftest*
837 ac_cv_cygwin=no
839 rm -f conftest*
840 rm -f conftest*
843 echo "$ac_t""$ac_cv_cygwin" 1>&6
844 CYGWIN=
845 test "$ac_cv_cygwin" = yes && CYGWIN=yes
846 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
847 echo "configure:848: checking for mingw32 environment" >&5
848 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
850 else
851 cat > conftest.$ac_ext <<EOF
852 #line 853 "configure"
853 #include "confdefs.h"
855 int main() {
856 return __MINGW32__;
857 ; return 0; }
859 if { (eval echo configure:860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
860 rm -rf conftest*
861 ac_cv_mingw32=yes
862 else
863 echo "configure: failed program was:" >&5
864 cat conftest.$ac_ext >&5
865 rm -rf conftest*
866 ac_cv_mingw32=no
868 rm -f conftest*
869 rm -f conftest*
872 echo "$ac_t""$ac_cv_mingw32" 1>&6
873 MINGW32=
874 test "$ac_cv_mingw32" = yes && MINGW32=yes
876 # Check whether --enable-multilib or --disable-multilib was given.
877 if test "${enable_multilib+set}" = set; then
878 enableval="$enable_multilib"
879 case "${enableval}" in
880 yes) multilib=yes ;;
881 no) multilib=no ;;
882 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
883 esac
884 else
885 multilib=yes
889 if test "${srcdir}" = "."; then
890 if test "${with_target_subdir}" != "."; then
891 boehm_gc_basedir="${srcdir}/${with_multisrctop}../."
892 else
893 boehm_gc_basedir="${srcdir}/${with_multisrctop}."
895 else
896 boehm_gc_basedir="${srcdir}/."
901 # Make sure we can run config.sub.
902 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
903 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
906 echo $ac_n "checking host system type""... $ac_c" 1>&6
907 echo "configure:908: checking host system type" >&5
909 host_alias=$host
910 case "$host_alias" in
911 NONE)
912 case $nonopt in
913 NONE)
914 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
915 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
916 fi ;;
917 *) host_alias=$nonopt ;;
918 esac ;;
919 esac
921 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
922 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
923 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
924 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
925 echo "$ac_t""$host" 1>&6
929 PACKAGE=boehm-gc
931 VERSION=4.13a2
933 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
934 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
939 missing_dir=`cd $ac_aux_dir && pwd`
940 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
941 echo "configure:942: checking for working aclocal" >&5
942 # Run test in a subshell; some versions of sh will print an error if
943 # an executable is not found, even if stderr is redirected.
944 # Redirect stdin to placate older versions of autoconf. Sigh.
945 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
946 ACLOCAL=aclocal
947 echo "$ac_t""found" 1>&6
948 else
949 ACLOCAL="$missing_dir/missing aclocal"
950 echo "$ac_t""missing" 1>&6
953 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
954 echo "configure:955: checking for working autoconf" >&5
955 # Run test in a subshell; some versions of sh will print an error if
956 # an executable is not found, even if stderr is redirected.
957 # Redirect stdin to placate older versions of autoconf. Sigh.
958 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
959 AUTOCONF=autoconf
960 echo "$ac_t""found" 1>&6
961 else
962 AUTOCONF="$missing_dir/missing autoconf"
963 echo "$ac_t""missing" 1>&6
966 echo $ac_n "checking for working automake""... $ac_c" 1>&6
967 echo "configure:968: checking for working automake" >&5
968 # Run test in a subshell; some versions of sh will print an error if
969 # an executable is not found, even if stderr is redirected.
970 # Redirect stdin to placate older versions of autoconf. Sigh.
971 if (automake --version) < /dev/null > /dev/null 2>&1; then
972 AUTOMAKE=automake
973 echo "$ac_t""found" 1>&6
974 else
975 AUTOMAKE="$missing_dir/missing automake"
976 echo "$ac_t""missing" 1>&6
979 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
980 echo "configure:981: checking for working autoheader" >&5
981 # Run test in a subshell; some versions of sh will print an error if
982 # an executable is not found, even if stderr is redirected.
983 # Redirect stdin to placate older versions of autoconf. Sigh.
984 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
985 AUTOHEADER=autoheader
986 echo "$ac_t""found" 1>&6
987 else
988 AUTOHEADER="$missing_dir/missing autoheader"
989 echo "$ac_t""missing" 1>&6
992 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
993 echo "configure:994: checking for working makeinfo" >&5
994 # Run test in a subshell; some versions of sh will print an error if
995 # an executable is not found, even if stderr is redirected.
996 # Redirect stdin to placate older versions of autoconf. Sigh.
997 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
998 MAKEINFO=makeinfo
999 echo "$ac_t""found" 1>&6
1000 else
1001 MAKEINFO="$missing_dir/missing makeinfo"
1002 echo "$ac_t""missing" 1>&6
1007 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1008 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1009 # are probably using a cross compiler, which will not be able to fully
1010 # link an executable. This should really be fixed in autoconf
1011 # itself.
1015 # Extract the first word of "gcc", so it can be a program name with args.
1016 set dummy gcc; ac_word=$2
1017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1018 echo "configure:1019: checking for $ac_word" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 if test -n "$CC"; then
1023 ac_cv_prog_CC="$CC" # Let the user override the test.
1024 else
1025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1026 ac_dummy="$PATH"
1027 for ac_dir in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir=.
1029 if test -f $ac_dir/$ac_word; then
1030 ac_cv_prog_CC="gcc"
1031 break
1033 done
1034 IFS="$ac_save_ifs"
1037 CC="$ac_cv_prog_CC"
1038 if test -n "$CC"; then
1039 echo "$ac_t""$CC" 1>&6
1040 else
1041 echo "$ac_t""no" 1>&6
1044 if test -z "$CC"; then
1045 # Extract the first word of "cc", so it can be a program name with args.
1046 set dummy cc; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1051 else
1052 if test -n "$CC"; then
1053 ac_cv_prog_CC="$CC" # Let the user override the test.
1054 else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1056 ac_prog_rejected=no
1057 ac_dummy="$PATH"
1058 for ac_dir in $ac_dummy; do
1059 test -z "$ac_dir" && ac_dir=.
1060 if test -f $ac_dir/$ac_word; then
1061 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1062 ac_prog_rejected=yes
1063 continue
1065 ac_cv_prog_CC="cc"
1066 break
1068 done
1069 IFS="$ac_save_ifs"
1070 if test $ac_prog_rejected = yes; then
1071 # We found a bogon in the path, so make sure we never use it.
1072 set dummy $ac_cv_prog_CC
1073 shift
1074 if test $# -gt 0; then
1075 # We chose a different compiler from the bogus one.
1076 # However, it has the same basename, so the bogon will be chosen
1077 # first if we set CC to just the basename; use the full file name.
1078 shift
1079 set dummy "$ac_dir/$ac_word" "$@"
1080 shift
1081 ac_cv_prog_CC="$@"
1086 CC="$ac_cv_prog_CC"
1087 if test -n "$CC"; then
1088 echo "$ac_t""$CC" 1>&6
1089 else
1090 echo "$ac_t""no" 1>&6
1093 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1096 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether we are using GNU C" >&5
1098 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1100 else
1101 cat > conftest.c <<EOF
1102 #ifdef __GNUC__
1103 yes;
1104 #endif
1106 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1107 ac_cv_prog_gcc=yes
1108 else
1109 ac_cv_prog_gcc=no
1113 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1115 if test $ac_cv_prog_gcc = yes; then
1116 GCC=yes
1117 ac_test_CFLAGS="${CFLAGS+set}"
1118 ac_save_CFLAGS="$CFLAGS"
1119 CFLAGS=
1120 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1121 echo "configure:1122: checking whether ${CC-cc} accepts -g" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1124 else
1125 echo 'void f(){}' > conftest.c
1126 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1127 ac_cv_prog_cc_g=yes
1128 else
1129 ac_cv_prog_cc_g=no
1131 rm -f conftest*
1135 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1136 if test "$ac_test_CFLAGS" = set; then
1137 CFLAGS="$ac_save_CFLAGS"
1138 elif test $ac_cv_prog_cc_g = yes; then
1139 CFLAGS="-g -O2"
1140 else
1141 CFLAGS="-O2"
1143 else
1144 GCC=
1145 test "${CFLAGS+set}" = set || CFLAGS="-g"
1149 # Likewise for AC_PROG_CXX.
1152 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1154 # Extract the first word of "$ac_prog", so it can be a program name with args.
1155 set dummy $ac_prog; ac_word=$2
1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157 echo "configure:1158: checking for $ac_word" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1160 else
1161 if test -n "$CXX"; then
1162 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1163 else
1164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 ac_dummy="$PATH"
1166 for ac_dir in $ac_dummy; do
1167 test -z "$ac_dir" && ac_dir=.
1168 if test -f $ac_dir/$ac_word; then
1169 ac_cv_prog_CXX="$ac_prog"
1170 break
1172 done
1173 IFS="$ac_save_ifs"
1176 CXX="$ac_cv_prog_CXX"
1177 if test -n "$CXX"; then
1178 echo "$ac_t""$CXX" 1>&6
1179 else
1180 echo "$ac_t""no" 1>&6
1183 test -n "$CXX" && break
1184 done
1185 test -n "$CXX" || CXX="gcc"
1187 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1189 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether we are using GNU C++" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 cat > conftest.C <<EOF
1195 #ifdef __GNUC__
1196 yes;
1197 #endif
1199 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1200 ac_cv_prog_gxx=yes
1201 else
1202 ac_cv_prog_gxx=no
1206 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1208 if test $ac_cv_prog_gxx = yes; then
1209 GXX=yes
1210 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1211 ac_save_CXXFLAGS="$CXXFLAGS"
1212 CXXFLAGS=
1213 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1214 echo "configure:1215: checking whether ${CXX-g++} accepts -g" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 echo 'void f(){}' > conftest.cc
1219 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1220 ac_cv_prog_cxx_g=yes
1221 else
1222 ac_cv_prog_cxx_g=no
1224 rm -f conftest*
1228 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1229 if test "$ac_test_CXXFLAGS" = set; then
1230 CXXFLAGS="$ac_save_CXXFLAGS"
1231 elif test $ac_cv_prog_cxx_g = yes; then
1232 CXXFLAGS="-g -O2"
1233 else
1234 CXXFLAGS="-O2"
1236 else
1237 GXX=
1238 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1242 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1243 # run it explicitly here, it will be run implicitly before
1244 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1245 # be run before AC_CANONICAL_HOST.
1246 echo $ac_n "checking build system type""... $ac_c" 1>&6
1247 echo "configure:1248: checking build system type" >&5
1249 build_alias=$build
1250 case "$build_alias" in
1251 NONE)
1252 case $nonopt in
1253 NONE) build_alias=$host_alias ;;
1254 *) build_alias=$nonopt ;;
1255 esac ;;
1256 esac
1258 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1259 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1260 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1261 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1262 echo "$ac_t""$build" 1>&6
1265 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1266 set dummy ${ac_tool_prefix}as; ac_word=$2
1267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1268 echo "configure:1269: checking for $ac_word" >&5
1269 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1271 else
1272 if test -n "$AS"; then
1273 ac_cv_prog_AS="$AS" # Let the user override the test.
1274 else
1275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1276 ac_dummy="$PATH"
1277 for ac_dir in $ac_dummy; do
1278 test -z "$ac_dir" && ac_dir=.
1279 if test -f $ac_dir/$ac_word; then
1280 ac_cv_prog_AS="${ac_tool_prefix}as"
1281 break
1283 done
1284 IFS="$ac_save_ifs"
1285 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1288 AS="$ac_cv_prog_AS"
1289 if test -n "$AS"; then
1290 echo "$ac_t""$AS" 1>&6
1291 else
1292 echo "$ac_t""no" 1>&6
1297 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1298 set dummy ${ac_tool_prefix}ar; ac_word=$2
1299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1300 echo "configure:1301: checking for $ac_word" >&5
1301 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1303 else
1304 if test -n "$AR"; then
1305 ac_cv_prog_AR="$AR" # Let the user override the test.
1306 else
1307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1308 ac_dummy="$PATH"
1309 for ac_dir in $ac_dummy; do
1310 test -z "$ac_dir" && ac_dir=.
1311 if test -f $ac_dir/$ac_word; then
1312 ac_cv_prog_AR="${ac_tool_prefix}ar"
1313 break
1315 done
1316 IFS="$ac_save_ifs"
1317 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1320 AR="$ac_cv_prog_AR"
1321 if test -n "$AR"; then
1322 echo "$ac_t""$AR" 1>&6
1323 else
1324 echo "$ac_t""no" 1>&6
1329 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1330 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332 echo "configure:1333: checking for $ac_word" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336 if test -n "$RANLIB"; then
1337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1338 else
1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1340 ac_dummy="$PATH"
1341 for ac_dir in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir=.
1343 if test -f $ac_dir/$ac_word; then
1344 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1345 break
1347 done
1348 IFS="$ac_save_ifs"
1351 RANLIB="$ac_cv_prog_RANLIB"
1352 if test -n "$RANLIB"; then
1353 echo "$ac_t""$RANLIB" 1>&6
1354 else
1355 echo "$ac_t""no" 1>&6
1359 if test -z "$ac_cv_prog_RANLIB"; then
1360 if test -n "$ac_tool_prefix"; then
1361 # Extract the first word of "ranlib", so it can be a program name with args.
1362 set dummy ranlib; ac_word=$2
1363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_word" >&5
1365 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368 if test -n "$RANLIB"; then
1369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1370 else
1371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1372 ac_dummy="$PATH"
1373 for ac_dir in $ac_dummy; do
1374 test -z "$ac_dir" && ac_dir=.
1375 if test -f $ac_dir/$ac_word; then
1376 ac_cv_prog_RANLIB="ranlib"
1377 break
1379 done
1380 IFS="$ac_save_ifs"
1381 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1384 RANLIB="$ac_cv_prog_RANLIB"
1385 if test -n "$RANLIB"; then
1386 echo "$ac_t""$RANLIB" 1>&6
1387 else
1388 echo "$ac_t""no" 1>&6
1391 else
1392 RANLIB=":"
1397 # Find a good install program. We prefer a C program (faster),
1398 # so one script is as good as another. But avoid the broken or
1399 # incompatible versions:
1400 # SysV /etc/install, /usr/sbin/install
1401 # SunOS /usr/etc/install
1402 # IRIX /sbin/install
1403 # AIX /bin/install
1404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1407 # ./install, which can be erroneously created by make from ./install.sh.
1408 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1409 echo "configure:1410: checking for a BSD compatible install" >&5
1410 if test -z "$INSTALL"; then
1411 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1415 for ac_dir in $PATH; do
1416 # Account for people who put trailing slashes in PATH elements.
1417 case "$ac_dir/" in
1418 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1420 # OSF1 and SCO ODT 3.0 have their own names for install.
1421 # Don't use installbsd from OSF since it installs stuff as root
1422 # by default.
1423 for ac_prog in ginstall scoinst install; do
1424 if test -f $ac_dir/$ac_prog; then
1425 if test $ac_prog = install &&
1426 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1427 # AIX install. It has an incompatible calling convention.
1429 else
1430 ac_cv_path_install="$ac_dir/$ac_prog -c"
1431 break 2
1434 done
1436 esac
1437 done
1438 IFS="$ac_save_IFS"
1441 if test "${ac_cv_path_install+set}" = set; then
1442 INSTALL="$ac_cv_path_install"
1443 else
1444 # As a last resort, use the slow shell script. We don't cache a
1445 # path for INSTALL within a source directory, because that will
1446 # break other packages using the cache if that directory is
1447 # removed, or if the path is relative.
1448 INSTALL="$ac_install_sh"
1451 echo "$ac_t""$INSTALL" 1>&6
1453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1454 # It thinks the first close brace ends the variable substitution.
1455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1462 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1463 echo "configure:1464: checking whether to enable maintainer-specific portions of Makefiles" >&5
1464 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1465 if test "${enable_maintainer_mode+set}" = set; then
1466 enableval="$enable_maintainer_mode"
1467 USE_MAINTAINER_MODE=$enableval
1468 else
1469 USE_MAINTAINER_MODE=no
1472 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1475 if test $USE_MAINTAINER_MODE = yes; then
1476 MAINTAINER_MODE_TRUE=
1477 MAINTAINER_MODE_FALSE='#'
1478 else
1479 MAINTAINER_MODE_TRUE='#'
1480 MAINTAINER_MODE_FALSE=
1482 MAINT=$MAINTAINER_MODE_TRUE
1486 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1487 # at least currently, we never actually build a program, so we never
1488 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1489 # fails, because we are probably configuring with a cross compiler
1490 # which can't create executables. So we include AC_EXEEXT to keep
1491 # automake happy, but we don't execute it, since we don't care about
1492 # the result.
1493 if false; then
1496 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1497 echo "configure:1498: checking for executable suffix" >&5
1498 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1500 else
1501 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1502 ac_cv_exeext=.exe
1503 else
1504 rm -f conftest*
1505 echo 'int main () { return 0; }' > conftest.$ac_ext
1506 ac_cv_exeext=
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1508 for file in conftest.*; do
1509 case $file in
1510 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1511 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1512 esac
1513 done
1514 else
1515 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1517 rm -f conftest*
1518 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1522 EXEEXT=""
1523 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1524 echo "$ac_t""${ac_cv_exeext}" 1>&6
1525 ac_exeext=$EXEEXT
1529 . ${boehm_gc_basedir}/configure.host
1531 case ${boehm_gc_basedir} in
1532 /* | A-Za-z:/\\*) boehm_gc_flagbasedir=${boehm_gc_basedir} ;;
1533 *) boehm_gc_flagbasedir='$(top_builddir)/'${boehm_gc_basedir} ;;
1534 esac
1536 boehm_gc_cflags="${boehm_gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${boehm_gc_flagbasedir}/libc/include"
1537 case "${host}" in
1538 *-*-cygwin32*)
1539 boehm_gc_cflags="${boehm_gc_cflags} -I${boehm_gc_flagbasedir}/../winsup/include"
1541 esac
1543 boehm_gc_cflags="${boehm_gc_cflags} -fno-builtin"
1545 BOEHM_GC_CFLAGS=${boehm_gc_cflags}
1549 # Check whether --enable-shared or --disable-shared was given.
1550 if test "${enable_shared+set}" = set; then
1551 enableval="$enable_shared"
1552 p=${PACKAGE-default}
1553 case "$enableval" in
1554 yes) enable_shared=yes ;;
1555 no) enable_shared=no ;;
1557 enable_shared=no
1558 # Look at the argument we got. We use all the common list separators.
1559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1560 for pkg in $enableval; do
1561 if test "X$pkg" = "X$p"; then
1562 enable_shared=yes
1564 done
1565 IFS="$ac_save_ifs"
1567 esac
1568 else
1569 enable_shared=yes
1572 # Check whether --enable-static or --disable-static was given.
1573 if test "${enable_static+set}" = set; then
1574 enableval="$enable_static"
1575 p=${PACKAGE-default}
1576 case "$enableval" in
1577 yes) enable_static=yes ;;
1578 no) enable_static=no ;;
1580 enable_static=no
1581 # Look at the argument we got. We use all the common list separators.
1582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1583 for pkg in $enableval; do
1584 if test "X$pkg" = "X$p"; then
1585 enable_static=yes
1587 done
1588 IFS="$ac_save_ifs"
1590 esac
1591 else
1592 enable_static=yes
1595 # Extract the first word of "ranlib", so it can be a program name with args.
1596 set dummy ranlib; ac_word=$2
1597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1598 echo "configure:1599: checking for $ac_word" >&5
1599 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1601 else
1602 if test -n "$RANLIB"; then
1603 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1604 else
1605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1606 ac_dummy="$PATH"
1607 for ac_dir in $ac_dummy; do
1608 test -z "$ac_dir" && ac_dir=.
1609 if test -f $ac_dir/$ac_word; then
1610 ac_cv_prog_RANLIB="ranlib"
1611 break
1613 done
1614 IFS="$ac_save_ifs"
1615 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1618 RANLIB="$ac_cv_prog_RANLIB"
1619 if test -n "$RANLIB"; then
1620 echo "$ac_t""$RANLIB" 1>&6
1621 else
1622 echo "$ac_t""no" 1>&6
1625 # Extract the first word of "gcc", so it can be a program name with args.
1626 set dummy gcc; ac_word=$2
1627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1628 echo "configure:1629: checking for $ac_word" >&5
1629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1631 else
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1634 else
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1636 ac_dummy="$PATH"
1637 for ac_dir in $ac_dummy; do
1638 test -z "$ac_dir" && ac_dir=.
1639 if test -f $ac_dir/$ac_word; then
1640 ac_cv_prog_CC="gcc"
1641 break
1643 done
1644 IFS="$ac_save_ifs"
1647 CC="$ac_cv_prog_CC"
1648 if test -n "$CC"; then
1649 echo "$ac_t""$CC" 1>&6
1650 else
1651 echo "$ac_t""no" 1>&6
1654 if test -z "$CC"; then
1655 # Extract the first word of "cc", so it can be a program name with args.
1656 set dummy cc; ac_word=$2
1657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_word" >&5
1659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1661 else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1666 ac_prog_rejected=no
1667 ac_dummy="$PATH"
1668 for ac_dir in $ac_dummy; do
1669 test -z "$ac_dir" && ac_dir=.
1670 if test -f $ac_dir/$ac_word; then
1671 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1672 ac_prog_rejected=yes
1673 continue
1675 ac_cv_prog_CC="cc"
1676 break
1678 done
1679 IFS="$ac_save_ifs"
1680 if test $ac_prog_rejected = yes; then
1681 # We found a bogon in the path, so make sure we never use it.
1682 set dummy $ac_cv_prog_CC
1683 shift
1684 if test $# -gt 0; then
1685 # We chose a different compiler from the bogus one.
1686 # However, it has the same basename, so the bogon will be chosen
1687 # first if we set CC to just the basename; use the full file name.
1688 shift
1689 set dummy "$ac_dir/$ac_word" "$@"
1690 shift
1691 ac_cv_prog_CC="$@"
1696 CC="$ac_cv_prog_CC"
1697 if test -n "$CC"; then
1698 echo "$ac_t""$CC" 1>&6
1699 else
1700 echo "$ac_t""no" 1>&6
1703 if test -z "$CC"; then
1704 case "`uname -s`" in
1705 *win32* | *WIN32*)
1706 # Extract the first word of "cl", so it can be a program name with args.
1707 set dummy cl; ac_word=$2
1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1709 echo "configure:1710: checking for $ac_word" >&5
1710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1712 else
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1715 else
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1717 ac_dummy="$PATH"
1718 for ac_dir in $ac_dummy; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/$ac_word; then
1721 ac_cv_prog_CC="cl"
1722 break
1724 done
1725 IFS="$ac_save_ifs"
1728 CC="$ac_cv_prog_CC"
1729 if test -n "$CC"; then
1730 echo "$ac_t""$CC" 1>&6
1731 else
1732 echo "$ac_t""no" 1>&6
1735 esac
1737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1741 echo "configure:1742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1743 ac_ext=c
1744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1745 ac_cpp='$CPP $CPPFLAGS'
1746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1748 cross_compiling=$ac_cv_prog_cc_cross
1750 cat > conftest.$ac_ext << EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1755 main(){return(0);}
1757 if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1758 ac_cv_prog_cc_works=yes
1759 # If we can't run a trivial program, we are probably using a cross compiler.
1760 if (./conftest; exit) 2>/dev/null; then
1761 ac_cv_prog_cc_cross=no
1762 else
1763 ac_cv_prog_cc_cross=yes
1765 else
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 ac_cv_prog_cc_works=no
1770 rm -fr conftest*
1771 ac_ext=c
1772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1773 ac_cpp='$CPP $CPPFLAGS'
1774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1776 cross_compiling=$ac_cv_prog_cc_cross
1778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1779 if test $ac_cv_prog_cc_works = no; then
1780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1785 cross_compiling=$ac_cv_prog_cc_cross
1787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether we are using GNU C" >&5
1789 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1791 else
1792 cat > conftest.c <<EOF
1793 #ifdef __GNUC__
1794 yes;
1795 #endif
1797 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1798 ac_cv_prog_gcc=yes
1799 else
1800 ac_cv_prog_gcc=no
1804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1806 if test $ac_cv_prog_gcc = yes; then
1807 GCC=yes
1808 else
1809 GCC=
1812 ac_test_CFLAGS="${CFLAGS+set}"
1813 ac_save_CFLAGS="$CFLAGS"
1814 CFLAGS=
1815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether ${CC-cc} accepts -g" >&5
1817 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1819 else
1820 echo 'void f(){}' > conftest.c
1821 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1822 ac_cv_prog_cc_g=yes
1823 else
1824 ac_cv_prog_cc_g=no
1826 rm -f conftest*
1830 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1831 if test "$ac_test_CFLAGS" = set; then
1832 CFLAGS="$ac_save_CFLAGS"
1833 elif test $ac_cv_prog_cc_g = yes; then
1834 if test "$GCC" = yes; then
1835 CFLAGS="-g -O2"
1836 else
1837 CFLAGS="-g"
1839 else
1840 if test "$GCC" = yes; then
1841 CFLAGS="-O2"
1842 else
1843 CFLAGS=
1847 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1848 if test "${with_gnu_ld+set}" = set; then
1849 withval="$with_gnu_ld"
1850 test "$withval" = no || with_gnu_ld=yes
1851 else
1852 with_gnu_ld=no
1856 ac_prog=ld
1857 if test "$ac_cv_prog_gcc" = yes; then
1858 # Check if gcc -print-prog-name=ld gives a path.
1859 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1860 echo "configure:1861: checking for ld used by GCC" >&5
1861 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1862 case "$ac_prog" in
1863 # Accept absolute paths.
1864 /* | [A-Za-z]:\\*)
1865 test -z "$LD" && LD="$ac_prog"
1868 # If it fails, then pretend we aren't using GCC.
1869 ac_prog=ld
1872 # If it is relative, then search for the first ld in PATH.
1873 with_gnu_ld=unknown
1875 esac
1876 elif test "$with_gnu_ld" = yes; then
1877 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1878 echo "configure:1879: checking for GNU ld" >&5
1879 else
1880 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1881 echo "configure:1882: checking for non-GNU ld" >&5
1883 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1885 else
1886 if test -z "$LD"; then
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1888 for ac_dir in $PATH; do
1889 test -z "$ac_dir" && ac_dir=.
1890 if test -f "$ac_dir/$ac_prog"; then
1891 ac_cv_path_LD="$ac_dir/$ac_prog"
1892 # Check to see if the program is GNU ld. I'd rather use --version,
1893 # but apparently some GNU ld's only accept -v.
1894 # Break only if it was the GNU/non-GNU ld that we prefer.
1895 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1896 test "$with_gnu_ld" != no && break
1897 else
1898 test "$with_gnu_ld" != yes && break
1901 done
1902 IFS="$ac_save_ifs"
1903 else
1904 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1908 LD="$ac_cv_path_LD"
1909 if test -n "$LD"; then
1910 echo "$ac_t""$LD" 1>&6
1911 else
1912 echo "$ac_t""no" 1>&6
1914 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1916 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1917 echo "configure:1918: checking if the linker ($LD) is GNU ld" >&5
1918 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1922 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1923 ac_cv_prog_gnu_ld=yes
1924 else
1925 ac_cv_prog_gnu_ld=no
1929 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1932 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1933 echo "configure:1934: checking for BSD-compatible nm" >&5
1934 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937 if test -n "$NM"; then
1938 # Let the user override the test.
1939 ac_cv_path_NM="$NM"
1940 else
1941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1942 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1943 test -z "$ac_dir" && ac_dir=.
1944 if test -f $ac_dir/nm; then
1945 # Check to see if the nm accepts a BSD-compat flag.
1946 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1947 # nm: unknown option "B" ignored
1948 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1949 ac_cv_path_NM="$ac_dir/nm -B"
1950 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1951 ac_cv_path_NM="$ac_dir/nm -p"
1952 else
1953 ac_cv_path_NM="$ac_dir/nm"
1955 break
1957 done
1958 IFS="$ac_save_ifs"
1959 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1963 NM="$ac_cv_path_NM"
1964 echo "$ac_t""$NM" 1>&6
1967 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether ln -s works" >&5
1969 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1971 else
1972 rm -f conftestdata
1973 if ln -s X conftestdata 2>/dev/null
1974 then
1975 rm -f conftestdata
1976 ac_cv_prog_LN_S="ln -s"
1977 else
1978 ac_cv_prog_LN_S=ln
1981 LN_S="$ac_cv_prog_LN_S"
1982 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1983 echo "$ac_t""yes" 1>&6
1984 else
1985 echo "$ac_t""no" 1>&6
1988 # Always use our own libtool.
1989 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1991 # Check for any special flags to pass to ltconfig.
1992 libtool_flags=
1993 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1994 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1995 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1996 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1997 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1999 # Some flags need to be propagated to the compiler or linker for good
2000 # libtool support.
2001 case "$host" in
2002 *-*-irix6*)
2003 # Find out which ABI we are using.
2004 echo '#line 2005 "configure"' > conftest.$ac_ext
2005 if { (eval echo configure:2006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2006 case "`/usr/bin/file conftest.o`" in
2007 *32-bit*)
2008 LD="${LD-ld} -32"
2010 *N32*)
2011 LD="${LD-ld} -n32"
2013 *64-bit*)
2014 LD="${LD-ld} -64"
2016 esac
2018 rm -rf conftest*
2021 *-*-sco3.2v5*)
2022 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2023 CFLAGS="$CFLAGS -belf"
2026 *-*-cygwin32*)
2027 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2028 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2030 echo "configure:2031: checking for $ac_word" >&5
2031 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 if test -n "$DLLTOOL"; then
2035 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2036 else
2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2038 ac_dummy="$PATH"
2039 for ac_dir in $ac_dummy; do
2040 test -z "$ac_dir" && ac_dir=.
2041 if test -f $ac_dir/$ac_word; then
2042 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2043 break
2045 done
2046 IFS="$ac_save_ifs"
2049 DLLTOOL="$ac_cv_prog_DLLTOOL"
2050 if test -n "$DLLTOOL"; then
2051 echo "$ac_t""$DLLTOOL" 1>&6
2052 else
2053 echo "$ac_t""no" 1>&6
2057 if test -z "$ac_cv_prog_DLLTOOL"; then
2058 if test -n "$ac_tool_prefix"; then
2059 # Extract the first word of "dlltool", so it can be a program name with args.
2060 set dummy dlltool; ac_word=$2
2061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_word" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 if test -n "$DLLTOOL"; then
2067 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2068 else
2069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2070 ac_dummy="$PATH"
2071 for ac_dir in $ac_dummy; do
2072 test -z "$ac_dir" && ac_dir=.
2073 if test -f $ac_dir/$ac_word; then
2074 ac_cv_prog_DLLTOOL="dlltool"
2075 break
2077 done
2078 IFS="$ac_save_ifs"
2079 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2082 DLLTOOL="$ac_cv_prog_DLLTOOL"
2083 if test -n "$DLLTOOL"; then
2084 echo "$ac_t""$DLLTOOL" 1>&6
2085 else
2086 echo "$ac_t""no" 1>&6
2089 else
2090 DLLTOOL="false"
2094 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2095 set dummy ${ac_tool_prefix}as; ac_word=$2
2096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_word" >&5
2098 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 if test -n "$AS"; then
2102 ac_cv_prog_AS="$AS" # Let the user override the test.
2103 else
2104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2105 ac_dummy="$PATH"
2106 for ac_dir in $ac_dummy; do
2107 test -z "$ac_dir" && ac_dir=.
2108 if test -f $ac_dir/$ac_word; then
2109 ac_cv_prog_AS="${ac_tool_prefix}as"
2110 break
2112 done
2113 IFS="$ac_save_ifs"
2116 AS="$ac_cv_prog_AS"
2117 if test -n "$AS"; then
2118 echo "$ac_t""$AS" 1>&6
2119 else
2120 echo "$ac_t""no" 1>&6
2124 if test -z "$ac_cv_prog_AS"; then
2125 if test -n "$ac_tool_prefix"; then
2126 # Extract the first word of "as", so it can be a program name with args.
2127 set dummy as; ac_word=$2
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_word" >&5
2130 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 if test -n "$AS"; then
2134 ac_cv_prog_AS="$AS" # Let the user override the test.
2135 else
2136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2137 ac_dummy="$PATH"
2138 for ac_dir in $ac_dummy; do
2139 test -z "$ac_dir" && ac_dir=.
2140 if test -f $ac_dir/$ac_word; then
2141 ac_cv_prog_AS="as"
2142 break
2144 done
2145 IFS="$ac_save_ifs"
2146 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2149 AS="$ac_cv_prog_AS"
2150 if test -n "$AS"; then
2151 echo "$ac_t""$AS" 1>&6
2152 else
2153 echo "$ac_t""no" 1>&6
2156 else
2157 AS="false"
2164 esac
2166 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2167 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2168 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2169 DLLTOOL="$DLLTOOL" AS="$AS" \
2170 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2171 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2172 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2174 # Redirect the config.log output again, so that the ltconfig log is not
2175 # clobbered by the next message.
2176 exec 5>>./config.log
2179 # Check whether --with-target-subdir or --without-target-subdir was given.
2180 if test "${with_target_subdir+set}" = set; then
2181 withval="$with_target_subdir"
2185 # Check whether --with-cross-host or --without-cross-host was given.
2186 if test "${with_cross_host+set}" = set; then
2187 withval="$with_cross_host"
2192 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2193 echo "configure:2194: checking whether to enable maintainer-specific portions of Makefiles" >&5
2194 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2195 if test "${enable_maintainer_mode+set}" = set; then
2196 enableval="$enable_maintainer_mode"
2197 USE_MAINTAINER_MODE=$enableval
2198 else
2199 USE_MAINTAINER_MODE=no
2202 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2205 if test $USE_MAINTAINER_MODE = yes; then
2206 MAINTAINER_MODE_TRUE=
2207 MAINTAINER_MODE_FALSE='#'
2208 else
2209 MAINTAINER_MODE_TRUE='#'
2210 MAINTAINER_MODE_FALSE=
2212 MAINT=$MAINTAINER_MODE_TRUE
2215 # automake wants to see AC_EXEEXT. But we don't need it. And having
2216 # it is actually a problem, because the compiler we're passed can't
2217 # necessarily do a full link. So we fool automake here.
2218 if test "x" = "y"; then
2221 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2222 echo "configure:2223: checking for executable suffix" >&5
2223 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2227 ac_cv_exeext=.exe
2228 else
2229 rm -f conftest*
2230 echo 'int main () { return 0; }' > conftest.$ac_ext
2231 ac_cv_exeext=
2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2233 for file in conftest.*; do
2234 case $file in
2235 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2236 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2237 esac
2238 done
2239 else
2240 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2242 rm -f conftest*
2243 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2247 EXEEXT=""
2248 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2249 echo "$ac_t""${ac_cv_exeext}" 1>&6
2250 ac_exeext=$EXEEXT
2254 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2255 echo "configure:2256: checking for threads package to use" >&5
2256 # Check whether --enable-threads or --disable-threads was given.
2257 if test "${enable_threads+set}" = set; then
2258 enableval="$enable_threads"
2259 THREADS=$enableval
2260 else
2261 THREADS=no
2265 if test "$THREADS" = yes; then
2266 case "$host" in
2267 *-*-vxworks*)
2268 THREADS=vxworks
2270 *-*-linux*)
2271 # FIXME: this isn't correct in all cases.
2272 THREADS=posix
2274 *-*-win*)
2275 THREADS=win32
2277 *-*-irix*)
2278 # FIXME: for now, choose POSIX, because we implement that.
2279 # Later, choose irix threads.
2280 THREADS=posix
2282 *-*-solaris*)
2283 # FIXME: for now, choose POSIX, because we implement that.
2284 # Later, choose solaris threads.
2285 THREADS=posix
2288 # For now.
2289 THREADS=none
2291 esac
2294 INCLUDES=
2295 case "$THREADS" in
2296 no | none | single)
2297 THREADS=none
2299 posix | pthreads)
2300 THREADS=posix
2301 case "$host" in
2302 *-*-linux*)
2303 cat >> confdefs.h <<\EOF
2304 #define LINUX_THREADS 1
2307 cat >> confdefs.h <<\EOF
2308 #define _REENTRANT 1
2312 *-*-solaris*)
2313 cat >> confdefs.h <<\EOF
2314 #define SOLARIS_THREADS 1
2317 cat >> confdefs.h <<\EOF
2318 #define _SOLARIS_PTHREADS 1
2322 *-*-irix*)
2323 cat >> confdefs.h <<\EOF
2324 #define IRIX_THREADS 1
2328 esac
2331 cat >> confdefs.h <<\EOF
2332 #define QUICK_THREADS 1
2335 INCLUDES="-I${boehm_gc_basedir}/../qthreads"
2337 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2338 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2341 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2343 esac
2344 echo "$ac_t""$THREADS" 1>&6
2346 # Check whether --enable-java-gc or --disable-java-gc was given.
2347 if test "${enable_java_gc+set}" = set; then
2348 enableval="$enable_java_gc"
2350 GC=$enableval
2351 else
2352 GC=boehm
2355 target_all=
2356 if test "$GC" = "boehm"; then
2357 target_all=libgcjgc.la
2361 TARGET_ECOS="no"
2362 # Check whether --with-ecos or --without-ecos was given.
2363 if test "${with_ecos+set}" = set; then
2364 withval="$with_ecos"
2365 TARGET_ECOS="$with_ecos"
2370 addobjs=
2371 CXXINCLUDES=
2372 case "$TARGET_ECOS" in
2376 cat >> confdefs.h <<\EOF
2377 #define ECOS 1
2380 CXXINCLUDES="-I${TARGET_ECOS}/include"
2381 addobjs="$addobjs ecos.lo"
2383 esac
2389 machdep=
2390 case "$host" in
2391 alpha-*-*)
2392 machdep="alpha_mach_dep.lo"
2394 mips-*-*)
2395 machdep="mips_sgi_mach_dep.lo"
2396 cat >> confdefs.h <<\EOF
2397 #define NO_EXECUTE_PERMISSION 1
2401 mipstx39-*-elf*)
2402 machdep="mips_ultrix_mach_dep.lo"
2403 cat >> confdefs.h <<\EOF
2404 #define STACKBASE __stackbase
2407 cat >> confdefs.h <<\EOF
2408 #define DATASTART_IS_ETEXT 1
2412 sparc-sun-solaris2.3*)
2413 cat >> confdefs.h <<\EOF
2414 #define SUNOS53_SHARED_LIB 1
2418 esac
2419 if test x"$machdep" = x; then
2420 machdep="mach_dep.lo"
2422 addobjs="$addobjs $machdep"
2425 case "$host" in
2426 sparc-sun-solaris2*)
2427 if test "$GCC" = yes; then
2428 new_CFLAGS=
2429 for i in $CFLAGS; do
2430 case "$i" in
2431 -O*)
2434 new_CFLAGS="$new_CFLAGS $i"
2436 esac
2437 done
2438 CFLAGS="$new_CFLAGS"
2441 esac
2443 MY_CFLAGS="$CFLAGS"
2446 cat >> confdefs.h <<\EOF
2447 #define SILENT 1
2450 cat >> confdefs.h <<\EOF
2451 #define NO_SIGNALS 1
2454 cat >> confdefs.h <<\EOF
2455 #define NO_DEBUGGING 1
2458 cat >> confdefs.h <<\EOF
2459 #define JAVA_FINALIZATION 1
2465 if test -n "${with_cross_host}"; then
2466 cat >> confdefs.h <<\EOF
2467 #define NO_SIGSET 1
2470 cat >> confdefs.h <<\EOF
2471 #define NO_CLOCK 1
2474 cat >> confdefs.h <<\EOF
2475 #define SMALL_CONFIG 1
2480 if test "${multilib}" = "yes"; then
2481 multilib_arg="--enable-multilib"
2482 else
2483 multilib_arg=
2486 trap '' 1 2 15
2487 cat > confcache <<\EOF
2488 # This file is a shell script that caches the results of configure
2489 # tests run on this system so they can be shared between configure
2490 # scripts and configure runs. It is not useful on other systems.
2491 # If it contains results you don't want to keep, you may remove or edit it.
2493 # By default, configure uses ./config.cache as the cache file,
2494 # creating it if it does not exist already. You can give configure
2495 # the --cache-file=FILE option to use a different cache file; that is
2496 # what configure does when it calls configure scripts in
2497 # subdirectories, so they share the cache.
2498 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2499 # config.status only pays attention to the cache file if you give it the
2500 # --recheck option to rerun configure.
2503 # The following way of writing the cache mishandles newlines in values,
2504 # but we know of no workaround that is simple, portable, and efficient.
2505 # So, don't put newlines in cache variables' values.
2506 # Ultrix sh set writes to stderr and can't be redirected directly,
2507 # and sets the high bit in the cache file unless we assign to the vars.
2508 (set) 2>&1 |
2509 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2510 *ac_space=\ *)
2511 # `set' does not quote correctly, so add quotes (double-quote substitution
2512 # turns \\\\ into \\, and sed turns \\ into \).
2513 sed -n \
2514 -e "s/'/'\\\\''/g" \
2515 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2518 # `set' quotes correctly as required by POSIX, so do not add quotes.
2519 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2521 esac >> confcache
2522 if cmp -s $cache_file confcache; then
2524 else
2525 if test -w $cache_file; then
2526 echo "updating cache $cache_file"
2527 cat confcache > $cache_file
2528 else
2529 echo "not updating unwritable cache $cache_file"
2532 rm -f confcache
2534 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2536 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2537 # Let make expand exec_prefix.
2538 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2540 # Any assignment to VPATH causes Sun make to only execute
2541 # the first set of double-colon rules, so remove it if not needed.
2542 # If there is a colon in the path, we need to keep it.
2543 if test "x$srcdir" = x.; then
2544 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2547 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2549 # Transform confdefs.h into DEFS.
2550 # Protect against shell expansion while executing Makefile rules.
2551 # Protect against Makefile macro expansion.
2552 cat > conftest.defs <<\EOF
2553 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2554 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2555 s%\[%\\&%g
2556 s%\]%\\&%g
2557 s%\$%$$%g
2559 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2560 rm -f conftest.defs
2563 # Without the "./", some shells look in PATH for config.status.
2564 : ${CONFIG_STATUS=./config.status}
2566 echo creating $CONFIG_STATUS
2567 rm -f $CONFIG_STATUS
2568 cat > $CONFIG_STATUS <<EOF
2569 #! /bin/sh
2570 # Generated automatically by configure.
2571 # Run this file to recreate the current configuration.
2572 # This directory was configured as follows,
2573 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2575 # $0 $ac_configure_args
2577 # Compiler output produced by configure, useful for debugging
2578 # configure, is in ./config.log if it exists.
2580 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2581 for ac_option
2583 case "\$ac_option" in
2584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2585 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2586 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2587 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2588 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2589 exit 0 ;;
2590 -help | --help | --hel | --he | --h)
2591 echo "\$ac_cs_usage"; exit 0 ;;
2592 *) echo "\$ac_cs_usage"; exit 1 ;;
2593 esac
2594 done
2596 ac_given_srcdir=$srcdir
2597 ac_given_INSTALL="$INSTALL"
2599 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2601 cat >> $CONFIG_STATUS <<EOF
2603 # Protect against being on the right side of a sed subst in config.status.
2604 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2605 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2606 $ac_vpsub
2607 $extrasub
2608 s%@SHELL@%$SHELL%g
2609 s%@CFLAGS@%$CFLAGS%g
2610 s%@CPPFLAGS@%$CPPFLAGS%g
2611 s%@CXXFLAGS@%$CXXFLAGS%g
2612 s%@FFLAGS@%$FFLAGS%g
2613 s%@DEFS@%$DEFS%g
2614 s%@LDFLAGS@%$LDFLAGS%g
2615 s%@LIBS@%$LIBS%g
2616 s%@exec_prefix@%$exec_prefix%g
2617 s%@prefix@%$prefix%g
2618 s%@program_transform_name@%$program_transform_name%g
2619 s%@bindir@%$bindir%g
2620 s%@sbindir@%$sbindir%g
2621 s%@libexecdir@%$libexecdir%g
2622 s%@datadir@%$datadir%g
2623 s%@sysconfdir@%$sysconfdir%g
2624 s%@sharedstatedir@%$sharedstatedir%g
2625 s%@localstatedir@%$localstatedir%g
2626 s%@libdir@%$libdir%g
2627 s%@includedir@%$includedir%g
2628 s%@oldincludedir@%$oldincludedir%g
2629 s%@infodir@%$infodir%g
2630 s%@mandir@%$mandir%g
2631 s%@host@%$host%g
2632 s%@host_alias@%$host_alias%g
2633 s%@host_cpu@%$host_cpu%g
2634 s%@host_vendor@%$host_vendor%g
2635 s%@host_os@%$host_os%g
2636 s%@target@%$target%g
2637 s%@target_alias@%$target_alias%g
2638 s%@target_cpu@%$target_cpu%g
2639 s%@target_vendor@%$target_vendor%g
2640 s%@target_os@%$target_os%g
2641 s%@build@%$build%g
2642 s%@build_alias@%$build_alias%g
2643 s%@build_cpu@%$build_cpu%g
2644 s%@build_vendor@%$build_vendor%g
2645 s%@build_os@%$build_os%g
2646 s%@boehm_gc_basedir@%$boehm_gc_basedir%g
2647 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2648 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2649 s%@INSTALL_DATA@%$INSTALL_DATA%g
2650 s%@PACKAGE@%$PACKAGE%g
2651 s%@VERSION@%$VERSION%g
2652 s%@ACLOCAL@%$ACLOCAL%g
2653 s%@AUTOCONF@%$AUTOCONF%g
2654 s%@AUTOMAKE@%$AUTOMAKE%g
2655 s%@AUTOHEADER@%$AUTOHEADER%g
2656 s%@MAKEINFO@%$MAKEINFO%g
2657 s%@SET_MAKE@%$SET_MAKE%g
2658 s%@CC@%$CC%g
2659 s%@CXX@%$CXX%g
2660 s%@AS@%$AS%g
2661 s%@AR@%$AR%g
2662 s%@RANLIB@%$RANLIB%g
2663 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2664 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2665 s%@MAINT@%$MAINT%g
2666 s%@EXEEXT@%$EXEEXT%g
2667 s%@BOEHM_GC_CFLAGS@%$BOEHM_GC_CFLAGS%g
2668 s%@LD@%$LD%g
2669 s%@NM@%$NM%g
2670 s%@LN_S@%$LN_S%g
2671 s%@LIBTOOL@%$LIBTOOL%g
2672 s%@DLLTOOL@%$DLLTOOL%g
2673 s%@target_all@%$target_all%g
2674 s%@INCLUDES@%$INCLUDES%g
2675 s%@CXXINCLUDES@%$CXXINCLUDES%g
2676 s%@addobjs@%$addobjs%g
2677 s%@MY_CFLAGS@%$MY_CFLAGS%g
2679 CEOF
2682 cat >> $CONFIG_STATUS <<\EOF
2684 # Split the substitutions into bite-sized pieces for seds with
2685 # small command number limits, like on Digital OSF/1 and HP-UX.
2686 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2687 ac_file=1 # Number of current file.
2688 ac_beg=1 # First line for current file.
2689 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2690 ac_more_lines=:
2691 ac_sed_cmds=""
2692 while $ac_more_lines; do
2693 if test $ac_beg -gt 1; then
2694 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2695 else
2696 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2698 if test ! -s conftest.s$ac_file; then
2699 ac_more_lines=false
2700 rm -f conftest.s$ac_file
2701 else
2702 if test -z "$ac_sed_cmds"; then
2703 ac_sed_cmds="sed -f conftest.s$ac_file"
2704 else
2705 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2707 ac_file=`expr $ac_file + 1`
2708 ac_beg=$ac_end
2709 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2711 done
2712 if test -z "$ac_sed_cmds"; then
2713 ac_sed_cmds=cat
2717 cat >> $CONFIG_STATUS <<EOF
2719 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2721 cat >> $CONFIG_STATUS <<\EOF
2722 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2723 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2724 case "$ac_file" in
2725 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2726 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2727 *) ac_file_in="${ac_file}.in" ;;
2728 esac
2730 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2732 # Remove last slash and all that follows it. Not all systems have dirname.
2733 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2734 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2735 # The file is in a subdirectory.
2736 test ! -d "$ac_dir" && mkdir "$ac_dir"
2737 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2738 # A "../" for each directory in $ac_dir_suffix.
2739 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2740 else
2741 ac_dir_suffix= ac_dots=
2744 case "$ac_given_srcdir" in
2745 .) srcdir=.
2746 if test -z "$ac_dots"; then top_srcdir=.
2747 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2748 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2749 *) # Relative path.
2750 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2751 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2752 esac
2754 case "$ac_given_INSTALL" in
2755 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2756 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2757 esac
2759 echo creating "$ac_file"
2760 rm -f "$ac_file"
2761 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2762 case "$ac_file" in
2763 *Makefile*) ac_comsub="1i\\
2764 # $configure_input" ;;
2765 *) ac_comsub= ;;
2766 esac
2768 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2769 sed -e "$ac_comsub
2770 s%@configure_input@%$configure_input%g
2771 s%@srcdir@%$srcdir%g
2772 s%@top_srcdir@%$top_srcdir%g
2773 s%@INSTALL@%$INSTALL%g
2774 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2775 fi; done
2776 rm -f conftest.s*
2780 cat >> $CONFIG_STATUS <<EOF
2781 ac_sources="config.h"
2782 ac_dests="boehm-config.h"
2785 cat >> $CONFIG_STATUS <<\EOF
2786 srcdir=$ac_given_srcdir
2787 while test -n "$ac_sources"; do
2788 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2789 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2791 echo "linking $srcdir/$ac_source to $ac_dest"
2793 if test ! -r $srcdir/$ac_source; then
2794 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2796 rm -f $ac_dest
2798 # Make relative symlinks.
2799 # Remove last slash and all that follows it. Not all systems have dirname.
2800 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2801 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2802 # The dest file is in a subdirectory.
2803 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2804 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2805 # A "../" for each directory in $ac_dest_dir_suffix.
2806 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2807 else
2808 ac_dest_dir_suffix= ac_dots=
2811 case "$srcdir" in
2812 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2813 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2814 esac
2816 # Make a symlink if possible; otherwise try a hard link.
2817 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2818 ln $srcdir/$ac_source $ac_dest; then :
2819 else
2820 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2822 done
2824 cat >> $CONFIG_STATUS <<EOF
2825 srcdir=${srcdir}
2826 host=${host}
2827 target=${target}
2828 with_multisubdir=${with_multisubdir}
2829 ac_configure_args="${multilib_arg} ${ac_configure_args}"
2830 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2831 boehm_gc_basedir=${boehm_gc_basedir}
2832 CC="${CC}"
2833 DEFS="$DEFS"
2836 cat >> $CONFIG_STATUS <<\EOF
2838 echo "$DEFS" > boehm-cflags
2840 if test -n "$CONFIG_FILES"; then
2841 ac_file=Makefile . ${boehm_gc_basedir}/../config-ml.in
2843 exit 0
2845 chmod +x $CONFIG_STATUS
2846 rm -fr confdefs* $ac_clean_files
2847 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1