* decl.c (compute_array_index_type): New function, split out from
[official-gcc.git] / libjava / configure
blob0a2f5782a77c571f0470b90abd6fe4bb4344c45e
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --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 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
39 ac_help="$ac_help
40 --enable-libgcj-debug enable runtime debugging code"
41 ac_help="$ac_help
42 --enable-interpreter enable interpreter"
43 ac_help="$ac_help
44 --disable-java-net disable java.net"
45 ac_help="$ac_help
46 --with-ecos enable runtime eCos target support"
47 ac_help="$ac_help
48 --with-system-zlib use installed libz"
49 ac_help="$ac_help
50 --enable-java-gc=TYPE choose garbage collector [boehm]"
51 ac_help="$ac_help
52 --enable-threads=TYPE choose threading package"
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
57 build=NONE
58 cache_file=./config.cache
59 exec_prefix=NONE
60 host=NONE
61 no_create=
62 nonopt=NONE
63 no_recursion=
64 prefix=NONE
65 program_prefix=NONE
66 program_suffix=NONE
67 program_transform_name=s,x,x,
68 silent=
69 site=
70 srcdir=
71 target=NONE
72 verbose=
73 x_includes=NONE
74 x_libraries=NONE
75 bindir='${exec_prefix}/bin'
76 sbindir='${exec_prefix}/sbin'
77 libexecdir='${exec_prefix}/libexec'
78 datadir='${prefix}/share'
79 sysconfdir='${prefix}/etc'
80 sharedstatedir='${prefix}/com'
81 localstatedir='${prefix}/var'
82 libdir='${exec_prefix}/lib'
83 includedir='${prefix}/include'
84 oldincludedir='/usr/include'
85 infodir='${prefix}/info'
86 mandir='${prefix}/man'
88 # Initialize some other variables.
89 subdirs=
90 MFLAGS= MAKEFLAGS=
91 SHELL=${CONFIG_SHELL-/bin/sh}
92 # Maximum number of lines to put in a shell here document.
93 ac_max_here_lines=12
95 ac_prev=
96 for ac_option
99 # If the previous option needs an argument, assign it.
100 if test -n "$ac_prev"; then
101 eval "$ac_prev=\$ac_option"
102 ac_prev=
103 continue
106 case "$ac_option" in
107 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
108 *) ac_optarg= ;;
109 esac
111 # Accept the important Cygnus configure options, so we can diagnose typos.
113 case "$ac_option" in
115 -bindir | --bindir | --bindi | --bind | --bin | --bi)
116 ac_prev=bindir ;;
117 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
118 bindir="$ac_optarg" ;;
120 -build | --build | --buil | --bui | --bu)
121 ac_prev=build ;;
122 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
123 build="$ac_optarg" ;;
125 -cache-file | --cache-file | --cache-fil | --cache-fi \
126 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
127 ac_prev=cache_file ;;
128 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
129 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
130 cache_file="$ac_optarg" ;;
132 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133 ac_prev=datadir ;;
134 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135 | --da=*)
136 datadir="$ac_optarg" ;;
138 -disable-* | --disable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}=no" ;;
147 -enable-* | --enable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154 case "$ac_option" in
155 *=*) ;;
156 *) ac_optarg=yes ;;
157 esac
158 eval "enable_${ac_feature}='$ac_optarg'" ;;
160 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
161 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
162 | --exec | --exe | --ex)
163 ac_prev=exec_prefix ;;
164 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
165 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
166 | --exec=* | --exe=* | --ex=*)
167 exec_prefix="$ac_optarg" ;;
169 -gas | --gas | --ga | --g)
170 # Obsolete; use --with-gas.
171 with_gas=yes ;;
173 -help | --help | --hel | --he)
174 # Omit some internal or obsolete options to make the list less imposing.
175 # This message is too long to be a string in the A/UX 3.1 sh.
176 cat << EOF
177 Usage: configure [options] [host]
178 Options: [defaults in brackets after descriptions]
179 Configuration:
180 --cache-file=FILE cache test results in FILE
181 --help print this message
182 --no-create do not create output files
183 --quiet, --silent do not print \`checking...' messages
184 --version print the version of autoconf that created configure
185 Directory and file names:
186 --prefix=PREFIX install architecture-independent files in PREFIX
187 [$ac_default_prefix]
188 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 [same as prefix]
190 --bindir=DIR user executables in DIR [EPREFIX/bin]
191 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
192 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
193 --datadir=DIR read-only architecture-independent data in DIR
194 [PREFIX/share]
195 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
196 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 [PREFIX/com]
198 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
199 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
200 --includedir=DIR C header files in DIR [PREFIX/include]
201 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
202 --infodir=DIR info documentation in DIR [PREFIX/info]
203 --mandir=DIR man documentation in DIR [PREFIX/man]
204 --srcdir=DIR find the sources in DIR [configure dir or ..]
205 --program-prefix=PREFIX prepend PREFIX to installed program names
206 --program-suffix=SUFFIX append SUFFIX to installed program names
207 --program-transform-name=PROGRAM
208 run sed PROGRAM on installed program names
210 cat << EOF
211 Host type:
212 --build=BUILD configure for building on BUILD [BUILD=HOST]
213 --host=HOST configure for HOST [guessed]
214 --target=TARGET configure for TARGET [TARGET=HOST]
215 Features and packages:
216 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
217 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
218 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
219 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
220 --x-includes=DIR X include files are in DIR
221 --x-libraries=DIR X library files are in DIR
223 if test -n "$ac_help"; then
224 echo "--enable and --with options recognized:$ac_help"
226 exit 0 ;;
228 -host | --host | --hos | --ho)
229 ac_prev=host ;;
230 -host=* | --host=* | --hos=* | --ho=*)
231 host="$ac_optarg" ;;
233 -includedir | --includedir | --includedi | --included | --include \
234 | --includ | --inclu | --incl | --inc)
235 ac_prev=includedir ;;
236 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
237 | --includ=* | --inclu=* | --incl=* | --inc=*)
238 includedir="$ac_optarg" ;;
240 -infodir | --infodir | --infodi | --infod | --info | --inf)
241 ac_prev=infodir ;;
242 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
243 infodir="$ac_optarg" ;;
245 -libdir | --libdir | --libdi | --libd)
246 ac_prev=libdir ;;
247 -libdir=* | --libdir=* | --libdi=* | --libd=*)
248 libdir="$ac_optarg" ;;
250 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
251 | --libexe | --libex | --libe)
252 ac_prev=libexecdir ;;
253 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
254 | --libexe=* | --libex=* | --libe=*)
255 libexecdir="$ac_optarg" ;;
257 -localstatedir | --localstatedir | --localstatedi | --localstated \
258 | --localstate | --localstat | --localsta | --localst \
259 | --locals | --local | --loca | --loc | --lo)
260 ac_prev=localstatedir ;;
261 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
262 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
263 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
264 localstatedir="$ac_optarg" ;;
266 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267 ac_prev=mandir ;;
268 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
269 mandir="$ac_optarg" ;;
271 -nfp | --nfp | --nf)
272 # Obsolete; use --without-fp.
273 with_fp=no ;;
275 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
276 | --no-cr | --no-c)
277 no_create=yes ;;
279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
281 no_recursion=yes ;;
283 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
284 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
285 | --oldin | --oldi | --old | --ol | --o)
286 ac_prev=oldincludedir ;;
287 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
288 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
289 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
290 oldincludedir="$ac_optarg" ;;
292 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293 ac_prev=prefix ;;
294 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
295 prefix="$ac_optarg" ;;
297 -program-prefix | --program-prefix | --program-prefi | --program-pref \
298 | --program-pre | --program-pr | --program-p)
299 ac_prev=program_prefix ;;
300 -program-prefix=* | --program-prefix=* | --program-prefi=* \
301 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
302 program_prefix="$ac_optarg" ;;
304 -program-suffix | --program-suffix | --program-suffi | --program-suff \
305 | --program-suf | --program-su | --program-s)
306 ac_prev=program_suffix ;;
307 -program-suffix=* | --program-suffix=* | --program-suffi=* \
308 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
309 program_suffix="$ac_optarg" ;;
311 -program-transform-name | --program-transform-name \
312 | --program-transform-nam | --program-transform-na \
313 | --program-transform-n | --program-transform- \
314 | --program-transform | --program-transfor \
315 | --program-transfo | --program-transf \
316 | --program-trans | --program-tran \
317 | --progr-tra | --program-tr | --program-t)
318 ac_prev=program_transform_name ;;
319 -program-transform-name=* | --program-transform-name=* \
320 | --program-transform-nam=* | --program-transform-na=* \
321 | --program-transform-n=* | --program-transform-=* \
322 | --program-transform=* | --program-transfor=* \
323 | --program-transfo=* | --program-transf=* \
324 | --program-trans=* | --program-tran=* \
325 | --progr-tra=* | --program-tr=* | --program-t=*)
326 program_transform_name="$ac_optarg" ;;
328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
329 | -silent | --silent | --silen | --sile | --sil)
330 silent=yes ;;
332 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333 ac_prev=sbindir ;;
334 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335 | --sbi=* | --sb=*)
336 sbindir="$ac_optarg" ;;
338 -sharedstatedir | --sharedstatedir | --sharedstatedi \
339 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
340 | --sharedst | --shareds | --shared | --share | --shar \
341 | --sha | --sh)
342 ac_prev=sharedstatedir ;;
343 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
344 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
345 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346 | --sha=* | --sh=*)
347 sharedstatedir="$ac_optarg" ;;
349 -site | --site | --sit)
350 ac_prev=site ;;
351 -site=* | --site=* | --sit=*)
352 site="$ac_optarg" ;;
354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355 ac_prev=srcdir ;;
356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
357 srcdir="$ac_optarg" ;;
359 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
360 | --syscon | --sysco | --sysc | --sys | --sy)
361 ac_prev=sysconfdir ;;
362 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
363 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
364 sysconfdir="$ac_optarg" ;;
366 -target | --target | --targe | --targ | --tar | --ta | --t)
367 ac_prev=target ;;
368 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
369 target="$ac_optarg" ;;
371 -v | -verbose | --verbose | --verbos | --verbo | --verb)
372 verbose=yes ;;
374 -version | --version | --versio | --versi | --vers)
375 echo "configure generated by autoconf version 2.13"
376 exit 0 ;;
378 -with-* | --with-*)
379 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 case "$ac_option" in
386 *=*) ;;
387 *) ac_optarg=yes ;;
388 esac
389 eval "with_${ac_package}='$ac_optarg'" ;;
391 -without-* | --without-*)
392 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}=no" ;;
400 --x)
401 # Obsolete; use --with-x.
402 with_x=yes ;;
404 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
405 | --x-incl | --x-inc | --x-in | --x-i)
406 ac_prev=x_includes ;;
407 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
408 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
409 x_includes="$ac_optarg" ;;
411 -x-libraries | --x-libraries | --x-librarie | --x-librari \
412 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
413 ac_prev=x_libraries ;;
414 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
415 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
416 x_libraries="$ac_optarg" ;;
418 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
422 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
423 echo "configure: warning: $ac_option: invalid host type" 1>&2
425 if test "x$nonopt" != xNONE; then
426 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
428 nonopt="$ac_option"
431 esac
432 done
434 if test -n "$ac_prev"; then
435 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
438 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440 # File descriptor usage:
441 # 0 standard input
442 # 1 file creation
443 # 2 errors and warnings
444 # 3 some systems may open it to /dev/tty
445 # 4 used on the Kubota Titan
446 # 6 checking for... messages and results
447 # 5 compiler messages saved in config.log
448 if test "$silent" = yes; then
449 exec 6>/dev/null
450 else
451 exec 6>&1
453 exec 5>./config.log
455 echo "\
456 This file contains any messages produced by compilers while
457 running configure, to aid debugging if configure makes a mistake.
458 " 1>&5
460 # Strip out --no-create and --no-recursion so they do not pile up.
461 # Also quote any args containing shell metacharacters.
462 ac_configure_args=
463 for ac_arg
465 case "$ac_arg" in
466 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467 | --no-cr | --no-c) ;;
468 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
469 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
470 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
471 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
472 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
473 esac
474 done
476 # NLS nuisances.
477 # Only set these to C if already set. These must not be set unconditionally
478 # because not all systems understand e.g. LANG=C (notably SCO).
479 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
480 # Non-C LC_CTYPE values break the ctype check.
481 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
482 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
483 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
484 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
487 rm -rf conftest* confdefs.h
488 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
489 echo > confdefs.h
491 # A filename unique to this package, relative to the directory that
492 # configure is in, which we can look for to find out if srcdir is correct.
493 ac_unique_file=java/lang/System.java
495 # Find the source files, if location was not specified.
496 if test -z "$srcdir"; then
497 ac_srcdir_defaulted=yes
498 # Try the directory containing this script, then its parent.
499 ac_prog=$0
500 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
501 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 srcdir=$ac_confdir
503 if test ! -r $srcdir/$ac_unique_file; then
504 srcdir=..
506 else
507 ac_srcdir_defaulted=no
509 if test ! -r $srcdir/$ac_unique_file; then
510 if test "$ac_srcdir_defaulted" = yes; then
511 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 else
513 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
516 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518 # Prefer explicitly selected file to automatically selected ones.
519 if test -z "$CONFIG_SITE"; then
520 if test "x$prefix" != xNONE; then
521 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522 else
523 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526 for ac_site_file in $CONFIG_SITE; do
527 if test -r "$ac_site_file"; then
528 echo "loading site script $ac_site_file"
529 . "$ac_site_file"
531 done
533 if test -r "$cache_file"; then
534 echo "loading cache $cache_file"
535 . $cache_file
536 else
537 echo "creating cache $cache_file"
538 > $cache_file
541 ac_ext=c
542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
543 ac_cpp='$CPP $CPPFLAGS'
544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
546 cross_compiling=$ac_cv_prog_cc_cross
548 ac_exeext=
549 ac_objext=o
550 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
551 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
553 ac_n= ac_c='
554 ' ac_t=' '
555 else
556 ac_n=-n ac_c= ac_t=
558 else
559 ac_n= ac_c='\c' ac_t=
564 ac_aux_dir=
565 for ac_dir in .. $srcdir/..; do
566 if test -f $ac_dir/install-sh; then
567 ac_aux_dir=$ac_dir
568 ac_install_sh="$ac_aux_dir/install-sh -c"
569 break
570 elif test -f $ac_dir/install.sh; then
571 ac_aux_dir=$ac_dir
572 ac_install_sh="$ac_aux_dir/install.sh -c"
573 break
575 done
576 if test -z "$ac_aux_dir"; then
577 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
579 ac_config_guess=$ac_aux_dir/config.guess
580 ac_config_sub=$ac_aux_dir/config.sub
581 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
585 # Do some error checking and defaulting for the host and target type.
586 # The inputs are:
587 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
589 # The rules are:
590 # 1. You are not allowed to specify --host, --target, and nonopt at the
591 # same time.
592 # 2. Host defaults to nonopt.
593 # 3. If nonopt is not specified, then host defaults to the current host,
594 # as determined by config.guess.
595 # 4. Target and build default to nonopt.
596 # 5. If nonopt is not specified, then target and build default to host.
598 # The aliases save the names the user supplied, while $host etc.
599 # will get canonicalized.
600 case $host---$target---$nonopt in
601 NONE---*---* | *---NONE---* | *---*---NONE) ;;
602 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
603 esac
606 # Make sure we can run config.sub.
607 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
608 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
611 echo $ac_n "checking host system type""... $ac_c" 1>&6
612 echo "configure:613: checking host system type" >&5
614 host_alias=$host
615 case "$host_alias" in
616 NONE)
617 case $nonopt in
618 NONE)
619 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
620 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
621 fi ;;
622 *) host_alias=$nonopt ;;
623 esac ;;
624 esac
626 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
627 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
628 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
629 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
630 echo "$ac_t""$host" 1>&6
632 echo $ac_n "checking target system type""... $ac_c" 1>&6
633 echo "configure:634: checking target system type" >&5
635 target_alias=$target
636 case "$target_alias" in
637 NONE)
638 case $nonopt in
639 NONE) target_alias=$host_alias ;;
640 *) target_alias=$nonopt ;;
641 esac ;;
642 esac
644 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
645 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
646 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
647 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
648 echo "$ac_t""$target" 1>&6
650 echo $ac_n "checking build system type""... $ac_c" 1>&6
651 echo "configure:652: checking build system type" >&5
653 build_alias=$build
654 case "$build_alias" in
655 NONE)
656 case $nonopt in
657 NONE) build_alias=$host_alias ;;
658 *) build_alias=$nonopt ;;
659 esac ;;
660 esac
662 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
663 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
664 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
665 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo "$ac_t""$build" 1>&6
668 test "$host_alias" != "$target_alias" &&
669 test "$program_prefix$program_suffix$program_transform_name" = \
670 NONENONEs,x,x, &&
671 program_prefix=${target_alias}-
674 # Check whether --with-target-subdir or --without-target-subdir was given.
675 if test "${with_target_subdir+set}" = set; then
676 withval="$with_target_subdir"
680 # Check whether --with-cross-host or --without-cross-host was given.
681 if test "${with_cross_host+set}" = set; then
682 withval="$with_cross_host"
687 # Find a good install program. We prefer a C program (faster),
688 # so one script is as good as another. But avoid the broken or
689 # incompatible versions:
690 # SysV /etc/install, /usr/sbin/install
691 # SunOS /usr/etc/install
692 # IRIX /sbin/install
693 # AIX /bin/install
694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
697 # ./install, which can be erroneously created by make from ./install.sh.
698 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
699 echo "configure:700: checking for a BSD compatible install" >&5
700 if test -z "$INSTALL"; then
701 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
703 else
704 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
705 for ac_dir in $PATH; do
706 # Account for people who put trailing slashes in PATH elements.
707 case "$ac_dir/" in
708 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
710 # OSF1 and SCO ODT 3.0 have their own names for install.
711 # Don't use installbsd from OSF since it installs stuff as root
712 # by default.
713 for ac_prog in ginstall scoinst install; do
714 if test -f $ac_dir/$ac_prog; then
715 if test $ac_prog = install &&
716 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
717 # AIX install. It has an incompatible calling convention.
719 else
720 ac_cv_path_install="$ac_dir/$ac_prog -c"
721 break 2
724 done
726 esac
727 done
728 IFS="$ac_save_IFS"
731 if test "${ac_cv_path_install+set}" = set; then
732 INSTALL="$ac_cv_path_install"
733 else
734 # As a last resort, use the slow shell script. We don't cache a
735 # path for INSTALL within a source directory, because that will
736 # break other packages using the cache if that directory is
737 # removed, or if the path is relative.
738 INSTALL="$ac_install_sh"
741 echo "$ac_t""$INSTALL" 1>&6
743 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
744 # It thinks the first close brace ends the variable substitution.
745 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
747 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
749 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
751 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
752 echo "configure:753: checking whether build environment is sane" >&5
753 # Just in case
754 sleep 1
755 echo timestamp > conftestfile
756 # Do `set' in a subshell so we don't clobber the current shell's
757 # arguments. Must try -L first in case configure is actually a
758 # symlink; some systems play weird games with the mod time of symlinks
759 # (eg FreeBSD returns the mod time of the symlink's containing
760 # directory).
761 if (
762 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
763 if test "$*" = "X"; then
764 # -L didn't work.
765 set X `ls -t $srcdir/configure conftestfile`
767 if test "$*" != "X $srcdir/configure conftestfile" \
768 && test "$*" != "X conftestfile $srcdir/configure"; then
770 # If neither matched, then we have a broken ls. This can happen
771 # if, for instance, CONFIG_SHELL is bash and it inherits a
772 # broken ls alias from the environment. This has actually
773 # happened. Such a system could not be considered "sane".
774 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
775 alias in your environment" 1>&2; exit 1; }
778 test "$2" = conftestfile
780 then
781 # Ok.
783 else
784 { echo "configure: error: newly created file is older than distributed files!
785 Check your system clock" 1>&2; exit 1; }
787 rm -f conftest*
788 echo "$ac_t""yes" 1>&6
789 if test "$program_transform_name" = s,x,x,; then
790 program_transform_name=
791 else
792 # Double any \ or $. echo might interpret backslashes.
793 cat <<\EOF_SED > conftestsed
794 s,\\,\\\\,g; s,\$,$$,g
795 EOF_SED
796 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
797 rm -f conftestsed
799 test "$program_prefix" != NONE &&
800 program_transform_name="s,^,${program_prefix},; $program_transform_name"
801 # Use a double $ so make ignores it.
802 test "$program_suffix" != NONE &&
803 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
805 # sed with no file args requires a program.
806 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
808 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
809 echo "configure:810: checking whether ${MAKE-make} sets \${MAKE}" >&5
810 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
811 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
813 else
814 cat > conftestmake <<\EOF
815 all:
816 @echo 'ac_maketemp="${MAKE}"'
818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
819 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
820 if test -n "$ac_maketemp"; then
821 eval ac_cv_prog_make_${ac_make}_set=yes
822 else
823 eval ac_cv_prog_make_${ac_make}_set=no
825 rm -f conftestmake
827 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
828 echo "$ac_t""yes" 1>&6
829 SET_MAKE=
830 else
831 echo "$ac_t""no" 1>&6
832 SET_MAKE="MAKE=${MAKE-make}"
835 if test $host != $build; then
836 ac_tool_prefix=${host_alias}-
837 else
838 ac_tool_prefix=
841 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
842 echo "configure:843: checking for Cygwin environment" >&5
843 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
845 else
846 cat > conftest.$ac_ext <<EOF
847 #line 848 "configure"
848 #include "confdefs.h"
850 int main() {
852 #ifndef __CYGWIN__
853 #define __CYGWIN__ __CYGWIN32__
854 #endif
855 return __CYGWIN__;
856 ; return 0; }
858 if { (eval echo configure:859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
859 rm -rf conftest*
860 ac_cv_cygwin=yes
861 else
862 echo "configure: failed program was:" >&5
863 cat conftest.$ac_ext >&5
864 rm -rf conftest*
865 ac_cv_cygwin=no
867 rm -f conftest*
868 rm -f conftest*
871 echo "$ac_t""$ac_cv_cygwin" 1>&6
872 CYGWIN=
873 test "$ac_cv_cygwin" = yes && CYGWIN=yes
874 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
875 echo "configure:876: checking for mingw32 environment" >&5
876 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
878 else
879 cat > conftest.$ac_ext <<EOF
880 #line 881 "configure"
881 #include "confdefs.h"
883 int main() {
884 return __MINGW32__;
885 ; return 0; }
887 if { (eval echo configure:888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
888 rm -rf conftest*
889 ac_cv_mingw32=yes
890 else
891 echo "configure: failed program was:" >&5
892 cat conftest.$ac_ext >&5
893 rm -rf conftest*
894 ac_cv_mingw32=no
896 rm -f conftest*
897 rm -f conftest*
900 echo "$ac_t""$ac_cv_mingw32" 1>&6
901 MINGW32=
902 test "$ac_cv_mingw32" = yes && MINGW32=yes
904 # Check whether --enable-multilib or --disable-multilib was given.
905 if test "${enable_multilib+set}" = set; then
906 enableval="$enable_multilib"
907 case "${enableval}" in
908 yes) multilib=yes ;;
909 no) multilib=no ;;
910 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
911 esac
912 else
913 multilib=yes
917 if test "${srcdir}" = "."; then
918 if test "${with_target_subdir}" != "."; then
919 libgcj_basedir="${srcdir}/${with_multisrctop}../."
920 else
921 libgcj_basedir="${srcdir}/${with_multisrctop}."
923 else
924 libgcj_basedir="${srcdir}/."
929 # Make sure we can run config.sub.
930 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
931 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
934 echo $ac_n "checking host system type""... $ac_c" 1>&6
935 echo "configure:936: checking host system type" >&5
937 host_alias=$host
938 case "$host_alias" in
939 NONE)
940 case $nonopt in
941 NONE)
942 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
943 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
944 fi ;;
945 *) host_alias=$nonopt ;;
946 esac ;;
947 esac
949 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
950 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
951 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
952 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
953 echo "$ac_t""$host" 1>&6
956 version=0.0.7
958 PACKAGE=libjava
960 VERSION=$version
962 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
963 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
965 cat >> confdefs.h <<EOF
966 #define PACKAGE "$PACKAGE"
969 cat >> confdefs.h <<EOF
970 #define VERSION "$VERSION"
975 missing_dir=`cd $ac_aux_dir && pwd`
976 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
977 echo "configure:978: checking for working aclocal" >&5
978 # Run test in a subshell; some versions of sh will print an error if
979 # an executable is not found, even if stderr is redirected.
980 # Redirect stdin to placate older versions of autoconf. Sigh.
981 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
982 ACLOCAL=aclocal
983 echo "$ac_t""found" 1>&6
984 else
985 ACLOCAL="$missing_dir/missing aclocal"
986 echo "$ac_t""missing" 1>&6
989 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
990 echo "configure:991: checking for working autoconf" >&5
991 # Run test in a subshell; some versions of sh will print an error if
992 # an executable is not found, even if stderr is redirected.
993 # Redirect stdin to placate older versions of autoconf. Sigh.
994 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
995 AUTOCONF=autoconf
996 echo "$ac_t""found" 1>&6
997 else
998 AUTOCONF="$missing_dir/missing autoconf"
999 echo "$ac_t""missing" 1>&6
1002 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1003 echo "configure:1004: checking for working automake" >&5
1004 # Run test in a subshell; some versions of sh will print an error if
1005 # an executable is not found, even if stderr is redirected.
1006 # Redirect stdin to placate older versions of autoconf. Sigh.
1007 if (automake --version) < /dev/null > /dev/null 2>&1; then
1008 AUTOMAKE=automake
1009 echo "$ac_t""found" 1>&6
1010 else
1011 AUTOMAKE="$missing_dir/missing automake"
1012 echo "$ac_t""missing" 1>&6
1015 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working autoheader" >&5
1017 # Run test in a subshell; some versions of sh will print an error if
1018 # an executable is not found, even if stderr is redirected.
1019 # Redirect stdin to placate older versions of autoconf. Sigh.
1020 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1021 AUTOHEADER=autoheader
1022 echo "$ac_t""found" 1>&6
1023 else
1024 AUTOHEADER="$missing_dir/missing autoheader"
1025 echo "$ac_t""missing" 1>&6
1028 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working makeinfo" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf. Sigh.
1033 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1034 MAKEINFO=makeinfo
1035 echo "$ac_t""found" 1>&6
1036 else
1037 MAKEINFO="$missing_dir/missing makeinfo"
1038 echo "$ac_t""missing" 1>&6
1043 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1044 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1045 # are probably using a cross compiler, which will not be able to fully
1046 # link an executable. This should really be fixed in autoconf
1047 # itself.
1052 # Extract the first word of "gcc", so it can be a program name with args.
1053 set dummy gcc; ac_word=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1058 else
1059 if test -n "$CC"; then
1060 ac_cv_prog_CC="$CC" # Let the user override the test.
1061 else
1062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1063 ac_dummy="$PATH"
1064 for ac_dir in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir=.
1066 if test -f $ac_dir/$ac_word; then
1067 ac_cv_prog_CC="gcc"
1068 break
1070 done
1071 IFS="$ac_save_ifs"
1074 CC="$ac_cv_prog_CC"
1075 if test -n "$CC"; then
1076 echo "$ac_t""$CC" 1>&6
1077 else
1078 echo "$ac_t""no" 1>&6
1081 if test -z "$CC"; then
1082 # Extract the first word of "cc", so it can be a program name with args.
1083 set dummy cc; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC="$CC" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_prog_rejected=no
1094 ac_dummy="$PATH"
1095 for ac_dir in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1098 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1099 ac_prog_rejected=yes
1100 continue
1102 ac_cv_prog_CC="cc"
1103 break
1105 done
1106 IFS="$ac_save_ifs"
1107 if test $ac_prog_rejected = yes; then
1108 # We found a bogon in the path, so make sure we never use it.
1109 set dummy $ac_cv_prog_CC
1110 shift
1111 if test $# -gt 0; then
1112 # We chose a different compiler from the bogus one.
1113 # However, it has the same basename, so the bogon will be chosen
1114 # first if we set CC to just the basename; use the full file name.
1115 shift
1116 set dummy "$ac_dir/$ac_word" "$@"
1117 shift
1118 ac_cv_prog_CC="$@"
1123 CC="$ac_cv_prog_CC"
1124 if test -n "$CC"; then
1125 echo "$ac_t""$CC" 1>&6
1126 else
1127 echo "$ac_t""no" 1>&6
1130 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1133 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1134 echo "configure:1135: checking whether we are using GNU C" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1137 else
1138 cat > conftest.c <<EOF
1139 #ifdef __GNUC__
1140 yes;
1141 #endif
1143 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1144 ac_cv_prog_gcc=yes
1145 else
1146 ac_cv_prog_gcc=no
1150 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1152 if test $ac_cv_prog_gcc = yes; then
1153 GCC=yes
1154 ac_test_CFLAGS="${CFLAGS+set}"
1155 ac_save_CFLAGS="$CFLAGS"
1156 CFLAGS=
1157 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether ${CC-cc} accepts -g" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1161 else
1162 echo 'void f(){}' > conftest.c
1163 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1164 ac_cv_prog_cc_g=yes
1165 else
1166 ac_cv_prog_cc_g=no
1168 rm -f conftest*
1172 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1173 if test "$ac_test_CFLAGS" = set; then
1174 CFLAGS="$ac_save_CFLAGS"
1175 elif test $ac_cv_prog_cc_g = yes; then
1176 CFLAGS="-g -O2"
1177 else
1178 CFLAGS="-O2"
1180 else
1181 GCC=
1182 test "${CFLAGS+set}" = set || CFLAGS="-g"
1186 # Likewise for AC_PROG_CXX.
1190 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1192 # Extract the first word of "$ac_prog", so it can be a program name with args.
1193 set dummy $ac_prog; ac_word=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199 if test -n "$CXX"; then
1200 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1201 else
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1203 ac_dummy="$PATH"
1204 for ac_dir in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_CXX="$ac_prog"
1208 break
1210 done
1211 IFS="$ac_save_ifs"
1214 CXX="$ac_cv_prog_CXX"
1215 if test -n "$CXX"; then
1216 echo "$ac_t""$CXX" 1>&6
1217 else
1218 echo "$ac_t""no" 1>&6
1221 test -n "$CXX" && break
1222 done
1223 test -n "$CXX" || CXX="gcc"
1225 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1227 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1228 echo "configure:1229: checking whether we are using GNU C++" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1231 else
1232 cat > conftest.C <<EOF
1233 #ifdef __GNUC__
1234 yes;
1235 #endif
1237 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1238 ac_cv_prog_gxx=yes
1239 else
1240 ac_cv_prog_gxx=no
1244 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1246 if test $ac_cv_prog_gxx = yes; then
1247 GXX=yes
1248 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1249 ac_save_CXXFLAGS="$CXXFLAGS"
1250 CXXFLAGS=
1251 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether ${CXX-g++} accepts -g" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256 echo 'void f(){}' > conftest.cc
1257 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1258 ac_cv_prog_cxx_g=yes
1259 else
1260 ac_cv_prog_cxx_g=no
1262 rm -f conftest*
1266 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1267 if test "$ac_test_CXXFLAGS" = set; then
1268 CXXFLAGS="$ac_save_CXXFLAGS"
1269 elif test $ac_cv_prog_cxx_g = yes; then
1270 CXXFLAGS="-g -O2"
1271 else
1272 CXXFLAGS="-O2"
1274 else
1275 GXX=
1276 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1280 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1281 # run it explicitly here, it will be run implicitly before
1282 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1283 # be run before AC_CANONICAL_HOST.
1284 echo $ac_n "checking build system type""... $ac_c" 1>&6
1285 echo "configure:1286: checking build system type" >&5
1287 build_alias=$build
1288 case "$build_alias" in
1289 NONE)
1290 case $nonopt in
1291 NONE) build_alias=$host_alias ;;
1292 *) build_alias=$nonopt ;;
1293 esac ;;
1294 esac
1296 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1297 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1298 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1299 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1300 echo "$ac_t""$build" 1>&6
1303 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1304 set dummy ${ac_tool_prefix}as; ac_word=$2
1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1306 echo "configure:1307: checking for $ac_word" >&5
1307 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1309 else
1310 if test -n "$AS"; then
1311 ac_cv_prog_AS="$AS" # Let the user override the test.
1312 else
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1314 ac_dummy="$PATH"
1315 for ac_dir in $ac_dummy; do
1316 test -z "$ac_dir" && ac_dir=.
1317 if test -f $ac_dir/$ac_word; then
1318 ac_cv_prog_AS="${ac_tool_prefix}as"
1319 break
1321 done
1322 IFS="$ac_save_ifs"
1323 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1326 AS="$ac_cv_prog_AS"
1327 if test -n "$AS"; then
1328 echo "$ac_t""$AS" 1>&6
1329 else
1330 echo "$ac_t""no" 1>&6
1335 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1336 set dummy ${ac_tool_prefix}ar; ac_word=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1341 else
1342 if test -n "$AR"; then
1343 ac_cv_prog_AR="$AR" # Let the user override the test.
1344 else
1345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1346 ac_dummy="$PATH"
1347 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 if test -f $ac_dir/$ac_word; then
1350 ac_cv_prog_AR="${ac_tool_prefix}ar"
1351 break
1353 done
1354 IFS="$ac_save_ifs"
1355 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1358 AR="$ac_cv_prog_AR"
1359 if test -n "$AR"; then
1360 echo "$ac_t""$AR" 1>&6
1361 else
1362 echo "$ac_t""no" 1>&6
1367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_word" >&5
1371 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374 if test -n "$RANLIB"; then
1375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1376 else
1377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1378 ac_dummy="$PATH"
1379 for ac_dir in $ac_dummy; do
1380 test -z "$ac_dir" && ac_dir=.
1381 if test -f $ac_dir/$ac_word; then
1382 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1383 break
1385 done
1386 IFS="$ac_save_ifs"
1389 RANLIB="$ac_cv_prog_RANLIB"
1390 if test -n "$RANLIB"; then
1391 echo "$ac_t""$RANLIB" 1>&6
1392 else
1393 echo "$ac_t""no" 1>&6
1397 if test -z "$ac_cv_prog_RANLIB"; then
1398 if test -n "$ac_tool_prefix"; then
1399 # Extract the first word of "ranlib", so it can be a program name with args.
1400 set dummy ranlib; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1405 else
1406 if test -n "$RANLIB"; then
1407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1408 else
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1410 ac_dummy="$PATH"
1411 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_RANLIB="ranlib"
1415 break
1417 done
1418 IFS="$ac_save_ifs"
1419 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1422 RANLIB="$ac_cv_prog_RANLIB"
1423 if test -n "$RANLIB"; then
1424 echo "$ac_t""$RANLIB" 1>&6
1425 else
1426 echo "$ac_t""no" 1>&6
1429 else
1430 RANLIB=":"
1435 # Find a good install program. We prefer a C program (faster),
1436 # so one script is as good as another. But avoid the broken or
1437 # incompatible versions:
1438 # SysV /etc/install, /usr/sbin/install
1439 # SunOS /usr/etc/install
1440 # IRIX /sbin/install
1441 # AIX /bin/install
1442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1445 # ./install, which can be erroneously created by make from ./install.sh.
1446 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1447 echo "configure:1448: checking for a BSD compatible install" >&5
1448 if test -z "$INSTALL"; then
1449 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1453 for ac_dir in $PATH; do
1454 # Account for people who put trailing slashes in PATH elements.
1455 case "$ac_dir/" in
1456 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1458 # OSF1 and SCO ODT 3.0 have their own names for install.
1459 # Don't use installbsd from OSF since it installs stuff as root
1460 # by default.
1461 for ac_prog in ginstall scoinst install; do
1462 if test -f $ac_dir/$ac_prog; then
1463 if test $ac_prog = install &&
1464 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1465 # AIX install. It has an incompatible calling convention.
1467 else
1468 ac_cv_path_install="$ac_dir/$ac_prog -c"
1469 break 2
1472 done
1474 esac
1475 done
1476 IFS="$ac_save_IFS"
1479 if test "${ac_cv_path_install+set}" = set; then
1480 INSTALL="$ac_cv_path_install"
1481 else
1482 # As a last resort, use the slow shell script. We don't cache a
1483 # path for INSTALL within a source directory, because that will
1484 # break other packages using the cache if that directory is
1485 # removed, or if the path is relative.
1486 INSTALL="$ac_install_sh"
1489 echo "$ac_t""$INSTALL" 1>&6
1491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1492 # It thinks the first close brace ends the variable substitution.
1493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1500 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1501 echo "configure:1502: checking whether to enable maintainer-specific portions of Makefiles" >&5
1502 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1503 if test "${enable_maintainer_mode+set}" = set; then
1504 enableval="$enable_maintainer_mode"
1505 USE_MAINTAINER_MODE=$enableval
1506 else
1507 USE_MAINTAINER_MODE=no
1510 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1513 if test $USE_MAINTAINER_MODE = yes; then
1514 MAINTAINER_MODE_TRUE=
1515 MAINTAINER_MODE_FALSE='#'
1516 else
1517 MAINTAINER_MODE_TRUE='#'
1518 MAINTAINER_MODE_FALSE=
1520 MAINT=$MAINTAINER_MODE_TRUE
1524 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1525 # at least currently, we never actually build a program, so we never
1526 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1527 # fails, because we are probably configuring with a cross compiler
1528 # which cant create executables. So we include AC_EXEEXT to keep
1529 # automake happy, but we dont execute it, since we dont care about
1530 # the result.
1531 if false; then
1534 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1535 echo "configure:1536: checking for executable suffix" >&5
1536 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1539 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1540 ac_cv_exeext=.exe
1541 else
1542 rm -f conftest*
1543 echo 'int main () { return 0; }' > conftest.$ac_ext
1544 ac_cv_exeext=
1545 if { (eval echo configure:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1546 for file in conftest.*; do
1547 case $file in
1548 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1549 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1550 esac
1551 done
1552 else
1553 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1555 rm -f conftest*
1556 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1560 EXEEXT=""
1561 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1562 echo "$ac_t""${ac_cv_exeext}" 1>&6
1563 ac_exeext=$EXEEXT
1567 # configure.host sets the following important variables
1568 # libgcj_cflags - host specific C compiler flags
1569 # libgcj_cxxflags - host specific C++ compiler flags
1570 # libgcj_javaflags - host specific Java compiler flags
1572 libgcj_cflags=
1573 libgcj_cxxflags=
1574 libgcj_javaflags=
1576 . ${libgcj_basedir}/configure.host
1578 case ${libgcj_basedir} in
1579 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1580 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1581 esac
1583 LIBGCJ_CFLAGS="${libgcj_cflags}"
1584 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1585 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1595 # Check whether --enable-shared or --disable-shared was given.
1596 if test "${enable_shared+set}" = set; then
1597 enableval="$enable_shared"
1598 p=${PACKAGE-default}
1599 case "$enableval" in
1600 yes) enable_shared=yes ;;
1601 no) enable_shared=no ;;
1603 enable_shared=no
1604 # Look at the argument we got. We use all the common list separators.
1605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1606 for pkg in $enableval; do
1607 if test "X$pkg" = "X$p"; then
1608 enable_shared=yes
1610 done
1611 IFS="$ac_save_ifs"
1613 esac
1614 else
1615 enable_shared=yes
1618 # Check whether --enable-static or --disable-static was given.
1619 if test "${enable_static+set}" = set; then
1620 enableval="$enable_static"
1621 p=${PACKAGE-default}
1622 case "$enableval" in
1623 yes) enable_static=yes ;;
1624 no) enable_static=no ;;
1626 enable_static=no
1627 # Look at the argument we got. We use all the common list separators.
1628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1629 for pkg in $enableval; do
1630 if test "X$pkg" = "X$p"; then
1631 enable_static=yes
1633 done
1634 IFS="$ac_save_ifs"
1636 esac
1637 else
1638 enable_static=yes
1641 # Check whether --enable-fast-install or --disable-fast-install was given.
1642 if test "${enable_fast_install+set}" = set; then
1643 enableval="$enable_fast_install"
1644 p=${PACKAGE-default}
1645 case "$enableval" in
1646 yes) enable_fast_install=yes ;;
1647 no) enable_fast_install=no ;;
1649 enable_fast_install=no
1650 # Look at the argument we got. We use all the common list separators.
1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1652 for pkg in $enableval; do
1653 if test "X$pkg" = "X$p"; then
1654 enable_fast_install=yes
1656 done
1657 IFS="$ac_save_ifs"
1659 esac
1660 else
1661 enable_fast_install=yes
1664 # Extract the first word of "ranlib", so it can be a program name with args.
1665 set dummy ranlib; ac_word=$2
1666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1667 echo "configure:1668: checking for $ac_word" >&5
1668 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1670 else
1671 if test -n "$RANLIB"; then
1672 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1673 else
1674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1675 ac_dummy="$PATH"
1676 for ac_dir in $ac_dummy; do
1677 test -z "$ac_dir" && ac_dir=.
1678 if test -f $ac_dir/$ac_word; then
1679 ac_cv_prog_RANLIB="ranlib"
1680 break
1682 done
1683 IFS="$ac_save_ifs"
1684 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1687 RANLIB="$ac_cv_prog_RANLIB"
1688 if test -n "$RANLIB"; then
1689 echo "$ac_t""$RANLIB" 1>&6
1690 else
1691 echo "$ac_t""no" 1>&6
1694 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1695 if test "${with_gnu_ld+set}" = set; then
1696 withval="$with_gnu_ld"
1697 test "$withval" = no || with_gnu_ld=yes
1698 else
1699 with_gnu_ld=no
1702 ac_prog=ld
1703 if test "$ac_cv_prog_gcc" = yes; then
1704 # Check if gcc -print-prog-name=ld gives a path.
1705 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1706 echo "configure:1707: checking for ld used by GCC" >&5
1707 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1708 case "$ac_prog" in
1709 # Accept absolute paths.
1710 /* | [A-Za-z]:[\\/]*)
1711 re_direlt='/[^/][^/]*/\.\./'
1712 # Canonicalize the path of ld
1713 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1714 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1715 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1716 done
1717 test -z "$LD" && LD="$ac_prog"
1720 # If it fails, then pretend we aren't using GCC.
1721 ac_prog=ld
1724 # If it is relative, then search for the first ld in PATH.
1725 with_gnu_ld=unknown
1727 esac
1728 elif test "$with_gnu_ld" = yes; then
1729 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1730 echo "configure:1731: checking for GNU ld" >&5
1731 else
1732 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1733 echo "configure:1734: checking for non-GNU ld" >&5
1735 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737 else
1738 if test -z "$LD"; then
1739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1740 for ac_dir in $PATH; do
1741 test -z "$ac_dir" && ac_dir=.
1742 if test -f "$ac_dir/$ac_prog"; then
1743 ac_cv_path_LD="$ac_dir/$ac_prog"
1744 # Check to see if the program is GNU ld. I'd rather use --version,
1745 # but apparently some GNU ld's only accept -v.
1746 # Break only if it was the GNU/non-GNU ld that we prefer.
1747 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1748 test "$with_gnu_ld" != no && break
1749 else
1750 test "$with_gnu_ld" != yes && break
1753 done
1754 IFS="$ac_save_ifs"
1755 else
1756 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1760 LD="$ac_cv_path_LD"
1761 if test -n "$LD"; then
1762 echo "$ac_t""$LD" 1>&6
1763 else
1764 echo "$ac_t""no" 1>&6
1766 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1768 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1769 echo "configure:1770: checking if the linker ($LD) is GNU ld" >&5
1770 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1772 else
1773 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1774 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1775 ac_cv_prog_gnu_ld=yes
1776 else
1777 ac_cv_prog_gnu_ld=no
1781 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1784 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1785 echo "configure:1786: checking for BSD-compatible nm" >&5
1786 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1788 else
1789 if test -n "$NM"; then
1790 # Let the user override the test.
1791 ac_cv_path_NM="$NM"
1792 else
1793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1794 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1795 test -z "$ac_dir" && ac_dir=.
1796 if test -f $ac_dir/nm; then
1797 # Check to see if the nm accepts a BSD-compat flag.
1798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1799 # nm: unknown option "B" ignored
1800 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1801 ac_cv_path_NM="$ac_dir/nm -B"
1802 break
1803 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1804 ac_cv_path_NM="$ac_dir/nm -p"
1805 break
1806 else
1807 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1808 continue # so that we can try to find one that supports BSD flags
1811 done
1812 IFS="$ac_save_ifs"
1813 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1817 NM="$ac_cv_path_NM"
1818 echo "$ac_t""$NM" 1>&6
1821 # Check for command to grab the raw symbol name followed by C symbol from nm.
1822 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1823 echo "configure:1824: checking command to parse $NM output" >&5
1824 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1826 else
1827 # These are sane defaults that work on at least a few old systems.
1828 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1830 # Character class describing NM global symbol codes.
1831 ac_symcode='[BCDEGRST]'
1833 # Regexp to match symbols that can be accessed directly from C.
1834 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1836 # Transform the above into a raw symbol and a C symbol.
1837 ac_symxfrm='\1 \2\3 \3'
1839 # Transform an extracted symbol line into a proper C declaration
1840 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1842 # Define system-specific variables.
1843 case "$host_os" in
1844 aix*)
1845 ac_symcode='[BCDT]'
1847 cygwin* | mingw*)
1848 ac_symcode='[ABCDGISTW]'
1850 hpux*)
1851 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1853 irix*)
1854 ac_symcode='[BCDEGRST]'
1856 solaris*)
1857 ac_symcode='[BDT]'
1859 esac
1861 # If we're using GNU nm, then use its standard symbol codes.
1862 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1863 ac_symcode='[ABCDGISTW]'
1866 # Try without a prefix undercore, then with it.
1867 for ac_symprfx in "" "_"; do
1869 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1871 # Check to see that the pipe works correctly.
1872 ac_pipe_works=no
1873 rm -f conftest.$ac_ext
1874 cat > conftest.$ac_ext <<EOF
1875 #ifdef __cplusplus
1876 extern "C" {
1877 #endif
1878 char nm_test_var;
1879 void nm_test_func(){}
1880 #ifdef __cplusplus
1882 #endif
1883 int main(){nm_test_var='a';nm_test_func;return 0;}
1886 if { (eval echo configure:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1887 # Now try to grab the symbols.
1888 ac_nlist=conftest.nm
1890 if { (eval echo configure:1891: \"$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
1892 # Try sorting and uniquifying the output.
1893 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1894 mv -f "$ac_nlist"T "$ac_nlist"
1895 else
1896 rm -f "$ac_nlist"T
1899 # Make sure that we snagged all the symbols we need.
1900 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1901 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1902 cat <<EOF > conftest.c
1903 #ifdef __cplusplus
1904 extern "C" {
1905 #endif
1908 # Now generate the symbol file.
1909 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1911 cat <<EOF >> conftest.c
1912 #if defined (__STDC__) && __STDC__
1913 # define lt_ptr_t void *
1914 #else
1915 # define lt_ptr_t char *
1916 # define const
1917 #endif
1919 /* The mapping between symbol names and symbols. */
1920 const struct {
1921 const char *name;
1922 lt_ptr_t address;
1924 lt_preloaded_symbols[] =
1927 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1928 cat <<\EOF >> conftest.c
1929 {0, (lt_ptr_t) 0}
1932 #ifdef __cplusplus
1934 #endif
1936 # Now try linking the two files.
1937 mv conftest.$ac_objext conftestm.$ac_objext
1938 ac_save_LIBS="$LIBS"
1939 ac_save_CFLAGS="$CFLAGS"
1940 LIBS="conftestm.$ac_objext"
1941 CFLAGS="$CFLAGS$no_builtin_flag"
1942 if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1943 ac_pipe_works=yes
1944 else
1945 echo "configure: failed program was:" >&5
1946 cat conftest.c >&5
1948 LIBS="$ac_save_LIBS"
1949 CFLAGS="$ac_save_CFLAGS"
1950 else
1951 echo "cannot find nm_test_func in $ac_nlist" >&5
1953 else
1954 echo "cannot find nm_test_var in $ac_nlist" >&5
1956 else
1957 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1959 else
1960 echo "$progname: failed program was:" >&5
1961 cat conftest.c >&5
1963 rm -rf conftest*
1965 # Do not use the global_symbol_pipe unless it works.
1966 if test "$ac_pipe_works" = yes; then
1967 if test x"$ac_symprfx" = x"_"; then
1968 ac_cv_sys_symbol_underscore=yes
1969 else
1970 ac_cv_sys_symbol_underscore=no
1972 break
1973 else
1974 ac_cv_sys_global_symbol_pipe=
1976 done
1981 ac_result=yes
1982 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1983 ac_result=no
1985 echo "$ac_t""$ac_result" 1>&6
1987 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1988 echo "configure:1989: checking for _ prefix in compiled symbols" >&5
1989 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1991 else
1992 ac_cv_sys_symbol_underscore=no
1993 cat > conftest.$ac_ext <<EOF
1994 void nm_test_func(){}
1995 int main(){nm_test_func;return 0;}
1997 if { (eval echo configure:1998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1998 # Now try to grab the symbols.
1999 ac_nlist=conftest.nm
2000 if { (eval echo configure:2001: \"$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
2001 # See whether the symbols have a leading underscore.
2002 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
2003 ac_cv_sys_symbol_underscore=yes
2004 else
2005 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
2007 else
2008 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2011 else
2012 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2014 else
2015 echo "configure: failed program was:" >&5
2016 cat conftest.c >&5
2018 rm -rf conftest*
2022 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2023 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
2025 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2026 echo "configure:2027: checking whether ln -s works" >&5
2027 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2029 else
2030 rm -f conftestdata
2031 if ln -s X conftestdata 2>/dev/null
2032 then
2033 rm -f conftestdata
2034 ac_cv_prog_LN_S="ln -s"
2035 else
2036 ac_cv_prog_LN_S=ln
2039 LN_S="$ac_cv_prog_LN_S"
2040 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2041 echo "$ac_t""yes" 1>&6
2042 else
2043 echo "$ac_t""no" 1>&6
2047 # Check for any special flags to pass to ltconfig.
2048 libtool_flags="--cache-file=$cache_file"
2049 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2050 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2051 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2052 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
2053 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2054 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2055 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2057 # Some flags need to be propagated to the compiler or linker for good
2058 # libtool support.
2059 case "$host" in
2060 *-*-irix6*)
2061 # Find out which ABI we are using.
2062 echo '#line 2063 "configure"' > conftest.$ac_ext
2063 if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064 case "`/usr/bin/file conftest.o`" in
2065 *32-bit*)
2066 LD="${LD-ld} -32"
2068 *N32*)
2069 LD="${LD-ld} -n32"
2071 *64-bit*)
2072 LD="${LD-ld} -64"
2074 esac
2076 rm -rf conftest*
2079 *-*-sco3.2v5*)
2080 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2081 SAVE_CFLAGS="$CFLAGS"
2082 CFLAGS="$CFLAGS -belf"
2083 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2084 echo "configure:2085: checking whether the C compiler needs -belf" >&5
2085 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087 else
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2092 int main() {
2094 ; return 0; }
2096 if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2097 rm -rf conftest*
2098 lt_cv_cc_needs_belf=yes
2099 else
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 rm -rf conftest*
2103 lt_cv_cc_needs_belf=no
2105 rm -f conftest*
2108 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2109 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2110 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2111 CFLAGS="$SAVE_CFLAGS"
2115 *-*-cygwin*)
2116 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2117 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_word" >&5
2120 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2122 else
2123 if test -n "$DLLTOOL"; then
2124 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2125 else
2126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2127 ac_dummy="$PATH"
2128 for ac_dir in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir=.
2130 if test -f $ac_dir/$ac_word; then
2131 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2132 break
2134 done
2135 IFS="$ac_save_ifs"
2138 DLLTOOL="$ac_cv_prog_DLLTOOL"
2139 if test -n "$DLLTOOL"; then
2140 echo "$ac_t""$DLLTOOL" 1>&6
2141 else
2142 echo "$ac_t""no" 1>&6
2146 if test -z "$ac_cv_prog_DLLTOOL"; then
2147 if test -n "$ac_tool_prefix"; then
2148 # Extract the first word of "dlltool", so it can be a program name with args.
2149 set dummy dlltool; ac_word=$2
2150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2151 echo "configure:2152: checking for $ac_word" >&5
2152 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155 if test -n "$DLLTOOL"; then
2156 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2157 else
2158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2159 ac_dummy="$PATH"
2160 for ac_dir in $ac_dummy; do
2161 test -z "$ac_dir" && ac_dir=.
2162 if test -f $ac_dir/$ac_word; then
2163 ac_cv_prog_DLLTOOL="dlltool"
2164 break
2166 done
2167 IFS="$ac_save_ifs"
2168 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2171 DLLTOOL="$ac_cv_prog_DLLTOOL"
2172 if test -n "$DLLTOOL"; then
2173 echo "$ac_t""$DLLTOOL" 1>&6
2174 else
2175 echo "$ac_t""no" 1>&6
2178 else
2179 DLLTOOL="false"
2183 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2184 set dummy ${ac_tool_prefix}as; ac_word=$2
2185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2186 echo "configure:2187: checking for $ac_word" >&5
2187 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2189 else
2190 if test -n "$AS"; then
2191 ac_cv_prog_AS="$AS" # Let the user override the test.
2192 else
2193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2194 ac_dummy="$PATH"
2195 for ac_dir in $ac_dummy; do
2196 test -z "$ac_dir" && ac_dir=.
2197 if test -f $ac_dir/$ac_word; then
2198 ac_cv_prog_AS="${ac_tool_prefix}as"
2199 break
2201 done
2202 IFS="$ac_save_ifs"
2205 AS="$ac_cv_prog_AS"
2206 if test -n "$AS"; then
2207 echo "$ac_t""$AS" 1>&6
2208 else
2209 echo "$ac_t""no" 1>&6
2213 if test -z "$ac_cv_prog_AS"; then
2214 if test -n "$ac_tool_prefix"; then
2215 # Extract the first word of "as", so it can be a program name with args.
2216 set dummy as; ac_word=$2
2217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_word" >&5
2219 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2221 else
2222 if test -n "$AS"; then
2223 ac_cv_prog_AS="$AS" # Let the user override the test.
2224 else
2225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2226 ac_dummy="$PATH"
2227 for ac_dir in $ac_dummy; do
2228 test -z "$ac_dir" && ac_dir=.
2229 if test -f $ac_dir/$ac_word; then
2230 ac_cv_prog_AS="as"
2231 break
2233 done
2234 IFS="$ac_save_ifs"
2235 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2238 AS="$ac_cv_prog_AS"
2239 if test -n "$AS"; then
2240 echo "$ac_t""$AS" 1>&6
2241 else
2242 echo "$ac_t""no" 1>&6
2245 else
2246 AS="false"
2253 esac
2255 # enable the --disable-libtool-lock switch
2257 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2258 if test "${enable_libtool_lock+set}" = set; then
2259 enableval="$enable_libtool_lock"
2260 need_locks=$enableval
2261 else
2262 need_locks=yes
2266 if test x"$need_locks" = xno; then
2267 libtool_flags="$libtool_flags --disable-lock"
2271 # Save cache, so that ltconfig can load it
2272 cat > confcache <<\EOF
2273 # This file is a shell script that caches the results of configure
2274 # tests run on this system so they can be shared between configure
2275 # scripts and configure runs. It is not useful on other systems.
2276 # If it contains results you don't want to keep, you may remove or edit it.
2278 # By default, configure uses ./config.cache as the cache file,
2279 # creating it if it does not exist already. You can give configure
2280 # the --cache-file=FILE option to use a different cache file; that is
2281 # what configure does when it calls configure scripts in
2282 # subdirectories, so they share the cache.
2283 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2284 # config.status only pays attention to the cache file if you give it the
2285 # --recheck option to rerun configure.
2288 # The following way of writing the cache mishandles newlines in values,
2289 # but we know of no workaround that is simple, portable, and efficient.
2290 # So, don't put newlines in cache variables' values.
2291 # Ultrix sh set writes to stderr and can't be redirected directly,
2292 # and sets the high bit in the cache file unless we assign to the vars.
2293 (set) 2>&1 |
2294 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2295 *ac_space=\ *)
2296 # `set' does not quote correctly, so add quotes (double-quote substitution
2297 # turns \\\\ into \\, and sed turns \\ into \).
2298 sed -n \
2299 -e "s/'/'\\\\''/g" \
2300 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2303 # `set' quotes correctly as required by POSIX, so do not add quotes.
2304 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2306 esac >> confcache
2307 if cmp -s $cache_file confcache; then
2309 else
2310 if test -w $cache_file; then
2311 echo "updating cache $cache_file"
2312 cat confcache > $cache_file
2313 else
2314 echo "not updating unwritable cache $cache_file"
2317 rm -f confcache
2320 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2321 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2322 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2323 DLLTOOL="$DLLTOOL" AS="$AS" \
2324 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2325 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2326 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2328 # Reload cache, that may have been modified by ltconfig
2329 if test -r "$cache_file"; then
2330 echo "loading cache $cache_file"
2331 . $cache_file
2332 else
2333 echo "creating cache $cache_file"
2334 > $cache_file
2338 # This can be used to rebuild libtool when needed
2339 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2341 # Always use our own libtool.
2342 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2344 # Redirect the config.log output again, so that the ltconfig log is not
2345 # clobbered by the next message.
2346 exec 5>>./config.log
2349 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2350 COMPPATH=.
2351 else
2352 COMPPATH=..
2358 if test -d $srcdir/testsuite; then
2359 TESTSUBDIR_TRUE=
2360 TESTSUBDIR_FALSE='#'
2361 else
2362 TESTSUBDIR_TRUE='#'
2363 TESTSUBDIR_FALSE=
2366 # Check whether --enable-fast-character or --disable-fast-character was given.
2367 if test "${enable_fast_character+set}" = set; then
2368 enableval="$enable_fast_character"
2369 # Nothing
2371 else
2372 cat >> confdefs.h <<\EOF
2373 #define COMPACT_CHARACTER 1
2379 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2380 if test "${enable_getenv_properties+set}" = set; then
2381 enableval="$enable_getenv_properties"
2386 if test -n "$enable_getenv_properties"; then
2387 enable_getenv_properties=${enable_getenv_properties_default-yes}
2389 if test "$enable_getenv_properties" = no; then
2390 cat >> confdefs.h <<\EOF
2391 #define DISABLE_GETENV_PROPERTIES 1
2396 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2397 if test "${enable_libgcj_debug+set}" = set; then
2398 enableval="$enable_libgcj_debug"
2399 if test "$enable_libgcj_debug" = yes; then
2400 cat >> confdefs.h <<\EOF
2401 #define DEBUG 1
2408 # Check whether --enable-interpreter or --disable-interpreter was given.
2409 if test "${enable_interpreter+set}" = set; then
2410 enableval="$enable_interpreter"
2411 if test "$enable_interpreter" = yes; then
2412 cat >> confdefs.h <<\EOF
2413 #define INTERPRETER 1
2420 # Check whether --enable-java-net or --disable-java-net was given.
2421 if test "${enable_java_net+set}" = set; then
2422 enableval="$enable_java_net"
2427 if test -n "$enable_java_net"; then
2428 enable_java_net=${enable_java_net_default-yes}
2430 if test "$enable_java_net" = no; then
2431 cat >> confdefs.h <<\EOF
2432 #define DISABLE_JAVA_NET 1
2437 TARGET_ECOS="no"
2438 # Check whether --with-ecos or --without-ecos was given.
2439 if test "${with_ecos+set}" = set; then
2440 withval="$with_ecos"
2441 TARGET_ECOS="$with_ecos"
2446 case "$TARGET_ECOS" in
2448 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2449 PROCESS=${PROCESS-Posix}
2452 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2453 PROCESS=Ecos
2454 cat >> confdefs.h <<\EOF
2455 #define ECOS 1
2459 esac
2461 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2462 echo "configure:2463: checking how to run the C preprocessor" >&5
2463 # On Suns, sometimes $CPP names a directory.
2464 if test -n "$CPP" && test -d "$CPP"; then
2465 CPP=
2467 if test -z "$CPP"; then
2468 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2470 else
2471 # This must be in double quotes, not single quotes, because CPP may get
2472 # substituted into the Makefile and "${CC-cc}" will confuse make.
2473 CPP="${CC-cc} -E"
2474 # On the NeXT, cc -E runs the code through the compiler's parser,
2475 # not just through cpp.
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 #include <assert.h>
2480 Syntax Error
2482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2483 { (eval echo configure:2484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2485 if test -z "$ac_err"; then
2487 else
2488 echo "$ac_err" >&5
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2491 rm -rf conftest*
2492 CPP="${CC-cc} -E -traditional-cpp"
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 #include <assert.h>
2497 Syntax Error
2499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2504 else
2505 echo "$ac_err" >&5
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 rm -rf conftest*
2509 CPP="${CC-cc} -nologo -E"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 #include <assert.h>
2514 Syntax Error
2516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2517 { (eval echo configure:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2519 if test -z "$ac_err"; then
2521 else
2522 echo "$ac_err" >&5
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 rm -rf conftest*
2526 CPP=/lib/cpp
2528 rm -f conftest*
2530 rm -f conftest*
2532 rm -f conftest*
2533 ac_cv_prog_CPP="$CPP"
2535 CPP="$ac_cv_prog_CPP"
2536 else
2537 ac_cv_prog_CPP="$CPP"
2539 echo "$ac_t""$CPP" 1>&6
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 #include <stdint.h>
2546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2547 egrep "uint32_t" >/dev/null 2>&1; then
2548 rm -rf conftest*
2549 cat >> confdefs.h <<\EOF
2550 #define HAVE_INT32_DEFINED 1
2554 rm -f conftest*
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2559 #include <inttypes.h>
2561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2562 egrep "uint32_t" >/dev/null 2>&1; then
2563 rm -rf conftest*
2564 cat >> confdefs.h <<\EOF
2565 #define HAVE_INT32_DEFINED 1
2569 rm -f conftest*
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <sys/types.h>
2576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2577 egrep "u_int32_t" >/dev/null 2>&1; then
2578 rm -rf conftest*
2579 cat >> confdefs.h <<\EOF
2580 #define HAVE_BSD_INT32_DEFINED 1
2584 rm -f conftest*
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #include <sys/config.h>
2591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2592 egrep "u_int32_t" >/dev/null 2>&1; then
2593 rm -rf conftest*
2594 cat >> confdefs.h <<\EOF
2595 #define HAVE_BSD_INT32_DEFINED 1
2599 rm -f conftest*
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2606 #include <time.h>
2608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2609 egrep "mktime" >/dev/null 2>&1; then
2610 rm -rf conftest*
2611 cat >> confdefs.h <<\EOF
2612 #define HAVE_MKTIME 1
2616 rm -f conftest*
2618 cat > conftest.$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2621 #include <time.h>
2623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2624 egrep "localtime" >/dev/null 2>&1; then
2625 rm -rf conftest*
2626 cat >> confdefs.h <<\EOF
2627 #define HAVE_LOCALTIME 1
2631 rm -f conftest*
2634 test -d java || mkdir java
2635 test -d java/io || mkdir java/io
2638 test -d java/lang || mkdir java/lang
2642 SYSTEMSPEC=
2645 # Check whether --with-system-zlib or --without-system-zlib was given.
2646 if test "${with_system_zlib+set}" = set; then
2647 withval="$with_system_zlib"
2651 ZLIBSPEC=
2654 libsubdir=.libs
2656 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2657 echo "configure:2658: checking for garbage collector to use" >&5
2658 # Check whether --enable-java-gc or --disable-java-gc was given.
2659 if test "${enable_java_gc+set}" = set; then
2660 enableval="$enable_java_gc"
2662 GC=$enableval
2663 else
2664 GC=boehm
2667 GCLIBS=
2668 GCINCS=
2669 GCDEPS=
2670 GCOBJS=
2671 GCSPEC=
2672 case "$GC" in
2673 boehm)
2674 echo "$ac_t""boehm" 1>&6
2675 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2676 # We include the path to the boehm-gc build directory.
2677 # See Makefile.am to understand why.
2678 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2679 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2680 GCSPEC='-lgcjgc'
2681 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2682 GCOBJS=boehm.lo
2683 GCHDR=boehm-gc.h
2684 cat >> confdefs.h <<\EOF
2685 #define HAVE_BOEHM_GC 1
2690 echo "$ac_t""none" 1>&6
2691 GCOBJS=nogc.lo
2692 GCHDR=no-gc.h
2695 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2697 esac
2706 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2707 echo "configure:2708: checking for threads package to use" >&5
2708 # Check whether --enable-threads or --disable-threads was given.
2709 if test "${enable_threads+set}" = set; then
2710 enableval="$enable_threads"
2711 THREADS=$enableval
2712 else
2713 THREADS=no
2717 if test "$THREADS" = yes; then
2718 case "$host" in
2719 *-*-vxworks*)
2720 THREADS=vxworks
2722 *-*-linux*)
2723 # FIXME: this isn't correct in all cases.
2724 THREADS=posix
2726 *-*-win*)
2727 THREADS=win32
2729 *-*-irix*)
2730 # FIXME: for now, choose POSIX, because we implement that.
2731 # Later, choose irix threads.
2732 THREADS=posix
2734 *-*-solaris*)
2735 # FIXME: for now, choose POSIX, because we implement that.
2736 # Later, choose solaris threads.
2737 THREADS=posix
2740 # For now.
2741 THREADS=none
2743 esac
2746 case "$THREADS" in
2747 no | none | single)
2748 THREADS=none
2750 posix | pthreads)
2751 THREADS=posix
2752 case "$host" in
2753 *-*-linux*)
2754 cat >> confdefs.h <<\EOF
2755 #define LINUX_THREADS 1
2759 esac
2761 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2762 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2765 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2767 esac
2768 echo "$ac_t""$THREADS" 1>&6
2770 THREADLIBS=
2771 THREADINCS=
2772 THREADDEPS=
2773 THREADOBJS=
2774 THREADH=
2775 THREADSPEC=
2776 case "$THREADS" in
2777 posix)
2778 THREADLIBS=-lpthread
2779 THREADSPEC=-lpthread
2780 THREADOBJS=posix-threads.lo
2781 THREADH=posix-threads.h
2782 # MIT pthreads doesn't seem to have the mutexattr functions.
2783 # But for now we don't check for it. We just assume you aren't
2784 # using MIT pthreads.
2785 cat >> confdefs.h <<\EOF
2786 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2791 none)
2792 THREADOBJS=no-threads.lo
2793 THREADH=no-threads.h
2795 esac
2805 if test "$GCC" = yes; then
2806 USING_GCC_TRUE=
2807 USING_GCC_FALSE='#'
2808 else
2809 USING_GCC_TRUE='#'
2810 USING_GCC_FALSE=
2813 CANADIAN=no
2814 NULL_TARGET=no
2815 NATIVE=yes
2817 # Find eh-common.h and support headers. If we're in the tree with
2818 # gcc, then look there. Otherwise look in compat-include. If all else
2819 # fails, just hope the user has set things up somehow.
2820 if test -r $srcdir/../gcc/eh-common.h; then
2821 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2822 else
2823 if test -d $srcdir/../compat-include; then
2824 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2825 else
2826 EH_COMMON_INCLUDE=
2830 if test -n "${with_cross_host}"; then
2831 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2832 # may not work correctly, because the compiler may not be able to
2833 # link executables.
2835 # We assume newlib. This lets us hard-code the functions we know
2836 # we'll have.
2837 cat >> confdefs.h <<\EOF
2838 #define HAVE_MEMMOVE 1
2841 cat >> confdefs.h <<\EOF
2842 #define HAVE_MEMCPY 1
2845 cat >> confdefs.h <<\EOF
2846 #define HAVE_STRERROR 1
2849 cat >> confdefs.h <<\EOF
2850 #define HAVE_GMTIME_R 1
2853 cat >> confdefs.h <<\EOF
2854 #define HAVE_LOCALTIME_R 1
2857 cat >> confdefs.h <<\EOF
2858 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2861 cat >> confdefs.h <<\EOF
2862 #define HAVE_ALLOCA 1
2866 ZLIBSPEC=-lzgcj
2868 # If Canadian cross, then don't pick up tools from the build
2869 # directory.
2870 if test "$build" != "$with_cross_host"; then
2871 CANADIAN=yes
2872 EH_COMMON_INCLUDE=
2873 GCJ="${target_alias}-gcj"
2874 else
2875 GCJ=
2877 NATIVE=no
2878 else
2879 for ac_func in strerror ioctl select fstat open fsync sleep
2881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2882 echo "configure:2883: checking for $ac_func" >&5
2883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2885 else
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2889 /* System header to define __stub macros and hopefully few prototypes,
2890 which can conflict with char $ac_func(); below. */
2891 #include <assert.h>
2892 /* Override any gcc2 internal prototype to avoid an error. */
2893 /* We use char because int might match the return type of a gcc2
2894 builtin and then its argument prototype would still apply. */
2895 char $ac_func();
2897 int main() {
2899 /* The GNU C library defines this for functions which it implements
2900 to always fail with ENOSYS. Some functions are actually named
2901 something starting with __ and the normal name is an alias. */
2902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2903 choke me
2904 #else
2905 $ac_func();
2906 #endif
2908 ; return 0; }
2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2911 rm -rf conftest*
2912 eval "ac_cv_func_$ac_func=yes"
2913 else
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 rm -rf conftest*
2917 eval "ac_cv_func_$ac_func=no"
2919 rm -f conftest*
2922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2923 echo "$ac_t""yes" 1>&6
2924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2925 cat >> confdefs.h <<EOF
2926 #define $ac_tr_func 1
2929 else
2930 echo "$ac_t""no" 1>&6
2932 done
2934 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
2936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_func" >&5
2938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2940 else
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 /* System header to define __stub macros and hopefully few prototypes,
2945 which can conflict with char $ac_func(); below. */
2946 #include <assert.h>
2947 /* Override any gcc2 internal prototype to avoid an error. */
2948 /* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2950 char $ac_func();
2952 int main() {
2954 /* The GNU C library defines this for functions which it implements
2955 to always fail with ENOSYS. Some functions are actually named
2956 something starting with __ and the normal name is an alias. */
2957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2958 choke me
2959 #else
2960 $ac_func();
2961 #endif
2963 ; return 0; }
2965 if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2966 rm -rf conftest*
2967 eval "ac_cv_func_$ac_func=yes"
2968 else
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2971 rm -rf conftest*
2972 eval "ac_cv_func_$ac_func=no"
2974 rm -f conftest*
2977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2980 cat >> confdefs.h <<EOF
2981 #define $ac_tr_func 1
2984 else
2985 echo "$ac_t""no" 1>&6
2987 done
2989 for ac_func in access stat mkdir rename rmdir unlink realpath
2991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2992 echo "configure:2993: checking for $ac_func" >&5
2993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2995 else
2996 cat > conftest.$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
2999 /* System header to define __stub macros and hopefully few prototypes,
3000 which can conflict with char $ac_func(); below. */
3001 #include <assert.h>
3002 /* Override any gcc2 internal prototype to avoid an error. */
3003 /* We use char because int might match the return type of a gcc2
3004 builtin and then its argument prototype would still apply. */
3005 char $ac_func();
3007 int main() {
3009 /* The GNU C library defines this for functions which it implements
3010 to always fail with ENOSYS. Some functions are actually named
3011 something starting with __ and the normal name is an alias. */
3012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3013 choke me
3014 #else
3015 $ac_func();
3016 #endif
3018 ; return 0; }
3020 if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3021 rm -rf conftest*
3022 eval "ac_cv_func_$ac_func=yes"
3023 else
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3026 rm -rf conftest*
3027 eval "ac_cv_func_$ac_func=no"
3029 rm -f conftest*
3032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3033 echo "$ac_t""yes" 1>&6
3034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3035 cat >> confdefs.h <<EOF
3036 #define $ac_tr_func 1
3039 else
3040 echo "$ac_t""no" 1>&6
3042 done
3044 for ac_func in inet_aton inet_addr
3046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3047 echo "configure:3048: checking for $ac_func" >&5
3048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3050 else
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 /* System header to define __stub macros and hopefully few prototypes,
3055 which can conflict with char $ac_func(); below. */
3056 #include <assert.h>
3057 /* Override any gcc2 internal prototype to avoid an error. */
3058 /* We use char because int might match the return type of a gcc2
3059 builtin and then its argument prototype would still apply. */
3060 char $ac_func();
3062 int main() {
3064 /* The GNU C library defines this for functions which it implements
3065 to always fail with ENOSYS. Some functions are actually named
3066 something starting with __ and the normal name is an alias. */
3067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3068 choke me
3069 #else
3070 $ac_func();
3071 #endif
3073 ; return 0; }
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3076 rm -rf conftest*
3077 eval "ac_cv_func_$ac_func=yes"
3078 else
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3081 rm -rf conftest*
3082 eval "ac_cv_func_$ac_func=no"
3084 rm -f conftest*
3087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3090 cat >> confdefs.h <<EOF
3091 #define $ac_tr_func 1
3093 break
3094 else
3095 echo "$ac_t""no" 1>&6
3097 done
3099 for ac_func in inet_pton uname inet_ntoa
3101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_func" >&5
3103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3109 /* System header to define __stub macros and hopefully few prototypes,
3110 which can conflict with char $ac_func(); below. */
3111 #include <assert.h>
3112 /* Override any gcc2 internal prototype to avoid an error. */
3113 /* We use char because int might match the return type of a gcc2
3114 builtin and then its argument prototype would still apply. */
3115 char $ac_func();
3117 int main() {
3119 /* The GNU C library defines this for functions which it implements
3120 to always fail with ENOSYS. Some functions are actually named
3121 something starting with __ and the normal name is an alias. */
3122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3123 choke me
3124 #else
3125 $ac_func();
3126 #endif
3128 ; return 0; }
3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3131 rm -rf conftest*
3132 eval "ac_cv_func_$ac_func=yes"
3133 else
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3136 rm -rf conftest*
3137 eval "ac_cv_func_$ac_func=no"
3139 rm -f conftest*
3142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3143 echo "$ac_t""yes" 1>&6
3144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3145 cat >> confdefs.h <<EOF
3146 #define $ac_tr_func 1
3149 else
3150 echo "$ac_t""no" 1>&6
3152 done
3155 for ac_func in gethostbyname_r
3157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_func" >&5
3159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3161 else
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 /* System header to define __stub macros and hopefully few prototypes,
3166 which can conflict with char $ac_func(); below. */
3167 #include <assert.h>
3168 /* Override any gcc2 internal prototype to avoid an error. */
3169 /* We use char because int might match the return type of a gcc2
3170 builtin and then its argument prototype would still apply. */
3171 char $ac_func();
3173 int main() {
3175 /* The GNU C library defines this for functions which it implements
3176 to always fail with ENOSYS. Some functions are actually named
3177 something starting with __ and the normal name is an alias. */
3178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3179 choke me
3180 #else
3181 $ac_func();
3182 #endif
3184 ; return 0; }
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3187 rm -rf conftest*
3188 eval "ac_cv_func_$ac_func=yes"
3189 else
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 rm -rf conftest*
3193 eval "ac_cv_func_$ac_func=no"
3195 rm -f conftest*
3198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3199 echo "$ac_t""yes" 1>&6
3200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3201 cat >> confdefs.h <<EOF
3202 #define $ac_tr_func 1
3205 cat >> confdefs.h <<\EOF
3206 #define HAVE_GETHOSTBYNAME_R 1
3209 # There are two different kinds of gethostbyname_r.
3210 # We look for the one that returns `int'.
3211 # Hopefully this check is robust enough.
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <netdb.h>
3217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3218 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3219 rm -rf conftest*
3221 cat >> confdefs.h <<\EOF
3222 #define GETHOSTBYNAME_R_RETURNS_INT 1
3226 rm -f conftest*
3229 case " $GCINCS " in
3230 *" -D_REENTRANT "*) ;;
3232 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3233 echo "configure:3234: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3234 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3236 else
3238 ac_ext=C
3239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3240 ac_cpp='$CXXCPP $CPPFLAGS'
3241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3243 cross_compiling=$ac_cv_prog_cxx_cross
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #include <netdb.h>
3249 int main() {
3250 gethostbyname_r("", 0, 0);
3251 ; return 0; }
3253 if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3254 rm -rf conftest*
3255 libjava_cv_gethostbyname_r_needs_reentrant=no
3256 else
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 rm -rf conftest*
3260 CPPFLAGS_SAVE="$CPPFLAGS"
3261 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #include <netdb.h>
3266 int main() {
3267 gethostbyname_r("", 0, 0);
3268 ; return 0; }
3270 if { (eval echo configure:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3271 rm -rf conftest*
3272 libjava_cv_gethostbyname_r_needs_reentrant=yes
3273 else
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 rm -rf conftest*
3277 libjava_cv_gethostbyname_r_needs_reentrant=fail
3279 rm -f conftest*
3280 CPPFLAGS="$CPPFLAGS_SAVE"
3283 rm -f conftest*
3284 ac_ext=c
3285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3289 cross_compiling=$ac_cv_prog_cc_cross
3294 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3295 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3296 cat >> confdefs.h <<\EOF
3297 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3302 esac
3304 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3305 echo "configure:3306: checking for struct hostent_data" >&5
3306 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3308 else
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3313 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3314 # define _REENTRANT 1
3315 #endif
3316 #include <netdb.h>
3317 int main() {
3318 struct hostent_data data;
3319 ; return 0; }
3321 if { (eval echo configure:3322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3322 rm -rf conftest*
3323 libjava_cv_struct_hostent_data=yes
3324 else
3325 echo "configure: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3327 rm -rf conftest*
3328 libjava_cv_struct_hostent_data=no
3330 rm -f conftest*
3333 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3334 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3335 cat >> confdefs.h <<\EOF
3336 #define HAVE_STRUCT_HOSTENT_DATA 1
3341 else
3342 echo "$ac_t""no" 1>&6
3344 done
3347 for ac_func in gethostbyaddr_r
3349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_func" >&5
3351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3353 else
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* System header to define __stub macros and hopefully few prototypes,
3358 which can conflict with char $ac_func(); below. */
3359 #include <assert.h>
3360 /* Override any gcc2 internal prototype to avoid an error. */
3361 /* We use char because int might match the return type of a gcc2
3362 builtin and then its argument prototype would still apply. */
3363 char $ac_func();
3365 int main() {
3367 /* The GNU C library defines this for functions which it implements
3368 to always fail with ENOSYS. Some functions are actually named
3369 something starting with __ and the normal name is an alias. */
3370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3371 choke me
3372 #else
3373 $ac_func();
3374 #endif
3376 ; return 0; }
3378 if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3379 rm -rf conftest*
3380 eval "ac_cv_func_$ac_func=yes"
3381 else
3382 echo "configure: failed program was:" >&5
3383 cat conftest.$ac_ext >&5
3384 rm -rf conftest*
3385 eval "ac_cv_func_$ac_func=no"
3387 rm -f conftest*
3390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3391 echo "$ac_t""yes" 1>&6
3392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3393 cat >> confdefs.h <<EOF
3394 #define $ac_tr_func 1
3397 cat >> confdefs.h <<\EOF
3398 #define HAVE_GETHOSTBYADDR_R 1
3401 # There are two different kinds of gethostbyaddr_r.
3402 # We look for the one that returns `int'.
3403 # Hopefully this check is robust enough.
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <netdb.h>
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3411 rm -rf conftest*
3413 cat >> confdefs.h <<\EOF
3414 #define GETHOSTBYADDR_R_RETURNS_INT 1
3418 rm -f conftest*
3420 else
3421 echo "$ac_t""no" 1>&6
3423 done
3426 for ac_func in gethostname
3428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3429 echo "configure:3430: checking for $ac_func" >&5
3430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432 else
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 /* System header to define __stub macros and hopefully few prototypes,
3437 which can conflict with char $ac_func(); below. */
3438 #include <assert.h>
3439 /* Override any gcc2 internal prototype to avoid an error. */
3440 /* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3442 char $ac_func();
3444 int main() {
3446 /* The GNU C library defines this for functions which it implements
3447 to always fail with ENOSYS. Some functions are actually named
3448 something starting with __ and the normal name is an alias. */
3449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3450 choke me
3451 #else
3452 $ac_func();
3453 #endif
3455 ; return 0; }
3457 if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3458 rm -rf conftest*
3459 eval "ac_cv_func_$ac_func=yes"
3460 else
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3463 rm -rf conftest*
3464 eval "ac_cv_func_$ac_func=no"
3466 rm -f conftest*
3469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3472 cat >> confdefs.h <<EOF
3473 #define $ac_tr_func 1
3476 cat >> confdefs.h <<\EOF
3477 #define HAVE_GETHOSTNAME 1
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <unistd.h>
3485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486 egrep "gethostname" >/dev/null 2>&1; then
3487 rm -rf conftest*
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_GETHOSTNAME_DECL 1
3494 rm -f conftest*
3496 else
3497 echo "$ac_t""no" 1>&6
3499 done
3502 # Look for these functions in the thread library, but only bother
3503 # if using POSIX threads.
3504 if test "$THREADS" = posix; then
3505 save_LIBS="$LIBS"
3506 LIBS="$LIBS $THREADLIBS"
3507 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3508 # E.g., Solaris.
3509 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3512 echo "configure:3513: checking for $ac_func" >&5
3513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3515 else
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 /* System header to define __stub macros and hopefully few prototypes,
3520 which can conflict with char $ac_func(); below. */
3521 #include <assert.h>
3522 /* Override any gcc2 internal prototype to avoid an error. */
3523 /* We use char because int might match the return type of a gcc2
3524 builtin and then its argument prototype would still apply. */
3525 char $ac_func();
3527 int main() {
3529 /* The GNU C library defines this for functions which it implements
3530 to always fail with ENOSYS. Some functions are actually named
3531 something starting with __ and the normal name is an alias. */
3532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3533 choke me
3534 #else
3535 $ac_func();
3536 #endif
3538 ; return 0; }
3540 if { (eval echo configure:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3541 rm -rf conftest*
3542 eval "ac_cv_func_$ac_func=yes"
3543 else
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3546 rm -rf conftest*
3547 eval "ac_cv_func_$ac_func=no"
3549 rm -f conftest*
3552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3553 echo "$ac_t""yes" 1>&6
3554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3555 cat >> confdefs.h <<EOF
3556 #define $ac_tr_func 1
3559 else
3560 echo "$ac_t""no" 1>&6
3562 done
3565 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3566 # Solaris 7 the name librt is preferred.
3567 for ac_func in sched_yield
3569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3570 echo "configure:3571: checking for $ac_func" >&5
3571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3573 else
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 /* System header to define __stub macros and hopefully few prototypes,
3578 which can conflict with char $ac_func(); below. */
3579 #include <assert.h>
3580 /* Override any gcc2 internal prototype to avoid an error. */
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3583 char $ac_func();
3585 int main() {
3587 /* The GNU C library defines this for functions which it implements
3588 to always fail with ENOSYS. Some functions are actually named
3589 something starting with __ and the normal name is an alias. */
3590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3591 choke me
3592 #else
3593 $ac_func();
3594 #endif
3596 ; return 0; }
3598 if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3599 rm -rf conftest*
3600 eval "ac_cv_func_$ac_func=yes"
3601 else
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3604 rm -rf conftest*
3605 eval "ac_cv_func_$ac_func=no"
3607 rm -f conftest*
3610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3611 echo "$ac_t""yes" 1>&6
3612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3613 cat >> confdefs.h <<EOF
3614 #define $ac_tr_func 1
3617 else
3618 echo "$ac_t""no" 1>&6
3619 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3620 echo "configure:3621: checking for sched_yield in -lrt" >&5
3621 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3624 else
3625 ac_save_LIBS="$LIBS"
3626 LIBS="-lrt $LIBS"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3633 char sched_yield();
3635 int main() {
3636 sched_yield()
3637 ; return 0; }
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3640 rm -rf conftest*
3641 eval "ac_cv_lib_$ac_lib_var=yes"
3642 else
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3645 rm -rf conftest*
3646 eval "ac_cv_lib_$ac_lib_var=no"
3648 rm -f conftest*
3649 LIBS="$ac_save_LIBS"
3652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3653 echo "$ac_t""yes" 1>&6
3655 cat >> confdefs.h <<\EOF
3656 #define HAVE_SCHED_YIELD 1
3659 THREADLIBS="$THREADLIBS -lrt"
3660 THREADSPEC="$THREADSPEC -lrt"
3661 else
3662 echo "$ac_t""no" 1>&6
3664 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3665 echo "configure:3666: checking for sched_yield in -lposix4" >&5
3666 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3669 else
3670 ac_save_LIBS="$LIBS"
3671 LIBS="-lposix4 $LIBS"
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3678 char sched_yield();
3680 int main() {
3681 sched_yield()
3682 ; return 0; }
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3685 rm -rf conftest*
3686 eval "ac_cv_lib_$ac_lib_var=yes"
3687 else
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 rm -rf conftest*
3691 eval "ac_cv_lib_$ac_lib_var=no"
3693 rm -f conftest*
3694 LIBS="$ac_save_LIBS"
3697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3700 cat >> confdefs.h <<\EOF
3701 #define HAVE_SCHED_YIELD 1
3704 THREADLIBS="$THREADLIBS -lposix4"
3705 THREADSPEC="$THREADSPEC -lposix4"
3706 else
3707 echo "$ac_t""no" 1>&6
3713 done
3715 LIBS="$save_LIBS"
3717 # We can save a little space at runtime if the mutex has m_count
3718 # or __m_count. This is a nice hack for Linux.
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 #include <pthread.h>
3723 int main() {
3725 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3727 ; return 0; }
3729 if { (eval echo configure:3730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3730 rm -rf conftest*
3731 cat >> confdefs.h <<\EOF
3732 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3735 else
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 rm -rf conftest*
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 #include <pthread.h>
3744 int main() {
3746 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3748 ; return 0; }
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751 rm -rf conftest*
3752 cat >> confdefs.h <<\EOF
3753 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3756 else
3757 echo "configure: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3760 rm -f conftest*
3762 rm -f conftest*
3765 # We require a way to get the time.
3766 time_found=no
3767 for ac_func in gettimeofday time ftime
3769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3770 echo "configure:3771: checking for $ac_func" >&5
3771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773 else
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 /* System header to define __stub macros and hopefully few prototypes,
3778 which can conflict with char $ac_func(); below. */
3779 #include <assert.h>
3780 /* Override any gcc2 internal prototype to avoid an error. */
3781 /* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3783 char $ac_func();
3785 int main() {
3787 /* The GNU C library defines this for functions which it implements
3788 to always fail with ENOSYS. Some functions are actually named
3789 something starting with __ and the normal name is an alias. */
3790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3791 choke me
3792 #else
3793 $ac_func();
3794 #endif
3796 ; return 0; }
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3799 rm -rf conftest*
3800 eval "ac_cv_func_$ac_func=yes"
3801 else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -rf conftest*
3805 eval "ac_cv_func_$ac_func=no"
3807 rm -f conftest*
3810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3813 cat >> confdefs.h <<EOF
3814 #define $ac_tr_func 1
3816 time_found=yes
3817 else
3818 echo "$ac_t""no" 1>&6
3820 done
3822 if test "$time_found" = no; then
3823 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3826 for ac_func in memmove
3828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_func" >&5
3830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3832 else
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char $ac_func(); below. */
3838 #include <assert.h>
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3842 char $ac_func();
3844 int main() {
3846 /* The GNU C library defines this for functions which it implements
3847 to always fail with ENOSYS. Some functions are actually named
3848 something starting with __ and the normal name is an alias. */
3849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3850 choke me
3851 #else
3852 $ac_func();
3853 #endif
3855 ; return 0; }
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3858 rm -rf conftest*
3859 eval "ac_cv_func_$ac_func=yes"
3860 else
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3863 rm -rf conftest*
3864 eval "ac_cv_func_$ac_func=no"
3866 rm -f conftest*
3869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3872 cat >> confdefs.h <<EOF
3873 #define $ac_tr_func 1
3876 else
3877 echo "$ac_t""no" 1>&6
3879 done
3882 # We require memcpy.
3883 memcpy_found=no
3884 for ac_func in memcpy
3886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3887 echo "configure:3888: checking for $ac_func" >&5
3888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3890 else
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 /* System header to define __stub macros and hopefully few prototypes,
3895 which can conflict with char $ac_func(); below. */
3896 #include <assert.h>
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3900 char $ac_func();
3902 int main() {
3904 /* The GNU C library defines this for functions which it implements
3905 to always fail with ENOSYS. Some functions are actually named
3906 something starting with __ and the normal name is an alias. */
3907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3908 choke me
3909 #else
3910 $ac_func();
3911 #endif
3913 ; return 0; }
3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3916 rm -rf conftest*
3917 eval "ac_cv_func_$ac_func=yes"
3918 else
3919 echo "configure: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3921 rm -rf conftest*
3922 eval "ac_cv_func_$ac_func=no"
3924 rm -f conftest*
3927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3930 cat >> confdefs.h <<EOF
3931 #define $ac_tr_func 1
3933 memcpy_found=yes
3934 else
3935 echo "$ac_t""no" 1>&6
3937 done
3939 if test "$memcpy_found" = no; then
3940 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3943 # Some library-finding code we stole from Tcl.
3944 #--------------------------------------------------------------------
3945 # Check for the existence of the -lsocket and -lnsl libraries.
3946 # The order here is important, so that they end up in the right
3947 # order in the command line generated by make. Here are some
3948 # special considerations:
3949 # 1. Use "connect" and "accept" to check for -lsocket, and
3950 # "gethostbyname" to check for -lnsl.
3951 # 2. Use each function name only once: can't redo a check because
3952 # autoconf caches the results of the last check and won't redo it.
3953 # 3. Use -lnsl and -lsocket only if they supply procedures that
3954 # aren't already present in the normal libraries. This is because
3955 # IRIX 5.2 has libraries, but they aren't needed and they're
3956 # bogus: they goof up name resolution if used.
3957 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3958 # To get around this problem, check for both libraries together
3959 # if -lsocket doesn't work by itself.
3960 #--------------------------------------------------------------------
3962 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3963 echo "configure:3964: checking for socket libraries" >&5
3964 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3966 else
3967 gcj_cv_lib_sockets=
3968 gcj_checkBoth=0
3969 unset ac_cv_func_connect
3970 echo $ac_n "checking for connect""... $ac_c" 1>&6
3971 echo "configure:3972: checking for connect" >&5
3972 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3974 else
3975 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3978 /* System header to define __stub macros and hopefully few prototypes,
3979 which can conflict with char connect(); below. */
3980 #include <assert.h>
3981 /* Override any gcc2 internal prototype to avoid an error. */
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3984 char connect();
3986 int main() {
3988 /* The GNU C library defines this for functions which it implements
3989 to always fail with ENOSYS. Some functions are actually named
3990 something starting with __ and the normal name is an alias. */
3991 #if defined (__stub_connect) || defined (__stub___connect)
3992 choke me
3993 #else
3994 connect();
3995 #endif
3997 ; return 0; }
3999 if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 rm -rf conftest*
4001 eval "ac_cv_func_connect=yes"
4002 else
4003 echo "configure: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4005 rm -rf conftest*
4006 eval "ac_cv_func_connect=no"
4008 rm -f conftest*
4011 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4012 echo "$ac_t""yes" 1>&6
4013 gcj_checkSocket=0
4014 else
4015 echo "$ac_t""no" 1>&6
4016 gcj_checkSocket=1
4019 if test "$gcj_checkSocket" = 1; then
4020 unset ac_cv_func_connect
4021 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4022 echo "configure:4023: checking for main in -lsocket" >&5
4023 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4026 else
4027 ac_save_LIBS="$LIBS"
4028 LIBS="-lsocket $LIBS"
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4033 int main() {
4034 main()
4035 ; return 0; }
4037 if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4038 rm -rf conftest*
4039 eval "ac_cv_lib_$ac_lib_var=yes"
4040 else
4041 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4043 rm -rf conftest*
4044 eval "ac_cv_lib_$ac_lib_var=no"
4046 rm -f conftest*
4047 LIBS="$ac_save_LIBS"
4050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4051 echo "$ac_t""yes" 1>&6
4052 gcj_cv_lib_sockets="-lsocket"
4053 else
4054 echo "$ac_t""no" 1>&6
4055 gcj_checkBoth=1
4059 if test "$gcj_checkBoth" = 1; then
4060 gcj_oldLibs=$LIBS
4061 LIBS="$LIBS -lsocket -lnsl"
4062 unset ac_cv_func_accept
4063 echo $ac_n "checking for accept""... $ac_c" 1>&6
4064 echo "configure:4065: checking for accept" >&5
4065 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4067 else
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char accept(); below. */
4073 #include <assert.h>
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4077 char accept();
4079 int main() {
4081 /* The GNU C library defines this for functions which it implements
4082 to always fail with ENOSYS. Some functions are actually named
4083 something starting with __ and the normal name is an alias. */
4084 #if defined (__stub_accept) || defined (__stub___accept)
4085 choke me
4086 #else
4087 accept();
4088 #endif
4090 ; return 0; }
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 rm -rf conftest*
4094 eval "ac_cv_func_accept=yes"
4095 else
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4098 rm -rf conftest*
4099 eval "ac_cv_func_accept=no"
4101 rm -f conftest*
4104 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 gcj_checkNsl=0
4107 gcj_cv_lib_sockets="-lsocket -lnsl"
4108 else
4109 echo "$ac_t""no" 1>&6
4112 unset ac_cv_func_accept
4113 LIBS=$gcj_oldLibs
4115 unset ac_cv_func_gethostbyname
4116 gcj_oldLibs=$LIBS
4117 LIBS="$LIBS $gcj_cv_lib_sockets"
4118 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4119 echo "configure:4120: checking for gethostbyname" >&5
4120 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4122 else
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 /* System header to define __stub macros and hopefully few prototypes,
4127 which can conflict with char gethostbyname(); below. */
4128 #include <assert.h>
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 /* We use char because int might match the return type of a gcc2
4131 builtin and then its argument prototype would still apply. */
4132 char gethostbyname();
4134 int main() {
4136 /* The GNU C library defines this for functions which it implements
4137 to always fail with ENOSYS. Some functions are actually named
4138 something starting with __ and the normal name is an alias. */
4139 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4140 choke me
4141 #else
4142 gethostbyname();
4143 #endif
4145 ; return 0; }
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4148 rm -rf conftest*
4149 eval "ac_cv_func_gethostbyname=yes"
4150 else
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4153 rm -rf conftest*
4154 eval "ac_cv_func_gethostbyname=no"
4156 rm -f conftest*
4159 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4162 else
4163 echo "$ac_t""no" 1>&6
4164 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4165 echo "configure:4166: checking for main in -lnsl" >&5
4166 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4169 else
4170 ac_save_LIBS="$LIBS"
4171 LIBS="-lnsl $LIBS"
4172 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4176 int main() {
4177 main()
4178 ; return 0; }
4180 if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4181 rm -rf conftest*
4182 eval "ac_cv_lib_$ac_lib_var=yes"
4183 else
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4186 rm -rf conftest*
4187 eval "ac_cv_lib_$ac_lib_var=no"
4189 rm -f conftest*
4190 LIBS="$ac_save_LIBS"
4193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4194 echo "$ac_t""yes" 1>&6
4195 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4196 else
4197 echo "$ac_t""no" 1>&6
4202 unset ac_cv_func_gethostbyname
4203 LIBS=$gcj_oldLIBS
4207 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4208 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4210 if test "$with_system_zlib" = yes; then
4211 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4212 echo "configure:4213: checking for deflate in -lz" >&5
4213 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4216 else
4217 ac_save_LIBS="$LIBS"
4218 LIBS="-lz $LIBS"
4219 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4222 /* Override any gcc2 internal prototype to avoid an error. */
4223 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4225 char deflate();
4227 int main() {
4228 deflate()
4229 ; return 0; }
4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4232 rm -rf conftest*
4233 eval "ac_cv_lib_$ac_lib_var=yes"
4234 else
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4237 rm -rf conftest*
4238 eval "ac_cv_lib_$ac_lib_var=no"
4240 rm -f conftest*
4241 LIBS="$ac_save_LIBS"
4244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 ZLIBSPEC=-lz
4247 else
4248 echo "$ac_t""no" 1>&6
4249 ZLIBSPEC=-lzgcj
4252 else
4253 ZLIBSPEC=-lzgcj
4256 # On Solaris, and maybe other architectures, the Boehm collector
4257 # requires -ldl.
4258 if test "$GC" = boehm; then
4259 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4260 echo "configure:4261: checking for main in -ldl" >&5
4261 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4264 else
4265 ac_save_LIBS="$LIBS"
4266 LIBS="-ldl $LIBS"
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4271 int main() {
4272 main()
4273 ; return 0; }
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4276 rm -rf conftest*
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4278 else
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4281 rm -rf conftest*
4282 eval "ac_cv_lib_$ac_lib_var=no"
4284 rm -f conftest*
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4290 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4291 else
4292 echo "$ac_t""no" 1>&6
4297 if test -d "$libgcj_basedir/../gcc/java"; then
4298 GCJ=
4299 else
4300 CANADIAN=yes
4301 NULL_TARGET=yes
4302 GCJ=gcj
4306 ZLIBS=
4307 ZDEPS=
4308 ZINCS=
4309 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4310 # We include the path to the zlib build directory.
4311 # See Makefile.am to understand why.
4312 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4313 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4314 ZINCS='-I$(top_srcdir)/../zlib'
4315 else
4316 ZLIBS="$ZLIBSPEC"
4325 if test "$CANADIAN" = yes; then
4326 CANADIAN_TRUE=
4327 CANADIAN_FALSE='#'
4328 else
4329 CANADIAN_TRUE='#'
4330 CANADIAN_FALSE=
4334 if test "$NULL_TARGET" = yes; then
4335 NULL_TARGET_TRUE=
4336 NULL_TARGET_FALSE='#'
4337 else
4338 NULL_TARGET_TRUE='#'
4339 NULL_TARGET_FALSE=
4343 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
4344 NATIVE_TRUE=
4345 NATIVE_FALSE='#'
4346 else
4347 NATIVE_TRUE='#'
4348 NATIVE_FALSE=
4352 if test -z "$with_cross_host"; then
4353 USE_LIBDIR_TRUE=
4354 USE_LIBDIR_FALSE='#'
4355 else
4356 USE_LIBDIR_TRUE='#'
4357 USE_LIBDIR_FALSE=
4361 # Determine gcj version number.
4362 if test "$GCJ" = ""; then
4363 if test -z "${with_multisubdir}"; then
4364 builddotdot=.
4365 else
4367 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4370 dir="`cd ${builddotdot}/../../gcc && pwd`"
4371 GCJ="$dir/gcj -B$dir/"
4374 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4376 cat >> confdefs.h <<EOF
4377 #define GCJVERSION "$gcjvers"
4381 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4382 # we want to continue to support that version.
4383 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4384 echo "configure:4385: checking whether gcj supports -fuse-divide-subroutine" >&5
4385 cat > conftest.java << 'END'
4386 public class conftest { }
4388 use_fuse=yes
4389 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
4390 conftest.java > /dev/null 2>&1 \
4391 || use_fuse=no
4392 rm -f conftest.java
4393 if test "$use_fuse" = no; then
4394 DIVIDESPEC=
4396 echo "$ac_t""$use_fuse" 1>&6
4400 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
4402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4404 echo "configure:4405: checking for $ac_hdr" >&5
4405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4407 else
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 #include <$ac_hdr>
4413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4414 { (eval echo configure:4415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4416 if test -z "$ac_err"; then
4417 rm -rf conftest*
4418 eval "ac_cv_header_$ac_safe=yes"
4419 else
4420 echo "$ac_err" >&5
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4423 rm -rf conftest*
4424 eval "ac_cv_header_$ac_safe=no"
4426 rm -f conftest*
4428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4429 echo "$ac_t""yes" 1>&6
4430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4431 cat >> confdefs.h <<EOF
4432 #define $ac_tr_hdr 1
4435 else
4436 echo "$ac_t""no" 1>&6
4438 done
4440 for ac_hdr in dirent.h
4442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4444 echo "configure:4445: checking for $ac_hdr" >&5
4445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4447 else
4448 cat > conftest.$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4451 #include <$ac_hdr>
4453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4454 { (eval echo configure:4455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4456 if test -z "$ac_err"; then
4457 rm -rf conftest*
4458 eval "ac_cv_header_$ac_safe=yes"
4459 else
4460 echo "$ac_err" >&5
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 rm -rf conftest*
4464 eval "ac_cv_header_$ac_safe=no"
4466 rm -f conftest*
4468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4471 cat >> confdefs.h <<EOF
4472 #define $ac_tr_hdr 1
4475 else
4476 echo "$ac_t""no" 1>&6
4478 done
4481 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4482 echo "configure:4483: checking for ANSI C header files" >&5
4483 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4485 else
4486 cat > conftest.$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4489 #include <stdlib.h>
4490 #include <stdarg.h>
4491 #include <string.h>
4492 #include <float.h>
4494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497 if test -z "$ac_err"; then
4498 rm -rf conftest*
4499 ac_cv_header_stdc=yes
4500 else
4501 echo "$ac_err" >&5
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4504 rm -rf conftest*
4505 ac_cv_header_stdc=no
4507 rm -f conftest*
4509 if test $ac_cv_header_stdc = yes; then
4510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 #include <string.h>
4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 egrep "memchr" >/dev/null 2>&1; then
4519 else
4520 rm -rf conftest*
4521 ac_cv_header_stdc=no
4523 rm -f conftest*
4527 if test $ac_cv_header_stdc = yes; then
4528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4532 #include <stdlib.h>
4534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4535 egrep "free" >/dev/null 2>&1; then
4537 else
4538 rm -rf conftest*
4539 ac_cv_header_stdc=no
4541 rm -f conftest*
4545 if test $ac_cv_header_stdc = yes; then
4546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4547 if test "$cross_compiling" = yes; then
4549 else
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 #include <ctype.h>
4554 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4555 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 int main () { int i; for (i = 0; i < 256; i++)
4558 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4559 exit (0); }
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4563 then
4565 else
4566 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4568 rm -fr conftest*
4569 ac_cv_header_stdc=no
4571 rm -fr conftest*
4577 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4578 if test $ac_cv_header_stdc = yes; then
4579 cat >> confdefs.h <<\EOF
4580 #define STDC_HEADERS 1
4585 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4586 echo "configure:4587: checking for ssize_t" >&5
4587 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4589 else
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <sys/types.h>
4594 #if STDC_HEADERS
4595 #include <stdlib.h>
4596 #include <stddef.h>
4597 #endif
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4601 rm -rf conftest*
4602 ac_cv_type_ssize_t=yes
4603 else
4604 rm -rf conftest*
4605 ac_cv_type_ssize_t=no
4607 rm -f conftest*
4610 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4611 if test $ac_cv_type_ssize_t = no; then
4612 cat >> confdefs.h <<\EOF
4613 #define ssize_t int
4619 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4620 echo "configure:4621: checking for in_addr_t" >&5
4621 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 #include <sys/types.h>
4625 #if STDC_HEADERS
4626 #include <stdlib.h>
4627 #include <stddef.h>
4628 #endif
4629 #if HAVE_NETINET_IN_H
4630 #include <netinet/in.h>
4631 #endif
4632 int main() {
4633 in_addr_t foo;
4634 ; return 0; }
4636 if { (eval echo configure:4637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4637 rm -rf conftest*
4638 cat >> confdefs.h <<\EOF
4639 #define HAVE_IN_ADDR_T 1
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4646 rm -rf conftest*
4647 echo "$ac_t""no" 1>&6
4649 rm -f conftest*
4651 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4652 echo "configure:4653: checking whether struct ip_mreq is in netinet/in.h" >&5
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #include <netinet/in.h>
4657 int main() {
4658 struct ip_mreq mreq;
4659 ; return 0; }
4661 if { (eval echo configure:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4662 rm -rf conftest*
4663 cat >> confdefs.h <<\EOF
4664 #define HAVE_STRUCT_IP_MREQ 1
4667 echo "$ac_t""yes" 1>&6
4668 else
4669 echo "configure: failed program was:" >&5
4670 cat conftest.$ac_ext >&5
4671 rm -rf conftest*
4672 echo "$ac_t""no" 1>&6
4674 rm -f conftest*
4676 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4677 echo "configure:4678: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 #include <netinet/in.h>
4682 int main() {
4683 struct sockaddr_in6 addr6;
4684 ; return 0; }
4686 if { (eval echo configure:4687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4687 rm -rf conftest*
4688 cat >> confdefs.h <<\EOF
4689 #define HAVE_INET6 1
4692 echo "$ac_t""yes" 1>&6
4693 else
4694 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 rm -rf conftest*
4697 echo "$ac_t""no" 1>&6
4699 rm -f conftest*
4701 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4702 echo "configure:4703: checking for socklen_t in sys/socket.h" >&5
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 #include <sys/socket.h>
4707 int main() {
4708 socklen_t x = 5;
4709 ; return 0; }
4711 if { (eval echo configure:4712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4712 rm -rf conftest*
4713 cat >> confdefs.h <<\EOF
4714 #define HAVE_SOCKLEN_T 1
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 rm -rf conftest*
4722 echo "$ac_t""no" 1>&6
4724 rm -f conftest*
4726 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4727 echo "configure:4728: checking for tm_gmtoff in struct tm" >&5
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 #include <time.h>
4732 int main() {
4733 struct tm tim; tim.tm_gmtoff = 0;
4734 ; return 0; }
4736 if { (eval echo configure:4737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4737 rm -rf conftest*
4738 cat >> confdefs.h <<\EOF
4739 #define STRUCT_TM_HAS_GMTOFF 1
4742 echo "$ac_t""yes" 1>&6
4743 else
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 rm -rf conftest*
4747 echo "$ac_t""no" 1>&6
4748 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4749 echo "configure:4750: checking for global timezone variable" >&5
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 #include <time.h>
4754 int main() {
4755 long z2 = timezone;
4756 ; return 0; }
4758 if { (eval echo configure:4759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4759 rm -rf conftest*
4760 cat >> confdefs.h <<\EOF
4761 #define HAVE_TIMEZONE 1
4764 echo "$ac_t""yes" 1>&6
4765 else
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4768 rm -rf conftest*
4769 echo "$ac_t""no" 1>&6
4771 rm -f conftest*
4773 rm -f conftest*
4775 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4776 # for constant arguments. Useless!
4777 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4778 echo "configure:4779: checking for working alloca.h" >&5
4779 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4781 else
4782 cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4785 #include <alloca.h>
4786 int main() {
4787 char *p = alloca(2 * sizeof(int));
4788 ; return 0; }
4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 rm -rf conftest*
4792 ac_cv_header_alloca_h=yes
4793 else
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4796 rm -rf conftest*
4797 ac_cv_header_alloca_h=no
4799 rm -f conftest*
4802 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4803 if test $ac_cv_header_alloca_h = yes; then
4804 cat >> confdefs.h <<\EOF
4805 #define HAVE_ALLOCA_H 1
4810 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4811 echo "configure:4812: checking for alloca" >&5
4812 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4814 else
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4819 #ifdef __GNUC__
4820 # define alloca __builtin_alloca
4821 #else
4822 # ifdef _MSC_VER
4823 # include <malloc.h>
4824 # define alloca _alloca
4825 # else
4826 # if HAVE_ALLOCA_H
4827 # include <alloca.h>
4828 # else
4829 # ifdef _AIX
4830 #pragma alloca
4831 # else
4832 # ifndef alloca /* predefined by HP cc +Olibcalls */
4833 char *alloca ();
4834 # endif
4835 # endif
4836 # endif
4837 # endif
4838 #endif
4840 int main() {
4841 char *p = (char *) alloca(1);
4842 ; return 0; }
4844 if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4845 rm -rf conftest*
4846 ac_cv_func_alloca_works=yes
4847 else
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4850 rm -rf conftest*
4851 ac_cv_func_alloca_works=no
4853 rm -f conftest*
4856 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4857 if test $ac_cv_func_alloca_works = yes; then
4858 cat >> confdefs.h <<\EOF
4859 #define HAVE_ALLOCA 1
4864 if test $ac_cv_func_alloca_works = no; then
4865 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4866 # that cause trouble. Some versions do not even contain alloca or
4867 # contain a buggy version. If you still want to use their alloca,
4868 # use ar to extract alloca.o from them instead of compiling alloca.c.
4869 ALLOCA=alloca.${ac_objext}
4870 cat >> confdefs.h <<\EOF
4871 #define C_ALLOCA 1
4875 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4876 echo "configure:4877: checking whether alloca needs Cray hooks" >&5
4877 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4878 echo $ac_n "(cached) $ac_c" 1>&6
4879 else
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 #if defined(CRAY) && ! defined(CRAY2)
4884 webecray
4885 #else
4886 wenotbecray
4887 #endif
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 egrep "webecray" >/dev/null 2>&1; then
4892 rm -rf conftest*
4893 ac_cv_os_cray=yes
4894 else
4895 rm -rf conftest*
4896 ac_cv_os_cray=no
4898 rm -f conftest*
4902 echo "$ac_t""$ac_cv_os_cray" 1>&6
4903 if test $ac_cv_os_cray = yes; then
4904 for ac_func in _getb67 GETB67 getb67; do
4905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4906 echo "configure:4907: checking for $ac_func" >&5
4907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4909 else
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* System header to define __stub macros and hopefully few prototypes,
4914 which can conflict with char $ac_func(); below. */
4915 #include <assert.h>
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4919 char $ac_func();
4921 int main() {
4923 /* The GNU C library defines this for functions which it implements
4924 to always fail with ENOSYS. Some functions are actually named
4925 something starting with __ and the normal name is an alias. */
4926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4927 choke me
4928 #else
4929 $ac_func();
4930 #endif
4932 ; return 0; }
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4935 rm -rf conftest*
4936 eval "ac_cv_func_$ac_func=yes"
4937 else
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4940 rm -rf conftest*
4941 eval "ac_cv_func_$ac_func=no"
4943 rm -f conftest*
4946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4947 echo "$ac_t""yes" 1>&6
4948 cat >> confdefs.h <<EOF
4949 #define CRAY_STACKSEG_END $ac_func
4952 break
4953 else
4954 echo "$ac_t""no" 1>&6
4957 done
4960 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4961 echo "configure:4962: checking stack direction for C alloca" >&5
4962 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4964 else
4965 if test "$cross_compiling" = yes; then
4966 ac_cv_c_stack_direction=0
4967 else
4968 cat > conftest.$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4971 find_stack_direction ()
4973 static char *addr = 0;
4974 auto char dummy;
4975 if (addr == 0)
4977 addr = &dummy;
4978 return find_stack_direction ();
4980 else
4981 return (&dummy > addr) ? 1 : -1;
4983 main ()
4985 exit (find_stack_direction() < 0);
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4989 then
4990 ac_cv_c_stack_direction=1
4991 else
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 rm -fr conftest*
4995 ac_cv_c_stack_direction=-1
4997 rm -fr conftest*
5002 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5003 cat >> confdefs.h <<EOF
5004 #define STACK_DIRECTION $ac_cv_c_stack_direction
5010 for ac_prog in perl
5012 # Extract the first word of "$ac_prog", so it can be a program name with args.
5013 set dummy $ac_prog; ac_word=$2
5014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5015 echo "configure:5016: checking for $ac_word" >&5
5016 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5018 else
5019 if test -n "$PERL"; then
5020 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5021 else
5022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5023 ac_dummy="$PATH"
5024 for ac_dir in $ac_dummy; do
5025 test -z "$ac_dir" && ac_dir=.
5026 if test -f $ac_dir/$ac_word; then
5027 ac_cv_prog_PERL="$ac_prog"
5028 break
5030 done
5031 IFS="$ac_save_ifs"
5034 PERL="$ac_cv_prog_PERL"
5035 if test -n "$PERL"; then
5036 echo "$ac_t""$PERL" 1>&6
5037 else
5038 echo "$ac_t""no" 1>&6
5041 test -n "$PERL" && break
5042 done
5043 test -n "$PERL" || PERL="false"
5046 case "${host}" in
5047 i?86-*-linux*)
5048 SIGNAL_HANDLER=include/i386-signal.h
5050 sparc-sun-solaris*)
5051 SIGNAL_HANDLER=include/sparc-signal.h
5054 SIGNAL_HANDLER=include/default-signal.h
5056 esac
5060 if test "${multilib}" = "yes"; then
5061 multilib_arg="--enable-multilib"
5062 else
5063 multilib_arg=
5066 here=`pwd`
5069 trap '' 1 2 15
5070 cat > confcache <<\EOF
5071 # This file is a shell script that caches the results of configure
5072 # tests run on this system so they can be shared between configure
5073 # scripts and configure runs. It is not useful on other systems.
5074 # If it contains results you don't want to keep, you may remove or edit it.
5076 # By default, configure uses ./config.cache as the cache file,
5077 # creating it if it does not exist already. You can give configure
5078 # the --cache-file=FILE option to use a different cache file; that is
5079 # what configure does when it calls configure scripts in
5080 # subdirectories, so they share the cache.
5081 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5082 # config.status only pays attention to the cache file if you give it the
5083 # --recheck option to rerun configure.
5086 # The following way of writing the cache mishandles newlines in values,
5087 # but we know of no workaround that is simple, portable, and efficient.
5088 # So, don't put newlines in cache variables' values.
5089 # Ultrix sh set writes to stderr and can't be redirected directly,
5090 # and sets the high bit in the cache file unless we assign to the vars.
5091 (set) 2>&1 |
5092 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5093 *ac_space=\ *)
5094 # `set' does not quote correctly, so add quotes (double-quote substitution
5095 # turns \\\\ into \\, and sed turns \\ into \).
5096 sed -n \
5097 -e "s/'/'\\\\''/g" \
5098 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5101 # `set' quotes correctly as required by POSIX, so do not add quotes.
5102 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5104 esac >> confcache
5105 if cmp -s $cache_file confcache; then
5107 else
5108 if test -w $cache_file; then
5109 echo "updating cache $cache_file"
5110 cat confcache > $cache_file
5111 else
5112 echo "not updating unwritable cache $cache_file"
5115 rm -f confcache
5117 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5120 # Let make expand exec_prefix.
5121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5123 # Any assignment to VPATH causes Sun make to only execute
5124 # the first set of double-colon rules, so remove it if not needed.
5125 # If there is a colon in the path, we need to keep it.
5126 if test "x$srcdir" = x.; then
5127 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5130 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5132 DEFS=-DHAVE_CONFIG_H
5134 # Without the "./", some shells look in PATH for config.status.
5135 : ${CONFIG_STATUS=./config.status}
5137 echo creating $CONFIG_STATUS
5138 rm -f $CONFIG_STATUS
5139 cat > $CONFIG_STATUS <<EOF
5140 #! /bin/sh
5141 # Generated automatically by configure.
5142 # Run this file to recreate the current configuration.
5143 # This directory was configured as follows,
5144 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5146 # $0 $ac_configure_args
5148 # Compiler output produced by configure, useful for debugging
5149 # configure, is in ./config.log if it exists.
5151 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5152 for ac_option
5154 case "\$ac_option" in
5155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5156 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5157 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5158 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5159 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5160 exit 0 ;;
5161 -help | --help | --hel | --he | --h)
5162 echo "\$ac_cs_usage"; exit 0 ;;
5163 *) echo "\$ac_cs_usage"; exit 1 ;;
5164 esac
5165 done
5167 ac_given_srcdir=$srcdir
5168 ac_given_INSTALL="$INSTALL"
5170 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
5172 cat >> $CONFIG_STATUS <<EOF
5174 # Protect against being on the right side of a sed subst in config.status.
5175 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5176 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5177 $ac_vpsub
5178 $extrasub
5179 s%@SHELL@%$SHELL%g
5180 s%@CFLAGS@%$CFLAGS%g
5181 s%@CPPFLAGS@%$CPPFLAGS%g
5182 s%@CXXFLAGS@%$CXXFLAGS%g
5183 s%@FFLAGS@%$FFLAGS%g
5184 s%@DEFS@%$DEFS%g
5185 s%@LDFLAGS@%$LDFLAGS%g
5186 s%@LIBS@%$LIBS%g
5187 s%@exec_prefix@%$exec_prefix%g
5188 s%@prefix@%$prefix%g
5189 s%@program_transform_name@%$program_transform_name%g
5190 s%@bindir@%$bindir%g
5191 s%@sbindir@%$sbindir%g
5192 s%@libexecdir@%$libexecdir%g
5193 s%@datadir@%$datadir%g
5194 s%@sysconfdir@%$sysconfdir%g
5195 s%@sharedstatedir@%$sharedstatedir%g
5196 s%@localstatedir@%$localstatedir%g
5197 s%@libdir@%$libdir%g
5198 s%@includedir@%$includedir%g
5199 s%@oldincludedir@%$oldincludedir%g
5200 s%@infodir@%$infodir%g
5201 s%@mandir@%$mandir%g
5202 s%@host@%$host%g
5203 s%@host_alias@%$host_alias%g
5204 s%@host_cpu@%$host_cpu%g
5205 s%@host_vendor@%$host_vendor%g
5206 s%@host_os@%$host_os%g
5207 s%@target@%$target%g
5208 s%@target_alias@%$target_alias%g
5209 s%@target_cpu@%$target_cpu%g
5210 s%@target_vendor@%$target_vendor%g
5211 s%@target_os@%$target_os%g
5212 s%@build@%$build%g
5213 s%@build_alias@%$build_alias%g
5214 s%@build_cpu@%$build_cpu%g
5215 s%@build_vendor@%$build_vendor%g
5216 s%@build_os@%$build_os%g
5217 s%@libgcj_basedir@%$libgcj_basedir%g
5218 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5219 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5220 s%@INSTALL_DATA@%$INSTALL_DATA%g
5221 s%@PACKAGE@%$PACKAGE%g
5222 s%@VERSION@%$VERSION%g
5223 s%@ACLOCAL@%$ACLOCAL%g
5224 s%@AUTOCONF@%$AUTOCONF%g
5225 s%@AUTOMAKE@%$AUTOMAKE%g
5226 s%@AUTOHEADER@%$AUTOHEADER%g
5227 s%@MAKEINFO@%$MAKEINFO%g
5228 s%@SET_MAKE@%$SET_MAKE%g
5229 s%@CC@%$CC%g
5230 s%@CXX@%$CXX%g
5231 s%@AS@%$AS%g
5232 s%@AR@%$AR%g
5233 s%@RANLIB@%$RANLIB%g
5234 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5235 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5236 s%@MAINT@%$MAINT%g
5237 s%@EXEEXT@%$EXEEXT%g
5238 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5239 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5240 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5241 s%@LD@%$LD%g
5242 s%@NM@%$NM%g
5243 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5244 s%@LN_S@%$LN_S%g
5245 s%@DLLTOOL@%$DLLTOOL%g
5246 s%@LIBTOOL@%$LIBTOOL%g
5247 s%@COMPPATH@%$COMPPATH%g
5248 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5249 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5250 s%@CPP@%$CPP%g
5251 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5252 s%@ZLIBSPEC@%$ZLIBSPEC%g
5253 s%@GCLIBS@%$GCLIBS%g
5254 s%@GCINCS@%$GCINCS%g
5255 s%@GCDEPS@%$GCDEPS%g
5256 s%@GCOBJS@%$GCOBJS%g
5257 s%@GCSPEC@%$GCSPEC%g
5258 s%@THREADLIBS@%$THREADLIBS%g
5259 s%@THREADINCS@%$THREADINCS%g
5260 s%@THREADDEPS@%$THREADDEPS%g
5261 s%@THREADOBJS@%$THREADOBJS%g
5262 s%@THREADSPEC@%$THREADSPEC%g
5263 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5264 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5265 s%@ZLIBS@%$ZLIBS%g
5266 s%@ZDEPS@%$ZDEPS%g
5267 s%@ZINCS@%$ZINCS%g
5268 s%@DIVIDESPEC@%$DIVIDESPEC%g
5269 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5270 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5271 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5272 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5273 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5274 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5275 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5276 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5277 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5278 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5279 s%@ALLOCA@%$ALLOCA%g
5280 s%@PERL@%$PERL%g
5281 s%@here@%$here%g
5283 CEOF
5286 cat >> $CONFIG_STATUS <<\EOF
5288 # Split the substitutions into bite-sized pieces for seds with
5289 # small command number limits, like on Digital OSF/1 and HP-UX.
5290 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5291 ac_file=1 # Number of current file.
5292 ac_beg=1 # First line for current file.
5293 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5294 ac_more_lines=:
5295 ac_sed_cmds=""
5296 while $ac_more_lines; do
5297 if test $ac_beg -gt 1; then
5298 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5299 else
5300 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5302 if test ! -s conftest.s$ac_file; then
5303 ac_more_lines=false
5304 rm -f conftest.s$ac_file
5305 else
5306 if test -z "$ac_sed_cmds"; then
5307 ac_sed_cmds="sed -f conftest.s$ac_file"
5308 else
5309 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5311 ac_file=`expr $ac_file + 1`
5312 ac_beg=$ac_end
5313 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5315 done
5316 if test -z "$ac_sed_cmds"; then
5317 ac_sed_cmds=cat
5321 cat >> $CONFIG_STATUS <<EOF
5323 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5325 cat >> $CONFIG_STATUS <<\EOF
5326 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5328 case "$ac_file" in
5329 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5330 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5331 *) ac_file_in="${ac_file}.in" ;;
5332 esac
5334 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5336 # Remove last slash and all that follows it. Not all systems have dirname.
5337 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5338 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5339 # The file is in a subdirectory.
5340 test ! -d "$ac_dir" && mkdir "$ac_dir"
5341 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5342 # A "../" for each directory in $ac_dir_suffix.
5343 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5344 else
5345 ac_dir_suffix= ac_dots=
5348 case "$ac_given_srcdir" in
5349 .) srcdir=.
5350 if test -z "$ac_dots"; then top_srcdir=.
5351 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5352 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5353 *) # Relative path.
5354 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5355 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5356 esac
5358 case "$ac_given_INSTALL" in
5359 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5360 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5361 esac
5363 echo creating "$ac_file"
5364 rm -f "$ac_file"
5365 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5366 case "$ac_file" in
5367 *Makefile*) ac_comsub="1i\\
5368 # $configure_input" ;;
5369 *) ac_comsub= ;;
5370 esac
5372 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5373 sed -e "$ac_comsub
5374 s%@configure_input@%$configure_input%g
5375 s%@srcdir@%$srcdir%g
5376 s%@top_srcdir@%$top_srcdir%g
5377 s%@INSTALL@%$INSTALL%g
5378 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5379 fi; done
5380 rm -f conftest.s*
5382 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5383 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5385 # ac_d sets the value in "#define NAME VALUE" lines.
5386 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5387 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5388 ac_dC='\3'
5389 ac_dD='%g'
5390 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5391 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5392 ac_uB='\([ ]\)%\1#\2define\3'
5393 ac_uC=' '
5394 ac_uD='\4%g'
5395 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5396 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5397 ac_eB='$%\1#\2define\3'
5398 ac_eC=' '
5399 ac_eD='%g'
5401 if test "${CONFIG_HEADERS+set}" != set; then
5403 cat >> $CONFIG_STATUS <<EOF
5404 CONFIG_HEADERS="include/config.h"
5406 cat >> $CONFIG_STATUS <<\EOF
5408 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5409 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5410 case "$ac_file" in
5411 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5412 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5413 *) ac_file_in="${ac_file}.in" ;;
5414 esac
5416 echo creating $ac_file
5418 rm -f conftest.frag conftest.in conftest.out
5419 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5420 cat $ac_file_inputs > conftest.in
5424 # Transform confdefs.h into a sed script conftest.vals that substitutes
5425 # the proper values into config.h.in to produce config.h. And first:
5426 # Protect against being on the right side of a sed subst in config.status.
5427 # Protect against being in an unquoted here document in config.status.
5428 rm -f conftest.vals
5429 cat > conftest.hdr <<\EOF
5430 s/[\\&%]/\\&/g
5431 s%[\\$`]%\\&%g
5432 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5433 s%ac_d%ac_u%gp
5434 s%ac_u%ac_e%gp
5436 sed -n -f conftest.hdr confdefs.h > conftest.vals
5437 rm -f conftest.hdr
5439 # This sed command replaces #undef with comments. This is necessary, for
5440 # example, in the case of _POSIX_SOURCE, which is predefined and required
5441 # on some systems where configure will not decide to define it.
5442 cat >> conftest.vals <<\EOF
5443 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5446 # Break up conftest.vals because some shells have a limit on
5447 # the size of here documents, and old seds have small limits too.
5449 rm -f conftest.tail
5450 while :
5452 ac_lines=`grep -c . conftest.vals`
5453 # grep -c gives empty output for an empty file on some AIX systems.
5454 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5455 # Write a limited-size here document to conftest.frag.
5456 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5457 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5458 echo 'CEOF
5459 sed -f conftest.frag conftest.in > conftest.out
5460 rm -f conftest.in
5461 mv conftest.out conftest.in
5462 ' >> $CONFIG_STATUS
5463 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5464 rm -f conftest.vals
5465 mv conftest.tail conftest.vals
5466 done
5467 rm -f conftest.vals
5469 cat >> $CONFIG_STATUS <<\EOF
5470 rm -f conftest.frag conftest.h
5471 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5472 cat conftest.in >> conftest.h
5473 rm -f conftest.in
5474 if cmp -s $ac_file conftest.h 2>/dev/null; then
5475 echo "$ac_file is unchanged"
5476 rm -f conftest.h
5477 else
5478 # Remove last slash and all that follows it. Not all systems have dirname.
5479 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5480 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5481 # The file is in a subdirectory.
5482 test ! -d "$ac_dir" && mkdir "$ac_dir"
5484 rm -f $ac_file
5485 mv conftest.h $ac_file
5487 fi; done
5491 cat >> $CONFIG_STATUS <<EOF
5492 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5493 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"
5496 cat >> $CONFIG_STATUS <<\EOF
5497 srcdir=$ac_given_srcdir
5498 while test -n "$ac_sources"; do
5499 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5500 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5502 echo "linking $srcdir/$ac_source to $ac_dest"
5504 if test ! -r $srcdir/$ac_source; then
5505 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5507 rm -f $ac_dest
5509 # Make relative symlinks.
5510 # Remove last slash and all that follows it. Not all systems have dirname.
5511 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5512 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5513 # The dest file is in a subdirectory.
5514 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5515 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5516 # A "../" for each directory in $ac_dest_dir_suffix.
5517 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5518 else
5519 ac_dest_dir_suffix= ac_dots=
5522 case "$srcdir" in
5523 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5524 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5525 esac
5527 # Make a symlink if possible; otherwise try a hard link.
5528 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5529 ln $srcdir/$ac_source $ac_dest; then :
5530 else
5531 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5533 done
5535 cat >> $CONFIG_STATUS <<EOF
5537 srcdir=${srcdir}
5538 host=${host}
5539 target=${target}
5540 with_multisubdir=${with_multisubdir}
5541 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5542 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5543 libgcj_basedir=${libgcj_basedir}
5544 CC="${CC}"
5545 CXX="${CXX}"
5548 cat >> $CONFIG_STATUS <<\EOF
5549 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5550 if test -n "$CONFIG_FILES"; then
5551 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5553 exit 0
5555 chmod +x $CONFIG_STATUS
5556 rm -fr confdefs* $ac_clean_files
5557 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1