OSDN Git Service

* configure.in: Add support for --enable-threads=posix on FreeBSD.
[pf3gnuchains/gcc-fork.git] / boehm-gc / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
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"
43
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 srcdir=
61 target=NONE
62 verbose=
63 x_includes=NONE
64 x_libraries=NONE
65 bindir='${exec_prefix}/bin'
66 sbindir='${exec_prefix}/sbin'
67 libexecdir='${exec_prefix}/libexec'
68 datadir='${prefix}/share'
69 sysconfdir='${prefix}/etc'
70 sharedstatedir='${prefix}/com'
71 localstatedir='${prefix}/var'
72 libdir='${exec_prefix}/lib'
73 includedir='${prefix}/include'
74 oldincludedir='/usr/include'
75 infodir='${prefix}/info'
76 mandir='${prefix}/man'
77
78 # Initialize some other variables.
79 subdirs=
80 MFLAGS= MAKEFLAGS=
81 SHELL=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
83 ac_max_here_lines=12
84
85 ac_prev=
86 for ac_option
87 do
88
89   # If the previous option needs an argument, assign it.
90   if test -n "$ac_prev"; then
91     eval "$ac_prev=\$ac_option"
92     ac_prev=
93     continue
94   fi
95
96   case "$ac_option" in
97   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98   *) ac_optarg= ;;
99   esac
100
101   # Accept the important Cygnus configure options, so we can diagnose typos.
102
103   case "$ac_option" in
104
105   -bindir | --bindir | --bindi | --bind | --bin | --bi)
106     ac_prev=bindir ;;
107   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108     bindir="$ac_optarg" ;;
109
110   -build | --build | --buil | --bui | --bu)
111     ac_prev=build ;;
112   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113     build="$ac_optarg" ;;
114
115   -cache-file | --cache-file | --cache-fil | --cache-fi \
116   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117     ac_prev=cache_file ;;
118   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120     cache_file="$ac_optarg" ;;
121
122   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123     ac_prev=datadir ;;
124   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125   | --da=*)
126     datadir="$ac_optarg" ;;
127
128   -disable-* | --disable-*)
129     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130     # Reject names that are not valid shell variable names.
131     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133     fi
134     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135     eval "enable_${ac_feature}=no" ;;
136
137   -enable-* | --enable-*)
138     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139     # Reject names that are not valid shell variable names.
140     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142     fi
143     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144     case "$ac_option" in
145       *=*) ;;
146       *) ac_optarg=yes ;;
147     esac
148     eval "enable_${ac_feature}='$ac_optarg'" ;;
149
150   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152   | --exec | --exe | --ex)
153     ac_prev=exec_prefix ;;
154   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156   | --exec=* | --exe=* | --ex=*)
157     exec_prefix="$ac_optarg" ;;
158
159   -gas | --gas | --ga | --g)
160     # Obsolete; use --with-gas.
161     with_gas=yes ;;
162
163   -help | --help | --hel | --he)
164     # Omit some internal or obsolete options to make the list less imposing.
165     # This message is too long to be a string in the A/UX 3.1 sh.
166     cat << EOF
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
169 Configuration:
170   --cache-file=FILE       cache test results in FILE
171   --help                  print this message
172   --no-create             do not create output files
173   --quiet, --silent       do not print \`checking...' messages
174   --version               print the version of autoconf that created configure
175 Directory and file names:
176   --prefix=PREFIX         install architecture-independent files in PREFIX
177                           [$ac_default_prefix]
178   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
179                           [same as prefix]
180   --bindir=DIR            user executables in DIR [EPREFIX/bin]
181   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
182   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
183   --datadir=DIR           read-only architecture-independent data in DIR
184                           [PREFIX/share]
185   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
186   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
187                           [PREFIX/com]
188   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
189   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
190   --includedir=DIR        C header files in DIR [PREFIX/include]
191   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
192   --infodir=DIR           info documentation in DIR [PREFIX/info]
193   --mandir=DIR            man documentation in DIR [PREFIX/man]
194   --srcdir=DIR            find the sources in DIR [configure dir or ..]
195   --program-prefix=PREFIX prepend PREFIX to installed program names
196   --program-suffix=SUFFIX append SUFFIX to installed program names
197   --program-transform-name=PROGRAM
198                           run sed PROGRAM on installed program names
199 EOF
200     cat << EOF
201 Host type:
202   --build=BUILD           configure for building on BUILD [BUILD=HOST]
203   --host=HOST             configure for HOST [guessed]
204   --target=TARGET         configure for TARGET [TARGET=HOST]
205 Features and packages:
206   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
207   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
208   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
209   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
210   --x-includes=DIR        X include files are in DIR
211   --x-libraries=DIR       X library files are in DIR
212 EOF
213     if test -n "$ac_help"; then
214       echo "--enable and --with options recognized:$ac_help"
215     fi
216     exit 0 ;;
217
218   -host | --host | --hos | --ho)
219     ac_prev=host ;;
220   -host=* | --host=* | --hos=* | --ho=*)
221     host="$ac_optarg" ;;
222
223   -includedir | --includedir | --includedi | --included | --include \
224   | --includ | --inclu | --incl | --inc)
225     ac_prev=includedir ;;
226   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227   | --includ=* | --inclu=* | --incl=* | --inc=*)
228     includedir="$ac_optarg" ;;
229
230   -infodir | --infodir | --infodi | --infod | --info | --inf)
231     ac_prev=infodir ;;
232   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233     infodir="$ac_optarg" ;;
234
235   -libdir | --libdir | --libdi | --libd)
236     ac_prev=libdir ;;
237   -libdir=* | --libdir=* | --libdi=* | --libd=*)
238     libdir="$ac_optarg" ;;
239
240   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241   | --libexe | --libex | --libe)
242     ac_prev=libexecdir ;;
243   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244   | --libexe=* | --libex=* | --libe=*)
245     libexecdir="$ac_optarg" ;;
246
247   -localstatedir | --localstatedir | --localstatedi | --localstated \
248   | --localstate | --localstat | --localsta | --localst \
249   | --locals | --local | --loca | --loc | --lo)
250     ac_prev=localstatedir ;;
251   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254     localstatedir="$ac_optarg" ;;
255
256   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257     ac_prev=mandir ;;
258   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259     mandir="$ac_optarg" ;;
260
261   -nfp | --nfp | --nf)
262     # Obsolete; use --without-fp.
263     with_fp=no ;;
264
265   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266   | --no-cr | --no-c)
267     no_create=yes ;;
268
269   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271     no_recursion=yes ;;
272
273   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275   | --oldin | --oldi | --old | --ol | --o)
276     ac_prev=oldincludedir ;;
277   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280     oldincludedir="$ac_optarg" ;;
281
282   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283     ac_prev=prefix ;;
284   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285     prefix="$ac_optarg" ;;
286
287   -program-prefix | --program-prefix | --program-prefi | --program-pref \
288   | --program-pre | --program-pr | --program-p)
289     ac_prev=program_prefix ;;
290   -program-prefix=* | --program-prefix=* | --program-prefi=* \
291   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292     program_prefix="$ac_optarg" ;;
293
294   -program-suffix | --program-suffix | --program-suffi | --program-suff \
295   | --program-suf | --program-su | --program-s)
296     ac_prev=program_suffix ;;
297   -program-suffix=* | --program-suffix=* | --program-suffi=* \
298   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299     program_suffix="$ac_optarg" ;;
300
301   -program-transform-name | --program-transform-name \
302   | --program-transform-nam | --program-transform-na \
303   | --program-transform-n | --program-transform- \
304   | --program-transform | --program-transfor \
305   | --program-transfo | --program-transf \
306   | --program-trans | --program-tran \
307   | --progr-tra | --program-tr | --program-t)
308     ac_prev=program_transform_name ;;
309   -program-transform-name=* | --program-transform-name=* \
310   | --program-transform-nam=* | --program-transform-na=* \
311   | --program-transform-n=* | --program-transform-=* \
312   | --program-transform=* | --program-transfor=* \
313   | --program-transfo=* | --program-transf=* \
314   | --program-trans=* | --program-tran=* \
315   | --progr-tra=* | --program-tr=* | --program-t=*)
316     program_transform_name="$ac_optarg" ;;
317
318   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319   | -silent | --silent | --silen | --sile | --sil)
320     silent=yes ;;
321
322   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323     ac_prev=sbindir ;;
324   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325   | --sbi=* | --sb=*)
326     sbindir="$ac_optarg" ;;
327
328   -sharedstatedir | --sharedstatedir | --sharedstatedi \
329   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330   | --sharedst | --shareds | --shared | --share | --shar \
331   | --sha | --sh)
332     ac_prev=sharedstatedir ;;
333   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336   | --sha=* | --sh=*)
337     sharedstatedir="$ac_optarg" ;;
338
339   -site | --site | --sit)
340     ac_prev=site ;;
341   -site=* | --site=* | --sit=*)
342     site="$ac_optarg" ;;
343
344   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345     ac_prev=srcdir ;;
346   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347     srcdir="$ac_optarg" ;;
348
349   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350   | --syscon | --sysco | --sysc | --sys | --sy)
351     ac_prev=sysconfdir ;;
352   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354     sysconfdir="$ac_optarg" ;;
355
356   -target | --target | --targe | --targ | --tar | --ta | --t)
357     ac_prev=target ;;
358   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359     target="$ac_optarg" ;;
360
361   -v | -verbose | --verbose | --verbos | --verbo | --verb)
362     verbose=yes ;;
363
364   -version | --version | --versio | --versi | --vers)
365     echo "configure generated by autoconf version 2.13"
366     exit 0 ;;
367
368   -with-* | --with-*)
369     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370     # Reject names that are not valid shell variable names.
371     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373     fi
374     ac_package=`echo $ac_package| sed 's/-/_/g'`
375     case "$ac_option" in
376       *=*) ;;
377       *) ac_optarg=yes ;;
378     esac
379     eval "with_${ac_package}='$ac_optarg'" ;;
380
381   -without-* | --without-*)
382     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383     # Reject names that are not valid shell variable names.
384     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386     fi
387     ac_package=`echo $ac_package| sed 's/-/_/g'`
388     eval "with_${ac_package}=no" ;;
389
390   --x)
391     # Obsolete; use --with-x.
392     with_x=yes ;;
393
394   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395   | --x-incl | --x-inc | --x-in | --x-i)
396     ac_prev=x_includes ;;
397   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399     x_includes="$ac_optarg" ;;
400
401   -x-libraries | --x-libraries | --x-librarie | --x-librari \
402   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403     ac_prev=x_libraries ;;
404   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406     x_libraries="$ac_optarg" ;;
407
408   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409     ;;
410
411   *)
412     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413       echo "configure: warning: $ac_option: invalid host type" 1>&2
414     fi
415     if test "x$nonopt" != xNONE; then
416       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417     fi
418     nonopt="$ac_option"
419     ;;
420
421   esac
422 done
423
424 if test -n "$ac_prev"; then
425   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 fi
427
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429
430 # File descriptor usage:
431 # 0 standard input
432 # 1 file creation
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
439   exec 6>/dev/null
440 else
441   exec 6>&1
442 fi
443 exec 5>./config.log
444
445 echo "\
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
448 " 1>&5
449
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
452 ac_configure_args=
453 for ac_arg
454 do
455   case "$ac_arg" in
456   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457   | --no-cr | --no-c) ;;
458   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463   esac
464 done
465
466 # NLS nuisances.
467 # Only set these to C if already set.  These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
475
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 echo > confdefs.h
480
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=gc_mark.h
484
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487   ac_srcdir_defaulted=yes
488   # Try the directory containing this script, then its parent.
489   ac_prog=$0
490   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492   srcdir=$ac_confdir
493   if test ! -r $srcdir/$ac_unique_file; then
494     srcdir=..
495   fi
496 else
497   ac_srcdir_defaulted=no
498 fi
499 if test ! -r $srcdir/$ac_unique_file; then
500   if test "$ac_srcdir_defaulted" = yes; then
501     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502   else
503     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504   fi
505 fi
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510   if test "x$prefix" != xNONE; then
511     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512   else
513     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514   fi
515 fi
516 for ac_site_file in $CONFIG_SITE; do
517   if test -r "$ac_site_file"; then
518     echo "loading site script $ac_site_file"
519     . "$ac_site_file"
520   fi
521 done
522
523 if test -r "$cache_file"; then
524   echo "loading cache $cache_file"
525   . $cache_file
526 else
527   echo "creating cache $cache_file"
528   > $cache_file
529 fi
530
531 ac_ext=c
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
537
538 ac_exeext=
539 ac_objext=o
540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543     ac_n= ac_c='
544 ' ac_t='        '
545   else
546     ac_n=-n ac_c= ac_t=
547   fi
548 else
549   ac_n= ac_c='\c' ac_t=
550 fi
551
552
553
554 ac_aux_dir=
555 for ac_dir in .. $srcdir/..; do
556   if test -f $ac_dir/install-sh; then
557     ac_aux_dir=$ac_dir
558     ac_install_sh="$ac_aux_dir/install-sh -c"
559     break
560   elif test -f $ac_dir/install.sh; then
561     ac_aux_dir=$ac_dir
562     ac_install_sh="$ac_aux_dir/install.sh -c"
563     break
564   fi
565 done
566 if test -z "$ac_aux_dir"; then
567   { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
568 fi
569 ac_config_guess=$ac_aux_dir/config.guess
570 ac_config_sub=$ac_aux_dir/config.sub
571 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
572
573
574
575 # Do some error checking and defaulting for the host and target type.
576 # The inputs are:
577 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
578 #
579 # The rules are:
580 # 1. You are not allowed to specify --host, --target, and nonopt at the
581 #    same time.
582 # 2. Host defaults to nonopt.
583 # 3. If nonopt is not specified, then host defaults to the current host,
584 #    as determined by config.guess.
585 # 4. Target and build default to nonopt.
586 # 5. If nonopt is not specified, then target and build default to host.
587
588 # The aliases save the names the user supplied, while $host etc.
589 # will get canonicalized.
590 case $host---$target---$nonopt in
591 NONE---*---* | *---NONE---* | *---*---NONE) ;;
592 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
593 esac
594
595
596 # Make sure we can run config.sub.
597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
599 fi
600
601 echo $ac_n "checking host system type""... $ac_c" 1>&6
602 echo "configure:603: checking host system type" >&5
603
604 host_alias=$host
605 case "$host_alias" in
606 NONE)
607   case $nonopt in
608   NONE)
609     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
611     fi ;;
612   *) host_alias=$nonopt ;;
613   esac ;;
614 esac
615
616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
621
622 echo $ac_n "checking target system type""... $ac_c" 1>&6
623 echo "configure:624: checking target system type" >&5
624
625 target_alias=$target
626 case "$target_alias" in
627 NONE)
628   case $nonopt in
629   NONE) target_alias=$host_alias ;;
630   *) target_alias=$nonopt ;;
631   esac ;;
632 esac
633
634 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
635 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$target" 1>&6
639
640 echo $ac_n "checking build system type""... $ac_c" 1>&6
641 echo "configure:642: checking build system type" >&5
642
643 build_alias=$build
644 case "$build_alias" in
645 NONE)
646   case $nonopt in
647   NONE) build_alias=$host_alias ;;
648   *) build_alias=$nonopt ;;
649   esac ;;
650 esac
651
652 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
653 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656 echo "$ac_t""$build" 1>&6
657
658 test "$host_alias" != "$target_alias" &&
659   test "$program_prefix$program_suffix$program_transform_name" = \
660     NONENONEs,x,x, &&
661   program_prefix=${target_alias}-
662
663
664 # Find a good install program.  We prefer a C program (faster),
665 # so one script is as good as another.  But avoid the broken or
666 # incompatible versions:
667 # SysV /etc/install, /usr/sbin/install
668 # SunOS /usr/etc/install
669 # IRIX /sbin/install
670 # AIX /bin/install
671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
674 # ./install, which can be erroneously created by make from ./install.sh.
675 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
676 echo "configure:677: checking for a BSD compatible install" >&5
677 if test -z "$INSTALL"; then
678 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
679   echo $ac_n "(cached) $ac_c" 1>&6
680 else
681     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
682   for ac_dir in $PATH; do
683     # Account for people who put trailing slashes in PATH elements.
684     case "$ac_dir/" in
685     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
686     *)
687       # OSF1 and SCO ODT 3.0 have their own names for install.
688       # Don't use installbsd from OSF since it installs stuff as root
689       # by default.
690       for ac_prog in ginstall scoinst install; do
691         if test -f $ac_dir/$ac_prog; then
692           if test $ac_prog = install &&
693             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
694             # AIX install.  It has an incompatible calling convention.
695             :
696           else
697             ac_cv_path_install="$ac_dir/$ac_prog -c"
698             break 2
699           fi
700         fi
701       done
702       ;;
703     esac
704   done
705   IFS="$ac_save_IFS"
706
707 fi
708   if test "${ac_cv_path_install+set}" = set; then
709     INSTALL="$ac_cv_path_install"
710   else
711     # As a last resort, use the slow shell script.  We don't cache a
712     # path for INSTALL within a source directory, because that will
713     # break other packages using the cache if that directory is
714     # removed, or if the path is relative.
715     INSTALL="$ac_install_sh"
716   fi
717 fi
718 echo "$ac_t""$INSTALL" 1>&6
719
720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
721 # It thinks the first close brace ends the variable substitution.
722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
723
724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
725
726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
727
728 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
729 echo "configure:730: checking whether build environment is sane" >&5
730 # Just in case
731 sleep 1
732 echo timestamp > conftestfile
733 # Do `set' in a subshell so we don't clobber the current shell's
734 # arguments.  Must try -L first in case configure is actually a
735 # symlink; some systems play weird games with the mod time of symlinks
736 # (eg FreeBSD returns the mod time of the symlink's containing
737 # directory).
738 if (
739    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
740    if test "$*" = "X"; then
741       # -L didn't work.
742       set X `ls -t $srcdir/configure conftestfile`
743    fi
744    if test "$*" != "X $srcdir/configure conftestfile" \
745       && test "$*" != "X conftestfile $srcdir/configure"; then
746
747       # If neither matched, then we have a broken ls.  This can happen
748       # if, for instance, CONFIG_SHELL is bash and it inherits a
749       # broken ls alias from the environment.  This has actually
750       # happened.  Such a system could not be considered "sane".
751       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
752 alias in your environment" 1>&2; exit 1; }
753    fi
754
755    test "$2" = conftestfile
756    )
757 then
758    # Ok.
759    :
760 else
761    { echo "configure: error: newly created file is older than distributed files!
762 Check your system clock" 1>&2; exit 1; }
763 fi
764 rm -f conftest*
765 echo "$ac_t""yes" 1>&6
766 if test "$program_transform_name" = s,x,x,; then
767   program_transform_name=
768 else
769   # Double any \ or $.  echo might interpret backslashes.
770   cat <<\EOF_SED > conftestsed
771 s,\\,\\\\,g; s,\$,$$,g
772 EOF_SED
773   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
774   rm -f conftestsed
775 fi
776 test "$program_prefix" != NONE &&
777   program_transform_name="s,^,${program_prefix},; $program_transform_name"
778 # Use a double $ so make ignores it.
779 test "$program_suffix" != NONE &&
780   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
781
782 # sed with no file args requires a program.
783 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
784
785 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
786 echo "configure:787: checking whether ${MAKE-make} sets \${MAKE}" >&5
787 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
788 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
789   echo $ac_n "(cached) $ac_c" 1>&6
790 else
791   cat > conftestmake <<\EOF
792 all:
793         @echo 'ac_maketemp="${MAKE}"'
794 EOF
795 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
796 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
797 if test -n "$ac_maketemp"; then
798   eval ac_cv_prog_make_${ac_make}_set=yes
799 else
800   eval ac_cv_prog_make_${ac_make}_set=no
801 fi
802 rm -f conftestmake
803 fi
804 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
805   echo "$ac_t""yes" 1>&6
806   SET_MAKE=
807 else
808   echo "$ac_t""no" 1>&6
809   SET_MAKE="MAKE=${MAKE-make}"
810 fi
811
812 if test $host != $build; then
813   ac_tool_prefix=${host_alias}-
814 else
815   ac_tool_prefix=
816 fi
817
818 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
819 echo "configure:820: checking for Cygwin environment" >&5
820 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
821   echo $ac_n "(cached) $ac_c" 1>&6
822 else
823   cat > conftest.$ac_ext <<EOF
824 #line 825 "configure"
825 #include "confdefs.h"
826
827 int main() {
828
829 #ifndef __CYGWIN__
830 #define __CYGWIN__ __CYGWIN32__
831 #endif
832 return __CYGWIN__;
833 ; return 0; }
834 EOF
835 if { (eval echo configure:836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
836   rm -rf conftest*
837   ac_cv_cygwin=yes
838 else
839   echo "configure: failed program was:" >&5
840   cat conftest.$ac_ext >&5
841   rm -rf conftest*
842   ac_cv_cygwin=no
843 fi
844 rm -f conftest*
845 rm -f conftest*
846 fi
847
848 echo "$ac_t""$ac_cv_cygwin" 1>&6
849 CYGWIN=
850 test "$ac_cv_cygwin" = yes && CYGWIN=yes
851 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
852 echo "configure:853: checking for mingw32 environment" >&5
853 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
854   echo $ac_n "(cached) $ac_c" 1>&6
855 else
856   cat > conftest.$ac_ext <<EOF
857 #line 858 "configure"
858 #include "confdefs.h"
859
860 int main() {
861 return __MINGW32__;
862 ; return 0; }
863 EOF
864 if { (eval echo configure:865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
865   rm -rf conftest*
866   ac_cv_mingw32=yes
867 else
868   echo "configure: failed program was:" >&5
869   cat conftest.$ac_ext >&5
870   rm -rf conftest*
871   ac_cv_mingw32=no
872 fi
873 rm -f conftest*
874 rm -f conftest*
875 fi
876
877 echo "$ac_t""$ac_cv_mingw32" 1>&6
878 MINGW32=
879 test "$ac_cv_mingw32" = yes && MINGW32=yes
880
881 # Check whether --enable-multilib or --disable-multilib was given.
882 if test "${enable_multilib+set}" = set; then
883   enableval="$enable_multilib"
884   case "${enableval}" in
885   yes) multilib=yes ;;
886   no)  multilib=no ;;
887   *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
888  esac
889 else
890   multilib=yes
891 fi
892
893
894 if test "${srcdir}" = "."; then
895   if test "${with_target_subdir}" != "."; then
896     boehm_gc_basedir="${srcdir}/${with_multisrctop}../."
897   else
898     boehm_gc_basedir="${srcdir}/${with_multisrctop}."
899   fi
900 else
901   boehm_gc_basedir="${srcdir}/."
902 fi
903
904
905
906 # Make sure we can run config.sub.
907 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
908 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
909 fi
910
911 echo $ac_n "checking host system type""... $ac_c" 1>&6
912 echo "configure:913: checking host system type" >&5
913
914 host_alias=$host
915 case "$host_alias" in
916 NONE)
917   case $nonopt in
918   NONE)
919     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
920     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
921     fi ;;
922   *) host_alias=$nonopt ;;
923   esac ;;
924 esac
925
926 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
927 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
928 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
929 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
930 echo "$ac_t""$host" 1>&6
931
932
933
934 PACKAGE=boehm-gc
935
936 VERSION=5.1
937
938 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
939   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
940 fi
941
942
943
944 missing_dir=`cd $ac_aux_dir && pwd`
945 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
946 echo "configure:947: checking for working aclocal" >&5
947 # Run test in a subshell; some versions of sh will print an error if
948 # an executable is not found, even if stderr is redirected.
949 # Redirect stdin to placate older versions of autoconf.  Sigh.
950 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
951    ACLOCAL=aclocal
952    echo "$ac_t""found" 1>&6
953 else
954    ACLOCAL="$missing_dir/missing aclocal"
955    echo "$ac_t""missing" 1>&6
956 fi
957
958 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
959 echo "configure:960: checking for working autoconf" >&5
960 # Run test in a subshell; some versions of sh will print an error if
961 # an executable is not found, even if stderr is redirected.
962 # Redirect stdin to placate older versions of autoconf.  Sigh.
963 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
964    AUTOCONF=autoconf
965    echo "$ac_t""found" 1>&6
966 else
967    AUTOCONF="$missing_dir/missing autoconf"
968    echo "$ac_t""missing" 1>&6
969 fi
970
971 echo $ac_n "checking for working automake""... $ac_c" 1>&6
972 echo "configure:973: checking for working automake" >&5
973 # Run test in a subshell; some versions of sh will print an error if
974 # an executable is not found, even if stderr is redirected.
975 # Redirect stdin to placate older versions of autoconf.  Sigh.
976 if (automake --version) < /dev/null > /dev/null 2>&1; then
977    AUTOMAKE=automake
978    echo "$ac_t""found" 1>&6
979 else
980    AUTOMAKE="$missing_dir/missing automake"
981    echo "$ac_t""missing" 1>&6
982 fi
983
984 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
985 echo "configure:986: checking for working autoheader" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf.  Sigh.
989 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
990    AUTOHEADER=autoheader
991    echo "$ac_t""found" 1>&6
992 else
993    AUTOHEADER="$missing_dir/missing autoheader"
994    echo "$ac_t""missing" 1>&6
995 fi
996
997 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
998 echo "configure:999: checking for working makeinfo" >&5
999 # Run test in a subshell; some versions of sh will print an error if
1000 # an executable is not found, even if stderr is redirected.
1001 # Redirect stdin to placate older versions of autoconf.  Sigh.
1002 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1003    MAKEINFO=makeinfo
1004    echo "$ac_t""found" 1>&6
1005 else
1006    MAKEINFO="$missing_dir/missing makeinfo"
1007    echo "$ac_t""missing" 1>&6
1008 fi
1009
1010
1011
1012 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1013 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1014 # are probably using a cross compiler, which will not be able to fully
1015 # link an executable.  This should really be fixed in autoconf
1016 # itself.
1017
1018
1019
1020
1021 # Extract the first word of "gcc", so it can be a program name with args.
1022 set dummy gcc; ac_word=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026   echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028   if test -n "$CC"; then
1029   ac_cv_prog_CC="$CC" # Let the user override the test.
1030 else
1031   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1032   ac_dummy="$PATH"
1033   for ac_dir in $ac_dummy; do
1034     test -z "$ac_dir" && ac_dir=.
1035     if test -f $ac_dir/$ac_word; then
1036       ac_cv_prog_CC="gcc"
1037       break
1038     fi
1039   done
1040   IFS="$ac_save_ifs"
1041 fi
1042 fi
1043 CC="$ac_cv_prog_CC"
1044 if test -n "$CC"; then
1045   echo "$ac_t""$CC" 1>&6
1046 else
1047   echo "$ac_t""no" 1>&6
1048 fi
1049
1050 if test -z "$CC"; then
1051   # Extract the first word of "cc", so it can be a program name with args.
1052 set dummy cc; ac_word=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1056   echo $ac_n "(cached) $ac_c" 1>&6
1057 else
1058   if test -n "$CC"; then
1059   ac_cv_prog_CC="$CC" # Let the user override the test.
1060 else
1061   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1062   ac_prog_rejected=no
1063   ac_dummy="$PATH"
1064   for ac_dir in $ac_dummy; do
1065     test -z "$ac_dir" && ac_dir=.
1066     if test -f $ac_dir/$ac_word; then
1067       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1068         ac_prog_rejected=yes
1069         continue
1070       fi
1071       ac_cv_prog_CC="cc"
1072       break
1073     fi
1074   done
1075   IFS="$ac_save_ifs"
1076 if test $ac_prog_rejected = yes; then
1077   # We found a bogon in the path, so make sure we never use it.
1078   set dummy $ac_cv_prog_CC
1079   shift
1080   if test $# -gt 0; then
1081     # We chose a different compiler from the bogus one.
1082     # However, it has the same basename, so the bogon will be chosen
1083     # first if we set CC to just the basename; use the full file name.
1084     shift
1085     set dummy "$ac_dir/$ac_word" "$@"
1086     shift
1087     ac_cv_prog_CC="$@"
1088   fi
1089 fi
1090 fi
1091 fi
1092 CC="$ac_cv_prog_CC"
1093 if test -n "$CC"; then
1094   echo "$ac_t""$CC" 1>&6
1095 else
1096   echo "$ac_t""no" 1>&6
1097 fi
1098
1099   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1100 fi
1101
1102 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether we are using GNU C" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1105   echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107   cat > conftest.c <<EOF
1108 #ifdef __GNUC__
1109   yes;
1110 #endif
1111 EOF
1112 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1113   ac_cv_prog_gcc=yes
1114 else
1115   ac_cv_prog_gcc=no
1116 fi
1117 fi
1118
1119 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1120
1121 if test $ac_cv_prog_gcc = yes; then
1122   GCC=yes
1123   ac_test_CFLAGS="${CFLAGS+set}"
1124   ac_save_CFLAGS="$CFLAGS"
1125   CFLAGS=
1126   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether ${CC-cc} accepts -g" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1129   echo $ac_n "(cached) $ac_c" 1>&6
1130 else
1131   echo 'void f(){}' > conftest.c
1132 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1133   ac_cv_prog_cc_g=yes
1134 else
1135   ac_cv_prog_cc_g=no
1136 fi
1137 rm -f conftest*
1138
1139 fi
1140
1141 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1142   if test "$ac_test_CFLAGS" = set; then
1143     CFLAGS="$ac_save_CFLAGS"
1144   elif test $ac_cv_prog_cc_g = yes; then
1145     CFLAGS="-g -O2"
1146   else
1147     CFLAGS="-O2"
1148   fi
1149 else
1150   GCC=
1151   test "${CFLAGS+set}" = set || CFLAGS="-g"
1152 fi
1153
1154
1155 # Likewise for AC_PROG_CXX.
1156
1157
1158
1159 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1160 do
1161 # Extract the first word of "$ac_prog", so it can be a program name with args.
1162 set dummy $ac_prog; ac_word=$2
1163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1164 echo "configure:1165: checking for $ac_word" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1166   echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168   if test -n "$CXX"; then
1169   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1170 else
1171   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1172   ac_dummy="$PATH"
1173   for ac_dir in $ac_dummy; do
1174     test -z "$ac_dir" && ac_dir=.
1175     if test -f $ac_dir/$ac_word; then
1176       ac_cv_prog_CXX="$ac_prog"
1177       break
1178     fi
1179   done
1180   IFS="$ac_save_ifs"
1181 fi
1182 fi
1183 CXX="$ac_cv_prog_CXX"
1184 if test -n "$CXX"; then
1185   echo "$ac_t""$CXX" 1>&6
1186 else
1187   echo "$ac_t""no" 1>&6
1188 fi
1189
1190 test -n "$CXX" && break
1191 done
1192 test -n "$CXX" || CXX="gcc"
1193
1194 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1195
1196 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether we are using GNU C++" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1199   echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201   cat > conftest.C <<EOF
1202 #ifdef __GNUC__
1203   yes;
1204 #endif
1205 EOF
1206 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1207   ac_cv_prog_gxx=yes
1208 else
1209   ac_cv_prog_gxx=no
1210 fi
1211 fi
1212
1213 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1214
1215 if test $ac_cv_prog_gxx = yes; then
1216   GXX=yes
1217   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1218   ac_save_CXXFLAGS="$CXXFLAGS"
1219   CXXFLAGS=
1220   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether ${CXX-g++} accepts -g" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1223   echo $ac_n "(cached) $ac_c" 1>&6
1224 else
1225   echo 'void f(){}' > conftest.cc
1226 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1227   ac_cv_prog_cxx_g=yes
1228 else
1229   ac_cv_prog_cxx_g=no
1230 fi
1231 rm -f conftest*
1232
1233 fi
1234
1235 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1236   if test "$ac_test_CXXFLAGS" = set; then
1237     CXXFLAGS="$ac_save_CXXFLAGS"
1238   elif test $ac_cv_prog_cxx_g = yes; then
1239     CXXFLAGS="-g -O2"
1240   else
1241     CXXFLAGS="-O2"
1242   fi
1243 else
1244   GXX=
1245   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1246 fi
1247
1248
1249 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't
1250 # run it explicitly here, it will be run implicitly before
1251 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1252 # be run before AC_CANONICAL_HOST.
1253 echo $ac_n "checking build system type""... $ac_c" 1>&6
1254 echo "configure:1255: checking build system type" >&5
1255
1256 build_alias=$build
1257 case "$build_alias" in
1258 NONE)
1259   case $nonopt in
1260   NONE) build_alias=$host_alias ;;
1261   *) build_alias=$nonopt ;;
1262   esac ;;
1263 esac
1264
1265 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1266 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1267 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1268 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1269 echo "$ac_t""$build" 1>&6
1270
1271
1272 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1273 set dummy ${ac_tool_prefix}as; ac_word=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1277   echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279   if test -n "$AS"; then
1280   ac_cv_prog_AS="$AS" # Let the user override the test.
1281 else
1282   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1283   ac_dummy="$PATH"
1284   for ac_dir in $ac_dummy; do
1285     test -z "$ac_dir" && ac_dir=.
1286     if test -f $ac_dir/$ac_word; then
1287       ac_cv_prog_AS="${ac_tool_prefix}as"
1288       break
1289     fi
1290   done
1291   IFS="$ac_save_ifs"
1292   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1293 fi
1294 fi
1295 AS="$ac_cv_prog_AS"
1296 if test -n "$AS"; then
1297   echo "$ac_t""$AS" 1>&6
1298 else
1299   echo "$ac_t""no" 1>&6
1300 fi
1301
1302
1303
1304 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1305 set dummy ${ac_tool_prefix}ar; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1309   echo $ac_n "(cached) $ac_c" 1>&6
1310 else
1311   if test -n "$AR"; then
1312   ac_cv_prog_AR="$AR" # Let the user override the test.
1313 else
1314   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1315   ac_dummy="$PATH"
1316   for ac_dir in $ac_dummy; do
1317     test -z "$ac_dir" && ac_dir=.
1318     if test -f $ac_dir/$ac_word; then
1319       ac_cv_prog_AR="${ac_tool_prefix}ar"
1320       break
1321     fi
1322   done
1323   IFS="$ac_save_ifs"
1324   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1325 fi
1326 fi
1327 AR="$ac_cv_prog_AR"
1328 if test -n "$AR"; then
1329   echo "$ac_t""$AR" 1>&6
1330 else
1331   echo "$ac_t""no" 1>&6
1332 fi
1333
1334
1335
1336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1339 echo "configure:1340: checking for $ac_word" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1341   echo $ac_n "(cached) $ac_c" 1>&6
1342 else
1343   if test -n "$RANLIB"; then
1344   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1345 else
1346   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1347   ac_dummy="$PATH"
1348   for ac_dir in $ac_dummy; do
1349     test -z "$ac_dir" && ac_dir=.
1350     if test -f $ac_dir/$ac_word; then
1351       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1352       break
1353     fi
1354   done
1355   IFS="$ac_save_ifs"
1356 fi
1357 fi
1358 RANLIB="$ac_cv_prog_RANLIB"
1359 if test -n "$RANLIB"; then
1360   echo "$ac_t""$RANLIB" 1>&6
1361 else
1362   echo "$ac_t""no" 1>&6
1363 fi
1364
1365
1366 if test -z "$ac_cv_prog_RANLIB"; then
1367 if test -n "$ac_tool_prefix"; then
1368   # Extract the first word of "ranlib", so it can be a program name with args.
1369 set dummy ranlib; ac_word=$2
1370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1371 echo "configure:1372: checking for $ac_word" >&5
1372 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1373   echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375   if test -n "$RANLIB"; then
1376   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1377 else
1378   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1379   ac_dummy="$PATH"
1380   for ac_dir in $ac_dummy; do
1381     test -z "$ac_dir" && ac_dir=.
1382     if test -f $ac_dir/$ac_word; then
1383       ac_cv_prog_RANLIB="ranlib"
1384       break
1385     fi
1386   done
1387   IFS="$ac_save_ifs"
1388   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1389 fi
1390 fi
1391 RANLIB="$ac_cv_prog_RANLIB"
1392 if test -n "$RANLIB"; then
1393   echo "$ac_t""$RANLIB" 1>&6
1394 else
1395   echo "$ac_t""no" 1>&6
1396 fi
1397
1398 else
1399   RANLIB=":"
1400 fi
1401 fi
1402
1403
1404 # Find a good install program.  We prefer a C program (faster),
1405 # so one script is as good as another.  But avoid the broken or
1406 # incompatible versions:
1407 # SysV /etc/install, /usr/sbin/install
1408 # SunOS /usr/etc/install
1409 # IRIX /sbin/install
1410 # AIX /bin/install
1411 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1412 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1413 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1414 # ./install, which can be erroneously created by make from ./install.sh.
1415 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1416 echo "configure:1417: checking for a BSD compatible install" >&5
1417 if test -z "$INSTALL"; then
1418 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1419   echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1422   for ac_dir in $PATH; do
1423     # Account for people who put trailing slashes in PATH elements.
1424     case "$ac_dir/" in
1425     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1426     *)
1427       # OSF1 and SCO ODT 3.0 have their own names for install.
1428       # Don't use installbsd from OSF since it installs stuff as root
1429       # by default.
1430       for ac_prog in ginstall scoinst install; do
1431         if test -f $ac_dir/$ac_prog; then
1432           if test $ac_prog = install &&
1433             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1434             # AIX install.  It has an incompatible calling convention.
1435             :
1436           else
1437             ac_cv_path_install="$ac_dir/$ac_prog -c"
1438             break 2
1439           fi
1440         fi
1441       done
1442       ;;
1443     esac
1444   done
1445   IFS="$ac_save_IFS"
1446
1447 fi
1448   if test "${ac_cv_path_install+set}" = set; then
1449     INSTALL="$ac_cv_path_install"
1450   else
1451     # As a last resort, use the slow shell script.  We don't cache a
1452     # path for INSTALL within a source directory, because that will
1453     # break other packages using the cache if that directory is
1454     # removed, or if the path is relative.
1455     INSTALL="$ac_install_sh"
1456   fi
1457 fi
1458 echo "$ac_t""$INSTALL" 1>&6
1459
1460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1461 # It thinks the first close brace ends the variable substitution.
1462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1463
1464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1465
1466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1467
1468
1469 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1470 echo "configure:1471: checking whether to enable maintainer-specific portions of Makefiles" >&5
1471     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1472 if test "${enable_maintainer_mode+set}" = set; then
1473   enableval="$enable_maintainer_mode"
1474   USE_MAINTAINER_MODE=$enableval
1475 else
1476   USE_MAINTAINER_MODE=no
1477 fi
1478
1479   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1480   
1481
1482 if test $USE_MAINTAINER_MODE = yes; then
1483   MAINTAINER_MODE_TRUE=
1484   MAINTAINER_MODE_FALSE='#'
1485 else
1486   MAINTAINER_MODE_TRUE='#'
1487   MAINTAINER_MODE_FALSE=
1488 fi
1489   MAINT=$MAINTAINER_MODE_TRUE
1490   
1491
1492
1493 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1494 # at least currently, we never actually build a program, so we never
1495 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1496 # fails, because we are probably configuring with a cross compiler
1497 # which can't create executables.  So we include AC_EXEEXT to keep
1498 # automake happy, but we don't execute it, since we don't care about
1499 # the result.
1500 if false; then
1501   
1502
1503 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1504 echo "configure:1505: checking for executable suffix" >&5
1505 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1506   echo $ac_n "(cached) $ac_c" 1>&6
1507 else
1508   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1509   ac_cv_exeext=.exe
1510 else
1511   rm -f conftest*
1512   echo 'int main () { return 0; }' > conftest.$ac_ext
1513   ac_cv_exeext=
1514   if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1515     for file in conftest.*; do
1516       case $file in
1517       *.c | *.o | *.obj) ;;
1518       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1519       esac
1520     done
1521   else
1522     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1523   fi
1524   rm -f conftest*
1525   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1526 fi
1527 fi
1528
1529 EXEEXT=""
1530 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1531 echo "$ac_t""${ac_cv_exeext}" 1>&6
1532 ac_exeext=$EXEEXT
1533
1534 fi
1535
1536 . ${boehm_gc_basedir}/configure.host
1537
1538 case ${boehm_gc_basedir} in
1539 /* | A-Za-z:/\\*) boehm_gc_flagbasedir=${boehm_gc_basedir} ;;
1540 *) boehm_gc_flagbasedir='$(top_builddir)/'${boehm_gc_basedir} ;;
1541 esac
1542
1543 boehm_gc_cflags="${boehm_gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${boehm_gc_flagbasedir}/libc/include"
1544 case "${host}" in
1545   *-*-cygwin32*)
1546     boehm_gc_cflags="${boehm_gc_cflags} -I${boehm_gc_flagbasedir}/../winsup/include"
1547     ;;
1548 esac
1549
1550 boehm_gc_cflags="${boehm_gc_cflags} -fno-builtin"
1551
1552 BOEHM_GC_CFLAGS=${boehm_gc_cflags}
1553
1554
1555
1556 # Check whether --enable-shared or --disable-shared was given.
1557 if test "${enable_shared+set}" = set; then
1558   enableval="$enable_shared"
1559   p=${PACKAGE-default}
1560 case $enableval in
1561 yes) enable_shared=yes ;;
1562 no) enable_shared=no ;;
1563 *)
1564   enable_shared=no
1565   # Look at the argument we got.  We use all the common list separators.
1566   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1567   for pkg in $enableval; do
1568     if test "X$pkg" = "X$p"; then
1569       enable_shared=yes
1570     fi
1571   done
1572   IFS="$ac_save_ifs"
1573   ;;
1574 esac
1575 else
1576   enable_shared=yes
1577 fi
1578
1579 # Check whether --enable-static or --disable-static was given.
1580 if test "${enable_static+set}" = set; then
1581   enableval="$enable_static"
1582   p=${PACKAGE-default}
1583 case $enableval in
1584 yes) enable_static=yes ;;
1585 no) enable_static=no ;;
1586 *)
1587   enable_static=no
1588   # Look at the argument we got.  We use all the common list separators.
1589   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1590   for pkg in $enableval; do
1591     if test "X$pkg" = "X$p"; then
1592       enable_static=yes
1593     fi
1594   done
1595   IFS="$ac_save_ifs"
1596   ;;
1597 esac
1598 else
1599   enable_static=yes
1600 fi
1601
1602 # Check whether --enable-fast-install or --disable-fast-install was given.
1603 if test "${enable_fast_install+set}" = set; then
1604   enableval="$enable_fast_install"
1605   p=${PACKAGE-default}
1606 case $enableval in
1607 yes) enable_fast_install=yes ;;
1608 no) enable_fast_install=no ;;
1609 *)
1610   enable_fast_install=no
1611   # Look at the argument we got.  We use all the common list separators.
1612   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1613   for pkg in $enableval; do
1614     if test "X$pkg" = "X$p"; then
1615       enable_fast_install=yes
1616     fi
1617   done
1618   IFS="$ac_save_ifs"
1619   ;;
1620 esac
1621 else
1622   enable_fast_install=yes
1623 fi
1624
1625 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1626 if test "${with_gnu_ld+set}" = set; then
1627   withval="$with_gnu_ld"
1628   test "$withval" = no || with_gnu_ld=yes
1629 else
1630   with_gnu_ld=no
1631 fi
1632
1633 ac_prog=ld
1634 if test "$GCC" = yes; then
1635   # Check if gcc -print-prog-name=ld gives a path.
1636   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1637 echo "configure:1638: checking for ld used by GCC" >&5
1638   case $host in
1639   *-*-mingw*)
1640     # gcc leaves a trailing carriage return which upsets mingw
1641     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1642   *)
1643     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1644   esac
1645   case $ac_prog in
1646     # Accept absolute paths.
1647     [\\/]* | [A-Za-z]:[\\/]*)
1648       re_direlt='/[^/][^/]*/\.\./'
1649       # Canonicalize the path of ld
1650       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1651       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1652         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1653       done
1654       test -z "$LD" && LD="$ac_prog"
1655       ;;
1656   "")
1657     # If it fails, then pretend we aren't using GCC.
1658     ac_prog=ld
1659     ;;
1660   *)
1661     # If it is relative, then search for the first ld in PATH.
1662     with_gnu_ld=unknown
1663     ;;
1664   esac
1665 elif test "$with_gnu_ld" = yes; then
1666   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1667 echo "configure:1668: checking for GNU ld" >&5
1668 else
1669   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1670 echo "configure:1671: checking for non-GNU ld" >&5
1671 fi
1672 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1673   echo $ac_n "(cached) $ac_c" 1>&6
1674 else
1675   if test -z "$LD"; then
1676   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1677   for ac_dir in $PATH; do
1678     test -z "$ac_dir" && ac_dir=.
1679     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1680       lt_cv_path_LD="$ac_dir/$ac_prog"
1681       # Check to see if the program is GNU ld.  I'd rather use --version,
1682       # but apparently some GNU ld's only accept -v.
1683       # Break only if it was the GNU/non-GNU ld that we prefer.
1684       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1685         test "$with_gnu_ld" != no && break
1686       else
1687         test "$with_gnu_ld" != yes && break
1688       fi
1689     fi
1690   done
1691   IFS="$ac_save_ifs"
1692 else
1693   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1694 fi
1695 fi
1696
1697 LD="$lt_cv_path_LD"
1698 if test -n "$LD"; then
1699   echo "$ac_t""$LD" 1>&6
1700 else
1701   echo "$ac_t""no" 1>&6
1702 fi
1703 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1704 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1705 echo "configure:1706: checking if the linker ($LD) is GNU ld" >&5
1706 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1707   echo $ac_n "(cached) $ac_c" 1>&6
1708 else
1709   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1710 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1711   lt_cv_prog_gnu_ld=yes
1712 else
1713   lt_cv_prog_gnu_ld=no
1714 fi
1715 fi
1716
1717 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1718 with_gnu_ld=$lt_cv_prog_gnu_ld
1719
1720
1721 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1722 echo "configure:1723: checking for $LD option to reload object files" >&5
1723 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1724   echo $ac_n "(cached) $ac_c" 1>&6
1725 else
1726   lt_cv_ld_reload_flag='-r'
1727 fi
1728
1729 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1730 reload_flag=$lt_cv_ld_reload_flag
1731 test -n "$reload_flag" && reload_flag=" $reload_flag"
1732
1733 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1734 echo "configure:1735: checking for BSD-compatible nm" >&5
1735 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1736   echo $ac_n "(cached) $ac_c" 1>&6
1737 else
1738   if test -n "$NM"; then
1739   # Let the user override the test.
1740   lt_cv_path_NM="$NM"
1741 else
1742   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1743   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1744     test -z "$ac_dir" && ac_dir=.
1745     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1746     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1747       # Check to see if the nm accepts a BSD-compat flag.
1748       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1749       #   nm: unknown option "B" ignored
1750       # Tru64's nm complains that /dev/null is an invalid object file
1751       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1752         lt_cv_path_NM="$tmp_nm -B"
1753         break
1754       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1755         lt_cv_path_NM="$tmp_nm -p"
1756         break
1757       else
1758         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1759         continue # so that we can try to find one that supports BSD flags
1760       fi
1761     fi
1762   done
1763   IFS="$ac_save_ifs"
1764   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1765 fi
1766 fi
1767
1768 NM="$lt_cv_path_NM"
1769 echo "$ac_t""$NM" 1>&6
1770
1771 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1772 echo "configure:1773: checking whether ln -s works" >&5
1773 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1774   echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776   rm -f conftestdata
1777 if ln -s X conftestdata 2>/dev/null
1778 then
1779   rm -f conftestdata
1780   ac_cv_prog_LN_S="ln -s"
1781 else
1782   ac_cv_prog_LN_S=ln
1783 fi
1784 fi
1785 LN_S="$ac_cv_prog_LN_S"
1786 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1787   echo "$ac_t""yes" 1>&6
1788 else
1789   echo "$ac_t""no" 1>&6
1790 fi
1791
1792 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1793 echo "configure:1794: checking how to recognise dependant libraries" >&5
1794 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1795   echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797   lt_cv_file_magic_cmd='$MAGIC_CMD'
1798 lt_cv_file_magic_test_file=
1799 lt_cv_deplibs_check_method='unknown'
1800 # Need to set the preceding variable on all platforms that support
1801 # interlibrary dependencies.
1802 # 'none' -- dependencies not supported.
1803 # `unknown' -- same as none, but documents that we really don't know.
1804 # 'pass_all' -- all dependencies passed with no checks.
1805 # 'test_compile' -- check by making test program.
1806 # 'file_magic [regex]' -- check by looking for files in library path
1807 # which responds to the $file_magic_cmd with a given egrep regex.
1808 # If you have `file' or equivalent on your system and you're not sure
1809 # whether `pass_all' will *always* work, you probably want this one.
1810
1811 case $host_os in
1812 aix*)
1813   lt_cv_deplibs_check_method=pass_all
1814   ;;
1815
1816 beos*)
1817   lt_cv_deplibs_check_method=pass_all
1818   ;;
1819
1820 bsdi4*)
1821   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1822   lt_cv_file_magic_cmd='/usr/bin/file -L'
1823   lt_cv_file_magic_test_file=/shlib/libc.so
1824   ;;
1825
1826 cygwin* | mingw* |pw32*)
1827   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1828   lt_cv_file_magic_cmd='$OBJDUMP -f'
1829   ;;
1830
1831 darwin* | rhapsody*)
1832   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1833   lt_cv_file_magic_cmd='/usr/bin/file -L'
1834   case "$host_os" in
1835   rhapsody* | darwin1.012)
1836     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1837     ;;
1838   *) # Darwin 1.3 on
1839     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1840     ;;
1841   esac
1842   ;;
1843
1844 freebsd* )
1845   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1846     case $host_cpu in
1847     i*86 )
1848       # Not sure whether the presence of OpenBSD here was a mistake.
1849       # Let's accept both of them until this is cleared up.
1850       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1851       lt_cv_file_magic_cmd=/usr/bin/file
1852       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1853       ;;
1854     esac
1855   else
1856     lt_cv_deplibs_check_method=pass_all
1857   fi
1858   ;;
1859
1860 gnu*)
1861   lt_cv_deplibs_check_method=pass_all
1862   ;;
1863
1864 hpux10.20*|hpux11*)
1865   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1866   lt_cv_file_magic_cmd=/usr/bin/file
1867   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1868   ;;
1869
1870 irix5* | irix6*)
1871   case $host_os in
1872   irix5*)
1873     # this will be overridden with pass_all, but let us keep it just in case
1874     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1875     ;;
1876   *)
1877     case $LD in
1878     *-32|*"-32 ") libmagic=32-bit;;
1879     *-n32|*"-n32 ") libmagic=N32;;
1880     *-64|*"-64 ") libmagic=64-bit;;
1881     *) libmagic=never-match;;
1882     esac
1883     # this will be overridden with pass_all, but let us keep it just in case
1884     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1885     ;;
1886   esac
1887   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1888   lt_cv_deplibs_check_method=pass_all
1889   ;;
1890
1891 # This must be Linux ELF.
1892 linux-gnu*)
1893   case $host_cpu in
1894   alpha* | i*86 | powerpc* | sparc* | ia64* )
1895     lt_cv_deplibs_check_method=pass_all ;;
1896   *)
1897     # glibc up to 2.1.1 does not perform some relocations on ARM
1898     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1899   esac
1900   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1901   ;;
1902
1903 netbsd*)
1904   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1905     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1906   else
1907     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1908   fi
1909   ;;
1910
1911 newsos6)
1912   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1913   lt_cv_file_magic_cmd=/usr/bin/file
1914   lt_cv_file_magic_test_file=/usr/lib/libnls.so
1915   ;;
1916
1917 osf3* | osf4* | osf5*)
1918   # this will be overridden with pass_all, but let us keep it just in case
1919   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1920   lt_cv_file_magic_test_file=/shlib/libc.so
1921   lt_cv_deplibs_check_method=pass_all
1922   ;;
1923
1924 sco3.2v5*)
1925   lt_cv_deplibs_check_method=pass_all
1926   ;;
1927
1928 solaris*)
1929   lt_cv_deplibs_check_method=pass_all
1930   lt_cv_file_magic_test_file=/lib/libc.so
1931   ;;
1932
1933 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1934   case $host_vendor in
1935   ncr)
1936     lt_cv_deplibs_check_method=pass_all
1937     ;;
1938   motorola)
1939     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]'
1940     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1941     ;;
1942   esac
1943   ;;
1944 esac
1945
1946 fi
1947
1948 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1949 file_magic_cmd=$lt_cv_file_magic_cmd
1950 deplibs_check_method=$lt_cv_deplibs_check_method
1951
1952 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1953 echo "configure:1954: checking for object suffix" >&5
1954 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1955   echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957   rm -f conftest*
1958 echo 'int i = 1;' > conftest.$ac_ext
1959 if { (eval echo configure:1960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1960   for ac_file in conftest.*; do
1961     case $ac_file in
1962     *.c) ;;
1963     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1964     esac
1965   done
1966 else
1967   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1968 fi
1969 rm -f conftest*
1970 fi
1971
1972 echo "$ac_t""$ac_cv_objext" 1>&6
1973 OBJEXT=$ac_cv_objext
1974 ac_objext=$ac_cv_objext
1975
1976 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1977
1978 # Only perform the check for file, if the check method requires it
1979 case $deplibs_check_method in
1980 file_magic*)
1981   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1982     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1983 echo "configure:1984: checking for ${ac_tool_prefix}file" >&5
1984 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1985   echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987   case $MAGIC_CMD in
1988   /*)
1989   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1990   ;;
1991   ?:/*)
1992   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1993   ;;
1994   *)
1995   ac_save_MAGIC_CMD="$MAGIC_CMD"
1996   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1997   ac_dummy="/usr/bin:$PATH"
1998   for ac_dir in $ac_dummy; do
1999     test -z "$ac_dir" && ac_dir=.
2000     if test -f $ac_dir/${ac_tool_prefix}file; then
2001       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2002       if test -n "$file_magic_test_file"; then
2003         case $deplibs_check_method in
2004         "file_magic "*)
2005           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2006           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2007           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2008             egrep "$file_magic_regex" > /dev/null; then
2009             :
2010           else
2011             cat <<EOF 1>&2
2012
2013 *** Warning: the command libtool uses to detect shared libraries,
2014 *** $file_magic_cmd, produces output that libtool cannot recognize.
2015 *** The result is that libtool may fail to recognize shared libraries
2016 *** as such.  This will affect the creation of libtool libraries that
2017 *** depend on shared libraries, but programs linked with such libtool
2018 *** libraries will work regardless of this problem.  Nevertheless, you
2019 *** may want to report the problem to your system manager and/or to
2020 *** bug-libtool@gnu.org
2021
2022 EOF
2023           fi ;;
2024         esac
2025       fi
2026       break
2027     fi
2028   done
2029   IFS="$ac_save_ifs"
2030   MAGIC_CMD="$ac_save_MAGIC_CMD"
2031   ;;
2032 esac
2033 fi
2034
2035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2036 if test -n "$MAGIC_CMD"; then
2037   echo "$ac_t""$MAGIC_CMD" 1>&6
2038 else
2039   echo "$ac_t""no" 1>&6
2040 fi
2041
2042 if test -z "$lt_cv_path_MAGIC_CMD"; then
2043   if test -n "$ac_tool_prefix"; then
2044     echo $ac_n "checking for file""... $ac_c" 1>&6
2045 echo "configure:2046: checking for file" >&5
2046 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2047   echo $ac_n "(cached) $ac_c" 1>&6
2048 else
2049   case $MAGIC_CMD in
2050   /*)
2051   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2052   ;;
2053   ?:/*)
2054   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2055   ;;
2056   *)
2057   ac_save_MAGIC_CMD="$MAGIC_CMD"
2058   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2059   ac_dummy="/usr/bin:$PATH"
2060   for ac_dir in $ac_dummy; do
2061     test -z "$ac_dir" && ac_dir=.
2062     if test -f $ac_dir/file; then
2063       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2064       if test -n "$file_magic_test_file"; then
2065         case $deplibs_check_method in
2066         "file_magic "*)
2067           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2068           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2069           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2070             egrep "$file_magic_regex" > /dev/null; then
2071             :
2072           else
2073             cat <<EOF 1>&2
2074
2075 *** Warning: the command libtool uses to detect shared libraries,
2076 *** $file_magic_cmd, produces output that libtool cannot recognize.
2077 *** The result is that libtool may fail to recognize shared libraries
2078 *** as such.  This will affect the creation of libtool libraries that
2079 *** depend on shared libraries, but programs linked with such libtool
2080 *** libraries will work regardless of this problem.  Nevertheless, you
2081 *** may want to report the problem to your system manager and/or to
2082 *** bug-libtool@gnu.org
2083
2084 EOF
2085           fi ;;
2086         esac
2087       fi
2088       break
2089     fi
2090   done
2091   IFS="$ac_save_ifs"
2092   MAGIC_CMD="$ac_save_MAGIC_CMD"
2093   ;;
2094 esac
2095 fi
2096
2097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2098 if test -n "$MAGIC_CMD"; then
2099   echo "$ac_t""$MAGIC_CMD" 1>&6
2100 else
2101   echo "$ac_t""no" 1>&6
2102 fi
2103
2104   else
2105     MAGIC_CMD=:
2106   fi
2107 fi
2108
2109   fi
2110   ;;
2111 esac
2112
2113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2116 echo "configure:2117: checking for $ac_word" >&5
2117 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2118   echo $ac_n "(cached) $ac_c" 1>&6
2119 else
2120   if test -n "$RANLIB"; then
2121   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2122 else
2123   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2124   ac_dummy="$PATH"
2125   for ac_dir in $ac_dummy; do
2126     test -z "$ac_dir" && ac_dir=.
2127     if test -f $ac_dir/$ac_word; then
2128       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2129       break
2130     fi
2131   done
2132   IFS="$ac_save_ifs"
2133 fi
2134 fi
2135 RANLIB="$ac_cv_prog_RANLIB"
2136 if test -n "$RANLIB"; then
2137   echo "$ac_t""$RANLIB" 1>&6
2138 else
2139   echo "$ac_t""no" 1>&6
2140 fi
2141
2142
2143 if test -z "$ac_cv_prog_RANLIB"; then
2144 if test -n "$ac_tool_prefix"; then
2145   # Extract the first word of "ranlib", so it can be a program name with args.
2146 set dummy ranlib; ac_word=$2
2147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2148 echo "configure:2149: checking for $ac_word" >&5
2149 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2150   echo $ac_n "(cached) $ac_c" 1>&6
2151 else
2152   if test -n "$RANLIB"; then
2153   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2154 else
2155   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2156   ac_dummy="$PATH"
2157   for ac_dir in $ac_dummy; do
2158     test -z "$ac_dir" && ac_dir=.
2159     if test -f $ac_dir/$ac_word; then
2160       ac_cv_prog_RANLIB="ranlib"
2161       break
2162     fi
2163   done
2164   IFS="$ac_save_ifs"
2165   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2166 fi
2167 fi
2168 RANLIB="$ac_cv_prog_RANLIB"
2169 if test -n "$RANLIB"; then
2170   echo "$ac_t""$RANLIB" 1>&6
2171 else
2172   echo "$ac_t""no" 1>&6
2173 fi
2174
2175 else
2176   RANLIB=":"
2177 fi
2178 fi
2179
2180 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2181 set dummy ${ac_tool_prefix}strip; ac_word=$2
2182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2183 echo "configure:2184: checking for $ac_word" >&5
2184 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2185   echo $ac_n "(cached) $ac_c" 1>&6
2186 else
2187   if test -n "$STRIP"; then
2188   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2189 else
2190   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2191   ac_dummy="$PATH"
2192   for ac_dir in $ac_dummy; do
2193     test -z "$ac_dir" && ac_dir=.
2194     if test -f $ac_dir/$ac_word; then
2195       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2196       break
2197     fi
2198   done
2199   IFS="$ac_save_ifs"
2200 fi
2201 fi
2202 STRIP="$ac_cv_prog_STRIP"
2203 if test -n "$STRIP"; then
2204   echo "$ac_t""$STRIP" 1>&6
2205 else
2206   echo "$ac_t""no" 1>&6
2207 fi
2208
2209
2210 if test -z "$ac_cv_prog_STRIP"; then
2211 if test -n "$ac_tool_prefix"; then
2212   # Extract the first word of "strip", so it can be a program name with args.
2213 set dummy strip; ac_word=$2
2214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2215 echo "configure:2216: checking for $ac_word" >&5
2216 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2217   echo $ac_n "(cached) $ac_c" 1>&6
2218 else
2219   if test -n "$STRIP"; then
2220   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2221 else
2222   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2223   ac_dummy="$PATH"
2224   for ac_dir in $ac_dummy; do
2225     test -z "$ac_dir" && ac_dir=.
2226     if test -f $ac_dir/$ac_word; then
2227       ac_cv_prog_STRIP="strip"
2228       break
2229     fi
2230   done
2231   IFS="$ac_save_ifs"
2232   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2233 fi
2234 fi
2235 STRIP="$ac_cv_prog_STRIP"
2236 if test -n "$STRIP"; then
2237   echo "$ac_t""$STRIP" 1>&6
2238 else
2239   echo "$ac_t""no" 1>&6
2240 fi
2241
2242 else
2243   STRIP=":"
2244 fi
2245 fi
2246
2247
2248 # Check for any special flags to pass to ltconfig.
2249 libtool_flags="--cache-file=$cache_file"
2250 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2251 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2252 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2253 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2254 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2255
2256
2257 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2258 if test "${enable_libtool_lock+set}" = set; then
2259   enableval="$enable_libtool_lock"
2260   :
2261 fi
2262
2263 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2264 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2265
2266 # Check whether --with-pic or --without-pic was given.
2267 if test "${with_pic+set}" = set; then
2268   withval="$with_pic"
2269   pic_mode="$withval"
2270 else
2271   pic_mode=default
2272 fi
2273
2274 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2275 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2276
2277 # Some flags need to be propagated to the compiler or linker for good
2278 # libtool support.
2279 case $host in
2280 *-*-irix6*)
2281   # Find out which ABI we are using.
2282   echo '#line 2283 "configure"' > conftest.$ac_ext
2283   if { (eval echo configure:2284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2284     case `/usr/bin/file conftest.$ac_objext` in
2285     *32-bit*)
2286       LD="${LD-ld} -32"
2287       ;;
2288     *N32*)
2289       LD="${LD-ld} -n32"
2290       ;;
2291     *64-bit*)
2292       LD="${LD-ld} -64"
2293       ;;
2294     esac
2295   fi
2296   rm -rf conftest*
2297   ;;
2298
2299 *-*-sco3.2v5*)
2300   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2301   SAVE_CFLAGS="$CFLAGS"
2302   CFLAGS="$CFLAGS -belf"
2303   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2304 echo "configure:2305: checking whether the C compiler needs -belf" >&5
2305 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2306   echo $ac_n "(cached) $ac_c" 1>&6
2307 else
2308   
2309      ac_ext=c
2310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2314 cross_compiling=$ac_cv_prog_cc_cross
2315
2316      cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319
2320 int main() {
2321
2322 ; return 0; }
2323 EOF
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2325   rm -rf conftest*
2326   lt_cv_cc_needs_belf=yes
2327 else
2328   echo "configure: failed program was:" >&5
2329   cat conftest.$ac_ext >&5
2330   rm -rf conftest*
2331   lt_cv_cc_needs_belf=no
2332 fi
2333 rm -f conftest*
2334      ac_ext=c
2335 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2336 ac_cpp='$CPP $CPPFLAGS'
2337 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2338 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2339 cross_compiling=$ac_cv_prog_cc_cross
2340
2341 fi
2342
2343 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2344   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2345     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2346     CFLAGS="$SAVE_CFLAGS"
2347   fi
2348   ;;
2349
2350
2351 esac
2352
2353 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2354 echo "configure:2355: checking how to run the C++ preprocessor" >&5
2355 if test -z "$CXXCPP"; then
2356 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2357   echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359   ac_ext=C
2360 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2361 ac_cpp='$CXXCPP $CPPFLAGS'
2362 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2363 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2364 cross_compiling=$ac_cv_prog_cxx_cross
2365   CXXCPP="${CXX-g++} -E"
2366   cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #include <stdlib.h>
2370 EOF
2371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2372 { (eval echo configure:2373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2374 if test -z "$ac_err"; then
2375   :
2376 else
2377   echo "$ac_err" >&5
2378   echo "configure: failed program was:" >&5
2379   cat conftest.$ac_ext >&5
2380   rm -rf conftest*
2381   CXXCPP=/lib/cpp
2382 fi
2383 rm -f conftest*
2384   ac_cv_prog_CXXCPP="$CXXCPP"
2385 ac_ext=c
2386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2390 cross_compiling=$ac_cv_prog_cc_cross
2391 fi
2392 fi
2393 CXXCPP="$ac_cv_prog_CXXCPP"
2394 echo "$ac_t""$CXXCPP" 1>&6
2395
2396
2397 # Save cache, so that ltconfig can load it
2398 cat > confcache <<\EOF
2399 # This file is a shell script that caches the results of configure
2400 # tests run on this system so they can be shared between configure
2401 # scripts and configure runs.  It is not useful on other systems.
2402 # If it contains results you don't want to keep, you may remove or edit it.
2403 #
2404 # By default, configure uses ./config.cache as the cache file,
2405 # creating it if it does not exist already.  You can give configure
2406 # the --cache-file=FILE option to use a different cache file; that is
2407 # what configure does when it calls configure scripts in
2408 # subdirectories, so they share the cache.
2409 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2410 # config.status only pays attention to the cache file if you give it the
2411 # --recheck option to rerun configure.
2412 #
2413 EOF
2414 # The following way of writing the cache mishandles newlines in values,
2415 # but we know of no workaround that is simple, portable, and efficient.
2416 # So, don't put newlines in cache variables' values.
2417 # Ultrix sh set writes to stderr and can't be redirected directly,
2418 # and sets the high bit in the cache file unless we assign to the vars.
2419 (set) 2>&1 |
2420   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2421   *ac_space=\ *)
2422     # `set' does not quote correctly, so add quotes (double-quote substitution
2423     # turns \\\\ into \\, and sed turns \\ into \).
2424     sed -n \
2425       -e "s/'/'\\\\''/g" \
2426       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2427     ;;
2428   *)
2429     # `set' quotes correctly as required by POSIX, so do not add quotes.
2430     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2431     ;;
2432   esac >> confcache
2433 if cmp -s $cache_file confcache; then
2434   :
2435 else
2436   if test -w $cache_file; then
2437     echo "updating cache $cache_file"
2438     cat confcache > $cache_file
2439   else
2440     echo "not updating unwritable cache $cache_file"
2441   fi
2442 fi
2443 rm -f confcache
2444
2445
2446 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2447 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2448 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2449 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2450 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2451 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2452 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2453 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2454 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2455 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2456
2457 # Reload cache, that may have been modified by ltconfig
2458 if test -r "$cache_file"; then
2459   echo "loading cache $cache_file"
2460   . $cache_file
2461 else
2462   echo "creating cache $cache_file"
2463   > $cache_file
2464 fi
2465
2466
2467 # This can be used to rebuild libtool when needed
2468 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2469
2470 # Always use our own libtool.
2471 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2472
2473 # Redirect the config.log output again, so that the ltconfig log is not
2474 # clobbered by the next message.
2475 exec 5>>./config.log
2476
2477
2478
2479 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2480 lt_save_CC="$CC"
2481 lt_save_CFLAGS="$CFLAGS"
2482 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2483 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2484 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2485 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2486 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2487 deplibs_check_method="$deplibs_check_method" \
2488 file_magic_cmd="$file_magic_cmd" \
2489 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2490 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2491 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2492 CC="$lt_save_CC"
2493 CFLAGS="$lt_save_CFLAGS"
2494
2495 # Redirect the config.log output again, so that the ltconfig log is not
2496 # clobbered by the next message.
2497 exec 5>>./config.log
2498
2499   
2500
2501   
2502          
2503          
2504
2505 # Check whether --with-target-subdir or --without-target-subdir was given.
2506 if test "${with_target_subdir+set}" = set; then
2507   withval="$with_target_subdir"
2508   :
2509 fi
2510
2511 # Check whether --with-cross-host or --without-cross-host was given.
2512 if test "${with_cross_host+set}" = set; then
2513   withval="$with_cross_host"
2514   :
2515 fi
2516
2517
2518 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2519 echo "configure:2520: checking whether to enable maintainer-specific portions of Makefiles" >&5
2520     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2521 if test "${enable_maintainer_mode+set}" = set; then
2522   enableval="$enable_maintainer_mode"
2523   USE_MAINTAINER_MODE=$enableval
2524 else
2525   USE_MAINTAINER_MODE=no
2526 fi
2527
2528   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2529   
2530
2531 if test $USE_MAINTAINER_MODE = yes; then
2532   MAINTAINER_MODE_TRUE=
2533   MAINTAINER_MODE_FALSE='#'
2534 else
2535   MAINTAINER_MODE_TRUE='#'
2536   MAINTAINER_MODE_FALSE=
2537 fi
2538   MAINT=$MAINTAINER_MODE_TRUE
2539   
2540
2541 # automake wants to see AC_EXEEXT.  But we don't need it.  And having
2542 # it is actually a problem, because the compiler we're passed can't
2543 # necessarily do a full link.  So we fool automake here.
2544 if test "x" = "y"; then
2545    
2546
2547 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2548 echo "configure:2549: checking for executable suffix" >&5
2549 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2550   echo $ac_n "(cached) $ac_c" 1>&6
2551 else
2552   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2553   ac_cv_exeext=.exe
2554 else
2555   rm -f conftest*
2556   echo 'int main () { return 0; }' > conftest.$ac_ext
2557   ac_cv_exeext=
2558   if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2559     for file in conftest.*; do
2560       case $file in
2561       *.c | *.o | *.obj) ;;
2562       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2563       esac
2564     done
2565   else
2566     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2567   fi
2568   rm -f conftest*
2569   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2570 fi
2571 fi
2572
2573 EXEEXT=""
2574 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2575 echo "$ac_t""${ac_cv_exeext}" 1>&6
2576 ac_exeext=$EXEEXT
2577
2578 fi
2579
2580 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2581 echo "configure:2582: checking for thread model used by GCC" >&5
2582 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2583 echo "$ac_t""$THREADS" 1>&6
2584
2585 INCLUDES=
2586 THREADLIBS=
2587 case "$THREADS" in
2588  no | none | single)
2589     THREADS=none
2590     ;;
2591  posix | pthreads)
2592     THREADS=posix
2593     THREADLIBS=-lpthread
2594     case "$host" in
2595      *-*-linux*)
2596         cat >> confdefs.h <<\EOF
2597 #define LINUX_THREADS 1
2598 EOF
2599
2600         cat >> confdefs.h <<\EOF
2601 #define _REENTRANT 1
2602 EOF
2603
2604         ;;
2605      *-*-freebsd*)
2606         echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2
2607         cat >> confdefs.h <<\EOF
2608 #define FREEBSD_THREADS 1
2609 EOF
2610
2611         INCLUDES=-pthread
2612         THREADLIBS=-pthread
2613         ;;
2614      *-*-solaris*)
2615         cat >> confdefs.h <<\EOF
2616 #define SOLARIS_THREADS 1
2617 EOF
2618
2619         cat >> confdefs.h <<\EOF
2620 #define _SOLARIS_PTHREADS 1
2621 EOF
2622
2623         ;;
2624      *-*-irix*)
2625         cat >> confdefs.h <<\EOF
2626 #define IRIX_THREADS 1
2627 EOF
2628
2629         ;;
2630     esac
2631     ;;
2632  decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2633     { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2634     ;;
2635  *)
2636     { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2637     ;;
2638 esac
2639
2640
2641 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2642 echo "configure:2643: checking for dlopen in -ldl" >&5
2643 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2645   echo $ac_n "(cached) $ac_c" 1>&6
2646 else
2647   ac_save_LIBS="$LIBS"
2648 LIBS="-ldl  $LIBS"
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* Override any gcc2 internal prototype to avoid an error.  */
2653 /* We use char because int might match the return type of a gcc2
2654     builtin and then its argument prototype would still apply.  */
2655 char dlopen();
2656
2657 int main() {
2658 dlopen()
2659 ; return 0; }
2660 EOF
2661 if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2662   rm -rf conftest*
2663   eval "ac_cv_lib_$ac_lib_var=yes"
2664 else
2665   echo "configure: failed program was:" >&5
2666   cat conftest.$ac_ext >&5
2667   rm -rf conftest*
2668   eval "ac_cv_lib_$ac_lib_var=no"
2669 fi
2670 rm -f conftest*
2671 LIBS="$ac_save_LIBS"
2672
2673 fi
2674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2675   echo "$ac_t""yes" 1>&6
2676   EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2677 else
2678   echo "$ac_t""no" 1>&6
2679 fi
2680
2681
2682
2683 # Check whether --enable-java-gc or --disable-java-gc was given.
2684 if test "${enable_java_gc+set}" = set; then
2685   enableval="$enable_java_gc"
2686   
2687   GC=$enableval
2688 else
2689   GC=boehm
2690 fi
2691
2692 target_all=
2693 if test "$GC" = "boehm"; then
2694    target_all=libgcjgc.la
2695 fi
2696
2697
2698 TARGET_ECOS="no"
2699 # Check whether --with-ecos or --without-ecos was given.
2700 if test "${with_ecos+set}" = set; then
2701   withval="$with_ecos"
2702   TARGET_ECOS="$with_ecos"
2703
2704 fi
2705
2706
2707 addobjs=
2708 CXXINCLUDES=
2709 case "$TARGET_ECOS" in
2710    no)
2711       ;;
2712    *)
2713       cat >> confdefs.h <<\EOF
2714 #define ECOS 1
2715 EOF
2716
2717       CXXINCLUDES="-I${TARGET_ECOS}/include"
2718       addobjs="$addobjs ecos.lo"
2719       ;;
2720 esac
2721
2722
2723
2724
2725
2726 machdep=
2727 case "$host" in
2728 # alpha_mach_dep.s assumes that pointers are not saved in fp registers.
2729 # Gcc on a 21264 can spill pointers to fp registers.  Oops.
2730 # alpha*-*-*)
2731 #    machdep="alpha_mach_dep.lo"
2732 #    ;;
2733  mipstx39-*-elf*)
2734     machdep="mips_ultrix_mach_dep.lo"
2735     cat >> confdefs.h <<\EOF
2736 #define STACKBASE __stackbase
2737 EOF
2738
2739     cat >> confdefs.h <<\EOF
2740 #define DATASTART_IS_ETEXT 1
2741 EOF
2742
2743     ;;
2744  mips-dec-ultrix*)
2745     machdep="mips_ultrix_mach-dep.lo"
2746     ;;
2747  mips-*-*)
2748     machdep="mips_sgi_mach_dep.lo"
2749     cat >> confdefs.h <<\EOF
2750 #define NO_EXECUTE_PERMISSION 1
2751 EOF
2752
2753     ;;
2754  sparc-sun-solaris2.3*)
2755     cat >> confdefs.h <<\EOF
2756 #define SUNOS53_SHARED_LIB 1
2757 EOF
2758
2759     ;;
2760 esac
2761 if test x"$machdep" = x; then
2762    machdep="mach_dep.lo"
2763 fi
2764 addobjs="$addobjs $machdep"
2765
2766
2767 case "$host" in
2768  sparc-sun-solaris2*)
2769     if test "$GCC" = yes; then
2770        new_CFLAGS=
2771        for i in $CFLAGS; do
2772           case "$i" in
2773            -O*)
2774               ;;
2775            *)
2776               new_CFLAGS="$new_CFLAGS $i"
2777               ;;
2778           esac
2779        done
2780        CFLAGS="$new_CFLAGS"
2781     fi
2782     ;;
2783 esac
2784
2785 MY_CFLAGS="$CFLAGS"
2786
2787
2788 cat >> confdefs.h <<\EOF
2789 #define SILENT 1
2790 EOF
2791
2792 cat >> confdefs.h <<\EOF
2793 #define NO_SIGNALS 1
2794 EOF
2795
2796 cat >> confdefs.h <<\EOF
2797 #define JAVA_FINALIZATION 1
2798 EOF
2799
2800 cat >> confdefs.h <<\EOF
2801 #define GC_GCJ_SUPPORT 1
2802 EOF
2803
2804
2805 if test -n "${with_cross_host}"; then
2806    cat >> confdefs.h <<\EOF
2807 #define NO_SIGSET 1
2808 EOF
2809
2810    cat >> confdefs.h <<\EOF
2811 #define NO_CLOCK 1
2812 EOF
2813
2814    cat >> confdefs.h <<\EOF
2815 #define SMALL_CONFIG 1
2816 EOF
2817
2818    cat >> confdefs.h <<\EOF
2819 #define NO_DEBUGGING 1
2820 EOF
2821
2822 fi
2823
2824
2825
2826 if test -z "$with_cross_host"; then
2827   USE_LIBDIR_TRUE=
2828   USE_LIBDIR_FALSE='#'
2829 else
2830   USE_LIBDIR_TRUE='#'
2831   USE_LIBDIR_FALSE=
2832 fi
2833
2834 if test "${multilib}" = "yes"; then
2835   multilib_arg="--enable-multilib"
2836 else
2837   multilib_arg=
2838 fi
2839
2840 trap '' 1 2 15
2841 cat > confcache <<\EOF
2842 # This file is a shell script that caches the results of configure
2843 # tests run on this system so they can be shared between configure
2844 # scripts and configure runs.  It is not useful on other systems.
2845 # If it contains results you don't want to keep, you may remove or edit it.
2846 #
2847 # By default, configure uses ./config.cache as the cache file,
2848 # creating it if it does not exist already.  You can give configure
2849 # the --cache-file=FILE option to use a different cache file; that is
2850 # what configure does when it calls configure scripts in
2851 # subdirectories, so they share the cache.
2852 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2853 # config.status only pays attention to the cache file if you give it the
2854 # --recheck option to rerun configure.
2855 #
2856 EOF
2857 # The following way of writing the cache mishandles newlines in values,
2858 # but we know of no workaround that is simple, portable, and efficient.
2859 # So, don't put newlines in cache variables' values.
2860 # Ultrix sh set writes to stderr and can't be redirected directly,
2861 # and sets the high bit in the cache file unless we assign to the vars.
2862 (set) 2>&1 |
2863   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2864   *ac_space=\ *)
2865     # `set' does not quote correctly, so add quotes (double-quote substitution
2866     # turns \\\\ into \\, and sed turns \\ into \).
2867     sed -n \
2868       -e "s/'/'\\\\''/g" \
2869       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2870     ;;
2871   *)
2872     # `set' quotes correctly as required by POSIX, so do not add quotes.
2873     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2874     ;;
2875   esac >> confcache
2876 if cmp -s $cache_file confcache; then
2877   :
2878 else
2879   if test -w $cache_file; then
2880     echo "updating cache $cache_file"
2881     cat confcache > $cache_file
2882   else
2883     echo "not updating unwritable cache $cache_file"
2884   fi
2885 fi
2886 rm -f confcache
2887
2888 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2889
2890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2891 # Let make expand exec_prefix.
2892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2893
2894 # Any assignment to VPATH causes Sun make to only execute
2895 # the first set of double-colon rules, so remove it if not needed.
2896 # If there is a colon in the path, we need to keep it.
2897 if test "x$srcdir" = x.; then
2898   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2899 fi
2900
2901 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2902
2903 # Transform confdefs.h into DEFS.
2904 # Protect against shell expansion while executing Makefile rules.
2905 # Protect against Makefile macro expansion.
2906 cat > conftest.defs <<\EOF
2907 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2908 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2909 s%\[%\\&%g
2910 s%\]%\\&%g
2911 s%\$%$$%g
2912 EOF
2913 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2914 rm -f conftest.defs
2915
2916
2917 # Without the "./", some shells look in PATH for config.status.
2918 : ${CONFIG_STATUS=./config.status}
2919
2920 echo creating $CONFIG_STATUS
2921 rm -f $CONFIG_STATUS
2922 cat > $CONFIG_STATUS <<EOF
2923 #! /bin/sh
2924 # Generated automatically by configure.
2925 # Run this file to recreate the current configuration.
2926 # This directory was configured as follows,
2927 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2928 #
2929 # $0 $ac_configure_args
2930 #
2931 # Compiler output produced by configure, useful for debugging
2932 # configure, is in ./config.log if it exists.
2933
2934 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2935 for ac_option
2936 do
2937   case "\$ac_option" in
2938   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2939     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2940     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2941   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2942     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2943     exit 0 ;;
2944   -help | --help | --hel | --he | --h)
2945     echo "\$ac_cs_usage"; exit 0 ;;
2946   *) echo "\$ac_cs_usage"; exit 1 ;;
2947   esac
2948 done
2949
2950 ac_given_srcdir=$srcdir
2951 ac_given_INSTALL="$INSTALL"
2952
2953 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2954 EOF
2955 cat >> $CONFIG_STATUS <<EOF
2956
2957 # Protect against being on the right side of a sed subst in config.status.
2958 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2959  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2960 $ac_vpsub
2961 $extrasub
2962 s%@SHELL@%$SHELL%g
2963 s%@CFLAGS@%$CFLAGS%g
2964 s%@CPPFLAGS@%$CPPFLAGS%g
2965 s%@CXXFLAGS@%$CXXFLAGS%g
2966 s%@FFLAGS@%$FFLAGS%g
2967 s%@DEFS@%$DEFS%g
2968 s%@LDFLAGS@%$LDFLAGS%g
2969 s%@LIBS@%$LIBS%g
2970 s%@exec_prefix@%$exec_prefix%g
2971 s%@prefix@%$prefix%g
2972 s%@program_transform_name@%$program_transform_name%g
2973 s%@bindir@%$bindir%g
2974 s%@sbindir@%$sbindir%g
2975 s%@libexecdir@%$libexecdir%g
2976 s%@datadir@%$datadir%g
2977 s%@sysconfdir@%$sysconfdir%g
2978 s%@sharedstatedir@%$sharedstatedir%g
2979 s%@localstatedir@%$localstatedir%g
2980 s%@libdir@%$libdir%g
2981 s%@includedir@%$includedir%g
2982 s%@oldincludedir@%$oldincludedir%g
2983 s%@infodir@%$infodir%g
2984 s%@mandir@%$mandir%g
2985 s%@host@%$host%g
2986 s%@host_alias@%$host_alias%g
2987 s%@host_cpu@%$host_cpu%g
2988 s%@host_vendor@%$host_vendor%g
2989 s%@host_os@%$host_os%g
2990 s%@target@%$target%g
2991 s%@target_alias@%$target_alias%g
2992 s%@target_cpu@%$target_cpu%g
2993 s%@target_vendor@%$target_vendor%g
2994 s%@target_os@%$target_os%g
2995 s%@build@%$build%g
2996 s%@build_alias@%$build_alias%g
2997 s%@build_cpu@%$build_cpu%g
2998 s%@build_vendor@%$build_vendor%g
2999 s%@build_os@%$build_os%g
3000 s%@boehm_gc_basedir@%$boehm_gc_basedir%g
3001 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3002 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3003 s%@INSTALL_DATA@%$INSTALL_DATA%g
3004 s%@PACKAGE@%$PACKAGE%g
3005 s%@VERSION@%$VERSION%g
3006 s%@ACLOCAL@%$ACLOCAL%g
3007 s%@AUTOCONF@%$AUTOCONF%g
3008 s%@AUTOMAKE@%$AUTOMAKE%g
3009 s%@AUTOHEADER@%$AUTOHEADER%g
3010 s%@MAKEINFO@%$MAKEINFO%g
3011 s%@SET_MAKE@%$SET_MAKE%g
3012 s%@CC@%$CC%g
3013 s%@CXX@%$CXX%g
3014 s%@AS@%$AS%g
3015 s%@AR@%$AR%g
3016 s%@RANLIB@%$RANLIB%g
3017 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3018 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3019 s%@MAINT@%$MAINT%g
3020 s%@EXEEXT@%$EXEEXT%g
3021 s%@BOEHM_GC_CFLAGS@%$BOEHM_GC_CFLAGS%g
3022 s%@LN_S@%$LN_S%g
3023 s%@OBJEXT@%$OBJEXT%g
3024 s%@STRIP@%$STRIP%g
3025 s%@LIBTOOL@%$LIBTOOL%g
3026 s%@CXXCPP@%$CXXCPP%g
3027 s%@THREADLIBS@%$THREADLIBS%g
3028 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3029 s%@target_all@%$target_all%g
3030 s%@INCLUDES@%$INCLUDES%g
3031 s%@CXXINCLUDES@%$CXXINCLUDES%g
3032 s%@addobjs@%$addobjs%g
3033 s%@MY_CFLAGS@%$MY_CFLAGS%g
3034 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3035 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3036
3037 CEOF
3038 EOF
3039
3040 cat >> $CONFIG_STATUS <<\EOF
3041
3042 # Split the substitutions into bite-sized pieces for seds with
3043 # small command number limits, like on Digital OSF/1 and HP-UX.
3044 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3045 ac_file=1 # Number of current file.
3046 ac_beg=1 # First line for current file.
3047 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3048 ac_more_lines=:
3049 ac_sed_cmds=""
3050 while $ac_more_lines; do
3051   if test $ac_beg -gt 1; then
3052     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3053   else
3054     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3055   fi
3056   if test ! -s conftest.s$ac_file; then
3057     ac_more_lines=false
3058     rm -f conftest.s$ac_file
3059   else
3060     if test -z "$ac_sed_cmds"; then
3061       ac_sed_cmds="sed -f conftest.s$ac_file"
3062     else
3063       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3064     fi
3065     ac_file=`expr $ac_file + 1`
3066     ac_beg=$ac_end
3067     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3068   fi
3069 done
3070 if test -z "$ac_sed_cmds"; then
3071   ac_sed_cmds=cat
3072 fi
3073 EOF
3074
3075 cat >> $CONFIG_STATUS <<EOF
3076
3077 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3078 EOF
3079 cat >> $CONFIG_STATUS <<\EOF
3080 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3081   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3082   case "$ac_file" in
3083   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3084        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3085   *) ac_file_in="${ac_file}.in" ;;
3086   esac
3087
3088   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3089
3090   # Remove last slash and all that follows it.  Not all systems have dirname.
3091   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3092   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3093     # The file is in a subdirectory.
3094     test ! -d "$ac_dir" && mkdir "$ac_dir"
3095     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3096     # A "../" for each directory in $ac_dir_suffix.
3097     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3098   else
3099     ac_dir_suffix= ac_dots=
3100   fi
3101
3102   case "$ac_given_srcdir" in
3103   .)  srcdir=.
3104       if test -z "$ac_dots"; then top_srcdir=.
3105       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3106   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3107   *) # Relative path.
3108     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3109     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3110   esac
3111
3112   case "$ac_given_INSTALL" in
3113   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3114   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3115   esac
3116
3117   echo creating "$ac_file"
3118   rm -f "$ac_file"
3119   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3120   case "$ac_file" in
3121   *Makefile*) ac_comsub="1i\\
3122 # $configure_input" ;;
3123   *) ac_comsub= ;;
3124   esac
3125
3126   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3127   sed -e "$ac_comsub
3128 s%@configure_input@%$configure_input%g
3129 s%@srcdir@%$srcdir%g
3130 s%@top_srcdir@%$top_srcdir%g
3131 s%@INSTALL@%$INSTALL%g
3132 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3133 fi; done
3134 rm -f conftest.s*
3135
3136 EOF
3137 cat >> $CONFIG_STATUS <<EOF
3138 srcdir=${srcdir}
3139 host=${host}
3140 target=${target}
3141 with_multisubdir=${with_multisubdir}
3142 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3143 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3144 boehm_gc_basedir=${boehm_gc_basedir}
3145 CC="${CC}"
3146 DEFS="$DEFS"
3147
3148 EOF
3149 cat >> $CONFIG_STATUS <<\EOF
3150
3151 echo "$DEFS" > boehm-cflags
3152
3153 if test -n "$CONFIG_FILES"; then
3154   ac_file=Makefile . ${boehm_gc_basedir}/../config-ml.in
3155 fi
3156 exit 0
3157 EOF
3158 chmod +x $CONFIG_STATUS
3159 rm -fr confdefs* $ac_clean_files
3160 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3161