* config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
[official-gcc.git] / libjava / configure
blob270922dd3531803ff8d1abbcff3d0597082d50a0
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --with-newlib Configuring with newlib"
21 ac_help="$ac_help
22 --enable-multilib build many library versions (default)"
23 ac_help="$ac_help
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30 ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
41 ac_help="$ac_help
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
44 ac_help="$ac_help
45 --enable-libgcj-debug enable runtime debugging code"
46 ac_help="$ac_help
47 --enable-interpreter enable interpreter"
48 ac_help="$ac_help
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
50 ac_help="$ac_help
51 --disable-java-net disable java.net"
52 ac_help="$ac_help
53 --without-libffi don't use libffi"
54 ac_help="$ac_help
55 --disable-jvmpi disable JVMPI support"
56 ac_help="$ac_help
57 --with-ecos enable runtime eCos target support"
58 ac_help="$ac_help
59 --with-system-zlib use installed libz"
60 ac_help="$ac_help
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
62 ac_help="$ac_help
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64 ac_help="$ac_help
65 --with-x use the X Window System"
66 ac_help="$ac_help
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
110 ac_prev=
111 for ac_option
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
126 # Accept the important Cygnus configure options, so we can diagnose typos.
128 case "$ac_option" in
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
391 exit 0 ;;
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 nonopt="$ac_option"
446 esac
447 done
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
456 # 0 standard input
457 # 1 file creation
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
464 exec 6>/dev/null
465 else
466 exec 6>&1
468 exec 5>./config.log
470 echo "\
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
473 " 1>&5
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
477 ac_configure_args=
478 for ac_arg
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489 done
491 # NLS nuisances.
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 echo > confdefs.h
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=java/lang/System.java
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
521 else
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
546 done
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551 else
552 echo "creating cache $cache_file"
553 > $cache_file
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
563 ac_exeext=
564 ac_objext=o
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569 ' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
573 else
574 ac_n= ac_c='\c' ac_t=
579 # This works around the fact that libtool configuration may change LD
580 # for this particular configuration, but some shells, instead of
581 # keeping the changes in LD private, export them just because LD is
582 # exported.
583 ORIGINAL_LD_FOR_MULTILIBS=$LD
585 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
586 echo "configure:587: checking whether ln -s works" >&5
587 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
589 else
590 rm -f conftestdata
591 if ln -s X conftestdata 2>/dev/null
592 then
593 rm -f conftestdata
594 ac_cv_prog_LN_S="ln -s"
595 else
596 ac_cv_prog_LN_S=ln
599 LN_S="$ac_cv_prog_LN_S"
600 if test "$ac_cv_prog_LN_S" = "ln -s"; then
601 echo "$ac_t""yes" 1>&6
602 else
603 echo "$ac_t""no" 1>&6
607 # Check whether --with-target-subdir or --without-target-subdir was given.
608 if test "${with_target_subdir+set}" = set; then
609 withval="$with_target_subdir"
613 # Check whether --with-cross-host or --without-cross-host was given.
614 if test "${with_cross_host+set}" = set; then
615 withval="$with_cross_host"
620 # Check whether --with-newlib or --without-newlib was given.
621 if test "${with_newlib+set}" = set; then
622 withval="$with_newlib"
627 # Find a good install program. We prefer a C program (faster),
628 # so one script is as good as another. But avoid the broken or
629 # incompatible versions:
630 # SysV /etc/install, /usr/sbin/install
631 # SunOS /usr/etc/install
632 # IRIX /sbin/install
633 # AIX /bin/install
634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637 # ./install, which can be erroneously created by make from ./install.sh.
638 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639 echo "configure:640: checking for a BSD compatible install" >&5
640 if test -z "$INSTALL"; then
641 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
643 else
644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
645 for ac_dir in $PATH; do
646 # Account for people who put trailing slashes in PATH elements.
647 case "$ac_dir/" in
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
650 # OSF1 and SCO ODT 3.0 have their own names for install.
651 # Don't use installbsd from OSF since it installs stuff as root
652 # by default.
653 for ac_prog in ginstall scoinst install; do
654 if test -f $ac_dir/$ac_prog; then
655 if test $ac_prog = install &&
656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657 # AIX install. It has an incompatible calling convention.
659 else
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
661 break 2
664 done
666 esac
667 done
668 IFS="$ac_save_IFS"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
673 else
674 # As a last resort, use the slow shell script. We don't cache a
675 # path for INSTALL within a source directory, because that will
676 # break other packages using the cache if that directory is
677 # removed, or if the path is relative.
678 INSTALL="$ac_install_sh"
681 echo "$ac_t""$INSTALL" 1>&6
683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684 # It thinks the first close brace ends the variable substitution.
685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
691 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692 echo "configure:693: checking whether build environment is sane" >&5
693 # Just in case
694 sleep 1
695 echo timestamp > conftestfile
696 # Do `set' in a subshell so we don't clobber the current shell's
697 # arguments. Must try -L first in case configure is actually a
698 # symlink; some systems play weird games with the mod time of symlinks
699 # (eg FreeBSD returns the mod time of the symlink's containing
700 # directory).
701 if (
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
704 # -L didn't work.
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
710 # If neither matched, then we have a broken ls. This can happen
711 # if, for instance, CONFIG_SHELL is bash and it inherits a
712 # broken ls alias from the environment. This has actually
713 # happened. Such a system could not be considered "sane".
714 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
715 alias in your environment" 1>&2; exit 1; }
718 test "$2" = conftestfile
720 then
721 # Ok.
723 else
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
727 rm -f conftest*
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
731 else
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
735 EOF_SED
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
737 rm -f conftestsed
739 test "$program_prefix" != NONE &&
740 program_transform_name="s,^,${program_prefix},; $program_transform_name"
741 # Use a double $ so make ignores it.
742 test "$program_suffix" != NONE &&
743 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 cat > conftestmake <<\EOF
755 all:
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
762 else
763 eval ac_cv_prog_make_${ac_make}_set=no
765 rm -f conftestmake
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
769 SET_MAKE=
770 else
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
775 if test $host != $build; then
776 ac_tool_prefix=${host_alias}-
777 else
778 ac_tool_prefix=
781 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
782 echo "configure:783: checking for Cygwin environment" >&5
783 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785 else
786 cat > conftest.$ac_ext <<EOF
787 #line 788 "configure"
788 #include "confdefs.h"
790 int main() {
792 #ifndef __CYGWIN__
793 #define __CYGWIN__ __CYGWIN32__
794 #endif
795 return __CYGWIN__;
796 ; return 0; }
798 if { (eval echo configure:799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
799 rm -rf conftest*
800 ac_cv_cygwin=yes
801 else
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
804 rm -rf conftest*
805 ac_cv_cygwin=no
807 rm -f conftest*
808 rm -f conftest*
811 echo "$ac_t""$ac_cv_cygwin" 1>&6
812 CYGWIN=
813 test "$ac_cv_cygwin" = yes && CYGWIN=yes
814 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
815 echo "configure:816: checking for mingw32 environment" >&5
816 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
818 else
819 cat > conftest.$ac_ext <<EOF
820 #line 821 "configure"
821 #include "confdefs.h"
823 int main() {
824 return __MINGW32__;
825 ; return 0; }
827 if { (eval echo configure:828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
828 rm -rf conftest*
829 ac_cv_mingw32=yes
830 else
831 echo "configure: failed program was:" >&5
832 cat conftest.$ac_ext >&5
833 rm -rf conftest*
834 ac_cv_mingw32=no
836 rm -f conftest*
837 rm -f conftest*
840 echo "$ac_t""$ac_cv_mingw32" 1>&6
841 MINGW32=
842 test "$ac_cv_mingw32" = yes && MINGW32=yes
844 # Check whether --enable-multilib or --disable-multilib was given.
845 if test "${enable_multilib+set}" = set; then
846 enableval="$enable_multilib"
847 case "${enableval}" in
848 yes) multilib=yes ;;
849 no) multilib=no ;;
850 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
851 esac
852 else
853 multilib=yes
857 # When building with srcdir == objdir, links to the source files will
858 # be created in directories within the target_subdir. We have to
859 # adjust toplevel_srcdir accordingly, so that configure finds
860 # install-sh and other auxiliary files that live in the top-level
861 # source directory.
862 if test "${srcdir}" = "."; then
863 if test -z "${with_target_subdir}"; then
864 toprel=".."
865 else
866 if test "${with_target_subdir}" != "."; then
867 toprel="${with_multisrctop}../.."
868 else
869 toprel="${with_multisrctop}.."
872 else
873 toprel=".."
876 libgcj_basedir=$srcdir/$toprel/./libjava
879 ac_aux_dir=
880 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
881 if test -f $ac_dir/install-sh; then
882 ac_aux_dir=$ac_dir
883 ac_install_sh="$ac_aux_dir/install-sh -c"
884 break
885 elif test -f $ac_dir/install.sh; then
886 ac_aux_dir=$ac_dir
887 ac_install_sh="$ac_aux_dir/install.sh -c"
888 break
890 done
891 if test -z "$ac_aux_dir"; then
892 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
894 ac_config_guess=$ac_aux_dir/config.guess
895 ac_config_sub=$ac_aux_dir/config.sub
896 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
898 if :; then :; else
899 # This overrides the previous occurrence for automake, but not for
900 # autoconf, which is exactly what we want.
901 ac_aux_dir=
902 for ac_dir in .. $srcdir/..; do
903 if test -f $ac_dir/install-sh; then
904 ac_aux_dir=$ac_dir
905 ac_install_sh="$ac_aux_dir/install-sh -c"
906 break
907 elif test -f $ac_dir/install.sh; then
908 ac_aux_dir=$ac_dir
909 ac_install_sh="$ac_aux_dir/install.sh -c"
910 break
912 done
913 if test -z "$ac_aux_dir"; then
914 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
916 ac_config_guess=$ac_aux_dir/config.guess
917 ac_config_sub=$ac_aux_dir/config.sub
918 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
922 # This works around an automake problem.
923 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
927 # Do some error checking and defaulting for the host and target type.
928 # The inputs are:
929 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
931 # The rules are:
932 # 1. You are not allowed to specify --host, --target, and nonopt at the
933 # same time.
934 # 2. Host defaults to nonopt.
935 # 3. If nonopt is not specified, then host defaults to the current host,
936 # as determined by config.guess.
937 # 4. Target and build default to nonopt.
938 # 5. If nonopt is not specified, then target and build default to host.
940 # The aliases save the names the user supplied, while $host etc.
941 # will get canonicalized.
942 case $host---$target---$nonopt in
943 NONE---*---* | *---NONE---* | *---*---NONE) ;;
944 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
945 esac
948 # Make sure we can run config.sub.
949 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
950 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
953 echo $ac_n "checking host system type""... $ac_c" 1>&6
954 echo "configure:955: checking host system type" >&5
956 host_alias=$host
957 case "$host_alias" in
958 NONE)
959 case $nonopt in
960 NONE)
961 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
962 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
963 fi ;;
964 *) host_alias=$nonopt ;;
965 esac ;;
966 esac
968 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
969 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$host" 1>&6
974 echo $ac_n "checking target system type""... $ac_c" 1>&6
975 echo "configure:976: checking target system type" >&5
977 target_alias=$target
978 case "$target_alias" in
979 NONE)
980 case $nonopt in
981 NONE) target_alias=$host_alias ;;
982 *) target_alias=$nonopt ;;
983 esac ;;
984 esac
986 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
987 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$target" 1>&6
992 echo $ac_n "checking build system type""... $ac_c" 1>&6
993 echo "configure:994: checking build system type" >&5
995 build_alias=$build
996 case "$build_alias" in
997 NONE)
998 case $nonopt in
999 NONE) build_alias=$host_alias ;;
1000 *) build_alias=$nonopt ;;
1001 esac ;;
1002 esac
1004 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1005 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1006 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1007 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1008 echo "$ac_t""$build" 1>&6
1010 test "$host_alias" != "$target_alias" &&
1011 test "$program_prefix$program_suffix$program_transform_name" = \
1012 NONENONEs,x,x, &&
1013 program_prefix=${target_alias}-
1019 # Extract the first word of "gcc", so it can be a program name with args.
1020 set dummy gcc; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 if test -n "$CC"; then
1027 ac_cv_prog_CC="$CC" # Let the user override the test.
1028 else
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1030 ac_dummy="$PATH"
1031 for ac_dir in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir=.
1033 if test -f $ac_dir/$ac_word; then
1034 ac_cv_prog_CC="gcc"
1035 break
1037 done
1038 IFS="$ac_save_ifs"
1041 CC="$ac_cv_prog_CC"
1042 if test -n "$CC"; then
1043 echo "$ac_t""$CC" 1>&6
1044 else
1045 echo "$ac_t""no" 1>&6
1048 if test -z "$CC"; then
1049 # Extract the first word of "cc", so it can be a program name with args.
1050 set dummy cc; ac_word=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1055 else
1056 if test -n "$CC"; then
1057 ac_cv_prog_CC="$CC" # Let the user override the test.
1058 else
1059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1060 ac_prog_rejected=no
1061 ac_dummy="$PATH"
1062 for ac_dir in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir=.
1064 if test -f $ac_dir/$ac_word; then
1065 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1066 ac_prog_rejected=yes
1067 continue
1069 ac_cv_prog_CC="cc"
1070 break
1072 done
1073 IFS="$ac_save_ifs"
1074 if test $ac_prog_rejected = yes; then
1075 # We found a bogon in the path, so make sure we never use it.
1076 set dummy $ac_cv_prog_CC
1077 shift
1078 if test $# -gt 0; then
1079 # We chose a different compiler from the bogus one.
1080 # However, it has the same basename, so the bogon will be chosen
1081 # first if we set CC to just the basename; use the full file name.
1082 shift
1083 set dummy "$ac_dir/$ac_word" "$@"
1084 shift
1085 ac_cv_prog_CC="$@"
1090 CC="$ac_cv_prog_CC"
1091 if test -n "$CC"; then
1092 echo "$ac_t""$CC" 1>&6
1093 else
1094 echo "$ac_t""no" 1>&6
1097 if test -z "$CC"; then
1098 case "`uname -s`" in
1099 *win32* | *WIN32*)
1100 # Extract the first word of "cl", so it can be a program name with args.
1101 set dummy cl; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107 if test -n "$CC"; then
1108 ac_cv_prog_CC="$CC" # Let the user override the test.
1109 else
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111 ac_dummy="$PATH"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_CC="cl"
1116 break
1118 done
1119 IFS="$ac_save_ifs"
1122 CC="$ac_cv_prog_CC"
1123 if test -n "$CC"; then
1124 echo "$ac_t""$CC" 1>&6
1125 else
1126 echo "$ac_t""no" 1>&6
1129 esac
1131 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1135 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether we are using GNU C" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139 else
1140 cat > conftest.c <<EOF
1141 #ifdef __GNUC__
1142 yes;
1143 #endif
1145 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1146 ac_cv_prog_gcc=yes
1147 else
1148 ac_cv_prog_gcc=no
1152 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1154 if test $ac_cv_prog_gcc = yes; then
1155 GCC=yes
1156 else
1157 GCC=
1160 ac_test_CFLAGS="${CFLAGS+set}"
1161 ac_save_CFLAGS="$CFLAGS"
1162 CFLAGS=
1163 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether ${CC-cc} accepts -g" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168 echo 'void f(){}' > conftest.c
1169 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1170 ac_cv_prog_cc_g=yes
1171 else
1172 ac_cv_prog_cc_g=no
1174 rm -f conftest*
1178 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1179 if test "$ac_test_CFLAGS" = set; then
1180 CFLAGS="$ac_save_CFLAGS"
1181 elif test $ac_cv_prog_cc_g = yes; then
1182 if test "$GCC" = yes; then
1183 CFLAGS="-g -O2"
1184 else
1185 CFLAGS="-g"
1187 else
1188 if test "$GCC" = yes; then
1189 CFLAGS="-O2"
1190 else
1191 CFLAGS=
1196 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1197 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1198 # different definition of CXX than other directories, since we don't
1199 # depend on libstdc++-v3 having already been built.
1203 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1204 # flags that come in CXX while configuring libjava. They're different
1205 # from those used for all other target libraries. If CXX is set in
1206 # the environment, respect that here.
1207 glibjava_CXX=$CXX
1208 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1210 # Extract the first word of "$ac_prog", so it can be a program name with args.
1211 set dummy $ac_prog; ac_word=$2
1212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1213 echo "configure:1214: checking for $ac_word" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1216 else
1217 if test -n "$glibjava_CXX"; then
1218 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1219 else
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1221 ac_dummy="$PATH"
1222 for ac_dir in $ac_dummy; do
1223 test -z "$ac_dir" && ac_dir=.
1224 if test -f $ac_dir/$ac_word; then
1225 ac_cv_prog_glibjava_CXX="$ac_prog"
1226 break
1228 done
1229 IFS="$ac_save_ifs"
1232 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1233 if test -n "$glibjava_CXX"; then
1234 echo "$ac_t""$glibjava_CXX" 1>&6
1235 else
1236 echo "$ac_t""no" 1>&6
1239 test -n "$glibjava_CXX" && break
1240 done
1241 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1244 CXX=$glibjava_CXX
1245 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1247 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether we are using GNU C++" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252 cat > conftest.C <<EOF
1253 #ifdef __GNUC__
1254 yes;
1255 #endif
1257 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1258 ac_cv_prog_gxx=yes
1259 else
1260 ac_cv_prog_gxx=no
1264 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1266 if test $ac_cv_prog_gxx = yes; then
1267 GXX=yes
1268 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1269 ac_save_CXXFLAGS="$CXXFLAGS"
1270 CXXFLAGS=
1271 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether ${CXX-g++} accepts -g" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276 echo 'void f(){}' > conftest.cc
1277 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1278 ac_cv_prog_cxx_g=yes
1279 else
1280 ac_cv_prog_cxx_g=no
1282 rm -f conftest*
1286 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1287 if test "$ac_test_CXXFLAGS" = set; then
1288 CXXFLAGS="$ac_save_CXXFLAGS"
1289 elif test $ac_cv_prog_cxx_g = yes; then
1290 CXXFLAGS="-g -O2"
1291 else
1292 CXXFLAGS="-O2"
1294 else
1295 GXX=
1296 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1300 version=0.0.7
1302 PACKAGE=libjava
1304 VERSION=$version
1306 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1307 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1309 cat >> confdefs.h <<EOF
1310 #define PACKAGE "$PACKAGE"
1313 cat >> confdefs.h <<EOF
1314 #define VERSION "$VERSION"
1319 missing_dir=`cd $ac_aux_dir && pwd`
1320 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1321 echo "configure:1322: checking for working aclocal" >&5
1322 # Run test in a subshell; some versions of sh will print an error if
1323 # an executable is not found, even if stderr is redirected.
1324 # Redirect stdin to placate older versions of autoconf. Sigh.
1325 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1326 ACLOCAL=aclocal
1327 echo "$ac_t""found" 1>&6
1328 else
1329 ACLOCAL="$missing_dir/missing aclocal"
1330 echo "$ac_t""missing" 1>&6
1333 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1334 echo "configure:1335: checking for working autoconf" >&5
1335 # Run test in a subshell; some versions of sh will print an error if
1336 # an executable is not found, even if stderr is redirected.
1337 # Redirect stdin to placate older versions of autoconf. Sigh.
1338 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1339 AUTOCONF=autoconf
1340 echo "$ac_t""found" 1>&6
1341 else
1342 AUTOCONF="$missing_dir/missing autoconf"
1343 echo "$ac_t""missing" 1>&6
1346 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1347 echo "configure:1348: checking for working automake" >&5
1348 # Run test in a subshell; some versions of sh will print an error if
1349 # an executable is not found, even if stderr is redirected.
1350 # Redirect stdin to placate older versions of autoconf. Sigh.
1351 if (automake --version) < /dev/null > /dev/null 2>&1; then
1352 AUTOMAKE=automake
1353 echo "$ac_t""found" 1>&6
1354 else
1355 AUTOMAKE="$missing_dir/missing automake"
1356 echo "$ac_t""missing" 1>&6
1359 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1360 echo "configure:1361: checking for working autoheader" >&5
1361 # Run test in a subshell; some versions of sh will print an error if
1362 # an executable is not found, even if stderr is redirected.
1363 # Redirect stdin to placate older versions of autoconf. Sigh.
1364 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1365 AUTOHEADER=autoheader
1366 echo "$ac_t""found" 1>&6
1367 else
1368 AUTOHEADER="$missing_dir/missing autoheader"
1369 echo "$ac_t""missing" 1>&6
1372 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1373 echo "configure:1374: checking for working makeinfo" >&5
1374 # Run test in a subshell; some versions of sh will print an error if
1375 # an executable is not found, even if stderr is redirected.
1376 # Redirect stdin to placate older versions of autoconf. Sigh.
1377 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1378 MAKEINFO=makeinfo
1379 echo "$ac_t""found" 1>&6
1380 else
1381 MAKEINFO="$missing_dir/missing makeinfo"
1382 echo "$ac_t""missing" 1>&6
1387 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1388 # run it explicitly here, it will be run implicitly before
1389 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1390 # be run before AC_CANONICAL_HOST.
1391 echo $ac_n "checking build system type""... $ac_c" 1>&6
1392 echo "configure:1393: checking build system type" >&5
1394 build_alias=$build
1395 case "$build_alias" in
1396 NONE)
1397 case $nonopt in
1398 NONE) build_alias=$host_alias ;;
1399 *) build_alias=$nonopt ;;
1400 esac ;;
1401 esac
1403 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1404 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$ac_t""$build" 1>&6
1410 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1411 set dummy ${ac_tool_prefix}as; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417 if test -n "$AS"; then
1418 ac_cv_prog_AS="$AS" # Let the user override the test.
1419 else
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1421 ac_dummy="$PATH"
1422 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_AS="${ac_tool_prefix}as"
1426 break
1428 done
1429 IFS="$ac_save_ifs"
1430 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1433 AS="$ac_cv_prog_AS"
1434 if test -n "$AS"; then
1435 echo "$ac_t""$AS" 1>&6
1436 else
1437 echo "$ac_t""no" 1>&6
1442 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}ar; ac_word=$2
1444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1445 echo "configure:1446: checking for $ac_word" >&5
1446 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448 else
1449 if test -n "$AR"; then
1450 ac_cv_prog_AR="$AR" # Let the user override the test.
1451 else
1452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1453 ac_dummy="$PATH"
1454 for ac_dir in $ac_dummy; do
1455 test -z "$ac_dir" && ac_dir=.
1456 if test -f $ac_dir/$ac_word; then
1457 ac_cv_prog_AR="${ac_tool_prefix}ar"
1458 break
1460 done
1461 IFS="$ac_save_ifs"
1462 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1465 AR="$ac_cv_prog_AR"
1466 if test -n "$AR"; then
1467 echo "$ac_t""$AR" 1>&6
1468 else
1469 echo "$ac_t""no" 1>&6
1474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1477 echo "configure:1478: checking for $ac_word" >&5
1478 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481 if test -n "$RANLIB"; then
1482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1483 else
1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1485 ac_dummy="$PATH"
1486 for ac_dir in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1490 break
1492 done
1493 IFS="$ac_save_ifs"
1496 RANLIB="$ac_cv_prog_RANLIB"
1497 if test -n "$RANLIB"; then
1498 echo "$ac_t""$RANLIB" 1>&6
1499 else
1500 echo "$ac_t""no" 1>&6
1504 if test -z "$ac_cv_prog_RANLIB"; then
1505 if test -n "$ac_tool_prefix"; then
1506 # Extract the first word of "ranlib", so it can be a program name with args.
1507 set dummy ranlib; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1512 else
1513 if test -n "$RANLIB"; then
1514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1515 else
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 ac_dummy="$PATH"
1518 for ac_dir in $ac_dummy; do
1519 test -z "$ac_dir" && ac_dir=.
1520 if test -f $ac_dir/$ac_word; then
1521 ac_cv_prog_RANLIB="ranlib"
1522 break
1524 done
1525 IFS="$ac_save_ifs"
1526 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1529 RANLIB="$ac_cv_prog_RANLIB"
1530 if test -n "$RANLIB"; then
1531 echo "$ac_t""$RANLIB" 1>&6
1532 else
1533 echo "$ac_t""no" 1>&6
1536 else
1537 RANLIB=":"
1542 # Find a good install program. We prefer a C program (faster),
1543 # so one script is as good as another. But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1548 # AIX /bin/install
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # ./install, which can be erroneously created by make from ./install.sh.
1553 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1554 echo "configure:1555: checking for a BSD compatible install" >&5
1555 if test -z "$INSTALL"; then
1556 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558 else
1559 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1560 for ac_dir in $PATH; do
1561 # Account for people who put trailing slashes in PATH elements.
1562 case "$ac_dir/" in
1563 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1565 # OSF1 and SCO ODT 3.0 have their own names for install.
1566 # Don't use installbsd from OSF since it installs stuff as root
1567 # by default.
1568 for ac_prog in ginstall scoinst install; do
1569 if test -f $ac_dir/$ac_prog; then
1570 if test $ac_prog = install &&
1571 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1572 # AIX install. It has an incompatible calling convention.
1574 else
1575 ac_cv_path_install="$ac_dir/$ac_prog -c"
1576 break 2
1579 done
1581 esac
1582 done
1583 IFS="$ac_save_IFS"
1586 if test "${ac_cv_path_install+set}" = set; then
1587 INSTALL="$ac_cv_path_install"
1588 else
1589 # As a last resort, use the slow shell script. We don't cache a
1590 # path for INSTALL within a source directory, because that will
1591 # break other packages using the cache if that directory is
1592 # removed, or if the path is relative.
1593 INSTALL="$ac_install_sh"
1596 echo "$ac_t""$INSTALL" 1>&6
1598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1599 # It thinks the first close brace ends the variable substitution.
1600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1607 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether to enable maintainer-specific portions of Makefiles" >&5
1609 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1610 if test "${enable_maintainer_mode+set}" = set; then
1611 enableval="$enable_maintainer_mode"
1612 USE_MAINTAINER_MODE=$enableval
1613 else
1614 USE_MAINTAINER_MODE=no
1617 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1620 if test $USE_MAINTAINER_MODE = yes; then
1621 MAINTAINER_MODE_TRUE=
1622 MAINTAINER_MODE_FALSE='#'
1623 else
1624 MAINTAINER_MODE_TRUE='#'
1625 MAINTAINER_MODE_FALSE=
1627 MAINT=$MAINTAINER_MODE_TRUE
1633 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1634 echo "configure:1635: checking for executable suffix" >&5
1635 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1637 else
1638 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1639 ac_cv_exeext=.exe
1640 else
1641 rm -f conftest*
1642 echo 'int main () { return 0; }' > conftest.$ac_ext
1643 ac_cv_exeext=
1644 if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1645 for file in conftest.*; do
1646 case $file in
1647 *.c | *.o | *.obj) ;;
1648 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1649 esac
1650 done
1651 else
1652 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1654 rm -f conftest*
1655 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1659 EXEEXT=""
1660 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1661 echo "$ac_t""${ac_cv_exeext}" 1>&6
1662 ac_exeext=$EXEEXT
1665 # configure.host sets the following important variables
1666 # libgcj_cflags - host specific C compiler flags
1667 # libgcj_cxxflags - host specific C++ compiler flags
1668 # libgcj_javaflags - host specific Java compiler flags
1670 libgcj_cflags=
1671 libgcj_cxxflags=
1672 libgcj_javaflags=
1674 . ${srcdir}/configure.host
1676 LIBGCJ_CFLAGS="${libgcj_cflags}"
1677 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1678 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1688 # Only use libltdl for native builds.
1689 if test -z "${with_cross_host}"; then
1690 case $enable_ltdl_convenience in
1691 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1692 "") enable_ltdl_convenience=yes
1693 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1694 esac
1695 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1696 INCLTDL='-I${top_srcdir}/''libltdl'
1699 DIRLTDL=libltdl
1700 cat >> confdefs.h <<\EOF
1701 #define USE_LTDL 1
1704 # Sigh. Libtool's macro doesn't do the right thing.
1705 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1706 # FIXME: this is a hack.
1707 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1708 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1713 # Check whether --enable-shared or --disable-shared was given.
1714 if test "${enable_shared+set}" = set; then
1715 enableval="$enable_shared"
1716 p=${PACKAGE-default}
1717 case $enableval in
1718 yes) enable_shared=yes ;;
1719 no) enable_shared=no ;;
1721 enable_shared=no
1722 # Look at the argument we got. We use all the common list separators.
1723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1724 for pkg in $enableval; do
1725 if test "X$pkg" = "X$p"; then
1726 enable_shared=yes
1728 done
1729 IFS="$ac_save_ifs"
1731 esac
1732 else
1733 enable_shared=yes
1736 # Check whether --enable-static or --disable-static was given.
1737 if test "${enable_static+set}" = set; then
1738 enableval="$enable_static"
1739 p=${PACKAGE-default}
1740 case $enableval in
1741 yes) enable_static=yes ;;
1742 no) enable_static=no ;;
1744 enable_static=no
1745 # Look at the argument we got. We use all the common list separators.
1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1747 for pkg in $enableval; do
1748 if test "X$pkg" = "X$p"; then
1749 enable_static=yes
1751 done
1752 IFS="$ac_save_ifs"
1754 esac
1755 else
1756 enable_static=yes
1759 # Check whether --enable-fast-install or --disable-fast-install was given.
1760 if test "${enable_fast_install+set}" = set; then
1761 enableval="$enable_fast_install"
1762 p=${PACKAGE-default}
1763 case $enableval in
1764 yes) enable_fast_install=yes ;;
1765 no) enable_fast_install=no ;;
1767 enable_fast_install=no
1768 # Look at the argument we got. We use all the common list separators.
1769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1770 for pkg in $enableval; do
1771 if test "X$pkg" = "X$p"; then
1772 enable_fast_install=yes
1774 done
1775 IFS="$ac_save_ifs"
1777 esac
1778 else
1779 enable_fast_install=yes
1782 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1783 if test "${with_gnu_ld+set}" = set; then
1784 withval="$with_gnu_ld"
1785 test "$withval" = no || with_gnu_ld=yes
1786 else
1787 with_gnu_ld=no
1790 ac_prog=ld
1791 if test "$GCC" = yes; then
1792 # Check if gcc -print-prog-name=ld gives a path.
1793 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1794 echo "configure:1795: checking for ld used by GCC" >&5
1795 case $host in
1796 *-*-mingw*)
1797 # gcc leaves a trailing carriage return which upsets mingw
1798 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1800 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1801 esac
1802 case $ac_prog in
1803 # Accept absolute paths.
1804 [\\/]* | [A-Za-z]:[\\/]*)
1805 re_direlt='/[^/][^/]*/\.\./'
1806 # Canonicalize the path of ld
1807 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1808 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1809 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1810 done
1811 test -z "$LD" && LD="$ac_prog"
1814 # If it fails, then pretend we aren't using GCC.
1815 ac_prog=ld
1818 # If it is relative, then search for the first ld in PATH.
1819 with_gnu_ld=unknown
1821 esac
1822 elif test "$with_gnu_ld" = yes; then
1823 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1824 echo "configure:1825: checking for GNU ld" >&5
1825 else
1826 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1827 echo "configure:1828: checking for non-GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 if test -z "$LD"; then
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1834 for ac_dir in $PATH; do
1835 test -z "$ac_dir" && ac_dir=.
1836 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1837 lt_cv_path_LD="$ac_dir/$ac_prog"
1838 # Check to see if the program is GNU ld. I'd rather use --version,
1839 # but apparently some GNU ld's only accept -v.
1840 # Break only if it was the GNU/non-GNU ld that we prefer.
1841 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1842 test "$with_gnu_ld" != no && break
1843 else
1844 test "$with_gnu_ld" != yes && break
1847 done
1848 IFS="$ac_save_ifs"
1849 else
1850 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1854 LD="$lt_cv_path_LD"
1855 if test -n "$LD"; then
1856 echo "$ac_t""$LD" 1>&6
1857 else
1858 echo "$ac_t""no" 1>&6
1860 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1861 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1862 echo "configure:1863: checking if the linker ($LD) is GNU ld" >&5
1863 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1867 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1868 lt_cv_prog_gnu_ld=yes
1869 else
1870 lt_cv_prog_gnu_ld=no
1874 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1875 with_gnu_ld=$lt_cv_prog_gnu_ld
1878 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $LD option to reload object files" >&5
1880 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883 lt_cv_ld_reload_flag='-r'
1886 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1887 reload_flag=$lt_cv_ld_reload_flag
1888 test -n "$reload_flag" && reload_flag=" $reload_flag"
1890 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1891 echo "configure:1892: checking for BSD-compatible nm" >&5
1892 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895 if test -n "$NM"; then
1896 # Let the user override the test.
1897 lt_cv_path_NM="$NM"
1898 else
1899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1900 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1901 test -z "$ac_dir" && ac_dir=.
1902 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1903 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1904 # Check to see if the nm accepts a BSD-compat flag.
1905 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1906 # nm: unknown option "B" ignored
1907 # Tru64's nm complains that /dev/null is an invalid object file
1908 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1909 lt_cv_path_NM="$tmp_nm -B"
1910 break
1911 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1912 lt_cv_path_NM="$tmp_nm -p"
1913 break
1914 else
1915 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1916 continue # so that we can try to find one that supports BSD flags
1919 done
1920 IFS="$ac_save_ifs"
1921 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1925 NM="$lt_cv_path_NM"
1926 echo "$ac_t""$NM" 1>&6
1928 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1929 echo "configure:1930: checking how to recognise dependant libraries" >&5
1930 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933 lt_cv_file_magic_cmd='$MAGIC_CMD'
1934 lt_cv_file_magic_test_file=
1935 lt_cv_deplibs_check_method='unknown'
1936 # Need to set the preceding variable on all platforms that support
1937 # interlibrary dependencies.
1938 # 'none' -- dependencies not supported.
1939 # `unknown' -- same as none, but documents that we really don't know.
1940 # 'pass_all' -- all dependencies passed with no checks.
1941 # 'test_compile' -- check by making test program.
1942 # 'file_magic [regex]' -- check by looking for files in library path
1943 # which responds to the $file_magic_cmd with a given egrep regex.
1944 # If you have `file' or equivalent on your system and you're not sure
1945 # whether `pass_all' will *always* work, you probably want this one.
1947 case $host_os in
1948 aix*)
1949 lt_cv_deplibs_check_method=pass_all
1952 beos*)
1953 lt_cv_deplibs_check_method=pass_all
1956 bsdi4*)
1957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1958 lt_cv_file_magic_cmd='/usr/bin/file -L'
1959 lt_cv_file_magic_test_file=/shlib/libc.so
1962 cygwin* | mingw* |pw32*)
1963 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1964 lt_cv_file_magic_cmd='$OBJDUMP -f'
1967 darwin* | rhapsody*)
1968 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1969 lt_cv_file_magic_cmd='/usr/bin/file -L'
1970 case "$host_os" in
1971 rhapsody* | darwin1.012)
1972 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1974 *) # Darwin 1.3 on
1975 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1977 esac
1980 freebsd* )
1981 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1982 case $host_cpu in
1983 i*86 )
1984 # Not sure whether the presence of OpenBSD here was a mistake.
1985 # Let's accept both of them until this is cleared up.
1986 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1987 lt_cv_file_magic_cmd=/usr/bin/file
1988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1990 esac
1991 else
1992 lt_cv_deplibs_check_method=pass_all
1996 gnu*)
1997 lt_cv_deplibs_check_method=pass_all
2000 hpux10.20*|hpux11*)
2001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2002 lt_cv_file_magic_cmd=/usr/bin/file
2003 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2006 irix5* | irix6*)
2007 case $host_os in
2008 irix5*)
2009 # this will be overridden with pass_all, but let us keep it just in case
2010 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2013 case $LD in
2014 *-32|*"-32 ") libmagic=32-bit;;
2015 *-n32|*"-n32 ") libmagic=N32;;
2016 *-64|*"-64 ") libmagic=64-bit;;
2017 *) libmagic=never-match;;
2018 esac
2019 # this will be overridden with pass_all, but let us keep it just in case
2020 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2022 esac
2023 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2024 lt_cv_deplibs_check_method=pass_all
2027 # This must be Linux ELF.
2028 linux-gnu*)
2029 case $host_cpu in
2030 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2031 lt_cv_deplibs_check_method=pass_all ;;
2033 # glibc up to 2.1.1 does not perform some relocations on ARM
2034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2035 esac
2036 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2039 netbsd*)
2040 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2041 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2042 else
2043 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2047 newsos6)
2048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2049 lt_cv_file_magic_cmd=/usr/bin/file
2050 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2053 osf3* | osf4* | osf5*)
2054 # this will be overridden with pass_all, but let us keep it just in case
2055 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2056 lt_cv_file_magic_test_file=/shlib/libc.so
2057 lt_cv_deplibs_check_method=pass_all
2060 sco3.2v5*)
2061 lt_cv_deplibs_check_method=pass_all
2064 solaris*)
2065 lt_cv_deplibs_check_method=pass_all
2066 lt_cv_file_magic_test_file=/lib/libc.so
2069 sysv5uw[78]* | sysv4*uw2*)
2070 lt_cv_deplibs_check_method=pass_all
2073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2074 case $host_vendor in
2075 ncr)
2076 lt_cv_deplibs_check_method=pass_all
2078 motorola)
2079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2082 esac
2084 esac
2088 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2089 file_magic_cmd=$lt_cv_file_magic_cmd
2090 deplibs_check_method=$lt_cv_deplibs_check_method
2092 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2093 echo "configure:2094: checking for object suffix" >&5
2094 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2096 else
2097 rm -f conftest*
2098 echo 'int i = 1;' > conftest.$ac_ext
2099 if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100 for ac_file in conftest.*; do
2101 case $ac_file in
2102 *.c) ;;
2103 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2104 esac
2105 done
2106 else
2107 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2109 rm -f conftest*
2112 echo "$ac_t""$ac_cv_objext" 1>&6
2113 OBJEXT=$ac_cv_objext
2114 ac_objext=$ac_cv_objext
2116 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2118 # Only perform the check for file, if the check method requires it
2119 case $deplibs_check_method in
2120 file_magic*)
2121 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2122 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2123 echo "configure:2124: checking for ${ac_tool_prefix}file" >&5
2124 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127 case $MAGIC_CMD in
2129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2131 ?:/*)
2132 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2135 ac_save_MAGIC_CMD="$MAGIC_CMD"
2136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2137 ac_dummy="/usr/bin:$PATH"
2138 for ac_dir in $ac_dummy; do
2139 test -z "$ac_dir" && ac_dir=.
2140 if test -f $ac_dir/${ac_tool_prefix}file; then
2141 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2142 if test -n "$file_magic_test_file"; then
2143 case $deplibs_check_method in
2144 "file_magic "*)
2145 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2148 egrep "$file_magic_regex" > /dev/null; then
2150 else
2151 cat <<EOF 1>&2
2153 *** Warning: the command libtool uses to detect shared libraries,
2154 *** $file_magic_cmd, produces output that libtool cannot recognize.
2155 *** The result is that libtool may fail to recognize shared libraries
2156 *** as such. This will affect the creation of libtool libraries that
2157 *** depend on shared libraries, but programs linked with such libtool
2158 *** libraries will work regardless of this problem. Nevertheless, you
2159 *** may want to report the problem to your system manager and/or to
2160 *** bug-libtool@gnu.org
2163 fi ;;
2164 esac
2166 break
2168 done
2169 IFS="$ac_save_ifs"
2170 MAGIC_CMD="$ac_save_MAGIC_CMD"
2172 esac
2175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2176 if test -n "$MAGIC_CMD"; then
2177 echo "$ac_t""$MAGIC_CMD" 1>&6
2178 else
2179 echo "$ac_t""no" 1>&6
2182 if test -z "$lt_cv_path_MAGIC_CMD"; then
2183 if test -n "$ac_tool_prefix"; then
2184 echo $ac_n "checking for file""... $ac_c" 1>&6
2185 echo "configure:2186: checking for file" >&5
2186 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 case $MAGIC_CMD in
2191 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2193 ?:/*)
2194 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2197 ac_save_MAGIC_CMD="$MAGIC_CMD"
2198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2199 ac_dummy="/usr/bin:$PATH"
2200 for ac_dir in $ac_dummy; do
2201 test -z "$ac_dir" && ac_dir=.
2202 if test -f $ac_dir/file; then
2203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2204 if test -n "$file_magic_test_file"; then
2205 case $deplibs_check_method in
2206 "file_magic "*)
2207 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2210 egrep "$file_magic_regex" > /dev/null; then
2212 else
2213 cat <<EOF 1>&2
2215 *** Warning: the command libtool uses to detect shared libraries,
2216 *** $file_magic_cmd, produces output that libtool cannot recognize.
2217 *** The result is that libtool may fail to recognize shared libraries
2218 *** as such. This will affect the creation of libtool libraries that
2219 *** depend on shared libraries, but programs linked with such libtool
2220 *** libraries will work regardless of this problem. Nevertheless, you
2221 *** may want to report the problem to your system manager and/or to
2222 *** bug-libtool@gnu.org
2225 fi ;;
2226 esac
2228 break
2230 done
2231 IFS="$ac_save_ifs"
2232 MAGIC_CMD="$ac_save_MAGIC_CMD"
2234 esac
2237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2238 if test -n "$MAGIC_CMD"; then
2239 echo "$ac_t""$MAGIC_CMD" 1>&6
2240 else
2241 echo "$ac_t""no" 1>&6
2244 else
2245 MAGIC_CMD=:
2251 esac
2253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_word" >&5
2257 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2259 else
2260 if test -n "$RANLIB"; then
2261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2262 else
2263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2264 ac_dummy="$PATH"
2265 for ac_dir in $ac_dummy; do
2266 test -z "$ac_dir" && ac_dir=.
2267 if test -f $ac_dir/$ac_word; then
2268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2269 break
2271 done
2272 IFS="$ac_save_ifs"
2275 RANLIB="$ac_cv_prog_RANLIB"
2276 if test -n "$RANLIB"; then
2277 echo "$ac_t""$RANLIB" 1>&6
2278 else
2279 echo "$ac_t""no" 1>&6
2283 if test -z "$ac_cv_prog_RANLIB"; then
2284 if test -n "$ac_tool_prefix"; then
2285 # Extract the first word of "ranlib", so it can be a program name with args.
2286 set dummy ranlib; ac_word=$2
2287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2288 echo "configure:2289: checking for $ac_word" >&5
2289 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292 if test -n "$RANLIB"; then
2293 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2294 else
2295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2296 ac_dummy="$PATH"
2297 for ac_dir in $ac_dummy; do
2298 test -z "$ac_dir" && ac_dir=.
2299 if test -f $ac_dir/$ac_word; then
2300 ac_cv_prog_RANLIB="ranlib"
2301 break
2303 done
2304 IFS="$ac_save_ifs"
2305 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2308 RANLIB="$ac_cv_prog_RANLIB"
2309 if test -n "$RANLIB"; then
2310 echo "$ac_t""$RANLIB" 1>&6
2311 else
2312 echo "$ac_t""no" 1>&6
2315 else
2316 RANLIB=":"
2320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}strip; ac_word=$2
2322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2323 echo "configure:2324: checking for $ac_word" >&5
2324 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2326 else
2327 if test -n "$STRIP"; then
2328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329 else
2330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2331 ac_dummy="$PATH"
2332 for ac_dir in $ac_dummy; do
2333 test -z "$ac_dir" && ac_dir=.
2334 if test -f $ac_dir/$ac_word; then
2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 break
2338 done
2339 IFS="$ac_save_ifs"
2342 STRIP="$ac_cv_prog_STRIP"
2343 if test -n "$STRIP"; then
2344 echo "$ac_t""$STRIP" 1>&6
2345 else
2346 echo "$ac_t""no" 1>&6
2350 if test -z "$ac_cv_prog_STRIP"; then
2351 if test -n "$ac_tool_prefix"; then
2352 # Extract the first word of "strip", so it can be a program name with args.
2353 set dummy strip; ac_word=$2
2354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_word" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359 if test -n "$STRIP"; then
2360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361 else
2362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2363 ac_dummy="$PATH"
2364 for ac_dir in $ac_dummy; do
2365 test -z "$ac_dir" && ac_dir=.
2366 if test -f $ac_dir/$ac_word; then
2367 ac_cv_prog_STRIP="strip"
2368 break
2370 done
2371 IFS="$ac_save_ifs"
2372 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2375 STRIP="$ac_cv_prog_STRIP"
2376 if test -n "$STRIP"; then
2377 echo "$ac_t""$STRIP" 1>&6
2378 else
2379 echo "$ac_t""no" 1>&6
2382 else
2383 STRIP=":"
2388 # Check for any special flags to pass to ltconfig.
2389 libtool_flags="--cache-file=$cache_file"
2390 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2391 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2392 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2393 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2394 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2395 libtool_flags="$libtool_flags --enable-dlopen"
2397 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2398 if test "${enable_libtool_lock+set}" = set; then
2399 enableval="$enable_libtool_lock"
2403 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2404 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2406 # Check whether --with-pic or --without-pic was given.
2407 if test "${with_pic+set}" = set; then
2408 withval="$with_pic"
2409 pic_mode="$withval"
2410 else
2411 pic_mode=default
2414 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2415 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2417 # Some flags need to be propagated to the compiler or linker for good
2418 # libtool support.
2419 case $host in
2420 *-*-irix6*)
2421 # Find out which ABI we are using.
2422 echo '#line 2423 "configure"' > conftest.$ac_ext
2423 if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 case `/usr/bin/file conftest.$ac_objext` in
2425 *32-bit*)
2426 LD="${LD-ld} -32"
2428 *N32*)
2429 LD="${LD-ld} -n32"
2431 *64-bit*)
2432 LD="${LD-ld} -64"
2434 esac
2436 rm -rf conftest*
2439 *-*-sco3.2v5*)
2440 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2441 SAVE_CFLAGS="$CFLAGS"
2442 CFLAGS="$CFLAGS -belf"
2443 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2444 echo "configure:2445: checking whether the C compiler needs -belf" >&5
2445 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2447 else
2449 ac_ext=c
2450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2454 cross_compiling=$ac_cv_prog_cc_cross
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2460 int main() {
2462 ; return 0; }
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2465 rm -rf conftest*
2466 lt_cv_cc_needs_belf=yes
2467 else
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2470 rm -rf conftest*
2471 lt_cv_cc_needs_belf=no
2473 rm -f conftest*
2474 ac_ext=c
2475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2479 cross_compiling=$ac_cv_prog_cc_cross
2483 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2484 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2485 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2486 CFLAGS="$SAVE_CFLAGS"
2491 esac
2493 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2494 echo "configure:2495: checking how to run the C++ preprocessor" >&5
2495 if test -z "$CXXCPP"; then
2496 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2498 else
2499 ac_ext=C
2500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2501 ac_cpp='$CXXCPP $CPPFLAGS'
2502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2504 cross_compiling=$ac_cv_prog_cxx_cross
2505 CXXCPP="${CXX-g++} -E"
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 #include <stdlib.h>
2511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2514 if test -z "$ac_err"; then
2516 else
2517 echo "$ac_err" >&5
2518 echo "configure: failed program was:" >&5
2519 cat conftest.$ac_ext >&5
2520 rm -rf conftest*
2521 CXXCPP=/lib/cpp
2523 rm -f conftest*
2524 ac_cv_prog_CXXCPP="$CXXCPP"
2525 ac_ext=c
2526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2530 cross_compiling=$ac_cv_prog_cc_cross
2533 CXXCPP="$ac_cv_prog_CXXCPP"
2534 echo "$ac_t""$CXXCPP" 1>&6
2537 # Save cache, so that ltconfig can load it
2538 cat > confcache <<\EOF
2539 # This file is a shell script that caches the results of configure
2540 # tests run on this system so they can be shared between configure
2541 # scripts and configure runs. It is not useful on other systems.
2542 # If it contains results you don't want to keep, you may remove or edit it.
2544 # By default, configure uses ./config.cache as the cache file,
2545 # creating it if it does not exist already. You can give configure
2546 # the --cache-file=FILE option to use a different cache file; that is
2547 # what configure does when it calls configure scripts in
2548 # subdirectories, so they share the cache.
2549 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2550 # config.status only pays attention to the cache file if you give it the
2551 # --recheck option to rerun configure.
2554 # The following way of writing the cache mishandles newlines in values,
2555 # but we know of no workaround that is simple, portable, and efficient.
2556 # So, don't put newlines in cache variables' values.
2557 # Ultrix sh set writes to stderr and can't be redirected directly,
2558 # and sets the high bit in the cache file unless we assign to the vars.
2559 (set) 2>&1 |
2560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2561 *ac_space=\ *)
2562 # `set' does not quote correctly, so add quotes (double-quote substitution
2563 # turns \\\\ into \\, and sed turns \\ into \).
2564 sed -n \
2565 -e "s/'/'\\\\''/g" \
2566 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2569 # `set' quotes correctly as required by POSIX, so do not add quotes.
2570 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2572 esac >> confcache
2573 if cmp -s $cache_file confcache; then
2575 else
2576 if test -w $cache_file; then
2577 echo "updating cache $cache_file"
2578 cat confcache > $cache_file
2579 else
2580 echo "not updating unwritable cache $cache_file"
2583 rm -f confcache
2586 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2587 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2588 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2589 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2590 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2591 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2592 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2593 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2594 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2595 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2597 # Reload cache, that may have been modified by ltconfig
2598 if test -r "$cache_file"; then
2599 echo "loading cache $cache_file"
2600 . $cache_file
2601 else
2602 echo "creating cache $cache_file"
2603 > $cache_file
2607 # This can be used to rebuild libtool when needed
2608 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2610 # Always use our own libtool.
2611 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2613 # Redirect the config.log output again, so that the ltconfig log is not
2614 # clobbered by the next message.
2615 exec 5>>./config.log
2619 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2620 lt_save_CC="$CC"
2621 lt_save_CFLAGS="$CFLAGS"
2622 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2623 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2624 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2625 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2626 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2627 deplibs_check_method="$deplibs_check_method" \
2628 file_magic_cmd="$file_magic_cmd" \
2629 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2630 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2631 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2632 CC="$lt_save_CC"
2633 CFLAGS="$lt_save_CFLAGS"
2635 # Redirect the config.log output again, so that the ltconfig log is not
2636 # clobbered by the next message.
2637 exec 5>>./config.log
2644 subdirs="$DIRLTDL"
2647 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2648 COMPPATH=.
2649 else
2650 COMPPATH=..
2656 if test -d $srcdir/testsuite; then
2657 TESTSUBDIR_TRUE=
2658 TESTSUBDIR_FALSE='#'
2659 else
2660 TESTSUBDIR_TRUE='#'
2661 TESTSUBDIR_FALSE=
2664 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2665 if test "${enable_getenv_properties+set}" = set; then
2666 enableval="$enable_getenv_properties"
2671 if test -z "$enable_getenv_properties"; then
2672 enable_getenv_properties=${enable_getenv_properties_default-yes}
2674 if test "$enable_getenv_properties" = no; then
2675 cat >> confdefs.h <<\EOF
2676 #define DISABLE_GETENV_PROPERTIES 1
2681 if test -z "$enable_main_args"; then
2682 enable_main_args=${enable_main_args_default-yes}
2684 if test "$enable_main_args" = no; then
2685 cat >> confdefs.h <<\EOF
2686 #define DISABLE_MAIN_ARGS 1
2692 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2693 if test "${enable_hash_synchronization+set}" = set; then
2694 enableval="$enable_hash_synchronization"
2699 if test -z "$enable_hash_synchronization"; then
2700 enable_hash_synchronization=$enable_hash_synchronization_default
2703 if test "${slow_pthread_self}" = "yes"; then
2704 cat >> confdefs.h <<\EOF
2705 #define SLOW_PTHREAD_SELF 1
2711 LIBGCJDEBUG="false"
2713 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2714 if test "${enable_libgcj_debug+set}" = set; then
2715 enableval="$enable_libgcj_debug"
2716 if test "$enable_libgcj_debug" = yes; then
2717 cat >> confdefs.h <<\EOF
2718 #define DEBUG 1
2721 LIBGCJDEBUG="true"
2726 # Check whether --enable-interpreter or --disable-interpreter was given.
2727 if test "${enable_interpreter+set}" = set; then
2728 enableval="$enable_interpreter"
2729 if test "$enable_interpreter" = yes; then
2730 # This can also be set in configure.host.
2731 libgcj_interpreter=yes
2732 elif test "$enable_interpreter" = no; then
2733 libgcj_interpreter=no
2738 if test "$libgcj_interpreter" = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define INTERPRETER 1
2745 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2746 echo "configure:2747: checking for exception model to use" >&5
2748 ac_ext=C
2749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2750 ac_cpp='$CXXCPP $CPPFLAGS'
2751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2753 cross_compiling=$ac_cv_prog_cxx_cross
2755 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2756 if test "${enable_sjlj_exceptions+set}" = set; then
2757 enableval="$enable_sjlj_exceptions"
2759 else
2760 cat > conftest.$ac_ext << EOF
2761 #line 2762 "configure"
2762 struct S { ~S(); };
2763 void bar();
2764 void foo()
2766 S s;
2767 bar();
2770 old_CXXFLAGS="$CXXFLAGS"
2771 CXXFLAGS=-S
2772 if { (eval echo configure:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2773 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2774 enable_sjlj_exceptions=yes
2775 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2776 enable_sjlj_exceptions=no
2779 CXXFLAGS="$old_CXXFLAGS"
2780 rm -f conftest*
2783 if test x$enable_sjlj_exceptions = xyes; then
2784 cat >> confdefs.h <<\EOF
2785 #define SJLJ_EXCEPTIONS 1
2788 ac_exception_model_name=sjlj
2789 elif test x$enable_sjlj_exceptions = xno; then
2790 ac_exception_model_name="call frame"
2791 else
2792 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2794 ac_ext=c
2795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2799 cross_compiling=$ac_cv_prog_cc_cross
2801 echo "$ac_t""$ac_exception_model_name" 1>&6
2803 # If we are non using SJLJ exceptions, and this host does not have support
2804 # for unwinding from a signal handler, enable checked dereferences and divides.
2805 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2806 CHECKREFSPEC=-fcheck-references
2807 DIVIDESPEC=-fuse-divide-subroutine
2808 EXCEPTIONSPEC=
2811 # Check whether --enable-java-net or --disable-java-net was given.
2812 if test "${enable_java_net+set}" = set; then
2813 enableval="$enable_java_net"
2818 if test -z "$enable_java_net"; then
2819 enable_java_net=${enable_java_net_default-yes}
2821 if test "$enable_java_net" = no; then
2822 cat >> confdefs.h <<\EOF
2823 #define DISABLE_JAVA_NET 1
2828 # Check whether --with-libffi or --without-libffi was given.
2829 if test "${with_libffi+set}" = set; then
2830 withval="$with_libffi"
2832 else
2833 with_libffi=${with_libffi_default-yes}
2837 LIBFFI=
2838 LIBFFIINCS=
2839 if test "$with_libffi" != no; then
2840 cat >> confdefs.h <<\EOF
2841 #define USE_LIBFFI 1
2844 LIBFFI=../libffi/libffi_convenience.la
2845 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2850 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2851 if test "${enable_jvmpi+set}" = set; then
2852 enableval="$enable_jvmpi"
2857 if test "$enable_jvmpi" != no; then
2858 cat >> confdefs.h <<\EOF
2859 #define ENABLE_JVMPI 1
2864 TARGET_ECOS=${PROCESS-"no"}
2865 # Check whether --with-ecos or --without-ecos was given.
2866 if test "${with_ecos+set}" = set; then
2867 withval="$with_ecos"
2868 TARGET_ECOS="$with_ecos"
2873 PLATFORMOBJS=
2874 case "$TARGET_ECOS" in
2875 no) case "$host" in
2876 *mingw*)
2877 PLATFORM=Win32
2878 PLATFORMOBJS=win32.lo
2879 PLATFORMH=win32.h
2882 PLATFORM=Posix
2883 PLATFORMOBJS=posix.lo
2884 PLATFORMH=posix.h
2886 esac
2889 PLATFORM=Ecos
2890 cat >> confdefs.h <<\EOF
2891 #define ECOS 1
2894 PLATFORMOBJS=posix.lo
2895 PLATFORMH=posix.h
2897 esac
2901 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2902 echo "configure:2903: checking how to run the C preprocessor" >&5
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905 CPP=
2907 if test -z "$CPP"; then
2908 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2910 else
2911 # This must be in double quotes, not single quotes, because CPP may get
2912 # substituted into the Makefile and "${CC-cc}" will confuse make.
2913 CPP="${CC-cc} -E"
2914 # On the NeXT, cc -E runs the code through the compiler's parser,
2915 # not just through cpp.
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2919 #include <assert.h>
2920 Syntax Error
2922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2923 { (eval echo configure:2924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2925 if test -z "$ac_err"; then
2927 else
2928 echo "$ac_err" >&5
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2931 rm -rf conftest*
2932 CPP="${CC-cc} -E -traditional-cpp"
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 #include <assert.h>
2937 Syntax Error
2939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2940 { (eval echo configure:2941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2942 if test -z "$ac_err"; then
2944 else
2945 echo "$ac_err" >&5
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2948 rm -rf conftest*
2949 CPP="${CC-cc} -nologo -E"
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <assert.h>
2954 Syntax Error
2956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2957 { (eval echo configure:2958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2959 if test -z "$ac_err"; then
2961 else
2962 echo "$ac_err" >&5
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2965 rm -rf conftest*
2966 CPP=/lib/cpp
2968 rm -f conftest*
2970 rm -f conftest*
2972 rm -f conftest*
2973 ac_cv_prog_CPP="$CPP"
2975 CPP="$ac_cv_prog_CPP"
2976 else
2977 ac_cv_prog_CPP="$CPP"
2979 echo "$ac_t""$CPP" 1>&6
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 #include <stdint.h>
2986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2987 egrep "uint32_t" >/dev/null 2>&1; then
2988 rm -rf conftest*
2989 cat >> confdefs.h <<\EOF
2990 #define HAVE_INT32_DEFINED 1
2994 rm -f conftest*
2996 cat > conftest.$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
2999 #include <inttypes.h>
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 egrep "uint32_t" >/dev/null 2>&1; then
3003 rm -rf conftest*
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_INT32_DEFINED 1
3009 rm -f conftest*
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 #include <sys/types.h>
3016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3017 egrep "u_int32_t" >/dev/null 2>&1; then
3018 rm -rf conftest*
3019 cat >> confdefs.h <<\EOF
3020 #define HAVE_BSD_INT32_DEFINED 1
3024 rm -f conftest*
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 #include <sys/config.h>
3031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3032 egrep "u_int32_t" >/dev/null 2>&1; then
3033 rm -rf conftest*
3034 cat >> confdefs.h <<\EOF
3035 #define HAVE_BSD_INT32_DEFINED 1
3039 rm -f conftest*
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <time.h>
3048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3049 egrep "mktime" >/dev/null 2>&1; then
3050 rm -rf conftest*
3051 cat >> confdefs.h <<\EOF
3052 #define HAVE_MKTIME 1
3056 rm -f conftest*
3058 cat > conftest.$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3061 #include <time.h>
3063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3064 egrep "localtime" >/dev/null 2>&1; then
3065 rm -rf conftest*
3066 cat >> confdefs.h <<\EOF
3067 #define HAVE_LOCALTIME 1
3071 rm -f conftest*
3074 test -d java || mkdir java
3075 test -d java/io || mkdir java/io
3076 test -d gnu || mkdir gnu
3080 test -d java/lang || mkdir java/lang
3084 case "${host}" in
3085 *mingw*)
3086 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3089 SYSTEMSPEC=
3091 esac
3094 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3097 # Check whether --with-system-zlib or --without-system-zlib was given.
3098 if test "${with_system_zlib+set}" = set; then
3099 withval="$with_system_zlib"
3103 ZLIBSPEC=
3105 ZLIBTESTSPEC=
3108 libsubdir=.libs
3110 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3111 echo "configure:3112: checking for garbage collector to use" >&5
3112 # Check whether --enable-java-gc or --disable-java-gc was given.
3113 if test "${enable_java_gc+set}" = set; then
3114 enableval="$enable_java_gc"
3116 GC=$enableval
3117 else
3118 GC=boehm
3121 GCLIBS=
3122 GCINCS=
3123 GCDEPS=
3124 GCOBJS=
3125 GCSPEC=
3126 JC1GCSPEC=
3127 GCTESTSPEC=
3128 case "$GC" in
3129 boehm)
3130 echo "$ac_t""boehm" 1>&6
3131 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3132 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3133 JC1GCSPEC='-fuse-boehm-gc'
3134 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
3136 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3137 GCOBJS=boehm.lo
3138 GCHDR=boehm-gc.h
3139 cat >> confdefs.h <<\EOF
3140 #define HAVE_BOEHM_GC 1
3145 echo "$ac_t""none" 1>&6
3146 GCOBJS=nogc.lo
3147 GCHDR=no-gc.h
3150 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3152 esac
3163 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3164 echo "configure:3165: checking for thread model used by GCC" >&5
3165 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3166 echo "$ac_t""$THREADS" 1>&6
3168 case "$THREADS" in
3169 no | none | single)
3170 THREADS=none
3172 posix | pthreads)
3173 THREADS=posix
3174 case "$host" in
3175 *-*-linux*)
3176 cat >> confdefs.h <<\EOF
3177 #define LINUX_THREADS 1
3181 esac
3183 win32)
3185 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3186 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3189 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3191 esac
3193 THREADLDFLAGS=
3194 THREADLIBS=
3195 THREADINCS=
3196 THREADDEPS=
3197 THREADOBJS=
3198 THREADH=
3199 THREADSPEC=
3200 case "$THREADS" in
3201 posix)
3202 case "$host" in
3203 *-*-cygwin*)
3204 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3207 *-*-freebsd[1234]*)
3209 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3210 # merely adds pthread_* functions) but it does have a -pthread switch
3211 # which is required at link-time to select -lc_r *instead* of -lc.
3212 THREADLDFLAGS=-pthread
3213 # Don't set THREADSPEC here as might be expected since -pthread is
3214 # not processed when found within a spec file, it must come from
3215 # the command line. For now, the user must provide the -pthread
3216 # switch to link code compiled with gcj. In future, consider adding
3217 # support for weak references to pthread_* functions ala gthr.h API.
3218 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3220 *-*-freebsd*)
3221 # FreeBSD 5 implements a model much closer to other modern UNIX
3222 # which support threads. However, it still does not support
3223 # -lpthread.
3224 THREADLDFLAGS=-pthread
3225 THREADSPEC=-lc_r
3228 THREADLIBS=-lpthread
3229 THREADSPEC=-lpthread
3231 esac
3232 THREADOBJS=posix-threads.lo
3233 THREADH=posix-threads.h
3234 # MIT pthreads doesn't seem to have the mutexattr functions.
3235 # But for now we don't check for it. We just assume you aren't
3236 # using MIT pthreads.
3237 cat >> confdefs.h <<\EOF
3238 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3242 # If we're using the Boehm GC, then we happen to know that it
3243 # defines _REENTRANT, so we don't bother. Eww.
3244 if test "$GC" != boehm; then
3245 cat >> confdefs.h <<\EOF
3246 #define _REENTRANT 1
3250 cat >> confdefs.h <<\EOF
3251 #define _POSIX_PTHREAD_SEMANTICS 1
3256 win32)
3257 THREADOBJS=win32-threads.lo
3258 THREADH=win32-threads.h
3261 none)
3262 THREADOBJS=no-threads.lo
3263 THREADH=no-threads.h
3265 esac
3274 if test -d sysdep; then true; else mkdir sysdep; fi
3277 HASH_SYNC_SPEC=
3278 # Hash synchronization is only useful with posix threads right now.
3279 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3280 HASH_SYNC_SPEC=-fhash-synchronization
3281 cat >> confdefs.h <<\EOF
3282 #define JV_HASH_SYNCHRONIZATION 1
3291 if test "$GCC" = yes; then
3292 USING_GCC_TRUE=
3293 USING_GCC_FALSE='#'
3294 else
3295 USING_GCC_TRUE='#'
3296 USING_GCC_FALSE=
3299 CANADIAN=no
3300 NULL_TARGET=no
3301 NATIVE=yes
3303 # We're in the tree with gcc, and need to include some of its headers.
3304 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3306 # Figure out where generated headers like libgcj-config.h get installed.
3307 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3308 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3309 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3310 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3314 if test "x${with_newlib}" = "xyes"; then
3315 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3316 # may not work correctly, because the compiler may not be able to
3317 # link executables.
3319 # We assume newlib. This lets us hard-code the functions we know
3320 # we'll have.
3321 cat >> confdefs.h <<\EOF
3322 #define HAVE_MEMMOVE 1
3325 cat >> confdefs.h <<\EOF
3326 #define HAVE_MEMCPY 1
3329 cat >> confdefs.h <<\EOF
3330 #define HAVE_STRERROR 1
3333 cat >> confdefs.h <<\EOF
3334 #define HAVE_TIME 1
3337 cat >> confdefs.h <<\EOF
3338 #define HAVE_GMTIME_R 1
3341 cat >> confdefs.h <<\EOF
3342 #define HAVE_LOCALTIME_R 1
3345 cat >> confdefs.h <<\EOF
3346 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3349 cat >> confdefs.h <<\EOF
3350 #define HAVE_ALLOCA 1
3354 cat >> confdefs.h <<\EOF
3355 #define NO_GETUID 1
3359 # If Canadian cross, then don't pick up tools from the build
3360 # directory.
3361 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3362 CANADIAN=yes
3363 GCC_UNWIND_INCLUDE=
3364 GCJ="${target_alias}-gcj"
3366 NATIVE=no
3367 else
3368 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3371 echo "configure:3372: checking for $ac_func" >&5
3372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3374 else
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 /* System header to define __stub macros and hopefully few prototypes,
3379 which can conflict with char $ac_func(); below. */
3380 #include <assert.h>
3381 /* Override any gcc2 internal prototype to avoid an error. */
3382 /* We use char because int might match the return type of a gcc2
3383 builtin and then its argument prototype would still apply. */
3384 char $ac_func();
3386 int main() {
3388 /* The GNU C library defines this for functions which it implements
3389 to always fail with ENOSYS. Some functions are actually named
3390 something starting with __ and the normal name is an alias. */
3391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3392 choke me
3393 #else
3394 $ac_func();
3395 #endif
3397 ; return 0; }
3399 if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3400 rm -rf conftest*
3401 eval "ac_cv_func_$ac_func=yes"
3402 else
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3405 rm -rf conftest*
3406 eval "ac_cv_func_$ac_func=no"
3408 rm -f conftest*
3411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3412 echo "$ac_t""yes" 1>&6
3413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3414 cat >> confdefs.h <<EOF
3415 #define $ac_tr_func 1
3418 else
3419 echo "$ac_t""no" 1>&6
3421 done
3423 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3426 echo "configure:3427: checking for $ac_func" >&5
3427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3429 else
3430 cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 /* System header to define __stub macros and hopefully few prototypes,
3434 which can conflict with char $ac_func(); below. */
3435 #include <assert.h>
3436 /* Override any gcc2 internal prototype to avoid an error. */
3437 /* We use char because int might match the return type of a gcc2
3438 builtin and then its argument prototype would still apply. */
3439 char $ac_func();
3441 int main() {
3443 /* The GNU C library defines this for functions which it implements
3444 to always fail with ENOSYS. Some functions are actually named
3445 something starting with __ and the normal name is an alias. */
3446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3447 choke me
3448 #else
3449 $ac_func();
3450 #endif
3452 ; return 0; }
3454 if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3455 rm -rf conftest*
3456 eval "ac_cv_func_$ac_func=yes"
3457 else
3458 echo "configure: failed program was:" >&5
3459 cat conftest.$ac_ext >&5
3460 rm -rf conftest*
3461 eval "ac_cv_func_$ac_func=no"
3463 rm -f conftest*
3466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3467 echo "$ac_t""yes" 1>&6
3468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3469 cat >> confdefs.h <<EOF
3470 #define $ac_tr_func 1
3473 else
3474 echo "$ac_t""no" 1>&6
3476 done
3478 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3481 echo "configure:3482: checking for $ac_func" >&5
3482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3484 else
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 /* System header to define __stub macros and hopefully few prototypes,
3489 which can conflict with char $ac_func(); below. */
3490 #include <assert.h>
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3494 char $ac_func();
3496 int main() {
3498 /* The GNU C library defines this for functions which it implements
3499 to always fail with ENOSYS. Some functions are actually named
3500 something starting with __ and the normal name is an alias. */
3501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3502 choke me
3503 #else
3504 $ac_func();
3505 #endif
3507 ; return 0; }
3509 if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3510 rm -rf conftest*
3511 eval "ac_cv_func_$ac_func=yes"
3512 else
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3515 rm -rf conftest*
3516 eval "ac_cv_func_$ac_func=no"
3518 rm -f conftest*
3521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3522 echo "$ac_t""yes" 1>&6
3523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3524 cat >> confdefs.h <<EOF
3525 #define $ac_tr_func 1
3528 else
3529 echo "$ac_t""no" 1>&6
3531 done
3533 for ac_func in nl_langinfo setlocale
3535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3536 echo "configure:3537: checking for $ac_func" >&5
3537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3539 else
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* System header to define __stub macros and hopefully few prototypes,
3544 which can conflict with char $ac_func(); below. */
3545 #include <assert.h>
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3549 char $ac_func();
3551 int main() {
3553 /* The GNU C library defines this for functions which it implements
3554 to always fail with ENOSYS. Some functions are actually named
3555 something starting with __ and the normal name is an alias. */
3556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3557 choke me
3558 #else
3559 $ac_func();
3560 #endif
3562 ; return 0; }
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3565 rm -rf conftest*
3566 eval "ac_cv_func_$ac_func=yes"
3567 else
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3570 rm -rf conftest*
3571 eval "ac_cv_func_$ac_func=no"
3573 rm -f conftest*
3576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3579 cat >> confdefs.h <<EOF
3580 #define $ac_tr_func 1
3583 else
3584 echo "$ac_t""no" 1>&6
3586 done
3588 for ac_func in inet_aton inet_addr
3590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3591 echo "configure:3592: checking for $ac_func" >&5
3592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3594 else
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 /* System header to define __stub macros and hopefully few prototypes,
3599 which can conflict with char $ac_func(); below. */
3600 #include <assert.h>
3601 /* Override any gcc2 internal prototype to avoid an error. */
3602 /* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3604 char $ac_func();
3606 int main() {
3608 /* The GNU C library defines this for functions which it implements
3609 to always fail with ENOSYS. Some functions are actually named
3610 something starting with __ and the normal name is an alias. */
3611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3612 choke me
3613 #else
3614 $ac_func();
3615 #endif
3617 ; return 0; }
3619 if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3620 rm -rf conftest*
3621 eval "ac_cv_func_$ac_func=yes"
3622 else
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3625 rm -rf conftest*
3626 eval "ac_cv_func_$ac_func=no"
3628 rm -f conftest*
3631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3632 echo "$ac_t""yes" 1>&6
3633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3634 cat >> confdefs.h <<EOF
3635 #define $ac_tr_func 1
3637 break
3638 else
3639 echo "$ac_t""no" 1>&6
3641 done
3643 for ac_func in inet_pton uname inet_ntoa
3645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3646 echo "configure:3647: checking for $ac_func" >&5
3647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3649 else
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* System header to define __stub macros and hopefully few prototypes,
3654 which can conflict with char $ac_func(); below. */
3655 #include <assert.h>
3656 /* Override any gcc2 internal prototype to avoid an error. */
3657 /* We use char because int might match the return type of a gcc2
3658 builtin and then its argument prototype would still apply. */
3659 char $ac_func();
3661 int main() {
3663 /* The GNU C library defines this for functions which it implements
3664 to always fail with ENOSYS. Some functions are actually named
3665 something starting with __ and the normal name is an alias. */
3666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3667 choke me
3668 #else
3669 $ac_func();
3670 #endif
3672 ; return 0; }
3674 if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3675 rm -rf conftest*
3676 eval "ac_cv_func_$ac_func=yes"
3677 else
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3680 rm -rf conftest*
3681 eval "ac_cv_func_$ac_func=no"
3683 rm -f conftest*
3686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3689 cat >> confdefs.h <<EOF
3690 #define $ac_tr_func 1
3693 else
3694 echo "$ac_t""no" 1>&6
3696 done
3698 for ac_func in fork execvp pipe sigaction
3700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3701 echo "configure:3702: checking for $ac_func" >&5
3702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704 else
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* System header to define __stub macros and hopefully few prototypes,
3709 which can conflict with char $ac_func(); below. */
3710 #include <assert.h>
3711 /* Override any gcc2 internal prototype to avoid an error. */
3712 /* We use char because int might match the return type of a gcc2
3713 builtin and then its argument prototype would still apply. */
3714 char $ac_func();
3716 int main() {
3718 /* The GNU C library defines this for functions which it implements
3719 to always fail with ENOSYS. Some functions are actually named
3720 something starting with __ and the normal name is an alias. */
3721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3722 choke me
3723 #else
3724 $ac_func();
3725 #endif
3727 ; return 0; }
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3730 rm -rf conftest*
3731 eval "ac_cv_func_$ac_func=yes"
3732 else
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 rm -rf conftest*
3736 eval "ac_cv_func_$ac_func=no"
3738 rm -f conftest*
3741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3744 cat >> confdefs.h <<EOF
3745 #define $ac_tr_func 1
3748 else
3749 echo "$ac_t""no" 1>&6
3751 done
3753 for ac_hdr in execinfo.h unistd.h dlfcn.h
3755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3757 echo "configure:3758: checking for $ac_hdr" >&5
3758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3760 else
3761 cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 #include <$ac_hdr>
3766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3767 { (eval echo configure:3768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3769 if test -z "$ac_err"; then
3770 rm -rf conftest*
3771 eval "ac_cv_header_$ac_safe=yes"
3772 else
3773 echo "$ac_err" >&5
3774 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3776 rm -rf conftest*
3777 eval "ac_cv_header_$ac_safe=no"
3779 rm -f conftest*
3781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3784 cat >> confdefs.h <<EOF
3785 #define $ac_tr_hdr 1
3788 else
3789 echo "$ac_t""no" 1>&6
3791 done
3793 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
3794 echo "configure:3795: checking for backtrace" >&5
3795 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3797 else
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 /* System header to define __stub macros and hopefully few prototypes,
3802 which can conflict with char backtrace(); below. */
3803 #include <assert.h>
3804 /* Override any gcc2 internal prototype to avoid an error. */
3805 /* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3807 char backtrace();
3809 int main() {
3811 /* The GNU C library defines this for functions which it implements
3812 to always fail with ENOSYS. Some functions are actually named
3813 something starting with __ and the normal name is an alias. */
3814 #if defined (__stub_backtrace) || defined (__stub___backtrace)
3815 choke me
3816 #else
3817 backtrace();
3818 #endif
3820 ; return 0; }
3822 if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3823 rm -rf conftest*
3824 eval "ac_cv_func_backtrace=yes"
3825 else
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 rm -rf conftest*
3829 eval "ac_cv_func_backtrace=no"
3831 rm -f conftest*
3834 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3837 case "$host" in
3838 ia64-*-linux*)
3839 # Has broken backtrace()
3841 s390*-*-linux*)
3842 # Has broken backtrace()
3845 cat >> confdefs.h <<\EOF
3846 #define HAVE_BACKTRACE 1
3850 esac
3852 else
3853 echo "$ac_t""no" 1>&6
3857 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3858 echo "configure:3859: checking for dladdr in -ldl" >&5
3859 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3863 ac_save_LIBS="$LIBS"
3864 LIBS="-ldl $LIBS"
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 /* Override any gcc2 internal prototype to avoid an error. */
3869 /* We use char because int might match the return type of a gcc2
3870 builtin and then its argument prototype would still apply. */
3871 char dladdr();
3873 int main() {
3874 dladdr()
3875 ; return 0; }
3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3878 rm -rf conftest*
3879 eval "ac_cv_lib_$ac_lib_var=yes"
3880 else
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 rm -rf conftest*
3884 eval "ac_cv_lib_$ac_lib_var=no"
3886 rm -f conftest*
3887 LIBS="$ac_save_LIBS"
3890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3891 echo "$ac_t""yes" 1>&6
3893 cat >> confdefs.h <<\EOF
3894 #define HAVE_DLADDR 1
3897 else
3898 echo "$ac_t""no" 1>&6
3901 if test x"$build" = x"$host"; then
3902 for ac_file in /proc/self/exe
3905 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3906 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3907 echo "configure:3908: checking for $ac_file" >&5
3908 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3910 else
3911 if test "$cross_compiling" = yes; then
3912 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3913 else
3914 if test -r $ac_file; then
3915 eval "ac_cv_file_$ac_safe=yes"
3916 else
3917 eval "ac_cv_file_$ac_safe=no"
3921 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3923 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3924 cat >> confdefs.h <<EOF
3925 #define $ac_tr_file 1
3928 cat >> confdefs.h <<\EOF
3929 #define HAVE_PROC_SELF_EXE 1
3932 else
3933 echo "$ac_t""no" 1>&6
3936 done
3938 else
3939 case $host in
3940 *-linux*)
3941 cat >> confdefs.h <<\EOF
3942 #define HAVE_PROC_SELF_EXE 1
3946 esac
3951 am_cv_lib_iconv_ldpath=
3952 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3953 if test "${with_libiconv_prefix+set}" = set; then
3954 withval="$with_libiconv_prefix"
3956 for dir in `echo "$withval" | tr : ' '`; do
3957 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3958 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
3959 done
3964 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3965 echo "configure:3966: checking for iconv" >&5
3966 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3968 else
3970 am_cv_func_iconv="no, consider installing GNU libiconv"
3971 am_cv_lib_iconv=no
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 #include <stdlib.h>
3976 #include <iconv.h>
3977 int main() {
3978 iconv_t cd = iconv_open("","");
3979 iconv(cd,NULL,NULL,NULL,NULL);
3980 iconv_close(cd);
3981 ; return 0; }
3983 if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3984 rm -rf conftest*
3985 am_cv_func_iconv=yes
3986 else
3987 echo "configure: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3990 rm -f conftest*
3991 if test "$am_cv_func_iconv" != yes; then
3992 am_save_LIBS="$LIBS"
3993 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 #include <stdlib.h>
3998 #include <iconv.h>
3999 int main() {
4000 iconv_t cd = iconv_open("","");
4001 iconv(cd,NULL,NULL,NULL,NULL);
4002 iconv_close(cd);
4003 ; return 0; }
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006 rm -rf conftest*
4007 am_cv_lib_iconv=yes
4008 am_cv_func_iconv=yes
4009 else
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4013 rm -f conftest*
4014 LIBS="$am_save_LIBS"
4019 echo "$ac_t""$am_cv_func_iconv" 1>&6
4020 if test "$am_cv_func_iconv" = yes; then
4021 cat >> confdefs.h <<\EOF
4022 #define HAVE_ICONV 1
4025 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4026 echo "configure:4027: checking for iconv declaration" >&5
4027 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4029 else
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4035 #include <stdlib.h>
4036 #include <iconv.h>
4037 extern
4038 #ifdef __cplusplus
4040 #endif
4041 #if defined(__STDC__) || defined(__cplusplus)
4042 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4043 #else
4044 size_t iconv();
4045 #endif
4047 int main() {
4049 ; return 0; }
4051 if { (eval echo configure:4052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4052 rm -rf conftest*
4053 am_cv_proto_iconv_arg1=""
4054 else
4055 echo "configure: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4057 rm -rf conftest*
4058 am_cv_proto_iconv_arg1="const"
4060 rm -f conftest*
4061 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4064 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4065 echo "$ac_t""${ac_t:-
4066 }$am_cv_proto_iconv" 1>&6
4067 cat >> confdefs.h <<EOF
4068 #define ICONV_CONST $am_cv_proto_iconv_arg1
4072 LIBICONV=
4073 if test "$am_cv_lib_iconv" = yes; then
4074 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
4078 if test $ac_cv_header_locale_h = yes; then
4079 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4080 echo "configure:4081: checking for LC_MESSAGES" >&5
4081 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4083 else
4084 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 #include <locale.h>
4088 int main() {
4089 return LC_MESSAGES
4090 ; return 0; }
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 rm -rf conftest*
4094 am_cv_val_LC_MESSAGES=yes
4095 else
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4098 rm -rf conftest*
4099 am_cv_val_LC_MESSAGES=no
4101 rm -f conftest*
4104 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4105 if test $am_cv_val_LC_MESSAGES = yes; then
4106 cat >> confdefs.h <<\EOF
4107 #define HAVE_LC_MESSAGES 1
4112 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4113 echo "configure:4114: checking whether struct tm is in sys/time.h or time.h" >&5
4114 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4116 else
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 #include <sys/types.h>
4121 #include <time.h>
4122 int main() {
4123 struct tm *tp; tp->tm_sec;
4124 ; return 0; }
4126 if { (eval echo configure:4127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4127 rm -rf conftest*
4128 ac_cv_struct_tm=time.h
4129 else
4130 echo "configure: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4132 rm -rf conftest*
4133 ac_cv_struct_tm=sys/time.h
4135 rm -f conftest*
4138 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4139 if test $ac_cv_struct_tm = sys/time.h; then
4140 cat >> confdefs.h <<\EOF
4141 #define TM_IN_SYS_TIME 1
4146 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4147 echo "configure:4148: checking for tm_zone in struct tm" >&5
4148 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4150 else
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 #include <sys/types.h>
4155 #include <$ac_cv_struct_tm>
4156 int main() {
4157 struct tm tm; tm.tm_zone;
4158 ; return 0; }
4160 if { (eval echo configure:4161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4161 rm -rf conftest*
4162 ac_cv_struct_tm_zone=yes
4163 else
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4166 rm -rf conftest*
4167 ac_cv_struct_tm_zone=no
4169 rm -f conftest*
4172 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4173 if test "$ac_cv_struct_tm_zone" = yes; then
4174 cat >> confdefs.h <<\EOF
4175 #define HAVE_TM_ZONE 1
4178 else
4179 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4180 echo "configure:4181: checking for tzname" >&5
4181 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4183 else
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 #include <time.h>
4188 #ifndef tzname /* For SGI. */
4189 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4190 #endif
4191 int main() {
4192 atoi(*tzname);
4193 ; return 0; }
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 rm -rf conftest*
4197 ac_cv_var_tzname=yes
4198 else
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 rm -rf conftest*
4202 ac_cv_var_tzname=no
4204 rm -f conftest*
4207 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4208 if test $ac_cv_var_tzname = yes; then
4209 cat >> confdefs.h <<\EOF
4210 #define HAVE_TZNAME 1
4217 for ac_func in gethostbyname_r
4219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4220 echo "configure:4221: checking for $ac_func" >&5
4221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4223 else
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* System header to define __stub macros and hopefully few prototypes,
4228 which can conflict with char $ac_func(); below. */
4229 #include <assert.h>
4230 /* Override any gcc2 internal prototype to avoid an error. */
4231 /* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4233 char $ac_func();
4235 int main() {
4237 /* The GNU C library defines this for functions which it implements
4238 to always fail with ENOSYS. Some functions are actually named
4239 something starting with __ and the normal name is an alias. */
4240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4241 choke me
4242 #else
4243 $ac_func();
4244 #endif
4246 ; return 0; }
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249 rm -rf conftest*
4250 eval "ac_cv_func_$ac_func=yes"
4251 else
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4254 rm -rf conftest*
4255 eval "ac_cv_func_$ac_func=no"
4257 rm -f conftest*
4260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4263 cat >> confdefs.h <<EOF
4264 #define $ac_tr_func 1
4267 cat >> confdefs.h <<\EOF
4268 #define HAVE_GETHOSTBYNAME_R 1
4271 # There are two different kinds of gethostbyname_r.
4272 # We look for the one that returns `int'.
4273 # Hopefully this check is robust enough.
4274 cat > conftest.$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4277 #include <netdb.h>
4279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4280 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
4281 rm -rf conftest*
4283 cat >> confdefs.h <<\EOF
4284 #define GETHOSTBYNAME_R_RETURNS_INT 1
4288 rm -f conftest*
4291 case " $GCINCS " in
4292 *" -D_REENTRANT "*) ;;
4294 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4295 echo "configure:4296: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4296 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4298 else
4300 ac_ext=C
4301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4302 ac_cpp='$CXXCPP $CPPFLAGS'
4303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4305 cross_compiling=$ac_cv_prog_cxx_cross
4307 cat > conftest.$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 #include <netdb.h>
4311 int main() {
4312 gethostbyname_r("", 0, 0);
4313 ; return 0; }
4315 if { (eval echo configure:4316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4316 rm -rf conftest*
4317 libjava_cv_gethostbyname_r_needs_reentrant=no
4318 else
4319 echo "configure: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 rm -rf conftest*
4322 CPPFLAGS_SAVE="$CPPFLAGS"
4323 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 #include <netdb.h>
4328 int main() {
4329 gethostbyname_r("", 0, 0);
4330 ; return 0; }
4332 if { (eval echo configure:4333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4333 rm -rf conftest*
4334 libjava_cv_gethostbyname_r_needs_reentrant=yes
4335 else
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4338 rm -rf conftest*
4339 libjava_cv_gethostbyname_r_needs_reentrant=fail
4341 rm -f conftest*
4342 CPPFLAGS="$CPPFLAGS_SAVE"
4345 rm -f conftest*
4346 ac_ext=c
4347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4351 cross_compiling=$ac_cv_prog_cc_cross
4356 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4357 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4358 cat >> confdefs.h <<\EOF
4359 #define _REENTRANT 1
4364 esac
4366 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4367 echo "configure:4368: checking for struct hostent_data" >&5
4368 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4370 else
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4375 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4376 # define _REENTRANT 1
4377 #endif
4378 #include <netdb.h>
4379 int main() {
4380 struct hostent_data data;
4381 ; return 0; }
4383 if { (eval echo configure:4384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4384 rm -rf conftest*
4385 libjava_cv_struct_hostent_data=yes
4386 else
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4389 rm -rf conftest*
4390 libjava_cv_struct_hostent_data=no
4392 rm -f conftest*
4395 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4396 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4397 cat >> confdefs.h <<\EOF
4398 #define HAVE_STRUCT_HOSTENT_DATA 1
4403 else
4404 echo "$ac_t""no" 1>&6
4406 done
4409 # FIXME: libjava source code expects to find a prototype for
4410 # gethostbyaddr_r in netdb.h. The outer check ensures that
4411 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4412 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4413 # linkage check is enough, yet C++ code requires proper prototypes.)
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 #include <netdb.h>
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
4421 rm -rf conftest*
4423 for ac_func in gethostbyaddr_r
4425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4426 echo "configure:4427: checking for $ac_func" >&5
4427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4429 else
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 /* System header to define __stub macros and hopefully few prototypes,
4434 which can conflict with char $ac_func(); below. */
4435 #include <assert.h>
4436 /* Override any gcc2 internal prototype to avoid an error. */
4437 /* We use char because int might match the return type of a gcc2
4438 builtin and then its argument prototype would still apply. */
4439 char $ac_func();
4441 int main() {
4443 /* The GNU C library defines this for functions which it implements
4444 to always fail with ENOSYS. Some functions are actually named
4445 something starting with __ and the normal name is an alias. */
4446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4447 choke me
4448 #else
4449 $ac_func();
4450 #endif
4452 ; return 0; }
4454 if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4455 rm -rf conftest*
4456 eval "ac_cv_func_$ac_func=yes"
4457 else
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4460 rm -rf conftest*
4461 eval "ac_cv_func_$ac_func=no"
4463 rm -f conftest*
4466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4467 echo "$ac_t""yes" 1>&6
4468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4469 cat >> confdefs.h <<EOF
4470 #define $ac_tr_func 1
4473 cat >> confdefs.h <<\EOF
4474 #define HAVE_GETHOSTBYADDR_R 1
4477 # There are two different kinds of gethostbyaddr_r.
4478 # We look for the one that returns `int'.
4479 # Hopefully this check is robust enough.
4480 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 #include <netdb.h>
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4487 rm -rf conftest*
4489 cat >> confdefs.h <<\EOF
4490 #define GETHOSTBYADDR_R_RETURNS_INT 1
4494 rm -f conftest*
4496 else
4497 echo "$ac_t""no" 1>&6
4499 done
4502 rm -f conftest*
4505 for ac_func in gethostname
4507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4508 echo "configure:4509: checking for $ac_func" >&5
4509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4511 else
4512 cat > conftest.$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4515 /* System header to define __stub macros and hopefully few prototypes,
4516 which can conflict with char $ac_func(); below. */
4517 #include <assert.h>
4518 /* Override any gcc2 internal prototype to avoid an error. */
4519 /* We use char because int might match the return type of a gcc2
4520 builtin and then its argument prototype would still apply. */
4521 char $ac_func();
4523 int main() {
4525 /* The GNU C library defines this for functions which it implements
4526 to always fail with ENOSYS. Some functions are actually named
4527 something starting with __ and the normal name is an alias. */
4528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4529 choke me
4530 #else
4531 $ac_func();
4532 #endif
4534 ; return 0; }
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4537 rm -rf conftest*
4538 eval "ac_cv_func_$ac_func=yes"
4539 else
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4542 rm -rf conftest*
4543 eval "ac_cv_func_$ac_func=no"
4545 rm -f conftest*
4548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6
4550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4551 cat >> confdefs.h <<EOF
4552 #define $ac_tr_func 1
4555 cat >> confdefs.h <<\EOF
4556 #define HAVE_GETHOSTNAME 1
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4562 #include <unistd.h>
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 egrep "gethostname" >/dev/null 2>&1; then
4566 rm -rf conftest*
4568 cat >> confdefs.h <<\EOF
4569 #define HAVE_GETHOSTNAME_DECL 1
4573 rm -f conftest*
4575 else
4576 echo "$ac_t""no" 1>&6
4578 done
4581 # Look for these functions in the thread library, but only bother
4582 # if using POSIX threads.
4583 if test "$THREADS" = posix; then
4584 save_LIBS="$LIBS"
4585 LIBS="$LIBS $THREADLIBS"
4586 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4587 # E.g., Solaris.
4588 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_func" >&5
4592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4594 else
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 /* System header to define __stub macros and hopefully few prototypes,
4599 which can conflict with char $ac_func(); below. */
4600 #include <assert.h>
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 /* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4604 char $ac_func();
4606 int main() {
4608 /* The GNU C library defines this for functions which it implements
4609 to always fail with ENOSYS. Some functions are actually named
4610 something starting with __ and the normal name is an alias. */
4611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4612 choke me
4613 #else
4614 $ac_func();
4615 #endif
4617 ; return 0; }
4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4620 rm -rf conftest*
4621 eval "ac_cv_func_$ac_func=yes"
4622 else
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4625 rm -rf conftest*
4626 eval "ac_cv_func_$ac_func=no"
4628 rm -f conftest*
4631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4634 cat >> confdefs.h <<EOF
4635 #define $ac_tr_func 1
4638 else
4639 echo "$ac_t""no" 1>&6
4641 done
4644 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4645 # Solaris 7 the name librt is preferred.
4646 for ac_func in sched_yield
4648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_func" >&5
4650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4652 else
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 /* System header to define __stub macros and hopefully few prototypes,
4657 which can conflict with char $ac_func(); below. */
4658 #include <assert.h>
4659 /* Override any gcc2 internal prototype to avoid an error. */
4660 /* We use char because int might match the return type of a gcc2
4661 builtin and then its argument prototype would still apply. */
4662 char $ac_func();
4664 int main() {
4666 /* The GNU C library defines this for functions which it implements
4667 to always fail with ENOSYS. Some functions are actually named
4668 something starting with __ and the normal name is an alias. */
4669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4670 choke me
4671 #else
4672 $ac_func();
4673 #endif
4675 ; return 0; }
4677 if { (eval echo configure:4678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4678 rm -rf conftest*
4679 eval "ac_cv_func_$ac_func=yes"
4680 else
4681 echo "configure: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4683 rm -rf conftest*
4684 eval "ac_cv_func_$ac_func=no"
4686 rm -f conftest*
4689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4692 cat >> confdefs.h <<EOF
4693 #define $ac_tr_func 1
4696 else
4697 echo "$ac_t""no" 1>&6
4698 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4699 echo "configure:4700: checking for sched_yield in -lrt" >&5
4700 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4703 else
4704 ac_save_LIBS="$LIBS"
4705 LIBS="-lrt $LIBS"
4706 cat > conftest.$ac_ext <<EOF
4707 #line 4708 "configure"
4708 #include "confdefs.h"
4709 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4712 char sched_yield();
4714 int main() {
4715 sched_yield()
4716 ; return 0; }
4718 if { (eval echo configure:4719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4719 rm -rf conftest*
4720 eval "ac_cv_lib_$ac_lib_var=yes"
4721 else
4722 echo "configure: failed program was:" >&5
4723 cat conftest.$ac_ext >&5
4724 rm -rf conftest*
4725 eval "ac_cv_lib_$ac_lib_var=no"
4727 rm -f conftest*
4728 LIBS="$ac_save_LIBS"
4731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6
4734 cat >> confdefs.h <<\EOF
4735 #define HAVE_SCHED_YIELD 1
4738 THREADLIBS="$THREADLIBS -lrt"
4739 THREADSPEC="$THREADSPEC -lrt"
4740 else
4741 echo "$ac_t""no" 1>&6
4743 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4744 echo "configure:4745: checking for sched_yield in -lposix4" >&5
4745 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4748 else
4749 ac_save_LIBS="$LIBS"
4750 LIBS="-lposix4 $LIBS"
4751 cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 /* Override any gcc2 internal prototype to avoid an error. */
4755 /* We use char because int might match the return type of a gcc2
4756 builtin and then its argument prototype would still apply. */
4757 char sched_yield();
4759 int main() {
4760 sched_yield()
4761 ; return 0; }
4763 if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 rm -rf conftest*
4765 eval "ac_cv_lib_$ac_lib_var=yes"
4766 else
4767 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4769 rm -rf conftest*
4770 eval "ac_cv_lib_$ac_lib_var=no"
4772 rm -f conftest*
4773 LIBS="$ac_save_LIBS"
4776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4779 cat >> confdefs.h <<\EOF
4780 #define HAVE_SCHED_YIELD 1
4783 THREADLIBS="$THREADLIBS -lposix4"
4784 THREADSPEC="$THREADSPEC -lposix4"
4785 else
4786 echo "$ac_t""no" 1>&6
4792 done
4794 LIBS="$save_LIBS"
4796 # We can save a little space at runtime if the mutex has m_count
4797 # or __m_count. This is a nice hack for Linux.
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 #include <pthread.h>
4802 int main() {
4804 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4806 ; return 0; }
4808 if { (eval echo configure:4809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4809 rm -rf conftest*
4810 cat >> confdefs.h <<\EOF
4811 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4814 else
4815 echo "configure: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 rm -rf conftest*
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 #include <pthread.h>
4823 int main() {
4825 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4827 ; return 0; }
4829 if { (eval echo configure:4830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4830 rm -rf conftest*
4831 cat >> confdefs.h <<\EOF
4832 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4835 else
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4839 rm -f conftest*
4841 rm -f conftest*
4844 # We require a way to get the time.
4845 time_found=no
4846 for ac_func in gettimeofday time ftime
4848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4849 echo "configure:4850: checking for $ac_func" >&5
4850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4852 else
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4856 /* System header to define __stub macros and hopefully few prototypes,
4857 which can conflict with char $ac_func(); below. */
4858 #include <assert.h>
4859 /* Override any gcc2 internal prototype to avoid an error. */
4860 /* We use char because int might match the return type of a gcc2
4861 builtin and then its argument prototype would still apply. */
4862 char $ac_func();
4864 int main() {
4866 /* The GNU C library defines this for functions which it implements
4867 to always fail with ENOSYS. Some functions are actually named
4868 something starting with __ and the normal name is an alias. */
4869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4870 choke me
4871 #else
4872 $ac_func();
4873 #endif
4875 ; return 0; }
4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4878 rm -rf conftest*
4879 eval "ac_cv_func_$ac_func=yes"
4880 else
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 rm -rf conftest*
4884 eval "ac_cv_func_$ac_func=no"
4886 rm -f conftest*
4889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4892 cat >> confdefs.h <<EOF
4893 #define $ac_tr_func 1
4895 time_found=yes
4896 else
4897 echo "$ac_t""no" 1>&6
4899 done
4901 if test "$time_found" = no; then
4902 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4905 for ac_func in memmove
4907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4908 echo "configure:4909: checking for $ac_func" >&5
4909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4911 else
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 /* System header to define __stub macros and hopefully few prototypes,
4916 which can conflict with char $ac_func(); below. */
4917 #include <assert.h>
4918 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char $ac_func();
4923 int main() {
4925 /* The GNU C library defines this for functions which it implements
4926 to always fail with ENOSYS. Some functions are actually named
4927 something starting with __ and the normal name is an alias. */
4928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4929 choke me
4930 #else
4931 $ac_func();
4932 #endif
4934 ; return 0; }
4936 if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4937 rm -rf conftest*
4938 eval "ac_cv_func_$ac_func=yes"
4939 else
4940 echo "configure: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
4942 rm -rf conftest*
4943 eval "ac_cv_func_$ac_func=no"
4945 rm -f conftest*
4948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4949 echo "$ac_t""yes" 1>&6
4950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4951 cat >> confdefs.h <<EOF
4952 #define $ac_tr_func 1
4955 else
4956 echo "$ac_t""no" 1>&6
4958 done
4961 # We require memcpy.
4962 memcpy_found=no
4963 for ac_func in memcpy
4965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4966 echo "configure:4967: checking for $ac_func" >&5
4967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4968 echo $ac_n "(cached) $ac_c" 1>&6
4969 else
4970 cat > conftest.$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4973 /* System header to define __stub macros and hopefully few prototypes,
4974 which can conflict with char $ac_func(); below. */
4975 #include <assert.h>
4976 /* Override any gcc2 internal prototype to avoid an error. */
4977 /* We use char because int might match the return type of a gcc2
4978 builtin and then its argument prototype would still apply. */
4979 char $ac_func();
4981 int main() {
4983 /* The GNU C library defines this for functions which it implements
4984 to always fail with ENOSYS. Some functions are actually named
4985 something starting with __ and the normal name is an alias. */
4986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4987 choke me
4988 #else
4989 $ac_func();
4990 #endif
4992 ; return 0; }
4994 if { (eval echo configure:4995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4995 rm -rf conftest*
4996 eval "ac_cv_func_$ac_func=yes"
4997 else
4998 echo "configure: failed program was:" >&5
4999 cat conftest.$ac_ext >&5
5000 rm -rf conftest*
5001 eval "ac_cv_func_$ac_func=no"
5003 rm -f conftest*
5006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5007 echo "$ac_t""yes" 1>&6
5008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5009 cat >> confdefs.h <<EOF
5010 #define $ac_tr_func 1
5012 memcpy_found=yes
5013 else
5014 echo "$ac_t""no" 1>&6
5016 done
5018 if test "$memcpy_found" = no; then
5019 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
5022 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5023 echo "configure:5024: checking for dlopen in -ldl" >&5
5024 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
5027 else
5028 ac_save_LIBS="$LIBS"
5029 LIBS="-ldl $LIBS"
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5033 /* Override any gcc2 internal prototype to avoid an error. */
5034 /* We use char because int might match the return type of a gcc2
5035 builtin and then its argument prototype would still apply. */
5036 char dlopen();
5038 int main() {
5039 dlopen()
5040 ; return 0; }
5042 if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5043 rm -rf conftest*
5044 eval "ac_cv_lib_$ac_lib_var=yes"
5045 else
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5048 rm -rf conftest*
5049 eval "ac_cv_lib_$ac_lib_var=no"
5051 rm -f conftest*
5052 LIBS="$ac_save_LIBS"
5055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5056 echo "$ac_t""yes" 1>&6
5058 cat >> confdefs.h <<\EOF
5059 #define HAVE_DLOPEN 1
5062 else
5063 echo "$ac_t""no" 1>&6
5067 # Some library-finding code we stole from Tcl.
5068 #--------------------------------------------------------------------
5069 # Check for the existence of the -lsocket and -lnsl libraries.
5070 # The order here is important, so that they end up in the right
5071 # order in the command line generated by make. Here are some
5072 # special considerations:
5073 # 1. Use "connect" and "accept" to check for -lsocket, and
5074 # "gethostbyname" to check for -lnsl.
5075 # 2. Use each function name only once: can't redo a check because
5076 # autoconf caches the results of the last check and won't redo it.
5077 # 3. Use -lnsl and -lsocket only if they supply procedures that
5078 # aren't already present in the normal libraries. This is because
5079 # IRIX 5.2 has libraries, but they aren't needed and they're
5080 # bogus: they goof up name resolution if used.
5081 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5082 # To get around this problem, check for both libraries together
5083 # if -lsocket doesn't work by itself.
5084 #--------------------------------------------------------------------
5086 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
5087 echo "configure:5088: checking for socket libraries" >&5
5088 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5090 else
5091 gcj_cv_lib_sockets=
5092 gcj_checkBoth=0
5093 unset ac_cv_func_connect
5094 echo $ac_n "checking for connect""... $ac_c" 1>&6
5095 echo "configure:5096: checking for connect" >&5
5096 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5098 else
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 /* System header to define __stub macros and hopefully few prototypes,
5103 which can conflict with char connect(); below. */
5104 #include <assert.h>
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5108 char connect();
5110 int main() {
5112 /* The GNU C library defines this for functions which it implements
5113 to always fail with ENOSYS. Some functions are actually named
5114 something starting with __ and the normal name is an alias. */
5115 #if defined (__stub_connect) || defined (__stub___connect)
5116 choke me
5117 #else
5118 connect();
5119 #endif
5121 ; return 0; }
5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5124 rm -rf conftest*
5125 eval "ac_cv_func_connect=yes"
5126 else
5127 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5129 rm -rf conftest*
5130 eval "ac_cv_func_connect=no"
5132 rm -f conftest*
5135 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5136 echo "$ac_t""yes" 1>&6
5137 gcj_checkSocket=0
5138 else
5139 echo "$ac_t""no" 1>&6
5140 gcj_checkSocket=1
5143 if test "$gcj_checkSocket" = 1; then
5144 unset ac_cv_func_connect
5145 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5146 echo "configure:5147: checking for main in -lsocket" >&5
5147 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5150 else
5151 ac_save_LIBS="$LIBS"
5152 LIBS="-lsocket $LIBS"
5153 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5157 int main() {
5158 main()
5159 ; return 0; }
5161 if { (eval echo configure:5162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5162 rm -rf conftest*
5163 eval "ac_cv_lib_$ac_lib_var=yes"
5164 else
5165 echo "configure: failed program was:" >&5
5166 cat conftest.$ac_ext >&5
5167 rm -rf conftest*
5168 eval "ac_cv_lib_$ac_lib_var=no"
5170 rm -f conftest*
5171 LIBS="$ac_save_LIBS"
5174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5175 echo "$ac_t""yes" 1>&6
5176 gcj_cv_lib_sockets="-lsocket"
5177 else
5178 echo "$ac_t""no" 1>&6
5179 gcj_checkBoth=1
5183 if test "$gcj_checkBoth" = 1; then
5184 gcj_oldLibs=$LIBS
5185 LIBS="$LIBS -lsocket -lnsl"
5186 unset ac_cv_func_accept
5187 echo $ac_n "checking for accept""... $ac_c" 1>&6
5188 echo "configure:5189: checking for accept" >&5
5189 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5191 else
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195 /* System header to define __stub macros and hopefully few prototypes,
5196 which can conflict with char accept(); below. */
5197 #include <assert.h>
5198 /* Override any gcc2 internal prototype to avoid an error. */
5199 /* We use char because int might match the return type of a gcc2
5200 builtin and then its argument prototype would still apply. */
5201 char accept();
5203 int main() {
5205 /* The GNU C library defines this for functions which it implements
5206 to always fail with ENOSYS. Some functions are actually named
5207 something starting with __ and the normal name is an alias. */
5208 #if defined (__stub_accept) || defined (__stub___accept)
5209 choke me
5210 #else
5211 accept();
5212 #endif
5214 ; return 0; }
5216 if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5217 rm -rf conftest*
5218 eval "ac_cv_func_accept=yes"
5219 else
5220 echo "configure: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 rm -rf conftest*
5223 eval "ac_cv_func_accept=no"
5225 rm -f conftest*
5228 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5230 gcj_checkNsl=0
5231 gcj_cv_lib_sockets="-lsocket -lnsl"
5232 else
5233 echo "$ac_t""no" 1>&6
5236 unset ac_cv_func_accept
5237 LIBS=$gcj_oldLibs
5239 unset ac_cv_func_gethostbyname
5240 gcj_oldLibs=$LIBS
5241 LIBS="$LIBS $gcj_cv_lib_sockets"
5242 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5243 echo "configure:5244: checking for gethostbyname" >&5
5244 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5246 else
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250 /* System header to define __stub macros and hopefully few prototypes,
5251 which can conflict with char gethostbyname(); below. */
5252 #include <assert.h>
5253 /* Override any gcc2 internal prototype to avoid an error. */
5254 /* We use char because int might match the return type of a gcc2
5255 builtin and then its argument prototype would still apply. */
5256 char gethostbyname();
5258 int main() {
5260 /* The GNU C library defines this for functions which it implements
5261 to always fail with ENOSYS. Some functions are actually named
5262 something starting with __ and the normal name is an alias. */
5263 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5264 choke me
5265 #else
5266 gethostbyname();
5267 #endif
5269 ; return 0; }
5271 if { (eval echo configure:5272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5272 rm -rf conftest*
5273 eval "ac_cv_func_gethostbyname=yes"
5274 else
5275 echo "configure: failed program was:" >&5
5276 cat conftest.$ac_ext >&5
5277 rm -rf conftest*
5278 eval "ac_cv_func_gethostbyname=no"
5280 rm -f conftest*
5283 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5284 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5289 echo "configure:5290: checking for main in -lnsl" >&5
5290 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5293 else
5294 ac_save_LIBS="$LIBS"
5295 LIBS="-lnsl $LIBS"
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5300 int main() {
5301 main()
5302 ; return 0; }
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5305 rm -rf conftest*
5306 eval "ac_cv_lib_$ac_lib_var=yes"
5307 else
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5310 rm -rf conftest*
5311 eval "ac_cv_lib_$ac_lib_var=no"
5313 rm -f conftest*
5314 LIBS="$ac_save_LIBS"
5317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5319 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5320 else
5321 echo "$ac_t""no" 1>&6
5326 unset ac_cv_func_gethostbyname
5327 LIBS=$gcj_oldLIBS
5331 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5332 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5334 if test "$with_system_zlib" = yes; then
5335 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5336 echo "configure:5337: checking for deflate in -lz" >&5
5337 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5340 else
5341 ac_save_LIBS="$LIBS"
5342 LIBS="-lz $LIBS"
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5346 /* Override any gcc2 internal prototype to avoid an error. */
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5349 char deflate();
5351 int main() {
5352 deflate()
5353 ; return 0; }
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356 rm -rf conftest*
5357 eval "ac_cv_lib_$ac_lib_var=yes"
5358 else
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 rm -rf conftest*
5362 eval "ac_cv_lib_$ac_lib_var=no"
5364 rm -f conftest*
5365 LIBS="$ac_save_LIBS"
5368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5369 echo "$ac_t""yes" 1>&6
5370 ZLIBSPEC=-lz
5371 else
5372 echo "$ac_t""no" 1>&6
5373 ZLIBSPEC=
5378 # On Solaris, and maybe other architectures, the Boehm collector
5379 # requires -ldl.
5380 if test "$GC" = boehm; then
5381 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5382 echo "configure:5383: checking for main in -ldl" >&5
5383 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5386 else
5387 ac_save_LIBS="$LIBS"
5388 LIBS="-ldl $LIBS"
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5393 int main() {
5394 main()
5395 ; return 0; }
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5398 rm -rf conftest*
5399 eval "ac_cv_lib_$ac_lib_var=yes"
5400 else
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5403 rm -rf conftest*
5404 eval "ac_cv_lib_$ac_lib_var=no"
5406 rm -f conftest*
5407 LIBS="$ac_save_LIBS"
5410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5411 echo "$ac_t""yes" 1>&6
5412 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5413 else
5414 echo "$ac_t""no" 1>&6
5419 if test -z "${with_multisubdir}"; then
5420 builddotdot=.
5421 else
5423 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5426 if test -x "${builddotdot}/../../gcc/gcj"; then
5427 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
5428 GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
5429 else
5430 CANADIAN=yes
5431 NULL_TARGET=yes
5432 GCJ="gcj -B`${PWDCMD-pwd}`/"
5436 # Create it, so that compile/link tests don't fail
5437 test -f libgcj.spec || touch libgcj.spec
5439 # We must search the source tree for java.lang, since we still don't
5440 # have libgcj.jar nor java/lang/*.class
5441 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5442 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
5444 # Since some classes depend on this one, we need its source available
5445 # before we can do any GCJ compilation test :-(
5446 if test ! -f gnu/classpath/Configuration.java; then
5447 test -d gnu || mkdir gnu
5448 test -d gnu/classpath || mkdir gnu/classpath
5449 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5450 < $srcdir/gnu/classpath/Configuration.java.in \
5451 > gnu/classpath/Configuration.java
5452 # We do not want to redirect the output of the grep below to /dev/null,
5453 # but we add /dev/null to the input list so that grep will print the
5454 # filename of Configuration.java in case it finds any matches.
5455 if grep @ gnu/classpath/Configuration.java /dev/null; then
5456 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5460 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5463 echo "configure:5464: checking for $ac_word" >&5
5464 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5466 else
5467 if test -n "$GCJ"; then
5468 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5469 else
5470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5471 ac_dummy="$PATH"
5472 for ac_dir in $ac_dummy; do
5473 test -z "$ac_dir" && ac_dir=.
5474 if test -f $ac_dir/$ac_word; then
5475 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5476 break
5478 done
5479 IFS="$ac_save_ifs"
5482 GCJ="$ac_cv_prog_GCJ"
5483 if test -n "$GCJ"; then
5484 echo "$ac_t""$GCJ" 1>&6
5485 else
5486 echo "$ac_t""no" 1>&6
5490 if test -z "$ac_cv_prog_GCJ"; then
5491 if test -n "$ac_tool_prefix"; then
5492 # Extract the first word of "gcj", so it can be a program name with args.
5493 set dummy gcj; ac_word=$2
5494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5495 echo "configure:5496: checking for $ac_word" >&5
5496 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5498 else
5499 if test -n "$GCJ"; then
5500 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5501 else
5502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5503 ac_dummy="$PATH"
5504 for ac_dir in $ac_dummy; do
5505 test -z "$ac_dir" && ac_dir=.
5506 if test -f $ac_dir/$ac_word; then
5507 ac_cv_prog_GCJ="gcj"
5508 break
5510 done
5511 IFS="$ac_save_ifs"
5512 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5515 GCJ="$ac_cv_prog_GCJ"
5516 if test -n "$GCJ"; then
5517 echo "$ac_t""$GCJ" 1>&6
5518 else
5519 echo "$ac_t""no" 1>&6
5522 else
5523 GCJ="no"
5527 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5531 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5532 lt_save_CC="$CC"
5533 lt_save_CFLAGS="$CFLAGS"
5534 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5535 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5536 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5537 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5538 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5539 deplibs_check_method="$deplibs_check_method" \
5540 file_magic_cmd="$file_magic_cmd" \
5541 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5542 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5543 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5544 CC="$lt_save_CC"
5545 CFLAGS="$lt_save_CFLAGS"
5547 # Redirect the config.log output again, so that the ltconfig log is not
5548 # clobbered by the next message.
5549 exec 5>>./config.log
5554 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5556 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5557 echo "configure:5558: checking size of void *" >&5
5558 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5560 else
5561 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5562 cat > conftest.$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5565 #include "confdefs.h"
5566 #include <sys/types.h>
5569 int main() {
5570 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5571 ; return 0; }
5573 if { (eval echo configure:5574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5574 rm -rf conftest*
5575 ac_cv_sizeof_void_p=$ac_size
5576 else
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5580 rm -f conftest*
5581 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5582 done
5586 if test x$ac_cv_sizeof_void_p = x ; then
5587 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
5589 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5590 cat >> confdefs.h <<EOF
5591 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5596 ZLIBS=
5597 SYS_ZLIBS=
5598 ZINCS=
5600 if test -z "$ZLIBSPEC"; then
5601 # Use zlib from the GCC tree.
5602 ZINCS='-I$(top_srcdir)/../zlib'
5603 ZLIBS=../zlib/libzgcj_convenience.la
5604 else
5605 # System's zlib.
5606 SYS_ZLIBS="$ZLIBSPEC"
5617 if test "$CANADIAN" = yes; then
5618 CANADIAN_TRUE=
5619 CANADIAN_FALSE='#'
5620 else
5621 CANADIAN_TRUE='#'
5622 CANADIAN_FALSE=
5626 if test "$NULL_TARGET" = yes; then
5627 NULL_TARGET_TRUE=
5628 NULL_TARGET_FALSE='#'
5629 else
5630 NULL_TARGET_TRUE='#'
5631 NULL_TARGET_FALSE=
5635 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5636 NATIVE_TRUE=
5637 NATIVE_FALSE='#'
5638 else
5639 NATIVE_TRUE='#'
5640 NATIVE_FALSE=
5644 if test -z "$with_cross_host"; then
5645 USE_LIBDIR_TRUE=
5646 USE_LIBDIR_FALSE='#'
5647 else
5648 USE_LIBDIR_TRUE='#'
5649 USE_LIBDIR_FALSE=
5653 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5654 NEEDS_DATA_START_TRUE=
5655 NEEDS_DATA_START_FALSE='#'
5656 else
5657 NEEDS_DATA_START_TRUE='#'
5658 NEEDS_DATA_START_FALSE=
5664 # Determine gcj version number.
5666 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5668 GCJVERSION=$gcjversion
5670 cat >> confdefs.h <<EOF
5671 #define GCJVERSION "$GCJVERSION"
5675 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5676 echo "configure:5677: checking for g++ -ffloat-store bug" >&5
5677 save_CFLAGS="$CFLAGS"
5678 CFLAGS="-x c++ -O2 -ffloat-store"
5679 cat > conftest.$ac_ext <<EOF
5680 #line 5681 "configure"
5681 #include "confdefs.h"
5682 #include <math.h>
5683 int main() {
5685 ; return 0; }
5687 if { (eval echo configure:5688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5688 rm -rf conftest*
5689 echo "$ac_t""no" 1>&6
5690 else
5691 echo "configure: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5693 rm -rf conftest*
5694 cat >> confdefs.h <<\EOF
5695 #define __NO_MATH_INLINES 1
5698 echo "$ac_t""yes" 1>&6
5700 rm -f conftest*
5701 CFLAGS="$save_CFLAGS"
5703 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 stdint.h langinfo.h locale.h
5705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5707 echo "configure:5708: checking for $ac_hdr" >&5
5708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5710 else
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 #include <$ac_hdr>
5716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5717 { (eval echo configure:5718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5719 if test -z "$ac_err"; then
5720 rm -rf conftest*
5721 eval "ac_cv_header_$ac_safe=yes"
5722 else
5723 echo "$ac_err" >&5
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5726 rm -rf conftest*
5727 eval "ac_cv_header_$ac_safe=no"
5729 rm -f conftest*
5731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5732 echo "$ac_t""yes" 1>&6
5733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5734 cat >> confdefs.h <<EOF
5735 #define $ac_tr_hdr 1
5738 else
5739 echo "$ac_t""no" 1>&6
5741 done
5743 for ac_hdr in dirent.h
5745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5747 echo "configure:5748: checking for $ac_hdr" >&5
5748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5750 else
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 #include <$ac_hdr>
5756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5757 { (eval echo configure:5758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5759 if test -z "$ac_err"; then
5760 rm -rf conftest*
5761 eval "ac_cv_header_$ac_safe=yes"
5762 else
5763 echo "$ac_err" >&5
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5766 rm -rf conftest*
5767 eval "ac_cv_header_$ac_safe=no"
5769 rm -f conftest*
5771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5772 echo "$ac_t""yes" 1>&6
5773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5774 cat >> confdefs.h <<EOF
5775 #define $ac_tr_hdr 1
5778 else
5779 echo "$ac_t""no" 1>&6
5781 done
5783 for ac_hdr in inttypes.h
5785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5787 echo "configure:5788: checking for $ac_hdr" >&5
5788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5789 echo $ac_n "(cached) $ac_c" 1>&6
5790 else
5791 cat > conftest.$ac_ext <<EOF
5792 #line 5793 "configure"
5793 #include "confdefs.h"
5794 #include <$ac_hdr>
5796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5797 { (eval echo configure:5798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5799 if test -z "$ac_err"; then
5800 rm -rf conftest*
5801 eval "ac_cv_header_$ac_safe=yes"
5802 else
5803 echo "$ac_err" >&5
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5806 rm -rf conftest*
5807 eval "ac_cv_header_$ac_safe=no"
5809 rm -f conftest*
5811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5812 echo "$ac_t""yes" 1>&6
5813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5814 cat >> confdefs.h <<EOF
5815 #define $ac_tr_hdr 1
5818 cat >> confdefs.h <<\EOF
5819 #define HAVE_INTTYPES_H 1
5822 cat >> confdefs.h <<\EOF
5823 #define JV_HAVE_INTTYPES_H 1
5827 else
5828 echo "$ac_t""no" 1>&6
5830 done
5832 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5833 echo "configure:5834: checking for sys/wait.h that is POSIX.1 compatible" >&5
5834 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5836 else
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 #include <sys/types.h>
5841 #include <sys/wait.h>
5842 #ifndef WEXITSTATUS
5843 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5844 #endif
5845 #ifndef WIFEXITED
5846 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5847 #endif
5848 int main() {
5849 int s;
5850 wait (&s);
5851 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5852 ; return 0; }
5854 if { (eval echo configure:5855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5855 rm -rf conftest*
5856 ac_cv_header_sys_wait_h=yes
5857 else
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5860 rm -rf conftest*
5861 ac_cv_header_sys_wait_h=no
5863 rm -f conftest*
5866 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5867 if test $ac_cv_header_sys_wait_h = yes; then
5868 cat >> confdefs.h <<\EOF
5869 #define HAVE_SYS_WAIT_H 1
5875 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5876 echo "configure:5877: checking for ANSI C header files" >&5
5877 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5879 else
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 #include <stdlib.h>
5884 #include <stdarg.h>
5885 #include <string.h>
5886 #include <float.h>
5888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5889 { (eval echo configure:5890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5891 if test -z "$ac_err"; then
5892 rm -rf conftest*
5893 ac_cv_header_stdc=yes
5894 else
5895 echo "$ac_err" >&5
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 rm -rf conftest*
5899 ac_cv_header_stdc=no
5901 rm -f conftest*
5903 if test $ac_cv_header_stdc = yes; then
5904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5908 #include <string.h>
5910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5911 egrep "memchr" >/dev/null 2>&1; then
5913 else
5914 rm -rf conftest*
5915 ac_cv_header_stdc=no
5917 rm -f conftest*
5921 if test $ac_cv_header_stdc = yes; then
5922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926 #include <stdlib.h>
5928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5929 egrep "free" >/dev/null 2>&1; then
5931 else
5932 rm -rf conftest*
5933 ac_cv_header_stdc=no
5935 rm -f conftest*
5939 if test $ac_cv_header_stdc = yes; then
5940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5941 if test "$cross_compiling" = yes; then
5943 else
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5947 #include <ctype.h>
5948 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5949 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5951 int main () { int i; for (i = 0; i < 256; i++)
5952 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5953 exit (0); }
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5957 then
5959 else
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5962 rm -fr conftest*
5963 ac_cv_header_stdc=no
5965 rm -fr conftest*
5971 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5972 if test $ac_cv_header_stdc = yes; then
5973 cat >> confdefs.h <<\EOF
5974 #define STDC_HEADERS 1
5979 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5980 echo "configure:5981: checking for ssize_t" >&5
5981 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5983 else
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 #include <sys/types.h>
5988 #if STDC_HEADERS
5989 #include <stdlib.h>
5990 #include <stddef.h>
5991 #endif
5993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5994 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5995 rm -rf conftest*
5996 ac_cv_type_ssize_t=yes
5997 else
5998 rm -rf conftest*
5999 ac_cv_type_ssize_t=no
6001 rm -f conftest*
6004 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6005 if test $ac_cv_type_ssize_t = no; then
6006 cat >> confdefs.h <<\EOF
6007 #define ssize_t int
6013 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
6014 echo "configure:6015: checking for in_addr_t" >&5
6015 cat > conftest.$ac_ext <<EOF
6016 #line 6017 "configure"
6017 #include "confdefs.h"
6018 #include <sys/types.h>
6019 #if STDC_HEADERS
6020 #include <stdlib.h>
6021 #include <stddef.h>
6022 #endif
6023 #if HAVE_NETINET_IN_H
6024 #include <netinet/in.h>
6025 #endif
6026 int main() {
6027 in_addr_t foo;
6028 ; return 0; }
6030 if { (eval echo configure:6031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6031 rm -rf conftest*
6032 cat >> confdefs.h <<\EOF
6033 #define HAVE_IN_ADDR_T 1
6036 echo "$ac_t""yes" 1>&6
6037 else
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6040 rm -rf conftest*
6041 echo "$ac_t""no" 1>&6
6043 rm -f conftest*
6045 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
6046 echo "configure:6047: checking whether struct ip_mreq is in netinet/in.h" >&5
6047 cat > conftest.$ac_ext <<EOF
6048 #line 6049 "configure"
6049 #include "confdefs.h"
6050 #include <netinet/in.h>
6051 int main() {
6052 struct ip_mreq mreq;
6053 ; return 0; }
6055 if { (eval echo configure:6056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6056 rm -rf conftest*
6057 cat >> confdefs.h <<\EOF
6058 #define HAVE_STRUCT_IP_MREQ 1
6061 echo "$ac_t""yes" 1>&6
6062 else
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 rm -rf conftest*
6066 echo "$ac_t""no" 1>&6
6068 rm -f conftest*
6070 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
6071 echo "configure:6072: checking whether struct ipv6_mreq is in netinet/in.h" >&5
6072 cat > conftest.$ac_ext <<EOF
6073 #line 6074 "configure"
6074 #include "confdefs.h"
6075 #include <netinet/in.h>
6076 int main() {
6077 struct ipv6_mreq mreq6;
6078 ; return 0; }
6080 if { (eval echo configure:6081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6081 rm -rf conftest*
6082 cat >> confdefs.h <<\EOF
6083 #define HAVE_STRUCT_IPV6_MREQ 1
6086 echo "$ac_t""yes" 1>&6
6087 else
6088 echo "configure: failed program was:" >&5
6089 cat conftest.$ac_ext >&5
6090 rm -rf conftest*
6091 echo "$ac_t""no" 1>&6
6093 rm -f conftest*
6095 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
6096 echo "configure:6097: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 #include <netinet/in.h>
6101 int main() {
6102 struct sockaddr_in6 addr6;
6103 ; return 0; }
6105 if { (eval echo configure:6106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6106 rm -rf conftest*
6107 cat >> confdefs.h <<\EOF
6108 #define HAVE_INET6 1
6111 echo "$ac_t""yes" 1>&6
6112 else
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6115 rm -rf conftest*
6116 echo "$ac_t""no" 1>&6
6118 rm -f conftest*
6120 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
6121 echo "configure:6122: checking for socklen_t in sys/socket.h" >&5
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6125 #define _POSIX_PII_SOCKET
6126 #include <sys/types.h>
6127 #include <sys/socket.h>
6128 int main() {
6129 socklen_t x = 5;
6130 ; return 0; }
6132 if { (eval echo configure:6133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6133 rm -rf conftest*
6134 cat >> confdefs.h <<\EOF
6135 #define HAVE_SOCKLEN_T 1
6138 echo "$ac_t""yes" 1>&6
6139 else
6140 echo "configure: failed program was:" >&5
6141 cat conftest.$ac_ext >&5
6142 rm -rf conftest*
6143 echo "$ac_t""no" 1>&6
6145 rm -f conftest*
6147 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6148 echo "configure:6149: checking for tm_gmtoff in struct tm" >&5
6149 cat > conftest.$ac_ext <<EOF
6150 #line 6151 "configure"
6151 #include "confdefs.h"
6152 #include <time.h>
6153 int main() {
6154 struct tm tim; tim.tm_gmtoff = 0;
6155 ; return 0; }
6157 if { (eval echo configure:6158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6158 rm -rf conftest*
6159 cat >> confdefs.h <<\EOF
6160 #define STRUCT_TM_HAS_GMTOFF 1
6163 echo "$ac_t""yes" 1>&6
6164 else
6165 echo "configure: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6167 rm -rf conftest*
6168 echo "$ac_t""no" 1>&6
6169 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
6170 echo "configure:6171: checking for global timezone variable" >&5
6171 cat > conftest.$ac_ext <<EOF
6172 #line 6173 "configure"
6173 #include "confdefs.h"
6174 #include <time.h>
6175 int main() {
6176 void i(){long z2 = 2*timezone;}
6177 ; return 0; }
6179 if { (eval echo configure:6180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6180 rm -rf conftest*
6181 cat >> confdefs.h <<\EOF
6182 #define HAVE_TIMEZONE 1
6185 echo "$ac_t""yes" 1>&6
6186 else
6187 echo "configure: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6189 rm -rf conftest*
6190 echo "$ac_t""no" 1>&6
6191 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
6192 echo "configure:6193: checking for global _timezone variable" >&5
6193 cat > conftest.$ac_ext <<EOF
6194 #line 6195 "configure"
6195 #include "confdefs.h"
6196 #include <time.h>
6197 int main() {
6198 long z2 = _timezone;
6199 ; return 0; }
6201 if { (eval echo configure:6202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6202 rm -rf conftest*
6203 cat >> confdefs.h <<\EOF
6204 #define HAVE_UNDERSCORE_TIMEZONE 1
6207 echo "$ac_t""yes" 1>&6
6208 else
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6211 rm -rf conftest*
6212 echo "$ac_t""no" 1>&6
6214 rm -f conftest*
6216 rm -f conftest*
6218 rm -f conftest*
6220 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6221 # for constant arguments. Useless!
6222 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6223 echo "configure:6224: checking for working alloca.h" >&5
6224 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6226 else
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 #include <alloca.h>
6231 int main() {
6232 char *p = alloca(2 * sizeof(int));
6233 ; return 0; }
6235 if { (eval echo configure:6236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6236 rm -rf conftest*
6237 ac_cv_header_alloca_h=yes
6238 else
6239 echo "configure: failed program was:" >&5
6240 cat conftest.$ac_ext >&5
6241 rm -rf conftest*
6242 ac_cv_header_alloca_h=no
6244 rm -f conftest*
6247 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6248 if test $ac_cv_header_alloca_h = yes; then
6249 cat >> confdefs.h <<\EOF
6250 #define HAVE_ALLOCA_H 1
6255 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6256 echo "configure:6257: checking for alloca" >&5
6257 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6258 echo $ac_n "(cached) $ac_c" 1>&6
6259 else
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6264 #ifdef __GNUC__
6265 # define alloca __builtin_alloca
6266 #else
6267 # ifdef _MSC_VER
6268 # include <malloc.h>
6269 # define alloca _alloca
6270 # else
6271 # if HAVE_ALLOCA_H
6272 # include <alloca.h>
6273 # else
6274 # ifdef _AIX
6275 #pragma alloca
6276 # else
6277 # ifndef alloca /* predefined by HP cc +Olibcalls */
6278 char *alloca ();
6279 # endif
6280 # endif
6281 # endif
6282 # endif
6283 #endif
6285 int main() {
6286 char *p = (char *) alloca(1);
6287 ; return 0; }
6289 if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6290 rm -rf conftest*
6291 ac_cv_func_alloca_works=yes
6292 else
6293 echo "configure: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6295 rm -rf conftest*
6296 ac_cv_func_alloca_works=no
6298 rm -f conftest*
6301 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6302 if test $ac_cv_func_alloca_works = yes; then
6303 cat >> confdefs.h <<\EOF
6304 #define HAVE_ALLOCA 1
6309 if test $ac_cv_func_alloca_works = no; then
6310 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6311 # that cause trouble. Some versions do not even contain alloca or
6312 # contain a buggy version. If you still want to use their alloca,
6313 # use ar to extract alloca.o from them instead of compiling alloca.c.
6314 ALLOCA=alloca.${ac_objext}
6315 cat >> confdefs.h <<\EOF
6316 #define C_ALLOCA 1
6320 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6321 echo "configure:6322: checking whether alloca needs Cray hooks" >&5
6322 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6324 else
6325 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6328 #if defined(CRAY) && ! defined(CRAY2)
6329 webecray
6330 #else
6331 wenotbecray
6332 #endif
6335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6336 egrep "webecray" >/dev/null 2>&1; then
6337 rm -rf conftest*
6338 ac_cv_os_cray=yes
6339 else
6340 rm -rf conftest*
6341 ac_cv_os_cray=no
6343 rm -f conftest*
6347 echo "$ac_t""$ac_cv_os_cray" 1>&6
6348 if test $ac_cv_os_cray = yes; then
6349 for ac_func in _getb67 GETB67 getb67; do
6350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6351 echo "configure:6352: checking for $ac_func" >&5
6352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6354 else
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 /* System header to define __stub macros and hopefully few prototypes,
6359 which can conflict with char $ac_func(); below. */
6360 #include <assert.h>
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6364 char $ac_func();
6366 int main() {
6368 /* The GNU C library defines this for functions which it implements
6369 to always fail with ENOSYS. Some functions are actually named
6370 something starting with __ and the normal name is an alias. */
6371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6372 choke me
6373 #else
6374 $ac_func();
6375 #endif
6377 ; return 0; }
6379 if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6380 rm -rf conftest*
6381 eval "ac_cv_func_$ac_func=yes"
6382 else
6383 echo "configure: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6385 rm -rf conftest*
6386 eval "ac_cv_func_$ac_func=no"
6388 rm -f conftest*
6391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6392 echo "$ac_t""yes" 1>&6
6393 cat >> confdefs.h <<EOF
6394 #define CRAY_STACKSEG_END $ac_func
6397 break
6398 else
6399 echo "$ac_t""no" 1>&6
6402 done
6405 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6406 echo "configure:6407: checking stack direction for C alloca" >&5
6407 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6409 else
6410 if test "$cross_compiling" = yes; then
6411 ac_cv_c_stack_direction=0
6412 else
6413 cat > conftest.$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6416 find_stack_direction ()
6418 static char *addr = 0;
6419 auto char dummy;
6420 if (addr == 0)
6422 addr = &dummy;
6423 return find_stack_direction ();
6425 else
6426 return (&dummy > addr) ? 1 : -1;
6428 main ()
6430 exit (find_stack_direction() < 0);
6433 if { (eval echo configure:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6434 then
6435 ac_cv_c_stack_direction=1
6436 else
6437 echo "configure: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6439 rm -fr conftest*
6440 ac_cv_c_stack_direction=-1
6442 rm -fr conftest*
6447 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6448 cat >> confdefs.h <<EOF
6449 #define STACK_DIRECTION $ac_cv_c_stack_direction
6455 for ac_prog in perl
6457 # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6460 echo "configure:6461: checking for $ac_word" >&5
6461 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6462 echo $ac_n "(cached) $ac_c" 1>&6
6463 else
6464 if test -n "$PERL"; then
6465 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6466 else
6467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6468 ac_dummy="$PATH"
6469 for ac_dir in $ac_dummy; do
6470 test -z "$ac_dir" && ac_dir=.
6471 if test -f $ac_dir/$ac_word; then
6472 ac_cv_prog_PERL="$ac_prog"
6473 break
6475 done
6476 IFS="$ac_save_ifs"
6479 PERL="$ac_cv_prog_PERL"
6480 if test -n "$PERL"; then
6481 echo "$ac_t""$PERL" 1>&6
6482 else
6483 echo "$ac_t""no" 1>&6
6486 test -n "$PERL" && break
6487 done
6488 test -n "$PERL" || PERL="false"
6491 SYSDEP_SOURCES=
6493 case "${host}" in
6494 i?86-*-linux*)
6495 SIGNAL_HANDLER=include/i386-signal.h
6497 sparc*-sun-solaris*)
6498 SIGNAL_HANDLER=include/sparc-signal.h
6500 # ia64-*)
6501 # SYSDEP_SOURCES=sysdep/ia64.c
6502 # test -d sysdep || mkdir sysdep
6503 # ;;
6504 ia64-*-linux*)
6505 SIGNAL_HANDLER=include/dwarf2-signal.h
6507 powerpc-*-linux*)
6508 SIGNAL_HANDLER=include/dwarf2-signal.h
6510 alpha*-*-linux*)
6511 SIGNAL_HANDLER=include/dwarf2-signal.h
6513 s390*-*-linux*)
6514 SIGNAL_HANDLER=include/s390-signal.h
6516 sparc*-*-linux*)
6517 SIGNAL_HANDLER=include/dwarf2-signal.h
6519 *mingw*)
6520 SIGNAL_HANDLER=include/win32-signal.h
6523 SIGNAL_HANDLER=include/default-signal.h
6525 esac
6527 # If we're using sjlj exceptions, forget what we just learned.
6528 if test "$enable_sjlj_exceptions" = yes; then
6529 SIGNAL_HANDLER=include/default-signal.h
6536 if test "${multilib}" = "yes"; then
6537 multilib_arg="--enable-multilib"
6538 else
6539 multilib_arg=
6542 # If we find X, set shell vars x_includes and x_libraries to the
6543 # paths, otherwise set no_x=yes.
6544 # Uses ac_ vars as temps to allow command line to override cache and checks.
6545 # --without-x overrides everything else, but does not touch the cache.
6546 echo $ac_n "checking for X""... $ac_c" 1>&6
6547 echo "configure:6548: checking for X" >&5
6549 # Check whether --with-x or --without-x was given.
6550 if test "${with_x+set}" = set; then
6551 withval="$with_x"
6555 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6556 if test "x$with_x" = xno; then
6557 # The user explicitly disabled X.
6558 have_x=disabled
6559 else
6560 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6561 # Both variables are already set.
6562 have_x=yes
6563 else
6564 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6566 else
6567 # One or both of the vars are not set, and there is no cached value.
6568 ac_x_includes=NO ac_x_libraries=NO
6569 rm -fr conftestdir
6570 if mkdir conftestdir; then
6571 cd conftestdir
6572 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6573 cat > Imakefile <<'EOF'
6574 acfindx:
6575 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6577 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6579 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6580 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6581 for ac_extension in a so sl; do
6582 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6583 test -f $ac_im_libdir/libX11.$ac_extension; then
6584 ac_im_usrlibdir=$ac_im_libdir; break
6586 done
6587 # Screen out bogus values from the imake configuration. They are
6588 # bogus both because they are the default anyway, and because
6589 # using them would break gcc on systems where it needs fixed includes.
6590 case "$ac_im_incroot" in
6591 /usr/include) ;;
6592 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6593 esac
6594 case "$ac_im_usrlibdir" in
6595 /usr/lib | /lib) ;;
6596 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6597 esac
6599 cd ..
6600 rm -fr conftestdir
6603 if test "$ac_x_includes" = NO; then
6604 # Guess where to find include files, by looking for this one X11 .h file.
6605 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6607 # First, try using that file with no special directory specified.
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6611 #include <$x_direct_test_include>
6613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6614 { (eval echo configure:6615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6616 if test -z "$ac_err"; then
6617 rm -rf conftest*
6618 # We can compile using X headers with no special include directory.
6619 ac_x_includes=
6620 else
6621 echo "$ac_err" >&5
6622 echo "configure: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 rm -rf conftest*
6625 # Look for the header file in a standard set of common directories.
6626 # Check X11 before X11Rn because it is often a symlink to the current release.
6627 for ac_dir in \
6628 /usr/X11/include \
6629 /usr/X11R6/include \
6630 /usr/X11R5/include \
6631 /usr/X11R4/include \
6633 /usr/include/X11 \
6634 /usr/include/X11R6 \
6635 /usr/include/X11R5 \
6636 /usr/include/X11R4 \
6638 /usr/local/X11/include \
6639 /usr/local/X11R6/include \
6640 /usr/local/X11R5/include \
6641 /usr/local/X11R4/include \
6643 /usr/local/include/X11 \
6644 /usr/local/include/X11R6 \
6645 /usr/local/include/X11R5 \
6646 /usr/local/include/X11R4 \
6648 /usr/X386/include \
6649 /usr/x386/include \
6650 /usr/XFree86/include/X11 \
6652 /usr/include \
6653 /usr/local/include \
6654 /usr/unsupported/include \
6655 /usr/athena/include \
6656 /usr/local/x11r5/include \
6657 /usr/lpp/Xamples/include \
6659 /usr/openwin/include \
6660 /usr/openwin/share/include \
6663 if test -r "$ac_dir/$x_direct_test_include"; then
6664 ac_x_includes=$ac_dir
6665 break
6667 done
6669 rm -f conftest*
6670 fi # $ac_x_includes = NO
6672 if test "$ac_x_libraries" = NO; then
6673 # Check for the libraries.
6675 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6676 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6678 # See if we find them without any special options.
6679 # Don't add to $LIBS permanently.
6680 ac_save_LIBS="$LIBS"
6681 LIBS="-l$x_direct_test_library $LIBS"
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6686 int main() {
6687 ${x_direct_test_function}()
6688 ; return 0; }
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 rm -rf conftest*
6692 LIBS="$ac_save_LIBS"
6693 # We can link X programs with no special library path.
6694 ac_x_libraries=
6695 else
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 rm -rf conftest*
6699 LIBS="$ac_save_LIBS"
6700 # First see if replacing the include by lib works.
6701 # Check X11 before X11Rn because it is often a symlink to the current release.
6702 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6703 /usr/X11/lib \
6704 /usr/X11R6/lib \
6705 /usr/X11R5/lib \
6706 /usr/X11R4/lib \
6708 /usr/lib/X11 \
6709 /usr/lib/X11R6 \
6710 /usr/lib/X11R5 \
6711 /usr/lib/X11R4 \
6713 /usr/local/X11/lib \
6714 /usr/local/X11R6/lib \
6715 /usr/local/X11R5/lib \
6716 /usr/local/X11R4/lib \
6718 /usr/local/lib/X11 \
6719 /usr/local/lib/X11R6 \
6720 /usr/local/lib/X11R5 \
6721 /usr/local/lib/X11R4 \
6723 /usr/X386/lib \
6724 /usr/x386/lib \
6725 /usr/XFree86/lib/X11 \
6727 /usr/lib \
6728 /usr/local/lib \
6729 /usr/unsupported/lib \
6730 /usr/athena/lib \
6731 /usr/local/x11r5/lib \
6732 /usr/lpp/Xamples/lib \
6733 /lib/usr/lib/X11 \
6735 /usr/openwin/lib \
6736 /usr/openwin/share/lib \
6739 for ac_extension in a so sl; do
6740 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6741 ac_x_libraries=$ac_dir
6742 break 2
6744 done
6745 done
6747 rm -f conftest*
6748 fi # $ac_x_libraries = NO
6750 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6751 # Didn't find X anywhere. Cache the known absence of X.
6752 ac_cv_have_x="have_x=no"
6753 else
6754 # Record where we found X for the cache.
6755 ac_cv_have_x="have_x=yes \
6756 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6760 eval "$ac_cv_have_x"
6761 fi # $with_x != no
6763 if test "$have_x" != yes; then
6764 echo "$ac_t""$have_x" 1>&6
6765 no_x=yes
6766 else
6767 # If each of the values was on the command line, it overrides each guess.
6768 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6769 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6770 # Update the cache value to reflect the command line values.
6771 ac_cv_have_x="have_x=yes \
6772 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6773 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6776 if test "$no_x" = yes; then
6777 # Not all programs may use this symbol, but it does not hurt to define it.
6778 cat >> confdefs.h <<\EOF
6779 #define X_DISPLAY_MISSING 1
6782 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6783 else
6784 if test -n "$x_includes"; then
6785 X_CFLAGS="$X_CFLAGS -I$x_includes"
6788 # It would also be nice to do this for all -L options, not just this one.
6789 if test -n "$x_libraries"; then
6790 X_LIBS="$X_LIBS -L$x_libraries"
6791 # For Solaris; some versions of Sun CC require a space after -R and
6792 # others require no space. Words are not sufficient . . . .
6793 case "`(uname -sr) 2>/dev/null`" in
6794 "SunOS 5"*)
6795 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6796 echo "configure:6797: checking whether -R must be followed by a space" >&5
6797 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6798 cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6802 int main() {
6804 ; return 0; }
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6807 rm -rf conftest*
6808 ac_R_nospace=yes
6809 else
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6812 rm -rf conftest*
6813 ac_R_nospace=no
6815 rm -f conftest*
6816 if test $ac_R_nospace = yes; then
6817 echo "$ac_t""no" 1>&6
6818 X_LIBS="$X_LIBS -R$x_libraries"
6819 else
6820 LIBS="$ac_xsave_LIBS -R $x_libraries"
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6825 int main() {
6827 ; return 0; }
6829 if { (eval echo configure:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6830 rm -rf conftest*
6831 ac_R_space=yes
6832 else
6833 echo "configure: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6835 rm -rf conftest*
6836 ac_R_space=no
6838 rm -f conftest*
6839 if test $ac_R_space = yes; then
6840 echo "$ac_t""yes" 1>&6
6841 X_LIBS="$X_LIBS -R $x_libraries"
6842 else
6843 echo "$ac_t""neither works" 1>&6
6846 LIBS="$ac_xsave_LIBS"
6847 esac
6850 # Check for system-dependent libraries X programs must link with.
6851 # Do this before checking for the system-independent R6 libraries
6852 # (-lICE), since we may need -lsocket or whatever for X linking.
6854 if test "$ISC" = yes; then
6855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6856 else
6857 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6858 # libraries were built with DECnet support. And karl@cs.umb.edu says
6859 # the Alpha needs dnet_stub (dnet does not exist).
6860 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6861 echo "configure:6862: checking for dnet_ntoa in -ldnet" >&5
6862 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6865 else
6866 ac_save_LIBS="$LIBS"
6867 LIBS="-ldnet $LIBS"
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6874 char dnet_ntoa();
6876 int main() {
6877 dnet_ntoa()
6878 ; return 0; }
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6881 rm -rf conftest*
6882 eval "ac_cv_lib_$ac_lib_var=yes"
6883 else
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6886 rm -rf conftest*
6887 eval "ac_cv_lib_$ac_lib_var=no"
6889 rm -f conftest*
6890 LIBS="$ac_save_LIBS"
6893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6896 else
6897 echo "$ac_t""no" 1>&6
6900 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6901 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6902 echo "configure:6903: checking for dnet_ntoa in -ldnet_stub" >&5
6903 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6905 echo $ac_n "(cached) $ac_c" 1>&6
6906 else
6907 ac_save_LIBS="$LIBS"
6908 LIBS="-ldnet_stub $LIBS"
6909 cat > conftest.$ac_ext <<EOF
6910 #line 6911 "configure"
6911 #include "confdefs.h"
6912 /* Override any gcc2 internal prototype to avoid an error. */
6913 /* We use char because int might match the return type of a gcc2
6914 builtin and then its argument prototype would still apply. */
6915 char dnet_ntoa();
6917 int main() {
6918 dnet_ntoa()
6919 ; return 0; }
6921 if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6922 rm -rf conftest*
6923 eval "ac_cv_lib_$ac_lib_var=yes"
6924 else
6925 echo "configure: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6927 rm -rf conftest*
6928 eval "ac_cv_lib_$ac_lib_var=no"
6930 rm -f conftest*
6931 LIBS="$ac_save_LIBS"
6934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6935 echo "$ac_t""yes" 1>&6
6936 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6937 else
6938 echo "$ac_t""no" 1>&6
6943 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6944 # to get the SysV transport functions.
6945 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6946 # needs -lnsl.
6947 # The nsl library prevents programs from opening the X display
6948 # on Irix 5.2, according to dickey@clark.net.
6949 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6950 echo "configure:6951: checking for gethostbyname" >&5
6951 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6953 else
6954 cat > conftest.$ac_ext <<EOF
6955 #line 6956 "configure"
6956 #include "confdefs.h"
6957 /* System header to define __stub macros and hopefully few prototypes,
6958 which can conflict with char gethostbyname(); below. */
6959 #include <assert.h>
6960 /* Override any gcc2 internal prototype to avoid an error. */
6961 /* We use char because int might match the return type of a gcc2
6962 builtin and then its argument prototype would still apply. */
6963 char gethostbyname();
6965 int main() {
6967 /* The GNU C library defines this for functions which it implements
6968 to always fail with ENOSYS. Some functions are actually named
6969 something starting with __ and the normal name is an alias. */
6970 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6971 choke me
6972 #else
6973 gethostbyname();
6974 #endif
6976 ; return 0; }
6978 if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6979 rm -rf conftest*
6980 eval "ac_cv_func_gethostbyname=yes"
6981 else
6982 echo "configure: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6984 rm -rf conftest*
6985 eval "ac_cv_func_gethostbyname=no"
6987 rm -f conftest*
6990 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6991 echo "$ac_t""yes" 1>&6
6993 else
6994 echo "$ac_t""no" 1>&6
6997 if test $ac_cv_func_gethostbyname = no; then
6998 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6999 echo "configure:7000: checking for gethostbyname in -lnsl" >&5
7000 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7003 else
7004 ac_save_LIBS="$LIBS"
7005 LIBS="-lnsl $LIBS"
7006 cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7009 /* Override any gcc2 internal prototype to avoid an error. */
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7012 char gethostbyname();
7014 int main() {
7015 gethostbyname()
7016 ; return 0; }
7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7019 rm -rf conftest*
7020 eval "ac_cv_lib_$ac_lib_var=yes"
7021 else
7022 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 rm -rf conftest*
7025 eval "ac_cv_lib_$ac_lib_var=no"
7027 rm -f conftest*
7028 LIBS="$ac_save_LIBS"
7031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7032 echo "$ac_t""yes" 1>&6
7033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7034 else
7035 echo "$ac_t""no" 1>&6
7040 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7041 # socket/setsockopt and other routines are undefined under SCO ODT
7042 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7043 # on later versions), says simon@lia.di.epfl.ch: it contains
7044 # gethostby* variants that don't use the nameserver (or something).
7045 # -lsocket must be given before -lnsl if both are needed.
7046 # We assume that if connect needs -lnsl, so does gethostbyname.
7047 echo $ac_n "checking for connect""... $ac_c" 1>&6
7048 echo "configure:7049: checking for connect" >&5
7049 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7051 else
7052 cat > conftest.$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7055 /* System header to define __stub macros and hopefully few prototypes,
7056 which can conflict with char connect(); below. */
7057 #include <assert.h>
7058 /* Override any gcc2 internal prototype to avoid an error. */
7059 /* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7061 char connect();
7063 int main() {
7065 /* The GNU C library defines this for functions which it implements
7066 to always fail with ENOSYS. Some functions are actually named
7067 something starting with __ and the normal name is an alias. */
7068 #if defined (__stub_connect) || defined (__stub___connect)
7069 choke me
7070 #else
7071 connect();
7072 #endif
7074 ; return 0; }
7076 if { (eval echo configure:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7077 rm -rf conftest*
7078 eval "ac_cv_func_connect=yes"
7079 else
7080 echo "configure: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7082 rm -rf conftest*
7083 eval "ac_cv_func_connect=no"
7085 rm -f conftest*
7088 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7089 echo "$ac_t""yes" 1>&6
7091 else
7092 echo "$ac_t""no" 1>&6
7095 if test $ac_cv_func_connect = no; then
7096 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7097 echo "configure:7098: checking for connect in -lsocket" >&5
7098 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7101 else
7102 ac_save_LIBS="$LIBS"
7103 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7104 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7107 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7110 char connect();
7112 int main() {
7113 connect()
7114 ; return 0; }
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7117 rm -rf conftest*
7118 eval "ac_cv_lib_$ac_lib_var=yes"
7119 else
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7122 rm -rf conftest*
7123 eval "ac_cv_lib_$ac_lib_var=no"
7125 rm -f conftest*
7126 LIBS="$ac_save_LIBS"
7129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7130 echo "$ac_t""yes" 1>&6
7131 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7132 else
7133 echo "$ac_t""no" 1>&6
7138 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7139 echo $ac_n "checking for remove""... $ac_c" 1>&6
7140 echo "configure:7141: checking for remove" >&5
7141 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7143 else
7144 cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7147 /* System header to define __stub macros and hopefully few prototypes,
7148 which can conflict with char remove(); below. */
7149 #include <assert.h>
7150 /* Override any gcc2 internal prototype to avoid an error. */
7151 /* We use char because int might match the return type of a gcc2
7152 builtin and then its argument prototype would still apply. */
7153 char remove();
7155 int main() {
7157 /* The GNU C library defines this for functions which it implements
7158 to always fail with ENOSYS. Some functions are actually named
7159 something starting with __ and the normal name is an alias. */
7160 #if defined (__stub_remove) || defined (__stub___remove)
7161 choke me
7162 #else
7163 remove();
7164 #endif
7166 ; return 0; }
7168 if { (eval echo configure:7169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7169 rm -rf conftest*
7170 eval "ac_cv_func_remove=yes"
7171 else
7172 echo "configure: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7174 rm -rf conftest*
7175 eval "ac_cv_func_remove=no"
7177 rm -f conftest*
7180 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7181 echo "$ac_t""yes" 1>&6
7183 else
7184 echo "$ac_t""no" 1>&6
7187 if test $ac_cv_func_remove = no; then
7188 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7189 echo "configure:7190: checking for remove in -lposix" >&5
7190 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7193 else
7194 ac_save_LIBS="$LIBS"
7195 LIBS="-lposix $LIBS"
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 /* Override any gcc2 internal prototype to avoid an error. */
7200 /* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */
7202 char remove();
7204 int main() {
7205 remove()
7206 ; return 0; }
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7209 rm -rf conftest*
7210 eval "ac_cv_lib_$ac_lib_var=yes"
7211 else
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7214 rm -rf conftest*
7215 eval "ac_cv_lib_$ac_lib_var=no"
7217 rm -f conftest*
7218 LIBS="$ac_save_LIBS"
7221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7222 echo "$ac_t""yes" 1>&6
7223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7224 else
7225 echo "$ac_t""no" 1>&6
7230 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7231 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7232 echo "configure:7233: checking for shmat" >&5
7233 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7235 else
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* System header to define __stub macros and hopefully few prototypes,
7240 which can conflict with char shmat(); below. */
7241 #include <assert.h>
7242 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7245 char shmat();
7247 int main() {
7249 /* The GNU C library defines this for functions which it implements
7250 to always fail with ENOSYS. Some functions are actually named
7251 something starting with __ and the normal name is an alias. */
7252 #if defined (__stub_shmat) || defined (__stub___shmat)
7253 choke me
7254 #else
7255 shmat();
7256 #endif
7258 ; return 0; }
7260 if { (eval echo configure:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7261 rm -rf conftest*
7262 eval "ac_cv_func_shmat=yes"
7263 else
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7266 rm -rf conftest*
7267 eval "ac_cv_func_shmat=no"
7269 rm -f conftest*
7272 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7275 else
7276 echo "$ac_t""no" 1>&6
7279 if test $ac_cv_func_shmat = no; then
7280 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7281 echo "configure:7282: checking for shmat in -lipc" >&5
7282 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7285 else
7286 ac_save_LIBS="$LIBS"
7287 LIBS="-lipc $LIBS"
7288 cat > conftest.$ac_ext <<EOF
7289 #line 7290 "configure"
7290 #include "confdefs.h"
7291 /* Override any gcc2 internal prototype to avoid an error. */
7292 /* We use char because int might match the return type of a gcc2
7293 builtin and then its argument prototype would still apply. */
7294 char shmat();
7296 int main() {
7297 shmat()
7298 ; return 0; }
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7301 rm -rf conftest*
7302 eval "ac_cv_lib_$ac_lib_var=yes"
7303 else
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7306 rm -rf conftest*
7307 eval "ac_cv_lib_$ac_lib_var=no"
7309 rm -f conftest*
7310 LIBS="$ac_save_LIBS"
7313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7314 echo "$ac_t""yes" 1>&6
7315 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7316 else
7317 echo "$ac_t""no" 1>&6
7323 # Check for libraries that X11R6 Xt/Xaw programs need.
7324 ac_save_LDFLAGS="$LDFLAGS"
7325 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7326 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7327 # check for ICE first), but we must link in the order -lSM -lICE or
7328 # we get undefined symbols. So assume we have SM if we have ICE.
7329 # These have to be linked with before -lX11, unlike the other
7330 # libraries we check for below, so use a different variable.
7331 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7332 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7333 echo "configure:7334: checking for IceConnectionNumber in -lICE" >&5
7334 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7337 else
7338 ac_save_LIBS="$LIBS"
7339 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 /* Override any gcc2 internal prototype to avoid an error. */
7344 /* We use char because int might match the return type of a gcc2
7345 builtin and then its argument prototype would still apply. */
7346 char IceConnectionNumber();
7348 int main() {
7349 IceConnectionNumber()
7350 ; return 0; }
7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7353 rm -rf conftest*
7354 eval "ac_cv_lib_$ac_lib_var=yes"
7355 else
7356 echo "configure: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7358 rm -rf conftest*
7359 eval "ac_cv_lib_$ac_lib_var=no"
7361 rm -f conftest*
7362 LIBS="$ac_save_LIBS"
7365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7366 echo "$ac_t""yes" 1>&6
7367 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7368 else
7369 echo "$ac_t""no" 1>&6
7372 LDFLAGS="$ac_save_LDFLAGS"
7377 # Check whether --enable-java-awt or --disable-java-awt was given.
7378 if test "${enable_java_awt+set}" = set; then
7379 enableval="$enable_java_awt"
7384 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7385 use_xlib_awt=""
7386 use_gtk_awt=""
7388 for peer in $peerlibs ; do
7389 case $peer in
7390 xlib)
7391 if test "$no_x" = yes; then
7392 echo "*** xlib peers requested but no X library available" 1>&2
7393 exit 1
7394 else
7395 use_xlib_awt="yes"
7398 gtk)
7399 # Nothing, yet...
7402 use_xlib_awt=
7403 use_gtk_awt=
7404 break
7407 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7408 exit 1
7409 esac
7410 done
7414 if test "$use_xlib_awt" = yes; then
7415 XLIB_AWT_TRUE=
7416 XLIB_AWT_FALSE='#'
7417 else
7418 XLIB_AWT_TRUE='#'
7419 XLIB_AWT_FALSE=
7423 if test "$use_gtk_awt" = yes; then
7424 GTK_AWT_TRUE=
7425 GTK_AWT_FALSE='#'
7426 else
7427 GTK_AWT_TRUE='#'
7428 GTK_AWT_FALSE=
7432 here=`${PWDCMD-pwd}`
7435 # We get this from the environment.
7438 trap '' 1 2 15
7439 cat > confcache <<\EOF
7440 # This file is a shell script that caches the results of configure
7441 # tests run on this system so they can be shared between configure
7442 # scripts and configure runs. It is not useful on other systems.
7443 # If it contains results you don't want to keep, you may remove or edit it.
7445 # By default, configure uses ./config.cache as the cache file,
7446 # creating it if it does not exist already. You can give configure
7447 # the --cache-file=FILE option to use a different cache file; that is
7448 # what configure does when it calls configure scripts in
7449 # subdirectories, so they share the cache.
7450 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7451 # config.status only pays attention to the cache file if you give it the
7452 # --recheck option to rerun configure.
7455 # The following way of writing the cache mishandles newlines in values,
7456 # but we know of no workaround that is simple, portable, and efficient.
7457 # So, don't put newlines in cache variables' values.
7458 # Ultrix sh set writes to stderr and can't be redirected directly,
7459 # and sets the high bit in the cache file unless we assign to the vars.
7460 (set) 2>&1 |
7461 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7462 *ac_space=\ *)
7463 # `set' does not quote correctly, so add quotes (double-quote substitution
7464 # turns \\\\ into \\, and sed turns \\ into \).
7465 sed -n \
7466 -e "s/'/'\\\\''/g" \
7467 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7470 # `set' quotes correctly as required by POSIX, so do not add quotes.
7471 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7473 esac >> confcache
7474 if cmp -s $cache_file confcache; then
7476 else
7477 if test -w $cache_file; then
7478 echo "updating cache $cache_file"
7479 cat confcache > $cache_file
7480 else
7481 echo "not updating unwritable cache $cache_file"
7484 rm -f confcache
7486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7489 # Let make expand exec_prefix.
7490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7492 # Any assignment to VPATH causes Sun make to only execute
7493 # the first set of double-colon rules, so remove it if not needed.
7494 # If there is a colon in the path, we need to keep it.
7495 if test "x$srcdir" = x.; then
7496 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7499 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7501 DEFS=-DHAVE_CONFIG_H
7503 # Without the "./", some shells look in PATH for config.status.
7504 : ${CONFIG_STATUS=./config.status}
7506 echo creating $CONFIG_STATUS
7507 rm -f $CONFIG_STATUS
7508 cat > $CONFIG_STATUS <<EOF
7509 #! /bin/sh
7510 # Generated automatically by configure.
7511 # Run this file to recreate the current configuration.
7512 # This directory was configured as follows,
7513 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7515 # $0 $ac_configure_args
7517 # Compiler output produced by configure, useful for debugging
7518 # configure, is in ./config.log if it exists.
7520 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7521 for ac_option
7523 case "\$ac_option" in
7524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7525 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7526 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7527 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7528 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7529 exit 0 ;;
7530 -help | --help | --hel | --he | --h)
7531 echo "\$ac_cs_usage"; exit 0 ;;
7532 *) echo "\$ac_cs_usage"; exit 1 ;;
7533 esac
7534 done
7536 ac_given_srcdir=$srcdir
7537 ac_given_INSTALL="$INSTALL"
7539 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7541 cat >> $CONFIG_STATUS <<EOF
7543 # Protect against being on the right side of a sed subst in config.status.
7544 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7545 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7546 $ac_vpsub
7547 $extrasub
7548 s%@SHELL@%$SHELL%g
7549 s%@CFLAGS@%$CFLAGS%g
7550 s%@CPPFLAGS@%$CPPFLAGS%g
7551 s%@CXXFLAGS@%$CXXFLAGS%g
7552 s%@FFLAGS@%$FFLAGS%g
7553 s%@DEFS@%$DEFS%g
7554 s%@LDFLAGS@%$LDFLAGS%g
7555 s%@LIBS@%$LIBS%g
7556 s%@exec_prefix@%$exec_prefix%g
7557 s%@prefix@%$prefix%g
7558 s%@program_transform_name@%$program_transform_name%g
7559 s%@bindir@%$bindir%g
7560 s%@sbindir@%$sbindir%g
7561 s%@libexecdir@%$libexecdir%g
7562 s%@datadir@%$datadir%g
7563 s%@sysconfdir@%$sysconfdir%g
7564 s%@sharedstatedir@%$sharedstatedir%g
7565 s%@localstatedir@%$localstatedir%g
7566 s%@libdir@%$libdir%g
7567 s%@includedir@%$includedir%g
7568 s%@oldincludedir@%$oldincludedir%g
7569 s%@infodir@%$infodir%g
7570 s%@mandir@%$mandir%g
7571 s%@LN_S@%$LN_S%g
7572 s%@libgcj_basedir@%$libgcj_basedir%g
7573 s%@mkinstalldirs@%$mkinstalldirs%g
7574 s%@host@%$host%g
7575 s%@host_alias@%$host_alias%g
7576 s%@host_cpu@%$host_cpu%g
7577 s%@host_vendor@%$host_vendor%g
7578 s%@host_os@%$host_os%g
7579 s%@target@%$target%g
7580 s%@target_alias@%$target_alias%g
7581 s%@target_cpu@%$target_cpu%g
7582 s%@target_vendor@%$target_vendor%g
7583 s%@target_os@%$target_os%g
7584 s%@build@%$build%g
7585 s%@build_alias@%$build_alias%g
7586 s%@build_cpu@%$build_cpu%g
7587 s%@build_vendor@%$build_vendor%g
7588 s%@build_os@%$build_os%g
7589 s%@CC@%$CC%g
7590 s%@glibjava_CXX@%$glibjava_CXX%g
7591 s%@CXX@%$CXX%g
7592 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7593 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7594 s%@INSTALL_DATA@%$INSTALL_DATA%g
7595 s%@PACKAGE@%$PACKAGE%g
7596 s%@VERSION@%$VERSION%g
7597 s%@ACLOCAL@%$ACLOCAL%g
7598 s%@AUTOCONF@%$AUTOCONF%g
7599 s%@AUTOMAKE@%$AUTOMAKE%g
7600 s%@AUTOHEADER@%$AUTOHEADER%g
7601 s%@MAKEINFO@%$MAKEINFO%g
7602 s%@SET_MAKE@%$SET_MAKE%g
7603 s%@AS@%$AS%g
7604 s%@AR@%$AR%g
7605 s%@RANLIB@%$RANLIB%g
7606 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7607 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7608 s%@MAINT@%$MAINT%g
7609 s%@EXEEXT@%$EXEEXT%g
7610 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7611 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7612 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7613 s%@INCLTDL@%$INCLTDL%g
7614 s%@LIBLTDL@%$LIBLTDL%g
7615 s%@DIRLTDL@%$DIRLTDL%g
7616 s%@OBJEXT@%$OBJEXT%g
7617 s%@STRIP@%$STRIP%g
7618 s%@LIBTOOL@%$LIBTOOL%g
7619 s%@CXXCPP@%$CXXCPP%g
7620 s%@subdirs@%$subdirs%g
7621 s%@COMPPATH@%$COMPPATH%g
7622 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7623 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7624 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7625 s%@LIBFFI@%$LIBFFI%g
7626 s%@LIBFFIINCS@%$LIBFFIINCS%g
7627 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7628 s%@CPP@%$CPP%g
7629 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7630 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7631 s%@ZLIBSPEC@%$ZLIBSPEC%g
7632 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7633 s%@GCLIBS@%$GCLIBS%g
7634 s%@GCINCS@%$GCINCS%g
7635 s%@GCDEPS@%$GCDEPS%g
7636 s%@GCOBJS@%$GCOBJS%g
7637 s%@GCSPEC@%$GCSPEC%g
7638 s%@JC1GCSPEC@%$JC1GCSPEC%g
7639 s%@GCTESTSPEC@%$GCTESTSPEC%g
7640 s%@THREADLIBS@%$THREADLIBS%g
7641 s%@THREADINCS@%$THREADINCS%g
7642 s%@THREADDEPS@%$THREADDEPS%g
7643 s%@THREADOBJS@%$THREADOBJS%g
7644 s%@THREADSPEC@%$THREADSPEC%g
7645 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
7646 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7647 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7648 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7649 s%@tool_include_dir@%$tool_include_dir%g
7650 s%@gcc_version@%$gcc_version%g
7651 s%@LIBICONV@%$LIBICONV%g
7652 s%@GCJ@%$GCJ%g
7653 s%@GCJFLAGS@%$GCJFLAGS%g
7654 s%@ZLIBS@%$ZLIBS%g
7655 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
7656 s%@ZINCS@%$ZINCS%g
7657 s%@DIVIDESPEC@%$DIVIDESPEC%g
7658 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
7659 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7660 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7661 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7662 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7663 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7664 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7665 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7666 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7667 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7668 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7669 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7670 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7671 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7672 s%@GCJVERSION@%$GCJVERSION%g
7673 s%@ALLOCA@%$ALLOCA%g
7674 s%@PERL@%$PERL%g
7675 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7676 s%@X_CFLAGS@%$X_CFLAGS%g
7677 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7678 s%@X_LIBS@%$X_LIBS%g
7679 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7680 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7681 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7682 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7683 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7684 s%@here@%$here%g
7686 CEOF
7689 cat >> $CONFIG_STATUS <<\EOF
7691 # Split the substitutions into bite-sized pieces for seds with
7692 # small command number limits, like on Digital OSF/1 and HP-UX.
7693 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7694 ac_file=1 # Number of current file.
7695 ac_beg=1 # First line for current file.
7696 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7697 ac_more_lines=:
7698 ac_sed_cmds=""
7699 while $ac_more_lines; do
7700 if test $ac_beg -gt 1; then
7701 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7702 else
7703 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7705 if test ! -s conftest.s$ac_file; then
7706 ac_more_lines=false
7707 rm -f conftest.s$ac_file
7708 else
7709 if test -z "$ac_sed_cmds"; then
7710 ac_sed_cmds="sed -f conftest.s$ac_file"
7711 else
7712 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7714 ac_file=`expr $ac_file + 1`
7715 ac_beg=$ac_end
7716 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7718 done
7719 if test -z "$ac_sed_cmds"; then
7720 ac_sed_cmds=cat
7724 cat >> $CONFIG_STATUS <<EOF
7726 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7728 cat >> $CONFIG_STATUS <<\EOF
7729 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7731 case "$ac_file" in
7732 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7733 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7734 *) ac_file_in="${ac_file}.in" ;;
7735 esac
7737 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7739 # Remove last slash and all that follows it. Not all systems have dirname.
7740 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7741 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7742 # The file is in a subdirectory.
7743 test ! -d "$ac_dir" && mkdir "$ac_dir"
7744 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7745 # A "../" for each directory in $ac_dir_suffix.
7746 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7747 else
7748 ac_dir_suffix= ac_dots=
7751 case "$ac_given_srcdir" in
7752 .) srcdir=.
7753 if test -z "$ac_dots"; then top_srcdir=.
7754 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7755 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7756 *) # Relative path.
7757 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7758 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7759 esac
7761 case "$ac_given_INSTALL" in
7762 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7763 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7764 esac
7766 echo creating "$ac_file"
7767 rm -f "$ac_file"
7768 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7769 case "$ac_file" in
7770 *Makefile*) ac_comsub="1i\\
7771 # $configure_input" ;;
7772 *) ac_comsub= ;;
7773 esac
7775 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7776 sed -e "$ac_comsub
7777 s%@configure_input@%$configure_input%g
7778 s%@srcdir@%$srcdir%g
7779 s%@top_srcdir@%$top_srcdir%g
7780 s%@INSTALL@%$INSTALL%g
7781 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7782 fi; done
7783 rm -f conftest.s*
7785 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7786 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7788 # ac_d sets the value in "#define NAME VALUE" lines.
7789 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7790 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7791 ac_dC='\3'
7792 ac_dD='%g'
7793 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7794 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7795 ac_uB='\([ ]\)%\1#\2define\3'
7796 ac_uC=' '
7797 ac_uD='\4%g'
7798 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7799 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7800 ac_eB='$%\1#\2define\3'
7801 ac_eC=' '
7802 ac_eD='%g'
7804 if test "${CONFIG_HEADERS+set}" != set; then
7806 cat >> $CONFIG_STATUS <<EOF
7807 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7809 cat >> $CONFIG_STATUS <<\EOF
7811 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7813 case "$ac_file" in
7814 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7815 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7816 *) ac_file_in="${ac_file}.in" ;;
7817 esac
7819 echo creating $ac_file
7821 rm -f conftest.frag conftest.in conftest.out
7822 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7823 cat $ac_file_inputs > conftest.in
7827 # Transform confdefs.h into a sed script conftest.vals that substitutes
7828 # the proper values into config.h.in to produce config.h. And first:
7829 # Protect against being on the right side of a sed subst in config.status.
7830 # Protect against being in an unquoted here document in config.status.
7831 rm -f conftest.vals
7832 cat > conftest.hdr <<\EOF
7833 s/[\\&%]/\\&/g
7834 s%[\\$`]%\\&%g
7835 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7836 s%ac_d%ac_u%gp
7837 s%ac_u%ac_e%gp
7839 sed -n -f conftest.hdr confdefs.h > conftest.vals
7840 rm -f conftest.hdr
7842 # This sed command replaces #undef with comments. This is necessary, for
7843 # example, in the case of _POSIX_SOURCE, which is predefined and required
7844 # on some systems where configure will not decide to define it.
7845 cat >> conftest.vals <<\EOF
7846 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7849 # Break up conftest.vals because some shells have a limit on
7850 # the size of here documents, and old seds have small limits too.
7852 rm -f conftest.tail
7853 while :
7855 ac_lines=`grep -c . conftest.vals`
7856 # grep -c gives empty output for an empty file on some AIX systems.
7857 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7858 # Write a limited-size here document to conftest.frag.
7859 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7860 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7861 echo 'CEOF
7862 sed -f conftest.frag conftest.in > conftest.out
7863 rm -f conftest.in
7864 mv conftest.out conftest.in
7865 ' >> $CONFIG_STATUS
7866 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7867 rm -f conftest.vals
7868 mv conftest.tail conftest.vals
7869 done
7870 rm -f conftest.vals
7872 cat >> $CONFIG_STATUS <<\EOF
7873 rm -f conftest.frag conftest.h
7874 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7875 cat conftest.in >> conftest.h
7876 rm -f conftest.in
7877 if cmp -s $ac_file conftest.h 2>/dev/null; then
7878 echo "$ac_file is unchanged"
7879 rm -f conftest.h
7880 else
7881 # Remove last slash and all that follows it. Not all systems have dirname.
7882 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7883 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7884 # The file is in a subdirectory.
7885 test ! -d "$ac_dir" && mkdir "$ac_dir"
7887 rm -f $ac_file
7888 mv conftest.h $ac_file
7890 fi; done
7894 cat >> $CONFIG_STATUS <<EOF
7895 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
7896 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
7899 cat >> $CONFIG_STATUS <<\EOF
7900 srcdir=$ac_given_srcdir
7901 while test -n "$ac_sources"; do
7902 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7903 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7905 echo "linking $srcdir/$ac_source to $ac_dest"
7907 if test ! -r $srcdir/$ac_source; then
7908 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7910 rm -f $ac_dest
7912 # Make relative symlinks.
7913 # Remove last slash and all that follows it. Not all systems have dirname.
7914 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7915 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7916 # The dest file is in a subdirectory.
7917 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7918 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7919 # A "../" for each directory in $ac_dest_dir_suffix.
7920 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7921 else
7922 ac_dest_dir_suffix= ac_dots=
7925 case "$srcdir" in
7926 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7927 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7928 esac
7930 # Make a symlink if possible; otherwise try a hard link.
7931 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7932 ln $srcdir/$ac_source $ac_dest; then :
7933 else
7934 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7936 done
7938 cat >> $CONFIG_STATUS <<EOF
7940 srcdir=${srcdir}
7941 host=${host}
7942 target=${target}
7943 with_multisubdir=${with_multisubdir}
7944 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7945 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7946 libgcj_basedir=${libgcj_basedir}
7947 CC="${CC}"
7948 CXX="${CXX}"
7951 cat >> $CONFIG_STATUS <<\EOF
7952 am_indx=1
7953 for am_file in include/config.h gcj/libgcj-config.h; do
7954 case " $CONFIG_HEADERS " in
7955 *" $am_file "*)
7956 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7958 esac
7959 am_indx=`expr "$am_indx" + 1`
7960 done
7961 # Only add multilib support code if we just rebuilt top-level Makefile.
7962 case " $CONFIG_FILES " in
7963 *" Makefile "*)
7964 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7965 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7967 esac
7969 # Make subdirectories and `.d' files. Look in both srcdir and
7970 # builddir for the .java files.
7971 h=`${PWDCMD-pwd}`
7972 : > deps.mk
7973 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
7974 find . \( -name '*.java' -o -name '*.cc' \) -print) | \
7975 fgrep -v testsuite | \
7976 sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
7977 while read f; do
7978 echo "include $f" >> deps.mk
7979 test -f $f || {
7981 d=`echo $f | sed -e 's,/[^/]*$,,'`
7983 if test ! -d $d; then
7984 $libgcj_basedir/../mkinstalldirs $d
7986 echo > $f
7988 done
7990 exit 0
7992 chmod +x $CONFIG_STATUS
7993 rm -fr confdefs* $ac_clean_files
7994 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7996 if test "$no_recursion" != yes; then
7998 # Remove --cache-file and --srcdir arguments so they do not pile up.
7999 ac_sub_configure_args=
8000 ac_prev=
8001 for ac_arg in $ac_configure_args; do
8002 if test -n "$ac_prev"; then
8003 ac_prev=
8004 continue
8006 case "$ac_arg" in
8007 -cache-file | --cache-file | --cache-fil | --cache-fi \
8008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8009 ac_prev=cache_file ;;
8010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8014 ac_prev=srcdir ;;
8015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8017 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8018 esac
8019 done
8021 for ac_config_dir in $DIRLTDL; do
8023 # Do not complain, so a configure script can configure whichever
8024 # parts of a large source tree are present.
8025 if test ! -d $srcdir/$ac_config_dir; then
8026 continue
8029 echo configuring in $ac_config_dir
8031 case "$srcdir" in
8032 .) ;;
8034 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8035 else
8036 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8039 esac
8041 ac_popdir=`pwd`
8042 cd $ac_config_dir
8044 # A "../" for each directory in /$ac_config_dir.
8045 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8047 case "$srcdir" in
8048 .) # No --srcdir option. We are building in place.
8049 ac_sub_srcdir=$srcdir ;;
8050 /*) # Absolute path.
8051 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8052 *) # Relative path.
8053 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8054 esac
8056 # Check for guested configure; otherwise get Cygnus style configure.
8057 if test -f $ac_sub_srcdir/configure; then
8058 ac_sub_configure=$ac_sub_srcdir/configure
8059 elif test -f $ac_sub_srcdir/configure.in; then
8060 ac_sub_configure=$ac_configure
8061 else
8062 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8063 ac_sub_configure=
8066 # The recursion is here.
8067 if test -n "$ac_sub_configure"; then
8069 # Make the cache file name correct relative to the subdirectory.
8070 case "$cache_file" in
8071 /*) ac_sub_cache_file=$cache_file ;;
8072 *) # Relative path.
8073 ac_sub_cache_file="$ac_dots$cache_file" ;;
8074 esac
8075 case "$ac_given_INSTALL" in
8076 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8077 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8078 esac
8080 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8081 # The eval makes quoting arguments work.
8082 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8083 then :
8084 else
8085 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
8089 cd $ac_popdir
8090 done