OSDN Git Service

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