OSDN Git Service

* libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
[pf3gnuchains/gcc-fork.git] / libjava / 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   --with-target-subdir=SUBDIR
16                           configuring in a subdirectory"
17 ac_help="$ac_help
18   --with-cross-host=HOST  configuring with a cross compiler"
19 ac_help="$ac_help
20   --enable-multilib       build many library versions (default)"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  force libtool not to do file locking"
34 ac_help="$ac_help
35   --enable-fast-character prefer speed over size for Character"
36 ac_help="$ac_help
37   --enable-libgcj-debug   enable runtime debugging code"
38 ac_help="$ac_help
39   --enable-interpreter    enable interpreter"
40 ac_help="$ac_help
41   --with-ecos             enable runtime eCos target support"
42 ac_help="$ac_help
43   --with-system-zlib      use installed libz"
44 ac_help="$ac_help
45   --enable-java-gc=TYPE   choose garbage collector [boehm]"
46 ac_help="$ac_help
47   --enable-threads=TYPE   choose threading package"
48
49 # Initialize some variables set by options.
50 # The variables have the same names as the options, with
51 # dashes changed to underlines.
52 build=NONE
53 cache_file=./config.cache
54 exec_prefix=NONE
55 host=NONE
56 no_create=
57 nonopt=NONE
58 no_recursion=
59 prefix=NONE
60 program_prefix=NONE
61 program_suffix=NONE
62 program_transform_name=s,x,x,
63 silent=
64 site=
65 srcdir=
66 target=NONE
67 verbose=
68 x_includes=NONE
69 x_libraries=NONE
70 bindir='${exec_prefix}/bin'
71 sbindir='${exec_prefix}/sbin'
72 libexecdir='${exec_prefix}/libexec'
73 datadir='${prefix}/share'
74 sysconfdir='${prefix}/etc'
75 sharedstatedir='${prefix}/com'
76 localstatedir='${prefix}/var'
77 libdir='${exec_prefix}/lib'
78 includedir='${prefix}/include'
79 oldincludedir='/usr/include'
80 infodir='${prefix}/info'
81 mandir='${prefix}/man'
82
83 # Initialize some other variables.
84 subdirs=
85 MFLAGS= MAKEFLAGS=
86 SHELL=${CONFIG_SHELL-/bin/sh}
87 # Maximum number of lines to put in a shell here document.
88 ac_max_here_lines=12
89
90 ac_prev=
91 for ac_option
92 do
93
94   # If the previous option needs an argument, assign it.
95   if test -n "$ac_prev"; then
96     eval "$ac_prev=\$ac_option"
97     ac_prev=
98     continue
99   fi
100
101   case "$ac_option" in
102   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103   *) ac_optarg= ;;
104   esac
105
106   # Accept the important Cygnus configure options, so we can diagnose typos.
107
108   case "$ac_option" in
109
110   -bindir | --bindir | --bindi | --bind | --bin | --bi)
111     ac_prev=bindir ;;
112   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
113     bindir="$ac_optarg" ;;
114
115   -build | --build | --buil | --bui | --bu)
116     ac_prev=build ;;
117   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
118     build="$ac_optarg" ;;
119
120   -cache-file | --cache-file | --cache-fil | --cache-fi \
121   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
122     ac_prev=cache_file ;;
123   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
124   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
125     cache_file="$ac_optarg" ;;
126
127   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
128     ac_prev=datadir ;;
129   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
130   | --da=*)
131     datadir="$ac_optarg" ;;
132
133   -disable-* | --disable-*)
134     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
135     # Reject names that are not valid shell variable names.
136     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
137       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138     fi
139     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140     eval "enable_${ac_feature}=no" ;;
141
142   -enable-* | --enable-*)
143     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
144     # Reject names that are not valid shell variable names.
145     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
146       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147     fi
148     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149     case "$ac_option" in
150       *=*) ;;
151       *) ac_optarg=yes ;;
152     esac
153     eval "enable_${ac_feature}='$ac_optarg'" ;;
154
155   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
156   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
157   | --exec | --exe | --ex)
158     ac_prev=exec_prefix ;;
159   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
160   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
161   | --exec=* | --exe=* | --ex=*)
162     exec_prefix="$ac_optarg" ;;
163
164   -gas | --gas | --ga | --g)
165     # Obsolete; use --with-gas.
166     with_gas=yes ;;
167
168   -help | --help | --hel | --he)
169     # Omit some internal or obsolete options to make the list less imposing.
170     # This message is too long to be a string in the A/UX 3.1 sh.
171     cat << EOF
172 Usage: configure [options] [host]
173 Options: [defaults in brackets after descriptions]
174 Configuration:
175   --cache-file=FILE       cache test results in FILE
176   --help                  print this message
177   --no-create             do not create output files
178   --quiet, --silent       do not print \`checking...' messages
179   --version               print the version of autoconf that created configure
180 Directory and file names:
181   --prefix=PREFIX         install architecture-independent files in PREFIX
182                           [$ac_default_prefix]
183   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
184                           [same as prefix]
185   --bindir=DIR            user executables in DIR [EPREFIX/bin]
186   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
187   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
188   --datadir=DIR           read-only architecture-independent data in DIR
189                           [PREFIX/share]
190   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
191   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
192                           [PREFIX/com]
193   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
194   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
195   --includedir=DIR        C header files in DIR [PREFIX/include]
196   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
197   --infodir=DIR           info documentation in DIR [PREFIX/info]
198   --mandir=DIR            man documentation in DIR [PREFIX/man]
199   --srcdir=DIR            find the sources in DIR [configure dir or ..]
200   --program-prefix=PREFIX prepend PREFIX to installed program names
201   --program-suffix=SUFFIX append SUFFIX to installed program names
202   --program-transform-name=PROGRAM
203                           run sed PROGRAM on installed program names
204 EOF
205     cat << EOF
206 Host type:
207   --build=BUILD           configure for building on BUILD [BUILD=HOST]
208   --host=HOST             configure for HOST [guessed]
209   --target=TARGET         configure for TARGET [TARGET=HOST]
210 Features and packages:
211   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
212   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
213   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
214   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
215   --x-includes=DIR        X include files are in DIR
216   --x-libraries=DIR       X library files are in DIR
217 EOF
218     if test -n "$ac_help"; then
219       echo "--enable and --with options recognized:$ac_help"
220     fi
221     exit 0 ;;
222
223   -host | --host | --hos | --ho)
224     ac_prev=host ;;
225   -host=* | --host=* | --hos=* | --ho=*)
226     host="$ac_optarg" ;;
227
228   -includedir | --includedir | --includedi | --included | --include \
229   | --includ | --inclu | --incl | --inc)
230     ac_prev=includedir ;;
231   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
232   | --includ=* | --inclu=* | --incl=* | --inc=*)
233     includedir="$ac_optarg" ;;
234
235   -infodir | --infodir | --infodi | --infod | --info | --inf)
236     ac_prev=infodir ;;
237   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
238     infodir="$ac_optarg" ;;
239
240   -libdir | --libdir | --libdi | --libd)
241     ac_prev=libdir ;;
242   -libdir=* | --libdir=* | --libdi=* | --libd=*)
243     libdir="$ac_optarg" ;;
244
245   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
246   | --libexe | --libex | --libe)
247     ac_prev=libexecdir ;;
248   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
249   | --libexe=* | --libex=* | --libe=*)
250     libexecdir="$ac_optarg" ;;
251
252   -localstatedir | --localstatedir | --localstatedi | --localstated \
253   | --localstate | --localstat | --localsta | --localst \
254   | --locals | --local | --loca | --loc | --lo)
255     ac_prev=localstatedir ;;
256   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
257   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
258   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
259     localstatedir="$ac_optarg" ;;
260
261   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
262     ac_prev=mandir ;;
263   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
264     mandir="$ac_optarg" ;;
265
266   -nfp | --nfp | --nf)
267     # Obsolete; use --without-fp.
268     with_fp=no ;;
269
270   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271   | --no-cr | --no-c)
272     no_create=yes ;;
273
274   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
275   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
276     no_recursion=yes ;;
277
278   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
279   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
280   | --oldin | --oldi | --old | --ol | --o)
281     ac_prev=oldincludedir ;;
282   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
283   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
284   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
285     oldincludedir="$ac_optarg" ;;
286
287   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
288     ac_prev=prefix ;;
289   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
290     prefix="$ac_optarg" ;;
291
292   -program-prefix | --program-prefix | --program-prefi | --program-pref \
293   | --program-pre | --program-pr | --program-p)
294     ac_prev=program_prefix ;;
295   -program-prefix=* | --program-prefix=* | --program-prefi=* \
296   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
297     program_prefix="$ac_optarg" ;;
298
299   -program-suffix | --program-suffix | --program-suffi | --program-suff \
300   | --program-suf | --program-su | --program-s)
301     ac_prev=program_suffix ;;
302   -program-suffix=* | --program-suffix=* | --program-suffi=* \
303   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
304     program_suffix="$ac_optarg" ;;
305
306   -program-transform-name | --program-transform-name \
307   | --program-transform-nam | --program-transform-na \
308   | --program-transform-n | --program-transform- \
309   | --program-transform | --program-transfor \
310   | --program-transfo | --program-transf \
311   | --program-trans | --program-tran \
312   | --progr-tra | --program-tr | --program-t)
313     ac_prev=program_transform_name ;;
314   -program-transform-name=* | --program-transform-name=* \
315   | --program-transform-nam=* | --program-transform-na=* \
316   | --program-transform-n=* | --program-transform-=* \
317   | --program-transform=* | --program-transfor=* \
318   | --program-transfo=* | --program-transf=* \
319   | --program-trans=* | --program-tran=* \
320   | --progr-tra=* | --program-tr=* | --program-t=*)
321     program_transform_name="$ac_optarg" ;;
322
323   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
324   | -silent | --silent | --silen | --sile | --sil)
325     silent=yes ;;
326
327   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
328     ac_prev=sbindir ;;
329   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
330   | --sbi=* | --sb=*)
331     sbindir="$ac_optarg" ;;
332
333   -sharedstatedir | --sharedstatedir | --sharedstatedi \
334   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
335   | --sharedst | --shareds | --shared | --share | --shar \
336   | --sha | --sh)
337     ac_prev=sharedstatedir ;;
338   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
339   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
340   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
341   | --sha=* | --sh=*)
342     sharedstatedir="$ac_optarg" ;;
343
344   -site | --site | --sit)
345     ac_prev=site ;;
346   -site=* | --site=* | --sit=*)
347     site="$ac_optarg" ;;
348
349   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
350     ac_prev=srcdir ;;
351   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
352     srcdir="$ac_optarg" ;;
353
354   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
355   | --syscon | --sysco | --sysc | --sys | --sy)
356     ac_prev=sysconfdir ;;
357   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
358   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
359     sysconfdir="$ac_optarg" ;;
360
361   -target | --target | --targe | --targ | --tar | --ta | --t)
362     ac_prev=target ;;
363   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364     target="$ac_optarg" ;;
365
366   -v | -verbose | --verbose | --verbos | --verbo | --verb)
367     verbose=yes ;;
368
369   -version | --version | --versio | --versi | --vers)
370     echo "configure generated by autoconf version 2.13"
371     exit 0 ;;
372
373   -with-* | --with-*)
374     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375     # Reject names that are not valid shell variable names.
376     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378     fi
379     ac_package=`echo $ac_package| sed 's/-/_/g'`
380     case "$ac_option" in
381       *=*) ;;
382       *) ac_optarg=yes ;;
383     esac
384     eval "with_${ac_package}='$ac_optarg'" ;;
385
386   -without-* | --without-*)
387     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388     # Reject names that are not valid shell variable names.
389     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391     fi
392     ac_package=`echo $ac_package| sed 's/-/_/g'`
393     eval "with_${ac_package}=no" ;;
394
395   --x)
396     # Obsolete; use --with-x.
397     with_x=yes ;;
398
399   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
400   | --x-incl | --x-inc | --x-in | --x-i)
401     ac_prev=x_includes ;;
402   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
403   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
404     x_includes="$ac_optarg" ;;
405
406   -x-libraries | --x-libraries | --x-librarie | --x-librari \
407   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
408     ac_prev=x_libraries ;;
409   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
410   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
411     x_libraries="$ac_optarg" ;;
412
413   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414     ;;
415
416   *)
417     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418       echo "configure: warning: $ac_option: invalid host type" 1>&2
419     fi
420     if test "x$nonopt" != xNONE; then
421       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422     fi
423     nonopt="$ac_option"
424     ;;
425
426   esac
427 done
428
429 if test -n "$ac_prev"; then
430   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 fi
432
433 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
434
435 # File descriptor usage:
436 # 0 standard input
437 # 1 file creation
438 # 2 errors and warnings
439 # 3 some systems may open it to /dev/tty
440 # 4 used on the Kubota Titan
441 # 6 checking for... messages and results
442 # 5 compiler messages saved in config.log
443 if test "$silent" = yes; then
444   exec 6>/dev/null
445 else
446   exec 6>&1
447 fi
448 exec 5>./config.log
449
450 echo "\
451 This file contains any messages produced by compilers while
452 running configure, to aid debugging if configure makes a mistake.
453 " 1>&5
454
455 # Strip out --no-create and --no-recursion so they do not pile up.
456 # Also quote any args containing shell metacharacters.
457 ac_configure_args=
458 for ac_arg
459 do
460   case "$ac_arg" in
461   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
462   | --no-cr | --no-c) ;;
463   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
464   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
465   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
467   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
468   esac
469 done
470
471 # NLS nuisances.
472 # Only set these to C if already set.  These must not be set unconditionally
473 # because not all systems understand e.g. LANG=C (notably SCO).
474 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475 # Non-C LC_CTYPE values break the ctype check.
476 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
477 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
480
481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
482 rm -rf conftest* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 echo > confdefs.h
485
486 # A filename unique to this package, relative to the directory that
487 # configure is in, which we can look for to find out if srcdir is correct.
488 ac_unique_file=java/lang/System.java
489
490 # Find the source files, if location was not specified.
491 if test -z "$srcdir"; then
492   ac_srcdir_defaulted=yes
493   # Try the directory containing this script, then its parent.
494   ac_prog=$0
495   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
497   srcdir=$ac_confdir
498   if test ! -r $srcdir/$ac_unique_file; then
499     srcdir=..
500   fi
501 else
502   ac_srcdir_defaulted=no
503 fi
504 if test ! -r $srcdir/$ac_unique_file; then
505   if test "$ac_srcdir_defaulted" = yes; then
506     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
507   else
508     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509   fi
510 fi
511 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
512
513 # Prefer explicitly selected file to automatically selected ones.
514 if test -z "$CONFIG_SITE"; then
515   if test "x$prefix" != xNONE; then
516     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
517   else
518     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519   fi
520 fi
521 for ac_site_file in $CONFIG_SITE; do
522   if test -r "$ac_site_file"; then
523     echo "loading site script $ac_site_file"
524     . "$ac_site_file"
525   fi
526 done
527
528 if test -r "$cache_file"; then
529   echo "loading cache $cache_file"
530   . $cache_file
531 else
532   echo "creating cache $cache_file"
533   > $cache_file
534 fi
535
536 ac_ext=c
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp='$CPP $CPPFLAGS'
539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling=$ac_cv_prog_cc_cross
542
543 ac_exeext=
544 ac_objext=o
545 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
546   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548     ac_n= ac_c='
549 ' ac_t='        '
550   else
551     ac_n=-n ac_c= ac_t=
552   fi
553 else
554   ac_n= ac_c='\c' ac_t=
555 fi
556
557
558
559 ac_aux_dir=
560 for ac_dir in .. $srcdir/..; do
561   if test -f $ac_dir/install-sh; then
562     ac_aux_dir=$ac_dir
563     ac_install_sh="$ac_aux_dir/install-sh -c"
564     break
565   elif test -f $ac_dir/install.sh; then
566     ac_aux_dir=$ac_dir
567     ac_install_sh="$ac_aux_dir/install.sh -c"
568     break
569   fi
570 done
571 if test -z "$ac_aux_dir"; then
572   { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
573 fi
574 ac_config_guess=$ac_aux_dir/config.guess
575 ac_config_sub=$ac_aux_dir/config.sub
576 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577
578
579
580 # Do some error checking and defaulting for the host and target type.
581 # The inputs are:
582 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
583 #
584 # The rules are:
585 # 1. You are not allowed to specify --host, --target, and nonopt at the
586 #    same time.
587 # 2. Host defaults to nonopt.
588 # 3. If nonopt is not specified, then host defaults to the current host,
589 #    as determined by config.guess.
590 # 4. Target and build default to nonopt.
591 # 5. If nonopt is not specified, then target and build default to host.
592
593 # The aliases save the names the user supplied, while $host etc.
594 # will get canonicalized.
595 case $host---$target---$nonopt in
596 NONE---*---* | *---NONE---* | *---*---NONE) ;;
597 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 esac
599
600
601 # Make sure we can run config.sub.
602 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
603 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
604 fi
605
606 echo $ac_n "checking host system type""... $ac_c" 1>&6
607 echo "configure:608: checking host system type" >&5
608
609 host_alias=$host
610 case "$host_alias" in
611 NONE)
612   case $nonopt in
613   NONE)
614     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
615     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
616     fi ;;
617   *) host_alias=$nonopt ;;
618   esac ;;
619 esac
620
621 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
622 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$host" 1>&6
626
627 echo $ac_n "checking target system type""... $ac_c" 1>&6
628 echo "configure:629: checking target system type" >&5
629
630 target_alias=$target
631 case "$target_alias" in
632 NONE)
633   case $nonopt in
634   NONE) target_alias=$host_alias ;;
635   *) target_alias=$nonopt ;;
636   esac ;;
637 esac
638
639 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
640 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$target" 1>&6
644
645 echo $ac_n "checking build system type""... $ac_c" 1>&6
646 echo "configure:647: checking build system type" >&5
647
648 build_alias=$build
649 case "$build_alias" in
650 NONE)
651   case $nonopt in
652   NONE) build_alias=$host_alias ;;
653   *) build_alias=$nonopt ;;
654   esac ;;
655 esac
656
657 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
658 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
661 echo "$ac_t""$build" 1>&6
662
663 test "$host_alias" != "$target_alias" &&
664   test "$program_prefix$program_suffix$program_transform_name" = \
665     NONENONEs,x,x, &&
666   program_prefix=${target_alias}-
667
668
669 # Check whether --with-target-subdir or --without-target-subdir was given.
670 if test "${with_target_subdir+set}" = set; then
671   withval="$with_target_subdir"
672   :
673 fi
674
675 # Check whether --with-cross-host or --without-cross-host was given.
676 if test "${with_cross_host+set}" = set; then
677   withval="$with_cross_host"
678   :
679 fi
680
681
682 # Find a good install program.  We prefer a C program (faster),
683 # so one script is as good as another.  But avoid the broken or
684 # incompatible versions:
685 # SysV /etc/install, /usr/sbin/install
686 # SunOS /usr/etc/install
687 # IRIX /sbin/install
688 # AIX /bin/install
689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
692 # ./install, which can be erroneously created by make from ./install.sh.
693 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
694 echo "configure:695: checking for a BSD compatible install" >&5
695 if test -z "$INSTALL"; then
696 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
697   echo $ac_n "(cached) $ac_c" 1>&6
698 else
699     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
700   for ac_dir in $PATH; do
701     # Account for people who put trailing slashes in PATH elements.
702     case "$ac_dir/" in
703     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
704     *)
705       # OSF1 and SCO ODT 3.0 have their own names for install.
706       # Don't use installbsd from OSF since it installs stuff as root
707       # by default.
708       for ac_prog in ginstall scoinst install; do
709         if test -f $ac_dir/$ac_prog; then
710           if test $ac_prog = install &&
711             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
712             # AIX install.  It has an incompatible calling convention.
713             :
714           else
715             ac_cv_path_install="$ac_dir/$ac_prog -c"
716             break 2
717           fi
718         fi
719       done
720       ;;
721     esac
722   done
723   IFS="$ac_save_IFS"
724
725 fi
726   if test "${ac_cv_path_install+set}" = set; then
727     INSTALL="$ac_cv_path_install"
728   else
729     # As a last resort, use the slow shell script.  We don't cache a
730     # path for INSTALL within a source directory, because that will
731     # break other packages using the cache if that directory is
732     # removed, or if the path is relative.
733     INSTALL="$ac_install_sh"
734   fi
735 fi
736 echo "$ac_t""$INSTALL" 1>&6
737
738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
739 # It thinks the first close brace ends the variable substitution.
740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
741
742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
743
744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
745
746 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
747 echo "configure:748: checking whether build environment is sane" >&5
748 # Just in case
749 sleep 1
750 echo timestamp > conftestfile
751 # Do `set' in a subshell so we don't clobber the current shell's
752 # arguments.  Must try -L first in case configure is actually a
753 # symlink; some systems play weird games with the mod time of symlinks
754 # (eg FreeBSD returns the mod time of the symlink's containing
755 # directory).
756 if (
757    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
758    if test "$*" = "X"; then
759       # -L didn't work.
760       set X `ls -t $srcdir/configure conftestfile`
761    fi
762    if test "$*" != "X $srcdir/configure conftestfile" \
763       && test "$*" != "X conftestfile $srcdir/configure"; then
764
765       # If neither matched, then we have a broken ls.  This can happen
766       # if, for instance, CONFIG_SHELL is bash and it inherits a
767       # broken ls alias from the environment.  This has actually
768       # happened.  Such a system could not be considered "sane".
769       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
770 alias in your environment" 1>&2; exit 1; }
771    fi
772
773    test "$2" = conftestfile
774    )
775 then
776    # Ok.
777    :
778 else
779    { echo "configure: error: newly created file is older than distributed files!
780 Check your system clock" 1>&2; exit 1; }
781 fi
782 rm -f conftest*
783 echo "$ac_t""yes" 1>&6
784 if test "$program_transform_name" = s,x,x,; then
785   program_transform_name=
786 else
787   # Double any \ or $.  echo might interpret backslashes.
788   cat <<\EOF_SED > conftestsed
789 s,\\,\\\\,g; s,\$,$$,g
790 EOF_SED
791   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
792   rm -f conftestsed
793 fi
794 test "$program_prefix" != NONE &&
795   program_transform_name="s,^,${program_prefix},; $program_transform_name"
796 # Use a double $ so make ignores it.
797 test "$program_suffix" != NONE &&
798   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
799
800 # sed with no file args requires a program.
801 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
802
803 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${MAKE-make} sets \${MAKE}" >&5
805 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
806 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
807   echo $ac_n "(cached) $ac_c" 1>&6
808 else
809   cat > conftestmake <<\EOF
810 all:
811         @echo 'ac_maketemp="${MAKE}"'
812 EOF
813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
814 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
815 if test -n "$ac_maketemp"; then
816   eval ac_cv_prog_make_${ac_make}_set=yes
817 else
818   eval ac_cv_prog_make_${ac_make}_set=no
819 fi
820 rm -f conftestmake
821 fi
822 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
823   echo "$ac_t""yes" 1>&6
824   SET_MAKE=
825 else
826   echo "$ac_t""no" 1>&6
827   SET_MAKE="MAKE=${MAKE-make}"
828 fi
829
830 if test $host != $build; then
831   ac_tool_prefix=${host_alias}-
832 else
833   ac_tool_prefix=
834 fi
835
836 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
837 echo "configure:838: checking for Cygwin environment" >&5
838 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
839   echo $ac_n "(cached) $ac_c" 1>&6
840 else
841   cat > conftest.$ac_ext <<EOF
842 #line 843 "configure"
843 #include "confdefs.h"
844
845 int main() {
846
847 #ifndef __CYGWIN__
848 #define __CYGWIN__ __CYGWIN32__
849 #endif
850 return __CYGWIN__;
851 ; return 0; }
852 EOF
853 if { (eval echo configure:854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
854   rm -rf conftest*
855   ac_cv_cygwin=yes
856 else
857   echo "configure: failed program was:" >&5
858   cat conftest.$ac_ext >&5
859   rm -rf conftest*
860   ac_cv_cygwin=no
861 fi
862 rm -f conftest*
863 rm -f conftest*
864 fi
865
866 echo "$ac_t""$ac_cv_cygwin" 1>&6
867 CYGWIN=
868 test "$ac_cv_cygwin" = yes && CYGWIN=yes
869 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
870 echo "configure:871: checking for mingw32 environment" >&5
871 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
872   echo $ac_n "(cached) $ac_c" 1>&6
873 else
874   cat > conftest.$ac_ext <<EOF
875 #line 876 "configure"
876 #include "confdefs.h"
877
878 int main() {
879 return __MINGW32__;
880 ; return 0; }
881 EOF
882 if { (eval echo configure:883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
883   rm -rf conftest*
884   ac_cv_mingw32=yes
885 else
886   echo "configure: failed program was:" >&5
887   cat conftest.$ac_ext >&5
888   rm -rf conftest*
889   ac_cv_mingw32=no
890 fi
891 rm -f conftest*
892 rm -f conftest*
893 fi
894
895 echo "$ac_t""$ac_cv_mingw32" 1>&6
896 MINGW32=
897 test "$ac_cv_mingw32" = yes && MINGW32=yes
898
899 # Check whether --enable-multilib or --disable-multilib was given.
900 if test "${enable_multilib+set}" = set; then
901   enableval="$enable_multilib"
902   case "${enableval}" in
903   yes) multilib=yes ;;
904   no)  multilib=no ;;
905   *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
906  esac
907 else
908   multilib=yes
909 fi
910
911
912 if test "${srcdir}" = "."; then
913   if test "${with_target_subdir}" != "."; then
914     libgcj_basedir="${srcdir}/${with_multisrctop}../."
915   else
916     libgcj_basedir="${srcdir}/${with_multisrctop}."
917   fi
918 else
919   libgcj_basedir="${srcdir}/."
920 fi
921
922
923
924 # Make sure we can run config.sub.
925 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
926 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
927 fi
928
929 echo $ac_n "checking host system type""... $ac_c" 1>&6
930 echo "configure:931: checking host system type" >&5
931
932 host_alias=$host
933 case "$host_alias" in
934 NONE)
935   case $nonopt in
936   NONE)
937     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
938     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
939     fi ;;
940   *) host_alias=$nonopt ;;
941   esac ;;
942 esac
943
944 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
945 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
946 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
947 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
948 echo "$ac_t""$host" 1>&6
949
950
951 version=0.0.7
952
953 PACKAGE=libjava
954
955 VERSION=$version
956
957 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
958   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
959 fi
960 cat >> confdefs.h <<EOF
961 #define PACKAGE "$PACKAGE"
962 EOF
963
964 cat >> confdefs.h <<EOF
965 #define VERSION "$VERSION"
966 EOF
967
968
969
970 missing_dir=`cd $ac_aux_dir && pwd`
971 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
972 echo "configure:973: checking for working aclocal" >&5
973 # Run test in a subshell; some versions of sh will print an error if
974 # an executable is not found, even if stderr is redirected.
975 # Redirect stdin to placate older versions of autoconf.  Sigh.
976 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
977    ACLOCAL=aclocal
978    echo "$ac_t""found" 1>&6
979 else
980    ACLOCAL="$missing_dir/missing aclocal"
981    echo "$ac_t""missing" 1>&6
982 fi
983
984 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
985 echo "configure:986: checking for working autoconf" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf.  Sigh.
989 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
990    AUTOCONF=autoconf
991    echo "$ac_t""found" 1>&6
992 else
993    AUTOCONF="$missing_dir/missing autoconf"
994    echo "$ac_t""missing" 1>&6
995 fi
996
997 echo $ac_n "checking for working automake""... $ac_c" 1>&6
998 echo "configure:999: checking for working automake" >&5
999 # Run test in a subshell; some versions of sh will print an error if
1000 # an executable is not found, even if stderr is redirected.
1001 # Redirect stdin to placate older versions of autoconf.  Sigh.
1002 if (automake --version) < /dev/null > /dev/null 2>&1; then
1003    AUTOMAKE=automake
1004    echo "$ac_t""found" 1>&6
1005 else
1006    AUTOMAKE="$missing_dir/missing automake"
1007    echo "$ac_t""missing" 1>&6
1008 fi
1009
1010 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1011 echo "configure:1012: checking for working autoheader" >&5
1012 # Run test in a subshell; some versions of sh will print an error if
1013 # an executable is not found, even if stderr is redirected.
1014 # Redirect stdin to placate older versions of autoconf.  Sigh.
1015 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1016    AUTOHEADER=autoheader
1017    echo "$ac_t""found" 1>&6
1018 else
1019    AUTOHEADER="$missing_dir/missing autoheader"
1020    echo "$ac_t""missing" 1>&6
1021 fi
1022
1023 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1024 echo "configure:1025: checking for working makeinfo" >&5
1025 # Run test in a subshell; some versions of sh will print an error if
1026 # an executable is not found, even if stderr is redirected.
1027 # Redirect stdin to placate older versions of autoconf.  Sigh.
1028 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1029    MAKEINFO=makeinfo
1030    echo "$ac_t""found" 1>&6
1031 else
1032    MAKEINFO="$missing_dir/missing makeinfo"
1033    echo "$ac_t""missing" 1>&6
1034 fi
1035
1036
1037
1038 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1039 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1040 # are probably using a cross compiler, which will not be able to fully
1041 # link an executable.  This should really be fixed in autoconf
1042 # itself.
1043
1044
1045
1046 # Extract the first word of "gcc", so it can be a program name with args.
1047 set dummy gcc; ac_word=$2
1048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1049 echo "configure:1050: checking for $ac_word" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1051   echo $ac_n "(cached) $ac_c" 1>&6
1052 else
1053   if test -n "$CC"; then
1054   ac_cv_prog_CC="$CC" # Let the user override the test.
1055 else
1056   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1057   ac_dummy="$PATH"
1058   for ac_dir in $ac_dummy; do
1059     test -z "$ac_dir" && ac_dir=.
1060     if test -f $ac_dir/$ac_word; then
1061       ac_cv_prog_CC="gcc"
1062       break
1063     fi
1064   done
1065   IFS="$ac_save_ifs"
1066 fi
1067 fi
1068 CC="$ac_cv_prog_CC"
1069 if test -n "$CC"; then
1070   echo "$ac_t""$CC" 1>&6
1071 else
1072   echo "$ac_t""no" 1>&6
1073 fi
1074
1075 if test -z "$CC"; then
1076   # Extract the first word of "cc", so it can be a program name with args.
1077 set dummy cc; ac_word=$2
1078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1079 echo "configure:1080: checking for $ac_word" >&5
1080 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1081   echo $ac_n "(cached) $ac_c" 1>&6
1082 else
1083   if test -n "$CC"; then
1084   ac_cv_prog_CC="$CC" # Let the user override the test.
1085 else
1086   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1087   ac_prog_rejected=no
1088   ac_dummy="$PATH"
1089   for ac_dir in $ac_dummy; do
1090     test -z "$ac_dir" && ac_dir=.
1091     if test -f $ac_dir/$ac_word; then
1092       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1093         ac_prog_rejected=yes
1094         continue
1095       fi
1096       ac_cv_prog_CC="cc"
1097       break
1098     fi
1099   done
1100   IFS="$ac_save_ifs"
1101 if test $ac_prog_rejected = yes; then
1102   # We found a bogon in the path, so make sure we never use it.
1103   set dummy $ac_cv_prog_CC
1104   shift
1105   if test $# -gt 0; then
1106     # We chose a different compiler from the bogus one.
1107     # However, it has the same basename, so the bogon will be chosen
1108     # first if we set CC to just the basename; use the full file name.
1109     shift
1110     set dummy "$ac_dir/$ac_word" "$@"
1111     shift
1112     ac_cv_prog_CC="$@"
1113   fi
1114 fi
1115 fi
1116 fi
1117 CC="$ac_cv_prog_CC"
1118 if test -n "$CC"; then
1119   echo "$ac_t""$CC" 1>&6
1120 else
1121   echo "$ac_t""no" 1>&6
1122 fi
1123
1124   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1125 fi
1126
1127 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether we are using GNU C" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1130   echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132   cat > conftest.c <<EOF
1133 #ifdef __GNUC__
1134   yes;
1135 #endif
1136 EOF
1137 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1138   ac_cv_prog_gcc=yes
1139 else
1140   ac_cv_prog_gcc=no
1141 fi
1142 fi
1143
1144 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1145
1146 if test $ac_cv_prog_gcc = yes; then
1147   GCC=yes
1148   ac_test_CFLAGS="${CFLAGS+set}"
1149   ac_save_CFLAGS="$CFLAGS"
1150   CFLAGS=
1151   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ${CC-cc} accepts -g" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1154   echo $ac_n "(cached) $ac_c" 1>&6
1155 else
1156   echo 'void f(){}' > conftest.c
1157 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1158   ac_cv_prog_cc_g=yes
1159 else
1160   ac_cv_prog_cc_g=no
1161 fi
1162 rm -f conftest*
1163
1164 fi
1165
1166 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1167   if test "$ac_test_CFLAGS" = set; then
1168     CFLAGS="$ac_save_CFLAGS"
1169   elif test $ac_cv_prog_cc_g = yes; then
1170     CFLAGS="-g -O2"
1171   else
1172     CFLAGS="-O2"
1173   fi
1174 else
1175   GCC=
1176   test "${CFLAGS+set}" = set || CFLAGS="-g"
1177 fi
1178
1179
1180 # Likewise for AC_PROG_CXX.
1181
1182
1183 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1184 do
1185 # Extract the first word of "$ac_prog", so it can be a program name with args.
1186 set dummy $ac_prog; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1190   echo $ac_n "(cached) $ac_c" 1>&6
1191 else
1192   if test -n "$CXX"; then
1193   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1194 else
1195   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1196   ac_dummy="$PATH"
1197   for ac_dir in $ac_dummy; do
1198     test -z "$ac_dir" && ac_dir=.
1199     if test -f $ac_dir/$ac_word; then
1200       ac_cv_prog_CXX="$ac_prog"
1201       break
1202     fi
1203   done
1204   IFS="$ac_save_ifs"
1205 fi
1206 fi
1207 CXX="$ac_cv_prog_CXX"
1208 if test -n "$CXX"; then
1209   echo "$ac_t""$CXX" 1>&6
1210 else
1211   echo "$ac_t""no" 1>&6
1212 fi
1213
1214 test -n "$CXX" && break
1215 done
1216 test -n "$CXX" || CXX="gcc"
1217
1218 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1219
1220 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether we are using GNU C++" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1223   echo $ac_n "(cached) $ac_c" 1>&6
1224 else
1225   cat > conftest.C <<EOF
1226 #ifdef __GNUC__
1227   yes;
1228 #endif
1229 EOF
1230 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1231   ac_cv_prog_gxx=yes
1232 else
1233   ac_cv_prog_gxx=no
1234 fi
1235 fi
1236
1237 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1238
1239 if test $ac_cv_prog_gxx = yes; then
1240   GXX=yes
1241   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1242   ac_save_CXXFLAGS="$CXXFLAGS"
1243   CXXFLAGS=
1244   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1245 echo "configure:1246: checking whether ${CXX-g++} accepts -g" >&5
1246 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1247   echo $ac_n "(cached) $ac_c" 1>&6
1248 else
1249   echo 'void f(){}' > conftest.cc
1250 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1251   ac_cv_prog_cxx_g=yes
1252 else
1253   ac_cv_prog_cxx_g=no
1254 fi
1255 rm -f conftest*
1256
1257 fi
1258
1259 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1260   if test "$ac_test_CXXFLAGS" = set; then
1261     CXXFLAGS="$ac_save_CXXFLAGS"
1262   elif test $ac_cv_prog_cxx_g = yes; then
1263     CXXFLAGS="-g -O2"
1264   else
1265     CXXFLAGS="-O2"
1266   fi
1267 else
1268   GXX=
1269   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1270 fi
1271
1272
1273 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we dont
1274 # run it explicitly here, it will be run implicitly before
1275 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1276 # be run before AC_CANONICAL_HOST.
1277 echo $ac_n "checking build system type""... $ac_c" 1>&6
1278 echo "configure:1279: checking build system type" >&5
1279
1280 build_alias=$build
1281 case "$build_alias" in
1282 NONE)
1283   case $nonopt in
1284   NONE) build_alias=$host_alias ;;
1285   *) build_alias=$nonopt ;;
1286   esac ;;
1287 esac
1288
1289 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1290 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1291 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1292 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293 echo "$ac_t""$build" 1>&6
1294
1295
1296 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1297 set dummy ${ac_tool_prefix}as; ac_word=$2
1298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1299 echo "configure:1300: checking for $ac_word" >&5
1300 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1301   echo $ac_n "(cached) $ac_c" 1>&6
1302 else
1303   if test -n "$AS"; then
1304   ac_cv_prog_AS="$AS" # Let the user override the test.
1305 else
1306   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1307   ac_dummy="$PATH"
1308   for ac_dir in $ac_dummy; do
1309     test -z "$ac_dir" && ac_dir=.
1310     if test -f $ac_dir/$ac_word; then
1311       ac_cv_prog_AS="${ac_tool_prefix}as"
1312       break
1313     fi
1314   done
1315   IFS="$ac_save_ifs"
1316   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1317 fi
1318 fi
1319 AS="$ac_cv_prog_AS"
1320 if test -n "$AS"; then
1321   echo "$ac_t""$AS" 1>&6
1322 else
1323   echo "$ac_t""no" 1>&6
1324 fi
1325
1326
1327
1328 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1329 set dummy ${ac_tool_prefix}ar; ac_word=$2
1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_word" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1333   echo $ac_n "(cached) $ac_c" 1>&6
1334 else
1335   if test -n "$AR"; then
1336   ac_cv_prog_AR="$AR" # Let the user override the test.
1337 else
1338   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1339   ac_dummy="$PATH"
1340   for ac_dir in $ac_dummy; do
1341     test -z "$ac_dir" && ac_dir=.
1342     if test -f $ac_dir/$ac_word; then
1343       ac_cv_prog_AR="${ac_tool_prefix}ar"
1344       break
1345     fi
1346   done
1347   IFS="$ac_save_ifs"
1348   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1349 fi
1350 fi
1351 AR="$ac_cv_prog_AR"
1352 if test -n "$AR"; then
1353   echo "$ac_t""$AR" 1>&6
1354 else
1355   echo "$ac_t""no" 1>&6
1356 fi
1357
1358
1359
1360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1363 echo "configure:1364: checking for $ac_word" >&5
1364 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1365   echo $ac_n "(cached) $ac_c" 1>&6
1366 else
1367   if test -n "$RANLIB"; then
1368   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1369 else
1370   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1371   ac_dummy="$PATH"
1372   for ac_dir in $ac_dummy; do
1373     test -z "$ac_dir" && ac_dir=.
1374     if test -f $ac_dir/$ac_word; then
1375       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1376       break
1377     fi
1378   done
1379   IFS="$ac_save_ifs"
1380 fi
1381 fi
1382 RANLIB="$ac_cv_prog_RANLIB"
1383 if test -n "$RANLIB"; then
1384   echo "$ac_t""$RANLIB" 1>&6
1385 else
1386   echo "$ac_t""no" 1>&6
1387 fi
1388
1389
1390 if test -z "$ac_cv_prog_RANLIB"; then
1391 if test -n "$ac_tool_prefix"; then
1392   # Extract the first word of "ranlib", so it can be a program name with args.
1393 set dummy ranlib; ac_word=$2
1394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1395 echo "configure:1396: checking for $ac_word" >&5
1396 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1397   echo $ac_n "(cached) $ac_c" 1>&6
1398 else
1399   if test -n "$RANLIB"; then
1400   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1401 else
1402   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1403   ac_dummy="$PATH"
1404   for ac_dir in $ac_dummy; do
1405     test -z "$ac_dir" && ac_dir=.
1406     if test -f $ac_dir/$ac_word; then
1407       ac_cv_prog_RANLIB="ranlib"
1408       break
1409     fi
1410   done
1411   IFS="$ac_save_ifs"
1412   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1413 fi
1414 fi
1415 RANLIB="$ac_cv_prog_RANLIB"
1416 if test -n "$RANLIB"; then
1417   echo "$ac_t""$RANLIB" 1>&6
1418 else
1419   echo "$ac_t""no" 1>&6
1420 fi
1421
1422 else
1423   RANLIB=":"
1424 fi
1425 fi
1426
1427
1428 # Find a good install program.  We prefer a C program (faster),
1429 # so one script is as good as another.  But avoid the broken or
1430 # incompatible versions:
1431 # SysV /etc/install, /usr/sbin/install
1432 # SunOS /usr/etc/install
1433 # IRIX /sbin/install
1434 # AIX /bin/install
1435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1438 # ./install, which can be erroneously created by make from ./install.sh.
1439 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1440 echo "configure:1441: checking for a BSD compatible install" >&5
1441 if test -z "$INSTALL"; then
1442 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1443   echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1446   for ac_dir in $PATH; do
1447     # Account for people who put trailing slashes in PATH elements.
1448     case "$ac_dir/" in
1449     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1450     *)
1451       # OSF1 and SCO ODT 3.0 have their own names for install.
1452       # Don't use installbsd from OSF since it installs stuff as root
1453       # by default.
1454       for ac_prog in ginstall scoinst install; do
1455         if test -f $ac_dir/$ac_prog; then
1456           if test $ac_prog = install &&
1457             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1458             # AIX install.  It has an incompatible calling convention.
1459             :
1460           else
1461             ac_cv_path_install="$ac_dir/$ac_prog -c"
1462             break 2
1463           fi
1464         fi
1465       done
1466       ;;
1467     esac
1468   done
1469   IFS="$ac_save_IFS"
1470
1471 fi
1472   if test "${ac_cv_path_install+set}" = set; then
1473     INSTALL="$ac_cv_path_install"
1474   else
1475     # As a last resort, use the slow shell script.  We don't cache a
1476     # path for INSTALL within a source directory, because that will
1477     # break other packages using the cache if that directory is
1478     # removed, or if the path is relative.
1479     INSTALL="$ac_install_sh"
1480   fi
1481 fi
1482 echo "$ac_t""$INSTALL" 1>&6
1483
1484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1485 # It thinks the first close brace ends the variable substitution.
1486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1487
1488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1489
1490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1491
1492
1493 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1494 echo "configure:1495: checking whether to enable maintainer-specific portions of Makefiles" >&5
1495     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1496 if test "${enable_maintainer_mode+set}" = set; then
1497   enableval="$enable_maintainer_mode"
1498   USE_MAINTAINER_MODE=$enableval
1499 else
1500   USE_MAINTAINER_MODE=no
1501 fi
1502
1503   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1504   
1505
1506 if test $USE_MAINTAINER_MODE = yes; then
1507   MAINTAINER_MODE_TRUE=
1508   MAINTAINER_MODE_FALSE='#'
1509 else
1510   MAINTAINER_MODE_TRUE='#'
1511   MAINTAINER_MODE_FALSE=
1512 fi
1513   MAINT=$MAINTAINER_MODE_TRUE
1514   
1515
1516
1517 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1518 # at least currently, we never actually build a program, so we never
1519 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1520 # fails, because we are probably configuring with a cross compiler
1521 # which cant create executables.  So we include AC_EXEEXT to keep
1522 # automake happy, but we dont execute it, since we dont care about
1523 # the result.
1524 if false; then
1525   
1526
1527 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1528 echo "configure:1529: checking for executable suffix" >&5
1529 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1530   echo $ac_n "(cached) $ac_c" 1>&6
1531 else
1532   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1533   ac_cv_exeext=.exe
1534 else
1535   rm -f conftest*
1536   echo 'int main () { return 0; }' > conftest.$ac_ext
1537   ac_cv_exeext=
1538   if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1539     for file in conftest.*; do
1540       case $file in
1541       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1542       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1543       esac
1544     done
1545   else
1546     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1547   fi
1548   rm -f conftest*
1549   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1550 fi
1551 fi
1552
1553 EXEEXT=""
1554 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1555 echo "$ac_t""${ac_cv_exeext}" 1>&6
1556 ac_exeext=$EXEEXT
1557
1558 fi
1559
1560 # configure.host sets the following important variables
1561 #       libgcj_cflags    - host specific C compiler flags
1562 #       libgcj_cxxflags  - host specific C++ compiler flags
1563 #       libgcj_javaflags - host specific Java compiler flags
1564
1565 libgcj_cflags=
1566 libgcj_cxxflags=
1567 libgcj_javaflags=
1568
1569 . ${libgcj_basedir}/configure.host
1570
1571 case ${libgcj_basedir} in
1572 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1573 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1574 esac
1575
1576 LIBGCJ_CFLAGS="${libgcj_cflags}"
1577 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1578 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588 # Check whether --enable-shared or --disable-shared was given.
1589 if test "${enable_shared+set}" = set; then
1590   enableval="$enable_shared"
1591   p=${PACKAGE-default}
1592 case "$enableval" in
1593 yes) enable_shared=yes ;;
1594 no) enable_shared=no ;;
1595 *)
1596   enable_shared=no
1597   # Look at the argument we got.  We use all the common list separators.
1598   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1599   for pkg in $enableval; do
1600     if test "X$pkg" = "X$p"; then
1601       enable_shared=yes
1602     fi
1603   done
1604   IFS="$ac_save_ifs"
1605   ;;
1606 esac
1607 else
1608   enable_shared=yes
1609 fi
1610
1611 # Check whether --enable-static or --disable-static was given.
1612 if test "${enable_static+set}" = set; then
1613   enableval="$enable_static"
1614   p=${PACKAGE-default}
1615 case "$enableval" in
1616 yes) enable_static=yes ;;
1617 no) enable_static=no ;;
1618 *)
1619   enable_static=no
1620   # Look at the argument we got.  We use all the common list separators.
1621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1622   for pkg in $enableval; do
1623     if test "X$pkg" = "X$p"; then
1624       enable_static=yes
1625     fi
1626   done
1627   IFS="$ac_save_ifs"
1628   ;;
1629 esac
1630 else
1631   enable_static=yes
1632 fi
1633
1634 # Check whether --enable-fast-install or --disable-fast-install was given.
1635 if test "${enable_fast_install+set}" = set; then
1636   enableval="$enable_fast_install"
1637   p=${PACKAGE-default}
1638 case "$enableval" in
1639 yes) enable_fast_install=yes ;;
1640 no) enable_fast_install=no ;;
1641 *)
1642   enable_fast_install=no
1643   # Look at the argument we got.  We use all the common list separators.
1644   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1645   for pkg in $enableval; do
1646     if test "X$pkg" = "X$p"; then
1647       enable_fast_install=yes
1648     fi
1649   done
1650   IFS="$ac_save_ifs"
1651   ;;
1652 esac
1653 else
1654   enable_fast_install=yes
1655 fi
1656
1657 # Extract the first word of "ranlib", so it can be a program name with args.
1658 set dummy ranlib; ac_word=$2
1659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_word" >&5
1661 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1662   echo $ac_n "(cached) $ac_c" 1>&6
1663 else
1664   if test -n "$RANLIB"; then
1665   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1666 else
1667   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1668   ac_dummy="$PATH"
1669   for ac_dir in $ac_dummy; do
1670     test -z "$ac_dir" && ac_dir=.
1671     if test -f $ac_dir/$ac_word; then
1672       ac_cv_prog_RANLIB="ranlib"
1673       break
1674     fi
1675   done
1676   IFS="$ac_save_ifs"
1677   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1678 fi
1679 fi
1680 RANLIB="$ac_cv_prog_RANLIB"
1681 if test -n "$RANLIB"; then
1682   echo "$ac_t""$RANLIB" 1>&6
1683 else
1684   echo "$ac_t""no" 1>&6
1685 fi
1686
1687 # Extract the first word of "gcc", so it can be a program name with args.
1688 set dummy gcc; ac_word=$2
1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1692   echo $ac_n "(cached) $ac_c" 1>&6
1693 else
1694   if test -n "$CC"; then
1695   ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1698   ac_dummy="$PATH"
1699   for ac_dir in $ac_dummy; do
1700     test -z "$ac_dir" && ac_dir=.
1701     if test -f $ac_dir/$ac_word; then
1702       ac_cv_prog_CC="gcc"
1703       break
1704     fi
1705   done
1706   IFS="$ac_save_ifs"
1707 fi
1708 fi
1709 CC="$ac_cv_prog_CC"
1710 if test -n "$CC"; then
1711   echo "$ac_t""$CC" 1>&6
1712 else
1713   echo "$ac_t""no" 1>&6
1714 fi
1715
1716 if test -z "$CC"; then
1717   # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1720 echo "configure:1721: checking for $ac_word" >&5
1721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1722   echo $ac_n "(cached) $ac_c" 1>&6
1723 else
1724   if test -n "$CC"; then
1725   ac_cv_prog_CC="$CC" # Let the user override the test.
1726 else
1727   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1728   ac_prog_rejected=no
1729   ac_dummy="$PATH"
1730   for ac_dir in $ac_dummy; do
1731     test -z "$ac_dir" && ac_dir=.
1732     if test -f $ac_dir/$ac_word; then
1733       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1734         ac_prog_rejected=yes
1735         continue
1736       fi
1737       ac_cv_prog_CC="cc"
1738       break
1739     fi
1740   done
1741   IFS="$ac_save_ifs"
1742 if test $ac_prog_rejected = yes; then
1743   # We found a bogon in the path, so make sure we never use it.
1744   set dummy $ac_cv_prog_CC
1745   shift
1746   if test $# -gt 0; then
1747     # We chose a different compiler from the bogus one.
1748     # However, it has the same basename, so the bogon will be chosen
1749     # first if we set CC to just the basename; use the full file name.
1750     shift
1751     set dummy "$ac_dir/$ac_word" "$@"
1752     shift
1753     ac_cv_prog_CC="$@"
1754   fi
1755 fi
1756 fi
1757 fi
1758 CC="$ac_cv_prog_CC"
1759 if test -n "$CC"; then
1760   echo "$ac_t""$CC" 1>&6
1761 else
1762   echo "$ac_t""no" 1>&6
1763 fi
1764
1765   if test -z "$CC"; then
1766     case "`uname -s`" in
1767     *win32* | *WIN32*)
1768       # Extract the first word of "cl", so it can be a program name with args.
1769 set dummy cl; ac_word=$2
1770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1771 echo "configure:1772: checking for $ac_word" >&5
1772 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1773   echo $ac_n "(cached) $ac_c" 1>&6
1774 else
1775   if test -n "$CC"; then
1776   ac_cv_prog_CC="$CC" # Let the user override the test.
1777 else
1778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1779   ac_dummy="$PATH"
1780   for ac_dir in $ac_dummy; do
1781     test -z "$ac_dir" && ac_dir=.
1782     if test -f $ac_dir/$ac_word; then
1783       ac_cv_prog_CC="cl"
1784       break
1785     fi
1786   done
1787   IFS="$ac_save_ifs"
1788 fi
1789 fi
1790 CC="$ac_cv_prog_CC"
1791 if test -n "$CC"; then
1792   echo "$ac_t""$CC" 1>&6
1793 else
1794   echo "$ac_t""no" 1>&6
1795 fi
1796  ;;
1797     esac
1798   fi
1799   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1800 fi
1801
1802 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1804
1805 ac_ext=c
1806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1810 cross_compiling=$ac_cv_prog_cc_cross
1811
1812 cat > conftest.$ac_ext << EOF
1813
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1816
1817 main(){return(0);}
1818 EOF
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1820   ac_cv_prog_cc_works=yes
1821   # If we can't run a trivial program, we are probably using a cross compiler.
1822   if (./conftest; exit) 2>/dev/null; then
1823     ac_cv_prog_cc_cross=no
1824   else
1825     ac_cv_prog_cc_cross=yes
1826   fi
1827 else
1828   echo "configure: failed program was:" >&5
1829   cat conftest.$ac_ext >&5
1830   ac_cv_prog_cc_works=no
1831 fi
1832 rm -fr conftest*
1833 ac_ext=c
1834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1835 ac_cpp='$CPP $CPPFLAGS'
1836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1838 cross_compiling=$ac_cv_prog_cc_cross
1839
1840 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1841 if test $ac_cv_prog_cc_works = no; then
1842   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1843 fi
1844 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1845 echo "configure:1846: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1846 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1847 cross_compiling=$ac_cv_prog_cc_cross
1848
1849 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1850 echo "configure:1851: checking whether we are using GNU C" >&5
1851 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1852   echo $ac_n "(cached) $ac_c" 1>&6
1853 else
1854   cat > conftest.c <<EOF
1855 #ifdef __GNUC__
1856   yes;
1857 #endif
1858 EOF
1859 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1860   ac_cv_prog_gcc=yes
1861 else
1862   ac_cv_prog_gcc=no
1863 fi
1864 fi
1865
1866 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1867
1868 if test $ac_cv_prog_gcc = yes; then
1869   GCC=yes
1870 else
1871   GCC=
1872 fi
1873
1874 ac_test_CFLAGS="${CFLAGS+set}"
1875 ac_save_CFLAGS="$CFLAGS"
1876 CFLAGS=
1877 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1878 echo "configure:1879: checking whether ${CC-cc} accepts -g" >&5
1879 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1880   echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882   echo 'void f(){}' > conftest.c
1883 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1884   ac_cv_prog_cc_g=yes
1885 else
1886   ac_cv_prog_cc_g=no
1887 fi
1888 rm -f conftest*
1889
1890 fi
1891
1892 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1893 if test "$ac_test_CFLAGS" = set; then
1894   CFLAGS="$ac_save_CFLAGS"
1895 elif test $ac_cv_prog_cc_g = yes; then
1896   if test "$GCC" = yes; then
1897     CFLAGS="-g -O2"
1898   else
1899     CFLAGS="-g"
1900   fi
1901 else
1902   if test "$GCC" = yes; then
1903     CFLAGS="-O2"
1904   else
1905     CFLAGS=
1906   fi
1907 fi
1908
1909 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1910 if test "${with_gnu_ld+set}" = set; then
1911   withval="$with_gnu_ld"
1912   test "$withval" = no || with_gnu_ld=yes
1913 else
1914   with_gnu_ld=no
1915 fi
1916
1917 ac_prog=ld
1918 if test "$ac_cv_prog_gcc" = yes; then
1919   # Check if gcc -print-prog-name=ld gives a path.
1920   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1921 echo "configure:1922: checking for ld used by GCC" >&5
1922   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1923   case "$ac_prog" in
1924     # Accept absolute paths.
1925     /* | [A-Za-z]:[\\/]*)
1926       re_direlt='/[^/][^/]*/\.\./'
1927       # Canonicalize the path of ld
1928       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1929       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1930         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1931       done
1932       test -z "$LD" && LD="$ac_prog"
1933       ;;
1934   "")
1935     # If it fails, then pretend we aren't using GCC.
1936     ac_prog=ld
1937     ;;
1938   *)
1939     # If it is relative, then search for the first ld in PATH.
1940     with_gnu_ld=unknown
1941     ;;
1942   esac
1943 elif test "$with_gnu_ld" = yes; then
1944   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1945 echo "configure:1946: checking for GNU ld" >&5
1946 else
1947   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1948 echo "configure:1949: checking for non-GNU ld" >&5
1949 fi
1950 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1951   echo $ac_n "(cached) $ac_c" 1>&6
1952 else
1953   if test -z "$LD"; then
1954   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1955   for ac_dir in $PATH; do
1956     test -z "$ac_dir" && ac_dir=.
1957     if test -f "$ac_dir/$ac_prog"; then
1958       ac_cv_path_LD="$ac_dir/$ac_prog"
1959       # Check to see if the program is GNU ld.  I'd rather use --version,
1960       # but apparently some GNU ld's only accept -v.
1961       # Break only if it was the GNU/non-GNU ld that we prefer.
1962       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1963         test "$with_gnu_ld" != no && break
1964       else
1965         test "$with_gnu_ld" != yes && break
1966       fi
1967     fi
1968   done
1969   IFS="$ac_save_ifs"
1970 else
1971   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1972 fi
1973 fi
1974
1975 LD="$ac_cv_path_LD"
1976 if test -n "$LD"; then
1977   echo "$ac_t""$LD" 1>&6
1978 else
1979   echo "$ac_t""no" 1>&6
1980 fi
1981 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1982
1983 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1984 echo "configure:1985: checking if the linker ($LD) is GNU ld" >&5
1985 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1986   echo $ac_n "(cached) $ac_c" 1>&6
1987 else
1988   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1989 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1990   ac_cv_prog_gnu_ld=yes
1991 else
1992   ac_cv_prog_gnu_ld=no
1993 fi
1994 fi
1995
1996 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1997
1998
1999 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2000 echo "configure:2001: checking for BSD-compatible nm" >&5
2001 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2002   echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004   if test -n "$NM"; then
2005   # Let the user override the test.
2006   ac_cv_path_NM="$NM"
2007 else
2008   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2009   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2010     test -z "$ac_dir" && ac_dir=.
2011     if test -f $ac_dir/nm; then
2012       # Check to see if the nm accepts a BSD-compat flag.
2013       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2014       #   nm: unknown option "B" ignored
2015       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2016         ac_cv_path_NM="$ac_dir/nm -B"
2017         break
2018       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2019         ac_cv_path_NM="$ac_dir/nm -p"
2020         break
2021       else
2022         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2023         continue # so that we can try to find one that supports BSD flags
2024       fi
2025     fi
2026   done
2027   IFS="$ac_save_ifs"
2028   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2029 fi
2030 fi
2031
2032 NM="$ac_cv_path_NM"
2033 echo "$ac_t""$NM" 1>&6
2034
2035
2036 # Check for command to grab the raw symbol name followed by C symbol from nm.
2037 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2038 echo "configure:2039: checking command to parse $NM output" >&5
2039 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2040   echo $ac_n "(cached) $ac_c" 1>&6
2041 else
2042   # These are sane defaults that work on at least a few old systems.
2043 # {They come from Ultrix.  What could be older than Ultrix?!! ;)}
2044
2045 # Character class describing NM global symbol codes.
2046 ac_symcode='[BCDEGRST]'
2047
2048 # Regexp to match symbols that can be accessed directly from C.
2049 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2050
2051 # Transform the above into a raw symbol and a C symbol.
2052 ac_symxfrm='\1 \2\3 \3'
2053
2054 # Transform an extracted symbol line into a proper C declaration
2055 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2056
2057 # Define system-specific variables.
2058 case "$host_os" in
2059 aix*)
2060   ac_symcode='[BCDT]'
2061   ;;
2062 cygwin* | mingw*)
2063   ac_symcode='[ABCDGISTW]'
2064   ;;
2065 hpux*)
2066   ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2067   ;;
2068 irix*)
2069   ac_symcode='[BCDEGRST]'
2070   ;;
2071 solaris*)
2072   ac_symcode='[BDT]'
2073   ;;
2074 esac
2075
2076 # If we're using GNU nm, then use its standard symbol codes.
2077 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2078   ac_symcode='[ABCDGISTW]'
2079 fi
2080
2081 # Try without a prefix undercore, then with it.
2082 for ac_symprfx in "" "_"; do
2083
2084   ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*        \($ac_symcode\)                 *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2085
2086   # Check to see that the pipe works correctly.
2087   ac_pipe_works=no
2088   rm -f conftest.$ac_ext
2089   cat > conftest.$ac_ext <<EOF
2090 #ifdef __cplusplus
2091 extern "C" {
2092 #endif
2093 char nm_test_var;
2094 void nm_test_func(){}
2095 #ifdef __cplusplus
2096 }
2097 #endif
2098 int main(){nm_test_var='a';nm_test_func;return 0;}
2099 EOF
2100
2101   if { (eval echo configure:2102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2102     # Now try to grab the symbols.
2103     ac_nlist=conftest.nm
2104   
2105     if { (eval echo configure:2106: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2106
2107       # Try sorting and uniquifying the output.
2108       if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
2109         mv -f "$ac_nlist"T "$ac_nlist"
2110       else
2111         rm -f "$ac_nlist"T
2112       fi
2113
2114       # Make sure that we snagged all the symbols we need.
2115       if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
2116         if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
2117           cat <<EOF > conftest.c
2118 #ifdef __cplusplus
2119 extern "C" {
2120 #endif
2121
2122 EOF
2123           # Now generate the symbol file.
2124           eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2125
2126           cat <<EOF >> conftest.c
2127 #if defined (__STDC__) && __STDC__
2128 # define lt_ptr_t void *
2129 #else
2130 # define lt_ptr_t char *
2131 # define const
2132 #endif
2133
2134 /* The mapping between symbol names and symbols. */
2135 const struct {
2136   const char *name;
2137   lt_ptr_t address;
2138 }
2139 lt_preloaded_symbols[] =
2140 {
2141 EOF
2142         sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2143         cat <<\EOF >> conftest.c
2144   {0, (lt_ptr_t) 0}
2145 };
2146
2147 #ifdef __cplusplus
2148 }
2149 #endif
2150 EOF
2151           # Now try linking the two files.
2152           mv conftest.$ac_objext conftestm.$ac_objext
2153           ac_save_LIBS="$LIBS"
2154           ac_save_CFLAGS="$CFLAGS"
2155           LIBS="conftestm.$ac_objext"
2156           CFLAGS="$CFLAGS$no_builtin_flag"
2157           if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2158             ac_pipe_works=yes
2159           else
2160             echo "configure: failed program was:" >&5
2161             cat conftest.c >&5
2162           fi
2163           LIBS="$ac_save_LIBS"
2164           CFLAGS="$ac_save_CFLAGS"
2165         else
2166           echo "cannot find nm_test_func in $ac_nlist" >&5
2167         fi
2168       else
2169         echo "cannot find nm_test_var in $ac_nlist" >&5
2170       fi
2171     else
2172       echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2173     fi
2174   else
2175     echo "$progname: failed program was:" >&5
2176     cat conftest.c >&5
2177   fi
2178   rm -rf conftest*
2179
2180   # Do not use the global_symbol_pipe unless it works.
2181   if test "$ac_pipe_works" = yes; then
2182     if test x"$ac_symprfx" = x"_"; then
2183       ac_cv_sys_symbol_underscore=yes
2184     else
2185       ac_cv_sys_symbol_underscore=no
2186     fi
2187     break
2188   else
2189     ac_cv_sys_global_symbol_pipe=
2190   fi
2191 done
2192
2193 fi
2194
2195
2196 ac_result=yes
2197 if test -z "$ac_cv_sys_global_symbol_pipe"; then
2198    ac_result=no
2199 fi
2200 echo "$ac_t""$ac_result" 1>&6
2201
2202 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
2203 echo "configure:2204: checking for _ prefix in compiled symbols" >&5
2204 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
2205   echo $ac_n "(cached) $ac_c" 1>&6
2206 else
2207   ac_cv_sys_symbol_underscore=no
2208 cat > conftest.$ac_ext <<EOF
2209 void nm_test_func(){}
2210 int main(){nm_test_func;return 0;}
2211 EOF
2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2213   # Now try to grab the symbols.
2214   ac_nlist=conftest.nm
2215   if { (eval echo configure:2216: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2216     # See whether the symbols have a leading underscore.
2217     if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
2218       ac_cv_sys_symbol_underscore=yes
2219     else
2220       if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
2221         :
2222       else
2223         echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2224       fi
2225     fi
2226   else
2227     echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2228   fi
2229 else
2230   echo "configure: failed program was:" >&5
2231   cat conftest.c >&5
2232 fi
2233 rm -rf conftest*
2234
2235 fi
2236
2237 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2238 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
2239
2240 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2241 echo "configure:2242: checking whether ln -s works" >&5
2242 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2243   echo $ac_n "(cached) $ac_c" 1>&6
2244 else
2245   rm -f conftestdata
2246 if ln -s X conftestdata 2>/dev/null
2247 then
2248   rm -f conftestdata
2249   ac_cv_prog_LN_S="ln -s"
2250 else
2251   ac_cv_prog_LN_S=ln
2252 fi
2253 fi
2254 LN_S="$ac_cv_prog_LN_S"
2255 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2256   echo "$ac_t""yes" 1>&6
2257 else
2258   echo "$ac_t""no" 1>&6
2259 fi
2260
2261
2262 # Check for any special flags to pass to ltconfig.
2263 libtool_flags="--cache-file=$cache_file"
2264 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2265 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2266 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2267 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
2268 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2269 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2270 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2271
2272 # Some flags need to be propagated to the compiler or linker for good
2273 # libtool support.
2274 case "$host" in
2275 *-*-irix6*)
2276   # Find out which ABI we are using.
2277   echo '#line 2278 "configure"' > conftest.$ac_ext
2278   if { (eval echo configure:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2279     case "`/usr/bin/file conftest.o`" in
2280     *32-bit*)
2281       LD="${LD-ld} -32"
2282       ;;
2283     *N32*)
2284       LD="${LD-ld} -n32"
2285       ;;
2286     *64-bit*)
2287       LD="${LD-ld} -64"
2288       ;;
2289     esac
2290   fi
2291   rm -rf conftest*
2292   ;;
2293
2294 *-*-sco3.2v5*)
2295   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2296   SAVE_CFLAGS="$CFLAGS"
2297   CFLAGS="$CFLAGS -belf"
2298   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether the C compiler needs -belf" >&5
2300 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2301   echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303   cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306
2307 int main() {
2308
2309 ; return 0; }
2310 EOF
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312   rm -rf conftest*
2313   lt_cv_cc_needs_belf=yes
2314 else
2315   echo "configure: failed program was:" >&5
2316   cat conftest.$ac_ext >&5
2317   rm -rf conftest*
2318   lt_cv_cc_needs_belf=no
2319 fi
2320 rm -f conftest*
2321 fi
2322
2323 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2324   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2325     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2326     CFLAGS="$SAVE_CFLAGS"
2327   fi
2328   ;;
2329
2330 *-*-cygwin*)
2331   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2336   echo $ac_n "(cached) $ac_c" 1>&6
2337 else
2338   if test -n "$DLLTOOL"; then
2339   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2340 else
2341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2342   ac_dummy="$PATH"
2343   for ac_dir in $ac_dummy; do
2344     test -z "$ac_dir" && ac_dir=.
2345     if test -f $ac_dir/$ac_word; then
2346       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2347       break
2348     fi
2349   done
2350   IFS="$ac_save_ifs"
2351 fi
2352 fi
2353 DLLTOOL="$ac_cv_prog_DLLTOOL"
2354 if test -n "$DLLTOOL"; then
2355   echo "$ac_t""$DLLTOOL" 1>&6
2356 else
2357   echo "$ac_t""no" 1>&6
2358 fi
2359
2360
2361 if test -z "$ac_cv_prog_DLLTOOL"; then
2362 if test -n "$ac_tool_prefix"; then
2363   # Extract the first word of "dlltool", so it can be a program name with args.
2364 set dummy dlltool; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2368   echo $ac_n "(cached) $ac_c" 1>&6
2369 else
2370   if test -n "$DLLTOOL"; then
2371   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2372 else
2373   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2374   ac_dummy="$PATH"
2375   for ac_dir in $ac_dummy; do
2376     test -z "$ac_dir" && ac_dir=.
2377     if test -f $ac_dir/$ac_word; then
2378       ac_cv_prog_DLLTOOL="dlltool"
2379       break
2380     fi
2381   done
2382   IFS="$ac_save_ifs"
2383   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2384 fi
2385 fi
2386 DLLTOOL="$ac_cv_prog_DLLTOOL"
2387 if test -n "$DLLTOOL"; then
2388   echo "$ac_t""$DLLTOOL" 1>&6
2389 else
2390   echo "$ac_t""no" 1>&6
2391 fi
2392
2393 else
2394   DLLTOOL="false"
2395 fi
2396 fi
2397
2398 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}as; ac_word=$2
2400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2401 echo "configure:2402: checking for $ac_word" >&5
2402 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2403   echo $ac_n "(cached) $ac_c" 1>&6
2404 else
2405   if test -n "$AS"; then
2406   ac_cv_prog_AS="$AS" # Let the user override the test.
2407 else
2408   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2409   ac_dummy="$PATH"
2410   for ac_dir in $ac_dummy; do
2411     test -z "$ac_dir" && ac_dir=.
2412     if test -f $ac_dir/$ac_word; then
2413       ac_cv_prog_AS="${ac_tool_prefix}as"
2414       break
2415     fi
2416   done
2417   IFS="$ac_save_ifs"
2418 fi
2419 fi
2420 AS="$ac_cv_prog_AS"
2421 if test -n "$AS"; then
2422   echo "$ac_t""$AS" 1>&6
2423 else
2424   echo "$ac_t""no" 1>&6
2425 fi
2426
2427
2428 if test -z "$ac_cv_prog_AS"; then
2429 if test -n "$ac_tool_prefix"; then
2430   # Extract the first word of "as", so it can be a program name with args.
2431 set dummy as; ac_word=$2
2432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2433 echo "configure:2434: checking for $ac_word" >&5
2434 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2435   echo $ac_n "(cached) $ac_c" 1>&6
2436 else
2437   if test -n "$AS"; then
2438   ac_cv_prog_AS="$AS" # Let the user override the test.
2439 else
2440   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2441   ac_dummy="$PATH"
2442   for ac_dir in $ac_dummy; do
2443     test -z "$ac_dir" && ac_dir=.
2444     if test -f $ac_dir/$ac_word; then
2445       ac_cv_prog_AS="as"
2446       break
2447     fi
2448   done
2449   IFS="$ac_save_ifs"
2450   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2451 fi
2452 fi
2453 AS="$ac_cv_prog_AS"
2454 if test -n "$AS"; then
2455   echo "$ac_t""$AS" 1>&6
2456 else
2457   echo "$ac_t""no" 1>&6
2458 fi
2459
2460 else
2461   AS="false"
2462 fi
2463 fi
2464
2465
2466   ;;
2467
2468 esac
2469
2470 # enable the --disable-libtool-lock switch
2471
2472 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2473 if test "${enable_libtool_lock+set}" = set; then
2474   enableval="$enable_libtool_lock"
2475   need_locks=$enableval
2476 else
2477   need_locks=yes
2478 fi
2479
2480
2481 if test x"$need_locks" = xno; then
2482   libtool_flags="$libtool_flags --disable-lock"
2483 fi
2484
2485
2486 # Save cache, so that ltconfig can load it
2487 cat > confcache <<\EOF
2488 # This file is a shell script that caches the results of configure
2489 # tests run on this system so they can be shared between configure
2490 # scripts and configure runs.  It is not useful on other systems.
2491 # If it contains results you don't want to keep, you may remove or edit it.
2492 #
2493 # By default, configure uses ./config.cache as the cache file,
2494 # creating it if it does not exist already.  You can give configure
2495 # the --cache-file=FILE option to use a different cache file; that is
2496 # what configure does when it calls configure scripts in
2497 # subdirectories, so they share the cache.
2498 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2499 # config.status only pays attention to the cache file if you give it the
2500 # --recheck option to rerun configure.
2501 #
2502 EOF
2503 # The following way of writing the cache mishandles newlines in values,
2504 # but we know of no workaround that is simple, portable, and efficient.
2505 # So, don't put newlines in cache variables' values.
2506 # Ultrix sh set writes to stderr and can't be redirected directly,
2507 # and sets the high bit in the cache file unless we assign to the vars.
2508 (set) 2>&1 |
2509   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2510   *ac_space=\ *)
2511     # `set' does not quote correctly, so add quotes (double-quote substitution
2512     # turns \\\\ into \\, and sed turns \\ into \).
2513     sed -n \
2514       -e "s/'/'\\\\''/g" \
2515       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2516     ;;
2517   *)
2518     # `set' quotes correctly as required by POSIX, so do not add quotes.
2519     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2520     ;;
2521   esac >> confcache
2522 if cmp -s $cache_file confcache; then
2523   :
2524 else
2525   if test -w $cache_file; then
2526     echo "updating cache $cache_file"
2527     cat confcache > $cache_file
2528   else
2529     echo "not updating unwritable cache $cache_file"
2530   fi
2531 fi
2532 rm -f confcache
2533
2534
2535 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2536 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2537 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2538 DLLTOOL="$DLLTOOL" AS="$AS" \
2539 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2540 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2541 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2542
2543 # Reload cache, that may have been modified by ltconfig
2544 if test -r "$cache_file"; then
2545   echo "loading cache $cache_file"
2546   . $cache_file
2547 else
2548   echo "creating cache $cache_file"
2549   > $cache_file
2550 fi
2551
2552
2553 # This can be used to rebuild libtool when needed
2554 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2555
2556 # Always use our own libtool.
2557 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2558
2559 # Redirect the config.log output again, so that the ltconfig log is not
2560 # clobbered by the next message.
2561 exec 5>>./config.log
2562
2563
2564 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2565    COMPPATH=.
2566 else
2567    COMPPATH=..
2568 fi
2569
2570
2571
2572
2573 if test -d $srcdir/testsuite; then
2574   TESTSUBDIR_TRUE=
2575   TESTSUBDIR_FALSE='#'
2576 else
2577   TESTSUBDIR_TRUE='#'
2578   TESTSUBDIR_FALSE=
2579 fi
2580
2581 # Check whether --enable-fast-character or --disable-fast-character was given.
2582 if test "${enable_fast_character+set}" = set; then
2583   enableval="$enable_fast_character"
2584   # Nothing
2585
2586 else
2587   cat >> confdefs.h <<\EOF
2588 #define COMPACT_CHARACTER 1
2589 EOF
2590
2591 fi
2592
2593
2594 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2595 if test "${enable_libgcj_debug+set}" = set; then
2596   enableval="$enable_libgcj_debug"
2597   if test "$enable_libgcj_debug" = yes; then
2598      cat >> confdefs.h <<\EOF
2599 #define DEBUG 1
2600 EOF
2601
2602   fi
2603 fi
2604
2605
2606 # Check whether --enable-interpreter or --disable-interpreter was given.
2607 if test "${enable_interpreter+set}" = set; then
2608   enableval="$enable_interpreter"
2609   if test "$enable_interpreter" = yes; then
2610      cat >> confdefs.h <<\EOF
2611 #define INTERPRETER 1
2612 EOF
2613
2614   fi
2615 fi
2616
2617
2618 TARGET_ECOS="no"
2619 # Check whether --with-ecos or --without-ecos was given.
2620 if test "${with_ecos+set}" = set; then
2621   withval="$with_ecos"
2622   TARGET_ECOS="$with_ecos"
2623
2624 fi
2625
2626
2627 case "$TARGET_ECOS" in
2628    no)
2629       FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2630       PROCESS=Posix
2631       ;;
2632    *)
2633       FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2634       PROCESS=Ecos
2635       cat >> confdefs.h <<\EOF
2636 #define ECOS 1
2637 EOF
2638
2639       ;;
2640 esac
2641
2642 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2643 echo "configure:2644: checking how to run the C preprocessor" >&5
2644 # On Suns, sometimes $CPP names a directory.
2645 if test -n "$CPP" && test -d "$CPP"; then
2646   CPP=
2647 fi
2648 if test -z "$CPP"; then
2649 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2650   echo $ac_n "(cached) $ac_c" 1>&6
2651 else
2652     # This must be in double quotes, not single quotes, because CPP may get
2653   # substituted into the Makefile and "${CC-cc}" will confuse make.
2654   CPP="${CC-cc} -E"
2655   # On the NeXT, cc -E runs the code through the compiler's parser,
2656   # not just through cpp.
2657   cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <assert.h>
2661 Syntax Error
2662 EOF
2663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2666 if test -z "$ac_err"; then
2667   :
2668 else
2669   echo "$ac_err" >&5
2670   echo "configure: failed program was:" >&5
2671   cat conftest.$ac_ext >&5
2672   rm -rf conftest*
2673   CPP="${CC-cc} -E -traditional-cpp"
2674   cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 #include <assert.h>
2678 Syntax Error
2679 EOF
2680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2681 { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2683 if test -z "$ac_err"; then
2684   :
2685 else
2686   echo "$ac_err" >&5
2687   echo "configure: failed program was:" >&5
2688   cat conftest.$ac_ext >&5
2689   rm -rf conftest*
2690   CPP="${CC-cc} -nologo -E"
2691   cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 #include <assert.h>
2695 Syntax Error
2696 EOF
2697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2698 { (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2700 if test -z "$ac_err"; then
2701   :
2702 else
2703   echo "$ac_err" >&5
2704   echo "configure: failed program was:" >&5
2705   cat conftest.$ac_ext >&5
2706   rm -rf conftest*
2707   CPP=/lib/cpp
2708 fi
2709 rm -f conftest*
2710 fi
2711 rm -f conftest*
2712 fi
2713 rm -f conftest*
2714   ac_cv_prog_CPP="$CPP"
2715 fi
2716   CPP="$ac_cv_prog_CPP"
2717 else
2718   ac_cv_prog_CPP="$CPP"
2719 fi
2720 echo "$ac_t""$CPP" 1>&6
2721
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 #include <stdint.h>
2726 EOF
2727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2728   egrep "uint32_t" >/dev/null 2>&1; then
2729   rm -rf conftest*
2730   cat >> confdefs.h <<\EOF
2731 #define HAVE_INT32_DEFINED 1
2732 EOF
2733
2734 fi
2735 rm -f conftest*
2736
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <inttypes.h>
2741 EOF
2742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2743   egrep "uint32_t" >/dev/null 2>&1; then
2744   rm -rf conftest*
2745   cat >> confdefs.h <<\EOF
2746 #define HAVE_INT32_DEFINED 1
2747 EOF
2748
2749 fi
2750 rm -f conftest*
2751
2752 cat > conftest.$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 #include <sys/types.h>
2756 EOF
2757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2758   egrep "u_int32_t" >/dev/null 2>&1; then
2759   rm -rf conftest*
2760   cat >> confdefs.h <<\EOF
2761 #define HAVE_BSD_INT32_DEFINED 1
2762 EOF
2763
2764 fi
2765 rm -f conftest*
2766
2767 cat > conftest.$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 #include <sys/config.h>
2771 EOF
2772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2773   egrep "u_int32_t" >/dev/null 2>&1; then
2774   rm -rf conftest*
2775   cat >> confdefs.h <<\EOF
2776 #define HAVE_BSD_INT32_DEFINED 1
2777 EOF
2778
2779 fi
2780 rm -f conftest*
2781
2782
2783
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 #include <time.h>
2788 EOF
2789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2790   egrep "mktime" >/dev/null 2>&1; then
2791   rm -rf conftest*
2792   cat >> confdefs.h <<\EOF
2793 #define HAVE_MKTIME 1
2794 EOF
2795
2796 fi
2797 rm -f conftest*
2798
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 #include <time.h>
2803 EOF
2804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2805   egrep "localtime" >/dev/null 2>&1; then
2806   rm -rf conftest*
2807   cat >> confdefs.h <<\EOF
2808 #define HAVE_LOCALTIME 1
2809 EOF
2810
2811 fi
2812 rm -f conftest*
2813
2814
2815 test -d java || mkdir java
2816 test -d java/io || mkdir java/io
2817
2818
2819 test -d java/lang || mkdir java/lang
2820
2821
2822
2823 SYSTEMSPEC=
2824
2825
2826 # Check whether --with-system-zlib or --without-system-zlib was given.
2827 if test "${with_system_zlib+set}" = set; then
2828   withval="$with_system_zlib"
2829   :
2830 fi
2831
2832 ZLIBSPEC=
2833
2834
2835 libsubdir=.libs
2836
2837 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2838 echo "configure:2839: checking for garbage collector to use" >&5
2839 # Check whether --enable-java-gc or --disable-java-gc was given.
2840 if test "${enable_java_gc+set}" = set; then
2841   enableval="$enable_java_gc"
2842   
2843   GC=$enableval
2844 else
2845   GC=boehm
2846 fi
2847
2848 GCLIBS=
2849 GCINCS=
2850 GCDEPS=
2851 GCOBJS=
2852 GCSPEC=
2853 case "$GC" in
2854  boehm)
2855     echo "$ac_t""boehm" 1>&6
2856     GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2857     # We include the path to the boehm-gc build directory.
2858     # See Makefile.am to understand why.
2859     GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2860     GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2861     GCSPEC='-lgcjgc'
2862             GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2863     GCOBJS=boehm.lo
2864     GCHDR=boehm-gc.h
2865         cat >> confdefs.h <<\EOF
2866 #define HAVE_BOEHM_GC 1
2867 EOF
2868
2869     ;;
2870  no)
2871     echo "$ac_t""none" 1>&6
2872     GCOBJS=nogc.lo
2873     GCHDR=no-gc.h
2874     ;;
2875  *)
2876     { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2877     ;;
2878 esac
2879
2880
2881
2882
2883
2884
2885
2886
2887 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2888 echo "configure:2889: checking for threads package to use" >&5
2889 # Check whether --enable-threads or --disable-threads was given.
2890 if test "${enable_threads+set}" = set; then
2891   enableval="$enable_threads"
2892   THREADS=$enableval
2893 else
2894     THREADS=no
2895 fi
2896
2897
2898 if test "$THREADS" = yes; then
2899    case "$host" in
2900     *-*-vxworks*)
2901        THREADS=vxworks
2902        ;;
2903     *-*-linux*)
2904        # FIXME: this isn't correct in all cases.
2905        THREADS=posix
2906        ;;
2907     *-*-win*)
2908        THREADS=win32
2909        ;;
2910     *-*-irix*)
2911        # FIXME: for now, choose POSIX, because we implement that.
2912        # Later, choose irix threads.
2913        THREADS=posix
2914        ;;
2915     *-*-solaris*)
2916        # FIXME: for now, choose POSIX, because we implement that.
2917        # Later, choose solaris threads.
2918        THREADS=posix
2919        ;;
2920     *)
2921        # For now.
2922        THREADS=none
2923        ;;
2924    esac
2925 fi
2926
2927 case "$THREADS" in
2928  no | none | single)
2929     THREADS=none
2930     ;;
2931  posix | pthreads)
2932     THREADS=posix
2933     case "$host" in
2934      *-*-linux*)
2935         cat >> confdefs.h <<\EOF
2936 #define LINUX_THREADS 1
2937 EOF
2938
2939         ;;
2940     esac
2941     ;;
2942  qt)
2943     ;;
2944  decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2945     { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2946     ;;
2947  *)
2948     { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2949     ;;
2950 esac
2951 echo "$ac_t""$THREADS" 1>&6
2952
2953 THREADLIBS=
2954 THREADINCS=
2955 THREADDEPS=
2956 THREADOBJS=
2957 THREADH=
2958 THREADSPEC=
2959 case "$THREADS" in
2960  posix)
2961     THREADLIBS=-lpthread
2962     THREADSPEC=-lpthread
2963     THREADOBJS=posix-threads.lo
2964     THREADH=posix-threads.h
2965     # MIT pthreads doesn't seem to have the mutexattr functions.
2966     # But for now we don't check for it.  We just assume you aren't
2967     # using MIT pthreads.
2968     cat >> confdefs.h <<\EOF
2969 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2970 EOF
2971
2972     ;;
2973
2974  qt)
2975     THREADDEPS='$(top_builddir)/../qthreads/libgcjcoop.la'
2976     # We include the path to the qthreads build directory.
2977     # See Makefile.am to understand why.
2978     THREADLIBS="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2979     THREADSPEC='-lgcjcoop'
2980     THREADOBJS=quick-threads.lo
2981     THREADINCS='-I$(top_srcdir)/../qthreads'
2982     THREADH=quick-threads.h
2983     ;;
2984
2985  none)
2986     THREADOBJS=no-threads.lo
2987     THREADH=no-threads.h
2988     ;;
2989 esac
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999 if test "$GCC" = yes; then
3000   USING_GCC_TRUE=
3001   USING_GCC_FALSE='#'
3002 else
3003   USING_GCC_TRUE='#'
3004   USING_GCC_FALSE=
3005 fi
3006
3007 CANADIAN=no
3008 NULL_TARGET=no
3009
3010 # Find eh-common.h and support headers.  If we're in the tree with
3011 # gcc, then look there.  Otherwise look in compat-include.  If all else
3012 # fails, just hope the user has set things up somehow.
3013 if test -r $srcdir/../gcc/eh-common.h; then
3014    EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
3015 else
3016    if test -d $srcdir/../compat-include; then
3017       EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
3018    else
3019       EH_COMMON_INCLUDE=
3020    fi
3021 fi
3022
3023 if test -n "${with_cross_host}"; then
3024    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
3025    # may not work correctly, because the compiler may not be able to
3026    # link executables.
3027
3028    # We assume newlib.  This lets us hard-code the functions we know
3029    # we'll have.
3030    cat >> confdefs.h <<\EOF
3031 #define HAVE_MEMMOVE 1
3032 EOF
3033
3034    cat >> confdefs.h <<\EOF
3035 #define HAVE_MEMCPY 1
3036 EOF
3037
3038    cat >> confdefs.h <<\EOF
3039 #define HAVE_STRERROR 1
3040 EOF
3041
3042    cat >> confdefs.h <<\EOF
3043 #define HAVE_CTIME_R 1
3044 EOF
3045
3046    cat >> confdefs.h <<\EOF
3047 #define HAVE_GMTIME_R 1
3048 EOF
3049
3050    cat >> confdefs.h <<\EOF
3051 #define HAVE_LOCALTIME_R 1
3052 EOF
3053
3054       cat >> confdefs.h <<\EOF
3055 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3056 EOF
3057
3058       cat >> confdefs.h <<\EOF
3059 #define HAVE_ALLOCA 1
3060 EOF
3061
3062
3063    ZLIBSPEC=-lgcj
3064
3065    # If Canadian cross, then don't pick up tools from the build
3066    # directory.
3067    if test "$build" != "$with_cross_host"; then
3068       CANADIAN=yes
3069       EH_COMMON_INCLUDE=
3070       GCJ="${target_alias}/gcj"
3071    else
3072       GCJ=
3073    fi
3074 else
3075    for ac_func in strerror ioctl select fstat open fsync sleep
3076 do
3077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_func" >&5
3079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3080   echo $ac_n "(cached) $ac_c" 1>&6
3081 else
3082   cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3085 /* System header to define __stub macros and hopefully few prototypes,
3086     which can conflict with char $ac_func(); below.  */
3087 #include <assert.h>
3088 /* Override any gcc2 internal prototype to avoid an error.  */
3089 /* We use char because int might match the return type of a gcc2
3090     builtin and then its argument prototype would still apply.  */
3091 char $ac_func();
3092
3093 int main() {
3094
3095 /* The GNU C library defines this for functions which it implements
3096     to always fail with ENOSYS.  Some functions are actually named
3097     something starting with __ and the normal name is an alias.  */
3098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3099 choke me
3100 #else
3101 $ac_func();
3102 #endif
3103
3104 ; return 0; }
3105 EOF
3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3107   rm -rf conftest*
3108   eval "ac_cv_func_$ac_func=yes"
3109 else
3110   echo "configure: failed program was:" >&5
3111   cat conftest.$ac_ext >&5
3112   rm -rf conftest*
3113   eval "ac_cv_func_$ac_func=no"
3114 fi
3115 rm -f conftest*
3116 fi
3117
3118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3119   echo "$ac_t""yes" 1>&6
3120     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3121   cat >> confdefs.h <<EOF
3122 #define $ac_tr_func 1
3123 EOF
3124  
3125 else
3126   echo "$ac_t""no" 1>&6
3127 fi
3128 done
3129
3130    for ac_func in ctime_r ctime
3131 do
3132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3133 echo "configure:3134: checking for $ac_func" >&5
3134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3135   echo $ac_n "(cached) $ac_c" 1>&6
3136 else
3137   cat > conftest.$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3140 /* System header to define __stub macros and hopefully few prototypes,
3141     which can conflict with char $ac_func(); below.  */
3142 #include <assert.h>
3143 /* Override any gcc2 internal prototype to avoid an error.  */
3144 /* We use char because int might match the return type of a gcc2
3145     builtin and then its argument prototype would still apply.  */
3146 char $ac_func();
3147
3148 int main() {
3149
3150 /* The GNU C library defines this for functions which it implements
3151     to always fail with ENOSYS.  Some functions are actually named
3152     something starting with __ and the normal name is an alias.  */
3153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3154 choke me
3155 #else
3156 $ac_func();
3157 #endif
3158
3159 ; return 0; }
3160 EOF
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3162   rm -rf conftest*
3163   eval "ac_cv_func_$ac_func=yes"
3164 else
3165   echo "configure: failed program was:" >&5
3166   cat conftest.$ac_ext >&5
3167   rm -rf conftest*
3168   eval "ac_cv_func_$ac_func=no"
3169 fi
3170 rm -f conftest*
3171 fi
3172
3173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3174   echo "$ac_t""yes" 1>&6
3175     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3176   cat >> confdefs.h <<EOF
3177 #define $ac_tr_func 1
3178 EOF
3179  break
3180 else
3181   echo "$ac_t""no" 1>&6
3182 fi
3183 done
3184
3185    for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
3186 do
3187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3188 echo "configure:3189: checking for $ac_func" >&5
3189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3190   echo $ac_n "(cached) $ac_c" 1>&6
3191 else
3192   cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 /* System header to define __stub macros and hopefully few prototypes,
3196     which can conflict with char $ac_func(); below.  */
3197 #include <assert.h>
3198 /* Override any gcc2 internal prototype to avoid an error.  */
3199 /* We use char because int might match the return type of a gcc2
3200     builtin and then its argument prototype would still apply.  */
3201 char $ac_func();
3202
3203 int main() {
3204
3205 /* The GNU C library defines this for functions which it implements
3206     to always fail with ENOSYS.  Some functions are actually named
3207     something starting with __ and the normal name is an alias.  */
3208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3209 choke me
3210 #else
3211 $ac_func();
3212 #endif
3213
3214 ; return 0; }
3215 EOF
3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3217   rm -rf conftest*
3218   eval "ac_cv_func_$ac_func=yes"
3219 else
3220   echo "configure: failed program was:" >&5
3221   cat conftest.$ac_ext >&5
3222   rm -rf conftest*
3223   eval "ac_cv_func_$ac_func=no"
3224 fi
3225 rm -f conftest*
3226 fi
3227
3228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3229   echo "$ac_t""yes" 1>&6
3230     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3231   cat >> confdefs.h <<EOF
3232 #define $ac_tr_func 1
3233 EOF
3234  
3235 else
3236   echo "$ac_t""no" 1>&6
3237 fi
3238 done
3239
3240    for ac_func in access stat mkdir rename rmdir unlink realpath
3241 do
3242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_func" >&5
3244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3245   echo $ac_n "(cached) $ac_c" 1>&6
3246 else
3247   cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 /* System header to define __stub macros and hopefully few prototypes,
3251     which can conflict with char $ac_func(); below.  */
3252 #include <assert.h>
3253 /* Override any gcc2 internal prototype to avoid an error.  */
3254 /* We use char because int might match the return type of a gcc2
3255     builtin and then its argument prototype would still apply.  */
3256 char $ac_func();
3257
3258 int main() {
3259
3260 /* The GNU C library defines this for functions which it implements
3261     to always fail with ENOSYS.  Some functions are actually named
3262     something starting with __ and the normal name is an alias.  */
3263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3264 choke me
3265 #else
3266 $ac_func();
3267 #endif
3268
3269 ; return 0; }
3270 EOF
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3272   rm -rf conftest*
3273   eval "ac_cv_func_$ac_func=yes"
3274 else
3275   echo "configure: failed program was:" >&5
3276   cat conftest.$ac_ext >&5
3277   rm -rf conftest*
3278   eval "ac_cv_func_$ac_func=no"
3279 fi
3280 rm -f conftest*
3281 fi
3282
3283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3284   echo "$ac_t""yes" 1>&6
3285     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3286   cat >> confdefs.h <<EOF
3287 #define $ac_tr_func 1
3288 EOF
3289  
3290 else
3291   echo "$ac_t""no" 1>&6
3292 fi
3293 done
3294
3295    for ac_func in inet_aton inet_addr
3296 do
3297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_func" >&5
3299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3300   echo $ac_n "(cached) $ac_c" 1>&6
3301 else
3302   cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 /* System header to define __stub macros and hopefully few prototypes,
3306     which can conflict with char $ac_func(); below.  */
3307 #include <assert.h>
3308 /* Override any gcc2 internal prototype to avoid an error.  */
3309 /* We use char because int might match the return type of a gcc2
3310     builtin and then its argument prototype would still apply.  */
3311 char $ac_func();
3312
3313 int main() {
3314
3315 /* The GNU C library defines this for functions which it implements
3316     to always fail with ENOSYS.  Some functions are actually named
3317     something starting with __ and the normal name is an alias.  */
3318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3319 choke me
3320 #else
3321 $ac_func();
3322 #endif
3323
3324 ; return 0; }
3325 EOF
3326 if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3327   rm -rf conftest*
3328   eval "ac_cv_func_$ac_func=yes"
3329 else
3330   echo "configure: failed program was:" >&5
3331   cat conftest.$ac_ext >&5
3332   rm -rf conftest*
3333   eval "ac_cv_func_$ac_func=no"
3334 fi
3335 rm -f conftest*
3336 fi
3337
3338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3339   echo "$ac_t""yes" 1>&6
3340     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3341   cat >> confdefs.h <<EOF
3342 #define $ac_tr_func 1
3343 EOF
3344  break
3345 else
3346   echo "$ac_t""no" 1>&6
3347 fi
3348 done
3349
3350    for ac_func in inet_pton uname inet_ntoa
3351 do
3352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3353 echo "configure:3354: checking for $ac_func" >&5
3354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3355   echo $ac_n "(cached) $ac_c" 1>&6
3356 else
3357   cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3360 /* System header to define __stub macros and hopefully few prototypes,
3361     which can conflict with char $ac_func(); below.  */
3362 #include <assert.h>
3363 /* Override any gcc2 internal prototype to avoid an error.  */
3364 /* We use char because int might match the return type of a gcc2
3365     builtin and then its argument prototype would still apply.  */
3366 char $ac_func();
3367
3368 int main() {
3369
3370 /* The GNU C library defines this for functions which it implements
3371     to always fail with ENOSYS.  Some functions are actually named
3372     something starting with __ and the normal name is an alias.  */
3373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3374 choke me
3375 #else
3376 $ac_func();
3377 #endif
3378
3379 ; return 0; }
3380 EOF
3381 if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3382   rm -rf conftest*
3383   eval "ac_cv_func_$ac_func=yes"
3384 else
3385   echo "configure: failed program was:" >&5
3386   cat conftest.$ac_ext >&5
3387   rm -rf conftest*
3388   eval "ac_cv_func_$ac_func=no"
3389 fi
3390 rm -f conftest*
3391 fi
3392
3393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3394   echo "$ac_t""yes" 1>&6
3395     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3396   cat >> confdefs.h <<EOF
3397 #define $ac_tr_func 1
3398 EOF
3399  
3400 else
3401   echo "$ac_t""no" 1>&6
3402 fi
3403 done
3404
3405
3406    for ac_func in gethostbyname_r
3407 do
3408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3409 echo "configure:3410: checking for $ac_func" >&5
3410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3411   echo $ac_n "(cached) $ac_c" 1>&6
3412 else
3413   cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 /* System header to define __stub macros and hopefully few prototypes,
3417     which can conflict with char $ac_func(); below.  */
3418 #include <assert.h>
3419 /* Override any gcc2 internal prototype to avoid an error.  */
3420 /* We use char because int might match the return type of a gcc2
3421     builtin and then its argument prototype would still apply.  */
3422 char $ac_func();
3423
3424 int main() {
3425
3426 /* The GNU C library defines this for functions which it implements
3427     to always fail with ENOSYS.  Some functions are actually named
3428     something starting with __ and the normal name is an alias.  */
3429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3430 choke me
3431 #else
3432 $ac_func();
3433 #endif
3434
3435 ; return 0; }
3436 EOF
3437 if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3438   rm -rf conftest*
3439   eval "ac_cv_func_$ac_func=yes"
3440 else
3441   echo "configure: failed program was:" >&5
3442   cat conftest.$ac_ext >&5
3443   rm -rf conftest*
3444   eval "ac_cv_func_$ac_func=no"
3445 fi
3446 rm -f conftest*
3447 fi
3448
3449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3450   echo "$ac_t""yes" 1>&6
3451     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3452   cat >> confdefs.h <<EOF
3453 #define $ac_tr_func 1
3454 EOF
3455  
3456      cat >> confdefs.h <<\EOF
3457 #define HAVE_GETHOSTBYNAME_R 1
3458 EOF
3459
3460      # There are two different kinds of gethostbyname_r.
3461      # We look for the one that returns `int'.
3462      # Hopefully this check is robust enough.
3463      cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <netdb.h>
3467 EOF
3468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469   egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3470   rm -rf conftest*
3471   
3472        cat >> confdefs.h <<\EOF
3473 #define GETHOSTBYNAME_R_RETURNS_INT 1
3474 EOF
3475
3476 fi
3477 rm -f conftest*
3478
3479
3480      case " $GCINCS " in
3481      *" -D_REENTRANT "*) ;;
3482      *)
3483                 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3484 echo "configure:3485: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3485 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3486   echo $ac_n "(cached) $ac_c" 1>&6
3487 else
3488    
3489           ac_ext=C
3490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3491 ac_cpp='$CXXCPP $CPPFLAGS'
3492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3494 cross_compiling=$ac_cv_prog_cxx_cross
3495
3496           cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <netdb.h>
3500 int main() {
3501 gethostbyname_r("", 0, 0);
3502 ; return 0; }
3503 EOF
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505   rm -rf conftest*
3506   libjava_cv_gethostbyname_r_needs_reentrant=no
3507 else
3508   echo "configure: failed program was:" >&5
3509   cat conftest.$ac_ext >&5
3510   rm -rf conftest*
3511                 CPPFLAGS_SAVE="$CPPFLAGS"
3512                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3513                 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 #include <netdb.h>
3517 int main() {
3518 gethostbyname_r("", 0, 0);
3519 ; return 0; }
3520 EOF
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522   rm -rf conftest*
3523   libjava_cv_gethostbyname_r_needs_reentrant=yes
3524 else
3525   echo "configure: failed program was:" >&5
3526   cat conftest.$ac_ext >&5
3527   rm -rf conftest*
3528   libjava_cv_gethostbyname_r_needs_reentrant=fail
3529 fi
3530 rm -f conftest*
3531                 CPPFLAGS="$CPPFLAGS_SAVE"
3532           
3533 fi
3534 rm -f conftest*
3535           ac_ext=c
3536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3540 cross_compiling=$ac_cv_prog_cc_cross
3541
3542         
3543 fi
3544
3545 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3546         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3547           cat >> confdefs.h <<\EOF
3548 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3549 EOF
3550
3551         fi
3552      ;;
3553      esac
3554
3555      echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3556 echo "configure:3557: checking for struct hostent_data" >&5
3557 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3558   echo $ac_n "(cached) $ac_c" 1>&6
3559 else
3560         cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563
3564 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3565 # define _REENTRANT 1
3566 #endif
3567 #include <netdb.h>
3568 int main() {
3569 struct hostent_data data;
3570 ; return 0; }
3571 EOF
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3573   rm -rf conftest*
3574   libjava_cv_struct_hostent_data=yes
3575 else
3576   echo "configure: failed program was:" >&5
3577   cat conftest.$ac_ext >&5
3578   rm -rf conftest*
3579   libjava_cv_struct_hostent_data=no
3580 fi
3581 rm -f conftest*
3582 fi
3583
3584 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3585      if test "x$libjava_cv_struct_hostent_data" = xyes; then
3586        cat >> confdefs.h <<\EOF
3587 #define HAVE_STRUCT_HOSTENT_DATA 1
3588 EOF
3589
3590      fi
3591    
3592 else
3593   echo "$ac_t""no" 1>&6
3594 fi
3595 done
3596
3597
3598    for ac_func in gethostbyaddr_r
3599 do
3600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3601 echo "configure:3602: checking for $ac_func" >&5
3602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3603   echo $ac_n "(cached) $ac_c" 1>&6
3604 else
3605   cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 /* System header to define __stub macros and hopefully few prototypes,
3609     which can conflict with char $ac_func(); below.  */
3610 #include <assert.h>
3611 /* Override any gcc2 internal prototype to avoid an error.  */
3612 /* We use char because int might match the return type of a gcc2
3613     builtin and then its argument prototype would still apply.  */
3614 char $ac_func();
3615
3616 int main() {
3617
3618 /* The GNU C library defines this for functions which it implements
3619     to always fail with ENOSYS.  Some functions are actually named
3620     something starting with __ and the normal name is an alias.  */
3621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3622 choke me
3623 #else
3624 $ac_func();
3625 #endif
3626
3627 ; return 0; }
3628 EOF
3629 if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3630   rm -rf conftest*
3631   eval "ac_cv_func_$ac_func=yes"
3632 else
3633   echo "configure: failed program was:" >&5
3634   cat conftest.$ac_ext >&5
3635   rm -rf conftest*
3636   eval "ac_cv_func_$ac_func=no"
3637 fi
3638 rm -f conftest*
3639 fi
3640
3641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3642   echo "$ac_t""yes" 1>&6
3643     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3644   cat >> confdefs.h <<EOF
3645 #define $ac_tr_func 1
3646 EOF
3647  
3648      cat >> confdefs.h <<\EOF
3649 #define HAVE_GETHOSTBYADDR_R 1
3650 EOF
3651
3652      # There are two different kinds of gethostbyaddr_r.
3653      # We look for the one that returns `int'.
3654      # Hopefully this check is robust enough.
3655      cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 #include <netdb.h>
3659 EOF
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661   egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3662   rm -rf conftest*
3663   
3664        cat >> confdefs.h <<\EOF
3665 #define GETHOSTBYADDR_R_RETURNS_INT 1
3666 EOF
3667
3668 fi
3669 rm -f conftest*
3670
3671 else
3672   echo "$ac_t""no" 1>&6
3673 fi
3674 done
3675
3676
3677    for ac_func in gethostname
3678 do
3679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3680 echo "configure:3681: checking for $ac_func" >&5
3681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3682   echo $ac_n "(cached) $ac_c" 1>&6
3683 else
3684   cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 /* System header to define __stub macros and hopefully few prototypes,
3688     which can conflict with char $ac_func(); below.  */
3689 #include <assert.h>
3690 /* Override any gcc2 internal prototype to avoid an error.  */
3691 /* We use char because int might match the return type of a gcc2
3692     builtin and then its argument prototype would still apply.  */
3693 char $ac_func();
3694
3695 int main() {
3696
3697 /* The GNU C library defines this for functions which it implements
3698     to always fail with ENOSYS.  Some functions are actually named
3699     something starting with __ and the normal name is an alias.  */
3700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3701 choke me
3702 #else
3703 $ac_func();
3704 #endif
3705
3706 ; return 0; }
3707 EOF
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3709   rm -rf conftest*
3710   eval "ac_cv_func_$ac_func=yes"
3711 else
3712   echo "configure: failed program was:" >&5
3713   cat conftest.$ac_ext >&5
3714   rm -rf conftest*
3715   eval "ac_cv_func_$ac_func=no"
3716 fi
3717 rm -f conftest*
3718 fi
3719
3720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3721   echo "$ac_t""yes" 1>&6
3722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3723   cat >> confdefs.h <<EOF
3724 #define $ac_tr_func 1
3725 EOF
3726  
3727      cat >> confdefs.h <<\EOF
3728 #define HAVE_GETHOSTNAME 1
3729 EOF
3730
3731      cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <unistd.h>
3735 EOF
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737   egrep "gethostname" >/dev/null 2>&1; then
3738   rm -rf conftest*
3739   
3740        cat >> confdefs.h <<\EOF
3741 #define HAVE_GETHOSTNAME_DECL 1
3742 EOF
3743
3744 fi
3745 rm -f conftest*
3746
3747 else
3748   echo "$ac_t""no" 1>&6
3749 fi
3750 done
3751
3752
3753    # Look for these functions in the thread library, but only bother
3754    # if using POSIX threads.
3755    if test "$THREADS" = posix; then
3756       save_LIBS="$LIBS"
3757       LIBS="$LIBS $THREADLIBS"
3758       # Some POSIX thread systems don't have pthread_mutexattr_settype.
3759       # E.g., Solaris.
3760       for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3761 do
3762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3763 echo "configure:3764: checking for $ac_func" >&5
3764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3765   echo $ac_n "(cached) $ac_c" 1>&6
3766 else
3767   cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* System header to define __stub macros and hopefully few prototypes,
3771     which can conflict with char $ac_func(); below.  */
3772 #include <assert.h>
3773 /* Override any gcc2 internal prototype to avoid an error.  */
3774 /* We use char because int might match the return type of a gcc2
3775     builtin and then its argument prototype would still apply.  */
3776 char $ac_func();
3777
3778 int main() {
3779
3780 /* The GNU C library defines this for functions which it implements
3781     to always fail with ENOSYS.  Some functions are actually named
3782     something starting with __ and the normal name is an alias.  */
3783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3784 choke me
3785 #else
3786 $ac_func();
3787 #endif
3788
3789 ; return 0; }
3790 EOF
3791 if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792   rm -rf conftest*
3793   eval "ac_cv_func_$ac_func=yes"
3794 else
3795   echo "configure: failed program was:" >&5
3796   cat conftest.$ac_ext >&5
3797   rm -rf conftest*
3798   eval "ac_cv_func_$ac_func=no"
3799 fi
3800 rm -f conftest*
3801 fi
3802
3803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3804   echo "$ac_t""yes" 1>&6
3805     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3806   cat >> confdefs.h <<EOF
3807 #define $ac_tr_func 1
3808 EOF
3809  
3810 else
3811   echo "$ac_t""no" 1>&6
3812 fi
3813 done
3814
3815
3816       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
3817       # Solaris 7 the name librt is preferred.
3818       for ac_func in sched_yield
3819 do
3820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3821 echo "configure:3822: checking for $ac_func" >&5
3822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3823   echo $ac_n "(cached) $ac_c" 1>&6
3824 else
3825   cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 /* System header to define __stub macros and hopefully few prototypes,
3829     which can conflict with char $ac_func(); below.  */
3830 #include <assert.h>
3831 /* Override any gcc2 internal prototype to avoid an error.  */
3832 /* We use char because int might match the return type of a gcc2
3833     builtin and then its argument prototype would still apply.  */
3834 char $ac_func();
3835
3836 int main() {
3837
3838 /* The GNU C library defines this for functions which it implements
3839     to always fail with ENOSYS.  Some functions are actually named
3840     something starting with __ and the normal name is an alias.  */
3841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3842 choke me
3843 #else
3844 $ac_func();
3845 #endif
3846
3847 ; return 0; }
3848 EOF
3849 if { (eval echo configure:3850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3850   rm -rf conftest*
3851   eval "ac_cv_func_$ac_func=yes"
3852 else
3853   echo "configure: failed program was:" >&5
3854   cat conftest.$ac_ext >&5
3855   rm -rf conftest*
3856   eval "ac_cv_func_$ac_func=no"
3857 fi
3858 rm -f conftest*
3859 fi
3860
3861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3862   echo "$ac_t""yes" 1>&6
3863     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3864   cat >> confdefs.h <<EOF
3865 #define $ac_tr_func 1
3866 EOF
3867  
3868 else
3869   echo "$ac_t""no" 1>&6
3870 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3871 echo "configure:3872: checking for sched_yield in -lrt" >&5
3872 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3874   echo $ac_n "(cached) $ac_c" 1>&6
3875 else
3876   ac_save_LIBS="$LIBS"
3877 LIBS="-lrt  $LIBS"
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3881 /* Override any gcc2 internal prototype to avoid an error.  */
3882 /* We use char because int might match the return type of a gcc2
3883     builtin and then its argument prototype would still apply.  */
3884 char sched_yield();
3885
3886 int main() {
3887 sched_yield()
3888 ; return 0; }
3889 EOF
3890 if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3891   rm -rf conftest*
3892   eval "ac_cv_lib_$ac_lib_var=yes"
3893 else
3894   echo "configure: failed program was:" >&5
3895   cat conftest.$ac_ext >&5
3896   rm -rf conftest*
3897   eval "ac_cv_lib_$ac_lib_var=no"
3898 fi
3899 rm -f conftest*
3900 LIBS="$ac_save_LIBS"
3901
3902 fi
3903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3904   echo "$ac_t""yes" 1>&6
3905   
3906           cat >> confdefs.h <<\EOF
3907 #define HAVE_SCHED_YIELD 1
3908 EOF
3909
3910           THREADLIBS="$THREADLIBS -lrt"
3911           THREADSPEC="$THREADSPEC -lrt"
3912 else
3913   echo "$ac_t""no" 1>&6
3914
3915           echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3916 echo "configure:3917: checking for sched_yield in -lposix4" >&5
3917 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3919   echo $ac_n "(cached) $ac_c" 1>&6
3920 else
3921   ac_save_LIBS="$LIBS"
3922 LIBS="-lposix4  $LIBS"
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* Override any gcc2 internal prototype to avoid an error.  */
3927 /* We use char because int might match the return type of a gcc2
3928     builtin and then its argument prototype would still apply.  */
3929 char sched_yield();
3930
3931 int main() {
3932 sched_yield()
3933 ; return 0; }
3934 EOF
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3936   rm -rf conftest*
3937   eval "ac_cv_lib_$ac_lib_var=yes"
3938 else
3939   echo "configure: failed program was:" >&5
3940   cat conftest.$ac_ext >&5
3941   rm -rf conftest*
3942   eval "ac_cv_lib_$ac_lib_var=no"
3943 fi
3944 rm -f conftest*
3945 LIBS="$ac_save_LIBS"
3946
3947 fi
3948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3949   echo "$ac_t""yes" 1>&6
3950   
3951             cat >> confdefs.h <<\EOF
3952 #define HAVE_SCHED_YIELD 1
3953 EOF
3954
3955             THREADLIBS="$THREADLIBS -lposix4"
3956             THREADSPEC="$THREADSPEC -lposix4"
3957 else
3958   echo "$ac_t""no" 1>&6
3959 fi
3960
3961 fi
3962
3963 fi
3964 done
3965
3966       LIBS="$save_LIBS"
3967
3968       # We can save a little space at runtime if the mutex has m_count
3969       # or __m_count.  This is a nice hack for Linux.
3970       cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 #include <pthread.h>
3974 int main() {
3975
3976           extern pthread_mutex_t *mutex; int q = mutex->m_count;
3977         
3978 ; return 0; }
3979 EOF
3980 if { (eval echo configure:3981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3981   rm -rf conftest*
3982   cat >> confdefs.h <<\EOF
3983 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3984 EOF
3985
3986 else
3987   echo "configure: failed program was:" >&5
3988   cat conftest.$ac_ext >&5
3989   rm -rf conftest*
3990   
3991         cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3994 #include <pthread.h>
3995 int main() {
3996
3997             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3998           
3999 ; return 0; }
4000 EOF
4001 if { (eval echo configure:4002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4002   rm -rf conftest*
4003   cat >> confdefs.h <<\EOF
4004 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4005 EOF
4006
4007 else
4008   echo "configure: failed program was:" >&5
4009   cat conftest.$ac_ext >&5
4010 fi
4011 rm -f conftest*
4012 fi
4013 rm -f conftest*
4014    fi
4015
4016    # We require a way to get the time.
4017    time_found=no
4018    for ac_func in gettimeofday time ftime
4019 do
4020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4021 echo "configure:4022: checking for $ac_func" >&5
4022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4023   echo $ac_n "(cached) $ac_c" 1>&6
4024 else
4025   cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 /* System header to define __stub macros and hopefully few prototypes,
4029     which can conflict with char $ac_func(); below.  */
4030 #include <assert.h>
4031 /* Override any gcc2 internal prototype to avoid an error.  */
4032 /* We use char because int might match the return type of a gcc2
4033     builtin and then its argument prototype would still apply.  */
4034 char $ac_func();
4035
4036 int main() {
4037
4038 /* The GNU C library defines this for functions which it implements
4039     to always fail with ENOSYS.  Some functions are actually named
4040     something starting with __ and the normal name is an alias.  */
4041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4042 choke me
4043 #else
4044 $ac_func();
4045 #endif
4046
4047 ; return 0; }
4048 EOF
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4050   rm -rf conftest*
4051   eval "ac_cv_func_$ac_func=yes"
4052 else
4053   echo "configure: failed program was:" >&5
4054   cat conftest.$ac_ext >&5
4055   rm -rf conftest*
4056   eval "ac_cv_func_$ac_func=no"
4057 fi
4058 rm -f conftest*
4059 fi
4060
4061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4062   echo "$ac_t""yes" 1>&6
4063     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4064   cat >> confdefs.h <<EOF
4065 #define $ac_tr_func 1
4066 EOF
4067  time_found=yes
4068 else
4069   echo "$ac_t""no" 1>&6
4070 fi
4071 done
4072
4073    if test "$time_found" = no; then
4074       { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4075    fi
4076
4077    for ac_func in memmove
4078 do
4079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4080 echo "configure:4081: checking for $ac_func" >&5
4081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4082   echo $ac_n "(cached) $ac_c" 1>&6
4083 else
4084   cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 /* System header to define __stub macros and hopefully few prototypes,
4088     which can conflict with char $ac_func(); below.  */
4089 #include <assert.h>
4090 /* Override any gcc2 internal prototype to avoid an error.  */
4091 /* We use char because int might match the return type of a gcc2
4092     builtin and then its argument prototype would still apply.  */
4093 char $ac_func();
4094
4095 int main() {
4096
4097 /* The GNU C library defines this for functions which it implements
4098     to always fail with ENOSYS.  Some functions are actually named
4099     something starting with __ and the normal name is an alias.  */
4100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4101 choke me
4102 #else
4103 $ac_func();
4104 #endif
4105
4106 ; return 0; }
4107 EOF
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4109   rm -rf conftest*
4110   eval "ac_cv_func_$ac_func=yes"
4111 else
4112   echo "configure: failed program was:" >&5
4113   cat conftest.$ac_ext >&5
4114   rm -rf conftest*
4115   eval "ac_cv_func_$ac_func=no"
4116 fi
4117 rm -f conftest*
4118 fi
4119
4120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4121   echo "$ac_t""yes" 1>&6
4122     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4123   cat >> confdefs.h <<EOF
4124 #define $ac_tr_func 1
4125 EOF
4126  
4127 else
4128   echo "$ac_t""no" 1>&6
4129 fi
4130 done
4131
4132
4133    # We require memcpy.
4134    memcpy_found=no
4135    for ac_func in memcpy
4136 do
4137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4138 echo "configure:4139: checking for $ac_func" >&5
4139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4140   echo $ac_n "(cached) $ac_c" 1>&6
4141 else
4142   cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* System header to define __stub macros and hopefully few prototypes,
4146     which can conflict with char $ac_func(); below.  */
4147 #include <assert.h>
4148 /* Override any gcc2 internal prototype to avoid an error.  */
4149 /* We use char because int might match the return type of a gcc2
4150     builtin and then its argument prototype would still apply.  */
4151 char $ac_func();
4152
4153 int main() {
4154
4155 /* The GNU C library defines this for functions which it implements
4156     to always fail with ENOSYS.  Some functions are actually named
4157     something starting with __ and the normal name is an alias.  */
4158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4159 choke me
4160 #else
4161 $ac_func();
4162 #endif
4163
4164 ; return 0; }
4165 EOF
4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4167   rm -rf conftest*
4168   eval "ac_cv_func_$ac_func=yes"
4169 else
4170   echo "configure: failed program was:" >&5
4171   cat conftest.$ac_ext >&5
4172   rm -rf conftest*
4173   eval "ac_cv_func_$ac_func=no"
4174 fi
4175 rm -f conftest*
4176 fi
4177
4178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4179   echo "$ac_t""yes" 1>&6
4180     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4181   cat >> confdefs.h <<EOF
4182 #define $ac_tr_func 1
4183 EOF
4184  memcpy_found=yes
4185 else
4186   echo "$ac_t""no" 1>&6
4187 fi
4188 done
4189
4190    if test "$memcpy_found" = no; then
4191       { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4192    fi
4193
4194    # Some library-finding code we stole from Tcl.
4195    #--------------------------------------------------------------------
4196    #    Check for the existence of the -lsocket and -lnsl libraries.
4197    #    The order here is important, so that they end up in the right
4198    #    order in the command line generated by make.  Here are some
4199    #    special considerations:
4200    #    1. Use "connect" and "accept" to check for -lsocket, and
4201    #       "gethostbyname" to check for -lnsl.
4202    #    2. Use each function name only once:  can't redo a check because
4203    #       autoconf caches the results of the last check and won't redo it.
4204    #    3. Use -lnsl and -lsocket only if they supply procedures that
4205    #       aren't already present in the normal libraries.  This is because
4206    #       IRIX 5.2 has libraries, but they aren't needed and they're
4207    #       bogus:  they goof up name resolution if used.
4208    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4209    #       To get around this problem, check for both libraries together
4210    #       if -lsocket doesn't work by itself.
4211    #--------------------------------------------------------------------
4212
4213    echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4214 echo "configure:4215: checking for socket libraries" >&5
4215 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4216   echo $ac_n "(cached) $ac_c" 1>&6
4217 else
4218   gcj_cv_lib_sockets=
4219      gcj_checkBoth=0
4220      unset ac_cv_func_connect
4221      echo $ac_n "checking for connect""... $ac_c" 1>&6
4222 echo "configure:4223: checking for connect" >&5
4223 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4224   echo $ac_n "(cached) $ac_c" 1>&6
4225 else
4226   cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* System header to define __stub macros and hopefully few prototypes,
4230     which can conflict with char connect(); below.  */
4231 #include <assert.h>
4232 /* Override any gcc2 internal prototype to avoid an error.  */
4233 /* We use char because int might match the return type of a gcc2
4234     builtin and then its argument prototype would still apply.  */
4235 char connect();
4236
4237 int main() {
4238
4239 /* The GNU C library defines this for functions which it implements
4240     to always fail with ENOSYS.  Some functions are actually named
4241     something starting with __ and the normal name is an alias.  */
4242 #if defined (__stub_connect) || defined (__stub___connect)
4243 choke me
4244 #else
4245 connect();
4246 #endif
4247
4248 ; return 0; }
4249 EOF
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4251   rm -rf conftest*
4252   eval "ac_cv_func_connect=yes"
4253 else
4254   echo "configure: failed program was:" >&5
4255   cat conftest.$ac_ext >&5
4256   rm -rf conftest*
4257   eval "ac_cv_func_connect=no"
4258 fi
4259 rm -f conftest*
4260 fi
4261
4262 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4263   echo "$ac_t""yes" 1>&6
4264   gcj_checkSocket=0
4265 else
4266   echo "$ac_t""no" 1>&6
4267 gcj_checkSocket=1
4268 fi
4269
4270      if test "$gcj_checkSocket" = 1; then
4271          unset ac_cv_func_connect
4272          echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4273 echo "configure:4274: checking for main in -lsocket" >&5
4274 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4276   echo $ac_n "(cached) $ac_c" 1>&6
4277 else
4278   ac_save_LIBS="$LIBS"
4279 LIBS="-lsocket  $LIBS"
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283
4284 int main() {
4285 main()
4286 ; return 0; }
4287 EOF
4288 if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4289   rm -rf conftest*
4290   eval "ac_cv_lib_$ac_lib_var=yes"
4291 else
4292   echo "configure: failed program was:" >&5
4293   cat conftest.$ac_ext >&5
4294   rm -rf conftest*
4295   eval "ac_cv_lib_$ac_lib_var=no"
4296 fi
4297 rm -f conftest*
4298 LIBS="$ac_save_LIBS"
4299
4300 fi
4301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4302   echo "$ac_t""yes" 1>&6
4303   gcj_cv_lib_sockets="-lsocket"
4304 else
4305   echo "$ac_t""no" 1>&6
4306 gcj_checkBoth=1
4307 fi
4308
4309      fi
4310      if test "$gcj_checkBoth" = 1; then
4311          gcj_oldLibs=$LIBS
4312          LIBS="$LIBS -lsocket -lnsl"
4313          unset ac_cv_func_accept
4314          echo $ac_n "checking for accept""... $ac_c" 1>&6
4315 echo "configure:4316: checking for accept" >&5
4316 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4317   echo $ac_n "(cached) $ac_c" 1>&6
4318 else
4319   cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 /* System header to define __stub macros and hopefully few prototypes,
4323     which can conflict with char accept(); below.  */
4324 #include <assert.h>
4325 /* Override any gcc2 internal prototype to avoid an error.  */
4326 /* We use char because int might match the return type of a gcc2
4327     builtin and then its argument prototype would still apply.  */
4328 char accept();
4329
4330 int main() {
4331
4332 /* The GNU C library defines this for functions which it implements
4333     to always fail with ENOSYS.  Some functions are actually named
4334     something starting with __ and the normal name is an alias.  */
4335 #if defined (__stub_accept) || defined (__stub___accept)
4336 choke me
4337 #else
4338 accept();
4339 #endif
4340
4341 ; return 0; }
4342 EOF
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4344   rm -rf conftest*
4345   eval "ac_cv_func_accept=yes"
4346 else
4347   echo "configure: failed program was:" >&5
4348   cat conftest.$ac_ext >&5
4349   rm -rf conftest*
4350   eval "ac_cv_func_accept=no"
4351 fi
4352 rm -f conftest*
4353 fi
4354
4355 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4356   echo "$ac_t""yes" 1>&6
4357   gcj_checkNsl=0
4358                         gcj_cv_lib_sockets="-lsocket -lnsl"
4359 else
4360   echo "$ac_t""no" 1>&6
4361 fi
4362
4363          unset ac_cv_func_accept
4364          LIBS=$gcj_oldLibs
4365      fi
4366      unset ac_cv_func_gethostbyname
4367      gcj_oldLibs=$LIBS
4368      LIBS="$LIBS $gcj_cv_lib_sockets"
4369      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4370 echo "configure:4371: checking for gethostbyname" >&5
4371 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4372   echo $ac_n "(cached) $ac_c" 1>&6
4373 else
4374   cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 /* System header to define __stub macros and hopefully few prototypes,
4378     which can conflict with char gethostbyname(); below.  */
4379 #include <assert.h>
4380 /* Override any gcc2 internal prototype to avoid an error.  */
4381 /* We use char because int might match the return type of a gcc2
4382     builtin and then its argument prototype would still apply.  */
4383 char gethostbyname();
4384
4385 int main() {
4386
4387 /* The GNU C library defines this for functions which it implements
4388     to always fail with ENOSYS.  Some functions are actually named
4389     something starting with __ and the normal name is an alias.  */
4390 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4391 choke me
4392 #else
4393 gethostbyname();
4394 #endif
4395
4396 ; return 0; }
4397 EOF
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4399   rm -rf conftest*
4400   eval "ac_cv_func_gethostbyname=yes"
4401 else
4402   echo "configure: failed program was:" >&5
4403   cat conftest.$ac_ext >&5
4404   rm -rf conftest*
4405   eval "ac_cv_func_gethostbyname=no"
4406 fi
4407 rm -f conftest*
4408 fi
4409
4410 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4411   echo "$ac_t""yes" 1>&6
4412   :
4413 else
4414   echo "$ac_t""no" 1>&6
4415 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4416 echo "configure:4417: checking for main in -lnsl" >&5
4417 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4419   echo $ac_n "(cached) $ac_c" 1>&6
4420 else
4421   ac_save_LIBS="$LIBS"
4422 LIBS="-lnsl  $LIBS"
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426
4427 int main() {
4428 main()
4429 ; return 0; }
4430 EOF
4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4432   rm -rf conftest*
4433   eval "ac_cv_lib_$ac_lib_var=yes"
4434 else
4435   echo "configure: failed program was:" >&5
4436   cat conftest.$ac_ext >&5
4437   rm -rf conftest*
4438   eval "ac_cv_lib_$ac_lib_var=no"
4439 fi
4440 rm -f conftest*
4441 LIBS="$ac_save_LIBS"
4442
4443 fi
4444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4445   echo "$ac_t""yes" 1>&6
4446   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4447 else
4448   echo "$ac_t""no" 1>&6
4449 fi
4450
4451 fi
4452
4453      unset ac_cv_func_gethostbyname
4454      LIBS=$gcj_oldLIBS
4455    
4456 fi
4457
4458 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4459    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4460
4461    if test "$with_system_zlib" = yes; then
4462       echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4463 echo "configure:4464: checking for deflate in -lz" >&5
4464 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4466   echo $ac_n "(cached) $ac_c" 1>&6
4467 else
4468   ac_save_LIBS="$LIBS"
4469 LIBS="-lz  $LIBS"
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 /* Override any gcc2 internal prototype to avoid an error.  */
4474 /* We use char because int might match the return type of a gcc2
4475     builtin and then its argument prototype would still apply.  */
4476 char deflate();
4477
4478 int main() {
4479 deflate()
4480 ; return 0; }
4481 EOF
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483   rm -rf conftest*
4484   eval "ac_cv_lib_$ac_lib_var=yes"
4485 else
4486   echo "configure: failed program was:" >&5
4487   cat conftest.$ac_ext >&5
4488   rm -rf conftest*
4489   eval "ac_cv_lib_$ac_lib_var=no"
4490 fi
4491 rm -f conftest*
4492 LIBS="$ac_save_LIBS"
4493
4494 fi
4495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4496   echo "$ac_t""yes" 1>&6
4497   ZLIBSPEC=-lz
4498 else
4499   echo "$ac_t""no" 1>&6
4500 ZLIBSPEC=-lzgcj
4501 fi
4502
4503    else
4504       ZLIBSPEC=-lzgcj
4505    fi
4506
4507    # On Solaris, and maybe other architectures, the Boehm collector
4508    # requires -ldl.
4509    if test "$GC" = boehm; then
4510       echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4511 echo "configure:4512: checking for main in -ldl" >&5
4512 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4514   echo $ac_n "(cached) $ac_c" 1>&6
4515 else
4516   ac_save_LIBS="$LIBS"
4517 LIBS="-ldl  $LIBS"
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521
4522 int main() {
4523 main()
4524 ; return 0; }
4525 EOF
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527   rm -rf conftest*
4528   eval "ac_cv_lib_$ac_lib_var=yes"
4529 else
4530   echo "configure: failed program was:" >&5
4531   cat conftest.$ac_ext >&5
4532   rm -rf conftest*
4533   eval "ac_cv_lib_$ac_lib_var=no"
4534 fi
4535 rm -f conftest*
4536 LIBS="$ac_save_LIBS"
4537
4538 fi
4539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4540   echo "$ac_t""yes" 1>&6
4541   SYSTEMSPEC="$SYSTEMSPEC -ldl"
4542 else
4543   echo "$ac_t""no" 1>&6
4544 fi
4545
4546    fi
4547
4548    if test -d "$libgcj_basedir/../gcc/java"; then
4549       GCJ=
4550    else
4551       CANADIAN=yes
4552       NULL_TARGET=yes
4553       GCJ=gcj
4554    fi
4555 fi
4556
4557 ZLIBS=
4558 ZDEPS=
4559 ZINCS=
4560 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4561    # We include the path to the zlib build directory.
4562    # See Makefile.am to understand why.
4563    ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4564    ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4565    ZINCS='-I$(top_srcdir)/../zlib'
4566 else
4567    ZLIBS="$ZLIBSPEC"
4568 fi
4569
4570
4571
4572
4573
4574
4575
4576 if test "$CANADIAN" = yes; then
4577   CANADIAN_TRUE=
4578   CANADIAN_FALSE='#'
4579 else
4580   CANADIAN_TRUE='#'
4581   CANADIAN_FALSE=
4582 fi
4583
4584
4585 if test "$NULL_TARGET" = yes; then
4586   NULL_TARGET_TRUE=
4587   NULL_TARGET_FALSE='#'
4588 else
4589   NULL_TARGET_TRUE='#'
4590   NULL_TARGET_FALSE=
4591 fi
4592
4593
4594 if test "$CANADIAN" = no || test "$NULL_TARGET" = yes; then
4595   NATIVE_TRUE=
4596   NATIVE_FALSE='#'
4597 else
4598   NATIVE_TRUE='#'
4599   NATIVE_FALSE=
4600 fi
4601
4602
4603 if test -z "$with_cross_host"; then
4604   USE_LIBDIR_TRUE=
4605   USE_LIBDIR_FALSE='#'
4606 else
4607   USE_LIBDIR_TRUE='#'
4608   USE_LIBDIR_FALSE=
4609 fi
4610
4611
4612 # Determine gcj version number.
4613 if test "$GCJ" = ""; then
4614    if test -z "${with_multisubdir}"; then
4615       builddotdot=.
4616    else
4617       builddotdot=`echo ${with_multisubdir} | sed -e 's:^/^/*:..:g'`
4618    fi
4619    dir="`cd ${builddotdot}/../../gcc && pwd`"
4620    GCJ="$dir/gcj -B$dir/"
4621 fi
4622
4623 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4624
4625 cat >> confdefs.h <<EOF
4626 #define GCJVERSION "$gcjvers"
4627 EOF
4628
4629
4630 # See if gcj supports -fuse-divide-subroutine.  gcc 2.95 does not, and
4631 # we want to continue to support that version.
4632 cat > conftest.java << 'END'
4633 public class conftest { }
4634 END
4635 use_fuse=yes
4636 $GCJ -fuse-divide-subroutine -fsyntax-only conftest.java > /dev/null 2>&1 \
4637    || use_fuse=no
4638 rm -f conftest.java
4639 if test "$use_fuse" = no; then
4640    DIVIDESPEC=
4641 fi
4642
4643
4644
4645 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h
4646 do
4647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651   echo $ac_n "(cached) $ac_c" 1>&6
4652 else
4653   cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #include <$ac_hdr>
4657 EOF
4658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4662   rm -rf conftest*
4663   eval "ac_cv_header_$ac_safe=yes"
4664 else
4665   echo "$ac_err" >&5
4666   echo "configure: failed program was:" >&5
4667   cat conftest.$ac_ext >&5
4668   rm -rf conftest*
4669   eval "ac_cv_header_$ac_safe=no"
4670 fi
4671 rm -f conftest*
4672 fi
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674   echo "$ac_t""yes" 1>&6
4675     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676   cat >> confdefs.h <<EOF
4677 #define $ac_tr_hdr 1
4678 EOF
4679  
4680 else
4681   echo "$ac_t""no" 1>&6
4682 fi
4683 done
4684
4685 for ac_hdr in dirent.h
4686 do
4687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4689 echo "configure:4690: checking for $ac_hdr" >&5
4690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4691   echo $ac_n "(cached) $ac_c" 1>&6
4692 else
4693   cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4696 #include <$ac_hdr>
4697 EOF
4698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4699 { (eval echo configure:4700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4701 if test -z "$ac_err"; then
4702   rm -rf conftest*
4703   eval "ac_cv_header_$ac_safe=yes"
4704 else
4705   echo "$ac_err" >&5
4706   echo "configure: failed program was:" >&5
4707   cat conftest.$ac_ext >&5
4708   rm -rf conftest*
4709   eval "ac_cv_header_$ac_safe=no"
4710 fi
4711 rm -f conftest*
4712 fi
4713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4714   echo "$ac_t""yes" 1>&6
4715     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4716   cat >> confdefs.h <<EOF
4717 #define $ac_tr_hdr 1
4718 EOF
4719  
4720 else
4721   echo "$ac_t""no" 1>&6
4722 fi
4723 done
4724
4725
4726 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4727 echo "configure:4728: checking for ANSI C header files" >&5
4728 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4729   echo $ac_n "(cached) $ac_c" 1>&6
4730 else
4731   cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 #include <stdlib.h>
4735 #include <stdarg.h>
4736 #include <string.h>
4737 #include <float.h>
4738 EOF
4739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4740 { (eval echo configure:4741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4742 if test -z "$ac_err"; then
4743   rm -rf conftest*
4744   ac_cv_header_stdc=yes
4745 else
4746   echo "$ac_err" >&5
4747   echo "configure: failed program was:" >&5
4748   cat conftest.$ac_ext >&5
4749   rm -rf conftest*
4750   ac_cv_header_stdc=no
4751 fi
4752 rm -f conftest*
4753
4754 if test $ac_cv_header_stdc = yes; then
4755   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4756 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4759 #include <string.h>
4760 EOF
4761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4762   egrep "memchr" >/dev/null 2>&1; then
4763   :
4764 else
4765   rm -rf conftest*
4766   ac_cv_header_stdc=no
4767 fi
4768 rm -f conftest*
4769
4770 fi
4771
4772 if test $ac_cv_header_stdc = yes; then
4773   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4777 #include <stdlib.h>
4778 EOF
4779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4780   egrep "free" >/dev/null 2>&1; then
4781   :
4782 else
4783   rm -rf conftest*
4784   ac_cv_header_stdc=no
4785 fi
4786 rm -f conftest*
4787
4788 fi
4789
4790 if test $ac_cv_header_stdc = yes; then
4791   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4792 if test "$cross_compiling" = yes; then
4793   :
4794 else
4795   cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 #include <ctype.h>
4799 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4800 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4802 int main () { int i; for (i = 0; i < 256; i++)
4803 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4804 exit (0); }
4805
4806 EOF
4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4808 then
4809   :
4810 else
4811   echo "configure: failed program was:" >&5
4812   cat conftest.$ac_ext >&5
4813   rm -fr conftest*
4814   ac_cv_header_stdc=no
4815 fi
4816 rm -fr conftest*
4817 fi
4818
4819 fi
4820 fi
4821
4822 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4823 if test $ac_cv_header_stdc = yes; then
4824   cat >> confdefs.h <<\EOF
4825 #define STDC_HEADERS 1
4826 EOF
4827
4828 fi
4829
4830 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4831 echo "configure:4832: checking for ssize_t" >&5
4832 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4833   echo $ac_n "(cached) $ac_c" 1>&6
4834 else
4835   cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 #include <sys/types.h>
4839 #if STDC_HEADERS
4840 #include <stdlib.h>
4841 #include <stddef.h>
4842 #endif
4843 EOF
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845   egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4846   rm -rf conftest*
4847   ac_cv_type_ssize_t=yes
4848 else
4849   rm -rf conftest*
4850   ac_cv_type_ssize_t=no
4851 fi
4852 rm -f conftest*
4853
4854 fi
4855 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4856 if test $ac_cv_type_ssize_t = no; then
4857   cat >> confdefs.h <<\EOF
4858 #define ssize_t int
4859 EOF
4860
4861 fi
4862
4863
4864 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4865 echo "configure:4866: checking for in_addr_t" >&5
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 #include <sys/types.h>
4870 #if STDC_HEADERS
4871 #include <stdlib.h>
4872 #include <stddef.h>
4873 #endif
4874 #if HAVE_NETINET_IN_H
4875 #include <netinet/in.h>
4876 #endif
4877 int main() {
4878 in_addr_t foo;
4879 ; return 0; }
4880 EOF
4881 if { (eval echo configure:4882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4882   rm -rf conftest*
4883   cat >> confdefs.h <<\EOF
4884 #define HAVE_IN_ADDR_T 1
4885 EOF
4886
4887    echo "$ac_t""yes" 1>&6
4888 else
4889   echo "configure: failed program was:" >&5
4890   cat conftest.$ac_ext >&5
4891   rm -rf conftest*
4892   echo "$ac_t""no" 1>&6
4893 fi
4894 rm -f conftest*
4895
4896 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4897 echo "configure:4898: checking whether struct ip_mreq is in netinet/in.h" >&5
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4901 #include <netinet/in.h>
4902 int main() {
4903 struct ip_mreq mreq;
4904 ; return 0; }
4905 EOF
4906 if { (eval echo configure:4907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4907   rm -rf conftest*
4908   cat >> confdefs.h <<\EOF
4909 #define HAVE_STRUCT_IP_MREQ 1
4910 EOF
4911
4912    echo "$ac_t""yes" 1>&6
4913 else
4914   echo "configure: failed program was:" >&5
4915   cat conftest.$ac_ext >&5
4916   rm -rf conftest*
4917   echo "$ac_t""no" 1>&6
4918 fi
4919 rm -f conftest*
4920
4921 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4922 echo "configure:4923: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 #include <netinet/in.h>
4927 int main() {
4928 struct sockaddr_in6 addr6;
4929 ; return 0; }
4930 EOF
4931 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4932   rm -rf conftest*
4933   cat >> confdefs.h <<\EOF
4934 #define HAVE_INET6 1
4935 EOF
4936
4937    echo "$ac_t""yes" 1>&6
4938 else
4939   echo "configure: failed program was:" >&5
4940   cat conftest.$ac_ext >&5
4941   rm -rf conftest*
4942   echo "$ac_t""no" 1>&6
4943 fi
4944 rm -f conftest*
4945
4946 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4947 echo "configure:4948: checking for socklen_t in sys/socket.h" >&5
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 #include <sys/socket.h>
4952 int main() {
4953 socklen_t x = 5;
4954 ; return 0; }
4955 EOF
4956 if { (eval echo configure:4957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4957   rm -rf conftest*
4958   cat >> confdefs.h <<\EOF
4959 #define HAVE_SOCKLEN_T 1
4960 EOF
4961
4962    echo "$ac_t""yes" 1>&6
4963 else
4964   echo "configure: failed program was:" >&5
4965   cat conftest.$ac_ext >&5
4966   rm -rf conftest*
4967   echo "$ac_t""no" 1>&6
4968 fi
4969 rm -f conftest*
4970
4971 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4972 echo "configure:4973: checking for tm_gmtoff in struct tm" >&5
4973 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4976 #include <time.h>
4977 int main() {
4978 struct tm tim; tim.tm_gmtoff = 0;
4979 ; return 0; }
4980 EOF
4981 if { (eval echo configure:4982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4982   rm -rf conftest*
4983   cat >> confdefs.h <<\EOF
4984 #define STRUCT_TM_HAS_GMTOFF 1
4985 EOF
4986
4987    echo "$ac_t""yes" 1>&6
4988 else
4989   echo "configure: failed program was:" >&5
4990   cat conftest.$ac_ext >&5
4991   rm -rf conftest*
4992   echo "$ac_t""no" 1>&6
4993    echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4994 echo "configure:4995: checking for global timezone variable" >&5
4995             cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998 #include <time.h>
4999 int main() {
5000 long z2 = timezone;
5001 ; return 0; }
5002 EOF
5003 if { (eval echo configure:5004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5004   rm -rf conftest*
5005   cat >> confdefs.h <<\EOF
5006 #define HAVE_TIMEZONE 1
5007 EOF
5008
5009       echo "$ac_t""yes" 1>&6
5010 else
5011   echo "configure: failed program was:" >&5
5012   cat conftest.$ac_ext >&5
5013   rm -rf conftest*
5014   echo "$ac_t""no" 1>&6
5015 fi
5016 rm -f conftest*
5017 fi
5018 rm -f conftest*
5019
5020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5021 # for constant arguments.  Useless!
5022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5023 echo "configure:5024: checking for working alloca.h" >&5
5024 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5025   echo $ac_n "(cached) $ac_c" 1>&6
5026 else
5027   cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5030 #include <alloca.h>
5031 int main() {
5032 char *p = alloca(2 * sizeof(int));
5033 ; return 0; }
5034 EOF
5035 if { (eval echo configure:5036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5036   rm -rf conftest*
5037   ac_cv_header_alloca_h=yes
5038 else
5039   echo "configure: failed program was:" >&5
5040   cat conftest.$ac_ext >&5
5041   rm -rf conftest*
5042   ac_cv_header_alloca_h=no
5043 fi
5044 rm -f conftest*
5045 fi
5046
5047 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5048 if test $ac_cv_header_alloca_h = yes; then
5049   cat >> confdefs.h <<\EOF
5050 #define HAVE_ALLOCA_H 1
5051 EOF
5052
5053 fi
5054
5055 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5056 echo "configure:5057: checking for alloca" >&5
5057 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5058   echo $ac_n "(cached) $ac_c" 1>&6
5059 else
5060   cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063
5064 #ifdef __GNUC__
5065 # define alloca __builtin_alloca
5066 #else
5067 # ifdef _MSC_VER
5068 #  include <malloc.h>
5069 #  define alloca _alloca
5070 # else
5071 #  if HAVE_ALLOCA_H
5072 #   include <alloca.h>
5073 #  else
5074 #   ifdef _AIX
5075  #pragma alloca
5076 #   else
5077 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5078 char *alloca ();
5079 #    endif
5080 #   endif
5081 #  endif
5082 # endif
5083 #endif
5084
5085 int main() {
5086 char *p = (char *) alloca(1);
5087 ; return 0; }
5088 EOF
5089 if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5090   rm -rf conftest*
5091   ac_cv_func_alloca_works=yes
5092 else
5093   echo "configure: failed program was:" >&5
5094   cat conftest.$ac_ext >&5
5095   rm -rf conftest*
5096   ac_cv_func_alloca_works=no
5097 fi
5098 rm -f conftest*
5099 fi
5100
5101 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5102 if test $ac_cv_func_alloca_works = yes; then
5103   cat >> confdefs.h <<\EOF
5104 #define HAVE_ALLOCA 1
5105 EOF
5106
5107 fi
5108
5109 if test $ac_cv_func_alloca_works = no; then
5110   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5111   # that cause trouble.  Some versions do not even contain alloca or
5112   # contain a buggy version.  If you still want to use their alloca,
5113   # use ar to extract alloca.o from them instead of compiling alloca.c.
5114   ALLOCA=alloca.${ac_objext}
5115   cat >> confdefs.h <<\EOF
5116 #define C_ALLOCA 1
5117 EOF
5118
5119
5120 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5121 echo "configure:5122: checking whether alloca needs Cray hooks" >&5
5122 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5123   echo $ac_n "(cached) $ac_c" 1>&6
5124 else
5125   cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 #if defined(CRAY) && ! defined(CRAY2)
5129 webecray
5130 #else
5131 wenotbecray
5132 #endif
5133
5134 EOF
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136   egrep "webecray" >/dev/null 2>&1; then
5137   rm -rf conftest*
5138   ac_cv_os_cray=yes
5139 else
5140   rm -rf conftest*
5141   ac_cv_os_cray=no
5142 fi
5143 rm -f conftest*
5144
5145 fi
5146
5147 echo "$ac_t""$ac_cv_os_cray" 1>&6
5148 if test $ac_cv_os_cray = yes; then
5149 for ac_func in _getb67 GETB67 getb67; do
5150   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5151 echo "configure:5152: checking for $ac_func" >&5
5152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5153   echo $ac_n "(cached) $ac_c" 1>&6
5154 else
5155   cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5158 /* System header to define __stub macros and hopefully few prototypes,
5159     which can conflict with char $ac_func(); below.  */
5160 #include <assert.h>
5161 /* Override any gcc2 internal prototype to avoid an error.  */
5162 /* We use char because int might match the return type of a gcc2
5163     builtin and then its argument prototype would still apply.  */
5164 char $ac_func();
5165
5166 int main() {
5167
5168 /* The GNU C library defines this for functions which it implements
5169     to always fail with ENOSYS.  Some functions are actually named
5170     something starting with __ and the normal name is an alias.  */
5171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5172 choke me
5173 #else
5174 $ac_func();
5175 #endif
5176
5177 ; return 0; }
5178 EOF
5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5180   rm -rf conftest*
5181   eval "ac_cv_func_$ac_func=yes"
5182 else
5183   echo "configure: failed program was:" >&5
5184   cat conftest.$ac_ext >&5
5185   rm -rf conftest*
5186   eval "ac_cv_func_$ac_func=no"
5187 fi
5188 rm -f conftest*
5189 fi
5190
5191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5192   echo "$ac_t""yes" 1>&6
5193   cat >> confdefs.h <<EOF
5194 #define CRAY_STACKSEG_END $ac_func
5195 EOF
5196
5197   break
5198 else
5199   echo "$ac_t""no" 1>&6
5200 fi
5201
5202 done
5203 fi
5204
5205 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5206 echo "configure:5207: checking stack direction for C alloca" >&5
5207 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5208   echo $ac_n "(cached) $ac_c" 1>&6
5209 else
5210   if test "$cross_compiling" = yes; then
5211   ac_cv_c_stack_direction=0
5212 else
5213   cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 find_stack_direction ()
5217 {
5218   static char *addr = 0;
5219   auto char dummy;
5220   if (addr == 0)
5221     {
5222       addr = &dummy;
5223       return find_stack_direction ();
5224     }
5225   else
5226     return (&dummy > addr) ? 1 : -1;
5227 }
5228 main ()
5229 {
5230   exit (find_stack_direction() < 0);
5231 }
5232 EOF
5233 if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5234 then
5235   ac_cv_c_stack_direction=1
5236 else
5237   echo "configure: failed program was:" >&5
5238   cat conftest.$ac_ext >&5
5239   rm -fr conftest*
5240   ac_cv_c_stack_direction=-1
5241 fi
5242 rm -fr conftest*
5243 fi
5244
5245 fi
5246
5247 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5248 cat >> confdefs.h <<EOF
5249 #define STACK_DIRECTION $ac_cv_c_stack_direction
5250 EOF
5251
5252 fi
5253
5254
5255 for ac_prog in perl
5256 do
5257 # Extract the first word of "$ac_prog", so it can be a program name with args.
5258 set dummy $ac_prog; ac_word=$2
5259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5260 echo "configure:5261: checking for $ac_word" >&5
5261 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5262   echo $ac_n "(cached) $ac_c" 1>&6
5263 else
5264   if test -n "$PERL"; then
5265   ac_cv_prog_PERL="$PERL" # Let the user override the test.
5266 else
5267   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5268   ac_dummy="$PATH"
5269   for ac_dir in $ac_dummy; do
5270     test -z "$ac_dir" && ac_dir=.
5271     if test -f $ac_dir/$ac_word; then
5272       ac_cv_prog_PERL="$ac_prog"
5273       break
5274     fi
5275   done
5276   IFS="$ac_save_ifs"
5277 fi
5278 fi
5279 PERL="$ac_cv_prog_PERL"
5280 if test -n "$PERL"; then
5281   echo "$ac_t""$PERL" 1>&6
5282 else
5283   echo "$ac_t""no" 1>&6
5284 fi
5285
5286 test -n "$PERL" && break
5287 done
5288 test -n "$PERL" || PERL="false"
5289
5290
5291 case "${host}" in
5292   i?86-*-linux*)
5293     SIGNAL_HANDLER=include/i386-signal.h
5294         ;;
5295   sparc-sun-solaris*)
5296     SIGNAL_HANDLER=include/sparc-signal.h
5297         ;;
5298   *)
5299     SIGNAL_HANDLER=include/default-signal.h
5300         ;;
5301 esac
5302
5303
5304
5305 if test "${multilib}" = "yes"; then
5306   multilib_arg="--enable-multilib"
5307 else
5308   multilib_arg=
5309 fi
5310
5311 here=`pwd`
5312
5313
5314 trap '' 1 2 15
5315 cat > confcache <<\EOF
5316 # This file is a shell script that caches the results of configure
5317 # tests run on this system so they can be shared between configure
5318 # scripts and configure runs.  It is not useful on other systems.
5319 # If it contains results you don't want to keep, you may remove or edit it.
5320 #
5321 # By default, configure uses ./config.cache as the cache file,
5322 # creating it if it does not exist already.  You can give configure
5323 # the --cache-file=FILE option to use a different cache file; that is
5324 # what configure does when it calls configure scripts in
5325 # subdirectories, so they share the cache.
5326 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5327 # config.status only pays attention to the cache file if you give it the
5328 # --recheck option to rerun configure.
5329 #
5330 EOF
5331 # The following way of writing the cache mishandles newlines in values,
5332 # but we know of no workaround that is simple, portable, and efficient.
5333 # So, don't put newlines in cache variables' values.
5334 # Ultrix sh set writes to stderr and can't be redirected directly,
5335 # and sets the high bit in the cache file unless we assign to the vars.
5336 (set) 2>&1 |
5337   case `(ac_space=' '; set | grep ac_space) 2>&1` in
5338   *ac_space=\ *)
5339     # `set' does not quote correctly, so add quotes (double-quote substitution
5340     # turns \\\\ into \\, and sed turns \\ into \).
5341     sed -n \
5342       -e "s/'/'\\\\''/g" \
5343       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5344     ;;
5345   *)
5346     # `set' quotes correctly as required by POSIX, so do not add quotes.
5347     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5348     ;;
5349   esac >> confcache
5350 if cmp -s $cache_file confcache; then
5351   :
5352 else
5353   if test -w $cache_file; then
5354     echo "updating cache $cache_file"
5355     cat confcache > $cache_file
5356   else
5357     echo "not updating unwritable cache $cache_file"
5358   fi
5359 fi
5360 rm -f confcache
5361
5362 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5363
5364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5365 # Let make expand exec_prefix.
5366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5367
5368 # Any assignment to VPATH causes Sun make to only execute
5369 # the first set of double-colon rules, so remove it if not needed.
5370 # If there is a colon in the path, we need to keep it.
5371 if test "x$srcdir" = x.; then
5372   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
5373 fi
5374
5375 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5376
5377 DEFS=-DHAVE_CONFIG_H
5378
5379 # Without the "./", some shells look in PATH for config.status.
5380 : ${CONFIG_STATUS=./config.status}
5381
5382 echo creating $CONFIG_STATUS
5383 rm -f $CONFIG_STATUS
5384 cat > $CONFIG_STATUS <<EOF
5385 #! /bin/sh
5386 # Generated automatically by configure.
5387 # Run this file to recreate the current configuration.
5388 # This directory was configured as follows,
5389 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5390 #
5391 # $0 $ac_configure_args
5392 #
5393 # Compiler output produced by configure, useful for debugging
5394 # configure, is in ./config.log if it exists.
5395
5396 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5397 for ac_option
5398 do
5399   case "\$ac_option" in
5400   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5401     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5402     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5403   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5404     echo "$CONFIG_STATUS generated by autoconf version 2.13"
5405     exit 0 ;;
5406   -help | --help | --hel | --he | --h)
5407     echo "\$ac_cs_usage"; exit 0 ;;
5408   *) echo "\$ac_cs_usage"; exit 1 ;;
5409   esac
5410 done
5411
5412 ac_given_srcdir=$srcdir
5413 ac_given_INSTALL="$INSTALL"
5414
5415 trap 'rm -fr `echo "Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5416 EOF
5417 cat >> $CONFIG_STATUS <<EOF
5418
5419 # Protect against being on the right side of a sed subst in config.status.
5420 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5421  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5422 $ac_vpsub
5423 $extrasub
5424 s%@SHELL@%$SHELL%g
5425 s%@CFLAGS@%$CFLAGS%g
5426 s%@CPPFLAGS@%$CPPFLAGS%g
5427 s%@CXXFLAGS@%$CXXFLAGS%g
5428 s%@FFLAGS@%$FFLAGS%g
5429 s%@DEFS@%$DEFS%g
5430 s%@LDFLAGS@%$LDFLAGS%g
5431 s%@LIBS@%$LIBS%g
5432 s%@exec_prefix@%$exec_prefix%g
5433 s%@prefix@%$prefix%g
5434 s%@program_transform_name@%$program_transform_name%g
5435 s%@bindir@%$bindir%g
5436 s%@sbindir@%$sbindir%g
5437 s%@libexecdir@%$libexecdir%g
5438 s%@datadir@%$datadir%g
5439 s%@sysconfdir@%$sysconfdir%g
5440 s%@sharedstatedir@%$sharedstatedir%g
5441 s%@localstatedir@%$localstatedir%g
5442 s%@libdir@%$libdir%g
5443 s%@includedir@%$includedir%g
5444 s%@oldincludedir@%$oldincludedir%g
5445 s%@infodir@%$infodir%g
5446 s%@mandir@%$mandir%g
5447 s%@host@%$host%g
5448 s%@host_alias@%$host_alias%g
5449 s%@host_cpu@%$host_cpu%g
5450 s%@host_vendor@%$host_vendor%g
5451 s%@host_os@%$host_os%g
5452 s%@target@%$target%g
5453 s%@target_alias@%$target_alias%g
5454 s%@target_cpu@%$target_cpu%g
5455 s%@target_vendor@%$target_vendor%g
5456 s%@target_os@%$target_os%g
5457 s%@build@%$build%g
5458 s%@build_alias@%$build_alias%g
5459 s%@build_cpu@%$build_cpu%g
5460 s%@build_vendor@%$build_vendor%g
5461 s%@build_os@%$build_os%g
5462 s%@libgcj_basedir@%$libgcj_basedir%g
5463 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5464 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5465 s%@INSTALL_DATA@%$INSTALL_DATA%g
5466 s%@PACKAGE@%$PACKAGE%g
5467 s%@VERSION@%$VERSION%g
5468 s%@ACLOCAL@%$ACLOCAL%g
5469 s%@AUTOCONF@%$AUTOCONF%g
5470 s%@AUTOMAKE@%$AUTOMAKE%g
5471 s%@AUTOHEADER@%$AUTOHEADER%g
5472 s%@MAKEINFO@%$MAKEINFO%g
5473 s%@SET_MAKE@%$SET_MAKE%g
5474 s%@CC@%$CC%g
5475 s%@CXX@%$CXX%g
5476 s%@AS@%$AS%g
5477 s%@AR@%$AR%g
5478 s%@RANLIB@%$RANLIB%g
5479 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5480 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5481 s%@MAINT@%$MAINT%g
5482 s%@EXEEXT@%$EXEEXT%g
5483 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5484 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5485 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5486 s%@LD@%$LD%g
5487 s%@NM@%$NM%g
5488 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5489 s%@LN_S@%$LN_S%g
5490 s%@DLLTOOL@%$DLLTOOL%g
5491 s%@LIBTOOL@%$LIBTOOL%g
5492 s%@COMPPATH@%$COMPPATH%g
5493 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5494 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5495 s%@CPP@%$CPP%g
5496 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5497 s%@ZLIBSPEC@%$ZLIBSPEC%g
5498 s%@GCLIBS@%$GCLIBS%g
5499 s%@GCINCS@%$GCINCS%g
5500 s%@GCDEPS@%$GCDEPS%g
5501 s%@GCOBJS@%$GCOBJS%g
5502 s%@GCSPEC@%$GCSPEC%g
5503 s%@THREADLIBS@%$THREADLIBS%g
5504 s%@THREADINCS@%$THREADINCS%g
5505 s%@THREADDEPS@%$THREADDEPS%g
5506 s%@THREADOBJS@%$THREADOBJS%g
5507 s%@THREADSPEC@%$THREADSPEC%g
5508 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5509 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5510 s%@ZLIBS@%$ZLIBS%g
5511 s%@ZDEPS@%$ZDEPS%g
5512 s%@ZINCS@%$ZINCS%g
5513 s%@DIVIDESPEC@%$DIVIDESPEC%g
5514 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5515 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5516 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5517 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5518 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5519 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5520 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5521 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5522 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5523 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5524 s%@ALLOCA@%$ALLOCA%g
5525 s%@PERL@%$PERL%g
5526 s%@here@%$here%g
5527
5528 CEOF
5529 EOF
5530
5531 cat >> $CONFIG_STATUS <<\EOF
5532
5533 # Split the substitutions into bite-sized pieces for seds with
5534 # small command number limits, like on Digital OSF/1 and HP-UX.
5535 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5536 ac_file=1 # Number of current file.
5537 ac_beg=1 # First line for current file.
5538 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5539 ac_more_lines=:
5540 ac_sed_cmds=""
5541 while $ac_more_lines; do
5542   if test $ac_beg -gt 1; then
5543     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5544   else
5545     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5546   fi
5547   if test ! -s conftest.s$ac_file; then
5548     ac_more_lines=false
5549     rm -f conftest.s$ac_file
5550   else
5551     if test -z "$ac_sed_cmds"; then
5552       ac_sed_cmds="sed -f conftest.s$ac_file"
5553     else
5554       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5555     fi
5556     ac_file=`expr $ac_file + 1`
5557     ac_beg=$ac_end
5558     ac_end=`expr $ac_end + $ac_max_sed_cmds`
5559   fi
5560 done
5561 if test -z "$ac_sed_cmds"; then
5562   ac_sed_cmds=cat
5563 fi
5564 EOF
5565
5566 cat >> $CONFIG_STATUS <<EOF
5567
5568 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5569 EOF
5570 cat >> $CONFIG_STATUS <<\EOF
5571 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5572   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5573   case "$ac_file" in
5574   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5575        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5576   *) ac_file_in="${ac_file}.in" ;;
5577   esac
5578
5579   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5580
5581   # Remove last slash and all that follows it.  Not all systems have dirname.
5582   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5583   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5584     # The file is in a subdirectory.
5585     test ! -d "$ac_dir" && mkdir "$ac_dir"
5586     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5587     # A "../" for each directory in $ac_dir_suffix.
5588     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5589   else
5590     ac_dir_suffix= ac_dots=
5591   fi
5592
5593   case "$ac_given_srcdir" in
5594   .)  srcdir=.
5595       if test -z "$ac_dots"; then top_srcdir=.
5596       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5597   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5598   *) # Relative path.
5599     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5600     top_srcdir="$ac_dots$ac_given_srcdir" ;;
5601   esac
5602
5603   case "$ac_given_INSTALL" in
5604   [/$]*) INSTALL="$ac_given_INSTALL" ;;
5605   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5606   esac
5607
5608   echo creating "$ac_file"
5609   rm -f "$ac_file"
5610   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5611   case "$ac_file" in
5612   *Makefile*) ac_comsub="1i\\
5613 # $configure_input" ;;
5614   *) ac_comsub= ;;
5615   esac
5616
5617   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5618   sed -e "$ac_comsub
5619 s%@configure_input@%$configure_input%g
5620 s%@srcdir@%$srcdir%g
5621 s%@top_srcdir@%$top_srcdir%g
5622 s%@INSTALL@%$INSTALL%g
5623 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5624 fi; done
5625 rm -f conftest.s*
5626
5627 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5628 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5629 #
5630 # ac_d sets the value in "#define NAME VALUE" lines.
5631 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5632 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
5633 ac_dC='\3'
5634 ac_dD='%g'
5635 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5636 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5637 ac_uB='\([      ]\)%\1#\2define\3'
5638 ac_uC=' '
5639 ac_uD='\4%g'
5640 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5641 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5642 ac_eB='$%\1#\2define\3'
5643 ac_eC=' '
5644 ac_eD='%g'
5645
5646 if test "${CONFIG_HEADERS+set}" != set; then
5647 EOF
5648 cat >> $CONFIG_STATUS <<EOF
5649   CONFIG_HEADERS="include/config.h"
5650 EOF
5651 cat >> $CONFIG_STATUS <<\EOF
5652 fi
5653 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5654   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5655   case "$ac_file" in
5656   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5657        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5658   *) ac_file_in="${ac_file}.in" ;;
5659   esac
5660
5661   echo creating $ac_file
5662
5663   rm -f conftest.frag conftest.in conftest.out
5664   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5665   cat $ac_file_inputs > conftest.in
5666
5667 EOF
5668
5669 # Transform confdefs.h into a sed script conftest.vals that substitutes
5670 # the proper values into config.h.in to produce config.h.  And first:
5671 # Protect against being on the right side of a sed subst in config.status.
5672 # Protect against being in an unquoted here document in config.status.
5673 rm -f conftest.vals
5674 cat > conftest.hdr <<\EOF
5675 s/[\\&%]/\\&/g
5676 s%[\\$`]%\\&%g
5677 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5678 s%ac_d%ac_u%gp
5679 s%ac_u%ac_e%gp
5680 EOF
5681 sed -n -f conftest.hdr confdefs.h > conftest.vals
5682 rm -f conftest.hdr
5683
5684 # This sed command replaces #undef with comments.  This is necessary, for
5685 # example, in the case of _POSIX_SOURCE, which is predefined and required
5686 # on some systems where configure will not decide to define it.
5687 cat >> conftest.vals <<\EOF
5688 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5689 EOF
5690
5691 # Break up conftest.vals because some shells have a limit on
5692 # the size of here documents, and old seds have small limits too.
5693
5694 rm -f conftest.tail
5695 while :
5696 do
5697   ac_lines=`grep -c . conftest.vals`
5698   # grep -c gives empty output for an empty file on some AIX systems.
5699   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5700   # Write a limited-size here document to conftest.frag.
5701   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5702   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5703   echo 'CEOF
5704   sed -f conftest.frag conftest.in > conftest.out
5705   rm -f conftest.in
5706   mv conftest.out conftest.in
5707 ' >> $CONFIG_STATUS
5708   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5709   rm -f conftest.vals
5710   mv conftest.tail conftest.vals
5711 done
5712 rm -f conftest.vals
5713
5714 cat >> $CONFIG_STATUS <<\EOF
5715   rm -f conftest.frag conftest.h
5716   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
5717   cat conftest.in >> conftest.h
5718   rm -f conftest.in
5719   if cmp -s $ac_file conftest.h 2>/dev/null; then
5720     echo "$ac_file is unchanged"
5721     rm -f conftest.h
5722   else
5723     # Remove last slash and all that follows it.  Not all systems have dirname.
5724       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5725       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5726       # The file is in a subdirectory.
5727       test ! -d "$ac_dir" && mkdir "$ac_dir"
5728     fi
5729     rm -f $ac_file
5730     mv conftest.h $ac_file
5731   fi
5732 fi; done
5733
5734 EOF
5735
5736 cat >> $CONFIG_STATUS <<EOF
5737 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5738 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
5739 EOF
5740
5741 cat >> $CONFIG_STATUS <<\EOF
5742 srcdir=$ac_given_srcdir
5743 while test -n "$ac_sources"; do
5744   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5745   set $ac_sources; ac_source=$1; shift; ac_sources=$*
5746
5747   echo "linking $srcdir/$ac_source to $ac_dest"
5748
5749   if test ! -r $srcdir/$ac_source; then
5750     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5751   fi
5752   rm -f $ac_dest
5753
5754   # Make relative symlinks.
5755   # Remove last slash and all that follows it.  Not all systems have dirname.
5756   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5757   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5758     # The dest file is in a subdirectory.
5759     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5760     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5761     # A "../" for each directory in $ac_dest_dir_suffix.
5762     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5763   else
5764     ac_dest_dir_suffix= ac_dots=
5765   fi
5766
5767   case "$srcdir" in
5768   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5769   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5770   esac
5771
5772   # Make a symlink if possible; otherwise try a hard link.
5773   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5774     ln $srcdir/$ac_source $ac_dest; then :
5775   else
5776     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5777   fi
5778 done
5779 EOF
5780 cat >> $CONFIG_STATUS <<EOF
5781
5782 srcdir=${srcdir}
5783 host=${host}
5784 target=${target}
5785 with_multisubdir=${with_multisubdir}
5786 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5787 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5788 libgcj_basedir=${libgcj_basedir}
5789 CC="${CC}"
5790 CXX="${CXX}"
5791
5792 EOF
5793 cat >> $CONFIG_STATUS <<\EOF
5794 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5795 if test -n "$CONFIG_FILES"; then
5796   ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5797 fi
5798 exit 0
5799 EOF
5800 chmod +x $CONFIG_STATUS
5801 rm -fr confdefs* $ac_clean_files
5802 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5803