* doc/install.texi: Update Solaris information.
[official-gcc.git] / boehm-gc / configure
blob06d487a6f31c36507001ad8852bdd256f62c732e
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 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
25 ac_help="$ac_help
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
27 ac_help="$ac_help
28 --disable-libtool-lock avoid locking (might break parallel builds)"
29 ac_help="$ac_help
30 --with-pic try to use only PIC/non-PIC objects [default=use both]"
31 ac_help="$ac_help
32 --with-target-subdir=SUBDIR
33 configuring with a cross compiler"
34 ac_help="$ac_help
35 --with-cross-host=HOST configuring with a cross compiler"
36 ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39 ac_help="$ac_help
40 --enable-java-gc=TYPE choose garbage collector [boehm]"
41 ac_help="$ac_help
42 --with-ecos enable runtime eCos target support"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
47 build=NONE
48 cache_file=./config.cache
49 exec_prefix=NONE
50 host=NONE
51 no_create=
52 nonopt=NONE
53 no_recursion=
54 prefix=NONE
55 program_prefix=NONE
56 program_suffix=NONE
57 program_transform_name=s,x,x,
58 silent=
59 site=
60 sitefile=
61 srcdir=
62 target=NONE
63 verbose=
64 x_includes=NONE
65 x_libraries=NONE
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
80 subdirs=
81 MFLAGS= MAKEFLAGS=
82 SHELL=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
84 ac_max_here_lines=12
86 ac_prev=
87 for ac_option
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
93 ac_prev=
94 continue
97 case "$ac_option" in
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 *) ac_optarg= ;;
100 esac
102 # Accept the important Cygnus configure options, so we can diagnose typos.
104 case "$ac_option" in
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 ac_prev=bindir ;;
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
112 ac_prev=build ;;
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 ac_prev=datadir ;;
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 | --da=*)
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 case "$ac_option" in
146 *=*) ;;
147 *) ac_optarg=yes ;;
148 esac
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
162 with_gas=yes ;;
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
167 cat << EOF
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
170 Configuration:
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --site-file=FILE use FILE as the site file
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
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
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
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
202 cat << EOF
203 Host type:
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"
218 exit 0 ;;
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
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)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
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)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
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)
285 ac_prev=prefix ;;
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)
322 silent=yes ;;
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
346 -site-file | --site-file | --site-fil | --site-fi | --site-f)
347 ac_prev=sitefile ;;
348 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
349 sitefile="$ac_optarg" ;;
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352 ac_prev=srcdir ;;
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
363 -target | --target | --targe | --targ | --tar | --ta | --t)
364 ac_prev=target ;;
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 verbose=yes ;;
371 -version | --version | --versio | --versi | --vers)
372 echo "configure generated by autoconf version 2.13"
373 exit 0 ;;
375 -with-* | --with-*)
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 case "$ac_option" in
383 *=*) ;;
384 *) ac_optarg=yes ;;
385 esac
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
397 --x)
398 # Obsolete; use --with-x.
399 with_x=yes ;;
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 nonopt="$ac_option"
428 esac
429 done
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
438 # 0 standard input
439 # 1 file creation
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
446 exec 6>/dev/null
447 else
448 exec 6>&1
450 exec 5>./config.log
452 echo "\
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
455 " 1>&5
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
459 ac_configure_args=
460 for ac_arg
462 case "$ac_arg" in
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 esac
471 done
473 # NLS nuisances.
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 echo > confdefs.h
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file=gc_mark.h
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
496 ac_prog=$0
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499 srcdir=$ac_confdir
500 if test ! -r $srcdir/$ac_unique_file; then
501 srcdir=..
503 else
504 ac_srcdir_defaulted=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509 else
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$sitefile"; then
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE; then
519 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 else
521 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
524 else
525 CONFIG_SITE="$sitefile"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
530 . "$ac_site_file"
532 done
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
536 . $cache_file
537 else
538 echo "creating cache $cache_file"
539 > $cache_file
542 ac_ext=c
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
549 ac_exeext=
550 ac_objext=o
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554 ac_n= ac_c='
555 ' ac_t=' '
556 else
557 ac_n=-n ac_c= ac_t=
559 else
560 ac_n= ac_c='\c' ac_t=
565 ac_aux_dir=
566 for ac_dir in .. $srcdir/..; do
567 if test -f $ac_dir/install-sh; then
568 ac_aux_dir=$ac_dir
569 ac_install_sh="$ac_aux_dir/install-sh -c"
570 break
571 elif test -f $ac_dir/install.sh; then
572 ac_aux_dir=$ac_dir
573 ac_install_sh="$ac_aux_dir/install.sh -c"
574 break
576 done
577 if test -z "$ac_aux_dir"; then
578 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
580 ac_config_guess=$ac_aux_dir/config.guess
581 ac_config_sub=$ac_aux_dir/config.sub
582 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
586 # Do some error checking and defaulting for the host and target type.
587 # The inputs are:
588 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
590 # The rules are:
591 # 1. You are not allowed to specify --host, --target, and nonopt at the
592 # same time.
593 # 2. Host defaults to nonopt.
594 # 3. If nonopt is not specified, then host defaults to the current host,
595 # as determined by config.guess.
596 # 4. Target and build default to nonopt.
597 # 5. If nonopt is not specified, then target and build default to host.
599 # The aliases save the names the user supplied, while $host etc.
600 # will get canonicalized.
601 case $host---$target---$nonopt in
602 NONE---*---* | *---NONE---* | *---*---NONE) ;;
603 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
604 esac
607 # Make sure we can run config.sub.
608 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
609 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
612 echo $ac_n "checking host system type""... $ac_c" 1>&6
613 echo "configure:614: checking host system type" >&5
615 host_alias=$host
616 case "$host_alias" in
617 NONE)
618 case $nonopt in
619 NONE)
620 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
621 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
622 fi ;;
623 *) host_alias=$nonopt ;;
624 esac ;;
625 esac
627 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
628 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$host" 1>&6
633 echo $ac_n "checking target system type""... $ac_c" 1>&6
634 echo "configure:635: checking target system type" >&5
636 target_alias=$target
637 case "$target_alias" in
638 NONE)
639 case $nonopt in
640 NONE) target_alias=$host_alias ;;
641 *) target_alias=$nonopt ;;
642 esac ;;
643 esac
645 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
646 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$target" 1>&6
651 echo $ac_n "checking build system type""... $ac_c" 1>&6
652 echo "configure:653: checking build system type" >&5
654 build_alias=$build
655 case "$build_alias" in
656 NONE)
657 case $nonopt in
658 NONE) build_alias=$host_alias ;;
659 *) build_alias=$nonopt ;;
660 esac ;;
661 esac
663 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
664 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$build" 1>&6
669 test "$host_alias" != "$target_alias" &&
670 test "$program_prefix$program_suffix$program_transform_name" = \
671 NONENONEs,x,x, &&
672 program_prefix=${target_alias}-
675 # Find a good install program. We prefer a C program (faster),
676 # so one script is as good as another. But avoid the broken or
677 # incompatible versions:
678 # SysV /etc/install, /usr/sbin/install
679 # SunOS /usr/etc/install
680 # IRIX /sbin/install
681 # AIX /bin/install
682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
685 # ./install, which can be erroneously created by make from ./install.sh.
686 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
687 echo "configure:688: checking for a BSD compatible install" >&5
688 if test -z "$INSTALL"; then
689 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
691 else
692 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
693 for ac_dir in $PATH; do
694 # Account for people who put trailing slashes in PATH elements.
695 case "$ac_dir/" in
696 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
698 # OSF1 and SCO ODT 3.0 have their own names for install.
699 # Don't use installbsd from OSF since it installs stuff as root
700 # by default.
701 for ac_prog in ginstall scoinst install; do
702 if test -f $ac_dir/$ac_prog; then
703 if test $ac_prog = install &&
704 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
705 # AIX install. It has an incompatible calling convention.
707 else
708 ac_cv_path_install="$ac_dir/$ac_prog -c"
709 break 2
712 done
714 esac
715 done
716 IFS="$ac_save_IFS"
719 if test "${ac_cv_path_install+set}" = set; then
720 INSTALL="$ac_cv_path_install"
721 else
722 # As a last resort, use the slow shell script. We don't cache a
723 # path for INSTALL within a source directory, because that will
724 # break other packages using the cache if that directory is
725 # removed, or if the path is relative.
726 INSTALL="$ac_install_sh"
729 echo "$ac_t""$INSTALL" 1>&6
731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
732 # It thinks the first close brace ends the variable substitution.
733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
739 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
740 echo "configure:741: checking whether build environment is sane" >&5
741 # Just in case
742 sleep 1
743 echo timestamp > conftestfile
744 # Do `set' in a subshell so we don't clobber the current shell's
745 # arguments. Must try -L first in case configure is actually a
746 # symlink; some systems play weird games with the mod time of symlinks
747 # (eg FreeBSD returns the mod time of the symlink's containing
748 # directory).
749 if (
750 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
751 if test "$*" = "X"; then
752 # -L didn't work.
753 set X `ls -t $srcdir/configure conftestfile`
755 if test "$*" != "X $srcdir/configure conftestfile" \
756 && test "$*" != "X conftestfile $srcdir/configure"; then
758 # If neither matched, then we have a broken ls. This can happen
759 # if, for instance, CONFIG_SHELL is bash and it inherits a
760 # broken ls alias from the environment. This has actually
761 # happened. Such a system could not be considered "sane".
762 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
763 alias in your environment" 1>&2; exit 1; }
766 test "$2" = conftestfile
768 then
769 # Ok.
771 else
772 { echo "configure: error: newly created file is older than distributed files!
773 Check your system clock" 1>&2; exit 1; }
775 rm -f conftest*
776 echo "$ac_t""yes" 1>&6
777 if test "$program_transform_name" = s,x,x,; then
778 program_transform_name=
779 else
780 # Double any \ or $. echo might interpret backslashes.
781 cat <<\EOF_SED > conftestsed
782 s,\\,\\\\,g; s,\$,$$,g
783 EOF_SED
784 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
785 rm -f conftestsed
787 test "$program_prefix" != NONE &&
788 program_transform_name="s,^,${program_prefix},; $program_transform_name"
789 # Use a double $ so make ignores it.
790 test "$program_suffix" != NONE &&
791 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
793 # sed with no file args requires a program.
794 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
796 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
797 echo "configure:798: checking whether ${MAKE-make} sets \${MAKE}" >&5
798 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
799 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
801 else
802 cat > conftestmake <<\EOF
803 all:
804 @echo 'ac_maketemp="${MAKE}"'
806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
807 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
808 if test -n "$ac_maketemp"; then
809 eval ac_cv_prog_make_${ac_make}_set=yes
810 else
811 eval ac_cv_prog_make_${ac_make}_set=no
813 rm -f conftestmake
815 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
816 echo "$ac_t""yes" 1>&6
817 SET_MAKE=
818 else
819 echo "$ac_t""no" 1>&6
820 SET_MAKE="MAKE=${MAKE-make}"
823 if test $host != $build; then
824 ac_tool_prefix=${host_alias}-
825 else
826 ac_tool_prefix=
829 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
830 echo "configure:831: checking for Cygwin environment" >&5
831 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
833 else
834 cat > conftest.$ac_ext <<EOF
835 #line 836 "configure"
836 #include "confdefs.h"
838 int main() {
840 #ifndef __CYGWIN__
841 #define __CYGWIN__ __CYGWIN32__
842 #endif
843 return __CYGWIN__;
844 ; return 0; }
846 if { (eval echo configure:847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
847 rm -rf conftest*
848 ac_cv_cygwin=yes
849 else
850 echo "configure: failed program was:" >&5
851 cat conftest.$ac_ext >&5
852 rm -rf conftest*
853 ac_cv_cygwin=no
855 rm -f conftest*
856 rm -f conftest*
859 echo "$ac_t""$ac_cv_cygwin" 1>&6
860 CYGWIN=
861 test "$ac_cv_cygwin" = yes && CYGWIN=yes
862 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
863 echo "configure:864: checking for mingw32 environment" >&5
864 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
866 else
867 cat > conftest.$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
871 int main() {
872 return __MINGW32__;
873 ; return 0; }
875 if { (eval echo configure:876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
876 rm -rf conftest*
877 ac_cv_mingw32=yes
878 else
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
881 rm -rf conftest*
882 ac_cv_mingw32=no
884 rm -f conftest*
885 rm -f conftest*
888 echo "$ac_t""$ac_cv_mingw32" 1>&6
889 MINGW32=
890 test "$ac_cv_mingw32" = yes && MINGW32=yes
892 # Check whether --enable-multilib or --disable-multilib was given.
893 if test "${enable_multilib+set}" = set; then
894 enableval="$enable_multilib"
895 case "${enableval}" in
896 yes) multilib=yes ;;
897 no) multilib=no ;;
898 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
899 esac
900 else
901 multilib=yes
905 if test "${srcdir}" = "."; then
906 if test "${with_target_subdir}" != "."; then
907 boehm_gc_basedir="${srcdir}/${with_multisrctop}../."
908 else
909 boehm_gc_basedir="${srcdir}/${with_multisrctop}."
911 else
912 boehm_gc_basedir="${srcdir}/."
917 # Make sure we can run config.sub.
918 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
919 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
922 echo $ac_n "checking host system type""... $ac_c" 1>&6
923 echo "configure:924: checking host system type" >&5
925 host_alias=$host
926 case "$host_alias" in
927 NONE)
928 case $nonopt in
929 NONE)
930 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
931 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
932 fi ;;
933 *) host_alias=$nonopt ;;
934 esac ;;
935 esac
937 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
938 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
939 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
940 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
941 echo "$ac_t""$host" 1>&6
945 PACKAGE=boehm-gc
947 VERSION=5.1
949 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
950 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
955 missing_dir=`cd $ac_aux_dir && pwd`
956 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
957 echo "configure:958: checking for working aclocal" >&5
958 # Run test in a subshell; some versions of sh will print an error if
959 # an executable is not found, even if stderr is redirected.
960 # Redirect stdin to placate older versions of autoconf. Sigh.
961 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
962 ACLOCAL=aclocal
963 echo "$ac_t""found" 1>&6
964 else
965 ACLOCAL="$missing_dir/missing aclocal"
966 echo "$ac_t""missing" 1>&6
969 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
970 echo "configure:971: checking for working autoconf" >&5
971 # Run test in a subshell; some versions of sh will print an error if
972 # an executable is not found, even if stderr is redirected.
973 # Redirect stdin to placate older versions of autoconf. Sigh.
974 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
975 AUTOCONF=autoconf
976 echo "$ac_t""found" 1>&6
977 else
978 AUTOCONF="$missing_dir/missing autoconf"
979 echo "$ac_t""missing" 1>&6
982 echo $ac_n "checking for working automake""... $ac_c" 1>&6
983 echo "configure:984: checking for working automake" >&5
984 # Run test in a subshell; some versions of sh will print an error if
985 # an executable is not found, even if stderr is redirected.
986 # Redirect stdin to placate older versions of autoconf. Sigh.
987 if (automake --version) < /dev/null > /dev/null 2>&1; then
988 AUTOMAKE=automake
989 echo "$ac_t""found" 1>&6
990 else
991 AUTOMAKE="$missing_dir/missing automake"
992 echo "$ac_t""missing" 1>&6
995 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
996 echo "configure:997: checking for working autoheader" >&5
997 # Run test in a subshell; some versions of sh will print an error if
998 # an executable is not found, even if stderr is redirected.
999 # Redirect stdin to placate older versions of autoconf. Sigh.
1000 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1001 AUTOHEADER=autoheader
1002 echo "$ac_t""found" 1>&6
1003 else
1004 AUTOHEADER="$missing_dir/missing autoheader"
1005 echo "$ac_t""missing" 1>&6
1008 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1009 echo "configure:1010: checking for working makeinfo" >&5
1010 # Run test in a subshell; some versions of sh will print an error if
1011 # an executable is not found, even if stderr is redirected.
1012 # Redirect stdin to placate older versions of autoconf. Sigh.
1013 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1014 MAKEINFO=makeinfo
1015 echo "$ac_t""found" 1>&6
1016 else
1017 MAKEINFO="$missing_dir/missing makeinfo"
1018 echo "$ac_t""missing" 1>&6
1023 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1024 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1025 # are probably using a cross compiler, which will not be able to fully
1026 # link an executable. This should really be fixed in autoconf
1027 # itself.
1032 # Extract the first word of "gcc", so it can be a program name with args.
1033 set dummy gcc; ac_word=$2
1034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1035 echo "configure:1036: checking for $ac_word" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1038 else
1039 if test -n "$CC"; then
1040 ac_cv_prog_CC="$CC" # Let the user override the test.
1041 else
1042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1043 ac_dummy="$PATH"
1044 for ac_dir in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir=.
1046 if test -f $ac_dir/$ac_word; then
1047 ac_cv_prog_CC="gcc"
1048 break
1050 done
1051 IFS="$ac_save_ifs"
1054 CC="$ac_cv_prog_CC"
1055 if test -n "$CC"; then
1056 echo "$ac_t""$CC" 1>&6
1057 else
1058 echo "$ac_t""no" 1>&6
1061 if test -z "$CC"; then
1062 # Extract the first word of "cc", so it can be a program name with args.
1063 set dummy cc; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 echo "configure:1066: checking for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1068 else
1069 if test -n "$CC"; then
1070 ac_cv_prog_CC="$CC" # Let the user override the test.
1071 else
1072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1073 ac_prog_rejected=no
1074 ac_dummy="$PATH"
1075 for ac_dir in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir=.
1077 if test -f $ac_dir/$ac_word; then
1078 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1079 ac_prog_rejected=yes
1080 continue
1082 ac_cv_prog_CC="cc"
1083 break
1085 done
1086 IFS="$ac_save_ifs"
1087 if test $ac_prog_rejected = yes; then
1088 # We found a bogon in the path, so make sure we never use it.
1089 set dummy $ac_cv_prog_CC
1090 shift
1091 if test $# -gt 0; then
1092 # We chose a different compiler from the bogus one.
1093 # However, it has the same basename, so the bogon will be chosen
1094 # first if we set CC to just the basename; use the full file name.
1095 shift
1096 set dummy "$ac_dir/$ac_word" "$@"
1097 shift
1098 ac_cv_prog_CC="$@"
1103 CC="$ac_cv_prog_CC"
1104 if test -n "$CC"; then
1105 echo "$ac_t""$CC" 1>&6
1106 else
1107 echo "$ac_t""no" 1>&6
1110 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1113 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether we are using GNU C" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118 cat > conftest.c <<EOF
1119 #ifdef __GNUC__
1120 yes;
1121 #endif
1123 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1124 ac_cv_prog_gcc=yes
1125 else
1126 ac_cv_prog_gcc=no
1130 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1132 if test $ac_cv_prog_gcc = yes; then
1133 GCC=yes
1134 ac_test_CFLAGS="${CFLAGS+set}"
1135 ac_save_CFLAGS="$CFLAGS"
1136 CFLAGS=
1137 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether ${CC-cc} accepts -g" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1141 else
1142 echo 'void f(){}' > conftest.c
1143 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1144 ac_cv_prog_cc_g=yes
1145 else
1146 ac_cv_prog_cc_g=no
1148 rm -f conftest*
1152 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1153 if test "$ac_test_CFLAGS" = set; then
1154 CFLAGS="$ac_save_CFLAGS"
1155 elif test $ac_cv_prog_cc_g = yes; then
1156 CFLAGS="-g -O2"
1157 else
1158 CFLAGS="-O2"
1160 else
1161 GCC=
1162 test "${CFLAGS+set}" = set || CFLAGS="-g"
1166 # Likewise for AC_PROG_CXX.
1170 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1172 # Extract the first word of "$ac_prog", so it can be a program name with args.
1173 set dummy $ac_prog; ac_word=$2
1174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_word" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1179 if test -n "$CXX"; then
1180 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1181 else
1182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 ac_dummy="$PATH"
1184 for ac_dir in $ac_dummy; do
1185 test -z "$ac_dir" && ac_dir=.
1186 if test -f $ac_dir/$ac_word; then
1187 ac_cv_prog_CXX="$ac_prog"
1188 break
1190 done
1191 IFS="$ac_save_ifs"
1194 CXX="$ac_cv_prog_CXX"
1195 if test -n "$CXX"; then
1196 echo "$ac_t""$CXX" 1>&6
1197 else
1198 echo "$ac_t""no" 1>&6
1201 test -n "$CXX" && break
1202 done
1203 test -n "$CXX" || CXX="gcc"
1205 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1207 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether we are using GNU C++" >&5
1209 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1211 else
1212 cat > conftest.C <<EOF
1213 #ifdef __GNUC__
1214 yes;
1215 #endif
1217 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1218 ac_cv_prog_gxx=yes
1219 else
1220 ac_cv_prog_gxx=no
1224 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1226 if test $ac_cv_prog_gxx = yes; then
1227 GXX=yes
1228 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1229 ac_save_CXXFLAGS="$CXXFLAGS"
1230 CXXFLAGS=
1231 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether ${CXX-g++} accepts -g" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236 echo 'void f(){}' > conftest.cc
1237 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1238 ac_cv_prog_cxx_g=yes
1239 else
1240 ac_cv_prog_cxx_g=no
1242 rm -f conftest*
1246 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1247 if test "$ac_test_CXXFLAGS" = set; then
1248 CXXFLAGS="$ac_save_CXXFLAGS"
1249 elif test $ac_cv_prog_cxx_g = yes; then
1250 CXXFLAGS="-g -O2"
1251 else
1252 CXXFLAGS="-O2"
1254 else
1255 GXX=
1256 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1260 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1261 # run it explicitly here, it will be run implicitly before
1262 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1263 # be run before AC_CANONICAL_HOST.
1264 echo $ac_n "checking build system type""... $ac_c" 1>&6
1265 echo "configure:1266: checking build system type" >&5
1267 build_alias=$build
1268 case "$build_alias" in
1269 NONE)
1270 case $nonopt in
1271 NONE) build_alias=$host_alias ;;
1272 *) build_alias=$nonopt ;;
1273 esac ;;
1274 esac
1276 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1277 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1278 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1279 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1280 echo "$ac_t""$build" 1>&6
1283 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1284 set dummy ${ac_tool_prefix}as; ac_word=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290 if test -n "$AS"; then
1291 ac_cv_prog_AS="$AS" # Let the user override the test.
1292 else
1293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1294 ac_dummy="$PATH"
1295 for ac_dir in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_prog_AS="${ac_tool_prefix}as"
1299 break
1301 done
1302 IFS="$ac_save_ifs"
1303 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1306 AS="$ac_cv_prog_AS"
1307 if test -n "$AS"; then
1308 echo "$ac_t""$AS" 1>&6
1309 else
1310 echo "$ac_t""no" 1>&6
1315 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1316 set dummy ${ac_tool_prefix}ar; ac_word=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 if test -n "$AR"; then
1323 ac_cv_prog_AR="$AR" # Let the user override the test.
1324 else
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1326 ac_dummy="$PATH"
1327 for ac_dir in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_AR="${ac_tool_prefix}ar"
1331 break
1333 done
1334 IFS="$ac_save_ifs"
1335 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1338 AR="$ac_cv_prog_AR"
1339 if test -n "$AR"; then
1340 echo "$ac_t""$AR" 1>&6
1341 else
1342 echo "$ac_t""no" 1>&6
1347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 if test -n "$RANLIB"; then
1355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1356 else
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1358 ac_dummy="$PATH"
1359 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1363 break
1365 done
1366 IFS="$ac_save_ifs"
1369 RANLIB="$ac_cv_prog_RANLIB"
1370 if test -n "$RANLIB"; then
1371 echo "$ac_t""$RANLIB" 1>&6
1372 else
1373 echo "$ac_t""no" 1>&6
1377 if test -z "$ac_cv_prog_RANLIB"; then
1378 if test -n "$ac_tool_prefix"; then
1379 # Extract the first word of "ranlib", so it can be a program name with args.
1380 set dummy ranlib; ac_word=$2
1381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1382 echo "configure:1383: checking for $ac_word" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385 else
1386 if test -n "$RANLIB"; then
1387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1388 else
1389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1390 ac_dummy="$PATH"
1391 for ac_dir in $ac_dummy; do
1392 test -z "$ac_dir" && ac_dir=.
1393 if test -f $ac_dir/$ac_word; then
1394 ac_cv_prog_RANLIB="ranlib"
1395 break
1397 done
1398 IFS="$ac_save_ifs"
1399 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1402 RANLIB="$ac_cv_prog_RANLIB"
1403 if test -n "$RANLIB"; then
1404 echo "$ac_t""$RANLIB" 1>&6
1405 else
1406 echo "$ac_t""no" 1>&6
1409 else
1410 RANLIB=":"
1415 # Find a good install program. We prefer a C program (faster),
1416 # so one script is as good as another. But avoid the broken or
1417 # incompatible versions:
1418 # SysV /etc/install, /usr/sbin/install
1419 # SunOS /usr/etc/install
1420 # IRIX /sbin/install
1421 # AIX /bin/install
1422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1425 # ./install, which can be erroneously created by make from ./install.sh.
1426 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1427 echo "configure:1428: checking for a BSD compatible install" >&5
1428 if test -z "$INSTALL"; then
1429 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1433 for ac_dir in $PATH; do
1434 # Account for people who put trailing slashes in PATH elements.
1435 case "$ac_dir/" in
1436 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1438 # OSF1 and SCO ODT 3.0 have their own names for install.
1439 # Don't use installbsd from OSF since it installs stuff as root
1440 # by default.
1441 for ac_prog in ginstall scoinst install; do
1442 if test -f $ac_dir/$ac_prog; then
1443 if test $ac_prog = install &&
1444 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1445 # AIX install. It has an incompatible calling convention.
1447 else
1448 ac_cv_path_install="$ac_dir/$ac_prog -c"
1449 break 2
1452 done
1454 esac
1455 done
1456 IFS="$ac_save_IFS"
1459 if test "${ac_cv_path_install+set}" = set; then
1460 INSTALL="$ac_cv_path_install"
1461 else
1462 # As a last resort, use the slow shell script. We don't cache a
1463 # path for INSTALL within a source directory, because that will
1464 # break other packages using the cache if that directory is
1465 # removed, or if the path is relative.
1466 INSTALL="$ac_install_sh"
1469 echo "$ac_t""$INSTALL" 1>&6
1471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1472 # It thinks the first close brace ends the variable substitution.
1473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1480 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1481 echo "configure:1482: checking whether to enable maintainer-specific portions of Makefiles" >&5
1482 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1483 if test "${enable_maintainer_mode+set}" = set; then
1484 enableval="$enable_maintainer_mode"
1485 USE_MAINTAINER_MODE=$enableval
1486 else
1487 USE_MAINTAINER_MODE=no
1490 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1493 if test $USE_MAINTAINER_MODE = yes; then
1494 MAINTAINER_MODE_TRUE=
1495 MAINTAINER_MODE_FALSE='#'
1496 else
1497 MAINTAINER_MODE_TRUE='#'
1498 MAINTAINER_MODE_FALSE=
1500 MAINT=$MAINTAINER_MODE_TRUE
1504 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1505 # at least currently, we never actually build a program, so we never
1506 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1507 # fails, because we are probably configuring with a cross compiler
1508 # which can't create executables. So we include AC_EXEEXT to keep
1509 # automake happy, but we don't execute it, since we don't care about
1510 # the result.
1511 if false; then
1514 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1515 echo "configure:1516: checking for executable suffix" >&5
1516 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1518 else
1519 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1520 ac_cv_exeext=.exe
1521 else
1522 rm -f conftest*
1523 echo 'int main () { return 0; }' > conftest.$ac_ext
1524 ac_cv_exeext=
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1526 for file in conftest.*; do
1527 case $file in
1528 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1529 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1530 esac
1531 done
1532 else
1533 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1535 rm -f conftest*
1536 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1540 EXEEXT=""
1541 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1542 echo "$ac_t""${ac_cv_exeext}" 1>&6
1543 ac_exeext=$EXEEXT
1547 . ${boehm_gc_basedir}/configure.host
1549 case ${boehm_gc_basedir} in
1550 /* | A-Za-z:/\\*) boehm_gc_flagbasedir=${boehm_gc_basedir} ;;
1551 *) boehm_gc_flagbasedir='$(top_builddir)/'${boehm_gc_basedir} ;;
1552 esac
1554 boehm_gc_cflags="${boehm_gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${boehm_gc_flagbasedir}/libc/include"
1555 case "${host}" in
1556 *-*-cygwin32*)
1557 boehm_gc_cflags="${boehm_gc_cflags} -I${boehm_gc_flagbasedir}/../winsup/include"
1559 esac
1561 boehm_gc_cflags="${boehm_gc_cflags} -fno-builtin"
1563 BOEHM_GC_CFLAGS=${boehm_gc_cflags}
1567 # Check whether --enable-shared or --disable-shared was given.
1568 if test "${enable_shared+set}" = set; then
1569 enableval="$enable_shared"
1570 p=${PACKAGE-default}
1571 case $enableval in
1572 yes) enable_shared=yes ;;
1573 no) enable_shared=no ;;
1575 enable_shared=no
1576 # Look at the argument we got. We use all the common list separators.
1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1578 for pkg in $enableval; do
1579 if test "X$pkg" = "X$p"; then
1580 enable_shared=yes
1582 done
1583 IFS="$ac_save_ifs"
1585 esac
1586 else
1587 enable_shared=yes
1590 # Check whether --enable-static or --disable-static was given.
1591 if test "${enable_static+set}" = set; then
1592 enableval="$enable_static"
1593 p=${PACKAGE-default}
1594 case $enableval in
1595 yes) enable_static=yes ;;
1596 no) enable_static=no ;;
1598 enable_static=no
1599 # Look at the argument we got. We use all the common list separators.
1600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1601 for pkg in $enableval; do
1602 if test "X$pkg" = "X$p"; then
1603 enable_static=yes
1605 done
1606 IFS="$ac_save_ifs"
1608 esac
1609 else
1610 enable_static=yes
1613 # Check whether --enable-fast-install or --disable-fast-install was given.
1614 if test "${enable_fast_install+set}" = set; then
1615 enableval="$enable_fast_install"
1616 p=${PACKAGE-default}
1617 case $enableval in
1618 yes) enable_fast_install=yes ;;
1619 no) enable_fast_install=no ;;
1621 enable_fast_install=no
1622 # Look at the argument we got. We use all the common list separators.
1623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1624 for pkg in $enableval; do
1625 if test "X$pkg" = "X$p"; then
1626 enable_fast_install=yes
1628 done
1629 IFS="$ac_save_ifs"
1631 esac
1632 else
1633 enable_fast_install=yes
1636 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1637 if test "${with_gnu_ld+set}" = set; then
1638 withval="$with_gnu_ld"
1639 test "$withval" = no || with_gnu_ld=yes
1640 else
1641 with_gnu_ld=no
1644 ac_prog=ld
1645 if test "$GCC" = yes; then
1646 # Check if gcc -print-prog-name=ld gives a path.
1647 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1648 echo "configure:1649: checking for ld used by GCC" >&5
1649 case $host in
1650 *-*-mingw*)
1651 # gcc leaves a trailing carriage return which upsets mingw
1652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1655 esac
1656 case $ac_prog in
1657 # Accept absolute paths.
1658 [\\/]* | [A-Za-z]:[\\/]*)
1659 re_direlt='/[^/][^/]*/\.\./'
1660 # Canonicalize the path of ld
1661 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1662 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1663 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1664 done
1665 test -z "$LD" && LD="$ac_prog"
1668 # If it fails, then pretend we aren't using GCC.
1669 ac_prog=ld
1672 # If it is relative, then search for the first ld in PATH.
1673 with_gnu_ld=unknown
1675 esac
1676 elif test "$with_gnu_ld" = yes; then
1677 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1678 echo "configure:1679: checking for GNU ld" >&5
1679 else
1680 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1681 echo "configure:1682: checking for non-GNU ld" >&5
1683 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1686 if test -z "$LD"; then
1687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1688 for ac_dir in $PATH; do
1689 test -z "$ac_dir" && ac_dir=.
1690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1691 lt_cv_path_LD="$ac_dir/$ac_prog"
1692 # Check to see if the program is GNU ld. I'd rather use --version,
1693 # but apparently some GNU ld's only accept -v.
1694 # Break only if it was the GNU/non-GNU ld that we prefer.
1695 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1696 test "$with_gnu_ld" != no && break
1697 else
1698 test "$with_gnu_ld" != yes && break
1701 done
1702 IFS="$ac_save_ifs"
1703 else
1704 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1708 LD="$lt_cv_path_LD"
1709 if test -n "$LD"; then
1710 echo "$ac_t""$LD" 1>&6
1711 else
1712 echo "$ac_t""no" 1>&6
1714 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1715 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1716 echo "configure:1717: checking if the linker ($LD) is GNU ld" >&5
1717 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719 else
1720 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1721 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1722 lt_cv_prog_gnu_ld=yes
1723 else
1724 lt_cv_prog_gnu_ld=no
1728 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1729 with_gnu_ld=$lt_cv_prog_gnu_ld
1732 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $LD option to reload object files" >&5
1734 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1736 else
1737 lt_cv_ld_reload_flag='-r'
1740 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1741 reload_flag=$lt_cv_ld_reload_flag
1742 test -n "$reload_flag" && reload_flag=" $reload_flag"
1744 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1745 echo "configure:1746: checking for BSD-compatible nm" >&5
1746 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1748 else
1749 if test -n "$NM"; then
1750 # Let the user override the test.
1751 lt_cv_path_NM="$NM"
1752 else
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1754 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1755 test -z "$ac_dir" && ac_dir=.
1756 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1757 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1758 # Check to see if the nm accepts a BSD-compat flag.
1759 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1760 # nm: unknown option "B" ignored
1761 # Tru64's nm complains that /dev/null is an invalid object file
1762 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1763 lt_cv_path_NM="$tmp_nm -B"
1764 break
1765 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1766 lt_cv_path_NM="$tmp_nm -p"
1767 break
1768 else
1769 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1770 continue # so that we can try to find one that supports BSD flags
1773 done
1774 IFS="$ac_save_ifs"
1775 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1779 NM="$lt_cv_path_NM"
1780 echo "$ac_t""$NM" 1>&6
1782 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether ln -s works" >&5
1784 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1786 else
1787 rm -f conftestdata
1788 if ln -s X conftestdata 2>/dev/null
1789 then
1790 rm -f conftestdata
1791 ac_cv_prog_LN_S="ln -s"
1792 else
1793 ac_cv_prog_LN_S=ln
1796 LN_S="$ac_cv_prog_LN_S"
1797 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1798 echo "$ac_t""yes" 1>&6
1799 else
1800 echo "$ac_t""no" 1>&6
1803 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1804 echo "configure:1805: checking how to recognise dependant libraries" >&5
1805 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1807 else
1808 lt_cv_file_magic_cmd='$MAGIC_CMD'
1809 lt_cv_file_magic_test_file=
1810 lt_cv_deplibs_check_method='unknown'
1811 # Need to set the preceding variable on all platforms that support
1812 # interlibrary dependencies.
1813 # 'none' -- dependencies not supported.
1814 # `unknown' -- same as none, but documents that we really don't know.
1815 # 'pass_all' -- all dependencies passed with no checks.
1816 # 'test_compile' -- check by making test program.
1817 # 'file_magic [regex]' -- check by looking for files in library path
1818 # which responds to the $file_magic_cmd with a given egrep regex.
1819 # If you have `file' or equivalent on your system and you're not sure
1820 # whether `pass_all' will *always* work, you probably want this one.
1822 case $host_os in
1823 aix*)
1824 lt_cv_deplibs_check_method=pass_all
1827 beos*)
1828 lt_cv_deplibs_check_method=pass_all
1831 bsdi4*)
1832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1833 lt_cv_file_magic_cmd='/usr/bin/file -L'
1834 lt_cv_file_magic_test_file=/shlib/libc.so
1837 cygwin* | mingw* |pw32*)
1838 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1839 lt_cv_file_magic_cmd='$OBJDUMP -f'
1842 darwin* | rhapsody*)
1843 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1844 lt_cv_file_magic_cmd='/usr/bin/file -L'
1845 case "$host_os" in
1846 rhapsody* | darwin1.012)
1847 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1849 *) # Darwin 1.3 on
1850 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1852 esac
1855 freebsd* )
1856 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1857 case $host_cpu in
1858 i*86 )
1859 # Not sure whether the presence of OpenBSD here was a mistake.
1860 # Let's accept both of them until this is cleared up.
1861 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1862 lt_cv_file_magic_cmd=/usr/bin/file
1863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1865 esac
1866 else
1867 lt_cv_deplibs_check_method=pass_all
1871 gnu*)
1872 lt_cv_deplibs_check_method=pass_all
1875 hpux10.20*|hpux11*)
1876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1877 lt_cv_file_magic_cmd=/usr/bin/file
1878 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1881 irix5* | irix6*)
1882 case $host_os in
1883 irix5*)
1884 # this will be overridden with pass_all, but let us keep it just in case
1885 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1888 case $LD in
1889 *-32|*"-32 ") libmagic=32-bit;;
1890 *-n32|*"-n32 ") libmagic=N32;;
1891 *-64|*"-64 ") libmagic=64-bit;;
1892 *) libmagic=never-match;;
1893 esac
1894 # this will be overridden with pass_all, but let us keep it just in case
1895 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1897 esac
1898 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1899 lt_cv_deplibs_check_method=pass_all
1902 # This must be Linux ELF.
1903 linux-gnu*)
1904 case $host_cpu in
1905 alpha* | i*86 | powerpc* | sparc* | ia64* )
1906 lt_cv_deplibs_check_method=pass_all ;;
1908 # glibc up to 2.1.1 does not perform some relocations on ARM
1909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1910 esac
1911 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1914 netbsd*)
1915 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1916 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1917 else
1918 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1922 newsos6)
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1924 lt_cv_file_magic_cmd=/usr/bin/file
1925 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1928 osf3* | osf4* | osf5*)
1929 # this will be overridden with pass_all, but let us keep it just in case
1930 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1931 lt_cv_file_magic_test_file=/shlib/libc.so
1932 lt_cv_deplibs_check_method=pass_all
1935 sco3.2v5*)
1936 lt_cv_deplibs_check_method=pass_all
1939 solaris*)
1940 lt_cv_deplibs_check_method=pass_all
1941 lt_cv_file_magic_test_file=/lib/libc.so
1944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1945 case $host_vendor in
1946 ncr)
1947 lt_cv_deplibs_check_method=pass_all
1949 motorola)
1950 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]'
1951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1953 esac
1955 esac
1959 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1960 file_magic_cmd=$lt_cv_file_magic_cmd
1961 deplibs_check_method=$lt_cv_deplibs_check_method
1963 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1964 echo "configure:1965: checking for object suffix" >&5
1965 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1967 else
1968 rm -f conftest*
1969 echo 'int i = 1;' > conftest.$ac_ext
1970 if { (eval echo configure:1971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1971 for ac_file in conftest.*; do
1972 case $ac_file in
1973 *.c) ;;
1974 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1975 esac
1976 done
1977 else
1978 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1980 rm -f conftest*
1983 echo "$ac_t""$ac_cv_objext" 1>&6
1984 OBJEXT=$ac_cv_objext
1985 ac_objext=$ac_cv_objext
1987 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1989 # Only perform the check for file, if the check method requires it
1990 case $deplibs_check_method in
1991 file_magic*)
1992 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1993 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1994 echo "configure:1995: checking for ${ac_tool_prefix}file" >&5
1995 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1997 else
1998 case $MAGIC_CMD in
2000 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2002 ?:/*)
2003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2006 ac_save_MAGIC_CMD="$MAGIC_CMD"
2007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2008 ac_dummy="/usr/bin:$PATH"
2009 for ac_dir in $ac_dummy; do
2010 test -z "$ac_dir" && ac_dir=.
2011 if test -f $ac_dir/${ac_tool_prefix}file; then
2012 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2013 if test -n "$file_magic_test_file"; then
2014 case $deplibs_check_method in
2015 "file_magic "*)
2016 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2019 egrep "$file_magic_regex" > /dev/null; then
2021 else
2022 cat <<EOF 1>&2
2024 *** Warning: the command libtool uses to detect shared libraries,
2025 *** $file_magic_cmd, produces output that libtool cannot recognize.
2026 *** The result is that libtool may fail to recognize shared libraries
2027 *** as such. This will affect the creation of libtool libraries that
2028 *** depend on shared libraries, but programs linked with such libtool
2029 *** libraries will work regardless of this problem. Nevertheless, you
2030 *** may want to report the problem to your system manager and/or to
2031 *** bug-libtool@gnu.org
2034 fi ;;
2035 esac
2037 break
2039 done
2040 IFS="$ac_save_ifs"
2041 MAGIC_CMD="$ac_save_MAGIC_CMD"
2043 esac
2046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2047 if test -n "$MAGIC_CMD"; then
2048 echo "$ac_t""$MAGIC_CMD" 1>&6
2049 else
2050 echo "$ac_t""no" 1>&6
2053 if test -z "$lt_cv_path_MAGIC_CMD"; then
2054 if test -n "$ac_tool_prefix"; then
2055 echo $ac_n "checking for file""... $ac_c" 1>&6
2056 echo "configure:2057: checking for file" >&5
2057 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060 case $MAGIC_CMD in
2062 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2064 ?:/*)
2065 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2068 ac_save_MAGIC_CMD="$MAGIC_CMD"
2069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2070 ac_dummy="/usr/bin:$PATH"
2071 for ac_dir in $ac_dummy; do
2072 test -z "$ac_dir" && ac_dir=.
2073 if test -f $ac_dir/file; then
2074 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2075 if test -n "$file_magic_test_file"; then
2076 case $deplibs_check_method in
2077 "file_magic "*)
2078 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2081 egrep "$file_magic_regex" > /dev/null; then
2083 else
2084 cat <<EOF 1>&2
2086 *** Warning: the command libtool uses to detect shared libraries,
2087 *** $file_magic_cmd, produces output that libtool cannot recognize.
2088 *** The result is that libtool may fail to recognize shared libraries
2089 *** as such. This will affect the creation of libtool libraries that
2090 *** depend on shared libraries, but programs linked with such libtool
2091 *** libraries will work regardless of this problem. Nevertheless, you
2092 *** may want to report the problem to your system manager and/or to
2093 *** bug-libtool@gnu.org
2096 fi ;;
2097 esac
2099 break
2101 done
2102 IFS="$ac_save_ifs"
2103 MAGIC_CMD="$ac_save_MAGIC_CMD"
2105 esac
2108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2109 if test -n "$MAGIC_CMD"; then
2110 echo "$ac_t""$MAGIC_CMD" 1>&6
2111 else
2112 echo "$ac_t""no" 1>&6
2115 else
2116 MAGIC_CMD=:
2122 esac
2124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2127 echo "configure:2128: checking for $ac_word" >&5
2128 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131 if test -n "$RANLIB"; then
2132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2133 else
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2135 ac_dummy="$PATH"
2136 for ac_dir in $ac_dummy; do
2137 test -z "$ac_dir" && ac_dir=.
2138 if test -f $ac_dir/$ac_word; then
2139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2140 break
2142 done
2143 IFS="$ac_save_ifs"
2146 RANLIB="$ac_cv_prog_RANLIB"
2147 if test -n "$RANLIB"; then
2148 echo "$ac_t""$RANLIB" 1>&6
2149 else
2150 echo "$ac_t""no" 1>&6
2154 if test -z "$ac_cv_prog_RANLIB"; then
2155 if test -n "$ac_tool_prefix"; then
2156 # Extract the first word of "ranlib", so it can be a program name with args.
2157 set dummy ranlib; ac_word=$2
2158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_word" >&5
2160 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163 if test -n "$RANLIB"; then
2164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2165 else
2166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2167 ac_dummy="$PATH"
2168 for ac_dir in $ac_dummy; do
2169 test -z "$ac_dir" && ac_dir=.
2170 if test -f $ac_dir/$ac_word; then
2171 ac_cv_prog_RANLIB="ranlib"
2172 break
2174 done
2175 IFS="$ac_save_ifs"
2176 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2179 RANLIB="$ac_cv_prog_RANLIB"
2180 if test -n "$RANLIB"; then
2181 echo "$ac_t""$RANLIB" 1>&6
2182 else
2183 echo "$ac_t""no" 1>&6
2186 else
2187 RANLIB=":"
2191 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2192 set dummy ${ac_tool_prefix}strip; ac_word=$2
2193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2194 echo "configure:2195: checking for $ac_word" >&5
2195 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2197 else
2198 if test -n "$STRIP"; then
2199 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2200 else
2201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2202 ac_dummy="$PATH"
2203 for ac_dir in $ac_dummy; do
2204 test -z "$ac_dir" && ac_dir=.
2205 if test -f $ac_dir/$ac_word; then
2206 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2207 break
2209 done
2210 IFS="$ac_save_ifs"
2213 STRIP="$ac_cv_prog_STRIP"
2214 if test -n "$STRIP"; then
2215 echo "$ac_t""$STRIP" 1>&6
2216 else
2217 echo "$ac_t""no" 1>&6
2221 if test -z "$ac_cv_prog_STRIP"; then
2222 if test -n "$ac_tool_prefix"; then
2223 # Extract the first word of "strip", so it can be a program name with args.
2224 set dummy strip; ac_word=$2
2225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_word" >&5
2227 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2229 else
2230 if test -n "$STRIP"; then
2231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2232 else
2233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2234 ac_dummy="$PATH"
2235 for ac_dir in $ac_dummy; do
2236 test -z "$ac_dir" && ac_dir=.
2237 if test -f $ac_dir/$ac_word; then
2238 ac_cv_prog_STRIP="strip"
2239 break
2241 done
2242 IFS="$ac_save_ifs"
2243 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2246 STRIP="$ac_cv_prog_STRIP"
2247 if test -n "$STRIP"; then
2248 echo "$ac_t""$STRIP" 1>&6
2249 else
2250 echo "$ac_t""no" 1>&6
2253 else
2254 STRIP=":"
2259 # Check for any special flags to pass to ltconfig.
2260 libtool_flags="--cache-file=$cache_file"
2261 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2262 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2263 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2264 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2265 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2268 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2269 if test "${enable_libtool_lock+set}" = set; then
2270 enableval="$enable_libtool_lock"
2274 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2275 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2277 # Check whether --with-pic or --without-pic was given.
2278 if test "${with_pic+set}" = set; then
2279 withval="$with_pic"
2280 pic_mode="$withval"
2281 else
2282 pic_mode=default
2285 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2286 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2288 # Some flags need to be propagated to the compiler or linker for good
2289 # libtool support.
2290 case $host in
2291 *-*-irix6*)
2292 # Find out which ABI we are using.
2293 echo '#line 2294 "configure"' > conftest.$ac_ext
2294 if { (eval echo configure:2295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2295 case `/usr/bin/file conftest.$ac_objext` in
2296 *32-bit*)
2297 LD="${LD-ld} -32"
2299 *N32*)
2300 LD="${LD-ld} -n32"
2302 *64-bit*)
2303 LD="${LD-ld} -64"
2305 esac
2307 rm -rf conftest*
2310 *-*-sco3.2v5*)
2311 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2312 SAVE_CFLAGS="$CFLAGS"
2313 CFLAGS="$CFLAGS -belf"
2314 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2315 echo "configure:2316: checking whether the C compiler needs -belf" >&5
2316 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2320 ac_ext=c
2321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2325 cross_compiling=$ac_cv_prog_cc_cross
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2331 int main() {
2333 ; return 0; }
2335 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2336 rm -rf conftest*
2337 lt_cv_cc_needs_belf=yes
2338 else
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 rm -rf conftest*
2342 lt_cv_cc_needs_belf=no
2344 rm -f conftest*
2345 ac_ext=c
2346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2350 cross_compiling=$ac_cv_prog_cc_cross
2354 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2355 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2356 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2357 CFLAGS="$SAVE_CFLAGS"
2362 esac
2364 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2365 echo "configure:2366: checking how to run the C++ preprocessor" >&5
2366 if test -z "$CXXCPP"; then
2367 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2369 else
2370 ac_ext=C
2371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2372 ac_cpp='$CXXCPP $CPPFLAGS'
2373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2375 cross_compiling=$ac_cv_prog_cxx_cross
2376 CXXCPP="${CXX-g++} -E"
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 #include <stdlib.h>
2382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2383 { (eval echo configure:2384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2385 if test -z "$ac_err"; then
2387 else
2388 echo "$ac_err" >&5
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 rm -rf conftest*
2392 CXXCPP=/lib/cpp
2394 rm -f conftest*
2395 ac_cv_prog_CXXCPP="$CXXCPP"
2396 ac_ext=c
2397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2401 cross_compiling=$ac_cv_prog_cc_cross
2404 CXXCPP="$ac_cv_prog_CXXCPP"
2405 echo "$ac_t""$CXXCPP" 1>&6
2408 # Save cache, so that ltconfig can load it
2409 cat > confcache <<\EOF
2410 # This file is a shell script that caches the results of configure
2411 # tests run on this system so they can be shared between configure
2412 # scripts and configure runs. It is not useful on other systems.
2413 # If it contains results you don't want to keep, you may remove or edit it.
2415 # By default, configure uses ./config.cache as the cache file,
2416 # creating it if it does not exist already. You can give configure
2417 # the --cache-file=FILE option to use a different cache file; that is
2418 # what configure does when it calls configure scripts in
2419 # subdirectories, so they share the cache.
2420 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2421 # config.status only pays attention to the cache file if you give it the
2422 # --recheck option to rerun configure.
2425 # The following way of writing the cache mishandles newlines in values,
2426 # but we know of no workaround that is simple, portable, and efficient.
2427 # So, don't put newlines in cache variables' values.
2428 # Ultrix sh set writes to stderr and can't be redirected directly,
2429 # and sets the high bit in the cache file unless we assign to the vars.
2430 (set) 2>&1 |
2431 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2432 *ac_space=\ *)
2433 # `set' does not quote correctly, so add quotes (double-quote substitution
2434 # turns \\\\ into \\, and sed turns \\ into \).
2435 sed -n \
2436 -e "s/'/'\\\\''/g" \
2437 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2440 # `set' quotes correctly as required by POSIX, so do not add quotes.
2441 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2443 esac >> confcache
2444 if cmp -s $cache_file confcache; then
2446 else
2447 if test -w $cache_file; then
2448 echo "updating cache $cache_file"
2449 cat confcache > $cache_file
2450 else
2451 echo "not updating unwritable cache $cache_file"
2454 rm -f confcache
2457 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2458 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2459 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2460 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2461 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2462 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2463 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2464 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2465 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2466 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2468 # Reload cache, that may have been modified by ltconfig
2469 if test -r "$cache_file"; then
2470 echo "loading cache $cache_file"
2471 . $cache_file
2472 else
2473 echo "creating cache $cache_file"
2474 > $cache_file
2478 # This can be used to rebuild libtool when needed
2479 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2481 # Always use our own libtool.
2482 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2484 # Redirect the config.log output again, so that the ltconfig log is not
2485 # clobbered by the next message.
2486 exec 5>>./config.log
2490 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2491 lt_save_CC="$CC"
2492 lt_save_CFLAGS="$CFLAGS"
2493 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2494 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2495 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2496 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2497 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2498 deplibs_check_method="$deplibs_check_method" \
2499 file_magic_cmd="$file_magic_cmd" \
2500 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2501 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2502 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2503 CC="$lt_save_CC"
2504 CFLAGS="$lt_save_CFLAGS"
2506 # Redirect the config.log output again, so that the ltconfig log is not
2507 # clobbered by the next message.
2508 exec 5>>./config.log
2516 # Check whether --with-target-subdir or --without-target-subdir was given.
2517 if test "${with_target_subdir+set}" = set; then
2518 withval="$with_target_subdir"
2522 # Check whether --with-cross-host or --without-cross-host was given.
2523 if test "${with_cross_host+set}" = set; then
2524 withval="$with_cross_host"
2529 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2530 echo "configure:2531: checking whether to enable maintainer-specific portions of Makefiles" >&5
2531 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2532 if test "${enable_maintainer_mode+set}" = set; then
2533 enableval="$enable_maintainer_mode"
2534 USE_MAINTAINER_MODE=$enableval
2535 else
2536 USE_MAINTAINER_MODE=no
2539 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2542 if test $USE_MAINTAINER_MODE = yes; then
2543 MAINTAINER_MODE_TRUE=
2544 MAINTAINER_MODE_FALSE='#'
2545 else
2546 MAINTAINER_MODE_TRUE='#'
2547 MAINTAINER_MODE_FALSE=
2549 MAINT=$MAINTAINER_MODE_TRUE
2552 # automake wants to see AC_EXEEXT. But we don't need it. And having
2553 # it is actually a problem, because the compiler we're passed can't
2554 # necessarily do a full link. So we fool automake here.
2555 if test "x" = "y"; then
2558 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2559 echo "configure:2560: checking for executable suffix" >&5
2560 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2564 ac_cv_exeext=.exe
2565 else
2566 rm -f conftest*
2567 echo 'int main () { return 0; }' > conftest.$ac_ext
2568 ac_cv_exeext=
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2570 for file in conftest.*; do
2571 case $file in
2572 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2573 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2574 esac
2575 done
2576 else
2577 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2579 rm -f conftest*
2580 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2584 EXEEXT=""
2585 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2586 echo "$ac_t""${ac_cv_exeext}" 1>&6
2587 ac_exeext=$EXEEXT
2591 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2592 echo "configure:2593: checking for thread model used by GCC" >&5
2593 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2594 echo "$ac_t""$THREADS" 1>&6
2596 INCLUDES=
2597 THREADLIBS=
2598 case "$THREADS" in
2599 no | none | single)
2600 THREADS=none
2602 posix | pthreads)
2603 THREADS=posix
2604 case "$host" in
2605 *-*-linux*)
2606 cat >> confdefs.h <<\EOF
2607 #define LINUX_THREADS 1
2610 cat >> confdefs.h <<\EOF
2611 #define _REENTRANT 1
2615 *-*-solaris*)
2616 cat >> confdefs.h <<\EOF
2617 #define SOLARIS_THREADS 1
2620 cat >> confdefs.h <<\EOF
2621 #define _SOLARIS_PTHREADS 1
2625 *-*-irix*)
2626 cat >> confdefs.h <<\EOF
2627 #define IRIX_THREADS 1
2631 esac
2632 THREADLIBS=-lpthread
2634 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2635 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2638 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2640 esac
2643 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2644 echo "configure:2645: checking for dlopen in -ldl" >&5
2645 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649 ac_save_LIBS="$LIBS"
2650 LIBS="-ldl $LIBS"
2651 cat > conftest.$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2654 /* Override any gcc2 internal prototype to avoid an error. */
2655 /* We use char because int might match the return type of a gcc2
2656 builtin and then its argument prototype would still apply. */
2657 char dlopen();
2659 int main() {
2660 dlopen()
2661 ; return 0; }
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2664 rm -rf conftest*
2665 eval "ac_cv_lib_$ac_lib_var=yes"
2666 else
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 rm -rf conftest*
2670 eval "ac_cv_lib_$ac_lib_var=no"
2672 rm -f conftest*
2673 LIBS="$ac_save_LIBS"
2676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2679 else
2680 echo "$ac_t""no" 1>&6
2685 # Check whether --enable-java-gc or --disable-java-gc was given.
2686 if test "${enable_java_gc+set}" = set; then
2687 enableval="$enable_java_gc"
2689 GC=$enableval
2690 else
2691 GC=boehm
2694 target_all=
2695 if test "$GC" = "boehm"; then
2696 target_all=libgcjgc.la
2700 TARGET_ECOS="no"
2701 # Check whether --with-ecos or --without-ecos was given.
2702 if test "${with_ecos+set}" = set; then
2703 withval="$with_ecos"
2704 TARGET_ECOS="$with_ecos"
2709 addobjs=
2710 CXXINCLUDES=
2711 case "$TARGET_ECOS" in
2715 cat >> confdefs.h <<\EOF
2716 #define ECOS 1
2719 CXXINCLUDES="-I${TARGET_ECOS}/include"
2720 addobjs="$addobjs ecos.lo"
2722 esac
2728 machdep=
2729 case "$host" in
2730 # alpha_mach_dep.s assumes that pointers are not saved in fp registers.
2731 # Gcc on a 21264 can spill pointers to fp registers. Oops.
2732 # alpha*-*-*)
2733 # machdep="alpha_mach_dep.lo"
2734 # ;;
2735 mipstx39-*-elf*)
2736 machdep="mips_ultrix_mach_dep.lo"
2737 cat >> confdefs.h <<\EOF
2738 #define STACKBASE __stackbase
2741 cat >> confdefs.h <<\EOF
2742 #define DATASTART_IS_ETEXT 1
2746 mips-dec-ultrix*)
2747 machdep="mips_ultrix_mach-dep.lo"
2749 mips-*-*)
2750 machdep="mips_sgi_mach_dep.lo"
2751 cat >> confdefs.h <<\EOF
2752 #define NO_EXECUTE_PERMISSION 1
2756 sparc-sun-solaris2.3*)
2757 cat >> confdefs.h <<\EOF
2758 #define SUNOS53_SHARED_LIB 1
2762 esac
2763 if test x"$machdep" = x; then
2764 machdep="mach_dep.lo"
2766 addobjs="$addobjs $machdep"
2769 case "$host" in
2770 sparc-sun-solaris2*)
2771 if test "$GCC" = yes; then
2772 new_CFLAGS=
2773 for i in $CFLAGS; do
2774 case "$i" in
2775 -O*)
2778 new_CFLAGS="$new_CFLAGS $i"
2780 esac
2781 done
2782 CFLAGS="$new_CFLAGS"
2785 esac
2787 MY_CFLAGS="$CFLAGS"
2790 cat >> confdefs.h <<\EOF
2791 #define SILENT 1
2794 cat >> confdefs.h <<\EOF
2795 #define NO_SIGNALS 1
2798 cat >> confdefs.h <<\EOF
2799 #define JAVA_FINALIZATION 1
2802 cat >> confdefs.h <<\EOF
2803 #define GC_GCJ_SUPPORT 1
2807 if test -n "${with_cross_host}"; then
2808 cat >> confdefs.h <<\EOF
2809 #define NO_SIGSET 1
2812 cat >> confdefs.h <<\EOF
2813 #define NO_CLOCK 1
2816 cat >> confdefs.h <<\EOF
2817 #define SMALL_CONFIG 1
2820 cat >> confdefs.h <<\EOF
2821 #define NO_DEBUGGING 1
2828 if test -z "$with_cross_host"; then
2829 USE_LIBDIR_TRUE=
2830 USE_LIBDIR_FALSE='#'
2831 else
2832 USE_LIBDIR_TRUE='#'
2833 USE_LIBDIR_FALSE=
2836 if test "${multilib}" = "yes"; then
2837 multilib_arg="--enable-multilib"
2838 else
2839 multilib_arg=
2842 trap '' 1 2 15
2843 cat > confcache <<\EOF
2844 # This file is a shell script that caches the results of configure
2845 # tests run on this system so they can be shared between configure
2846 # scripts and configure runs. It is not useful on other systems.
2847 # If it contains results you don't want to keep, you may remove or edit it.
2849 # By default, configure uses ./config.cache as the cache file,
2850 # creating it if it does not exist already. You can give configure
2851 # the --cache-file=FILE option to use a different cache file; that is
2852 # what configure does when it calls configure scripts in
2853 # subdirectories, so they share the cache.
2854 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2855 # config.status only pays attention to the cache file if you give it the
2856 # --recheck option to rerun configure.
2859 # The following way of writing the cache mishandles newlines in values,
2860 # but we know of no workaround that is simple, portable, and efficient.
2861 # So, don't put newlines in cache variables' values.
2862 # Ultrix sh set writes to stderr and can't be redirected directly,
2863 # and sets the high bit in the cache file unless we assign to the vars.
2864 (set) 2>&1 |
2865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2866 *ac_space=\ *)
2867 # `set' does not quote correctly, so add quotes (double-quote substitution
2868 # turns \\\\ into \\, and sed turns \\ into \).
2869 sed -n \
2870 -e "s/'/'\\\\''/g" \
2871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2874 # `set' quotes correctly as required by POSIX, so do not add quotes.
2875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2877 esac >> confcache
2878 if cmp -s $cache_file confcache; then
2880 else
2881 if test -w $cache_file; then
2882 echo "updating cache $cache_file"
2883 cat confcache > $cache_file
2884 else
2885 echo "not updating unwritable cache $cache_file"
2888 rm -f confcache
2890 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2893 # Let make expand exec_prefix.
2894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2896 # Any assignment to VPATH causes Sun make to only execute
2897 # the first set of double-colon rules, so remove it if not needed.
2898 # If there is a colon in the path, we need to keep it.
2899 if test "x$srcdir" = x.; then
2900 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2903 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2905 # Transform confdefs.h into DEFS.
2906 # Protect against shell expansion while executing Makefile rules.
2907 # Protect against Makefile macro expansion.
2908 cat > conftest.defs <<\EOF
2909 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2910 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2911 s%\[%\\&%g
2912 s%\]%\\&%g
2913 s%\$%$$%g
2915 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2916 rm -f conftest.defs
2919 # Without the "./", some shells look in PATH for config.status.
2920 : ${CONFIG_STATUS=./config.status}
2922 echo creating $CONFIG_STATUS
2923 rm -f $CONFIG_STATUS
2924 cat > $CONFIG_STATUS <<EOF
2925 #! /bin/sh
2926 # Generated automatically by configure.
2927 # Run this file to recreate the current configuration.
2928 # This directory was configured as follows,
2929 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2931 # $0 $ac_configure_args
2933 # Compiler output produced by configure, useful for debugging
2934 # configure, is in ./config.log if it exists.
2936 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2937 for ac_option
2939 case "\$ac_option" in
2940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2941 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2942 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2943 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2944 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2945 exit 0 ;;
2946 -help | --help | --hel | --he | --h)
2947 echo "\$ac_cs_usage"; exit 0 ;;
2948 *) echo "\$ac_cs_usage"; exit 1 ;;
2949 esac
2950 done
2952 ac_given_srcdir=$srcdir
2953 ac_given_INSTALL="$INSTALL"
2955 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2957 cat >> $CONFIG_STATUS <<EOF
2959 # Protect against being on the right side of a sed subst in config.status.
2960 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2961 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2962 $ac_vpsub
2963 $extrasub
2964 s%@SHELL@%$SHELL%g
2965 s%@CFLAGS@%$CFLAGS%g
2966 s%@CPPFLAGS@%$CPPFLAGS%g
2967 s%@CXXFLAGS@%$CXXFLAGS%g
2968 s%@FFLAGS@%$FFLAGS%g
2969 s%@DEFS@%$DEFS%g
2970 s%@LDFLAGS@%$LDFLAGS%g
2971 s%@LIBS@%$LIBS%g
2972 s%@exec_prefix@%$exec_prefix%g
2973 s%@prefix@%$prefix%g
2974 s%@program_transform_name@%$program_transform_name%g
2975 s%@bindir@%$bindir%g
2976 s%@sbindir@%$sbindir%g
2977 s%@libexecdir@%$libexecdir%g
2978 s%@datadir@%$datadir%g
2979 s%@sysconfdir@%$sysconfdir%g
2980 s%@sharedstatedir@%$sharedstatedir%g
2981 s%@localstatedir@%$localstatedir%g
2982 s%@libdir@%$libdir%g
2983 s%@includedir@%$includedir%g
2984 s%@oldincludedir@%$oldincludedir%g
2985 s%@infodir@%$infodir%g
2986 s%@mandir@%$mandir%g
2987 s%@host@%$host%g
2988 s%@host_alias@%$host_alias%g
2989 s%@host_cpu@%$host_cpu%g
2990 s%@host_vendor@%$host_vendor%g
2991 s%@host_os@%$host_os%g
2992 s%@target@%$target%g
2993 s%@target_alias@%$target_alias%g
2994 s%@target_cpu@%$target_cpu%g
2995 s%@target_vendor@%$target_vendor%g
2996 s%@target_os@%$target_os%g
2997 s%@build@%$build%g
2998 s%@build_alias@%$build_alias%g
2999 s%@build_cpu@%$build_cpu%g
3000 s%@build_vendor@%$build_vendor%g
3001 s%@build_os@%$build_os%g
3002 s%@boehm_gc_basedir@%$boehm_gc_basedir%g
3003 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3004 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3005 s%@INSTALL_DATA@%$INSTALL_DATA%g
3006 s%@PACKAGE@%$PACKAGE%g
3007 s%@VERSION@%$VERSION%g
3008 s%@ACLOCAL@%$ACLOCAL%g
3009 s%@AUTOCONF@%$AUTOCONF%g
3010 s%@AUTOMAKE@%$AUTOMAKE%g
3011 s%@AUTOHEADER@%$AUTOHEADER%g
3012 s%@MAKEINFO@%$MAKEINFO%g
3013 s%@SET_MAKE@%$SET_MAKE%g
3014 s%@CC@%$CC%g
3015 s%@CXX@%$CXX%g
3016 s%@AS@%$AS%g
3017 s%@AR@%$AR%g
3018 s%@RANLIB@%$RANLIB%g
3019 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3020 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3021 s%@MAINT@%$MAINT%g
3022 s%@EXEEXT@%$EXEEXT%g
3023 s%@BOEHM_GC_CFLAGS@%$BOEHM_GC_CFLAGS%g
3024 s%@LN_S@%$LN_S%g
3025 s%@OBJEXT@%$OBJEXT%g
3026 s%@STRIP@%$STRIP%g
3027 s%@LIBTOOL@%$LIBTOOL%g
3028 s%@CXXCPP@%$CXXCPP%g
3029 s%@THREADLIBS@%$THREADLIBS%g
3030 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3031 s%@target_all@%$target_all%g
3032 s%@INCLUDES@%$INCLUDES%g
3033 s%@CXXINCLUDES@%$CXXINCLUDES%g
3034 s%@addobjs@%$addobjs%g
3035 s%@MY_CFLAGS@%$MY_CFLAGS%g
3036 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3037 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3039 CEOF
3042 cat >> $CONFIG_STATUS <<\EOF
3044 # Split the substitutions into bite-sized pieces for seds with
3045 # small command number limits, like on Digital OSF/1 and HP-UX.
3046 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3047 ac_file=1 # Number of current file.
3048 ac_beg=1 # First line for current file.
3049 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3050 ac_more_lines=:
3051 ac_sed_cmds=""
3052 while $ac_more_lines; do
3053 if test $ac_beg -gt 1; then
3054 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3055 else
3056 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3058 if test ! -s conftest.s$ac_file; then
3059 ac_more_lines=false
3060 rm -f conftest.s$ac_file
3061 else
3062 if test -z "$ac_sed_cmds"; then
3063 ac_sed_cmds="sed -f conftest.s$ac_file"
3064 else
3065 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3067 ac_file=`expr $ac_file + 1`
3068 ac_beg=$ac_end
3069 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3071 done
3072 if test -z "$ac_sed_cmds"; then
3073 ac_sed_cmds=cat
3077 cat >> $CONFIG_STATUS <<EOF
3079 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3081 cat >> $CONFIG_STATUS <<\EOF
3082 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3083 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3084 case "$ac_file" in
3085 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3086 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3087 *) ac_file_in="${ac_file}.in" ;;
3088 esac
3090 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3092 # Remove last slash and all that follows it. Not all systems have dirname.
3093 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3094 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3095 # The file is in a subdirectory.
3096 test ! -d "$ac_dir" && mkdir "$ac_dir"
3097 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3098 # A "../" for each directory in $ac_dir_suffix.
3099 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3100 else
3101 ac_dir_suffix= ac_dots=
3104 case "$ac_given_srcdir" in
3105 .) srcdir=.
3106 if test -z "$ac_dots"; then top_srcdir=.
3107 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3108 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3109 *) # Relative path.
3110 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3111 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3112 esac
3114 case "$ac_given_INSTALL" in
3115 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3116 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3117 esac
3119 echo creating "$ac_file"
3120 rm -f "$ac_file"
3121 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3122 case "$ac_file" in
3123 *Makefile*) ac_comsub="1i\\
3124 # $configure_input" ;;
3125 *) ac_comsub= ;;
3126 esac
3128 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3129 sed -e "$ac_comsub
3130 s%@configure_input@%$configure_input%g
3131 s%@srcdir@%$srcdir%g
3132 s%@top_srcdir@%$top_srcdir%g
3133 s%@INSTALL@%$INSTALL%g
3134 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3135 fi; done
3136 rm -f conftest.s*
3139 cat >> $CONFIG_STATUS <<EOF
3140 srcdir=${srcdir}
3141 host=${host}
3142 target=${target}
3143 with_multisubdir=${with_multisubdir}
3144 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3145 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3146 boehm_gc_basedir=${boehm_gc_basedir}
3147 CC="${CC}"
3148 DEFS="$DEFS"
3151 cat >> $CONFIG_STATUS <<\EOF
3153 echo "$DEFS" > boehm-cflags
3155 if test -n "$CONFIG_FILES"; then
3156 ac_file=Makefile . ${boehm_gc_basedir}/../config-ml.in
3158 exit 0
3160 chmod +x $CONFIG_STATUS
3161 rm -fr confdefs* $ac_clean_files
3162 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1