* alpha.md (*): Use nonimmediate not general_operand for SET_DEST.
[official-gcc.git] / libjava / configure
bloba5a49eaef86b8c65275adde36b3e5627ba4869ba
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 --enable-libgcj-debug enable runtime debugging code"
38 ac_help="$ac_help
39 --enable-interpreter enable interpreter"
40 ac_help="$ac_help
41 --with-ecos enable runtime eCos target support"
42 ac_help="$ac_help
43 --with-system-zlib use installed libz"
44 ac_help="$ac_help
45 --enable-java-gc=TYPE choose garbage collector [boehm]"
46 ac_help="$ac_help
47 --enable-threads=TYPE choose threading package"
49 # Initialize some variables set by options.
50 # The variables have the same names as the options, with
51 # dashes changed to underlines.
52 build=NONE
53 cache_file=./config.cache
54 exec_prefix=NONE
55 host=NONE
56 no_create=
57 nonopt=NONE
58 no_recursion=
59 prefix=NONE
60 program_prefix=NONE
61 program_suffix=NONE
62 program_transform_name=s,x,x,
63 silent=
64 site=
65 sitefile=
66 srcdir=
67 target=NONE
68 verbose=
69 x_includes=NONE
70 x_libraries=NONE
71 bindir='${exec_prefix}/bin'
72 sbindir='${exec_prefix}/sbin'
73 libexecdir='${exec_prefix}/libexec'
74 datadir='${prefix}/share'
75 sysconfdir='${prefix}/etc'
76 sharedstatedir='${prefix}/com'
77 localstatedir='${prefix}/var'
78 libdir='${exec_prefix}/lib'
79 includedir='${prefix}/include'
80 oldincludedir='/usr/include'
81 infodir='${prefix}/info'
82 mandir='${prefix}/man'
84 # Initialize some other variables.
85 subdirs=
86 MFLAGS= MAKEFLAGS=
87 SHELL=${CONFIG_SHELL-/bin/sh}
88 # Maximum number of lines to put in a shell here document.
89 ac_max_here_lines=12
91 ac_prev=
92 for ac_option
95 # If the previous option needs an argument, assign it.
96 if test -n "$ac_prev"; then
97 eval "$ac_prev=\$ac_option"
98 ac_prev=
99 continue
102 case "$ac_option" in
103 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 *) ac_optarg= ;;
105 esac
107 # Accept the important Cygnus configure options, so we can diagnose typos.
109 case "$ac_option" in
111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
112 ac_prev=bindir ;;
113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
114 bindir="$ac_optarg" ;;
116 -build | --build | --buil | --bui | --bu)
117 ac_prev=build ;;
118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
119 build="$ac_optarg" ;;
121 -cache-file | --cache-file | --cache-fil | --cache-fi \
122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
123 ac_prev=cache_file ;;
124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
126 cache_file="$ac_optarg" ;;
128 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
129 ac_prev=datadir ;;
130 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
131 | --da=*)
132 datadir="$ac_optarg" ;;
134 -disable-* | --disable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}=no" ;;
143 -enable-* | --enable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 case "$ac_option" in
151 *=*) ;;
152 *) ac_optarg=yes ;;
153 esac
154 eval "enable_${ac_feature}='$ac_optarg'" ;;
156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
158 | --exec | --exe | --ex)
159 ac_prev=exec_prefix ;;
160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
162 | --exec=* | --exe=* | --ex=*)
163 exec_prefix="$ac_optarg" ;;
165 -gas | --gas | --ga | --g)
166 # Obsolete; use --with-gas.
167 with_gas=yes ;;
169 -help | --help | --hel | --he)
170 # Omit some internal or obsolete options to make the list less imposing.
171 # This message is too long to be a string in the A/UX 3.1 sh.
172 cat << EOF
173 Usage: configure [options] [host]
174 Options: [defaults in brackets after descriptions]
175 Configuration:
176 --cache-file=FILE cache test results in FILE
177 --help print this message
178 --no-create do not create output files
179 --quiet, --silent do not print \`checking...' messages
180 --site-file=FILE use FILE as the site file
181 --version print the version of autoconf that created configure
182 Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
184 [$ac_default_prefix]
185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
186 [same as prefix]
187 --bindir=DIR user executables in DIR [EPREFIX/bin]
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
190 --datadir=DIR read-only architecture-independent data in DIR
191 [PREFIX/share]
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
194 [PREFIX/com]
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
197 --includedir=DIR C header files in DIR [PREFIX/include]
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
199 --infodir=DIR info documentation in DIR [PREFIX/info]
200 --mandir=DIR man documentation in DIR [PREFIX/man]
201 --srcdir=DIR find the sources in DIR [configure dir or ..]
202 --program-prefix=PREFIX prepend PREFIX to installed program names
203 --program-suffix=SUFFIX append SUFFIX to installed program names
204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
207 cat << EOF
208 Host type:
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
210 --host=HOST configure for HOST [guessed]
211 --target=TARGET configure for TARGET [TARGET=HOST]
212 Features and packages:
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
217 --x-includes=DIR X include files are in DIR
218 --x-libraries=DIR X library files are in DIR
220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
223 exit 0 ;;
225 -host | --host | --hos | --ho)
226 ac_prev=host ;;
227 -host=* | --host=* | --hos=* | --ho=*)
228 host="$ac_optarg" ;;
230 -includedir | --includedir | --includedi | --included | --include \
231 | --includ | --inclu | --incl | --inc)
232 ac_prev=includedir ;;
233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234 | --includ=* | --inclu=* | --incl=* | --inc=*)
235 includedir="$ac_optarg" ;;
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
238 ac_prev=infodir ;;
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240 infodir="$ac_optarg" ;;
242 -libdir | --libdir | --libdi | --libd)
243 ac_prev=libdir ;;
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
245 libdir="$ac_optarg" ;;
247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248 | --libexe | --libex | --libe)
249 ac_prev=libexecdir ;;
250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251 | --libexe=* | --libex=* | --libe=*)
252 libexecdir="$ac_optarg" ;;
254 -localstatedir | --localstatedir | --localstatedi | --localstated \
255 | --localstate | --localstat | --localsta | --localst \
256 | --locals | --local | --loca | --loc | --lo)
257 ac_prev=localstatedir ;;
258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261 localstatedir="$ac_optarg" ;;
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264 ac_prev=mandir ;;
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266 mandir="$ac_optarg" ;;
268 -nfp | --nfp | --nf)
269 # Obsolete; use --without-fp.
270 with_fp=no ;;
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273 | --no-cr | --no-c)
274 no_create=yes ;;
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
278 no_recursion=yes ;;
280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282 | --oldin | --oldi | --old | --ol | --o)
283 ac_prev=oldincludedir ;;
284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287 oldincludedir="$ac_optarg" ;;
289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290 ac_prev=prefix ;;
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292 prefix="$ac_optarg" ;;
294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
295 | --program-pre | --program-pr | --program-p)
296 ac_prev=program_prefix ;;
297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299 program_prefix="$ac_optarg" ;;
301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
302 | --program-suf | --program-su | --program-s)
303 ac_prev=program_suffix ;;
304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306 program_suffix="$ac_optarg" ;;
308 -program-transform-name | --program-transform-name \
309 | --program-transform-nam | --program-transform-na \
310 | --program-transform-n | --program-transform- \
311 | --program-transform | --program-transfor \
312 | --program-transfo | --program-transf \
313 | --program-trans | --program-tran \
314 | --progr-tra | --program-tr | --program-t)
315 ac_prev=program_transform_name ;;
316 -program-transform-name=* | --program-transform-name=* \
317 | --program-transform-nam=* | --program-transform-na=* \
318 | --program-transform-n=* | --program-transform-=* \
319 | --program-transform=* | --program-transfor=* \
320 | --program-transfo=* | --program-transf=* \
321 | --program-trans=* | --program-tran=* \
322 | --progr-tra=* | --program-tr=* | --program-t=*)
323 program_transform_name="$ac_optarg" ;;
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326 | -silent | --silent | --silen | --sile | --sil)
327 silent=yes ;;
329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330 ac_prev=sbindir ;;
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332 | --sbi=* | --sb=*)
333 sbindir="$ac_optarg" ;;
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337 | --sharedst | --shareds | --shared | --share | --shar \
338 | --sha | --sh)
339 ac_prev=sharedstatedir ;;
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343 | --sha=* | --sh=*)
344 sharedstatedir="$ac_optarg" ;;
346 -site | --site | --sit)
347 ac_prev=site ;;
348 -site=* | --site=* | --sit=*)
349 site="$ac_optarg" ;;
351 -site-file | --site-file | --site-fil | --site-fi | --site-f)
352 ac_prev=sitefile ;;
353 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
354 sitefile="$ac_optarg" ;;
356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 ac_prev=srcdir ;;
358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
359 srcdir="$ac_optarg" ;;
361 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
362 | --syscon | --sysco | --sysc | --sys | --sy)
363 ac_prev=sysconfdir ;;
364 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
365 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
366 sysconfdir="$ac_optarg" ;;
368 -target | --target | --targe | --targ | --tar | --ta | --t)
369 ac_prev=target ;;
370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
371 target="$ac_optarg" ;;
373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
374 verbose=yes ;;
376 -version | --version | --versio | --versi | --vers)
377 echo "configure generated by autoconf version 2.13"
378 exit 0 ;;
380 -with-* | --with-*)
381 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 case "$ac_option" in
388 *=*) ;;
389 *) ac_optarg=yes ;;
390 esac
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* | --without-*)
394 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
402 --x)
403 # Obsolete; use --with-x.
404 with_x=yes ;;
406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
407 | --x-incl | --x-inc | --x-in | --x-i)
408 ac_prev=x_includes ;;
409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
411 x_includes="$ac_optarg" ;;
413 -x-libraries | --x-libraries | --x-librarie | --x-librari \
414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
415 ac_prev=x_libraries ;;
416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
418 x_libraries="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
430 nonopt="$ac_option"
433 esac
434 done
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
443 # 0 standard input
444 # 1 file creation
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
451 exec 6>/dev/null
452 else
453 exec 6>&1
455 exec 5>./config.log
457 echo "\
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
460 " 1>&5
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
464 ac_configure_args=
465 for ac_arg
467 case "$ac_arg" in
468 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469 | --no-cr | --no-c) ;;
470 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
475 esac
476 done
478 # NLS nuisances.
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 echo > confdefs.h
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file=java/lang/System.java
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted=yes
500 # Try the directory containing this script, then its parent.
501 ac_prog=$0
502 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 srcdir=$ac_confdir
505 if test ! -r $srcdir/$ac_unique_file; then
506 srcdir=..
508 else
509 ac_srcdir_defaulted=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 else
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$sitefile"; then
522 if test -z "$CONFIG_SITE"; then
523 if test "x$prefix" != xNONE; then
524 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
525 else
526 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 else
530 CONFIG_SITE="$sitefile"
532 for ac_site_file in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
535 . "$ac_site_file"
537 done
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
541 . $cache_file
542 else
543 echo "creating cache $cache_file"
544 > $cache_file
547 ac_ext=c
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
554 ac_exeext=
555 ac_objext=o
556 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
557 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
559 ac_n= ac_c='
560 ' ac_t=' '
561 else
562 ac_n=-n ac_c= ac_t=
564 else
565 ac_n= ac_c='\c' ac_t=
570 ac_aux_dir=
571 for ac_dir in .. $srcdir/..; do
572 if test -f $ac_dir/install-sh; then
573 ac_aux_dir=$ac_dir
574 ac_install_sh="$ac_aux_dir/install-sh -c"
575 break
576 elif test -f $ac_dir/install.sh; then
577 ac_aux_dir=$ac_dir
578 ac_install_sh="$ac_aux_dir/install.sh -c"
579 break
581 done
582 if test -z "$ac_aux_dir"; then
583 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
585 ac_config_guess=$ac_aux_dir/config.guess
586 ac_config_sub=$ac_aux_dir/config.sub
587 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
591 # Do some error checking and defaulting for the host and target type.
592 # The inputs are:
593 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
595 # The rules are:
596 # 1. You are not allowed to specify --host, --target, and nonopt at the
597 # same time.
598 # 2. Host defaults to nonopt.
599 # 3. If nonopt is not specified, then host defaults to the current host,
600 # as determined by config.guess.
601 # 4. Target and build default to nonopt.
602 # 5. If nonopt is not specified, then target and build default to host.
604 # The aliases save the names the user supplied, while $host etc.
605 # will get canonicalized.
606 case $host---$target---$nonopt in
607 NONE---*---* | *---NONE---* | *---*---NONE) ;;
608 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
609 esac
612 # Make sure we can run config.sub.
613 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
614 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617 echo $ac_n "checking host system type""... $ac_c" 1>&6
618 echo "configure:619: checking host system type" >&5
620 host_alias=$host
621 case "$host_alias" in
622 NONE)
623 case $nonopt in
624 NONE)
625 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
626 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
627 fi ;;
628 *) host_alias=$nonopt ;;
629 esac ;;
630 esac
632 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
633 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$host" 1>&6
638 echo $ac_n "checking target system type""... $ac_c" 1>&6
639 echo "configure:640: checking target system type" >&5
641 target_alias=$target
642 case "$target_alias" in
643 NONE)
644 case $nonopt in
645 NONE) target_alias=$host_alias ;;
646 *) target_alias=$nonopt ;;
647 esac ;;
648 esac
650 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
651 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
652 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
653 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
654 echo "$ac_t""$target" 1>&6
656 echo $ac_n "checking build system type""... $ac_c" 1>&6
657 echo "configure:658: checking build system type" >&5
659 build_alias=$build
660 case "$build_alias" in
661 NONE)
662 case $nonopt in
663 NONE) build_alias=$host_alias ;;
664 *) build_alias=$nonopt ;;
665 esac ;;
666 esac
668 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
669 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
670 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
671 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
672 echo "$ac_t""$build" 1>&6
674 test "$host_alias" != "$target_alias" &&
675 test "$program_prefix$program_suffix$program_transform_name" = \
676 NONENONEs,x,x, &&
677 program_prefix=${target_alias}-
680 # Check whether --with-target-subdir or --without-target-subdir was given.
681 if test "${with_target_subdir+set}" = set; then
682 withval="$with_target_subdir"
686 # Check whether --with-cross-host or --without-cross-host was given.
687 if test "${with_cross_host+set}" = set; then
688 withval="$with_cross_host"
693 # Find a good install program. We prefer a C program (faster),
694 # so one script is as good as another. But avoid the broken or
695 # incompatible versions:
696 # SysV /etc/install, /usr/sbin/install
697 # SunOS /usr/etc/install
698 # IRIX /sbin/install
699 # AIX /bin/install
700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
703 # ./install, which can be erroneously created by make from ./install.sh.
704 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
705 echo "configure:706: checking for a BSD compatible install" >&5
706 if test -z "$INSTALL"; then
707 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
709 else
710 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
711 for ac_dir in $PATH; do
712 # Account for people who put trailing slashes in PATH elements.
713 case "$ac_dir/" in
714 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
716 # OSF1 and SCO ODT 3.0 have their own names for install.
717 # Don't use installbsd from OSF since it installs stuff as root
718 # by default.
719 for ac_prog in ginstall scoinst install; do
720 if test -f $ac_dir/$ac_prog; then
721 if test $ac_prog = install &&
722 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
723 # AIX install. It has an incompatible calling convention.
725 else
726 ac_cv_path_install="$ac_dir/$ac_prog -c"
727 break 2
730 done
732 esac
733 done
734 IFS="$ac_save_IFS"
737 if test "${ac_cv_path_install+set}" = set; then
738 INSTALL="$ac_cv_path_install"
739 else
740 # As a last resort, use the slow shell script. We don't cache a
741 # path for INSTALL within a source directory, because that will
742 # break other packages using the cache if that directory is
743 # removed, or if the path is relative.
744 INSTALL="$ac_install_sh"
747 echo "$ac_t""$INSTALL" 1>&6
749 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
750 # It thinks the first close brace ends the variable substitution.
751 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
753 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
755 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
757 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
758 echo "configure:759: checking whether build environment is sane" >&5
759 # Just in case
760 sleep 1
761 echo timestamp > conftestfile
762 # Do `set' in a subshell so we don't clobber the current shell's
763 # arguments. Must try -L first in case configure is actually a
764 # symlink; some systems play weird games with the mod time of symlinks
765 # (eg FreeBSD returns the mod time of the symlink's containing
766 # directory).
767 if (
768 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
769 if test "$*" = "X"; then
770 # -L didn't work.
771 set X `ls -t $srcdir/configure conftestfile`
773 if test "$*" != "X $srcdir/configure conftestfile" \
774 && test "$*" != "X conftestfile $srcdir/configure"; then
776 # If neither matched, then we have a broken ls. This can happen
777 # if, for instance, CONFIG_SHELL is bash and it inherits a
778 # broken ls alias from the environment. This has actually
779 # happened. Such a system could not be considered "sane".
780 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
781 alias in your environment" 1>&2; exit 1; }
784 test "$2" = conftestfile
786 then
787 # Ok.
789 else
790 { echo "configure: error: newly created file is older than distributed files!
791 Check your system clock" 1>&2; exit 1; }
793 rm -f conftest*
794 echo "$ac_t""yes" 1>&6
795 if test "$program_transform_name" = s,x,x,; then
796 program_transform_name=
797 else
798 # Double any \ or $. echo might interpret backslashes.
799 cat <<\EOF_SED > conftestsed
800 s,\\,\\\\,g; s,\$,$$,g
801 EOF_SED
802 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
803 rm -f conftestsed
805 test "$program_prefix" != NONE &&
806 program_transform_name="s,^,${program_prefix},; $program_transform_name"
807 # Use a double $ so make ignores it.
808 test "$program_suffix" != NONE &&
809 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
811 # sed with no file args requires a program.
812 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
814 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
815 echo "configure:816: checking whether ${MAKE-make} sets \${MAKE}" >&5
816 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
817 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
819 else
820 cat > conftestmake <<\EOF
821 all:
822 @echo 'ac_maketemp="${MAKE}"'
824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
825 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
826 if test -n "$ac_maketemp"; then
827 eval ac_cv_prog_make_${ac_make}_set=yes
828 else
829 eval ac_cv_prog_make_${ac_make}_set=no
831 rm -f conftestmake
833 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
834 echo "$ac_t""yes" 1>&6
835 SET_MAKE=
836 else
837 echo "$ac_t""no" 1>&6
838 SET_MAKE="MAKE=${MAKE-make}"
841 if test $host != $build; then
842 ac_tool_prefix=${host_alias}-
843 else
844 ac_tool_prefix=
847 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
848 echo "configure:849: checking for Cygwin environment" >&5
849 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 cat > conftest.$ac_ext <<EOF
853 #line 854 "configure"
854 #include "confdefs.h"
856 int main() {
858 #ifndef __CYGWIN__
859 #define __CYGWIN__ __CYGWIN32__
860 #endif
861 return __CYGWIN__;
862 ; return 0; }
864 if { (eval echo configure:865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
865 rm -rf conftest*
866 ac_cv_cygwin=yes
867 else
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
870 rm -rf conftest*
871 ac_cv_cygwin=no
873 rm -f conftest*
874 rm -f conftest*
877 echo "$ac_t""$ac_cv_cygwin" 1>&6
878 CYGWIN=
879 test "$ac_cv_cygwin" = yes && CYGWIN=yes
880 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
881 echo "configure:882: checking for mingw32 environment" >&5
882 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
884 else
885 cat > conftest.$ac_ext <<EOF
886 #line 887 "configure"
887 #include "confdefs.h"
889 int main() {
890 return __MINGW32__;
891 ; return 0; }
893 if { (eval echo configure:894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
894 rm -rf conftest*
895 ac_cv_mingw32=yes
896 else
897 echo "configure: failed program was:" >&5
898 cat conftest.$ac_ext >&5
899 rm -rf conftest*
900 ac_cv_mingw32=no
902 rm -f conftest*
903 rm -f conftest*
906 echo "$ac_t""$ac_cv_mingw32" 1>&6
907 MINGW32=
908 test "$ac_cv_mingw32" = yes && MINGW32=yes
910 # Check whether --enable-multilib or --disable-multilib was given.
911 if test "${enable_multilib+set}" = set; then
912 enableval="$enable_multilib"
913 case "${enableval}" in
914 yes) multilib=yes ;;
915 no) multilib=no ;;
916 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
917 esac
918 else
919 multilib=yes
923 if test "${srcdir}" = "."; then
924 if test "${with_target_subdir}" != "."; then
925 libgcj_basedir="${srcdir}/${with_multisrctop}../."
926 else
927 libgcj_basedir="${srcdir}/${with_multisrctop}."
929 else
930 libgcj_basedir="${srcdir}/."
935 # Make sure we can run config.sub.
936 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
937 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
940 echo $ac_n "checking host system type""... $ac_c" 1>&6
941 echo "configure:942: checking host system type" >&5
943 host_alias=$host
944 case "$host_alias" in
945 NONE)
946 case $nonopt in
947 NONE)
948 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
949 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
950 fi ;;
951 *) host_alias=$nonopt ;;
952 esac ;;
953 esac
955 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
956 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
957 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
958 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
959 echo "$ac_t""$host" 1>&6
962 version=0.0.7
964 PACKAGE=libjava
966 VERSION=$version
968 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
969 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
971 cat >> confdefs.h <<EOF
972 #define PACKAGE "$PACKAGE"
975 cat >> confdefs.h <<EOF
976 #define VERSION "$VERSION"
981 missing_dir=`cd $ac_aux_dir && pwd`
982 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
983 echo "configure:984: checking for working aclocal" >&5
984 # Run test in a subshell; some versions of sh will print an error if
985 # an executable is not found, even if stderr is redirected.
986 # Redirect stdin to placate older versions of autoconf. Sigh.
987 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
988 ACLOCAL=aclocal
989 echo "$ac_t""found" 1>&6
990 else
991 ACLOCAL="$missing_dir/missing aclocal"
992 echo "$ac_t""missing" 1>&6
995 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
996 echo "configure:997: checking for working autoconf" >&5
997 # Run test in a subshell; some versions of sh will print an error if
998 # an executable is not found, even if stderr is redirected.
999 # Redirect stdin to placate older versions of autoconf. Sigh.
1000 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1001 AUTOCONF=autoconf
1002 echo "$ac_t""found" 1>&6
1003 else
1004 AUTOCONF="$missing_dir/missing autoconf"
1005 echo "$ac_t""missing" 1>&6
1008 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1009 echo "configure:1010: checking for working automake" >&5
1010 # Run test in a subshell; some versions of sh will print an error if
1011 # an executable is not found, even if stderr is redirected.
1012 # Redirect stdin to placate older versions of autoconf. Sigh.
1013 if (automake --version) < /dev/null > /dev/null 2>&1; then
1014 AUTOMAKE=automake
1015 echo "$ac_t""found" 1>&6
1016 else
1017 AUTOMAKE="$missing_dir/missing automake"
1018 echo "$ac_t""missing" 1>&6
1021 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1022 echo "configure:1023: checking for working autoheader" >&5
1023 # Run test in a subshell; some versions of sh will print an error if
1024 # an executable is not found, even if stderr is redirected.
1025 # Redirect stdin to placate older versions of autoconf. Sigh.
1026 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1027 AUTOHEADER=autoheader
1028 echo "$ac_t""found" 1>&6
1029 else
1030 AUTOHEADER="$missing_dir/missing autoheader"
1031 echo "$ac_t""missing" 1>&6
1034 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1035 echo "configure:1036: checking for working makeinfo" >&5
1036 # Run test in a subshell; some versions of sh will print an error if
1037 # an executable is not found, even if stderr is redirected.
1038 # Redirect stdin to placate older versions of autoconf. Sigh.
1039 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1040 MAKEINFO=makeinfo
1041 echo "$ac_t""found" 1>&6
1042 else
1043 MAKEINFO="$missing_dir/missing makeinfo"
1044 echo "$ac_t""missing" 1>&6
1049 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1050 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1051 # are probably using a cross compiler, which will not be able to fully
1052 # link an executable. This should really be fixed in autoconf
1053 # itself.
1058 # Extract the first word of "gcc", so it can be a program name with args.
1059 set dummy gcc; ac_word=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1064 else
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC="$CC" # Let the user override the test.
1067 else
1068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1069 ac_dummy="$PATH"
1070 for ac_dir in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir=.
1072 if test -f $ac_dir/$ac_word; then
1073 ac_cv_prog_CC="gcc"
1074 break
1076 done
1077 IFS="$ac_save_ifs"
1080 CC="$ac_cv_prog_CC"
1081 if test -n "$CC"; then
1082 echo "$ac_t""$CC" 1>&6
1083 else
1084 echo "$ac_t""no" 1>&6
1087 if test -z "$CC"; then
1088 # Extract the first word of "cc", so it can be a program name with args.
1089 set dummy cc; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1094 else
1095 if test -n "$CC"; then
1096 ac_cv_prog_CC="$CC" # Let the user override the test.
1097 else
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1099 ac_prog_rejected=no
1100 ac_dummy="$PATH"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1105 ac_prog_rejected=yes
1106 continue
1108 ac_cv_prog_CC="cc"
1109 break
1111 done
1112 IFS="$ac_save_ifs"
1113 if test $ac_prog_rejected = yes; then
1114 # We found a bogon in the path, so make sure we never use it.
1115 set dummy $ac_cv_prog_CC
1116 shift
1117 if test $# -gt 0; then
1118 # We chose a different compiler from the bogus one.
1119 # However, it has the same basename, so the bogon will be chosen
1120 # first if we set CC to just the basename; use the full file name.
1121 shift
1122 set dummy "$ac_dir/$ac_word" "$@"
1123 shift
1124 ac_cv_prog_CC="$@"
1129 CC="$ac_cv_prog_CC"
1130 if test -n "$CC"; then
1131 echo "$ac_t""$CC" 1>&6
1132 else
1133 echo "$ac_t""no" 1>&6
1136 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1139 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether we are using GNU C" >&5
1141 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1143 else
1144 cat > conftest.c <<EOF
1145 #ifdef __GNUC__
1146 yes;
1147 #endif
1149 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1150 ac_cv_prog_gcc=yes
1151 else
1152 ac_cv_prog_gcc=no
1156 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1158 if test $ac_cv_prog_gcc = yes; then
1159 GCC=yes
1160 ac_test_CFLAGS="${CFLAGS+set}"
1161 ac_save_CFLAGS="$CFLAGS"
1162 CFLAGS=
1163 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether ${CC-cc} accepts -g" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168 echo 'void f(){}' > conftest.c
1169 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1170 ac_cv_prog_cc_g=yes
1171 else
1172 ac_cv_prog_cc_g=no
1174 rm -f conftest*
1178 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1179 if test "$ac_test_CFLAGS" = set; then
1180 CFLAGS="$ac_save_CFLAGS"
1181 elif test $ac_cv_prog_cc_g = yes; then
1182 CFLAGS="-g -O2"
1183 else
1184 CFLAGS="-O2"
1186 else
1187 GCC=
1188 test "${CFLAGS+set}" = set || CFLAGS="-g"
1192 # Likewise for AC_PROG_CXX.
1196 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1198 # Extract the first word of "$ac_prog", so it can be a program name with args.
1199 set dummy $ac_prog; ac_word=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1204 else
1205 if test -n "$CXX"; then
1206 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1207 else
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1209 ac_dummy="$PATH"
1210 for ac_dir in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_CXX="$ac_prog"
1214 break
1216 done
1217 IFS="$ac_save_ifs"
1220 CXX="$ac_cv_prog_CXX"
1221 if test -n "$CXX"; then
1222 echo "$ac_t""$CXX" 1>&6
1223 else
1224 echo "$ac_t""no" 1>&6
1227 test -n "$CXX" && break
1228 done
1229 test -n "$CXX" || CXX="gcc"
1231 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1233 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1234 echo "configure:1235: checking whether we are using GNU C++" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 cat > conftest.C <<EOF
1239 #ifdef __GNUC__
1240 yes;
1241 #endif
1243 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1244 ac_cv_prog_gxx=yes
1245 else
1246 ac_cv_prog_gxx=no
1250 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1252 if test $ac_cv_prog_gxx = yes; then
1253 GXX=yes
1254 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1255 ac_save_CXXFLAGS="$CXXFLAGS"
1256 CXXFLAGS=
1257 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether ${CXX-g++} accepts -g" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262 echo 'void f(){}' > conftest.cc
1263 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1264 ac_cv_prog_cxx_g=yes
1265 else
1266 ac_cv_prog_cxx_g=no
1268 rm -f conftest*
1272 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1273 if test "$ac_test_CXXFLAGS" = set; then
1274 CXXFLAGS="$ac_save_CXXFLAGS"
1275 elif test $ac_cv_prog_cxx_g = yes; then
1276 CXXFLAGS="-g -O2"
1277 else
1278 CXXFLAGS="-O2"
1280 else
1281 GXX=
1282 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1286 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1287 # run it explicitly here, it will be run implicitly before
1288 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1289 # be run before AC_CANONICAL_HOST.
1290 echo $ac_n "checking build system type""... $ac_c" 1>&6
1291 echo "configure:1292: checking build system type" >&5
1293 build_alias=$build
1294 case "$build_alias" in
1295 NONE)
1296 case $nonopt in
1297 NONE) build_alias=$host_alias ;;
1298 *) build_alias=$nonopt ;;
1299 esac ;;
1300 esac
1302 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1303 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1304 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1305 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1306 echo "$ac_t""$build" 1>&6
1309 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1310 set dummy ${ac_tool_prefix}as; ac_word=$2
1311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312 echo "configure:1313: checking for $ac_word" >&5
1313 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1315 else
1316 if test -n "$AS"; then
1317 ac_cv_prog_AS="$AS" # Let the user override the test.
1318 else
1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1320 ac_dummy="$PATH"
1321 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 if test -f $ac_dir/$ac_word; then
1324 ac_cv_prog_AS="${ac_tool_prefix}as"
1325 break
1327 done
1328 IFS="$ac_save_ifs"
1329 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1332 AS="$ac_cv_prog_AS"
1333 if test -n "$AS"; then
1334 echo "$ac_t""$AS" 1>&6
1335 else
1336 echo "$ac_t""no" 1>&6
1341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1342 set dummy ${ac_tool_prefix}ar; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348 if test -n "$AR"; then
1349 ac_cv_prog_AR="$AR" # Let the user override the test.
1350 else
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1352 ac_dummy="$PATH"
1353 for ac_dir in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_AR="${ac_tool_prefix}ar"
1357 break
1359 done
1360 IFS="$ac_save_ifs"
1361 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1364 AR="$ac_cv_prog_AR"
1365 if test -n "$AR"; then
1366 echo "$ac_t""$AR" 1>&6
1367 else
1368 echo "$ac_t""no" 1>&6
1373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1376 echo "configure:1377: checking for $ac_word" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380 if test -n "$RANLIB"; then
1381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1382 else
1383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1384 ac_dummy="$PATH"
1385 for ac_dir in $ac_dummy; do
1386 test -z "$ac_dir" && ac_dir=.
1387 if test -f $ac_dir/$ac_word; then
1388 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1389 break
1391 done
1392 IFS="$ac_save_ifs"
1395 RANLIB="$ac_cv_prog_RANLIB"
1396 if test -n "$RANLIB"; then
1397 echo "$ac_t""$RANLIB" 1>&6
1398 else
1399 echo "$ac_t""no" 1>&6
1403 if test -z "$ac_cv_prog_RANLIB"; then
1404 if test -n "$ac_tool_prefix"; then
1405 # Extract the first word of "ranlib", so it can be a program name with args.
1406 set dummy ranlib; ac_word=$2
1407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1408 echo "configure:1409: checking for $ac_word" >&5
1409 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1411 else
1412 if test -n "$RANLIB"; then
1413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1414 else
1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1416 ac_dummy="$PATH"
1417 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 if test -f $ac_dir/$ac_word; then
1420 ac_cv_prog_RANLIB="ranlib"
1421 break
1423 done
1424 IFS="$ac_save_ifs"
1425 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1428 RANLIB="$ac_cv_prog_RANLIB"
1429 if test -n "$RANLIB"; then
1430 echo "$ac_t""$RANLIB" 1>&6
1431 else
1432 echo "$ac_t""no" 1>&6
1435 else
1436 RANLIB=":"
1441 # Find a good install program. We prefer a C program (faster),
1442 # so one script is as good as another. But avoid the broken or
1443 # incompatible versions:
1444 # SysV /etc/install, /usr/sbin/install
1445 # SunOS /usr/etc/install
1446 # IRIX /sbin/install
1447 # AIX /bin/install
1448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1451 # ./install, which can be erroneously created by make from ./install.sh.
1452 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1453 echo "configure:1454: checking for a BSD compatible install" >&5
1454 if test -z "$INSTALL"; then
1455 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457 else
1458 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1459 for ac_dir in $PATH; do
1460 # Account for people who put trailing slashes in PATH elements.
1461 case "$ac_dir/" in
1462 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1464 # OSF1 and SCO ODT 3.0 have their own names for install.
1465 # Don't use installbsd from OSF since it installs stuff as root
1466 # by default.
1467 for ac_prog in ginstall scoinst install; do
1468 if test -f $ac_dir/$ac_prog; then
1469 if test $ac_prog = install &&
1470 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1471 # AIX install. It has an incompatible calling convention.
1473 else
1474 ac_cv_path_install="$ac_dir/$ac_prog -c"
1475 break 2
1478 done
1480 esac
1481 done
1482 IFS="$ac_save_IFS"
1485 if test "${ac_cv_path_install+set}" = set; then
1486 INSTALL="$ac_cv_path_install"
1487 else
1488 # As a last resort, use the slow shell script. We don't cache a
1489 # path for INSTALL within a source directory, because that will
1490 # break other packages using the cache if that directory is
1491 # removed, or if the path is relative.
1492 INSTALL="$ac_install_sh"
1495 echo "$ac_t""$INSTALL" 1>&6
1497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1498 # It thinks the first close brace ends the variable substitution.
1499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1506 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1507 echo "configure:1508: checking whether to enable maintainer-specific portions of Makefiles" >&5
1508 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1509 if test "${enable_maintainer_mode+set}" = set; then
1510 enableval="$enable_maintainer_mode"
1511 USE_MAINTAINER_MODE=$enableval
1512 else
1513 USE_MAINTAINER_MODE=no
1516 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1519 if test $USE_MAINTAINER_MODE = yes; then
1520 MAINTAINER_MODE_TRUE=
1521 MAINTAINER_MODE_FALSE='#'
1522 else
1523 MAINTAINER_MODE_TRUE='#'
1524 MAINTAINER_MODE_FALSE=
1526 MAINT=$MAINTAINER_MODE_TRUE
1530 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1531 # at least currently, we never actually build a program, so we never
1532 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1533 # fails, because we are probably configuring with a cross compiler
1534 # which cant create executables. So we include AC_EXEEXT to keep
1535 # automake happy, but we dont execute it, since we dont care about
1536 # the result.
1537 if false; then
1540 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1541 echo "configure:1542: checking for executable suffix" >&5
1542 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1546 ac_cv_exeext=.exe
1547 else
1548 rm -f conftest*
1549 echo 'int main () { return 0; }' > conftest.$ac_ext
1550 ac_cv_exeext=
1551 if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1552 for file in conftest.*; do
1553 case $file in
1554 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1555 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1556 esac
1557 done
1558 else
1559 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1561 rm -f conftest*
1562 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1566 EXEEXT=""
1567 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1568 echo "$ac_t""${ac_cv_exeext}" 1>&6
1569 ac_exeext=$EXEEXT
1573 # configure.host sets the following important variables
1574 # libgcj_cflags - host specific C compiler flags
1575 # libgcj_cxxflags - host specific C++ compiler flags
1576 # libgcj_javaflags - host specific Java compiler flags
1578 libgcj_cflags=
1579 libgcj_cxxflags=
1580 libgcj_javaflags=
1582 . ${libgcj_basedir}/configure.host
1584 case ${libgcj_basedir} in
1585 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1586 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1587 esac
1589 LIBGCJ_CFLAGS="${libgcj_cflags}"
1590 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1591 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1601 # Check whether --enable-shared or --disable-shared was given.
1602 if test "${enable_shared+set}" = set; then
1603 enableval="$enable_shared"
1604 p=${PACKAGE-default}
1605 case "$enableval" in
1606 yes) enable_shared=yes ;;
1607 no) enable_shared=no ;;
1609 enable_shared=no
1610 # Look at the argument we got. We use all the common list separators.
1611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1612 for pkg in $enableval; do
1613 if test "X$pkg" = "X$p"; then
1614 enable_shared=yes
1616 done
1617 IFS="$ac_save_ifs"
1619 esac
1620 else
1621 enable_shared=yes
1624 # Check whether --enable-static or --disable-static was given.
1625 if test "${enable_static+set}" = set; then
1626 enableval="$enable_static"
1627 p=${PACKAGE-default}
1628 case "$enableval" in
1629 yes) enable_static=yes ;;
1630 no) enable_static=no ;;
1632 enable_static=no
1633 # Look at the argument we got. We use all the common list separators.
1634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1635 for pkg in $enableval; do
1636 if test "X$pkg" = "X$p"; then
1637 enable_static=yes
1639 done
1640 IFS="$ac_save_ifs"
1642 esac
1643 else
1644 enable_static=yes
1647 # Check whether --enable-fast-install or --disable-fast-install was given.
1648 if test "${enable_fast_install+set}" = set; then
1649 enableval="$enable_fast_install"
1650 p=${PACKAGE-default}
1651 case "$enableval" in
1652 yes) enable_fast_install=yes ;;
1653 no) enable_fast_install=no ;;
1655 enable_fast_install=no
1656 # Look at the argument we got. We use all the common list separators.
1657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1658 for pkg in $enableval; do
1659 if test "X$pkg" = "X$p"; then
1660 enable_fast_install=yes
1662 done
1663 IFS="$ac_save_ifs"
1665 esac
1666 else
1667 enable_fast_install=yes
1670 # Extract the first word of "ranlib", so it can be a program name with args.
1671 set dummy ranlib; ac_word=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677 if test -n "$RANLIB"; then
1678 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1679 else
1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1681 ac_dummy="$PATH"
1682 for ac_dir in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_prog_RANLIB="ranlib"
1686 break
1688 done
1689 IFS="$ac_save_ifs"
1690 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1693 RANLIB="$ac_cv_prog_RANLIB"
1694 if test -n "$RANLIB"; then
1695 echo "$ac_t""$RANLIB" 1>&6
1696 else
1697 echo "$ac_t""no" 1>&6
1700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1701 if test "${with_gnu_ld+set}" = set; then
1702 withval="$with_gnu_ld"
1703 test "$withval" = no || with_gnu_ld=yes
1704 else
1705 with_gnu_ld=no
1708 ac_prog=ld
1709 if test "$ac_cv_prog_gcc" = yes; then
1710 # Check if gcc -print-prog-name=ld gives a path.
1711 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1712 echo "configure:1713: checking for ld used by GCC" >&5
1713 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1714 case "$ac_prog" in
1715 # Accept absolute paths.
1716 /* | [A-Za-z]:[\\/]*)
1717 re_direlt='/[^/][^/]*/\.\./'
1718 # Canonicalize the path of ld
1719 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1720 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1721 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1722 done
1723 test -z "$LD" && LD="$ac_prog"
1726 # If it fails, then pretend we aren't using GCC.
1727 ac_prog=ld
1730 # If it is relative, then search for the first ld in PATH.
1731 with_gnu_ld=unknown
1733 esac
1734 elif test "$with_gnu_ld" = yes; then
1735 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1736 echo "configure:1737: checking for GNU ld" >&5
1737 else
1738 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1739 echo "configure:1740: checking for non-GNU ld" >&5
1741 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743 else
1744 if test -z "$LD"; then
1745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1746 for ac_dir in $PATH; do
1747 test -z "$ac_dir" && ac_dir=.
1748 if test -f "$ac_dir/$ac_prog"; then
1749 ac_cv_path_LD="$ac_dir/$ac_prog"
1750 # Check to see if the program is GNU ld. I'd rather use --version,
1751 # but apparently some GNU ld's only accept -v.
1752 # Break only if it was the GNU/non-GNU ld that we prefer.
1753 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1754 test "$with_gnu_ld" != no && break
1755 else
1756 test "$with_gnu_ld" != yes && break
1759 done
1760 IFS="$ac_save_ifs"
1761 else
1762 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1766 LD="$ac_cv_path_LD"
1767 if test -n "$LD"; then
1768 echo "$ac_t""$LD" 1>&6
1769 else
1770 echo "$ac_t""no" 1>&6
1772 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1774 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1775 echo "configure:1776: checking if the linker ($LD) is GNU ld" >&5
1776 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1780 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1781 ac_cv_prog_gnu_ld=yes
1782 else
1783 ac_cv_prog_gnu_ld=no
1787 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1790 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1791 echo "configure:1792: checking for BSD-compatible nm" >&5
1792 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 if test -n "$NM"; then
1796 # Let the user override the test.
1797 ac_cv_path_NM="$NM"
1798 else
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1800 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/nm; then
1803 # Check to see if the nm accepts a BSD-compat flag.
1804 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1805 # nm: unknown option "B" ignored
1806 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1807 ac_cv_path_NM="$ac_dir/nm -B"
1808 break
1809 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1810 ac_cv_path_NM="$ac_dir/nm -p"
1811 break
1812 else
1813 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1814 continue # so that we can try to find one that supports BSD flags
1817 done
1818 IFS="$ac_save_ifs"
1819 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1823 NM="$ac_cv_path_NM"
1824 echo "$ac_t""$NM" 1>&6
1827 # Check for command to grab the raw symbol name followed by C symbol from nm.
1828 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1829 echo "configure:1830: checking command to parse $NM output" >&5
1830 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1832 else
1833 # These are sane defaults that work on at least a few old systems.
1834 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1836 # Character class describing NM global symbol codes.
1837 ac_symcode='[BCDEGRST]'
1839 # Regexp to match symbols that can be accessed directly from C.
1840 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1842 # Transform the above into a raw symbol and a C symbol.
1843 ac_symxfrm='\1 \2\3 \3'
1845 # Transform an extracted symbol line into a proper C declaration
1846 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1848 # Define system-specific variables.
1849 case "$host_os" in
1850 aix*)
1851 ac_symcode='[BCDT]'
1853 cygwin* | mingw*)
1854 ac_symcode='[ABCDGISTW]'
1856 hpux*)
1857 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1859 irix*)
1860 ac_symcode='[BCDEGRST]'
1862 solaris*)
1863 ac_symcode='[BDT]'
1865 esac
1867 # If we're using GNU nm, then use its standard symbol codes.
1868 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1869 ac_symcode='[ABCDGISTW]'
1872 # Try without a prefix undercore, then with it.
1873 for ac_symprfx in "" "_"; do
1875 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1877 # Check to see that the pipe works correctly.
1878 ac_pipe_works=no
1879 rm -f conftest.$ac_ext
1880 cat > conftest.$ac_ext <<EOF
1881 #ifdef __cplusplus
1882 extern "C" {
1883 #endif
1884 char nm_test_var;
1885 void nm_test_func(){}
1886 #ifdef __cplusplus
1888 #endif
1889 int main(){nm_test_var='a';nm_test_func;return 0;}
1892 if { (eval echo configure:1893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1893 # Now try to grab the symbols.
1894 ac_nlist=conftest.nm
1896 if { (eval echo configure:1897: \"$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
1898 # Try sorting and uniquifying the output.
1899 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1900 mv -f "$ac_nlist"T "$ac_nlist"
1901 else
1902 rm -f "$ac_nlist"T
1905 # Make sure that we snagged all the symbols we need.
1906 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1907 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1908 cat <<EOF > conftest.c
1909 #ifdef __cplusplus
1910 extern "C" {
1911 #endif
1914 # Now generate the symbol file.
1915 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1917 cat <<EOF >> conftest.c
1918 #if defined (__STDC__) && __STDC__
1919 # define lt_ptr_t void *
1920 #else
1921 # define lt_ptr_t char *
1922 # define const
1923 #endif
1925 /* The mapping between symbol names and symbols. */
1926 const struct {
1927 const char *name;
1928 lt_ptr_t address;
1930 lt_preloaded_symbols[] =
1933 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1934 cat <<\EOF >> conftest.c
1935 {0, (lt_ptr_t) 0}
1938 #ifdef __cplusplus
1940 #endif
1942 # Now try linking the two files.
1943 mv conftest.$ac_objext conftestm.$ac_objext
1944 ac_save_LIBS="$LIBS"
1945 ac_save_CFLAGS="$CFLAGS"
1946 LIBS="conftestm.$ac_objext"
1947 CFLAGS="$CFLAGS$no_builtin_flag"
1948 if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1949 ac_pipe_works=yes
1950 else
1951 echo "configure: failed program was:" >&5
1952 cat conftest.c >&5
1954 LIBS="$ac_save_LIBS"
1955 CFLAGS="$ac_save_CFLAGS"
1956 else
1957 echo "cannot find nm_test_func in $ac_nlist" >&5
1959 else
1960 echo "cannot find nm_test_var in $ac_nlist" >&5
1962 else
1963 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1965 else
1966 echo "$progname: failed program was:" >&5
1967 cat conftest.c >&5
1969 rm -rf conftest*
1971 # Do not use the global_symbol_pipe unless it works.
1972 if test "$ac_pipe_works" = yes; then
1973 if test x"$ac_symprfx" = x"_"; then
1974 ac_cv_sys_symbol_underscore=yes
1975 else
1976 ac_cv_sys_symbol_underscore=no
1978 break
1979 else
1980 ac_cv_sys_global_symbol_pipe=
1982 done
1987 ac_result=yes
1988 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1989 ac_result=no
1991 echo "$ac_t""$ac_result" 1>&6
1993 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1994 echo "configure:1995: checking for _ prefix in compiled symbols" >&5
1995 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1997 else
1998 ac_cv_sys_symbol_underscore=no
1999 cat > conftest.$ac_ext <<EOF
2000 void nm_test_func(){}
2001 int main(){nm_test_func;return 0;}
2003 if { (eval echo configure:2004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 # Now try to grab the symbols.
2005 ac_nlist=conftest.nm
2006 if { (eval echo configure:2007: \"$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
2007 # See whether the symbols have a leading underscore.
2008 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
2009 ac_cv_sys_symbol_underscore=yes
2010 else
2011 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
2013 else
2014 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2017 else
2018 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2020 else
2021 echo "configure: failed program was:" >&5
2022 cat conftest.c >&5
2024 rm -rf conftest*
2028 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2029 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
2031 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2032 echo "configure:2033: checking whether ln -s works" >&5
2033 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2035 else
2036 rm -f conftestdata
2037 if ln -s X conftestdata 2>/dev/null
2038 then
2039 rm -f conftestdata
2040 ac_cv_prog_LN_S="ln -s"
2041 else
2042 ac_cv_prog_LN_S=ln
2045 LN_S="$ac_cv_prog_LN_S"
2046 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2047 echo "$ac_t""yes" 1>&6
2048 else
2049 echo "$ac_t""no" 1>&6
2053 # Check for any special flags to pass to ltconfig.
2054 libtool_flags="--cache-file=$cache_file"
2055 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2056 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2057 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2058 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
2059 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2060 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2061 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2063 # Some flags need to be propagated to the compiler or linker for good
2064 # libtool support.
2065 case "$host" in
2066 *-*-irix6*)
2067 # Find out which ABI we are using.
2068 echo '#line 2069 "configure"' > conftest.$ac_ext
2069 if { (eval echo configure:2070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2070 case "`/usr/bin/file conftest.o`" in
2071 *32-bit*)
2072 LD="${LD-ld} -32"
2074 *N32*)
2075 LD="${LD-ld} -n32"
2077 *64-bit*)
2078 LD="${LD-ld} -64"
2080 esac
2082 rm -rf conftest*
2085 *-*-sco3.2v5*)
2086 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2087 SAVE_CFLAGS="$CFLAGS"
2088 CFLAGS="$CFLAGS -belf"
2089 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2090 echo "configure:2091: checking whether the C compiler needs -belf" >&5
2091 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2098 int main() {
2100 ; return 0; }
2102 if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2103 rm -rf conftest*
2104 lt_cv_cc_needs_belf=yes
2105 else
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 rm -rf conftest*
2109 lt_cv_cc_needs_belf=no
2111 rm -f conftest*
2114 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2115 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2117 CFLAGS="$SAVE_CFLAGS"
2121 *-*-cygwin*)
2122 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2123 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_word" >&5
2126 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129 if test -n "$DLLTOOL"; then
2130 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2131 else
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2133 ac_dummy="$PATH"
2134 for ac_dir in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/$ac_word; then
2137 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2138 break
2140 done
2141 IFS="$ac_save_ifs"
2144 DLLTOOL="$ac_cv_prog_DLLTOOL"
2145 if test -n "$DLLTOOL"; then
2146 echo "$ac_t""$DLLTOOL" 1>&6
2147 else
2148 echo "$ac_t""no" 1>&6
2152 if test -z "$ac_cv_prog_DLLTOOL"; then
2153 if test -n "$ac_tool_prefix"; then
2154 # Extract the first word of "dlltool", so it can be a program name with args.
2155 set dummy dlltool; ac_word=$2
2156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2157 echo "configure:2158: checking for $ac_word" >&5
2158 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2160 else
2161 if test -n "$DLLTOOL"; then
2162 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2163 else
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 ac_dummy="$PATH"
2166 for ac_dir in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir=.
2168 if test -f $ac_dir/$ac_word; then
2169 ac_cv_prog_DLLTOOL="dlltool"
2170 break
2172 done
2173 IFS="$ac_save_ifs"
2174 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2177 DLLTOOL="$ac_cv_prog_DLLTOOL"
2178 if test -n "$DLLTOOL"; then
2179 echo "$ac_t""$DLLTOOL" 1>&6
2180 else
2181 echo "$ac_t""no" 1>&6
2184 else
2185 DLLTOOL="false"
2189 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}as; ac_word=$2
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2192 echo "configure:2193: checking for $ac_word" >&5
2193 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2195 else
2196 if test -n "$AS"; then
2197 ac_cv_prog_AS="$AS" # Let the user override the test.
2198 else
2199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2200 ac_dummy="$PATH"
2201 for ac_dir in $ac_dummy; do
2202 test -z "$ac_dir" && ac_dir=.
2203 if test -f $ac_dir/$ac_word; then
2204 ac_cv_prog_AS="${ac_tool_prefix}as"
2205 break
2207 done
2208 IFS="$ac_save_ifs"
2211 AS="$ac_cv_prog_AS"
2212 if test -n "$AS"; then
2213 echo "$ac_t""$AS" 1>&6
2214 else
2215 echo "$ac_t""no" 1>&6
2219 if test -z "$ac_cv_prog_AS"; then
2220 if test -n "$ac_tool_prefix"; then
2221 # Extract the first word of "as", so it can be a program name with args.
2222 set dummy as; ac_word=$2
2223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_word" >&5
2225 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2227 else
2228 if test -n "$AS"; then
2229 ac_cv_prog_AS="$AS" # Let the user override the test.
2230 else
2231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2232 ac_dummy="$PATH"
2233 for ac_dir in $ac_dummy; do
2234 test -z "$ac_dir" && ac_dir=.
2235 if test -f $ac_dir/$ac_word; then
2236 ac_cv_prog_AS="as"
2237 break
2239 done
2240 IFS="$ac_save_ifs"
2241 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2244 AS="$ac_cv_prog_AS"
2245 if test -n "$AS"; then
2246 echo "$ac_t""$AS" 1>&6
2247 else
2248 echo "$ac_t""no" 1>&6
2251 else
2252 AS="false"
2259 esac
2261 # enable the --disable-libtool-lock switch
2263 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2264 if test "${enable_libtool_lock+set}" = set; then
2265 enableval="$enable_libtool_lock"
2266 need_locks=$enableval
2267 else
2268 need_locks=yes
2272 if test x"$need_locks" = xno; then
2273 libtool_flags="$libtool_flags --disable-lock"
2277 # Save cache, so that ltconfig can load it
2278 cat > confcache <<\EOF
2279 # This file is a shell script that caches the results of configure
2280 # tests run on this system so they can be shared between configure
2281 # scripts and configure runs. It is not useful on other systems.
2282 # If it contains results you don't want to keep, you may remove or edit it.
2284 # By default, configure uses ./config.cache as the cache file,
2285 # creating it if it does not exist already. You can give configure
2286 # the --cache-file=FILE option to use a different cache file; that is
2287 # what configure does when it calls configure scripts in
2288 # subdirectories, so they share the cache.
2289 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2290 # config.status only pays attention to the cache file if you give it the
2291 # --recheck option to rerun configure.
2294 # The following way of writing the cache mishandles newlines in values,
2295 # but we know of no workaround that is simple, portable, and efficient.
2296 # So, don't put newlines in cache variables' values.
2297 # Ultrix sh set writes to stderr and can't be redirected directly,
2298 # and sets the high bit in the cache file unless we assign to the vars.
2299 (set) 2>&1 |
2300 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2301 *ac_space=\ *)
2302 # `set' does not quote correctly, so add quotes (double-quote substitution
2303 # turns \\\\ into \\, and sed turns \\ into \).
2304 sed -n \
2305 -e "s/'/'\\\\''/g" \
2306 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2309 # `set' quotes correctly as required by POSIX, so do not add quotes.
2310 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2312 esac >> confcache
2313 if cmp -s $cache_file confcache; then
2315 else
2316 if test -w $cache_file; then
2317 echo "updating cache $cache_file"
2318 cat confcache > $cache_file
2319 else
2320 echo "not updating unwritable cache $cache_file"
2323 rm -f confcache
2326 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2327 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2328 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2329 DLLTOOL="$DLLTOOL" AS="$AS" \
2330 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2331 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2332 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2334 # Reload cache, that may have been modified by ltconfig
2335 if test -r "$cache_file"; then
2336 echo "loading cache $cache_file"
2337 . $cache_file
2338 else
2339 echo "creating cache $cache_file"
2340 > $cache_file
2344 # This can be used to rebuild libtool when needed
2345 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2347 # Always use our own libtool.
2348 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2350 # Redirect the config.log output again, so that the ltconfig log is not
2351 # clobbered by the next message.
2352 exec 5>>./config.log
2355 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2356 COMPPATH=.
2357 else
2358 COMPPATH=..
2364 if test -d $srcdir/testsuite; then
2365 TESTSUBDIR_TRUE=
2366 TESTSUBDIR_FALSE='#'
2367 else
2368 TESTSUBDIR_TRUE='#'
2369 TESTSUBDIR_FALSE=
2372 # Check whether --enable-fast-character or --disable-fast-character was given.
2373 if test "${enable_fast_character+set}" = set; then
2374 enableval="$enable_fast_character"
2375 # Nothing
2377 else
2378 cat >> confdefs.h <<\EOF
2379 #define COMPACT_CHARACTER 1
2385 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2386 if test "${enable_libgcj_debug+set}" = set; then
2387 enableval="$enable_libgcj_debug"
2388 if test "$enable_libgcj_debug" = yes; then
2389 cat >> confdefs.h <<\EOF
2390 #define DEBUG 1
2397 # Check whether --enable-interpreter or --disable-interpreter was given.
2398 if test "${enable_interpreter+set}" = set; then
2399 enableval="$enable_interpreter"
2400 if test "$enable_interpreter" = yes; then
2401 cat >> confdefs.h <<\EOF
2402 #define INTERPRETER 1
2409 TARGET_ECOS="no"
2410 # Check whether --with-ecos or --without-ecos was given.
2411 if test "${with_ecos+set}" = set; then
2412 withval="$with_ecos"
2413 TARGET_ECOS="$with_ecos"
2418 case "$TARGET_ECOS" in
2420 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2421 PROCESS=${PROCESS-Posix}
2424 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2425 PROCESS=Ecos
2426 cat >> confdefs.h <<\EOF
2427 #define ECOS 1
2431 esac
2433 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2434 echo "configure:2435: checking how to run the C preprocessor" >&5
2435 # On Suns, sometimes $CPP names a directory.
2436 if test -n "$CPP" && test -d "$CPP"; then
2437 CPP=
2439 if test -z "$CPP"; then
2440 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2442 else
2443 # This must be in double quotes, not single quotes, because CPP may get
2444 # substituted into the Makefile and "${CC-cc}" will confuse make.
2445 CPP="${CC-cc} -E"
2446 # On the NeXT, cc -E runs the code through the compiler's parser,
2447 # not just through cpp.
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2451 #include <assert.h>
2452 Syntax Error
2454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2455 { (eval echo configure:2456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2457 if test -z "$ac_err"; then
2459 else
2460 echo "$ac_err" >&5
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2463 rm -rf conftest*
2464 CPP="${CC-cc} -E -traditional-cpp"
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <assert.h>
2469 Syntax Error
2471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2476 else
2477 echo "$ac_err" >&5
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 rm -rf conftest*
2481 CPP="${CC-cc} -nologo -E"
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 #include <assert.h>
2486 Syntax Error
2488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2493 else
2494 echo "$ac_err" >&5
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 rm -rf conftest*
2498 CPP=/lib/cpp
2500 rm -f conftest*
2502 rm -f conftest*
2504 rm -f conftest*
2505 ac_cv_prog_CPP="$CPP"
2507 CPP="$ac_cv_prog_CPP"
2508 else
2509 ac_cv_prog_CPP="$CPP"
2511 echo "$ac_t""$CPP" 1>&6
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2516 #include <stdint.h>
2518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2519 egrep "uint32_t" >/dev/null 2>&1; then
2520 rm -rf conftest*
2521 cat >> confdefs.h <<\EOF
2522 #define HAVE_INT32_DEFINED 1
2526 rm -f conftest*
2528 cat > conftest.$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2531 #include <inttypes.h>
2533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2534 egrep "uint32_t" >/dev/null 2>&1; then
2535 rm -rf conftest*
2536 cat >> confdefs.h <<\EOF
2537 #define HAVE_INT32_DEFINED 1
2541 rm -f conftest*
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #include <sys/types.h>
2548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2549 egrep "u_int32_t" >/dev/null 2>&1; then
2550 rm -rf conftest*
2551 cat >> confdefs.h <<\EOF
2552 #define HAVE_BSD_INT32_DEFINED 1
2556 rm -f conftest*
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 #include <sys/config.h>
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564 egrep "u_int32_t" >/dev/null 2>&1; then
2565 rm -rf conftest*
2566 cat >> confdefs.h <<\EOF
2567 #define HAVE_BSD_INT32_DEFINED 1
2571 rm -f conftest*
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 #include <time.h>
2580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2581 egrep "mktime" >/dev/null 2>&1; then
2582 rm -rf conftest*
2583 cat >> confdefs.h <<\EOF
2584 #define HAVE_MKTIME 1
2588 rm -f conftest*
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <time.h>
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596 egrep "localtime" >/dev/null 2>&1; then
2597 rm -rf conftest*
2598 cat >> confdefs.h <<\EOF
2599 #define HAVE_LOCALTIME 1
2603 rm -f conftest*
2606 test -d java || mkdir java
2607 test -d java/io || mkdir java/io
2610 test -d java/lang || mkdir java/lang
2614 SYSTEMSPEC=
2617 # Check whether --with-system-zlib or --without-system-zlib was given.
2618 if test "${with_system_zlib+set}" = set; then
2619 withval="$with_system_zlib"
2623 ZLIBSPEC=
2626 libsubdir=.libs
2628 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2629 echo "configure:2630: checking for garbage collector to use" >&5
2630 # Check whether --enable-java-gc or --disable-java-gc was given.
2631 if test "${enable_java_gc+set}" = set; then
2632 enableval="$enable_java_gc"
2634 GC=$enableval
2635 else
2636 GC=boehm
2639 GCLIBS=
2640 GCINCS=
2641 GCDEPS=
2642 GCOBJS=
2643 GCSPEC=
2644 case "$GC" in
2645 boehm)
2646 echo "$ac_t""boehm" 1>&6
2647 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2648 # We include the path to the boehm-gc build directory.
2649 # See Makefile.am to understand why.
2650 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2651 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2652 GCSPEC='-lgcjgc'
2653 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2654 GCOBJS=boehm.lo
2655 GCHDR=boehm-gc.h
2656 cat >> confdefs.h <<\EOF
2657 #define HAVE_BOEHM_GC 1
2662 echo "$ac_t""none" 1>&6
2663 GCOBJS=nogc.lo
2664 GCHDR=no-gc.h
2667 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2669 esac
2678 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2679 echo "configure:2680: checking for threads package to use" >&5
2680 # Check whether --enable-threads or --disable-threads was given.
2681 if test "${enable_threads+set}" = set; then
2682 enableval="$enable_threads"
2683 THREADS=$enableval
2684 else
2685 THREADS=no
2689 if test "$THREADS" = yes; then
2690 case "$host" in
2691 *-*-vxworks*)
2692 THREADS=vxworks
2694 *-*-linux*)
2695 # FIXME: this isn't correct in all cases.
2696 THREADS=posix
2698 *-*-win*)
2699 THREADS=win32
2701 *-*-irix*)
2702 # FIXME: for now, choose POSIX, because we implement that.
2703 # Later, choose irix threads.
2704 THREADS=posix
2706 *-*-solaris*)
2707 # FIXME: for now, choose POSIX, because we implement that.
2708 # Later, choose solaris threads.
2709 THREADS=posix
2712 # For now.
2713 THREADS=none
2715 esac
2718 case "$THREADS" in
2719 no | none | single)
2720 THREADS=none
2722 posix | pthreads)
2723 THREADS=posix
2724 case "$host" in
2725 *-*-linux*)
2726 cat >> confdefs.h <<\EOF
2727 #define LINUX_THREADS 1
2731 esac
2735 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2736 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2739 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2741 esac
2742 echo "$ac_t""$THREADS" 1>&6
2744 THREADLIBS=
2745 THREADINCS=
2746 THREADDEPS=
2747 THREADOBJS=
2748 THREADH=
2749 THREADSPEC=
2750 case "$THREADS" in
2751 posix)
2752 THREADLIBS=-lpthread
2753 THREADSPEC=-lpthread
2754 THREADOBJS=posix-threads.lo
2755 THREADH=posix-threads.h
2756 # MIT pthreads doesn't seem to have the mutexattr functions.
2757 # But for now we don't check for it. We just assume you aren't
2758 # using MIT pthreads.
2759 cat >> confdefs.h <<\EOF
2760 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2766 THREADDEPS='$(top_builddir)/../qthreads/libgcjcoop.la'
2767 # We include the path to the qthreads build directory.
2768 # See Makefile.am to understand why.
2769 THREADLIBS="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2770 THREADSPEC='-lgcjcoop'
2771 THREADOBJS=quick-threads.lo
2772 THREADINCS='-I$(top_srcdir)/../qthreads'
2773 THREADH=quick-threads.h
2776 none)
2777 THREADOBJS=no-threads.lo
2778 THREADH=no-threads.h
2780 esac
2790 if test "$GCC" = yes; then
2791 USING_GCC_TRUE=
2792 USING_GCC_FALSE='#'
2793 else
2794 USING_GCC_TRUE='#'
2795 USING_GCC_FALSE=
2798 CANADIAN=no
2799 NULL_TARGET=no
2801 # Find eh-common.h and support headers. If we're in the tree with
2802 # gcc, then look there. Otherwise look in compat-include. If all else
2803 # fails, just hope the user has set things up somehow.
2804 if test -r $srcdir/../gcc/eh-common.h; then
2805 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2806 else
2807 if test -d $srcdir/../compat-include; then
2808 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2809 else
2810 EH_COMMON_INCLUDE=
2814 if test -n "${with_cross_host}"; then
2815 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2816 # may not work correctly, because the compiler may not be able to
2817 # link executables.
2819 # We assume newlib. This lets us hard-code the functions we know
2820 # we'll have.
2821 cat >> confdefs.h <<\EOF
2822 #define HAVE_MEMMOVE 1
2825 cat >> confdefs.h <<\EOF
2826 #define HAVE_MEMCPY 1
2829 cat >> confdefs.h <<\EOF
2830 #define HAVE_STRERROR 1
2833 cat >> confdefs.h <<\EOF
2834 #define HAVE_GMTIME_R 1
2837 cat >> confdefs.h <<\EOF
2838 #define HAVE_LOCALTIME_R 1
2841 cat >> confdefs.h <<\EOF
2842 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2845 cat >> confdefs.h <<\EOF
2846 #define HAVE_ALLOCA 1
2850 ZLIBSPEC=-lgcj
2852 # If Canadian cross, then don't pick up tools from the build
2853 # directory.
2854 if test "$build" != "$with_cross_host"; then
2855 CANADIAN=yes
2856 EH_COMMON_INCLUDE=
2857 GCJ="${target_alias}/gcj"
2858 else
2859 GCJ=
2861 else
2862 for ac_func in strerror ioctl select fstat open fsync sleep
2864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_func" >&5
2866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2868 else
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 /* System header to define __stub macros and hopefully few prototypes,
2873 which can conflict with char $ac_func(); below. */
2874 #include <assert.h>
2875 /* Override any gcc2 internal prototype to avoid an error. */
2876 /* We use char because int might match the return type of a gcc2
2877 builtin and then its argument prototype would still apply. */
2878 char $ac_func();
2880 int main() {
2882 /* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2886 choke me
2887 #else
2888 $ac_func();
2889 #endif
2891 ; return 0; }
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2894 rm -rf conftest*
2895 eval "ac_cv_func_$ac_func=yes"
2896 else
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2899 rm -rf conftest*
2900 eval "ac_cv_func_$ac_func=no"
2902 rm -f conftest*
2905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2908 cat >> confdefs.h <<EOF
2909 #define $ac_tr_func 1
2912 else
2913 echo "$ac_t""no" 1>&6
2915 done
2917 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
2919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2920 echo "configure:2921: checking for $ac_func" >&5
2921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2923 else
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 /* System header to define __stub macros and hopefully few prototypes,
2928 which can conflict with char $ac_func(); below. */
2929 #include <assert.h>
2930 /* Override any gcc2 internal prototype to avoid an error. */
2931 /* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2933 char $ac_func();
2935 int main() {
2937 /* The GNU C library defines this for functions which it implements
2938 to always fail with ENOSYS. Some functions are actually named
2939 something starting with __ and the normal name is an alias. */
2940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2941 choke me
2942 #else
2943 $ac_func();
2944 #endif
2946 ; return 0; }
2948 if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2949 rm -rf conftest*
2950 eval "ac_cv_func_$ac_func=yes"
2951 else
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2954 rm -rf conftest*
2955 eval "ac_cv_func_$ac_func=no"
2957 rm -f conftest*
2960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2963 cat >> confdefs.h <<EOF
2964 #define $ac_tr_func 1
2967 else
2968 echo "$ac_t""no" 1>&6
2970 done
2972 for ac_func in access stat mkdir rename rmdir unlink realpath
2974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2975 echo "configure:2976: checking for $ac_func" >&5
2976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2978 else
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 /* System header to define __stub macros and hopefully few prototypes,
2983 which can conflict with char $ac_func(); below. */
2984 #include <assert.h>
2985 /* Override any gcc2 internal prototype to avoid an error. */
2986 /* We use char because int might match the return type of a gcc2
2987 builtin and then its argument prototype would still apply. */
2988 char $ac_func();
2990 int main() {
2992 /* The GNU C library defines this for functions which it implements
2993 to always fail with ENOSYS. Some functions are actually named
2994 something starting with __ and the normal name is an alias. */
2995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2996 choke me
2997 #else
2998 $ac_func();
2999 #endif
3001 ; return 0; }
3003 if { (eval echo configure:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3004 rm -rf conftest*
3005 eval "ac_cv_func_$ac_func=yes"
3006 else
3007 echo "configure: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3009 rm -rf conftest*
3010 eval "ac_cv_func_$ac_func=no"
3012 rm -f conftest*
3015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3016 echo "$ac_t""yes" 1>&6
3017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3018 cat >> confdefs.h <<EOF
3019 #define $ac_tr_func 1
3022 else
3023 echo "$ac_t""no" 1>&6
3025 done
3027 for ac_func in inet_aton inet_addr
3029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_func" >&5
3031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3033 else
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 /* System header to define __stub macros and hopefully few prototypes,
3038 which can conflict with char $ac_func(); below. */
3039 #include <assert.h>
3040 /* Override any gcc2 internal prototype to avoid an error. */
3041 /* We use char because int might match the return type of a gcc2
3042 builtin and then its argument prototype would still apply. */
3043 char $ac_func();
3045 int main() {
3047 /* The GNU C library defines this for functions which it implements
3048 to always fail with ENOSYS. Some functions are actually named
3049 something starting with __ and the normal name is an alias. */
3050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3051 choke me
3052 #else
3053 $ac_func();
3054 #endif
3056 ; return 0; }
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3059 rm -rf conftest*
3060 eval "ac_cv_func_$ac_func=yes"
3061 else
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3064 rm -rf conftest*
3065 eval "ac_cv_func_$ac_func=no"
3067 rm -f conftest*
3070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3073 cat >> confdefs.h <<EOF
3074 #define $ac_tr_func 1
3076 break
3077 else
3078 echo "$ac_t""no" 1>&6
3080 done
3082 for ac_func in inet_pton uname inet_ntoa
3084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_func" >&5
3086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3088 else
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* System header to define __stub macros and hopefully few prototypes,
3093 which can conflict with char $ac_func(); below. */
3094 #include <assert.h>
3095 /* Override any gcc2 internal prototype to avoid an error. */
3096 /* We use char because int might match the return type of a gcc2
3097 builtin and then its argument prototype would still apply. */
3098 char $ac_func();
3100 int main() {
3102 /* The GNU C library defines this for functions which it implements
3103 to always fail with ENOSYS. Some functions are actually named
3104 something starting with __ and the normal name is an alias. */
3105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3106 choke me
3107 #else
3108 $ac_func();
3109 #endif
3111 ; return 0; }
3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3114 rm -rf conftest*
3115 eval "ac_cv_func_$ac_func=yes"
3116 else
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 rm -rf conftest*
3120 eval "ac_cv_func_$ac_func=no"
3122 rm -f conftest*
3125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3126 echo "$ac_t""yes" 1>&6
3127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3128 cat >> confdefs.h <<EOF
3129 #define $ac_tr_func 1
3132 else
3133 echo "$ac_t""no" 1>&6
3135 done
3138 for ac_func in gethostbyname_r
3140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3141 echo "configure:3142: checking for $ac_func" >&5
3142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3144 else
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 /* System header to define __stub macros and hopefully few prototypes,
3149 which can conflict with char $ac_func(); below. */
3150 #include <assert.h>
3151 /* Override any gcc2 internal prototype to avoid an error. */
3152 /* We use char because int might match the return type of a gcc2
3153 builtin and then its argument prototype would still apply. */
3154 char $ac_func();
3156 int main() {
3158 /* The GNU C library defines this for functions which it implements
3159 to always fail with ENOSYS. Some functions are actually named
3160 something starting with __ and the normal name is an alias. */
3161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3162 choke me
3163 #else
3164 $ac_func();
3165 #endif
3167 ; return 0; }
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3170 rm -rf conftest*
3171 eval "ac_cv_func_$ac_func=yes"
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 eval "ac_cv_func_$ac_func=no"
3178 rm -f conftest*
3181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3184 cat >> confdefs.h <<EOF
3185 #define $ac_tr_func 1
3188 cat >> confdefs.h <<\EOF
3189 #define HAVE_GETHOSTBYNAME_R 1
3192 # There are two different kinds of gethostbyname_r.
3193 # We look for the one that returns `int'.
3194 # Hopefully this check is robust enough.
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 #include <netdb.h>
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3202 rm -rf conftest*
3204 cat >> confdefs.h <<\EOF
3205 #define GETHOSTBYNAME_R_RETURNS_INT 1
3209 rm -f conftest*
3212 case " $GCINCS " in
3213 *" -D_REENTRANT "*) ;;
3215 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3216 echo "configure:3217: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3217 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3219 else
3221 ac_ext=C
3222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3223 ac_cpp='$CXXCPP $CPPFLAGS'
3224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3226 cross_compiling=$ac_cv_prog_cxx_cross
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 #include <netdb.h>
3232 int main() {
3233 gethostbyname_r("", 0, 0);
3234 ; return 0; }
3236 if { (eval echo configure:3237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 rm -rf conftest*
3238 libjava_cv_gethostbyname_r_needs_reentrant=no
3239 else
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 rm -rf conftest*
3243 CPPFLAGS_SAVE="$CPPFLAGS"
3244 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
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=yes
3256 else
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 rm -rf conftest*
3260 libjava_cv_gethostbyname_r_needs_reentrant=fail
3262 rm -f conftest*
3263 CPPFLAGS="$CPPFLAGS_SAVE"
3266 rm -f conftest*
3267 ac_ext=c
3268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3272 cross_compiling=$ac_cv_prog_cc_cross
3277 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3278 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3279 cat >> confdefs.h <<\EOF
3280 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3285 esac
3287 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3288 echo "configure:3289: checking for struct hostent_data" >&5
3289 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3291 else
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3296 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3297 # define _REENTRANT 1
3298 #endif
3299 #include <netdb.h>
3300 int main() {
3301 struct hostent_data data;
3302 ; return 0; }
3304 if { (eval echo configure:3305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3305 rm -rf conftest*
3306 libjava_cv_struct_hostent_data=yes
3307 else
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3310 rm -rf conftest*
3311 libjava_cv_struct_hostent_data=no
3313 rm -f conftest*
3316 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3317 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3318 cat >> confdefs.h <<\EOF
3319 #define HAVE_STRUCT_HOSTENT_DATA 1
3324 else
3325 echo "$ac_t""no" 1>&6
3327 done
3330 for ac_func in gethostbyaddr_r
3332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_func" >&5
3334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3336 else
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 /* System header to define __stub macros and hopefully few prototypes,
3341 which can conflict with char $ac_func(); below. */
3342 #include <assert.h>
3343 /* Override any gcc2 internal prototype to avoid an error. */
3344 /* We use char because int might match the return type of a gcc2
3345 builtin and then its argument prototype would still apply. */
3346 char $ac_func();
3348 int main() {
3350 /* The GNU C library defines this for functions which it implements
3351 to always fail with ENOSYS. Some functions are actually named
3352 something starting with __ and the normal name is an alias. */
3353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3354 choke me
3355 #else
3356 $ac_func();
3357 #endif
3359 ; return 0; }
3361 if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3362 rm -rf conftest*
3363 eval "ac_cv_func_$ac_func=yes"
3364 else
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3367 rm -rf conftest*
3368 eval "ac_cv_func_$ac_func=no"
3370 rm -f conftest*
3373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3376 cat >> confdefs.h <<EOF
3377 #define $ac_tr_func 1
3380 cat >> confdefs.h <<\EOF
3381 #define HAVE_GETHOSTBYADDR_R 1
3384 # There are two different kinds of gethostbyaddr_r.
3385 # We look for the one that returns `int'.
3386 # Hopefully this check is robust enough.
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <netdb.h>
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3394 rm -rf conftest*
3396 cat >> confdefs.h <<\EOF
3397 #define GETHOSTBYADDR_R_RETURNS_INT 1
3401 rm -f conftest*
3403 else
3404 echo "$ac_t""no" 1>&6
3406 done
3409 for ac_func in gethostname
3411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_func" >&5
3413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3415 else
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* System header to define __stub macros and hopefully few prototypes,
3420 which can conflict with char $ac_func(); below. */
3421 #include <assert.h>
3422 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3425 char $ac_func();
3427 int main() {
3429 /* The GNU C library defines this for functions which it implements
3430 to always fail with ENOSYS. Some functions are actually named
3431 something starting with __ and the normal name is an alias. */
3432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3433 choke me
3434 #else
3435 $ac_func();
3436 #endif
3438 ; return 0; }
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3441 rm -rf conftest*
3442 eval "ac_cv_func_$ac_func=yes"
3443 else
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3446 rm -rf conftest*
3447 eval "ac_cv_func_$ac_func=no"
3449 rm -f conftest*
3452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3455 cat >> confdefs.h <<EOF
3456 #define $ac_tr_func 1
3459 cat >> confdefs.h <<\EOF
3460 #define HAVE_GETHOSTNAME 1
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <unistd.h>
3468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469 egrep "gethostname" >/dev/null 2>&1; then
3470 rm -rf conftest*
3472 cat >> confdefs.h <<\EOF
3473 #define HAVE_GETHOSTNAME_DECL 1
3477 rm -f conftest*
3479 else
3480 echo "$ac_t""no" 1>&6
3482 done
3485 # Look for these functions in the thread library, but only bother
3486 # if using POSIX threads.
3487 if test "$THREADS" = posix; then
3488 save_LIBS="$LIBS"
3489 LIBS="$LIBS $THREADLIBS"
3490 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3491 # E.g., Solaris.
3492 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3495 echo "configure:3496: checking for $ac_func" >&5
3496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3498 else
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* System header to define __stub macros and hopefully few prototypes,
3503 which can conflict with char $ac_func(); below. */
3504 #include <assert.h>
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508 char $ac_func();
3510 int main() {
3512 /* The GNU C library defines this for functions which it implements
3513 to always fail with ENOSYS. Some functions are actually named
3514 something starting with __ and the normal name is an alias. */
3515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3516 choke me
3517 #else
3518 $ac_func();
3519 #endif
3521 ; return 0; }
3523 if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3524 rm -rf conftest*
3525 eval "ac_cv_func_$ac_func=yes"
3526 else
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3529 rm -rf conftest*
3530 eval "ac_cv_func_$ac_func=no"
3532 rm -f conftest*
3535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3538 cat >> confdefs.h <<EOF
3539 #define $ac_tr_func 1
3542 else
3543 echo "$ac_t""no" 1>&6
3545 done
3548 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3549 # Solaris 7 the name librt is preferred.
3550 for ac_func in sched_yield
3552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3553 echo "configure:3554: checking for $ac_func" >&5
3554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3556 else
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* System header to define __stub macros and hopefully few prototypes,
3561 which can conflict with char $ac_func(); below. */
3562 #include <assert.h>
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3566 char $ac_func();
3568 int main() {
3570 /* The GNU C library defines this for functions which it implements
3571 to always fail with ENOSYS. Some functions are actually named
3572 something starting with __ and the normal name is an alias. */
3573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3574 choke me
3575 #else
3576 $ac_func();
3577 #endif
3579 ; return 0; }
3581 if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3582 rm -rf conftest*
3583 eval "ac_cv_func_$ac_func=yes"
3584 else
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3587 rm -rf conftest*
3588 eval "ac_cv_func_$ac_func=no"
3590 rm -f conftest*
3593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3596 cat >> confdefs.h <<EOF
3597 #define $ac_tr_func 1
3600 else
3601 echo "$ac_t""no" 1>&6
3602 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3603 echo "configure:3604: checking for sched_yield in -lrt" >&5
3604 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3607 else
3608 ac_save_LIBS="$LIBS"
3609 LIBS="-lrt $LIBS"
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 /* Override any gcc2 internal prototype to avoid an error. */
3614 /* We use char because int might match the return type of a gcc2
3615 builtin and then its argument prototype would still apply. */
3616 char sched_yield();
3618 int main() {
3619 sched_yield()
3620 ; return 0; }
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 rm -rf conftest*
3624 eval "ac_cv_lib_$ac_lib_var=yes"
3625 else
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3628 rm -rf conftest*
3629 eval "ac_cv_lib_$ac_lib_var=no"
3631 rm -f conftest*
3632 LIBS="$ac_save_LIBS"
3635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3638 cat >> confdefs.h <<\EOF
3639 #define HAVE_SCHED_YIELD 1
3642 THREADLIBS="$THREADLIBS -lrt"
3643 THREADSPEC="$THREADSPEC -lrt"
3644 else
3645 echo "$ac_t""no" 1>&6
3647 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3648 echo "configure:3649: checking for sched_yield in -lposix4" >&5
3649 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3652 else
3653 ac_save_LIBS="$LIBS"
3654 LIBS="-lposix4 $LIBS"
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661 char sched_yield();
3663 int main() {
3664 sched_yield()
3665 ; return 0; }
3667 if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3668 rm -rf conftest*
3669 eval "ac_cv_lib_$ac_lib_var=yes"
3670 else
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 rm -rf conftest*
3674 eval "ac_cv_lib_$ac_lib_var=no"
3676 rm -f conftest*
3677 LIBS="$ac_save_LIBS"
3680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3683 cat >> confdefs.h <<\EOF
3684 #define HAVE_SCHED_YIELD 1
3687 THREADLIBS="$THREADLIBS -lposix4"
3688 THREADSPEC="$THREADSPEC -lposix4"
3689 else
3690 echo "$ac_t""no" 1>&6
3696 done
3698 LIBS="$save_LIBS"
3700 # We can save a little space at runtime if the mutex has m_count
3701 # or __m_count. This is a nice hack for Linux.
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 #include <pthread.h>
3706 int main() {
3708 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3710 ; return 0; }
3712 if { (eval echo configure:3713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3713 rm -rf conftest*
3714 cat >> confdefs.h <<\EOF
3715 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3718 else
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 rm -rf conftest*
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include <pthread.h>
3727 int main() {
3729 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3731 ; return 0; }
3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3734 rm -rf conftest*
3735 cat >> confdefs.h <<\EOF
3736 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3739 else
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3743 rm -f conftest*
3745 rm -f conftest*
3748 # We require a way to get the time.
3749 time_found=no
3750 for ac_func in gettimeofday time ftime
3752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3753 echo "configure:3754: checking for $ac_func" >&5
3754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3756 else
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 /* System header to define __stub macros and hopefully few prototypes,
3761 which can conflict with char $ac_func(); below. */
3762 #include <assert.h>
3763 /* Override any gcc2 internal prototype to avoid an error. */
3764 /* We use char because int might match the return type of a gcc2
3765 builtin and then its argument prototype would still apply. */
3766 char $ac_func();
3768 int main() {
3770 /* The GNU C library defines this for functions which it implements
3771 to always fail with ENOSYS. Some functions are actually named
3772 something starting with __ and the normal name is an alias. */
3773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3774 choke me
3775 #else
3776 $ac_func();
3777 #endif
3779 ; return 0; }
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3782 rm -rf conftest*
3783 eval "ac_cv_func_$ac_func=yes"
3784 else
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3787 rm -rf conftest*
3788 eval "ac_cv_func_$ac_func=no"
3790 rm -f conftest*
3793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3796 cat >> confdefs.h <<EOF
3797 #define $ac_tr_func 1
3799 time_found=yes
3800 else
3801 echo "$ac_t""no" 1>&6
3803 done
3805 if test "$time_found" = no; then
3806 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3809 for ac_func in memmove
3811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3812 echo "configure:3813: checking for $ac_func" >&5
3813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3815 else
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 /* System header to define __stub macros and hopefully few prototypes,
3820 which can conflict with char $ac_func(); below. */
3821 #include <assert.h>
3822 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3825 char $ac_func();
3827 int main() {
3829 /* The GNU C library defines this for functions which it implements
3830 to always fail with ENOSYS. Some functions are actually named
3831 something starting with __ and the normal name is an alias. */
3832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3833 choke me
3834 #else
3835 $ac_func();
3836 #endif
3838 ; return 0; }
3840 if { (eval echo configure:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3841 rm -rf conftest*
3842 eval "ac_cv_func_$ac_func=yes"
3843 else
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 rm -rf conftest*
3847 eval "ac_cv_func_$ac_func=no"
3849 rm -f conftest*
3852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3853 echo "$ac_t""yes" 1>&6
3854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3855 cat >> confdefs.h <<EOF
3856 #define $ac_tr_func 1
3859 else
3860 echo "$ac_t""no" 1>&6
3862 done
3865 # We require memcpy.
3866 memcpy_found=no
3867 for ac_func in memcpy
3869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3870 echo "configure:3871: checking for $ac_func" >&5
3871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3873 else
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 /* System header to define __stub macros and hopefully few prototypes,
3878 which can conflict with char $ac_func(); below. */
3879 #include <assert.h>
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char $ac_func();
3885 int main() {
3887 /* The GNU C library defines this for functions which it implements
3888 to always fail with ENOSYS. Some functions are actually named
3889 something starting with __ and the normal name is an alias. */
3890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3891 choke me
3892 #else
3893 $ac_func();
3894 #endif
3896 ; return 0; }
3898 if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3899 rm -rf conftest*
3900 eval "ac_cv_func_$ac_func=yes"
3901 else
3902 echo "configure: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3904 rm -rf conftest*
3905 eval "ac_cv_func_$ac_func=no"
3907 rm -f conftest*
3910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3911 echo "$ac_t""yes" 1>&6
3912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3913 cat >> confdefs.h <<EOF
3914 #define $ac_tr_func 1
3916 memcpy_found=yes
3917 else
3918 echo "$ac_t""no" 1>&6
3920 done
3922 if test "$memcpy_found" = no; then
3923 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3926 # Some library-finding code we stole from Tcl.
3927 #--------------------------------------------------------------------
3928 # Check for the existence of the -lsocket and -lnsl libraries.
3929 # The order here is important, so that they end up in the right
3930 # order in the command line generated by make. Here are some
3931 # special considerations:
3932 # 1. Use "connect" and "accept" to check for -lsocket, and
3933 # "gethostbyname" to check for -lnsl.
3934 # 2. Use each function name only once: can't redo a check because
3935 # autoconf caches the results of the last check and won't redo it.
3936 # 3. Use -lnsl and -lsocket only if they supply procedures that
3937 # aren't already present in the normal libraries. This is because
3938 # IRIX 5.2 has libraries, but they aren't needed and they're
3939 # bogus: they goof up name resolution if used.
3940 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3941 # To get around this problem, check for both libraries together
3942 # if -lsocket doesn't work by itself.
3943 #--------------------------------------------------------------------
3945 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3946 echo "configure:3947: checking for socket libraries" >&5
3947 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3949 else
3950 gcj_cv_lib_sockets=
3951 gcj_checkBoth=0
3952 unset ac_cv_func_connect
3953 echo $ac_n "checking for connect""... $ac_c" 1>&6
3954 echo "configure:3955: checking for connect" >&5
3955 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3957 else
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 /* System header to define __stub macros and hopefully few prototypes,
3962 which can conflict with char connect(); below. */
3963 #include <assert.h>
3964 /* Override any gcc2 internal prototype to avoid an error. */
3965 /* We use char because int might match the return type of a gcc2
3966 builtin and then its argument prototype would still apply. */
3967 char connect();
3969 int main() {
3971 /* The GNU C library defines this for functions which it implements
3972 to always fail with ENOSYS. Some functions are actually named
3973 something starting with __ and the normal name is an alias. */
3974 #if defined (__stub_connect) || defined (__stub___connect)
3975 choke me
3976 #else
3977 connect();
3978 #endif
3980 ; return 0; }
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3983 rm -rf conftest*
3984 eval "ac_cv_func_connect=yes"
3985 else
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 rm -rf conftest*
3989 eval "ac_cv_func_connect=no"
3991 rm -f conftest*
3994 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3995 echo "$ac_t""yes" 1>&6
3996 gcj_checkSocket=0
3997 else
3998 echo "$ac_t""no" 1>&6
3999 gcj_checkSocket=1
4002 if test "$gcj_checkSocket" = 1; then
4003 unset ac_cv_func_connect
4004 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4005 echo "configure:4006: checking for main in -lsocket" >&5
4006 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4009 else
4010 ac_save_LIBS="$LIBS"
4011 LIBS="-lsocket $LIBS"
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4016 int main() {
4017 main()
4018 ; return 0; }
4020 if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4021 rm -rf conftest*
4022 eval "ac_cv_lib_$ac_lib_var=yes"
4023 else
4024 echo "configure: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4026 rm -rf conftest*
4027 eval "ac_cv_lib_$ac_lib_var=no"
4029 rm -f conftest*
4030 LIBS="$ac_save_LIBS"
4033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4034 echo "$ac_t""yes" 1>&6
4035 gcj_cv_lib_sockets="-lsocket"
4036 else
4037 echo "$ac_t""no" 1>&6
4038 gcj_checkBoth=1
4042 if test "$gcj_checkBoth" = 1; then
4043 gcj_oldLibs=$LIBS
4044 LIBS="$LIBS -lsocket -lnsl"
4045 unset ac_cv_func_accept
4046 echo $ac_n "checking for accept""... $ac_c" 1>&6
4047 echo "configure:4048: checking for accept" >&5
4048 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 /* System header to define __stub macros and hopefully few prototypes,
4055 which can conflict with char accept(); below. */
4056 #include <assert.h>
4057 /* Override any gcc2 internal prototype to avoid an error. */
4058 /* We use char because int might match the return type of a gcc2
4059 builtin and then its argument prototype would still apply. */
4060 char accept();
4062 int main() {
4064 /* The GNU C library defines this for functions which it implements
4065 to always fail with ENOSYS. Some functions are actually named
4066 something starting with __ and the normal name is an alias. */
4067 #if defined (__stub_accept) || defined (__stub___accept)
4068 choke me
4069 #else
4070 accept();
4071 #endif
4073 ; return 0; }
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4076 rm -rf conftest*
4077 eval "ac_cv_func_accept=yes"
4078 else
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4081 rm -rf conftest*
4082 eval "ac_cv_func_accept=no"
4084 rm -f conftest*
4087 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 gcj_checkNsl=0
4090 gcj_cv_lib_sockets="-lsocket -lnsl"
4091 else
4092 echo "$ac_t""no" 1>&6
4095 unset ac_cv_func_accept
4096 LIBS=$gcj_oldLibs
4098 unset ac_cv_func_gethostbyname
4099 gcj_oldLibs=$LIBS
4100 LIBS="$LIBS $gcj_cv_lib_sockets"
4101 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4102 echo "configure:4103: checking for gethostbyname" >&5
4103 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4105 else
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4109 /* System header to define __stub macros and hopefully few prototypes,
4110 which can conflict with char gethostbyname(); below. */
4111 #include <assert.h>
4112 /* Override any gcc2 internal prototype to avoid an error. */
4113 /* We use char because int might match the return type of a gcc2
4114 builtin and then its argument prototype would still apply. */
4115 char gethostbyname();
4117 int main() {
4119 /* The GNU C library defines this for functions which it implements
4120 to always fail with ENOSYS. Some functions are actually named
4121 something starting with __ and the normal name is an alias. */
4122 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4123 choke me
4124 #else
4125 gethostbyname();
4126 #endif
4128 ; return 0; }
4130 if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4131 rm -rf conftest*
4132 eval "ac_cv_func_gethostbyname=yes"
4133 else
4134 echo "configure: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4136 rm -rf conftest*
4137 eval "ac_cv_func_gethostbyname=no"
4139 rm -f conftest*
4142 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4143 echo "$ac_t""yes" 1>&6
4145 else
4146 echo "$ac_t""no" 1>&6
4147 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4148 echo "configure:4149: checking for main in -lnsl" >&5
4149 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4152 else
4153 ac_save_LIBS="$LIBS"
4154 LIBS="-lnsl $LIBS"
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4159 int main() {
4160 main()
4161 ; return 0; }
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4164 rm -rf conftest*
4165 eval "ac_cv_lib_$ac_lib_var=yes"
4166 else
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 rm -rf conftest*
4170 eval "ac_cv_lib_$ac_lib_var=no"
4172 rm -f conftest*
4173 LIBS="$ac_save_LIBS"
4176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4178 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4179 else
4180 echo "$ac_t""no" 1>&6
4185 unset ac_cv_func_gethostbyname
4186 LIBS=$gcj_oldLIBS
4190 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4191 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4193 if test "$with_system_zlib" = yes; then
4194 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4195 echo "configure:4196: checking for deflate in -lz" >&5
4196 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4199 else
4200 ac_save_LIBS="$LIBS"
4201 LIBS="-lz $LIBS"
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205 /* Override any gcc2 internal prototype to avoid an error. */
4206 /* We use char because int might match the return type of a gcc2
4207 builtin and then its argument prototype would still apply. */
4208 char deflate();
4210 int main() {
4211 deflate()
4212 ; return 0; }
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4215 rm -rf conftest*
4216 eval "ac_cv_lib_$ac_lib_var=yes"
4217 else
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4220 rm -rf conftest*
4221 eval "ac_cv_lib_$ac_lib_var=no"
4223 rm -f conftest*
4224 LIBS="$ac_save_LIBS"
4227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4228 echo "$ac_t""yes" 1>&6
4229 ZLIBSPEC=-lz
4230 else
4231 echo "$ac_t""no" 1>&6
4232 ZLIBSPEC=-lzgcj
4235 else
4236 ZLIBSPEC=-lzgcj
4239 # On Solaris, and maybe other architectures, the Boehm collector
4240 # requires -ldl.
4241 if test "$GC" = boehm; then
4242 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4243 echo "configure:4244: checking for main in -ldl" >&5
4244 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4247 else
4248 ac_save_LIBS="$LIBS"
4249 LIBS="-ldl $LIBS"
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4254 int main() {
4255 main()
4256 ; return 0; }
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4259 rm -rf conftest*
4260 eval "ac_cv_lib_$ac_lib_var=yes"
4261 else
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4264 rm -rf conftest*
4265 eval "ac_cv_lib_$ac_lib_var=no"
4267 rm -f conftest*
4268 LIBS="$ac_save_LIBS"
4271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4274 else
4275 echo "$ac_t""no" 1>&6
4280 if test -d "$libgcj_basedir/../gcc/java"; then
4281 GCJ=
4282 else
4283 CANADIAN=yes
4284 NULL_TARGET=yes
4285 GCJ=gcj
4289 ZLIBS=
4290 ZDEPS=
4291 ZINCS=
4292 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4293 # We include the path to the zlib build directory.
4294 # See Makefile.am to understand why.
4295 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4296 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4297 ZINCS='-I$(top_srcdir)/../zlib'
4298 else
4299 ZLIBS="$ZLIBSPEC"
4308 if test "$CANADIAN" = yes; then
4309 CANADIAN_TRUE=
4310 CANADIAN_FALSE='#'
4311 else
4312 CANADIAN_TRUE='#'
4313 CANADIAN_FALSE=
4317 if test "$NULL_TARGET" = yes; then
4318 NULL_TARGET_TRUE=
4319 NULL_TARGET_FALSE='#'
4320 else
4321 NULL_TARGET_TRUE='#'
4322 NULL_TARGET_FALSE=
4326 if test "$CANADIAN" = no || test "$NULL_TARGET" = yes; then
4327 NATIVE_TRUE=
4328 NATIVE_FALSE='#'
4329 else
4330 NATIVE_TRUE='#'
4331 NATIVE_FALSE=
4335 if test -z "$with_cross_host"; then
4336 USE_LIBDIR_TRUE=
4337 USE_LIBDIR_FALSE='#'
4338 else
4339 USE_LIBDIR_TRUE='#'
4340 USE_LIBDIR_FALSE=
4344 # Determine gcj version number.
4345 if test "$GCJ" = ""; then
4346 if test -z "${with_multisubdir}"; then
4347 builddotdot=.
4348 else
4349 builddotdot=`echo ${with_multisubdir} | sed -e 's:^/^/*:..:g'`
4351 dir="`cd ${builddotdot}/../../gcc && pwd`"
4352 GCJ="$dir/gcj -B$dir/"
4355 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4357 cat >> confdefs.h <<EOF
4358 #define GCJVERSION "$gcjvers"
4362 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4363 # we want to continue to support that version.
4364 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4365 echo "configure:4366: checking whether gcj supports -fuse-divide-subroutine" >&5
4366 cat > conftest.java << 'END'
4367 public class conftest { }
4369 use_fuse=yes
4370 $GCJ -fuse-divide-subroutine -fsyntax-only conftest.java > /dev/null 2>&1 \
4371 || use_fuse=no
4372 rm -f conftest.java
4373 if test "$use_fuse" = no; then
4374 DIVIDESPEC=
4376 echo "$ac_t""$use_fuse" 1>&6
4380 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
4382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4384 echo "configure:4385: checking for $ac_hdr" >&5
4385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4387 else
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 #include <$ac_hdr>
4393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4394 { (eval echo configure:4395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4396 if test -z "$ac_err"; then
4397 rm -rf conftest*
4398 eval "ac_cv_header_$ac_safe=yes"
4399 else
4400 echo "$ac_err" >&5
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4403 rm -rf conftest*
4404 eval "ac_cv_header_$ac_safe=no"
4406 rm -f conftest*
4408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4409 echo "$ac_t""yes" 1>&6
4410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4411 cat >> confdefs.h <<EOF
4412 #define $ac_tr_hdr 1
4415 else
4416 echo "$ac_t""no" 1>&6
4418 done
4420 for ac_hdr in dirent.h
4422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4424 echo "configure:4425: checking for $ac_hdr" >&5
4425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4427 else
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <$ac_hdr>
4433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4434 { (eval echo configure:4435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4436 if test -z "$ac_err"; then
4437 rm -rf conftest*
4438 eval "ac_cv_header_$ac_safe=yes"
4439 else
4440 echo "$ac_err" >&5
4441 echo "configure: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4443 rm -rf conftest*
4444 eval "ac_cv_header_$ac_safe=no"
4446 rm -f conftest*
4448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4451 cat >> confdefs.h <<EOF
4452 #define $ac_tr_hdr 1
4455 else
4456 echo "$ac_t""no" 1>&6
4458 done
4461 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4462 echo "configure:4463: checking for ANSI C header files" >&5
4463 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4465 else
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4469 #include <stdlib.h>
4470 #include <stdarg.h>
4471 #include <string.h>
4472 #include <float.h>
4474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4475 { (eval echo configure:4476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4477 if test -z "$ac_err"; then
4478 rm -rf conftest*
4479 ac_cv_header_stdc=yes
4480 else
4481 echo "$ac_err" >&5
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4484 rm -rf conftest*
4485 ac_cv_header_stdc=no
4487 rm -f conftest*
4489 if test $ac_cv_header_stdc = yes; then
4490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 #include <string.h>
4496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4497 egrep "memchr" >/dev/null 2>&1; then
4499 else
4500 rm -rf conftest*
4501 ac_cv_header_stdc=no
4503 rm -f conftest*
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 #include <stdlib.h>
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 egrep "free" >/dev/null 2>&1; then
4517 else
4518 rm -rf conftest*
4519 ac_cv_header_stdc=no
4521 rm -f conftest*
4525 if test $ac_cv_header_stdc = yes; then
4526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4527 if test "$cross_compiling" = yes; then
4529 else
4530 cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4533 #include <ctype.h>
4534 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4537 int main () { int i; for (i = 0; i < 256; i++)
4538 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4539 exit (0); }
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4543 then
4545 else
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 rm -fr conftest*
4549 ac_cv_header_stdc=no
4551 rm -fr conftest*
4557 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4558 if test $ac_cv_header_stdc = yes; then
4559 cat >> confdefs.h <<\EOF
4560 #define STDC_HEADERS 1
4565 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4566 echo "configure:4567: checking for ssize_t" >&5
4567 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 #include <sys/types.h>
4574 #if STDC_HEADERS
4575 #include <stdlib.h>
4576 #include <stddef.h>
4577 #endif
4579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4580 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4581 rm -rf conftest*
4582 ac_cv_type_ssize_t=yes
4583 else
4584 rm -rf conftest*
4585 ac_cv_type_ssize_t=no
4587 rm -f conftest*
4590 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4591 if test $ac_cv_type_ssize_t = no; then
4592 cat >> confdefs.h <<\EOF
4593 #define ssize_t int
4599 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4600 echo "configure:4601: checking for in_addr_t" >&5
4601 cat > conftest.$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4604 #include <sys/types.h>
4605 #if STDC_HEADERS
4606 #include <stdlib.h>
4607 #include <stddef.h>
4608 #endif
4609 #if HAVE_NETINET_IN_H
4610 #include <netinet/in.h>
4611 #endif
4612 int main() {
4613 in_addr_t foo;
4614 ; return 0; }
4616 if { (eval echo configure:4617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4617 rm -rf conftest*
4618 cat >> confdefs.h <<\EOF
4619 #define HAVE_IN_ADDR_T 1
4622 echo "$ac_t""yes" 1>&6
4623 else
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4626 rm -rf conftest*
4627 echo "$ac_t""no" 1>&6
4629 rm -f conftest*
4631 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4632 echo "configure:4633: checking whether struct ip_mreq is in netinet/in.h" >&5
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 #include <netinet/in.h>
4637 int main() {
4638 struct ip_mreq mreq;
4639 ; return 0; }
4641 if { (eval echo configure:4642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4642 rm -rf conftest*
4643 cat >> confdefs.h <<\EOF
4644 #define HAVE_STRUCT_IP_MREQ 1
4647 echo "$ac_t""yes" 1>&6
4648 else
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -rf conftest*
4652 echo "$ac_t""no" 1>&6
4654 rm -f conftest*
4656 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4657 echo "configure:4658: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 #include <netinet/in.h>
4662 int main() {
4663 struct sockaddr_in6 addr6;
4664 ; return 0; }
4666 if { (eval echo configure:4667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4667 rm -rf conftest*
4668 cat >> confdefs.h <<\EOF
4669 #define HAVE_INET6 1
4672 echo "$ac_t""yes" 1>&6
4673 else
4674 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4676 rm -rf conftest*
4677 echo "$ac_t""no" 1>&6
4679 rm -f conftest*
4681 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4682 echo "configure:4683: checking for socklen_t in sys/socket.h" >&5
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 #include <sys/socket.h>
4687 int main() {
4688 socklen_t x = 5;
4689 ; return 0; }
4691 if { (eval echo configure:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4692 rm -rf conftest*
4693 cat >> confdefs.h <<\EOF
4694 #define HAVE_SOCKLEN_T 1
4697 echo "$ac_t""yes" 1>&6
4698 else
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 rm -rf conftest*
4702 echo "$ac_t""no" 1>&6
4704 rm -f conftest*
4706 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4707 echo "configure:4708: checking for tm_gmtoff in struct tm" >&5
4708 cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4711 #include <time.h>
4712 int main() {
4713 struct tm tim; tim.tm_gmtoff = 0;
4714 ; return 0; }
4716 if { (eval echo configure:4717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4717 rm -rf conftest*
4718 cat >> confdefs.h <<\EOF
4719 #define STRUCT_TM_HAS_GMTOFF 1
4722 echo "$ac_t""yes" 1>&6
4723 else
4724 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4726 rm -rf conftest*
4727 echo "$ac_t""no" 1>&6
4728 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4729 echo "configure:4730: checking for global timezone variable" >&5
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4733 #include <time.h>
4734 int main() {
4735 long z2 = timezone;
4736 ; return 0; }
4738 if { (eval echo configure:4739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4739 rm -rf conftest*
4740 cat >> confdefs.h <<\EOF
4741 #define HAVE_TIMEZONE 1
4744 echo "$ac_t""yes" 1>&6
4745 else
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 rm -rf conftest*
4749 echo "$ac_t""no" 1>&6
4751 rm -f conftest*
4753 rm -f conftest*
4755 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4756 # for constant arguments. Useless!
4757 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4758 echo "configure:4759: checking for working alloca.h" >&5
4759 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4761 else
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 #include <alloca.h>
4766 int main() {
4767 char *p = alloca(2 * sizeof(int));
4768 ; return 0; }
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4771 rm -rf conftest*
4772 ac_cv_header_alloca_h=yes
4773 else
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4776 rm -rf conftest*
4777 ac_cv_header_alloca_h=no
4779 rm -f conftest*
4782 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4783 if test $ac_cv_header_alloca_h = yes; then
4784 cat >> confdefs.h <<\EOF
4785 #define HAVE_ALLOCA_H 1
4790 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4791 echo "configure:4792: checking for alloca" >&5
4792 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4794 else
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4799 #ifdef __GNUC__
4800 # define alloca __builtin_alloca
4801 #else
4802 # ifdef _MSC_VER
4803 # include <malloc.h>
4804 # define alloca _alloca
4805 # else
4806 # if HAVE_ALLOCA_H
4807 # include <alloca.h>
4808 # else
4809 # ifdef _AIX
4810 #pragma alloca
4811 # else
4812 # ifndef alloca /* predefined by HP cc +Olibcalls */
4813 char *alloca ();
4814 # endif
4815 # endif
4816 # endif
4817 # endif
4818 #endif
4820 int main() {
4821 char *p = (char *) alloca(1);
4822 ; return 0; }
4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4825 rm -rf conftest*
4826 ac_cv_func_alloca_works=yes
4827 else
4828 echo "configure: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830 rm -rf conftest*
4831 ac_cv_func_alloca_works=no
4833 rm -f conftest*
4836 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4837 if test $ac_cv_func_alloca_works = yes; then
4838 cat >> confdefs.h <<\EOF
4839 #define HAVE_ALLOCA 1
4844 if test $ac_cv_func_alloca_works = no; then
4845 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4846 # that cause trouble. Some versions do not even contain alloca or
4847 # contain a buggy version. If you still want to use their alloca,
4848 # use ar to extract alloca.o from them instead of compiling alloca.c.
4849 ALLOCA=alloca.${ac_objext}
4850 cat >> confdefs.h <<\EOF
4851 #define C_ALLOCA 1
4855 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4856 echo "configure:4857: checking whether alloca needs Cray hooks" >&5
4857 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4858 echo $ac_n "(cached) $ac_c" 1>&6
4859 else
4860 cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 #if defined(CRAY) && ! defined(CRAY2)
4864 webecray
4865 #else
4866 wenotbecray
4867 #endif
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 egrep "webecray" >/dev/null 2>&1; then
4872 rm -rf conftest*
4873 ac_cv_os_cray=yes
4874 else
4875 rm -rf conftest*
4876 ac_cv_os_cray=no
4878 rm -f conftest*
4882 echo "$ac_t""$ac_cv_os_cray" 1>&6
4883 if test $ac_cv_os_cray = yes; then
4884 for ac_func in _getb67 GETB67 getb67; do
4885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_func" >&5
4887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4889 else
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 /* System header to define __stub macros and hopefully few prototypes,
4894 which can conflict with char $ac_func(); below. */
4895 #include <assert.h>
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4899 char $ac_func();
4901 int main() {
4903 /* The GNU C library defines this for functions which it implements
4904 to always fail with ENOSYS. Some functions are actually named
4905 something starting with __ and the normal name is an alias. */
4906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4907 choke me
4908 #else
4909 $ac_func();
4910 #endif
4912 ; return 0; }
4914 if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4915 rm -rf conftest*
4916 eval "ac_cv_func_$ac_func=yes"
4917 else
4918 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4920 rm -rf conftest*
4921 eval "ac_cv_func_$ac_func=no"
4923 rm -f conftest*
4926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4928 cat >> confdefs.h <<EOF
4929 #define CRAY_STACKSEG_END $ac_func
4932 break
4933 else
4934 echo "$ac_t""no" 1>&6
4937 done
4940 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4941 echo "configure:4942: checking stack direction for C alloca" >&5
4942 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945 if test "$cross_compiling" = yes; then
4946 ac_cv_c_stack_direction=0
4947 else
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 find_stack_direction ()
4953 static char *addr = 0;
4954 auto char dummy;
4955 if (addr == 0)
4957 addr = &dummy;
4958 return find_stack_direction ();
4960 else
4961 return (&dummy > addr) ? 1 : -1;
4963 main ()
4965 exit (find_stack_direction() < 0);
4968 if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4969 then
4970 ac_cv_c_stack_direction=1
4971 else
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4974 rm -fr conftest*
4975 ac_cv_c_stack_direction=-1
4977 rm -fr conftest*
4982 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4983 cat >> confdefs.h <<EOF
4984 #define STACK_DIRECTION $ac_cv_c_stack_direction
4990 for ac_prog in perl
4992 # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy $ac_prog; ac_word=$2
4994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4995 echo "configure:4996: checking for $ac_word" >&5
4996 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4998 else
4999 if test -n "$PERL"; then
5000 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5001 else
5002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5003 ac_dummy="$PATH"
5004 for ac_dir in $ac_dummy; do
5005 test -z "$ac_dir" && ac_dir=.
5006 if test -f $ac_dir/$ac_word; then
5007 ac_cv_prog_PERL="$ac_prog"
5008 break
5010 done
5011 IFS="$ac_save_ifs"
5014 PERL="$ac_cv_prog_PERL"
5015 if test -n "$PERL"; then
5016 echo "$ac_t""$PERL" 1>&6
5017 else
5018 echo "$ac_t""no" 1>&6
5021 test -n "$PERL" && break
5022 done
5023 test -n "$PERL" || PERL="false"
5026 case "${host}" in
5027 i?86-*-linux*)
5028 SIGNAL_HANDLER=include/i386-signal.h
5030 sparc-sun-solaris*)
5031 SIGNAL_HANDLER=include/sparc-signal.h
5034 SIGNAL_HANDLER=include/default-signal.h
5036 esac
5040 if test "${multilib}" = "yes"; then
5041 multilib_arg="--enable-multilib"
5042 else
5043 multilib_arg=
5046 here=`pwd`
5049 trap '' 1 2 15
5050 cat > confcache <<\EOF
5051 # This file is a shell script that caches the results of configure
5052 # tests run on this system so they can be shared between configure
5053 # scripts and configure runs. It is not useful on other systems.
5054 # If it contains results you don't want to keep, you may remove or edit it.
5056 # By default, configure uses ./config.cache as the cache file,
5057 # creating it if it does not exist already. You can give configure
5058 # the --cache-file=FILE option to use a different cache file; that is
5059 # what configure does when it calls configure scripts in
5060 # subdirectories, so they share the cache.
5061 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5062 # config.status only pays attention to the cache file if you give it the
5063 # --recheck option to rerun configure.
5066 # The following way of writing the cache mishandles newlines in values,
5067 # but we know of no workaround that is simple, portable, and efficient.
5068 # So, don't put newlines in cache variables' values.
5069 # Ultrix sh set writes to stderr and can't be redirected directly,
5070 # and sets the high bit in the cache file unless we assign to the vars.
5071 (set) 2>&1 |
5072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5073 *ac_space=\ *)
5074 # `set' does not quote correctly, so add quotes (double-quote substitution
5075 # turns \\\\ into \\, and sed turns \\ into \).
5076 sed -n \
5077 -e "s/'/'\\\\''/g" \
5078 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5081 # `set' quotes correctly as required by POSIX, so do not add quotes.
5082 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5084 esac >> confcache
5085 if cmp -s $cache_file confcache; then
5087 else
5088 if test -w $cache_file; then
5089 echo "updating cache $cache_file"
5090 cat confcache > $cache_file
5091 else
5092 echo "not updating unwritable cache $cache_file"
5095 rm -f confcache
5097 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5100 # Let make expand exec_prefix.
5101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5103 # Any assignment to VPATH causes Sun make to only execute
5104 # the first set of double-colon rules, so remove it if not needed.
5105 # If there is a colon in the path, we need to keep it.
5106 if test "x$srcdir" = x.; then
5107 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5110 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5112 DEFS=-DHAVE_CONFIG_H
5114 # Without the "./", some shells look in PATH for config.status.
5115 : ${CONFIG_STATUS=./config.status}
5117 echo creating $CONFIG_STATUS
5118 rm -f $CONFIG_STATUS
5119 cat > $CONFIG_STATUS <<EOF
5120 #! /bin/sh
5121 # Generated automatically by configure.
5122 # Run this file to recreate the current configuration.
5123 # This directory was configured as follows,
5124 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5126 # $0 $ac_configure_args
5128 # Compiler output produced by configure, useful for debugging
5129 # configure, is in ./config.log if it exists.
5131 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5132 for ac_option
5134 case "\$ac_option" in
5135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5136 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5137 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5138 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5139 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5140 exit 0 ;;
5141 -help | --help | --hel | --he | --h)
5142 echo "\$ac_cs_usage"; exit 0 ;;
5143 *) echo "\$ac_cs_usage"; exit 1 ;;
5144 esac
5145 done
5147 ac_given_srcdir=$srcdir
5148 ac_given_INSTALL="$INSTALL"
5150 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
5152 cat >> $CONFIG_STATUS <<EOF
5154 # Protect against being on the right side of a sed subst in config.status.
5155 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5156 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5157 $ac_vpsub
5158 $extrasub
5159 s%@SHELL@%$SHELL%g
5160 s%@CFLAGS@%$CFLAGS%g
5161 s%@CPPFLAGS@%$CPPFLAGS%g
5162 s%@CXXFLAGS@%$CXXFLAGS%g
5163 s%@FFLAGS@%$FFLAGS%g
5164 s%@DEFS@%$DEFS%g
5165 s%@LDFLAGS@%$LDFLAGS%g
5166 s%@LIBS@%$LIBS%g
5167 s%@exec_prefix@%$exec_prefix%g
5168 s%@prefix@%$prefix%g
5169 s%@program_transform_name@%$program_transform_name%g
5170 s%@bindir@%$bindir%g
5171 s%@sbindir@%$sbindir%g
5172 s%@libexecdir@%$libexecdir%g
5173 s%@datadir@%$datadir%g
5174 s%@sysconfdir@%$sysconfdir%g
5175 s%@sharedstatedir@%$sharedstatedir%g
5176 s%@localstatedir@%$localstatedir%g
5177 s%@libdir@%$libdir%g
5178 s%@includedir@%$includedir%g
5179 s%@oldincludedir@%$oldincludedir%g
5180 s%@infodir@%$infodir%g
5181 s%@mandir@%$mandir%g
5182 s%@host@%$host%g
5183 s%@host_alias@%$host_alias%g
5184 s%@host_cpu@%$host_cpu%g
5185 s%@host_vendor@%$host_vendor%g
5186 s%@host_os@%$host_os%g
5187 s%@target@%$target%g
5188 s%@target_alias@%$target_alias%g
5189 s%@target_cpu@%$target_cpu%g
5190 s%@target_vendor@%$target_vendor%g
5191 s%@target_os@%$target_os%g
5192 s%@build@%$build%g
5193 s%@build_alias@%$build_alias%g
5194 s%@build_cpu@%$build_cpu%g
5195 s%@build_vendor@%$build_vendor%g
5196 s%@build_os@%$build_os%g
5197 s%@libgcj_basedir@%$libgcj_basedir%g
5198 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5199 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5200 s%@INSTALL_DATA@%$INSTALL_DATA%g
5201 s%@PACKAGE@%$PACKAGE%g
5202 s%@VERSION@%$VERSION%g
5203 s%@ACLOCAL@%$ACLOCAL%g
5204 s%@AUTOCONF@%$AUTOCONF%g
5205 s%@AUTOMAKE@%$AUTOMAKE%g
5206 s%@AUTOHEADER@%$AUTOHEADER%g
5207 s%@MAKEINFO@%$MAKEINFO%g
5208 s%@SET_MAKE@%$SET_MAKE%g
5209 s%@CC@%$CC%g
5210 s%@CXX@%$CXX%g
5211 s%@AS@%$AS%g
5212 s%@AR@%$AR%g
5213 s%@RANLIB@%$RANLIB%g
5214 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5215 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5216 s%@MAINT@%$MAINT%g
5217 s%@EXEEXT@%$EXEEXT%g
5218 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5219 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5220 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5221 s%@LD@%$LD%g
5222 s%@NM@%$NM%g
5223 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5224 s%@LN_S@%$LN_S%g
5225 s%@DLLTOOL@%$DLLTOOL%g
5226 s%@LIBTOOL@%$LIBTOOL%g
5227 s%@COMPPATH@%$COMPPATH%g
5228 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5229 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5230 s%@CPP@%$CPP%g
5231 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5232 s%@ZLIBSPEC@%$ZLIBSPEC%g
5233 s%@GCLIBS@%$GCLIBS%g
5234 s%@GCINCS@%$GCINCS%g
5235 s%@GCDEPS@%$GCDEPS%g
5236 s%@GCOBJS@%$GCOBJS%g
5237 s%@GCSPEC@%$GCSPEC%g
5238 s%@THREADLIBS@%$THREADLIBS%g
5239 s%@THREADINCS@%$THREADINCS%g
5240 s%@THREADDEPS@%$THREADDEPS%g
5241 s%@THREADOBJS@%$THREADOBJS%g
5242 s%@THREADSPEC@%$THREADSPEC%g
5243 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5244 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5245 s%@ZLIBS@%$ZLIBS%g
5246 s%@ZDEPS@%$ZDEPS%g
5247 s%@ZINCS@%$ZINCS%g
5248 s%@DIVIDESPEC@%$DIVIDESPEC%g
5249 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5250 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5251 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5252 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5253 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5254 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5255 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5256 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5257 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5258 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5259 s%@ALLOCA@%$ALLOCA%g
5260 s%@PERL@%$PERL%g
5261 s%@here@%$here%g
5263 CEOF
5266 cat >> $CONFIG_STATUS <<\EOF
5268 # Split the substitutions into bite-sized pieces for seds with
5269 # small command number limits, like on Digital OSF/1 and HP-UX.
5270 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5271 ac_file=1 # Number of current file.
5272 ac_beg=1 # First line for current file.
5273 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5274 ac_more_lines=:
5275 ac_sed_cmds=""
5276 while $ac_more_lines; do
5277 if test $ac_beg -gt 1; then
5278 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5279 else
5280 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5282 if test ! -s conftest.s$ac_file; then
5283 ac_more_lines=false
5284 rm -f conftest.s$ac_file
5285 else
5286 if test -z "$ac_sed_cmds"; then
5287 ac_sed_cmds="sed -f conftest.s$ac_file"
5288 else
5289 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5291 ac_file=`expr $ac_file + 1`
5292 ac_beg=$ac_end
5293 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5295 done
5296 if test -z "$ac_sed_cmds"; then
5297 ac_sed_cmds=cat
5301 cat >> $CONFIG_STATUS <<EOF
5303 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5305 cat >> $CONFIG_STATUS <<\EOF
5306 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5307 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5308 case "$ac_file" in
5309 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5310 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5311 *) ac_file_in="${ac_file}.in" ;;
5312 esac
5314 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5316 # Remove last slash and all that follows it. Not all systems have dirname.
5317 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5318 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5319 # The file is in a subdirectory.
5320 test ! -d "$ac_dir" && mkdir "$ac_dir"
5321 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5322 # A "../" for each directory in $ac_dir_suffix.
5323 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5324 else
5325 ac_dir_suffix= ac_dots=
5328 case "$ac_given_srcdir" in
5329 .) srcdir=.
5330 if test -z "$ac_dots"; then top_srcdir=.
5331 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5332 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5333 *) # Relative path.
5334 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5335 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5336 esac
5338 case "$ac_given_INSTALL" in
5339 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5340 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5341 esac
5343 echo creating "$ac_file"
5344 rm -f "$ac_file"
5345 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5346 case "$ac_file" in
5347 *Makefile*) ac_comsub="1i\\
5348 # $configure_input" ;;
5349 *) ac_comsub= ;;
5350 esac
5352 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5353 sed -e "$ac_comsub
5354 s%@configure_input@%$configure_input%g
5355 s%@srcdir@%$srcdir%g
5356 s%@top_srcdir@%$top_srcdir%g
5357 s%@INSTALL@%$INSTALL%g
5358 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5359 fi; done
5360 rm -f conftest.s*
5362 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5363 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5365 # ac_d sets the value in "#define NAME VALUE" lines.
5366 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5367 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5368 ac_dC='\3'
5369 ac_dD='%g'
5370 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5371 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5372 ac_uB='\([ ]\)%\1#\2define\3'
5373 ac_uC=' '
5374 ac_uD='\4%g'
5375 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5376 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5377 ac_eB='$%\1#\2define\3'
5378 ac_eC=' '
5379 ac_eD='%g'
5381 if test "${CONFIG_HEADERS+set}" != set; then
5383 cat >> $CONFIG_STATUS <<EOF
5384 CONFIG_HEADERS="include/config.h"
5386 cat >> $CONFIG_STATUS <<\EOF
5388 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5390 case "$ac_file" in
5391 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5392 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5393 *) ac_file_in="${ac_file}.in" ;;
5394 esac
5396 echo creating $ac_file
5398 rm -f conftest.frag conftest.in conftest.out
5399 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5400 cat $ac_file_inputs > conftest.in
5404 # Transform confdefs.h into a sed script conftest.vals that substitutes
5405 # the proper values into config.h.in to produce config.h. And first:
5406 # Protect against being on the right side of a sed subst in config.status.
5407 # Protect against being in an unquoted here document in config.status.
5408 rm -f conftest.vals
5409 cat > conftest.hdr <<\EOF
5410 s/[\\&%]/\\&/g
5411 s%[\\$`]%\\&%g
5412 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5413 s%ac_d%ac_u%gp
5414 s%ac_u%ac_e%gp
5416 sed -n -f conftest.hdr confdefs.h > conftest.vals
5417 rm -f conftest.hdr
5419 # This sed command replaces #undef with comments. This is necessary, for
5420 # example, in the case of _POSIX_SOURCE, which is predefined and required
5421 # on some systems where configure will not decide to define it.
5422 cat >> conftest.vals <<\EOF
5423 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5426 # Break up conftest.vals because some shells have a limit on
5427 # the size of here documents, and old seds have small limits too.
5429 rm -f conftest.tail
5430 while :
5432 ac_lines=`grep -c . conftest.vals`
5433 # grep -c gives empty output for an empty file on some AIX systems.
5434 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5435 # Write a limited-size here document to conftest.frag.
5436 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5437 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5438 echo 'CEOF
5439 sed -f conftest.frag conftest.in > conftest.out
5440 rm -f conftest.in
5441 mv conftest.out conftest.in
5442 ' >> $CONFIG_STATUS
5443 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5444 rm -f conftest.vals
5445 mv conftest.tail conftest.vals
5446 done
5447 rm -f conftest.vals
5449 cat >> $CONFIG_STATUS <<\EOF
5450 rm -f conftest.frag conftest.h
5451 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5452 cat conftest.in >> conftest.h
5453 rm -f conftest.in
5454 if cmp -s $ac_file conftest.h 2>/dev/null; then
5455 echo "$ac_file is unchanged"
5456 rm -f conftest.h
5457 else
5458 # Remove last slash and all that follows it. Not all systems have dirname.
5459 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5460 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5461 # The file is in a subdirectory.
5462 test ! -d "$ac_dir" && mkdir "$ac_dir"
5464 rm -f $ac_file
5465 mv conftest.h $ac_file
5467 fi; done
5471 cat >> $CONFIG_STATUS <<EOF
5472 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5473 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"
5476 cat >> $CONFIG_STATUS <<\EOF
5477 srcdir=$ac_given_srcdir
5478 while test -n "$ac_sources"; do
5479 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5480 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5482 echo "linking $srcdir/$ac_source to $ac_dest"
5484 if test ! -r $srcdir/$ac_source; then
5485 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5487 rm -f $ac_dest
5489 # Make relative symlinks.
5490 # Remove last slash and all that follows it. Not all systems have dirname.
5491 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5492 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5493 # The dest file is in a subdirectory.
5494 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5495 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5496 # A "../" for each directory in $ac_dest_dir_suffix.
5497 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5498 else
5499 ac_dest_dir_suffix= ac_dots=
5502 case "$srcdir" in
5503 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5504 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5505 esac
5507 # Make a symlink if possible; otherwise try a hard link.
5508 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5509 ln $srcdir/$ac_source $ac_dest; then :
5510 else
5511 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5513 done
5515 cat >> $CONFIG_STATUS <<EOF
5517 srcdir=${srcdir}
5518 host=${host}
5519 target=${target}
5520 with_multisubdir=${with_multisubdir}
5521 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5522 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5523 libgcj_basedir=${libgcj_basedir}
5524 CC="${CC}"
5525 CXX="${CXX}"
5528 cat >> $CONFIG_STATUS <<\EOF
5529 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5530 if test -n "$CONFIG_FILES"; then
5531 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5533 exit 0
5535 chmod +x $CONFIG_STATUS
5536 rm -fr confdefs* $ac_clean_files
5537 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1