* recog.c (preproces_constraints): Zero recog_op_alt before
[official-gcc.git] / libjava / configure
blob20aa2abda9acf047cbac063bf197722ea5c1d53c
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 Configuring in a subdirectory"
16 ac_help="$ac_help
17 --with-cross-host=HOST Configuring with a cross compiler"
18 ac_help="$ac_help
19 --enable-multilib build many library versions (default)"
20 ac_help="$ac_help
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
23 ac_help="$ac_help
24 --enable-shared[=PKGS] build shared libraries [default=yes]"
25 ac_help="$ac_help
26 --enable-static[=PKGS] build static libraries [default=yes]"
27 ac_help="$ac_help
28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
29 ac_help="$ac_help
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31 ac_help="$ac_help
32 --disable-libtool-lock avoid locking (might break parallel builds)"
33 ac_help="$ac_help
34 --enable-fast-character Prefer speed over size for Character"
35 ac_help="$ac_help
36 --enable-libgcj-debug Enable runtime debugging code"
37 ac_help="$ac_help
38 --with-ecos Enable runtime eCos target support."
39 ac_help="$ac_help
40 --with-system-zlib Use installed libz"
41 ac_help="$ac_help
42 --enable-java-gc=TYPE choose garbage collector [boehm]"
43 ac_help="$ac_help
44 --enable-threads=TYPE choose threading package"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
49 build=NONE
50 cache_file=./config.cache
51 exec_prefix=NONE
52 host=NONE
53 no_create=
54 nonopt=NONE
55 no_recursion=
56 prefix=NONE
57 program_prefix=NONE
58 program_suffix=NONE
59 program_transform_name=s,x,x,
60 silent=
61 site=
62 srcdir=
63 target=NONE
64 verbose=
65 x_includes=NONE
66 x_libraries=NONE
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
81 subdirs=
82 MFLAGS= MAKEFLAGS=
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
85 ac_max_here_lines=12
87 ac_prev=
88 for ac_option
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
98 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
103 # Accept the important Cygnus configure options, so we can diagnose typos.
105 case "$ac_option" in
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
112 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
128 datadir="$ac_optarg" ;;
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
147 *=*) ;;
148 *) ac_optarg=yes ;;
149 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
168 cat << EOF
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
171 Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
202 cat << EOF
203 Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
218 exit 0 ;;
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 nonopt="$ac_option"
423 esac
424 done
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
433 # 0 standard input
434 # 1 file creation
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
441 exec 6>/dev/null
442 else
443 exec 6>&1
445 exec 5>./config.log
447 echo "\
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
450 " 1>&5
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
454 ac_configure_args=
455 for ac_arg
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466 done
468 # NLS nuisances.
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 echo > confdefs.h
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=java/lang/System.java
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
498 else
499 ac_srcdir_defaulted=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
521 . "$ac_site_file"
523 done
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
527 . $cache_file
528 else
529 echo "creating cache $cache_file"
530 > $cache_file
533 ac_ext=c
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
540 ac_exeext=
541 ac_objext=o
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='
546 ' ac_t=' '
547 else
548 ac_n=-n ac_c= ac_t=
550 else
551 ac_n= ac_c='\c' ac_t=
556 ac_aux_dir=
557 for ac_dir in .. $srcdir/..; do
558 if test -f $ac_dir/install-sh; then
559 ac_aux_dir=$ac_dir
560 ac_install_sh="$ac_aux_dir/install-sh -c"
561 break
562 elif test -f $ac_dir/install.sh; then
563 ac_aux_dir=$ac_dir
564 ac_install_sh="$ac_aux_dir/install.sh -c"
565 break
567 done
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
571 ac_config_guess=$ac_aux_dir/config.guess
572 ac_config_sub=$ac_aux_dir/config.sub
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
578 # The inputs are:
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
581 # The rules are:
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
583 # same time.
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
595 esac
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
606 host_alias=$host
607 case "$host_alias" in
608 NONE)
609 case $nonopt in
610 NONE)
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
613 fi ;;
614 *) host_alias=$nonopt ;;
615 esac ;;
616 esac
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
627 target_alias=$target
628 case "$target_alias" in
629 NONE)
630 case $nonopt in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
633 esac ;;
634 esac
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
645 build_alias=$build
646 case "$build_alias" in
647 NONE)
648 case $nonopt in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
651 esac ;;
652 esac
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
662 NONENONEs,x,x, &&
663 program_prefix=${target_alias}-
666 # Check whether --with-target-subdir or --without-target-subdir was given.
667 if test "${with_target_subdir+set}" = set; then
668 withval="$with_target_subdir"
672 # Check whether --with-cross-host or --without-cross-host was given.
673 if test "${with_cross_host+set}" = set; then
674 withval="$with_cross_host"
679 # Find a good install program. We prefer a C program (faster),
680 # so one script is as good as another. But avoid the broken or
681 # incompatible versions:
682 # SysV /etc/install, /usr/sbin/install
683 # SunOS /usr/etc/install
684 # IRIX /sbin/install
685 # AIX /bin/install
686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
689 # ./install, which can be erroneously created by make from ./install.sh.
690 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
691 echo "configure:692: checking for a BSD compatible install" >&5
692 if test -z "$INSTALL"; then
693 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695 else
696 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
697 for ac_dir in $PATH; do
698 # Account for people who put trailing slashes in PATH elements.
699 case "$ac_dir/" in
700 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
702 # OSF1 and SCO ODT 3.0 have their own names for install.
703 # Don't use installbsd from OSF since it installs stuff as root
704 # by default.
705 for ac_prog in ginstall scoinst install; do
706 if test -f $ac_dir/$ac_prog; then
707 if test $ac_prog = install &&
708 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
709 # AIX install. It has an incompatible calling convention.
711 else
712 ac_cv_path_install="$ac_dir/$ac_prog -c"
713 break 2
716 done
718 esac
719 done
720 IFS="$ac_save_IFS"
723 if test "${ac_cv_path_install+set}" = set; then
724 INSTALL="$ac_cv_path_install"
725 else
726 # As a last resort, use the slow shell script. We don't cache a
727 # path for INSTALL within a source directory, because that will
728 # break other packages using the cache if that directory is
729 # removed, or if the path is relative.
730 INSTALL="$ac_install_sh"
733 echo "$ac_t""$INSTALL" 1>&6
735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
736 # It thinks the first close brace ends the variable substitution.
737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
743 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
744 echo "configure:745: checking whether build environment is sane" >&5
745 # Just in case
746 sleep 1
747 echo timestamp > conftestfile
748 # Do `set' in a subshell so we don't clobber the current shell's
749 # arguments. Must try -L first in case configure is actually a
750 # symlink; some systems play weird games with the mod time of symlinks
751 # (eg FreeBSD returns the mod time of the symlink's containing
752 # directory).
753 if (
754 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
755 if test "$*" = "X"; then
756 # -L didn't work.
757 set X `ls -t $srcdir/configure conftestfile`
759 if test "$*" != "X $srcdir/configure conftestfile" \
760 && test "$*" != "X conftestfile $srcdir/configure"; then
762 # If neither matched, then we have a broken ls. This can happen
763 # if, for instance, CONFIG_SHELL is bash and it inherits a
764 # broken ls alias from the environment. This has actually
765 # happened. Such a system could not be considered "sane".
766 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
767 alias in your environment" 1>&2; exit 1; }
770 test "$2" = conftestfile
772 then
773 # Ok.
775 else
776 { echo "configure: error: newly created file is older than distributed files!
777 Check your system clock" 1>&2; exit 1; }
779 rm -f conftest*
780 echo "$ac_t""yes" 1>&6
781 if test "$program_transform_name" = s,x,x,; then
782 program_transform_name=
783 else
784 # Double any \ or $. echo might interpret backslashes.
785 cat <<\EOF_SED > conftestsed
786 s,\\,\\\\,g; s,\$,$$,g
787 EOF_SED
788 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
789 rm -f conftestsed
791 test "$program_prefix" != NONE &&
792 program_transform_name="s,^,${program_prefix},; $program_transform_name"
793 # Use a double $ so make ignores it.
794 test "$program_suffix" != NONE &&
795 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
797 # sed with no file args requires a program.
798 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
800 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
801 echo "configure:802: checking whether ${MAKE-make} sets \${MAKE}" >&5
802 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
803 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
805 else
806 cat > conftestmake <<\EOF
807 all:
808 @echo 'ac_maketemp="${MAKE}"'
810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
811 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
812 if test -n "$ac_maketemp"; then
813 eval ac_cv_prog_make_${ac_make}_set=yes
814 else
815 eval ac_cv_prog_make_${ac_make}_set=no
817 rm -f conftestmake
819 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
820 echo "$ac_t""yes" 1>&6
821 SET_MAKE=
822 else
823 echo "$ac_t""no" 1>&6
824 SET_MAKE="MAKE=${MAKE-make}"
827 if test $host != $build; then
828 ac_tool_prefix=${host_alias}-
829 else
830 ac_tool_prefix=
833 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
834 echo "configure:835: checking for Cygwin environment" >&5
835 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
837 else
838 cat > conftest.$ac_ext <<EOF
839 #line 840 "configure"
840 #include "confdefs.h"
842 int main() {
844 #ifndef __CYGWIN__
845 #define __CYGWIN__ __CYGWIN32__
846 #endif
847 return __CYGWIN__;
848 ; return 0; }
850 if { (eval echo configure:851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
851 rm -rf conftest*
852 ac_cv_cygwin=yes
853 else
854 echo "configure: failed program was:" >&5
855 cat conftest.$ac_ext >&5
856 rm -rf conftest*
857 ac_cv_cygwin=no
859 rm -f conftest*
860 rm -f conftest*
863 echo "$ac_t""$ac_cv_cygwin" 1>&6
864 CYGWIN=
865 test "$ac_cv_cygwin" = yes && CYGWIN=yes
866 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
867 echo "configure:868: checking for mingw32 environment" >&5
868 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
870 else
871 cat > conftest.$ac_ext <<EOF
872 #line 873 "configure"
873 #include "confdefs.h"
875 int main() {
876 return __MINGW32__;
877 ; return 0; }
879 if { (eval echo configure:880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
880 rm -rf conftest*
881 ac_cv_mingw32=yes
882 else
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
885 rm -rf conftest*
886 ac_cv_mingw32=no
888 rm -f conftest*
889 rm -f conftest*
892 echo "$ac_t""$ac_cv_mingw32" 1>&6
893 MINGW32=
894 test "$ac_cv_mingw32" = yes && MINGW32=yes
896 # Check whether --enable-multilib or --disable-multilib was given.
897 if test "${enable_multilib+set}" = set; then
898 enableval="$enable_multilib"
899 case "${enableval}" in
900 yes) multilib=yes ;;
901 no) multilib=no ;;
902 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
903 esac
904 else
905 multilib=yes
909 if test "${srcdir}" = "."; then
910 if test "${with_target_subdir}" != "."; then
911 libgcj_basedir="${srcdir}/${with_multisrctop}../."
912 else
913 libgcj_basedir="${srcdir}/${with_multisrctop}."
915 else
916 libgcj_basedir="${srcdir}/."
921 # Make sure we can run config.sub.
922 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
923 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
926 echo $ac_n "checking host system type""... $ac_c" 1>&6
927 echo "configure:928: checking host system type" >&5
929 host_alias=$host
930 case "$host_alias" in
931 NONE)
932 case $nonopt in
933 NONE)
934 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
935 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
936 fi ;;
937 *) host_alias=$nonopt ;;
938 esac ;;
939 esac
941 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
942 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
943 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
944 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
945 echo "$ac_t""$host" 1>&6
948 version=0.0.7
950 PACKAGE=libjava
952 VERSION=$version
954 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
955 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
957 cat >> confdefs.h <<EOF
958 #define PACKAGE "$PACKAGE"
961 cat >> confdefs.h <<EOF
962 #define VERSION "$VERSION"
967 missing_dir=`cd $ac_aux_dir && pwd`
968 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
969 echo "configure:970: checking for working aclocal" >&5
970 # Run test in a subshell; some versions of sh will print an error if
971 # an executable is not found, even if stderr is redirected.
972 # Redirect stdin to placate older versions of autoconf. Sigh.
973 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
974 ACLOCAL=aclocal
975 echo "$ac_t""found" 1>&6
976 else
977 ACLOCAL="$missing_dir/missing aclocal"
978 echo "$ac_t""missing" 1>&6
981 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
982 echo "configure:983: checking for working autoconf" >&5
983 # Run test in a subshell; some versions of sh will print an error if
984 # an executable is not found, even if stderr is redirected.
985 # Redirect stdin to placate older versions of autoconf. Sigh.
986 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
987 AUTOCONF=autoconf
988 echo "$ac_t""found" 1>&6
989 else
990 AUTOCONF="$missing_dir/missing autoconf"
991 echo "$ac_t""missing" 1>&6
994 echo $ac_n "checking for working automake""... $ac_c" 1>&6
995 echo "configure:996: checking for working automake" >&5
996 # Run test in a subshell; some versions of sh will print an error if
997 # an executable is not found, even if stderr is redirected.
998 # Redirect stdin to placate older versions of autoconf. Sigh.
999 if (automake --version) < /dev/null > /dev/null 2>&1; then
1000 AUTOMAKE=automake
1001 echo "$ac_t""found" 1>&6
1002 else
1003 AUTOMAKE="$missing_dir/missing automake"
1004 echo "$ac_t""missing" 1>&6
1007 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1008 echo "configure:1009: checking for working autoheader" >&5
1009 # Run test in a subshell; some versions of sh will print an error if
1010 # an executable is not found, even if stderr is redirected.
1011 # Redirect stdin to placate older versions of autoconf. Sigh.
1012 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1013 AUTOHEADER=autoheader
1014 echo "$ac_t""found" 1>&6
1015 else
1016 AUTOHEADER="$missing_dir/missing autoheader"
1017 echo "$ac_t""missing" 1>&6
1020 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working makeinfo" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1026 MAKEINFO=makeinfo
1027 echo "$ac_t""found" 1>&6
1028 else
1029 MAKEINFO="$missing_dir/missing makeinfo"
1030 echo "$ac_t""missing" 1>&6
1035 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1036 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1037 # are probably using a cross compiler, which will not be able to fully
1038 # link an executable. This should really be fixed in autoconf
1039 # itself.
1043 # Extract the first word of "gcc", so it can be a program name with args.
1044 set dummy gcc; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1049 else
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC="$CC" # Let the user override the test.
1052 else
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1054 ac_dummy="$PATH"
1055 for ac_dir in $ac_dummy; do
1056 test -z "$ac_dir" && ac_dir=.
1057 if test -f $ac_dir/$ac_word; then
1058 ac_cv_prog_CC="gcc"
1059 break
1061 done
1062 IFS="$ac_save_ifs"
1065 CC="$ac_cv_prog_CC"
1066 if test -n "$CC"; then
1067 echo "$ac_t""$CC" 1>&6
1068 else
1069 echo "$ac_t""no" 1>&6
1072 if test -z "$CC"; then
1073 # Extract the first word of "cc", so it can be a program name with args.
1074 set dummy cc; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080 if test -n "$CC"; then
1081 ac_cv_prog_CC="$CC" # Let the user override the test.
1082 else
1083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1084 ac_prog_rejected=no
1085 ac_dummy="$PATH"
1086 for ac_dir in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1090 ac_prog_rejected=yes
1091 continue
1093 ac_cv_prog_CC="cc"
1094 break
1096 done
1097 IFS="$ac_save_ifs"
1098 if test $ac_prog_rejected = yes; then
1099 # We found a bogon in the path, so make sure we never use it.
1100 set dummy $ac_cv_prog_CC
1101 shift
1102 if test $# -gt 0; then
1103 # We chose a different compiler from the bogus one.
1104 # However, it has the same basename, so the bogon will be chosen
1105 # first if we set CC to just the basename; use the full file name.
1106 shift
1107 set dummy "$ac_dir/$ac_word" "$@"
1108 shift
1109 ac_cv_prog_CC="$@"
1114 CC="$ac_cv_prog_CC"
1115 if test -n "$CC"; then
1116 echo "$ac_t""$CC" 1>&6
1117 else
1118 echo "$ac_t""no" 1>&6
1121 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129 cat > conftest.c <<EOF
1130 #ifdef __GNUC__
1131 yes;
1132 #endif
1134 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135 ac_cv_prog_gcc=yes
1136 else
1137 ac_cv_prog_gcc=no
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1143 if test $ac_cv_prog_gcc = yes; then
1144 GCC=yes
1145 ac_test_CFLAGS="${CFLAGS+set}"
1146 ac_save_CFLAGS="$CFLAGS"
1147 CFLAGS=
1148 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${CC-cc} accepts -g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 echo 'void f(){}' > conftest.c
1154 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1155 ac_cv_prog_cc_g=yes
1156 else
1157 ac_cv_prog_cc_g=no
1159 rm -f conftest*
1163 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1164 if test "$ac_test_CFLAGS" = set; then
1165 CFLAGS="$ac_save_CFLAGS"
1166 elif test $ac_cv_prog_cc_g = yes; then
1167 CFLAGS="-g -O2"
1168 else
1169 CFLAGS="-O2"
1171 else
1172 GCC=
1173 test "${CFLAGS+set}" = set || CFLAGS="-g"
1177 # Likewise for AC_PROG_CXX.
1180 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1182 # Extract the first word of "$ac_prog", so it can be a program name with args.
1183 set dummy $ac_prog; ac_word=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1188 else
1189 if test -n "$CXX"; then
1190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1191 else
1192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1193 ac_dummy="$PATH"
1194 for ac_dir in $ac_dummy; do
1195 test -z "$ac_dir" && ac_dir=.
1196 if test -f $ac_dir/$ac_word; then
1197 ac_cv_prog_CXX="$ac_prog"
1198 break
1200 done
1201 IFS="$ac_save_ifs"
1204 CXX="$ac_cv_prog_CXX"
1205 if test -n "$CXX"; then
1206 echo "$ac_t""$CXX" 1>&6
1207 else
1208 echo "$ac_t""no" 1>&6
1211 test -n "$CXX" && break
1212 done
1213 test -n "$CXX" || CXX="gcc"
1215 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1217 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether we are using GNU C++" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1221 else
1222 cat > conftest.C <<EOF
1223 #ifdef __GNUC__
1224 yes;
1225 #endif
1227 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1228 ac_cv_prog_gxx=yes
1229 else
1230 ac_cv_prog_gxx=no
1234 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1236 if test $ac_cv_prog_gxx = yes; then
1237 GXX=yes
1238 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1239 ac_save_CXXFLAGS="$CXXFLAGS"
1240 CXXFLAGS=
1241 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether ${CXX-g++} accepts -g" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1245 else
1246 echo 'void f(){}' > conftest.cc
1247 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1248 ac_cv_prog_cxx_g=yes
1249 else
1250 ac_cv_prog_cxx_g=no
1252 rm -f conftest*
1256 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1257 if test "$ac_test_CXXFLAGS" = set; then
1258 CXXFLAGS="$ac_save_CXXFLAGS"
1259 elif test $ac_cv_prog_cxx_g = yes; then
1260 CXXFLAGS="-g -O2"
1261 else
1262 CXXFLAGS="-O2"
1264 else
1265 GXX=
1266 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1270 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1271 # run it explicitly here, it will be run implicitly before
1272 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1273 # be run before AC_CANONICAL_HOST.
1274 echo $ac_n "checking build system type""... $ac_c" 1>&6
1275 echo "configure:1276: checking build system type" >&5
1277 build_alias=$build
1278 case "$build_alias" in
1279 NONE)
1280 case $nonopt in
1281 NONE) build_alias=$host_alias ;;
1282 *) build_alias=$nonopt ;;
1283 esac ;;
1284 esac
1286 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1287 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1288 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1289 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1290 echo "$ac_t""$build" 1>&6
1293 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1294 set dummy ${ac_tool_prefix}as; ac_word=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 if test -n "$AS"; then
1301 ac_cv_prog_AS="$AS" # Let the user override the test.
1302 else
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1304 ac_dummy="$PATH"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_prog_AS="${ac_tool_prefix}as"
1309 break
1311 done
1312 IFS="$ac_save_ifs"
1313 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1316 AS="$ac_cv_prog_AS"
1317 if test -n "$AS"; then
1318 echo "$ac_t""$AS" 1>&6
1319 else
1320 echo "$ac_t""no" 1>&6
1325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1326 set dummy ${ac_tool_prefix}ar; ac_word=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 if test -n "$AR"; then
1333 ac_cv_prog_AR="$AR" # Let the user override the test.
1334 else
1335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1336 ac_dummy="$PATH"
1337 for ac_dir in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_AR="${ac_tool_prefix}ar"
1341 break
1343 done
1344 IFS="$ac_save_ifs"
1345 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1348 AR="$ac_cv_prog_AR"
1349 if test -n "$AR"; then
1350 echo "$ac_t""$AR" 1>&6
1351 else
1352 echo "$ac_t""no" 1>&6
1357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1358 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 if test -n "$RANLIB"; then
1365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1366 else
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1368 ac_dummy="$PATH"
1369 for ac_dir in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1373 break
1375 done
1376 IFS="$ac_save_ifs"
1379 RANLIB="$ac_cv_prog_RANLIB"
1380 if test -n "$RANLIB"; then
1381 echo "$ac_t""$RANLIB" 1>&6
1382 else
1383 echo "$ac_t""no" 1>&6
1387 if test -z "$ac_cv_prog_RANLIB"; then
1388 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "ranlib", so it can be a program name with args.
1390 set dummy ranlib; ac_word=$2
1391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1392 echo "configure:1393: checking for $ac_word" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1395 else
1396 if test -n "$RANLIB"; then
1397 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1398 else
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 ac_dummy="$PATH"
1401 for ac_dir in $ac_dummy; do
1402 test -z "$ac_dir" && ac_dir=.
1403 if test -f $ac_dir/$ac_word; then
1404 ac_cv_prog_RANLIB="ranlib"
1405 break
1407 done
1408 IFS="$ac_save_ifs"
1409 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1412 RANLIB="$ac_cv_prog_RANLIB"
1413 if test -n "$RANLIB"; then
1414 echo "$ac_t""$RANLIB" 1>&6
1415 else
1416 echo "$ac_t""no" 1>&6
1419 else
1420 RANLIB=":"
1425 # Find a good install program. We prefer a C program (faster),
1426 # so one script is as good as another. But avoid the broken or
1427 # incompatible versions:
1428 # SysV /etc/install, /usr/sbin/install
1429 # SunOS /usr/etc/install
1430 # IRIX /sbin/install
1431 # AIX /bin/install
1432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1435 # ./install, which can be erroneously created by make from ./install.sh.
1436 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1437 echo "configure:1438: checking for a BSD compatible install" >&5
1438 if test -z "$INSTALL"; then
1439 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1441 else
1442 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1443 for ac_dir in $PATH; do
1444 # Account for people who put trailing slashes in PATH elements.
1445 case "$ac_dir/" in
1446 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1448 # OSF1 and SCO ODT 3.0 have their own names for install.
1449 # Don't use installbsd from OSF since it installs stuff as root
1450 # by default.
1451 for ac_prog in ginstall scoinst install; do
1452 if test -f $ac_dir/$ac_prog; then
1453 if test $ac_prog = install &&
1454 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1455 # AIX install. It has an incompatible calling convention.
1457 else
1458 ac_cv_path_install="$ac_dir/$ac_prog -c"
1459 break 2
1462 done
1464 esac
1465 done
1466 IFS="$ac_save_IFS"
1469 if test "${ac_cv_path_install+set}" = set; then
1470 INSTALL="$ac_cv_path_install"
1471 else
1472 # As a last resort, use the slow shell script. We don't cache a
1473 # path for INSTALL within a source directory, because that will
1474 # break other packages using the cache if that directory is
1475 # removed, or if the path is relative.
1476 INSTALL="$ac_install_sh"
1479 echo "$ac_t""$INSTALL" 1>&6
1481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1482 # It thinks the first close brace ends the variable substitution.
1483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1490 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1491 echo "configure:1492: checking whether to enable maintainer-specific portions of Makefiles" >&5
1492 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1493 if test "${enable_maintainer_mode+set}" = set; then
1494 enableval="$enable_maintainer_mode"
1495 USE_MAINTAINER_MODE=$enableval
1496 else
1497 USE_MAINTAINER_MODE=no
1500 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1503 if test $USE_MAINTAINER_MODE = yes; then
1504 MAINTAINER_MODE_TRUE=
1505 MAINTAINER_MODE_FALSE='#'
1506 else
1507 MAINTAINER_MODE_TRUE='#'
1508 MAINTAINER_MODE_FALSE=
1510 MAINT=$MAINTAINER_MODE_TRUE
1514 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1515 # at least currently, we never actually build a program, so we never
1516 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1517 # fails, because we are probably configuring with a cross compiler
1518 # which cant create executables. So we include AC_EXEEXT to keep
1519 # automake happy, but we dont execute it, since we dont care about
1520 # the result.
1521 if false; then
1524 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1525 echo "configure:1526: checking for executable suffix" >&5
1526 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1529 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1530 ac_cv_exeext=.exe
1531 else
1532 rm -f conftest*
1533 echo 'int main () { return 0; }' > conftest.$ac_ext
1534 ac_cv_exeext=
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1536 for file in conftest.*; do
1537 case $file in
1538 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1539 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1540 esac
1541 done
1542 else
1543 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1545 rm -f conftest*
1546 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1550 EXEEXT=""
1551 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1552 echo "$ac_t""${ac_cv_exeext}" 1>&6
1553 ac_exeext=$EXEEXT
1557 # configure.host sets the following important variables
1558 # libgcj_cflags - host specific C compiler flags
1559 # libgcj_cxxflags - host specific C++ compiler flags
1560 # libgcj_javaflags - host specific Java compiler flags
1562 libgcj_cflags=
1563 libgcj_cxxflags=
1564 libgcj_javaflags=
1566 . ${libgcj_basedir}/configure.host
1568 case ${libgcj_basedir} in
1569 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1570 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1571 esac
1573 LIBGCJ_CFLAGS="${libgcj_cflags}"
1574 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1575 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1585 # Check whether --enable-shared or --disable-shared was given.
1586 if test "${enable_shared+set}" = set; then
1587 enableval="$enable_shared"
1588 p=${PACKAGE-default}
1589 case "$enableval" in
1590 yes) enable_shared=yes ;;
1591 no) enable_shared=no ;;
1593 enable_shared=no
1594 # Look at the argument we got. We use all the common list separators.
1595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1596 for pkg in $enableval; do
1597 if test "X$pkg" = "X$p"; then
1598 enable_shared=yes
1600 done
1601 IFS="$ac_save_ifs"
1603 esac
1604 else
1605 enable_shared=yes
1608 # Check whether --enable-static or --disable-static was given.
1609 if test "${enable_static+set}" = set; then
1610 enableval="$enable_static"
1611 p=${PACKAGE-default}
1612 case "$enableval" in
1613 yes) enable_static=yes ;;
1614 no) enable_static=no ;;
1616 enable_static=no
1617 # Look at the argument we got. We use all the common list separators.
1618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1619 for pkg in $enableval; do
1620 if test "X$pkg" = "X$p"; then
1621 enable_static=yes
1623 done
1624 IFS="$ac_save_ifs"
1626 esac
1627 else
1628 enable_static=yes
1631 # Check whether --enable-fast-install or --disable-fast-install was given.
1632 if test "${enable_fast_install+set}" = set; then
1633 enableval="$enable_fast_install"
1634 p=${PACKAGE-default}
1635 case "$enableval" in
1636 yes) enable_fast_install=yes ;;
1637 no) enable_fast_install=no ;;
1639 enable_fast_install=no
1640 # Look at the argument we got. We use all the common list separators.
1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1642 for pkg in $enableval; do
1643 if test "X$pkg" = "X$p"; then
1644 enable_fast_install=yes
1646 done
1647 IFS="$ac_save_ifs"
1649 esac
1650 else
1651 enable_fast_install=yes
1654 # Extract the first word of "ranlib", so it can be a program name with args.
1655 set dummy ranlib; ac_word=$2
1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1657 echo "configure:1658: checking for $ac_word" >&5
1658 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1660 else
1661 if test -n "$RANLIB"; then
1662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1663 else
1664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1665 ac_dummy="$PATH"
1666 for ac_dir in $ac_dummy; do
1667 test -z "$ac_dir" && ac_dir=.
1668 if test -f $ac_dir/$ac_word; then
1669 ac_cv_prog_RANLIB="ranlib"
1670 break
1672 done
1673 IFS="$ac_save_ifs"
1674 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1677 RANLIB="$ac_cv_prog_RANLIB"
1678 if test -n "$RANLIB"; then
1679 echo "$ac_t""$RANLIB" 1>&6
1680 else
1681 echo "$ac_t""no" 1>&6
1684 # Extract the first word of "gcc", so it can be a program name with args.
1685 set dummy gcc; ac_word=$2
1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_word" >&5
1688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1695 ac_dummy="$PATH"
1696 for ac_dir in $ac_dummy; do
1697 test -z "$ac_dir" && ac_dir=.
1698 if test -f $ac_dir/$ac_word; then
1699 ac_cv_prog_CC="gcc"
1700 break
1702 done
1703 IFS="$ac_save_ifs"
1706 CC="$ac_cv_prog_CC"
1707 if test -n "$CC"; then
1708 echo "$ac_t""$CC" 1>&6
1709 else
1710 echo "$ac_t""no" 1>&6
1713 if test -z "$CC"; then
1714 # Extract the first word of "cc", so it can be a program name with args.
1715 set dummy cc; ac_word=$2
1716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1717 echo "configure:1718: checking for $ac_word" >&5
1718 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720 else
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1723 else
1724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1725 ac_prog_rejected=no
1726 ac_dummy="$PATH"
1727 for ac_dir in $ac_dummy; do
1728 test -z "$ac_dir" && ac_dir=.
1729 if test -f $ac_dir/$ac_word; then
1730 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1731 ac_prog_rejected=yes
1732 continue
1734 ac_cv_prog_CC="cc"
1735 break
1737 done
1738 IFS="$ac_save_ifs"
1739 if test $ac_prog_rejected = yes; then
1740 # We found a bogon in the path, so make sure we never use it.
1741 set dummy $ac_cv_prog_CC
1742 shift
1743 if test $# -gt 0; then
1744 # We chose a different compiler from the bogus one.
1745 # However, it has the same basename, so the bogon will be chosen
1746 # first if we set CC to just the basename; use the full file name.
1747 shift
1748 set dummy "$ac_dir/$ac_word" "$@"
1749 shift
1750 ac_cv_prog_CC="$@"
1755 CC="$ac_cv_prog_CC"
1756 if test -n "$CC"; then
1757 echo "$ac_t""$CC" 1>&6
1758 else
1759 echo "$ac_t""no" 1>&6
1762 if test -z "$CC"; then
1763 case "`uname -s`" in
1764 *win32* | *WIN32*)
1765 # Extract the first word of "cl", so it can be a program name with args.
1766 set dummy cl; ac_word=$2
1767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1768 echo "configure:1769: checking for $ac_word" >&5
1769 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 else
1775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1776 ac_dummy="$PATH"
1777 for ac_dir in $ac_dummy; do
1778 test -z "$ac_dir" && ac_dir=.
1779 if test -f $ac_dir/$ac_word; then
1780 ac_cv_prog_CC="cl"
1781 break
1783 done
1784 IFS="$ac_save_ifs"
1787 CC="$ac_cv_prog_CC"
1788 if test -n "$CC"; then
1789 echo "$ac_t""$CC" 1>&6
1790 else
1791 echo "$ac_t""no" 1>&6
1794 esac
1796 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1800 echo "configure:1801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1802 ac_ext=c
1803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1807 cross_compiling=$ac_cv_prog_cc_cross
1809 cat > conftest.$ac_ext << EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1814 main(){return(0);}
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1817 ac_cv_prog_cc_works=yes
1818 # If we can't run a trivial program, we are probably using a cross compiler.
1819 if (./conftest; exit) 2>/dev/null; then
1820 ac_cv_prog_cc_cross=no
1821 else
1822 ac_cv_prog_cc_cross=yes
1824 else
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1827 ac_cv_prog_cc_works=no
1829 rm -fr conftest*
1830 ac_ext=c
1831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1835 cross_compiling=$ac_cv_prog_cc_cross
1837 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1838 if test $ac_cv_prog_cc_works = no; then
1839 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1841 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1843 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1844 cross_compiling=$ac_cv_prog_cc_cross
1846 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1847 echo "configure:1848: checking whether we are using GNU C" >&5
1848 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1850 else
1851 cat > conftest.c <<EOF
1852 #ifdef __GNUC__
1853 yes;
1854 #endif
1856 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1857 ac_cv_prog_gcc=yes
1858 else
1859 ac_cv_prog_gcc=no
1863 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1865 if test $ac_cv_prog_gcc = yes; then
1866 GCC=yes
1867 else
1868 GCC=
1871 ac_test_CFLAGS="${CFLAGS+set}"
1872 ac_save_CFLAGS="$CFLAGS"
1873 CFLAGS=
1874 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1875 echo "configure:1876: checking whether ${CC-cc} accepts -g" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 echo 'void f(){}' > conftest.c
1880 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1881 ac_cv_prog_cc_g=yes
1882 else
1883 ac_cv_prog_cc_g=no
1885 rm -f conftest*
1889 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1890 if test "$ac_test_CFLAGS" = set; then
1891 CFLAGS="$ac_save_CFLAGS"
1892 elif test $ac_cv_prog_cc_g = yes; then
1893 if test "$GCC" = yes; then
1894 CFLAGS="-g -O2"
1895 else
1896 CFLAGS="-g"
1898 else
1899 if test "$GCC" = yes; then
1900 CFLAGS="-O2"
1901 else
1902 CFLAGS=
1906 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1907 if test "${with_gnu_ld+set}" = set; then
1908 withval="$with_gnu_ld"
1909 test "$withval" = no || with_gnu_ld=yes
1910 else
1911 with_gnu_ld=no
1914 ac_prog=ld
1915 if test "$ac_cv_prog_gcc" = yes; then
1916 # Check if gcc -print-prog-name=ld gives a path.
1917 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1918 echo "configure:1919: checking for ld used by GCC" >&5
1919 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1920 case "$ac_prog" in
1921 # Accept absolute paths.
1922 [\\/]* | [A-Za-z]:[\\/]*)
1923 re_direlt='/[^/][^/]*/\.\./'
1924 # Canonicalize the path of ld
1925 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1926 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1927 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1928 done
1929 test -z "$LD" && LD="$ac_prog"
1932 # If it fails, then pretend we aren't using GCC.
1933 ac_prog=ld
1936 # If it is relative, then search for the first ld in PATH.
1937 with_gnu_ld=unknown
1939 esac
1940 elif test "$with_gnu_ld" = yes; then
1941 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1942 echo "configure:1943: checking for GNU ld" >&5
1943 else
1944 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1945 echo "configure:1946: checking for non-GNU ld" >&5
1947 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1949 else
1950 if test -z "$LD"; then
1951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1952 for ac_dir in $PATH; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1955 ac_cv_path_LD="$ac_dir/$ac_prog"
1956 # Check to see if the program is GNU ld. I'd rather use --version,
1957 # but apparently some GNU ld's only accept -v.
1958 # Break only if it was the GNU/non-GNU ld that we prefer.
1959 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1960 test "$with_gnu_ld" != no && break
1961 else
1962 test "$with_gnu_ld" != yes && break
1965 done
1966 IFS="$ac_save_ifs"
1967 else
1968 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1972 LD="$ac_cv_path_LD"
1973 if test -n "$LD"; then
1974 echo "$ac_t""$LD" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1978 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1980 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1981 echo "configure:1982: checking if the linker ($LD) is GNU ld" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1986 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1987 ac_cv_prog_gnu_ld=yes
1988 else
1989 ac_cv_prog_gnu_ld=no
1993 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1996 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1997 echo "configure:1998: checking for BSD-compatible nm" >&5
1998 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001 if test -n "$NM"; then
2002 # Let the user override the test.
2003 ac_cv_path_NM="$NM"
2004 else
2005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2006 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2007 test -z "$ac_dir" && ac_dir=.
2008 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2009 # Check to see if the nm accepts a BSD-compat flag.
2010 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2011 # nm: unknown option "B" ignored
2012 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2013 ac_cv_path_NM="$ac_dir/nm -B"
2014 break
2015 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2016 ac_cv_path_NM="$ac_dir/nm -p"
2017 break
2018 else
2019 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2020 continue # so that we can try to find one that supports BSD flags
2023 done
2024 IFS="$ac_save_ifs"
2025 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2029 NM="$ac_cv_path_NM"
2030 echo "$ac_t""$NM" 1>&6
2033 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether ln -s works" >&5
2035 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2037 else
2038 rm -f conftestdata
2039 if ln -s X conftestdata 2>/dev/null
2040 then
2041 rm -f conftestdata
2042 ac_cv_prog_LN_S="ln -s"
2043 else
2044 ac_cv_prog_LN_S=ln
2047 LN_S="$ac_cv_prog_LN_S"
2048 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2049 echo "$ac_t""yes" 1>&6
2050 else
2051 echo "$ac_t""no" 1>&6
2055 # Check for any special flags to pass to ltconfig.
2056 libtool_flags="--cache-file=$cache_file"
2057 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2058 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2059 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
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"
2064 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2065 if test "${enable_libtool_lock+set}" = set; then
2066 enableval="$enable_libtool_lock"
2070 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2071 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2073 # Some flags need to be propagated to the compiler or linker for good
2074 # libtool support.
2075 case "$host" in
2076 *-*-irix6*)
2077 # Find out which ABI we are using.
2078 echo '#line 2079 "configure"' > conftest.$ac_ext
2079 if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2080 case "`/usr/bin/file conftest.o`" in
2081 *32-bit*)
2082 LD="${LD-ld} -32"
2084 *N32*)
2085 LD="${LD-ld} -n32"
2087 *64-bit*)
2088 LD="${LD-ld} -64"
2090 esac
2092 rm -rf conftest*
2095 *-*-sco3.2v5*)
2096 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2097 SAVE_CFLAGS="$CFLAGS"
2098 CFLAGS="$CFLAGS -belf"
2099 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2100 echo "configure:2101: checking whether the C compiler needs -belf" >&5
2101 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2108 int main() {
2110 ; return 0; }
2112 if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2113 rm -rf conftest*
2114 lt_cv_cc_needs_belf=yes
2115 else
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 rm -rf conftest*
2119 lt_cv_cc_needs_belf=no
2121 rm -f conftest*
2124 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2125 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2126 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2127 CFLAGS="$SAVE_CFLAGS"
2132 esac
2135 # Save cache, so that ltconfig can load it
2136 cat > confcache <<\EOF
2137 # This file is a shell script that caches the results of configure
2138 # tests run on this system so they can be shared between configure
2139 # scripts and configure runs. It is not useful on other systems.
2140 # If it contains results you don't want to keep, you may remove or edit it.
2142 # By default, configure uses ./config.cache as the cache file,
2143 # creating it if it does not exist already. You can give configure
2144 # the --cache-file=FILE option to use a different cache file; that is
2145 # what configure does when it calls configure scripts in
2146 # subdirectories, so they share the cache.
2147 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2148 # config.status only pays attention to the cache file if you give it the
2149 # --recheck option to rerun configure.
2152 # The following way of writing the cache mishandles newlines in values,
2153 # but we know of no workaround that is simple, portable, and efficient.
2154 # So, don't put newlines in cache variables' values.
2155 # Ultrix sh set writes to stderr and can't be redirected directly,
2156 # and sets the high bit in the cache file unless we assign to the vars.
2157 (set) 2>&1 |
2158 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2159 *ac_space=\ *)
2160 # `set' does not quote correctly, so add quotes (double-quote substitution
2161 # turns \\\\ into \\, and sed turns \\ into \).
2162 sed -n \
2163 -e "s/'/'\\\\''/g" \
2164 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2167 # `set' quotes correctly as required by POSIX, so do not add quotes.
2168 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2170 esac >> confcache
2171 if cmp -s $cache_file confcache; then
2173 else
2174 if test -w $cache_file; then
2175 echo "updating cache $cache_file"
2176 cat confcache > $cache_file
2177 else
2178 echo "not updating unwritable cache $cache_file"
2181 rm -f confcache
2184 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2185 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2186 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2187 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2188 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2189 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2190 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2191 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2193 # Reload cache, that may have been modified by ltconfig
2194 if test -r "$cache_file"; then
2195 echo "loading cache $cache_file"
2196 . $cache_file
2197 else
2198 echo "creating cache $cache_file"
2199 > $cache_file
2203 # This can be used to rebuild libtool when needed
2204 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2206 # Always use our own libtool.
2207 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2209 # Redirect the config.log output again, so that the ltconfig log is not
2210 # clobbered by the next message.
2211 exec 5>>./config.log
2214 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2215 COMPPATH=.
2216 else
2217 COMPPATH=..
2223 if test -d $srcdir/testsuite; then
2224 TESTSUBDIR_TRUE=
2225 TESTSUBDIR_FALSE='#'
2226 else
2227 TESTSUBDIR_TRUE='#'
2228 TESTSUBDIR_FALSE=
2231 # Check whether --enable-fast-character or --disable-fast-character was given.
2232 if test "${enable_fast_character+set}" = set; then
2233 enableval="$enable_fast_character"
2234 # Nothing
2236 else
2237 cat >> confdefs.h <<\EOF
2238 #define COMPACT_CHARACTER 1
2244 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2245 if test "${enable_libgcj_debug+set}" = set; then
2246 enableval="$enable_libgcj_debug"
2247 if test "$enable_libgcj_debug" = yes; then
2248 cat >> confdefs.h <<\EOF
2249 #define DEBUG 1
2256 TARGET_ECOS="no"
2257 # Check whether --with-ecos or --without-ecos was given.
2258 if test "${with_ecos+set}" = set; then
2259 withval="$with_ecos"
2260 TARGET_ECOS="$with_ecos"
2265 case "$TARGET_ECOS" in
2267 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2268 PROCESS=Posix
2271 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2272 PROCESS=Ecos
2273 cat >> confdefs.h <<\EOF
2274 #define ECOS 1
2278 esac
2280 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2281 echo "configure:2282: checking how to run the C preprocessor" >&5
2282 # On Suns, sometimes $CPP names a directory.
2283 if test -n "$CPP" && test -d "$CPP"; then
2284 CPP=
2286 if test -z "$CPP"; then
2287 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2289 else
2290 # This must be in double quotes, not single quotes, because CPP may get
2291 # substituted into the Makefile and "${CC-cc}" will confuse make.
2292 CPP="${CC-cc} -E"
2293 # On the NeXT, cc -E runs the code through the compiler's parser,
2294 # not just through cpp.
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 #include <assert.h>
2299 Syntax Error
2301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2302 { (eval echo configure:2303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2304 if test -z "$ac_err"; then
2306 else
2307 echo "$ac_err" >&5
2308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2310 rm -rf conftest*
2311 CPP="${CC-cc} -E -traditional-cpp"
2312 cat > conftest.$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2315 #include <assert.h>
2316 Syntax Error
2318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2319 { (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2321 if test -z "$ac_err"; then
2323 else
2324 echo "$ac_err" >&5
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2327 rm -rf conftest*
2328 CPP="${CC-cc} -nologo -E"
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2332 #include <assert.h>
2333 Syntax Error
2335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2336 { (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2338 if test -z "$ac_err"; then
2340 else
2341 echo "$ac_err" >&5
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 rm -rf conftest*
2345 CPP=/lib/cpp
2347 rm -f conftest*
2349 rm -f conftest*
2351 rm -f conftest*
2352 ac_cv_prog_CPP="$CPP"
2354 CPP="$ac_cv_prog_CPP"
2355 else
2356 ac_cv_prog_CPP="$CPP"
2358 echo "$ac_t""$CPP" 1>&6
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 #include <stdint.h>
2365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2366 egrep "uint32_t" >/dev/null 2>&1; then
2367 rm -rf conftest*
2368 cat >> confdefs.h <<\EOF
2369 #define HAVE_INT32_DEFINED 1
2373 rm -f conftest*
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 #include <inttypes.h>
2380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2381 egrep "uint32_t" >/dev/null 2>&1; then
2382 rm -rf conftest*
2383 cat >> confdefs.h <<\EOF
2384 #define HAVE_INT32_DEFINED 1
2388 rm -f conftest*
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 #include <sys/types.h>
2395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2396 egrep "u_int32_t" >/dev/null 2>&1; then
2397 rm -rf conftest*
2398 cat >> confdefs.h <<\EOF
2399 #define HAVE_BSD_INT32_DEFINED 1
2403 rm -f conftest*
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <sys/config.h>
2410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2411 egrep "u_int32_t" >/dev/null 2>&1; then
2412 rm -rf conftest*
2413 cat >> confdefs.h <<\EOF
2414 #define HAVE_BSD_INT32_DEFINED 1
2418 rm -f conftest*
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425 #include <time.h>
2427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2428 egrep "mktime" >/dev/null 2>&1; then
2429 rm -rf conftest*
2430 cat >> confdefs.h <<\EOF
2431 #define HAVE_MKTIME 1
2435 rm -f conftest*
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2440 #include <time.h>
2442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2443 egrep "localtime" >/dev/null 2>&1; then
2444 rm -rf conftest*
2445 cat >> confdefs.h <<\EOF
2446 #define HAVE_LOCALTIME 1
2450 rm -f conftest*
2453 test -d java || mkdir java
2454 test -d java/io || mkdir java/io
2457 test -d java/lang || mkdir java/lang
2461 SYSTEMSPEC=
2464 # Check whether --with-system-zlib or --without-system-zlib was given.
2465 if test "${with_system_zlib+set}" = set; then
2466 withval="$with_system_zlib"
2470 ZLIBSPEC=
2473 libsubdir=.libs
2475 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2476 echo "configure:2477: checking for garbage collector to use" >&5
2477 # Check whether --enable-java-gc or --disable-java-gc was given.
2478 if test "${enable_java_gc+set}" = set; then
2479 enableval="$enable_java_gc"
2481 GC=$enableval
2482 else
2483 GC=boehm
2486 GCLIBS=
2487 GCINCS=
2488 GCDEPS=
2489 GCOBJS=
2490 GCSPEC=
2491 case "$GC" in
2492 boehm)
2493 echo "$ac_t""boehm" 1>&6
2494 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2495 # We include the path to the boehm-gc build directory.
2496 # See Makefile.am to understand why.
2497 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2498 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2499 GCSPEC='-lgcjgc'
2500 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2501 GCOBJS=boehm.lo
2502 GCHDR=boehm-gc.h
2503 cat >> confdefs.h <<\EOF
2504 #define HAVE_BOEHM_GC 1
2509 echo "$ac_t""none" 1>&6
2510 GCOBJS=nogc.lo
2511 GCHDR=no-gc.h
2514 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2516 esac
2525 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2526 echo "configure:2527: checking for threads package to use" >&5
2527 # Check whether --enable-threads or --disable-threads was given.
2528 if test "${enable_threads+set}" = set; then
2529 enableval="$enable_threads"
2530 THREADS=$enableval
2531 else
2532 THREADS=no
2536 if test "$THREADS" = yes; then
2537 case "$host" in
2538 *-*-vxworks*)
2539 THREADS=vxworks
2541 *-*-linux*)
2542 # FIXME: this isn't correct in all cases.
2543 THREADS=posix
2545 *-*-win*)
2546 THREADS=win32
2548 *-*-irix*)
2549 # FIXME: for now, choose POSIX, because we implement that.
2550 # Later, choose irix threads.
2551 THREADS=posix
2553 *-*-solaris*)
2554 # FIXME: for now, choose POSIX, because we implement that.
2555 # Later, choose solaris threads.
2556 THREADS=posix
2559 # For now.
2560 THREADS=none
2562 esac
2565 case "$THREADS" in
2566 no | none | single)
2567 THREADS=none
2569 posix | pthreads)
2570 THREADS=posix
2571 case "$host" in
2572 *-*-linux*)
2573 cat >> confdefs.h <<\EOF
2574 #define LINUX_THREADS 1
2578 esac
2582 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2583 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2586 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2588 esac
2589 echo "$ac_t""$THREADS" 1>&6
2591 THREADLIBS=
2592 THREADINCS=
2593 THREADDEPS=
2594 THREADOBJS=
2595 THREADH=
2596 THREADSPEC=
2597 case "$THREADS" in
2598 posix)
2599 THREADLIBS=-lpthread
2600 THREADSPEC=-lpthread
2601 THREADOBJS=posix-threads.lo
2602 THREADH=posix-threads.h
2603 # MIT pthreads doesn't seem to have the mutexattr functions.
2604 # But for now we don't check for it. We just assume you aren't
2605 # using MIT pthreads.
2606 cat >> confdefs.h <<\EOF
2607 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2613 THREADDEPS='$(top_builddir)/../qthreads/libgcjcoop.la'
2614 # We include the path to the qthreads build directory.
2615 # See Makefile.am to understand why.
2616 THREADLIBS="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2617 THREADSPEC='-lgcjcoop'
2618 THREADOBJS=quick-threads.lo
2619 THREADINCS='-I$(top_srcdir)/../qthreads'
2620 THREADH=quick-threads.h
2623 none)
2624 THREADOBJS=no-threads.lo
2625 THREADH=no-threads.h
2627 esac
2637 if test "$GCC" = yes; then
2638 USING_GCC_TRUE=
2639 USING_GCC_FALSE='#'
2640 else
2641 USING_GCC_TRUE='#'
2642 USING_GCC_FALSE=
2645 CANADIAN=no
2646 NULL_TARGET=no
2648 # Find eh-common.h and support headers. If we're in the tree with
2649 # gcc, then look there. Otherwise look in compat-include. If all else
2650 # fails, just hope the user has set things up somehow.
2651 if test -r $srcdir/../gcc/eh-common.h; then
2652 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2653 else
2654 if test -d $srcdir/../compat-include; then
2655 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2656 else
2657 EH_COMMON_INCLUDE=
2661 if test -n "${with_cross_host}"; then
2662 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2663 # may not work correctly, because the compiler may not be able to
2664 # link executables.
2666 # We assume newlib. This lets us hard-code the functions we know
2667 # we'll have.
2668 cat >> confdefs.h <<\EOF
2669 #define HAVE_MEMMOVE 1
2672 cat >> confdefs.h <<\EOF
2673 #define HAVE_MEMCPY 1
2676 cat >> confdefs.h <<\EOF
2677 #define HAVE_STRERROR 1
2680 cat >> confdefs.h <<\EOF
2681 #define HAVE_CTIME_R 1
2684 cat >> confdefs.h <<\EOF
2685 #define HAVE_GMTIME_R 1
2688 cat >> confdefs.h <<\EOF
2689 #define HAVE_LOCALTIME_R 1
2692 cat >> confdefs.h <<\EOF
2693 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2696 cat >> confdefs.h <<\EOF
2697 #define HAVE_ALLOCA 1
2701 ZLIBSPEC=-lgcj
2703 # If Canadian cross, then don't pick up tools from the build
2704 # directory.
2705 if test "$build" != "$with_cross_host"; then
2706 CANADIAN=yes
2707 EH_COMMON_INCLUDE=
2708 GCJ="${target_alias}/gcj"
2709 else
2710 GCJ=
2712 else
2713 # Some POSIX thread systems don't have pthread_mutexattr_settype.
2714 # E.g., Solaris.
2715 for ac_func in strerror ioctl select open fsync sleep
2717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2718 echo "configure:2719: checking for $ac_func" >&5
2719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2721 else
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 /* System header to define __stub macros and hopefully few prototypes,
2726 which can conflict with char $ac_func(); below. */
2727 #include <assert.h>
2728 /* Override any gcc2 internal prototype to avoid an error. */
2729 /* We use char because int might match the return type of a gcc2
2730 builtin and then its argument prototype would still apply. */
2731 char $ac_func();
2733 int main() {
2735 /* The GNU C library defines this for functions which it implements
2736 to always fail with ENOSYS. Some functions are actually named
2737 something starting with __ and the normal name is an alias. */
2738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2739 choke me
2740 #else
2741 $ac_func();
2742 #endif
2744 ; return 0; }
2746 if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2747 rm -rf conftest*
2748 eval "ac_cv_func_$ac_func=yes"
2749 else
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2752 rm -rf conftest*
2753 eval "ac_cv_func_$ac_func=no"
2755 rm -f conftest*
2758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2761 cat >> confdefs.h <<EOF
2762 #define $ac_tr_func 1
2765 else
2766 echo "$ac_t""no" 1>&6
2768 done
2770 for ac_func in ctime_r ctime
2772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_func" >&5
2774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2776 else
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char $ac_func(); below. */
2782 #include <assert.h>
2783 /* Override any gcc2 internal prototype to avoid an error. */
2784 /* We use char because int might match the return type of a gcc2
2785 builtin and then its argument prototype would still apply. */
2786 char $ac_func();
2788 int main() {
2790 /* The GNU C library defines this for functions which it implements
2791 to always fail with ENOSYS. Some functions are actually named
2792 something starting with __ and the normal name is an alias. */
2793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2794 choke me
2795 #else
2796 $ac_func();
2797 #endif
2799 ; return 0; }
2801 if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2802 rm -rf conftest*
2803 eval "ac_cv_func_$ac_func=yes"
2804 else
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2807 rm -rf conftest*
2808 eval "ac_cv_func_$ac_func=no"
2810 rm -f conftest*
2813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2814 echo "$ac_t""yes" 1>&6
2815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2816 cat >> confdefs.h <<EOF
2817 #define $ac_tr_func 1
2819 break
2820 else
2821 echo "$ac_t""no" 1>&6
2823 done
2825 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
2827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_func" >&5
2829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2831 else
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 /* System header to define __stub macros and hopefully few prototypes,
2836 which can conflict with char $ac_func(); below. */
2837 #include <assert.h>
2838 /* Override any gcc2 internal prototype to avoid an error. */
2839 /* We use char because int might match the return type of a gcc2
2840 builtin and then its argument prototype would still apply. */
2841 char $ac_func();
2843 int main() {
2845 /* The GNU C library defines this for functions which it implements
2846 to always fail with ENOSYS. Some functions are actually named
2847 something starting with __ and the normal name is an alias. */
2848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2849 choke me
2850 #else
2851 $ac_func();
2852 #endif
2854 ; return 0; }
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2857 rm -rf conftest*
2858 eval "ac_cv_func_$ac_func=yes"
2859 else
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 rm -rf conftest*
2863 eval "ac_cv_func_$ac_func=no"
2865 rm -f conftest*
2868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2869 echo "$ac_t""yes" 1>&6
2870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2871 cat >> confdefs.h <<EOF
2872 #define $ac_tr_func 1
2875 else
2876 echo "$ac_t""no" 1>&6
2878 done
2880 for ac_func in access stat mkdir rename rmdir unlink realpath
2882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2883 echo "configure:2884: checking for $ac_func" >&5
2884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2886 else
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 /* System header to define __stub macros and hopefully few prototypes,
2891 which can conflict with char $ac_func(); below. */
2892 #include <assert.h>
2893 /* Override any gcc2 internal prototype to avoid an error. */
2894 /* We use char because int might match the return type of a gcc2
2895 builtin and then its argument prototype would still apply. */
2896 char $ac_func();
2898 int main() {
2900 /* The GNU C library defines this for functions which it implements
2901 to always fail with ENOSYS. Some functions are actually named
2902 something starting with __ and the normal name is an alias. */
2903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2904 choke me
2905 #else
2906 $ac_func();
2907 #endif
2909 ; return 0; }
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2912 rm -rf conftest*
2913 eval "ac_cv_func_$ac_func=yes"
2914 else
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2917 rm -rf conftest*
2918 eval "ac_cv_func_$ac_func=no"
2920 rm -f conftest*
2923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2926 cat >> confdefs.h <<EOF
2927 #define $ac_tr_func 1
2930 else
2931 echo "$ac_t""no" 1>&6
2933 done
2935 for ac_func in inet_aton inet_addr
2937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2938 echo "configure:2939: checking for $ac_func" >&5
2939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2941 else
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2945 /* System header to define __stub macros and hopefully few prototypes,
2946 which can conflict with char $ac_func(); below. */
2947 #include <assert.h>
2948 /* Override any gcc2 internal prototype to avoid an error. */
2949 /* We use char because int might match the return type of a gcc2
2950 builtin and then its argument prototype would still apply. */
2951 char $ac_func();
2953 int main() {
2955 /* The GNU C library defines this for functions which it implements
2956 to always fail with ENOSYS. Some functions are actually named
2957 something starting with __ and the normal name is an alias. */
2958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2959 choke me
2960 #else
2961 $ac_func();
2962 #endif
2964 ; return 0; }
2966 if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2967 rm -rf conftest*
2968 eval "ac_cv_func_$ac_func=yes"
2969 else
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 rm -rf conftest*
2973 eval "ac_cv_func_$ac_func=no"
2975 rm -f conftest*
2978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2979 echo "$ac_t""yes" 1>&6
2980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2981 cat >> confdefs.h <<EOF
2982 #define $ac_tr_func 1
2984 break
2985 else
2986 echo "$ac_t""no" 1>&6
2988 done
2990 for ac_func in inet_pton uname inet_ntoa
2992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_func" >&5
2994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2996 else
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 /* System header to define __stub macros and hopefully few prototypes,
3001 which can conflict with char $ac_func(); below. */
3002 #include <assert.h>
3003 /* Override any gcc2 internal prototype to avoid an error. */
3004 /* We use char because int might match the return type of a gcc2
3005 builtin and then its argument prototype would still apply. */
3006 char $ac_func();
3008 int main() {
3010 /* The GNU C library defines this for functions which it implements
3011 to always fail with ENOSYS. Some functions are actually named
3012 something starting with __ and the normal name is an alias. */
3013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3014 choke me
3015 #else
3016 $ac_func();
3017 #endif
3019 ; return 0; }
3021 if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3022 rm -rf conftest*
3023 eval "ac_cv_func_$ac_func=yes"
3024 else
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3027 rm -rf conftest*
3028 eval "ac_cv_func_$ac_func=no"
3030 rm -f conftest*
3033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3036 cat >> confdefs.h <<EOF
3037 #define $ac_tr_func 1
3040 else
3041 echo "$ac_t""no" 1>&6
3043 done
3046 for ac_func in gethostbyname_r
3048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_func" >&5
3050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3052 else
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 /* System header to define __stub macros and hopefully few prototypes,
3057 which can conflict with char $ac_func(); below. */
3058 #include <assert.h>
3059 /* Override any gcc2 internal prototype to avoid an error. */
3060 /* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
3062 char $ac_func();
3064 int main() {
3066 /* The GNU C library defines this for functions which it implements
3067 to always fail with ENOSYS. Some functions are actually named
3068 something starting with __ and the normal name is an alias. */
3069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3070 choke me
3071 #else
3072 $ac_func();
3073 #endif
3075 ; return 0; }
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3078 rm -rf conftest*
3079 eval "ac_cv_func_$ac_func=yes"
3080 else
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3083 rm -rf conftest*
3084 eval "ac_cv_func_$ac_func=no"
3086 rm -f conftest*
3089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3092 cat >> confdefs.h <<EOF
3093 #define $ac_tr_func 1
3096 cat >> confdefs.h <<\EOF
3097 #define HAVE_GETHOSTBYNAME_R 1
3100 # There are two different kinds of gethostbyname_r.
3101 # We look for the one that returns `int'.
3102 # Hopefully this check is robust enough.
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 #include <netdb.h>
3108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3110 rm -rf conftest*
3112 cat >> confdefs.h <<\EOF
3113 #define GETHOSTBYNAME_R_RETURNS_INT 1
3117 rm -f conftest*
3120 case " $GCINCS " in
3121 *" -D_REENTRANT "*) ;;
3123 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3124 echo "configure:3125: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3125 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3127 else
3129 ac_ext=C
3130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3131 ac_cpp='$CXXCPP $CPPFLAGS'
3132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3134 cross_compiling=$ac_cv_prog_cxx_cross
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 #include <netdb.h>
3140 int main() {
3141 gethostbyname_r("", 0, 0);
3142 ; return 0; }
3144 if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3145 rm -rf conftest*
3146 libjava_cv_gethostbyname_r_needs_reentrant=no
3147 else
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3150 rm -rf conftest*
3151 CPPFLAGS_SAVE="$CPPFLAGS"
3152 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3156 #include <netdb.h>
3157 int main() {
3158 gethostbyname_r("", 0, 0);
3159 ; return 0; }
3161 if { (eval echo configure:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3162 rm -rf conftest*
3163 libjava_cv_gethostbyname_r_needs_reentrant=yes
3164 else
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 rm -rf conftest*
3168 libjava_cv_gethostbyname_r_needs_reentrant=fail
3170 rm -f conftest*
3171 CPPFLAGS="$CPPFLAGS_SAVE"
3174 rm -f conftest*
3175 ac_ext=c
3176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3180 cross_compiling=$ac_cv_prog_cc_cross
3185 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3186 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3187 cat >> confdefs.h <<\EOF
3188 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3193 esac
3195 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3196 echo "configure:3197: checking for struct hostent_data" >&5
3197 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3199 else
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3204 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3205 # define _REENTRANT 1
3206 #endif
3207 #include <netdb.h>
3208 int main() {
3209 struct hostent_data data;
3210 ; return 0; }
3212 if { (eval echo configure:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3213 rm -rf conftest*
3214 libjava_cv_struct_hostent_data=yes
3215 else
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3218 rm -rf conftest*
3219 libjava_cv_struct_hostent_data=no
3221 rm -f conftest*
3224 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3225 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3226 cat >> confdefs.h <<\EOF
3227 #define HAVE_STRUCT_HOSTENT_DATA 1
3232 else
3233 echo "$ac_t""no" 1>&6
3235 done
3238 for ac_func in gethostbyaddr_r
3240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_func" >&5
3242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3244 else
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 /* System header to define __stub macros and hopefully few prototypes,
3249 which can conflict with char $ac_func(); below. */
3250 #include <assert.h>
3251 /* Override any gcc2 internal prototype to avoid an error. */
3252 /* We use char because int might match the return type of a gcc2
3253 builtin and then its argument prototype would still apply. */
3254 char $ac_func();
3256 int main() {
3258 /* The GNU C library defines this for functions which it implements
3259 to always fail with ENOSYS. Some functions are actually named
3260 something starting with __ and the normal name is an alias. */
3261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3262 choke me
3263 #else
3264 $ac_func();
3265 #endif
3267 ; return 0; }
3269 if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 rm -rf conftest*
3271 eval "ac_cv_func_$ac_func=yes"
3272 else
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3275 rm -rf conftest*
3276 eval "ac_cv_func_$ac_func=no"
3278 rm -f conftest*
3281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3284 cat >> confdefs.h <<EOF
3285 #define $ac_tr_func 1
3288 cat >> confdefs.h <<\EOF
3289 #define HAVE_GETHOSTBYADDR_R 1
3292 # There are two different kinds of gethostbyaddr_r.
3293 # We look for the one that returns `int'.
3294 # Hopefully this check is robust enough.
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 #include <netdb.h>
3300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3301 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3302 rm -rf conftest*
3304 cat >> confdefs.h <<\EOF
3305 #define GETHOSTBYADDR_R_RETURNS_INT 1
3309 rm -f conftest*
3311 else
3312 echo "$ac_t""no" 1>&6
3314 done
3317 for ac_func in gethostname
3319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_func" >&5
3321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3323 else
3324 cat > conftest.$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 /* System header to define __stub macros and hopefully few prototypes,
3328 which can conflict with char $ac_func(); below. */
3329 #include <assert.h>
3330 /* Override any gcc2 internal prototype to avoid an error. */
3331 /* We use char because int might match the return type of a gcc2
3332 builtin and then its argument prototype would still apply. */
3333 char $ac_func();
3335 int main() {
3337 /* The GNU C library defines this for functions which it implements
3338 to always fail with ENOSYS. Some functions are actually named
3339 something starting with __ and the normal name is an alias. */
3340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3341 choke me
3342 #else
3343 $ac_func();
3344 #endif
3346 ; return 0; }
3348 if { (eval echo configure:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3349 rm -rf conftest*
3350 eval "ac_cv_func_$ac_func=yes"
3351 else
3352 echo "configure: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3354 rm -rf conftest*
3355 eval "ac_cv_func_$ac_func=no"
3357 rm -f conftest*
3360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3361 echo "$ac_t""yes" 1>&6
3362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3363 cat >> confdefs.h <<EOF
3364 #define $ac_tr_func 1
3367 cat >> confdefs.h <<\EOF
3368 #define HAVE_GETHOSTNAME 1
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 #include <unistd.h>
3376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3377 egrep "gethostname" >/dev/null 2>&1; then
3378 rm -rf conftest*
3380 cat >> confdefs.h <<\EOF
3381 #define HAVE_GETHOSTNAME_DECL 1
3385 rm -f conftest*
3387 else
3388 echo "$ac_t""no" 1>&6
3390 done
3393 # Look for these functions in the thread library.
3394 save_LIBS="$LIBS"
3395 LIBS="$LIBS $THREADLIBS"
3396 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np sched_yield
3398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_func" >&5
3400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3402 else
3403 cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 /* System header to define __stub macros and hopefully few prototypes,
3407 which can conflict with char $ac_func(); below. */
3408 #include <assert.h>
3409 /* Override any gcc2 internal prototype to avoid an error. */
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3412 char $ac_func();
3414 int main() {
3416 /* The GNU C library defines this for functions which it implements
3417 to always fail with ENOSYS. Some functions are actually named
3418 something starting with __ and the normal name is an alias. */
3419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3420 choke me
3421 #else
3422 $ac_func();
3423 #endif
3425 ; return 0; }
3427 if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3428 rm -rf conftest*
3429 eval "ac_cv_func_$ac_func=yes"
3430 else
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 rm -rf conftest*
3434 eval "ac_cv_func_$ac_func=no"
3436 rm -f conftest*
3439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3440 echo "$ac_t""yes" 1>&6
3441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3442 cat >> confdefs.h <<EOF
3443 #define $ac_tr_func 1
3446 else
3447 echo "$ac_t""no" 1>&6
3449 done
3451 # Look for sched_yield. Sometimes it is in the posix4 library.
3452 for ac_func in sched_yield
3454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3455 echo "configure:3456: checking for $ac_func" >&5
3456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3458 else
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* System header to define __stub macros and hopefully few prototypes,
3463 which can conflict with char $ac_func(); below. */
3464 #include <assert.h>
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3468 char $ac_func();
3470 int main() {
3472 /* The GNU C library defines this for functions which it implements
3473 to always fail with ENOSYS. Some functions are actually named
3474 something starting with __ and the normal name is an alias. */
3475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3476 choke me
3477 #else
3478 $ac_func();
3479 #endif
3481 ; return 0; }
3483 if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3484 rm -rf conftest*
3485 eval "ac_cv_func_$ac_func=yes"
3486 else
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3489 rm -rf conftest*
3490 eval "ac_cv_func_$ac_func=no"
3492 rm -f conftest*
3495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3498 cat >> confdefs.h <<EOF
3499 #define $ac_tr_func 1
3502 else
3503 echo "$ac_t""no" 1>&6
3504 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3505 echo "configure:3506: checking for sched_yield in -lposix4" >&5
3506 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3509 else
3510 ac_save_LIBS="$LIBS"
3511 LIBS="-lposix4 $LIBS"
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 /* Override any gcc2 internal prototype to avoid an error. */
3516 /* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3518 char sched_yield();
3520 int main() {
3521 sched_yield()
3522 ; return 0; }
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 rm -rf conftest*
3526 eval "ac_cv_lib_$ac_lib_var=yes"
3527 else
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 rm -rf conftest*
3531 eval "ac_cv_lib_$ac_lib_var=no"
3533 rm -f conftest*
3534 LIBS="$ac_save_LIBS"
3537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3540 cat >> confdefs.h <<\EOF
3541 #define HAVE_SCHED_YIELD 1
3544 THREADLIBS="$THREADLIBS -lposix4"
3545 else
3546 echo "$ac_t""no" 1>&6
3550 done
3552 LIBS="$save_LIBS"
3554 # We require a way to get the time.
3555 time_found=no
3556 for ac_func in gettimeofday time ftime
3558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3559 echo "configure:3560: checking for $ac_func" >&5
3560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3562 else
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 /* System header to define __stub macros and hopefully few prototypes,
3567 which can conflict with char $ac_func(); below. */
3568 #include <assert.h>
3569 /* Override any gcc2 internal prototype to avoid an error. */
3570 /* We use char because int might match the return type of a gcc2
3571 builtin and then its argument prototype would still apply. */
3572 char $ac_func();
3574 int main() {
3576 /* The GNU C library defines this for functions which it implements
3577 to always fail with ENOSYS. Some functions are actually named
3578 something starting with __ and the normal name is an alias. */
3579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3580 choke me
3581 #else
3582 $ac_func();
3583 #endif
3585 ; return 0; }
3587 if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3588 rm -rf conftest*
3589 eval "ac_cv_func_$ac_func=yes"
3590 else
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 rm -rf conftest*
3594 eval "ac_cv_func_$ac_func=no"
3596 rm -f conftest*
3599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3602 cat >> confdefs.h <<EOF
3603 #define $ac_tr_func 1
3605 time_found=yes
3606 else
3607 echo "$ac_t""no" 1>&6
3609 done
3611 if test "$time_found" = no; then
3612 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3615 for ac_func in memmove
3617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3618 echo "configure:3619: checking for $ac_func" >&5
3619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3621 else
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 /* System header to define __stub macros and hopefully few prototypes,
3626 which can conflict with char $ac_func(); below. */
3627 #include <assert.h>
3628 /* Override any gcc2 internal prototype to avoid an error. */
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3631 char $ac_func();
3633 int main() {
3635 /* The GNU C library defines this for functions which it implements
3636 to always fail with ENOSYS. Some functions are actually named
3637 something starting with __ and the normal name is an alias. */
3638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3639 choke me
3640 #else
3641 $ac_func();
3642 #endif
3644 ; return 0; }
3646 if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3647 rm -rf conftest*
3648 eval "ac_cv_func_$ac_func=yes"
3649 else
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 rm -rf conftest*
3653 eval "ac_cv_func_$ac_func=no"
3655 rm -f conftest*
3658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3661 cat >> confdefs.h <<EOF
3662 #define $ac_tr_func 1
3665 else
3666 echo "$ac_t""no" 1>&6
3668 done
3671 # We require memcpy.
3672 memcpy_found=no
3673 for ac_func in memcpy
3675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3676 echo "configure:3677: checking for $ac_func" >&5
3677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3679 else
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* System header to define __stub macros and hopefully few prototypes,
3684 which can conflict with char $ac_func(); below. */
3685 #include <assert.h>
3686 /* Override any gcc2 internal prototype to avoid an error. */
3687 /* We use char because int might match the return type of a gcc2
3688 builtin and then its argument prototype would still apply. */
3689 char $ac_func();
3691 int main() {
3693 /* The GNU C library defines this for functions which it implements
3694 to always fail with ENOSYS. Some functions are actually named
3695 something starting with __ and the normal name is an alias. */
3696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3697 choke me
3698 #else
3699 $ac_func();
3700 #endif
3702 ; return 0; }
3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3705 rm -rf conftest*
3706 eval "ac_cv_func_$ac_func=yes"
3707 else
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3710 rm -rf conftest*
3711 eval "ac_cv_func_$ac_func=no"
3713 rm -f conftest*
3716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3717 echo "$ac_t""yes" 1>&6
3718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3719 cat >> confdefs.h <<EOF
3720 #define $ac_tr_func 1
3722 memcpy_found=yes
3723 else
3724 echo "$ac_t""no" 1>&6
3726 done
3728 if test "$memcpy_found" = no; then
3729 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3732 # Some library-finding code we stole from Tcl.
3733 #--------------------------------------------------------------------
3734 # Check for the existence of the -lsocket and -lnsl libraries.
3735 # The order here is important, so that they end up in the right
3736 # order in the command line generated by make. Here are some
3737 # special considerations:
3738 # 1. Use "connect" and "accept" to check for -lsocket, and
3739 # "gethostbyname" to check for -lnsl.
3740 # 2. Use each function name only once: can't redo a check because
3741 # autoconf caches the results of the last check and won't redo it.
3742 # 3. Use -lnsl and -lsocket only if they supply procedures that
3743 # aren't already present in the normal libraries. This is because
3744 # IRIX 5.2 has libraries, but they aren't needed and they're
3745 # bogus: they goof up name resolution if used.
3746 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3747 # To get around this problem, check for both libraries together
3748 # if -lsocket doesn't work by itself.
3749 #--------------------------------------------------------------------
3751 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3752 echo "configure:3753: checking for socket libraries" >&5
3753 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3755 else
3756 gcj_cv_lib_sockets=
3757 gcj_checkBoth=0
3758 unset ac_cv_func_connect
3759 echo $ac_n "checking for connect""... $ac_c" 1>&6
3760 echo "configure:3761: checking for connect" >&5
3761 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763 else
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 /* System header to define __stub macros and hopefully few prototypes,
3768 which can conflict with char connect(); below. */
3769 #include <assert.h>
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3773 char connect();
3775 int main() {
3777 /* The GNU C library defines this for functions which it implements
3778 to always fail with ENOSYS. Some functions are actually named
3779 something starting with __ and the normal name is an alias. */
3780 #if defined (__stub_connect) || defined (__stub___connect)
3781 choke me
3782 #else
3783 connect();
3784 #endif
3786 ; return 0; }
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 rm -rf conftest*
3790 eval "ac_cv_func_connect=yes"
3791 else
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3794 rm -rf conftest*
3795 eval "ac_cv_func_connect=no"
3797 rm -f conftest*
3800 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 gcj_checkSocket=0
3803 else
3804 echo "$ac_t""no" 1>&6
3805 gcj_checkSocket=1
3808 if test "$gcj_checkSocket" = 1; then
3809 unset ac_cv_func_connect
3810 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3811 echo "configure:3812: checking for main in -lsocket" >&5
3812 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3815 else
3816 ac_save_LIBS="$LIBS"
3817 LIBS="-lsocket $LIBS"
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3822 int main() {
3823 main()
3824 ; return 0; }
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3827 rm -rf conftest*
3828 eval "ac_cv_lib_$ac_lib_var=yes"
3829 else
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3832 rm -rf conftest*
3833 eval "ac_cv_lib_$ac_lib_var=no"
3835 rm -f conftest*
3836 LIBS="$ac_save_LIBS"
3839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 gcj_cv_lib_sockets="-lsocket"
3842 else
3843 echo "$ac_t""no" 1>&6
3844 gcj_checkBoth=1
3848 if test "$gcj_checkBoth" = 1; then
3849 gcj_oldLibs=$LIBS
3850 LIBS="$LIBS -lsocket -lnsl"
3851 unset ac_cv_func_accept
3852 echo $ac_n "checking for accept""... $ac_c" 1>&6
3853 echo "configure:3854: checking for accept" >&5
3854 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3856 else
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* System header to define __stub macros and hopefully few prototypes,
3861 which can conflict with char accept(); below. */
3862 #include <assert.h>
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3866 char accept();
3868 int main() {
3870 /* The GNU C library defines this for functions which it implements
3871 to always fail with ENOSYS. Some functions are actually named
3872 something starting with __ and the normal name is an alias. */
3873 #if defined (__stub_accept) || defined (__stub___accept)
3874 choke me
3875 #else
3876 accept();
3877 #endif
3879 ; return 0; }
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3882 rm -rf conftest*
3883 eval "ac_cv_func_accept=yes"
3884 else
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 rm -rf conftest*
3888 eval "ac_cv_func_accept=no"
3890 rm -f conftest*
3893 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 gcj_checkNsl=0
3896 gcj_cv_lib_sockets="-lsocket -lnsl"
3897 else
3898 echo "$ac_t""no" 1>&6
3901 unset ac_cv_func_accept
3902 LIBS=$gcj_oldLibs
3904 unset ac_cv_func_gethostbyname
3905 gcj_oldLibs=$LIBS
3906 LIBS="$LIBS $gcj_cv_lib_sockets"
3907 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3908 echo "configure:3909: checking for gethostbyname" >&5
3909 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3911 else
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* System header to define __stub macros and hopefully few prototypes,
3916 which can conflict with char gethostbyname(); below. */
3917 #include <assert.h>
3918 /* Override any gcc2 internal prototype to avoid an error. */
3919 /* We use char because int might match the return type of a gcc2
3920 builtin and then its argument prototype would still apply. */
3921 char gethostbyname();
3923 int main() {
3925 /* The GNU C library defines this for functions which it implements
3926 to always fail with ENOSYS. Some functions are actually named
3927 something starting with __ and the normal name is an alias. */
3928 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3929 choke me
3930 #else
3931 gethostbyname();
3932 #endif
3934 ; return 0; }
3936 if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3937 rm -rf conftest*
3938 eval "ac_cv_func_gethostbyname=yes"
3939 else
3940 echo "configure: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 rm -rf conftest*
3943 eval "ac_cv_func_gethostbyname=no"
3945 rm -f conftest*
3948 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3951 else
3952 echo "$ac_t""no" 1>&6
3953 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3954 echo "configure:3955: checking for main in -lnsl" >&5
3955 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3958 else
3959 ac_save_LIBS="$LIBS"
3960 LIBS="-lnsl $LIBS"
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3965 int main() {
3966 main()
3967 ; return 0; }
3969 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3970 rm -rf conftest*
3971 eval "ac_cv_lib_$ac_lib_var=yes"
3972 else
3973 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3975 rm -rf conftest*
3976 eval "ac_cv_lib_$ac_lib_var=no"
3978 rm -f conftest*
3979 LIBS="$ac_save_LIBS"
3982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3983 echo "$ac_t""yes" 1>&6
3984 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
3985 else
3986 echo "$ac_t""no" 1>&6
3991 unset ac_cv_func_gethostbyname
3992 LIBS=$gcj_oldLIBS
3996 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
3997 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
3999 if test "$with_system_zlib" = yes; then
4000 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4001 echo "configure:4002: checking for deflate in -lz" >&5
4002 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4005 else
4006 ac_save_LIBS="$LIBS"
4007 LIBS="-lz $LIBS"
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 /* Override any gcc2 internal prototype to avoid an error. */
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4014 char deflate();
4016 int main() {
4017 deflate()
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 ZLIBSPEC=-lz
4036 else
4037 echo "$ac_t""no" 1>&6
4038 ZLIBSPEC=-lzgcj
4041 else
4042 ZLIBSPEC=-lzgcj
4045 # On Solaris, and maybe other architectures, the Boehm collector
4046 # requires -ldl.
4047 if test "$GC" = boehm; then
4048 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4049 echo "configure:4050: checking for main in -ldl" >&5
4050 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4053 else
4054 ac_save_LIBS="$LIBS"
4055 LIBS="-ldl $LIBS"
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4060 int main() {
4061 main()
4062 ; return 0; }
4064 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4065 rm -rf conftest*
4066 eval "ac_cv_lib_$ac_lib_var=yes"
4067 else
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4070 rm -rf conftest*
4071 eval "ac_cv_lib_$ac_lib_var=no"
4073 rm -f conftest*
4074 LIBS="$ac_save_LIBS"
4077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4078 echo "$ac_t""yes" 1>&6
4079 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4080 else
4081 echo "$ac_t""no" 1>&6
4086 if test -d "$libgcj_basedir/../gcc/java"; then
4087 GCJ=
4088 else
4089 CANADIAN=yes
4090 NULL_TARGET=yes
4091 GCJ=gcj
4095 ZLIBS=
4096 ZDEPS=
4097 ZINCS=
4098 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4099 # We include the path to the zlib build directory.
4100 # See Makefile.am to understand why.
4101 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4102 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4103 ZINCS='-I$(top_srcdir)/../zlib'
4104 else
4105 ZLIBS="$ZLIBSPEC"
4113 if test "$CANADIAN" = yes; then
4114 CANADIAN_TRUE=
4115 CANADIAN_FALSE='#'
4116 else
4117 CANADIAN_TRUE='#'
4118 CANADIAN_FALSE=
4122 if test "$NULL_TARGET" = yes; then
4123 NULL_TARGET_TRUE=
4124 NULL_TARGET_FALSE='#'
4125 else
4126 NULL_TARGET_TRUE='#'
4127 NULL_TARGET_FALSE=
4131 if test "$CANADIAN" = no || test "$NULL_TARGET" = yes; then
4132 NATIVE_TRUE=
4133 NATIVE_FALSE='#'
4134 else
4135 NATIVE_TRUE='#'
4136 NATIVE_FALSE=
4140 if test -z "$with_cross_host"; then
4141 USE_LIBDIR_TRUE=
4142 USE_LIBDIR_FALSE='#'
4143 else
4144 USE_LIBDIR_TRUE='#'
4145 USE_LIBDIR_FALSE=
4149 # Determine gcj version number.
4150 if test "$GCJ" = ""; then
4151 if test -z "${with_multisubdir}"; then
4152 builddotdot=.
4153 else
4154 builddotdot=`echo ${with_multisubdir} | sed -e 's:^/^/*:..:g'`
4156 dir="`cd ${builddotdot}/../../gcc && pwd`"
4157 GCJ="$dir/gcj -B$dir/"
4160 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4162 cat >> confdefs.h <<EOF
4163 #define GCJVERSION "$gcjvers"
4169 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
4171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4173 echo "configure:4174: checking for $ac_hdr" >&5
4174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4176 else
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4180 #include <$ac_hdr>
4182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4183 { (eval echo configure:4184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4185 if test -z "$ac_err"; then
4186 rm -rf conftest*
4187 eval "ac_cv_header_$ac_safe=yes"
4188 else
4189 echo "$ac_err" >&5
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4192 rm -rf conftest*
4193 eval "ac_cv_header_$ac_safe=no"
4195 rm -f conftest*
4197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4198 echo "$ac_t""yes" 1>&6
4199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4200 cat >> confdefs.h <<EOF
4201 #define $ac_tr_hdr 1
4204 else
4205 echo "$ac_t""no" 1>&6
4207 done
4209 for ac_hdr in dirent.h
4211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4213 echo "configure:4214: checking for $ac_hdr" >&5
4214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4216 else
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4220 #include <$ac_hdr>
4222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4223 { (eval echo configure:4224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4225 if test -z "$ac_err"; then
4226 rm -rf conftest*
4227 eval "ac_cv_header_$ac_safe=yes"
4228 else
4229 echo "$ac_err" >&5
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4232 rm -rf conftest*
4233 eval "ac_cv_header_$ac_safe=no"
4235 rm -f conftest*
4237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4238 echo "$ac_t""yes" 1>&6
4239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4240 cat >> confdefs.h <<EOF
4241 #define $ac_tr_hdr 1
4244 else
4245 echo "$ac_t""no" 1>&6
4247 done
4250 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4251 echo "configure:4252: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4255 #include <netinet/in.h>
4256 int main() {
4257 struct sockaddr_in6 addr6;
4258 ; return 0; }
4260 if { (eval echo configure:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4261 rm -rf conftest*
4262 cat >> confdefs.h <<\EOF
4263 #define HAVE_INET6 1
4266 echo "$ac_t""yes" 1>&6
4267 else
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4270 rm -rf conftest*
4271 echo "$ac_t""no" 1>&6
4273 rm -f conftest*
4275 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4276 echo "configure:4277: checking for socklen_t in sys/socket.h" >&5
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 #include <sys/socket.h>
4281 int main() {
4282 socklen_t x = 5;
4283 ; return 0; }
4285 if { (eval echo configure:4286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4286 rm -rf conftest*
4287 cat >> confdefs.h <<\EOF
4288 #define HAVE_SOCKLEN_T 1
4291 echo "$ac_t""yes" 1>&6
4292 else
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4295 rm -rf conftest*
4296 echo "$ac_t""no" 1>&6
4298 rm -f conftest*
4300 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4301 echo "configure:4302: checking for tm_gmtoff in struct tm" >&5
4302 cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305 #include <time.h>
4306 int main() {
4307 struct tm tim; tim.tm_gmtoff = 0;
4308 ; return 0; }
4310 if { (eval echo configure:4311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4311 rm -rf conftest*
4312 cat >> confdefs.h <<\EOF
4313 #define STRUCT_TM_HAS_GMTOFF 1
4316 echo "$ac_t""yes" 1>&6
4317 else
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 rm -rf conftest*
4321 echo "$ac_t""no" 1>&6
4322 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4323 echo "configure:4324: checking for global timezone variable" >&5
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 #include <time.h>
4328 int main() {
4329 long z2 = timezone;
4330 ; return 0; }
4332 if { (eval echo configure:4333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4333 rm -rf conftest*
4334 cat >> confdefs.h <<\EOF
4335 #define HAVE_TIMEZONE 1
4338 echo "$ac_t""yes" 1>&6
4339 else
4340 echo "configure: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 rm -rf conftest*
4343 echo "$ac_t""no" 1>&6
4345 rm -f conftest*
4347 rm -f conftest*
4349 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4350 # for constant arguments. Useless!
4351 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4352 echo "configure:4353: checking for working alloca.h" >&5
4353 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4354 echo $ac_n "(cached) $ac_c" 1>&6
4355 else
4356 cat > conftest.$ac_ext <<EOF
4357 #line 4358 "configure"
4358 #include "confdefs.h"
4359 #include <alloca.h>
4360 int main() {
4361 char *p = alloca(2 * sizeof(int));
4362 ; return 0; }
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4365 rm -rf conftest*
4366 ac_cv_header_alloca_h=yes
4367 else
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4370 rm -rf conftest*
4371 ac_cv_header_alloca_h=no
4373 rm -f conftest*
4376 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4377 if test $ac_cv_header_alloca_h = yes; then
4378 cat >> confdefs.h <<\EOF
4379 #define HAVE_ALLOCA_H 1
4384 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4385 echo "configure:4386: checking for alloca" >&5
4386 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4388 else
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4393 #ifdef __GNUC__
4394 # define alloca __builtin_alloca
4395 #else
4396 # ifdef _MSC_VER
4397 # include <malloc.h>
4398 # define alloca _alloca
4399 # else
4400 # if HAVE_ALLOCA_H
4401 # include <alloca.h>
4402 # else
4403 # ifdef _AIX
4404 #pragma alloca
4405 # else
4406 # ifndef alloca /* predefined by HP cc +Olibcalls */
4407 char *alloca ();
4408 # endif
4409 # endif
4410 # endif
4411 # endif
4412 #endif
4414 int main() {
4415 char *p = (char *) alloca(1);
4416 ; return 0; }
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419 rm -rf conftest*
4420 ac_cv_func_alloca_works=yes
4421 else
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
4425 ac_cv_func_alloca_works=no
4427 rm -f conftest*
4430 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4431 if test $ac_cv_func_alloca_works = yes; then
4432 cat >> confdefs.h <<\EOF
4433 #define HAVE_ALLOCA 1
4438 if test $ac_cv_func_alloca_works = no; then
4439 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4440 # that cause trouble. Some versions do not even contain alloca or
4441 # contain a buggy version. If you still want to use their alloca,
4442 # use ar to extract alloca.o from them instead of compiling alloca.c.
4443 ALLOCA=alloca.${ac_objext}
4444 cat >> confdefs.h <<\EOF
4445 #define C_ALLOCA 1
4449 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4450 echo "configure:4451: checking whether alloca needs Cray hooks" >&5
4451 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4453 else
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 #if defined(CRAY) && ! defined(CRAY2)
4458 webecray
4459 #else
4460 wenotbecray
4461 #endif
4464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4465 egrep "webecray" >/dev/null 2>&1; then
4466 rm -rf conftest*
4467 ac_cv_os_cray=yes
4468 else
4469 rm -rf conftest*
4470 ac_cv_os_cray=no
4472 rm -f conftest*
4476 echo "$ac_t""$ac_cv_os_cray" 1>&6
4477 if test $ac_cv_os_cray = yes; then
4478 for ac_func in _getb67 GETB67 getb67; do
4479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4480 echo "configure:4481: checking for $ac_func" >&5
4481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4483 else
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 /* System header to define __stub macros and hopefully few prototypes,
4488 which can conflict with char $ac_func(); below. */
4489 #include <assert.h>
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4493 char $ac_func();
4495 int main() {
4497 /* The GNU C library defines this for functions which it implements
4498 to always fail with ENOSYS. Some functions are actually named
4499 something starting with __ and the normal name is an alias. */
4500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4501 choke me
4502 #else
4503 $ac_func();
4504 #endif
4506 ; return 0; }
4508 if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4509 rm -rf conftest*
4510 eval "ac_cv_func_$ac_func=yes"
4511 else
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 rm -rf conftest*
4515 eval "ac_cv_func_$ac_func=no"
4517 rm -f conftest*
4520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 cat >> confdefs.h <<EOF
4523 #define CRAY_STACKSEG_END $ac_func
4526 break
4527 else
4528 echo "$ac_t""no" 1>&6
4531 done
4534 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4535 echo "configure:4536: checking stack direction for C alloca" >&5
4536 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4538 else
4539 if test "$cross_compiling" = yes; then
4540 ac_cv_c_stack_direction=0
4541 else
4542 cat > conftest.$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4545 find_stack_direction ()
4547 static char *addr = 0;
4548 auto char dummy;
4549 if (addr == 0)
4551 addr = &dummy;
4552 return find_stack_direction ();
4554 else
4555 return (&dummy > addr) ? 1 : -1;
4557 main ()
4559 exit (find_stack_direction() < 0);
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4563 then
4564 ac_cv_c_stack_direction=1
4565 else
4566 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4568 rm -fr conftest*
4569 ac_cv_c_stack_direction=-1
4571 rm -fr conftest*
4576 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4577 cat >> confdefs.h <<EOF
4578 #define STACK_DIRECTION $ac_cv_c_stack_direction
4584 for ac_prog in perl
4586 # Extract the first word of "$ac_prog", so it can be a program name with args.
4587 set dummy $ac_prog; ac_word=$2
4588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4589 echo "configure:4590: checking for $ac_word" >&5
4590 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4592 else
4593 if test -n "$PERL"; then
4594 ac_cv_prog_PERL="$PERL" # Let the user override the test.
4595 else
4596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4597 ac_dummy="$PATH"
4598 for ac_dir in $ac_dummy; do
4599 test -z "$ac_dir" && ac_dir=.
4600 if test -f $ac_dir/$ac_word; then
4601 ac_cv_prog_PERL="$ac_prog"
4602 break
4604 done
4605 IFS="$ac_save_ifs"
4608 PERL="$ac_cv_prog_PERL"
4609 if test -n "$PERL"; then
4610 echo "$ac_t""$PERL" 1>&6
4611 else
4612 echo "$ac_t""no" 1>&6
4615 test -n "$PERL" && break
4616 done
4617 test -n "$PERL" || PERL="false"
4620 case "${host}" in
4621 i?86-*-linux*)
4622 SIGNAL_HANDLER=include/i386-signal.h
4624 sparc-sun-solaris*)
4625 SIGNAL_HANDLER=include/sparc-signal.h
4628 SIGNAL_HANDLER=include/default-signal.h
4630 esac
4634 if test "${multilib}" = "yes"; then
4635 multilib_arg="--enable-multilib"
4636 else
4637 multilib_arg=
4640 here=`pwd`
4643 trap '' 1 2 15
4644 cat > confcache <<\EOF
4645 # This file is a shell script that caches the results of configure
4646 # tests run on this system so they can be shared between configure
4647 # scripts and configure runs. It is not useful on other systems.
4648 # If it contains results you don't want to keep, you may remove or edit it.
4650 # By default, configure uses ./config.cache as the cache file,
4651 # creating it if it does not exist already. You can give configure
4652 # the --cache-file=FILE option to use a different cache file; that is
4653 # what configure does when it calls configure scripts in
4654 # subdirectories, so they share the cache.
4655 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4656 # config.status only pays attention to the cache file if you give it the
4657 # --recheck option to rerun configure.
4660 # The following way of writing the cache mishandles newlines in values,
4661 # but we know of no workaround that is simple, portable, and efficient.
4662 # So, don't put newlines in cache variables' values.
4663 # Ultrix sh set writes to stderr and can't be redirected directly,
4664 # and sets the high bit in the cache file unless we assign to the vars.
4665 (set) 2>&1 |
4666 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4667 *ac_space=\ *)
4668 # `set' does not quote correctly, so add quotes (double-quote substitution
4669 # turns \\\\ into \\, and sed turns \\ into \).
4670 sed -n \
4671 -e "s/'/'\\\\''/g" \
4672 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4675 # `set' quotes correctly as required by POSIX, so do not add quotes.
4676 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4678 esac >> confcache
4679 if cmp -s $cache_file confcache; then
4681 else
4682 if test -w $cache_file; then
4683 echo "updating cache $cache_file"
4684 cat confcache > $cache_file
4685 else
4686 echo "not updating unwritable cache $cache_file"
4689 rm -f confcache
4691 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4693 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4694 # Let make expand exec_prefix.
4695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4697 # Any assignment to VPATH causes Sun make to only execute
4698 # the first set of double-colon rules, so remove it if not needed.
4699 # If there is a colon in the path, we need to keep it.
4700 if test "x$srcdir" = x.; then
4701 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4704 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4706 DEFS=-DHAVE_CONFIG_H
4708 # Without the "./", some shells look in PATH for config.status.
4709 : ${CONFIG_STATUS=./config.status}
4711 echo creating $CONFIG_STATUS
4712 rm -f $CONFIG_STATUS
4713 cat > $CONFIG_STATUS <<EOF
4714 #! /bin/sh
4715 # Generated automatically by configure.
4716 # Run this file to recreate the current configuration.
4717 # This directory was configured as follows,
4718 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4720 # $0 $ac_configure_args
4722 # Compiler output produced by configure, useful for debugging
4723 # configure, is in ./config.log if it exists.
4725 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4726 for ac_option
4728 case "\$ac_option" in
4729 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4730 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4731 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4732 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4733 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4734 exit 0 ;;
4735 -help | --help | --hel | --he | --h)
4736 echo "\$ac_cs_usage"; exit 0 ;;
4737 *) echo "\$ac_cs_usage"; exit 1 ;;
4738 esac
4739 done
4741 ac_given_srcdir=$srcdir
4742 ac_given_INSTALL="$INSTALL"
4744 trap 'rm -fr `echo "Makefile libgcj.spec testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4746 cat >> $CONFIG_STATUS <<EOF
4748 # Protect against being on the right side of a sed subst in config.status.
4749 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4750 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4751 $ac_vpsub
4752 $extrasub
4753 s%@SHELL@%$SHELL%g
4754 s%@CFLAGS@%$CFLAGS%g
4755 s%@CPPFLAGS@%$CPPFLAGS%g
4756 s%@CXXFLAGS@%$CXXFLAGS%g
4757 s%@FFLAGS@%$FFLAGS%g
4758 s%@DEFS@%$DEFS%g
4759 s%@LDFLAGS@%$LDFLAGS%g
4760 s%@LIBS@%$LIBS%g
4761 s%@exec_prefix@%$exec_prefix%g
4762 s%@prefix@%$prefix%g
4763 s%@program_transform_name@%$program_transform_name%g
4764 s%@bindir@%$bindir%g
4765 s%@sbindir@%$sbindir%g
4766 s%@libexecdir@%$libexecdir%g
4767 s%@datadir@%$datadir%g
4768 s%@sysconfdir@%$sysconfdir%g
4769 s%@sharedstatedir@%$sharedstatedir%g
4770 s%@localstatedir@%$localstatedir%g
4771 s%@libdir@%$libdir%g
4772 s%@includedir@%$includedir%g
4773 s%@oldincludedir@%$oldincludedir%g
4774 s%@infodir@%$infodir%g
4775 s%@mandir@%$mandir%g
4776 s%@host@%$host%g
4777 s%@host_alias@%$host_alias%g
4778 s%@host_cpu@%$host_cpu%g
4779 s%@host_vendor@%$host_vendor%g
4780 s%@host_os@%$host_os%g
4781 s%@target@%$target%g
4782 s%@target_alias@%$target_alias%g
4783 s%@target_cpu@%$target_cpu%g
4784 s%@target_vendor@%$target_vendor%g
4785 s%@target_os@%$target_os%g
4786 s%@build@%$build%g
4787 s%@build_alias@%$build_alias%g
4788 s%@build_cpu@%$build_cpu%g
4789 s%@build_vendor@%$build_vendor%g
4790 s%@build_os@%$build_os%g
4791 s%@libgcj_basedir@%$libgcj_basedir%g
4792 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4793 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4794 s%@INSTALL_DATA@%$INSTALL_DATA%g
4795 s%@PACKAGE@%$PACKAGE%g
4796 s%@VERSION@%$VERSION%g
4797 s%@ACLOCAL@%$ACLOCAL%g
4798 s%@AUTOCONF@%$AUTOCONF%g
4799 s%@AUTOMAKE@%$AUTOMAKE%g
4800 s%@AUTOHEADER@%$AUTOHEADER%g
4801 s%@MAKEINFO@%$MAKEINFO%g
4802 s%@SET_MAKE@%$SET_MAKE%g
4803 s%@CC@%$CC%g
4804 s%@CXX@%$CXX%g
4805 s%@AS@%$AS%g
4806 s%@AR@%$AR%g
4807 s%@RANLIB@%$RANLIB%g
4808 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4809 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4810 s%@MAINT@%$MAINT%g
4811 s%@EXEEXT@%$EXEEXT%g
4812 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
4813 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
4814 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
4815 s%@LD@%$LD%g
4816 s%@NM@%$NM%g
4817 s%@LN_S@%$LN_S%g
4818 s%@LIBTOOL@%$LIBTOOL%g
4819 s%@COMPPATH@%$COMPPATH%g
4820 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
4821 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
4822 s%@CPP@%$CPP%g
4823 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
4824 s%@ZLIBSPEC@%$ZLIBSPEC%g
4825 s%@GCLIBS@%$GCLIBS%g
4826 s%@GCINCS@%$GCINCS%g
4827 s%@GCDEPS@%$GCDEPS%g
4828 s%@GCOBJS@%$GCOBJS%g
4829 s%@GCSPEC@%$GCSPEC%g
4830 s%@THREADLIBS@%$THREADLIBS%g
4831 s%@THREADINCS@%$THREADINCS%g
4832 s%@THREADDEPS@%$THREADDEPS%g
4833 s%@THREADOBJS@%$THREADOBJS%g
4834 s%@THREADSPEC@%$THREADSPEC%g
4835 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
4836 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
4837 s%@ZLIBS@%$ZLIBS%g
4838 s%@ZDEPS@%$ZDEPS%g
4839 s%@ZINCS@%$ZINCS%g
4840 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
4841 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
4842 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
4843 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
4844 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
4845 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
4846 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
4847 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
4848 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
4849 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
4850 s%@ALLOCA@%$ALLOCA%g
4851 s%@PERL@%$PERL%g
4852 s%@here@%$here%g
4854 CEOF
4857 cat >> $CONFIG_STATUS <<\EOF
4859 # Split the substitutions into bite-sized pieces for seds with
4860 # small command number limits, like on Digital OSF/1 and HP-UX.
4861 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4862 ac_file=1 # Number of current file.
4863 ac_beg=1 # First line for current file.
4864 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4865 ac_more_lines=:
4866 ac_sed_cmds=""
4867 while $ac_more_lines; do
4868 if test $ac_beg -gt 1; then
4869 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4870 else
4871 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4873 if test ! -s conftest.s$ac_file; then
4874 ac_more_lines=false
4875 rm -f conftest.s$ac_file
4876 else
4877 if test -z "$ac_sed_cmds"; then
4878 ac_sed_cmds="sed -f conftest.s$ac_file"
4879 else
4880 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4882 ac_file=`expr $ac_file + 1`
4883 ac_beg=$ac_end
4884 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4886 done
4887 if test -z "$ac_sed_cmds"; then
4888 ac_sed_cmds=cat
4892 cat >> $CONFIG_STATUS <<EOF
4894 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec testsuite/Makefile"}
4896 cat >> $CONFIG_STATUS <<\EOF
4897 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4899 case "$ac_file" in
4900 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4901 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4902 *) ac_file_in="${ac_file}.in" ;;
4903 esac
4905 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4907 # Remove last slash and all that follows it. Not all systems have dirname.
4908 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4909 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4910 # The file is in a subdirectory.
4911 test ! -d "$ac_dir" && mkdir "$ac_dir"
4912 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4913 # A "../" for each directory in $ac_dir_suffix.
4914 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4915 else
4916 ac_dir_suffix= ac_dots=
4919 case "$ac_given_srcdir" in
4920 .) srcdir=.
4921 if test -z "$ac_dots"; then top_srcdir=.
4922 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4923 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4924 *) # Relative path.
4925 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4926 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4927 esac
4929 case "$ac_given_INSTALL" in
4930 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4931 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4932 esac
4934 echo creating "$ac_file"
4935 rm -f "$ac_file"
4936 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4937 case "$ac_file" in
4938 *Makefile*) ac_comsub="1i\\
4939 # $configure_input" ;;
4940 *) ac_comsub= ;;
4941 esac
4943 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4944 sed -e "$ac_comsub
4945 s%@configure_input@%$configure_input%g
4946 s%@srcdir@%$srcdir%g
4947 s%@top_srcdir@%$top_srcdir%g
4948 s%@INSTALL@%$INSTALL%g
4949 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4950 fi; done
4951 rm -f conftest.s*
4953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4956 # ac_d sets the value in "#define NAME VALUE" lines.
4957 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4958 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4959 ac_dC='\3'
4960 ac_dD='%g'
4961 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4962 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4963 ac_uB='\([ ]\)%\1#\2define\3'
4964 ac_uC=' '
4965 ac_uD='\4%g'
4966 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4967 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4968 ac_eB='$%\1#\2define\3'
4969 ac_eC=' '
4970 ac_eD='%g'
4972 if test "${CONFIG_HEADERS+set}" != set; then
4974 cat >> $CONFIG_STATUS <<EOF
4975 CONFIG_HEADERS="include/config.h"
4977 cat >> $CONFIG_STATUS <<\EOF
4979 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4981 case "$ac_file" in
4982 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4983 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4984 *) ac_file_in="${ac_file}.in" ;;
4985 esac
4987 echo creating $ac_file
4989 rm -f conftest.frag conftest.in conftest.out
4990 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4991 cat $ac_file_inputs > conftest.in
4995 # Transform confdefs.h into a sed script conftest.vals that substitutes
4996 # the proper values into config.h.in to produce config.h. And first:
4997 # Protect against being on the right side of a sed subst in config.status.
4998 # Protect against being in an unquoted here document in config.status.
4999 rm -f conftest.vals
5000 cat > conftest.hdr <<\EOF
5001 s/[\\&%]/\\&/g
5002 s%[\\$`]%\\&%g
5003 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5004 s%ac_d%ac_u%gp
5005 s%ac_u%ac_e%gp
5007 sed -n -f conftest.hdr confdefs.h > conftest.vals
5008 rm -f conftest.hdr
5010 # This sed command replaces #undef with comments. This is necessary, for
5011 # example, in the case of _POSIX_SOURCE, which is predefined and required
5012 # on some systems where configure will not decide to define it.
5013 cat >> conftest.vals <<\EOF
5014 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5017 # Break up conftest.vals because some shells have a limit on
5018 # the size of here documents, and old seds have small limits too.
5020 rm -f conftest.tail
5021 while :
5023 ac_lines=`grep -c . conftest.vals`
5024 # grep -c gives empty output for an empty file on some AIX systems.
5025 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5026 # Write a limited-size here document to conftest.frag.
5027 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5028 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5029 echo 'CEOF
5030 sed -f conftest.frag conftest.in > conftest.out
5031 rm -f conftest.in
5032 mv conftest.out conftest.in
5033 ' >> $CONFIG_STATUS
5034 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5035 rm -f conftest.vals
5036 mv conftest.tail conftest.vals
5037 done
5038 rm -f conftest.vals
5040 cat >> $CONFIG_STATUS <<\EOF
5041 rm -f conftest.frag conftest.h
5042 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5043 cat conftest.in >> conftest.h
5044 rm -f conftest.in
5045 if cmp -s $ac_file conftest.h 2>/dev/null; then
5046 echo "$ac_file is unchanged"
5047 rm -f conftest.h
5048 else
5049 # Remove last slash and all that follows it. Not all systems have dirname.
5050 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5052 # The file is in a subdirectory.
5053 test ! -d "$ac_dir" && mkdir "$ac_dir"
5055 rm -f $ac_file
5056 mv conftest.h $ac_file
5058 fi; done
5062 cat >> $CONFIG_STATUS <<EOF
5063 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5064 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"
5067 cat >> $CONFIG_STATUS <<\EOF
5068 srcdir=$ac_given_srcdir
5069 while test -n "$ac_sources"; do
5070 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5071 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5073 echo "linking $srcdir/$ac_source to $ac_dest"
5075 if test ! -r $srcdir/$ac_source; then
5076 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5078 rm -f $ac_dest
5080 # Make relative symlinks.
5081 # Remove last slash and all that follows it. Not all systems have dirname.
5082 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5083 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5084 # The dest file is in a subdirectory.
5085 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5086 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5087 # A "../" for each directory in $ac_dest_dir_suffix.
5088 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5089 else
5090 ac_dest_dir_suffix= ac_dots=
5093 case "$srcdir" in
5094 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5095 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5096 esac
5098 # Make a symlink if possible; otherwise try a hard link.
5099 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5100 ln $srcdir/$ac_source $ac_dest; then :
5101 else
5102 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5104 done
5106 cat >> $CONFIG_STATUS <<EOF
5108 srcdir=${srcdir}
5109 host=${host}
5110 target=${target}
5111 with_multisubdir=${with_multisubdir}
5112 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5113 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5114 libgcj_basedir=${libgcj_basedir}
5115 CC="${CC}"
5116 CXX="${CXX}"
5119 cat >> $CONFIG_STATUS <<\EOF
5120 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5121 if test -n "$CONFIG_FILES"; then
5122 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5124 exit 0
5126 chmod +x $CONFIG_STATUS
5127 rm -fr confdefs* $ac_clean_files
5128 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1