OSDN Git Service

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