2004-07-18 Matthias Klose <doko@debian.org>
[official-gcc.git] / libjava / configure
blob50339f82577dd8344fb6a3e83e8b821949410396
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-version-specific-runtime-libs
23 specify that runtime libraries should be installed in a compiler-specific
24 directory "
25 ac_help="$ac_help
26 --enable-multilib build many library versions (default)"
27 ac_help="$ac_help
28 --enable-maintainer-mode enable make rules and dependencies not useful
29 (and sometimes confusing) to the casual installer"
30 ac_help="$ac_help
31 --enable-shared[=PKGS] build shared libraries [default=yes]"
32 ac_help="$ac_help
33 --enable-static[=PKGS] build static libraries [default=yes]"
34 ac_help="$ac_help
35 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
36 ac_help="$ac_help
37 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
38 ac_help="$ac_help
39 --disable-libtool-lock avoid locking (might break parallel builds)"
40 ac_help="$ac_help
41 --with-pic try to use only PIC/non-PIC objects [default=use both]"
42 ac_help="$ac_help
43 --disable-getenv-properties
44 don't set system properties from GCJ_PROPERTIES"
45 ac_help="$ac_help
46 --enable-hash-synchronization
47 use global hash table for monitor locks"
48 ac_help="$ac_help
49 --enable-libgcj-multifile
50 allow compilation of several files at once"
51 ac_help="$ac_help
52 --with-win32-nlsapi=ansi, unicows or unicode
53 native MinGW libgcj Win32 OS API [ansi]"
54 ac_help="$ac_help
55 --enable-libgcj-debug enable runtime debugging code"
56 ac_help="$ac_help
57 --enable-interpreter enable interpreter"
58 ac_help="$ac_help
59 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
60 ac_help="$ac_help
61 --disable-java-net disable java.net"
62 ac_help="$ac_help
63 --without-libffi don't use libffi"
64 ac_help="$ac_help
65 --disable-jvmpi disable JVMPI support"
66 ac_help="$ac_help
67 --with-ecos enable runtime eCos target support"
68 ac_help="$ac_help
69 --with-system-zlib use installed libz"
70 ac_help="$ac_help
71 --with-x use the X Window System"
72 ac_help="$ac_help
73 --enable-java-awt list of AWT peer implementations to be built"
74 ac_help="$ac_help
75 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK"
76 ac_help="$ac_help
77 --enable-java-gc=TYPE choose garbage collector [boehm]"
78 ac_help="$ac_help
79 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
84 build=NONE
85 cache_file=./config.cache
86 exec_prefix=NONE
87 host=NONE
88 no_create=
89 nonopt=NONE
90 no_recursion=
91 prefix=NONE
92 program_prefix=NONE
93 program_suffix=NONE
94 program_transform_name=s,x,x,
95 silent=
96 site=
97 srcdir=
98 target=NONE
99 verbose=
100 x_includes=NONE
101 x_libraries=NONE
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
115 # Initialize some other variables.
116 subdirs=
117 MFLAGS= MAKEFLAGS=
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
120 ac_max_here_lines=12
122 ac_prev=
123 for ac_option
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
129 ac_prev=
130 continue
133 case "$ac_option" in
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 *) ac_optarg= ;;
136 esac
138 # Accept the important Cygnus configure options, so we can diagnose typos.
140 case "$ac_option" in
142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
143 ac_prev=bindir ;;
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
147 -build | --build | --buil | --bui | --bu)
148 ac_prev=build ;;
149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150 build="$ac_optarg" ;;
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160 ac_prev=datadir ;;
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162 | --da=*)
163 datadir="$ac_optarg" ;;
165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 case "$ac_option" in
182 *=*) ;;
183 *) ac_optarg=yes ;;
184 esac
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
198 with_gas=yes ;;
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
203 cat << EOF
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
206 Configuration:
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
214 [$ac_default_prefix]
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 [same as prefix]
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
221 [PREFIX/share]
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 [PREFIX/com]
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
237 cat << EOF
238 Host type:
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
253 exit 0 ;;
255 -host | --host | --hos | --ho)
256 ac_prev=host ;;
257 -host=* | --host=* | --hos=* | --ho=*)
258 host="$ac_optarg" ;;
260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
268 ac_prev=infodir ;;
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
272 -libdir | --libdir | --libdi | --libd)
273 ac_prev=libdir ;;
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294 ac_prev=mandir ;;
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
298 -nfp | --nfp | --nf)
299 # Obsolete; use --without-fp.
300 with_fp=no ;;
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303 | --no-cr | --no-c)
304 no_create=yes ;;
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 no_recursion=yes ;;
310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320 ac_prev=prefix ;;
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
357 silent=yes ;;
359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360 ac_prev=sbindir ;;
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362 | --sbi=* | --sb=*)
363 sbindir="$ac_optarg" ;;
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
368 | --sha | --sh)
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373 | --sha=* | --sh=*)
374 sharedstatedir="$ac_optarg" ;;
376 -site | --site | --sit)
377 ac_prev=site ;;
378 -site=* | --site=* | --sit=*)
379 site="$ac_optarg" ;;
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 ac_prev=srcdir ;;
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
393 -target | --target | --targe | --targ | --tar | --ta | --t)
394 ac_prev=target ;;
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 verbose=yes ;;
401 -version | --version | --versio | --versi | --vers)
402 echo "configure generated by autoconf version 2.13"
403 exit 0 ;;
405 -with-* | --with-*)
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 case "$ac_option" in
413 *=*) ;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
427 --x)
428 # Obsolete; use --with-x.
429 with_x=yes ;;
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 nonopt="$ac_option"
458 esac
459 done
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
468 # 0 standard input
469 # 1 file creation
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
476 exec 6>/dev/null
477 else
478 exec 6>&1
480 exec 5>./config.log
482 echo "\
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
485 " 1>&5
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
489 ac_configure_args=
490 for ac_arg
492 case "$ac_arg" in
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 esac
501 done
503 # NLS nuisances.
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 echo > confdefs.h
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=java/lang/System.java
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
526 ac_prog=$0
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 srcdir=$ac_confdir
530 if test ! -r $srcdir/$ac_unique_file; then
531 srcdir=..
533 else
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 else
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549 else
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
556 . "$ac_site_file"
558 done
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
562 . $cache_file
563 else
564 echo "creating cache $cache_file"
565 > $cache_file
568 ac_ext=c
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
575 ac_exeext=
576 ac_objext=o
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580 ac_n= ac_c='
581 ' ac_t=' '
582 else
583 ac_n=-n ac_c= ac_t=
585 else
586 ac_n= ac_c='\c' ac_t=
591 # Check whether --with-target-subdir or --without-target-subdir was given.
592 if test "${with_target_subdir+set}" = set; then
593 withval="$with_target_subdir"
599 # When building with srcdir == objdir, links to the source files will
600 # be created in directories within the target_subdir. We have to
601 # adjust toplevel_srcdir accordingly, so that configure finds
602 # install-sh and other auxiliary files that live in the top-level
603 # source directory.
604 if test "${srcdir}" = "."; then
605 if test -z "${with_target_subdir}"; then
606 toprel=".."
607 else
608 if test "${with_target_subdir}" != "."; then
609 toprel="${with_multisrctop}../.."
610 else
611 toprel="${with_multisrctop}.."
614 else
615 toprel=".."
618 libgcj_basedir=$srcdir/$toprel/./libjava
621 ac_aux_dir=
622 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
623 if test -f $ac_dir/install-sh; then
624 ac_aux_dir=$ac_dir
625 ac_install_sh="$ac_aux_dir/install-sh -c"
626 break
627 elif test -f $ac_dir/install.sh; then
628 ac_aux_dir=$ac_dir
629 ac_install_sh="$ac_aux_dir/install.sh -c"
630 break
632 done
633 if test -z "$ac_aux_dir"; then
634 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
636 ac_config_guess=$ac_aux_dir/config.guess
637 ac_config_sub=$ac_aux_dir/config.sub
638 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
640 if :; then :; else
641 # This overrides the previous occurrence for automake, but not for
642 # autoconf, which is exactly what we want.
643 ac_aux_dir=
644 for ac_dir in .. $srcdir/..; do
645 if test -f $ac_dir/install-sh; then
646 ac_aux_dir=$ac_dir
647 ac_install_sh="$ac_aux_dir/install-sh -c"
648 break
649 elif test -f $ac_dir/install.sh; then
650 ac_aux_dir=$ac_dir
651 ac_install_sh="$ac_aux_dir/install.sh -c"
652 break
654 done
655 if test -z "$ac_aux_dir"; then
656 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
658 ac_config_guess=$ac_aux_dir/config.guess
659 ac_config_sub=$ac_aux_dir/config.sub
660 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
665 # Do some error checking and defaulting for the host and target type.
666 # The inputs are:
667 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
669 # The rules are:
670 # 1. You are not allowed to specify --host, --target, and nonopt at the
671 # same time.
672 # 2. Host defaults to nonopt.
673 # 3. If nonopt is not specified, then host defaults to the current host,
674 # as determined by config.guess.
675 # 4. Target and build default to nonopt.
676 # 5. If nonopt is not specified, then target and build default to host.
678 # The aliases save the names the user supplied, while $host etc.
679 # will get canonicalized.
680 case $host---$target---$nonopt in
681 NONE---*---* | *---NONE---* | *---*---NONE) ;;
682 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
683 esac
686 # Make sure we can run config.sub.
687 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 echo $ac_n "checking host system type""... $ac_c" 1>&6
692 echo "configure:693: checking host system type" >&5
694 host_alias=$host
695 case "$host_alias" in
696 NONE)
697 case $nonopt in
698 NONE)
699 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
700 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
701 fi ;;
702 *) host_alias=$nonopt ;;
703 esac ;;
704 esac
706 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
707 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$host" 1>&6
712 echo $ac_n "checking target system type""... $ac_c" 1>&6
713 echo "configure:714: checking target system type" >&5
715 target_alias=$target
716 case "$target_alias" in
717 NONE)
718 case $nonopt in
719 NONE) target_alias=$host_alias ;;
720 *) target_alias=$nonopt ;;
721 esac ;;
722 esac
724 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
725 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$target" 1>&6
730 echo $ac_n "checking build system type""... $ac_c" 1>&6
731 echo "configure:732: checking build system type" >&5
733 build_alias=$build
734 case "$build_alias" in
735 NONE)
736 case $nonopt in
737 NONE) build_alias=$host_alias ;;
738 *) build_alias=$nonopt ;;
739 esac ;;
740 esac
742 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
743 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$build" 1>&6
748 test "$host_alias" != "$target_alias" &&
749 test "$program_prefix$program_suffix$program_transform_name" = \
750 NONENONEs,x,x, &&
751 program_prefix=${target_alias}-
753 case ${build_alias} in
754 "") build_noncanonical=${build} ;;
755 *) build_noncanonical=${build_alias} ;;
756 esac
758 case ${host_alias} in
759 "") host_noncanonical=${build_noncanonical} ;;
760 *) host_noncanonical=${host_alias} ;;
761 esac
763 case ${target_alias} in
764 "") target_noncanonical=${host_noncanonical} ;;
765 *) target_noncanonical=${target_alias} ;;
766 esac
771 # This works around the fact that libtool configuration may change LD
772 # for this particular configuration, but some shells, instead of
773 # keeping the changes in LD private, export them just because LD is
774 # exported.
775 ORIGINAL_LD_FOR_MULTILIBS=$LD
777 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
778 echo "configure:779: checking whether ln -s works" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781 else
782 rm -f conftestdata
783 if ln -s X conftestdata 2>/dev/null
784 then
785 rm -f conftestdata
786 ac_cv_prog_LN_S="ln -s"
787 else
788 ac_cv_prog_LN_S=ln
791 LN_S="$ac_cv_prog_LN_S"
792 if test "$ac_cv_prog_LN_S" = "ln -s"; then
793 echo "$ac_t""yes" 1>&6
794 else
795 echo "$ac_t""no" 1>&6
799 # This works around an automake problem.
800 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
803 # Check whether --with-cross-host or --without-cross-host was given.
804 if test "${with_cross_host+set}" = set; then
805 withval="$with_cross_host"
810 # Check whether --with-newlib or --without-newlib was given.
811 if test "${with_newlib+set}" = set; then
812 withval="$with_newlib"
817 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
818 if test "${enable_version_specific_runtime_libs+set}" = set; then
819 enableval="$enable_version_specific_runtime_libs"
820 case "$enableval" in
821 yes) version_specific_libs=yes ;;
822 no) version_specific_libs=no ;;
823 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
824 esac
825 else
826 version_specific_libs=no
831 # Check whether --enable-multilib or --disable-multilib was given.
832 if test "${enable_multilib+set}" = set; then
833 enableval="$enable_multilib"
834 case "${enableval}" in
835 yes) multilib=yes ;;
836 no) multilib=no ;;
837 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
838 esac
839 else
840 multilib=yes
846 # Extract the first word of "gcc", so it can be a program name with args.
847 set dummy gcc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
852 else
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
855 else
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 ac_dummy="$PATH"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 ac_cv_prog_CC="gcc"
862 break
864 done
865 IFS="$ac_save_ifs"
868 CC="$ac_cv_prog_CC"
869 if test -n "$CC"; then
870 echo "$ac_t""$CC" 1>&6
871 else
872 echo "$ac_t""no" 1>&6
875 if test -z "$CC"; then
876 # Extract the first word of "cc", so it can be a program name with args.
877 set dummy cc; ac_word=$2
878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
879 echo "configure:880: checking for $ac_word" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
882 else
883 if test -n "$CC"; then
884 ac_cv_prog_CC="$CC" # Let the user override the test.
885 else
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
887 ac_prog_rejected=no
888 ac_dummy="$PATH"
889 for ac_dir in $ac_dummy; do
890 test -z "$ac_dir" && ac_dir=.
891 if test -f $ac_dir/$ac_word; then
892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
893 ac_prog_rejected=yes
894 continue
896 ac_cv_prog_CC="cc"
897 break
899 done
900 IFS="$ac_save_ifs"
901 if test $ac_prog_rejected = yes; then
902 # We found a bogon in the path, so make sure we never use it.
903 set dummy $ac_cv_prog_CC
904 shift
905 if test $# -gt 0; then
906 # We chose a different compiler from the bogus one.
907 # However, it has the same basename, so the bogon will be chosen
908 # first if we set CC to just the basename; use the full file name.
909 shift
910 set dummy "$ac_dir/$ac_word" "$@"
911 shift
912 ac_cv_prog_CC="$@"
917 CC="$ac_cv_prog_CC"
918 if test -n "$CC"; then
919 echo "$ac_t""$CC" 1>&6
920 else
921 echo "$ac_t""no" 1>&6
924 if test -z "$CC"; then
925 case "`uname -s`" in
926 *win32* | *WIN32*)
927 # Extract the first word of "cl", so it can be a program name with args.
928 set dummy cl; ac_word=$2
929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
930 echo "configure:931: checking for $ac_word" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
933 else
934 if test -n "$CC"; then
935 ac_cv_prog_CC="$CC" # Let the user override the test.
936 else
937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
938 ac_dummy="$PATH"
939 for ac_dir in $ac_dummy; do
940 test -z "$ac_dir" && ac_dir=.
941 if test -f $ac_dir/$ac_word; then
942 ac_cv_prog_CC="cl"
943 break
945 done
946 IFS="$ac_save_ifs"
949 CC="$ac_cv_prog_CC"
950 if test -n "$CC"; then
951 echo "$ac_t""$CC" 1>&6
952 else
953 echo "$ac_t""no" 1>&6
956 esac
958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
962 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
963 echo "configure:964: checking whether we are using GNU C" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
966 else
967 cat > conftest.c <<EOF
968 #ifdef __GNUC__
969 yes;
970 #endif
972 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
973 ac_cv_prog_gcc=yes
974 else
975 ac_cv_prog_gcc=no
979 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
981 if test $ac_cv_prog_gcc = yes; then
982 GCC=yes
983 else
984 GCC=
987 ac_test_CFLAGS="${CFLAGS+set}"
988 ac_save_CFLAGS="$CFLAGS"
989 CFLAGS=
990 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${CC-cc} accepts -g" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
994 else
995 echo 'void f(){}' > conftest.c
996 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
997 ac_cv_prog_cc_g=yes
998 else
999 ac_cv_prog_cc_g=no
1001 rm -f conftest*
1005 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1006 if test "$ac_test_CFLAGS" = set; then
1007 CFLAGS="$ac_save_CFLAGS"
1008 elif test $ac_cv_prog_cc_g = yes; then
1009 if test "$GCC" = yes; then
1010 CFLAGS="-g -O2"
1011 else
1012 CFLAGS="-g"
1014 else
1015 if test "$GCC" = yes; then
1016 CFLAGS="-O2"
1017 else
1018 CFLAGS=
1023 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1024 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1025 # different definition of CXX than other directories, since we don't
1026 # depend on libstdc++-v3 having already been built.
1030 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1031 # flags that come in CXX while configuring libjava. They're different
1032 # from those used for all other target libraries. If CXX is set in
1033 # the environment, respect that here.
1034 glibjava_CXX=$CXX
1035 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1037 # Extract the first word of "$ac_prog", so it can be a program name with args.
1038 set dummy $ac_prog; ac_word=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 echo "configure:1041: checking for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1043 else
1044 if test -n "$glibjava_CXX"; then
1045 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1046 else
1047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1048 ac_dummy="$PATH"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 ac_cv_prog_glibjava_CXX="$ac_prog"
1053 break
1055 done
1056 IFS="$ac_save_ifs"
1059 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1060 if test -n "$glibjava_CXX"; then
1061 echo "$ac_t""$glibjava_CXX" 1>&6
1062 else
1063 echo "$ac_t""no" 1>&6
1066 test -n "$glibjava_CXX" && break
1067 done
1068 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1071 CXX=$glibjava_CXX
1072 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1074 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1075 echo "configure:1076: checking whether we are using GNU C++" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1078 else
1079 cat > conftest.C <<EOF
1080 #ifdef __GNUC__
1081 yes;
1082 #endif
1084 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1085 ac_cv_prog_gxx=yes
1086 else
1087 ac_cv_prog_gxx=no
1091 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1093 if test $ac_cv_prog_gxx = yes; then
1094 GXX=yes
1095 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1096 ac_save_CXXFLAGS="$CXXFLAGS"
1097 CXXFLAGS=
1098 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether ${CXX-g++} accepts -g" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1102 else
1103 echo 'void f(){}' > conftest.cc
1104 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1105 ac_cv_prog_cxx_g=yes
1106 else
1107 ac_cv_prog_cxx_g=no
1109 rm -f conftest*
1113 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1114 if test "$ac_test_CXXFLAGS" = set; then
1115 CXXFLAGS="$ac_save_CXXFLAGS"
1116 elif test $ac_cv_prog_cxx_g = yes; then
1117 CXXFLAGS="-g -O2"
1118 else
1119 CXXFLAGS="-O2"
1121 else
1122 GXX=
1123 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1127 version=0.0.7
1128 # Find a good install program. We prefer a C program (faster),
1129 # so one script is as good as another. But avoid the broken or
1130 # incompatible versions:
1131 # SysV /etc/install, /usr/sbin/install
1132 # SunOS /usr/etc/install
1133 # IRIX /sbin/install
1134 # AIX /bin/install
1135 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1138 # ./install, which can be erroneously created by make from ./install.sh.
1139 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1140 echo "configure:1141: checking for a BSD compatible install" >&5
1141 if test -z "$INSTALL"; then
1142 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1146 for ac_dir in $PATH; do
1147 # Account for people who put trailing slashes in PATH elements.
1148 case "$ac_dir/" in
1149 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1151 # OSF1 and SCO ODT 3.0 have their own names for install.
1152 # Don't use installbsd from OSF since it installs stuff as root
1153 # by default.
1154 for ac_prog in ginstall scoinst install; do
1155 if test -f $ac_dir/$ac_prog; then
1156 if test $ac_prog = install &&
1157 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1158 # AIX install. It has an incompatible calling convention.
1160 else
1161 ac_cv_path_install="$ac_dir/$ac_prog -c"
1162 break 2
1165 done
1167 esac
1168 done
1169 IFS="$ac_save_IFS"
1172 if test "${ac_cv_path_install+set}" = set; then
1173 INSTALL="$ac_cv_path_install"
1174 else
1175 # As a last resort, use the slow shell script. We don't cache a
1176 # path for INSTALL within a source directory, because that will
1177 # break other packages using the cache if that directory is
1178 # removed, or if the path is relative.
1179 INSTALL="$ac_install_sh"
1182 echo "$ac_t""$INSTALL" 1>&6
1184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1185 # It thinks the first close brace ends the variable substitution.
1186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1192 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether build environment is sane" >&5
1194 # Just in case
1195 sleep 1
1196 echo timestamp > conftestfile
1197 # Do `set' in a subshell so we don't clobber the current shell's
1198 # arguments. Must try -L first in case configure is actually a
1199 # symlink; some systems play weird games with the mod time of symlinks
1200 # (eg FreeBSD returns the mod time of the symlink's containing
1201 # directory).
1202 if (
1203 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1204 if test "$*" = "X"; then
1205 # -L didn't work.
1206 set X `ls -t $srcdir/configure conftestfile`
1208 if test "$*" != "X $srcdir/configure conftestfile" \
1209 && test "$*" != "X conftestfile $srcdir/configure"; then
1211 # If neither matched, then we have a broken ls. This can happen
1212 # if, for instance, CONFIG_SHELL is bash and it inherits a
1213 # broken ls alias from the environment. This has actually
1214 # happened. Such a system could not be considered "sane".
1215 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1216 alias in your environment" 1>&2; exit 1; }
1219 test "$2" = conftestfile
1221 then
1222 # Ok.
1224 else
1225 { echo "configure: error: newly created file is older than distributed files!
1226 Check your system clock" 1>&2; exit 1; }
1228 rm -f conftest*
1229 echo "$ac_t""yes" 1>&6
1230 if test "$program_transform_name" = s,x,x,; then
1231 program_transform_name=
1232 else
1233 # Double any \ or $. echo might interpret backslashes.
1234 cat <<\EOF_SED > conftestsed
1235 s,\\,\\\\,g; s,\$,$$,g
1236 EOF_SED
1237 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1238 rm -f conftestsed
1240 test "$program_prefix" != NONE &&
1241 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1242 # Use a double $ so make ignores it.
1243 test "$program_suffix" != NONE &&
1244 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1246 # sed with no file args requires a program.
1247 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1249 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1250 echo "configure:1251: checking whether ${MAKE-make} sets \${MAKE}" >&5
1251 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1252 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255 cat > conftestmake <<\EOF
1256 all:
1257 @echo 'ac_maketemp="${MAKE}"'
1259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1260 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1261 if test -n "$ac_maketemp"; then
1262 eval ac_cv_prog_make_${ac_make}_set=yes
1263 else
1264 eval ac_cv_prog_make_${ac_make}_set=no
1266 rm -f conftestmake
1268 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1269 echo "$ac_t""yes" 1>&6
1270 SET_MAKE=
1271 else
1272 echo "$ac_t""no" 1>&6
1273 SET_MAKE="MAKE=${MAKE-make}"
1277 PACKAGE=libjava
1279 VERSION=$version
1281 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1282 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1284 cat >> confdefs.h <<EOF
1285 #define PACKAGE "$PACKAGE"
1288 cat >> confdefs.h <<EOF
1289 #define VERSION "$VERSION"
1294 missing_dir=`cd $ac_aux_dir && pwd`
1295 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1296 echo "configure:1297: checking for working aclocal" >&5
1297 # Run test in a subshell; some versions of sh will print an error if
1298 # an executable is not found, even if stderr is redirected.
1299 # Redirect stdin to placate older versions of autoconf. Sigh.
1300 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1301 ACLOCAL=aclocal
1302 echo "$ac_t""found" 1>&6
1303 else
1304 ACLOCAL="$missing_dir/missing aclocal"
1305 echo "$ac_t""missing" 1>&6
1308 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1309 echo "configure:1310: checking for working autoconf" >&5
1310 # Run test in a subshell; some versions of sh will print an error if
1311 # an executable is not found, even if stderr is redirected.
1312 # Redirect stdin to placate older versions of autoconf. Sigh.
1313 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1314 AUTOCONF=autoconf
1315 echo "$ac_t""found" 1>&6
1316 else
1317 AUTOCONF="$missing_dir/missing autoconf"
1318 echo "$ac_t""missing" 1>&6
1321 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1322 echo "configure:1323: checking for working automake" >&5
1323 # Run test in a subshell; some versions of sh will print an error if
1324 # an executable is not found, even if stderr is redirected.
1325 # Redirect stdin to placate older versions of autoconf. Sigh.
1326 if (automake --version) < /dev/null > /dev/null 2>&1; then
1327 AUTOMAKE=automake
1328 echo "$ac_t""found" 1>&6
1329 else
1330 AUTOMAKE="$missing_dir/missing automake"
1331 echo "$ac_t""missing" 1>&6
1334 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1335 echo "configure:1336: checking for working autoheader" >&5
1336 # Run test in a subshell; some versions of sh will print an error if
1337 # an executable is not found, even if stderr is redirected.
1338 # Redirect stdin to placate older versions of autoconf. Sigh.
1339 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1340 AUTOHEADER=autoheader
1341 echo "$ac_t""found" 1>&6
1342 else
1343 AUTOHEADER="$missing_dir/missing autoheader"
1344 echo "$ac_t""missing" 1>&6
1347 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1348 echo "configure:1349: checking for working makeinfo" >&5
1349 # Run test in a subshell; some versions of sh will print an error if
1350 # an executable is not found, even if stderr is redirected.
1351 # Redirect stdin to placate older versions of autoconf. Sigh.
1352 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1353 MAKEINFO=makeinfo
1354 echo "$ac_t""found" 1>&6
1355 else
1356 MAKEINFO="$missing_dir/missing makeinfo"
1357 echo "$ac_t""missing" 1>&6
1362 if test $host != $build; then
1363 ac_tool_prefix=${host_alias}-
1364 else
1365 ac_tool_prefix=
1368 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1369 set dummy ${ac_tool_prefix}as; ac_word=$2
1370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1371 echo "configure:1372: checking for $ac_word" >&5
1372 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375 if test -n "$AS"; then
1376 ac_cv_prog_AS="$AS" # Let the user override the test.
1377 else
1378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1379 ac_dummy="$PATH"
1380 for ac_dir in $ac_dummy; do
1381 test -z "$ac_dir" && ac_dir=.
1382 if test -f $ac_dir/$ac_word; then
1383 ac_cv_prog_AS="${ac_tool_prefix}as"
1384 break
1386 done
1387 IFS="$ac_save_ifs"
1388 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1391 AS="$ac_cv_prog_AS"
1392 if test -n "$AS"; then
1393 echo "$ac_t""$AS" 1>&6
1394 else
1395 echo "$ac_t""no" 1>&6
1400 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}ar; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1406 else
1407 if test -n "$AR"; then
1408 ac_cv_prog_AR="$AR" # Let the user override the test.
1409 else
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 ac_dummy="$PATH"
1412 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_prog_AR="${ac_tool_prefix}ar"
1416 break
1418 done
1419 IFS="$ac_save_ifs"
1420 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1423 AR="$ac_cv_prog_AR"
1424 if test -n "$AR"; then
1425 echo "$ac_t""$AR" 1>&6
1426 else
1427 echo "$ac_t""no" 1>&6
1432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1435 echo "configure:1436: checking for $ac_word" >&5
1436 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1438 else
1439 if test -n "$RANLIB"; then
1440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1441 else
1442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1443 ac_dummy="$PATH"
1444 for ac_dir in $ac_dummy; do
1445 test -z "$ac_dir" && ac_dir=.
1446 if test -f $ac_dir/$ac_word; then
1447 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1448 break
1450 done
1451 IFS="$ac_save_ifs"
1454 RANLIB="$ac_cv_prog_RANLIB"
1455 if test -n "$RANLIB"; then
1456 echo "$ac_t""$RANLIB" 1>&6
1457 else
1458 echo "$ac_t""no" 1>&6
1462 if test -z "$ac_cv_prog_RANLIB"; then
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "ranlib", so it can be a program name with args.
1465 set dummy ranlib; ac_word=$2
1466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1467 echo "configure:1468: checking for $ac_word" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470 else
1471 if test -n "$RANLIB"; then
1472 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1473 else
1474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1475 ac_dummy="$PATH"
1476 for ac_dir in $ac_dummy; do
1477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_prog_RANLIB="ranlib"
1480 break
1482 done
1483 IFS="$ac_save_ifs"
1484 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1487 RANLIB="$ac_cv_prog_RANLIB"
1488 if test -n "$RANLIB"; then
1489 echo "$ac_t""$RANLIB" 1>&6
1490 else
1491 echo "$ac_t""no" 1>&6
1494 else
1495 RANLIB=":"
1500 # Find a good install program. We prefer a C program (faster),
1501 # so one script is as good as another. But avoid the broken or
1502 # incompatible versions:
1503 # SysV /etc/install, /usr/sbin/install
1504 # SunOS /usr/etc/install
1505 # IRIX /sbin/install
1506 # AIX /bin/install
1507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1510 # ./install, which can be erroneously created by make from ./install.sh.
1511 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1512 echo "configure:1513: checking for a BSD compatible install" >&5
1513 if test -z "$INSTALL"; then
1514 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1518 for ac_dir in $PATH; do
1519 # Account for people who put trailing slashes in PATH elements.
1520 case "$ac_dir/" in
1521 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1523 # OSF1 and SCO ODT 3.0 have their own names for install.
1524 # Don't use installbsd from OSF since it installs stuff as root
1525 # by default.
1526 for ac_prog in ginstall scoinst install; do
1527 if test -f $ac_dir/$ac_prog; then
1528 if test $ac_prog = install &&
1529 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1530 # AIX install. It has an incompatible calling convention.
1532 else
1533 ac_cv_path_install="$ac_dir/$ac_prog -c"
1534 break 2
1537 done
1539 esac
1540 done
1541 IFS="$ac_save_IFS"
1544 if test "${ac_cv_path_install+set}" = set; then
1545 INSTALL="$ac_cv_path_install"
1546 else
1547 # As a last resort, use the slow shell script. We don't cache a
1548 # path for INSTALL within a source directory, because that will
1549 # break other packages using the cache if that directory is
1550 # removed, or if the path is relative.
1551 INSTALL="$ac_install_sh"
1554 echo "$ac_t""$INSTALL" 1>&6
1556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1557 # It thinks the first close brace ends the variable substitution.
1558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1565 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1566 echo "configure:1567: checking whether to enable maintainer-specific portions of Makefiles" >&5
1567 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1568 if test "${enable_maintainer_mode+set}" = set; then
1569 enableval="$enable_maintainer_mode"
1570 USE_MAINTAINER_MODE=$enableval
1571 else
1572 USE_MAINTAINER_MODE=no
1575 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1578 if test $USE_MAINTAINER_MODE = yes; then
1579 MAINTAINER_MODE_TRUE=
1580 MAINTAINER_MODE_FALSE='#'
1581 else
1582 MAINTAINER_MODE_TRUE='#'
1583 MAINTAINER_MODE_FALSE=
1585 MAINT=$MAINTAINER_MODE_TRUE
1589 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1590 echo "configure:1591: checking for Cygwin environment" >&5
1591 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1593 else
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1598 int main() {
1600 #ifndef __CYGWIN__
1601 #define __CYGWIN__ __CYGWIN32__
1602 #endif
1603 return __CYGWIN__;
1604 ; return 0; }
1606 if { (eval echo configure:1607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1607 rm -rf conftest*
1608 ac_cv_cygwin=yes
1609 else
1610 echo "configure: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1612 rm -rf conftest*
1613 ac_cv_cygwin=no
1615 rm -f conftest*
1616 rm -f conftest*
1619 echo "$ac_t""$ac_cv_cygwin" 1>&6
1620 CYGWIN=
1621 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1622 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1623 echo "configure:1624: checking for mingw32 environment" >&5
1624 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1626 else
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1631 int main() {
1632 return __MINGW32__;
1633 ; return 0; }
1635 if { (eval echo configure:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1636 rm -rf conftest*
1637 ac_cv_mingw32=yes
1638 else
1639 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5
1641 rm -rf conftest*
1642 ac_cv_mingw32=no
1644 rm -f conftest*
1645 rm -f conftest*
1648 echo "$ac_t""$ac_cv_mingw32" 1>&6
1649 MINGW32=
1650 test "$ac_cv_mingw32" = yes && MINGW32=yes
1653 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1654 echo "configure:1655: checking for executable suffix" >&5
1655 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1659 ac_cv_exeext=.exe
1660 else
1661 rm -f conftest*
1662 echo 'int main () { return 0; }' > conftest.$ac_ext
1663 ac_cv_exeext=
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1665 for file in conftest.*; do
1666 case $file in
1667 *.$ac_ext | *.c | *.o | *.obj) ;;
1668 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1669 esac
1670 done
1671 else
1672 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1674 rm -f conftest*
1675 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1679 EXEEXT=""
1680 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1681 echo "$ac_t""${ac_cv_exeext}" 1>&6
1682 ac_exeext=$EXEEXT
1685 # configure.host sets the following important variables
1686 # libgcj_cflags - host specific C compiler flags
1687 # libgcj_cxxflags - host specific C++ compiler flags
1688 # libgcj_javaflags - host specific Java compiler flags
1690 libgcj_cflags=
1691 libgcj_cxxflags=
1692 libgcj_javaflags=
1694 . ${srcdir}/configure.host
1696 LIBGCJ_CFLAGS="${libgcj_cflags}"
1697 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1698 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1707 # Only use libltdl for non-newlib builds.
1708 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
1709 case $enable_ltdl_convenience in
1710 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1711 "") enable_ltdl_convenience=yes
1712 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1713 esac
1714 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1715 INCLTDL='-I${top_srcdir}/''libltdl'
1718 DIRLTDL=libltdl
1719 cat >> confdefs.h <<\EOF
1720 #define USE_LTDL 1
1723 # Sigh. Libtool's macro doesn't do the right thing.
1724 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1725 # FIXME: this is a hack.
1726 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1727 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1732 # Check whether --enable-shared or --disable-shared was given.
1733 if test "${enable_shared+set}" = set; then
1734 enableval="$enable_shared"
1735 p=${PACKAGE-default}
1736 case $enableval in
1737 yes) enable_shared=yes ;;
1738 no) enable_shared=no ;;
1740 enable_shared=no
1741 # Look at the argument we got. We use all the common list separators.
1742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1743 for pkg in $enableval; do
1744 if test "X$pkg" = "X$p"; then
1745 enable_shared=yes
1747 done
1748 IFS="$ac_save_ifs"
1750 esac
1751 else
1752 enable_shared=yes
1755 # Check whether --enable-static or --disable-static was given.
1756 if test "${enable_static+set}" = set; then
1757 enableval="$enable_static"
1758 p=${PACKAGE-default}
1759 case $enableval in
1760 yes) enable_static=yes ;;
1761 no) enable_static=no ;;
1763 enable_static=no
1764 # Look at the argument we got. We use all the common list separators.
1765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1766 for pkg in $enableval; do
1767 if test "X$pkg" = "X$p"; then
1768 enable_static=yes
1770 done
1771 IFS="$ac_save_ifs"
1773 esac
1774 else
1775 enable_static=yes
1778 # Check whether --enable-fast-install or --disable-fast-install was given.
1779 if test "${enable_fast_install+set}" = set; then
1780 enableval="$enable_fast_install"
1781 p=${PACKAGE-default}
1782 case $enableval in
1783 yes) enable_fast_install=yes ;;
1784 no) enable_fast_install=no ;;
1786 enable_fast_install=no
1787 # Look at the argument we got. We use all the common list separators.
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1789 for pkg in $enableval; do
1790 if test "X$pkg" = "X$p"; then
1791 enable_fast_install=yes
1793 done
1794 IFS="$ac_save_ifs"
1796 esac
1797 else
1798 enable_fast_install=yes
1801 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1802 if test "${with_gnu_ld+set}" = set; then
1803 withval="$with_gnu_ld"
1804 test "$withval" = no || with_gnu_ld=yes
1805 else
1806 with_gnu_ld=no
1809 ac_prog=ld
1810 if test "$GCC" = yes; then
1811 # Check if gcc -print-prog-name=ld gives a path.
1812 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1813 echo "configure:1814: checking for ld used by GCC" >&5
1814 case $host in
1815 *-*-mingw*)
1816 # gcc leaves a trailing carriage return which upsets mingw
1817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1820 esac
1821 case $ac_prog in
1822 # Accept absolute paths.
1823 [\\/]* | [A-Za-z]:[\\/]*)
1824 re_direlt='/[^/][^/]*/\.\./'
1825 # Canonicalize the path of ld
1826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1829 done
1830 test -z "$LD" && LD="$ac_prog"
1833 # If it fails, then pretend we aren't using GCC.
1834 ac_prog=ld
1837 # If it is relative, then search for the first ld in PATH.
1838 with_gnu_ld=unknown
1840 esac
1841 elif test "$with_gnu_ld" = yes; then
1842 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1843 echo "configure:1844: checking for GNU ld" >&5
1844 else
1845 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1846 echo "configure:1847: checking for non-GNU ld" >&5
1848 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1850 else
1851 if test -z "$LD"; then
1852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1853 for ac_dir in $PATH; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1856 lt_cv_path_LD="$ac_dir/$ac_prog"
1857 # Check to see if the program is GNU ld. I'd rather use --version,
1858 # but apparently some GNU ld's only accept -v.
1859 # Break only if it was the GNU/non-GNU ld that we prefer.
1860 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1861 test "$with_gnu_ld" != no && break
1862 else
1863 test "$with_gnu_ld" != yes && break
1866 done
1867 IFS="$ac_save_ifs"
1868 else
1869 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1873 LD="$lt_cv_path_LD"
1874 if test -n "$LD"; then
1875 echo "$ac_t""$LD" 1>&6
1876 else
1877 echo "$ac_t""no" 1>&6
1879 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1880 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1881 echo "configure:1882: checking if the linker ($LD) is GNU ld" >&5
1882 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1886 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1887 lt_cv_prog_gnu_ld=yes
1888 else
1889 lt_cv_prog_gnu_ld=no
1893 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1894 with_gnu_ld=$lt_cv_prog_gnu_ld
1897 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $LD option to reload object files" >&5
1899 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1901 else
1902 lt_cv_ld_reload_flag='-r'
1905 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1906 reload_flag=$lt_cv_ld_reload_flag
1907 test -n "$reload_flag" && reload_flag=" $reload_flag"
1909 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1910 echo "configure:1911: checking for BSD-compatible nm" >&5
1911 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 if test -n "$NM"; then
1915 # Let the user override the test.
1916 lt_cv_path_NM="$NM"
1917 else
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1919 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1920 test -z "$ac_dir" && ac_dir=.
1921 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1922 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1923 # Check to see if the nm accepts a BSD-compat flag.
1924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1925 # nm: unknown option "B" ignored
1926 # Tru64's nm complains that /dev/null is an invalid object file
1927 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1928 lt_cv_path_NM="$tmp_nm -B"
1929 break
1930 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1931 lt_cv_path_NM="$tmp_nm -p"
1932 break
1933 else
1934 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1935 continue # so that we can try to find one that supports BSD flags
1938 done
1939 IFS="$ac_save_ifs"
1940 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1944 NM="$lt_cv_path_NM"
1945 echo "$ac_t""$NM" 1>&6
1947 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1948 echo "configure:1949: checking how to recognise dependant libraries" >&5
1949 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1951 else
1952 lt_cv_file_magic_cmd='$MAGIC_CMD'
1953 lt_cv_file_magic_test_file=
1954 lt_cv_deplibs_check_method='unknown'
1955 # Need to set the preceding variable on all platforms that support
1956 # interlibrary dependencies.
1957 # 'none' -- dependencies not supported.
1958 # `unknown' -- same as none, but documents that we really don't know.
1959 # 'pass_all' -- all dependencies passed with no checks.
1960 # 'test_compile' -- check by making test program.
1961 # 'file_magic [regex]' -- check by looking for files in library path
1962 # which responds to the $file_magic_cmd with a given egrep regex.
1963 # If you have `file' or equivalent on your system and you're not sure
1964 # whether `pass_all' will *always* work, you probably want this one.
1966 case $host_os in
1967 aix*)
1968 lt_cv_deplibs_check_method=pass_all
1971 beos*)
1972 lt_cv_deplibs_check_method=pass_all
1975 bsdi4*)
1976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1977 lt_cv_file_magic_cmd='/usr/bin/file -L'
1978 lt_cv_file_magic_test_file=/shlib/libc.so
1981 cygwin* | mingw* |pw32*)
1982 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1983 lt_cv_file_magic_cmd='$OBJDUMP -f'
1986 darwin* | rhapsody*)
1987 # this will be overwritten by pass_all, but leave it in just in case
1988 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1989 lt_cv_file_magic_cmd='/usr/bin/file -L'
1990 case "$host_os" in
1991 rhapsody* | darwin1.012)
1992 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1994 *) # Darwin 1.3 on
1995 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1997 esac
1998 lt_cv_deplibs_check_method=pass_all
2001 freebsd* | kfreebsd*-gnu)
2002 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2003 case $host_cpu in
2004 i*86 )
2005 # Not sure whether the presence of OpenBSD here was a mistake.
2006 # Let's accept both of them until this is cleared up.
2007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2008 lt_cv_file_magic_cmd=/usr/bin/file
2009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2011 esac
2012 else
2013 lt_cv_deplibs_check_method=pass_all
2017 gnu*)
2018 lt_cv_deplibs_check_method=pass_all
2021 hpux10.20*|hpux11*)
2022 case $host_cpu in
2023 hppa*)
2024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2025 lt_cv_file_magic_cmd=/usr/bin/file
2026 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2028 ia64*)
2029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2030 lt_cv_file_magic_cmd=/usr/bin/file
2031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2033 esac
2036 irix5* | irix6*)
2037 case $host_os in
2038 irix5*)
2039 # this will be overridden with pass_all, but let us keep it just in case
2040 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2043 case $LD in
2044 *-32|*"-32 ") libmagic=32-bit;;
2045 *-n32|*"-n32 ") libmagic=N32;;
2046 *-64|*"-64 ") libmagic=64-bit;;
2047 *) libmagic=never-match;;
2048 esac
2049 # this will be overridden with pass_all, but let us keep it just in case
2050 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2052 esac
2053 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2054 lt_cv_deplibs_check_method=pass_all
2057 # This must be Linux ELF.
2058 linux-gnu*)
2059 case $host_cpu in
2060 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2061 lt_cv_deplibs_check_method=pass_all ;;
2063 # glibc up to 2.1.1 does not perform some relocations on ARM
2064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2065 esac
2066 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2069 netbsd* | knetbsd*-gnu)
2070 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2071 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2072 else
2073 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2077 newsos6)
2078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2079 lt_cv_file_magic_cmd=/usr/bin/file
2080 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2083 osf3* | osf4* | osf5*)
2084 # this will be overridden with pass_all, but let us keep it just in case
2085 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2086 lt_cv_file_magic_test_file=/shlib/libc.so
2087 lt_cv_deplibs_check_method=pass_all
2090 sco3.2v5*)
2091 lt_cv_deplibs_check_method=pass_all
2094 solaris*)
2095 lt_cv_deplibs_check_method=pass_all
2096 lt_cv_file_magic_test_file=/lib/libc.so
2099 sysv5uw[78]* | sysv4*uw2*)
2100 lt_cv_deplibs_check_method=pass_all
2103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2104 case $host_vendor in
2105 ncr)
2106 lt_cv_deplibs_check_method=pass_all
2108 motorola)
2109 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]'
2110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2112 esac
2114 esac
2118 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2119 file_magic_cmd=$lt_cv_file_magic_cmd
2120 deplibs_check_method=$lt_cv_deplibs_check_method
2122 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2123 echo "configure:2124: checking for object suffix" >&5
2124 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127 rm -f conftest*
2128 echo 'int i = 1;' > conftest.$ac_ext
2129 if { (eval echo configure:2130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2130 for ac_file in conftest.*; do
2131 case $ac_file in
2132 *.c) ;;
2133 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2134 esac
2135 done
2136 else
2137 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2139 rm -f conftest*
2142 echo "$ac_t""$ac_cv_objext" 1>&6
2143 OBJEXT=$ac_cv_objext
2144 ac_objext=$ac_cv_objext
2146 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2148 # Only perform the check for file, if the check method requires it
2149 case $deplibs_check_method in
2150 file_magic*)
2151 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2152 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2153 echo "configure:2154: checking for ${ac_tool_prefix}file" >&5
2154 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157 case $MAGIC_CMD in
2159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2161 ?:/*)
2162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2165 ac_save_MAGIC_CMD="$MAGIC_CMD"
2166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2167 ac_dummy="/usr/bin:$PATH"
2168 for ac_dir in $ac_dummy; do
2169 test -z "$ac_dir" && ac_dir=.
2170 if test -f $ac_dir/${ac_tool_prefix}file; then
2171 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2172 if test -n "$file_magic_test_file"; then
2173 case $deplibs_check_method in
2174 "file_magic "*)
2175 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2178 egrep "$file_magic_regex" > /dev/null; then
2180 else
2181 cat <<EOF 1>&2
2183 *** Warning: the command libtool uses to detect shared libraries,
2184 *** $file_magic_cmd, produces output that libtool cannot recognize.
2185 *** The result is that libtool may fail to recognize shared libraries
2186 *** as such. This will affect the creation of libtool libraries that
2187 *** depend on shared libraries, but programs linked with such libtool
2188 *** libraries will work regardless of this problem. Nevertheless, you
2189 *** may want to report the problem to your system manager and/or to
2190 *** bug-libtool@gnu.org
2193 fi ;;
2194 esac
2196 break
2198 done
2199 IFS="$ac_save_ifs"
2200 MAGIC_CMD="$ac_save_MAGIC_CMD"
2202 esac
2205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2206 if test -n "$MAGIC_CMD"; then
2207 echo "$ac_t""$MAGIC_CMD" 1>&6
2208 else
2209 echo "$ac_t""no" 1>&6
2212 if test -z "$lt_cv_path_MAGIC_CMD"; then
2213 if test -n "$ac_tool_prefix"; then
2214 echo $ac_n "checking for file""... $ac_c" 1>&6
2215 echo "configure:2216: checking for file" >&5
2216 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2218 else
2219 case $MAGIC_CMD in
2221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2223 ?:/*)
2224 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2227 ac_save_MAGIC_CMD="$MAGIC_CMD"
2228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2229 ac_dummy="/usr/bin:$PATH"
2230 for ac_dir in $ac_dummy; do
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f $ac_dir/file; then
2233 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2234 if test -n "$file_magic_test_file"; then
2235 case $deplibs_check_method in
2236 "file_magic "*)
2237 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2240 egrep "$file_magic_regex" > /dev/null; then
2242 else
2243 cat <<EOF 1>&2
2245 *** Warning: the command libtool uses to detect shared libraries,
2246 *** $file_magic_cmd, produces output that libtool cannot recognize.
2247 *** The result is that libtool may fail to recognize shared libraries
2248 *** as such. This will affect the creation of libtool libraries that
2249 *** depend on shared libraries, but programs linked with such libtool
2250 *** libraries will work regardless of this problem. Nevertheless, you
2251 *** may want to report the problem to your system manager and/or to
2252 *** bug-libtool@gnu.org
2255 fi ;;
2256 esac
2258 break
2260 done
2261 IFS="$ac_save_ifs"
2262 MAGIC_CMD="$ac_save_MAGIC_CMD"
2264 esac
2267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2268 if test -n "$MAGIC_CMD"; then
2269 echo "$ac_t""$MAGIC_CMD" 1>&6
2270 else
2271 echo "$ac_t""no" 1>&6
2274 else
2275 MAGIC_CMD=:
2281 esac
2283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2286 echo "configure:2287: checking for $ac_word" >&5
2287 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2289 else
2290 if test -n "$RANLIB"; then
2291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2292 else
2293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2294 ac_dummy="$PATH"
2295 for ac_dir in $ac_dummy; do
2296 test -z "$ac_dir" && ac_dir=.
2297 if test -f $ac_dir/$ac_word; then
2298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2299 break
2301 done
2302 IFS="$ac_save_ifs"
2305 RANLIB="$ac_cv_prog_RANLIB"
2306 if test -n "$RANLIB"; then
2307 echo "$ac_t""$RANLIB" 1>&6
2308 else
2309 echo "$ac_t""no" 1>&6
2313 if test -z "$ac_cv_prog_RANLIB"; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "ranlib", so it can be a program name with args.
2316 set dummy ranlib; ac_word=$2
2317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_word" >&5
2319 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2321 else
2322 if test -n "$RANLIB"; then
2323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2324 else
2325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2326 ac_dummy="$PATH"
2327 for ac_dir in $ac_dummy; do
2328 test -z "$ac_dir" && ac_dir=.
2329 if test -f $ac_dir/$ac_word; then
2330 ac_cv_prog_RANLIB="ranlib"
2331 break
2333 done
2334 IFS="$ac_save_ifs"
2335 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2338 RANLIB="$ac_cv_prog_RANLIB"
2339 if test -n "$RANLIB"; then
2340 echo "$ac_t""$RANLIB" 1>&6
2341 else
2342 echo "$ac_t""no" 1>&6
2345 else
2346 RANLIB=":"
2350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2351 set dummy ${ac_tool_prefix}strip; ac_word=$2
2352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_word" >&5
2354 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2356 else
2357 if test -n "$STRIP"; then
2358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2359 else
2360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2361 ac_dummy="$PATH"
2362 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 if test -f $ac_dir/$ac_word; then
2365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2366 break
2368 done
2369 IFS="$ac_save_ifs"
2372 STRIP="$ac_cv_prog_STRIP"
2373 if test -n "$STRIP"; then
2374 echo "$ac_t""$STRIP" 1>&6
2375 else
2376 echo "$ac_t""no" 1>&6
2380 if test -z "$ac_cv_prog_STRIP"; then
2381 if test -n "$ac_tool_prefix"; then
2382 # Extract the first word of "strip", so it can be a program name with args.
2383 set dummy strip; ac_word=$2
2384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2385 echo "configure:2386: checking for $ac_word" >&5
2386 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2388 else
2389 if test -n "$STRIP"; then
2390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2391 else
2392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2393 ac_dummy="$PATH"
2394 for ac_dir in $ac_dummy; do
2395 test -z "$ac_dir" && ac_dir=.
2396 if test -f $ac_dir/$ac_word; then
2397 ac_cv_prog_STRIP="strip"
2398 break
2400 done
2401 IFS="$ac_save_ifs"
2402 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2405 STRIP="$ac_cv_prog_STRIP"
2406 if test -n "$STRIP"; then
2407 echo "$ac_t""$STRIP" 1>&6
2408 else
2409 echo "$ac_t""no" 1>&6
2412 else
2413 STRIP=":"
2418 # Check for any special flags to pass to ltconfig.
2419 libtool_flags="--cache-file=$cache_file"
2420 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2421 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2422 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2423 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2424 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2425 libtool_flags="$libtool_flags --enable-dlopen"
2427 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2428 if test "${enable_libtool_lock+set}" = set; then
2429 enableval="$enable_libtool_lock"
2433 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2434 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2436 # Check whether --with-pic or --without-pic was given.
2437 if test "${with_pic+set}" = set; then
2438 withval="$with_pic"
2439 pic_mode="$withval"
2440 else
2441 pic_mode=default
2444 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2445 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2447 # Some flags need to be propagated to the compiler or linker for good
2448 # libtool support.
2449 case $host in
2450 *-*-irix6*)
2451 # Find out which ABI we are using.
2452 echo '#line 2453 "configure"' > conftest.$ac_ext
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 if test "$lt_cv_prog_gnu_ld" = yes; then
2455 case `/usr/bin/file conftest.$ac_objext` in
2456 *32-bit*)
2457 LD="${LD-ld} -melf32bsmip"
2459 *N32*)
2460 LD="${LD-ld} -melf32bmipn32"
2462 *64-bit*)
2463 LD="${LD-ld} -melf64bmip"
2465 esac
2466 else
2467 case `/usr/bin/file conftest.$ac_objext` in
2468 *32-bit*)
2469 LD="${LD-ld} -32"
2471 *N32*)
2472 LD="${LD-ld} -n32"
2474 *64-bit*)
2475 LD="${LD-ld} -64"
2477 esac
2480 rm -rf conftest*
2483 ia64-*-hpux*)
2484 # Find out which ABI we are using.
2485 echo 'int i;' > conftest.$ac_ext
2486 if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2487 case "`/usr/bin/file conftest.o`" in
2488 *ELF-32*)
2489 HPUX_IA64_MODE="32"
2491 *ELF-64*)
2492 HPUX_IA64_MODE="64"
2494 esac
2496 rm -rf conftest*
2499 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2500 # Find out which ABI we are using.
2501 echo 'int i;' > conftest.$ac_ext
2502 if { (eval echo configure:2503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2503 case "`/usr/bin/file conftest.o`" in
2504 *32-bit*)
2505 case $host in
2506 x86_64-*linux*)
2507 LD="${LD-ld} -m elf_i386"
2509 ppc64-*linux*|powerpc64-*linux*)
2510 LD="${LD-ld} -m elf32ppclinux"
2512 s390x-*linux*)
2513 LD="${LD-ld} -m elf_s390"
2515 sparc64-*linux*)
2516 LD="${LD-ld} -m elf32_sparc"
2518 esac
2520 *64-bit*)
2521 case $host in
2522 x86_64-*linux*)
2523 LD="${LD-ld} -m elf_x86_64"
2525 ppc*-*linux*|powerpc*-*linux*)
2526 LD="${LD-ld} -m elf64ppc"
2528 s390*-*linux*)
2529 LD="${LD-ld} -m elf64_s390"
2531 sparc*-*linux*)
2532 LD="${LD-ld} -m elf64_sparc"
2534 esac
2536 esac
2538 rm -rf conftest*
2541 *-*-sco3.2v5*)
2542 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2543 SAVE_CFLAGS="$CFLAGS"
2544 CFLAGS="$CFLAGS -belf"
2545 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2546 echo "configure:2547: checking whether the C compiler needs -belf" >&5
2547 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2549 else
2551 ac_ext=c
2552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling=$ac_cv_prog_cc_cross
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2562 int main() {
2564 ; return 0; }
2566 if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2567 rm -rf conftest*
2568 lt_cv_cc_needs_belf=yes
2569 else
2570 echo "configure: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2572 rm -rf conftest*
2573 lt_cv_cc_needs_belf=no
2575 rm -f conftest*
2576 ac_ext=c
2577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2581 cross_compiling=$ac_cv_prog_cc_cross
2585 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2586 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2587 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2588 CFLAGS="$SAVE_CFLAGS"
2593 esac
2595 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2596 echo "configure:2597: checking how to run the C++ preprocessor" >&5
2597 if test -z "$CXXCPP"; then
2598 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2600 else
2601 ac_ext=C
2602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2603 ac_cpp='$CXXCPP $CPPFLAGS'
2604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2606 cross_compiling=$ac_cv_prog_cxx_cross
2607 CXXCPP="${CXX-g++} -E"
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2611 #include <stdlib.h>
2613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2614 { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2616 if test -z "$ac_err"; then
2618 else
2619 echo "$ac_err" >&5
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2622 rm -rf conftest*
2623 CXXCPP=/lib/cpp
2625 rm -f conftest*
2626 ac_cv_prog_CXXCPP="$CXXCPP"
2627 ac_ext=c
2628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2632 cross_compiling=$ac_cv_prog_cc_cross
2635 CXXCPP="$ac_cv_prog_CXXCPP"
2636 echo "$ac_t""$CXXCPP" 1>&6
2639 # Save cache, so that ltconfig can load it
2640 cat > confcache <<\EOF
2641 # This file is a shell script that caches the results of configure
2642 # tests run on this system so they can be shared between configure
2643 # scripts and configure runs. It is not useful on other systems.
2644 # If it contains results you don't want to keep, you may remove or edit it.
2646 # By default, configure uses ./config.cache as the cache file,
2647 # creating it if it does not exist already. You can give configure
2648 # the --cache-file=FILE option to use a different cache file; that is
2649 # what configure does when it calls configure scripts in
2650 # subdirectories, so they share the cache.
2651 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2652 # config.status only pays attention to the cache file if you give it the
2653 # --recheck option to rerun configure.
2656 # The following way of writing the cache mishandles newlines in values,
2657 # but we know of no workaround that is simple, portable, and efficient.
2658 # So, don't put newlines in cache variables' values.
2659 # Ultrix sh set writes to stderr and can't be redirected directly,
2660 # and sets the high bit in the cache file unless we assign to the vars.
2661 (set) 2>&1 |
2662 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2663 *ac_space=\ *)
2664 # `set' does not quote correctly, so add quotes (double-quote substitution
2665 # turns \\\\ into \\, and sed turns \\ into \).
2666 sed -n \
2667 -e "s/'/'\\\\''/g" \
2668 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2671 # `set' quotes correctly as required by POSIX, so do not add quotes.
2672 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2674 esac >> confcache
2675 if cmp -s $cache_file confcache; then
2677 else
2678 if test -w $cache_file; then
2679 echo "updating cache $cache_file"
2680 cat confcache > $cache_file
2681 else
2682 echo "not updating unwritable cache $cache_file"
2685 rm -f confcache
2688 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2689 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2690 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2691 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2692 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2693 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2694 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2695 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2696 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2697 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2699 # Reload cache, that may have been modified by ltconfig
2700 if test -r "$cache_file"; then
2701 echo "loading cache $cache_file"
2702 . $cache_file
2703 else
2704 echo "creating cache $cache_file"
2705 > $cache_file
2709 # This can be used to rebuild libtool when needed
2710 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2712 # Always use our own libtool.
2713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2715 # Redirect the config.log output again, so that the ltconfig log is not
2716 # clobbered by the next message.
2717 exec 5>>./config.log
2721 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2722 lt_save_CC="$CC"
2723 lt_save_CFLAGS="$CFLAGS"
2724 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2725 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2726 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2727 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2728 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2729 deplibs_check_method="$deplibs_check_method" \
2730 file_magic_cmd="$file_magic_cmd" \
2731 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2732 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2733 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2734 CC="$lt_save_CC"
2735 CFLAGS="$lt_save_CFLAGS"
2737 # Redirect the config.log output again, so that the ltconfig log is not
2738 # clobbered by the next message.
2739 exec 5>>./config.log
2746 subdirs="$DIRLTDL"
2749 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2750 COMPPATH=.
2751 else
2752 COMPPATH=..
2758 if test -d $srcdir/testsuite; then
2759 TESTSUBDIR_TRUE=
2760 TESTSUBDIR_FALSE='#'
2761 else
2762 TESTSUBDIR_TRUE='#'
2763 TESTSUBDIR_FALSE=
2766 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2767 if test "${enable_getenv_properties+set}" = set; then
2768 enableval="$enable_getenv_properties"
2773 if test -z "$enable_getenv_properties"; then
2774 enable_getenv_properties=${enable_getenv_properties_default-yes}
2776 if test "$enable_getenv_properties" = no; then
2777 cat >> confdefs.h <<\EOF
2778 #define DISABLE_GETENV_PROPERTIES 1
2783 if test -z "$enable_main_args"; then
2784 enable_main_args=${enable_main_args_default-yes}
2786 if test "$enable_main_args" = no; then
2787 cat >> confdefs.h <<\EOF
2788 #define DISABLE_MAIN_ARGS 1
2794 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2795 if test "${enable_hash_synchronization+set}" = set; then
2796 enableval="$enable_hash_synchronization"
2801 if test -z "$enable_hash_synchronization"; then
2802 enable_hash_synchronization=$enable_hash_synchronization_default
2805 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2806 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2807 if test "${enable_libgcj_multifile+set}" = set; then
2808 enableval="$enable_libgcj_multifile"
2809 case "${enableval}" in
2810 yes) enable_libgcj_multifile=yes ;;
2811 no) enable_libgcj_multifile=no ;;
2812 *) { echo "configure: error: bad value ${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2813 esac
2814 else
2815 enable_libgcj_multifile=no
2820 if test "$enable_libgcj_multifile" = yes; then
2821 ONESTEP_TRUE=
2822 ONESTEP_FALSE='#'
2823 else
2824 ONESTEP_TRUE='#'
2825 ONESTEP_FALSE=
2828 # What is the native OS API for MinGW?
2829 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
2830 if test "${with_win32_nlsapi+set}" = set; then
2831 withval="$with_win32_nlsapi"
2833 case "${withval}" in
2834 ansi) with_win32_nlsapi=ansi ;;
2835 unicows) with_win32_nlsapi=unicows ;;
2836 unicode) with_win32_nlsapi=unicode ;;
2837 *) { echo "configure: error: Bad value ${withval} for --with-win32-nlsapi." 1>&2; exit 1; } ;;
2838 esac
2839 else
2840 with_win32_nlsapi=ansi
2844 case "${with_win32_nlsapi}" in
2845 unicows | unicode)
2846 cat >> confdefs.h <<\EOF
2847 #define MINGW_LIBGCJ_UNICODE 1
2851 esac
2853 if test "${slow_pthread_self}" = "yes"; then
2854 cat >> confdefs.h <<\EOF
2855 #define SLOW_PTHREAD_SELF 1
2861 LIBGCJDEBUG="false"
2863 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2864 if test "${enable_libgcj_debug+set}" = set; then
2865 enableval="$enable_libgcj_debug"
2866 if test "$enable_libgcj_debug" = yes; then
2867 cat >> confdefs.h <<\EOF
2868 #define DEBUG 1
2871 LIBGCJDEBUG="true"
2876 # Check whether --enable-interpreter or --disable-interpreter was given.
2877 if test "${enable_interpreter+set}" = set; then
2878 enableval="$enable_interpreter"
2879 if test "$enable_interpreter" = yes; then
2880 # This can also be set in configure.host.
2881 libgcj_interpreter=yes
2882 elif test "$enable_interpreter" = no; then
2883 libgcj_interpreter=no
2888 if test "$libgcj_interpreter" = yes; then
2889 cat >> confdefs.h <<\EOF
2890 #define INTERPRETER 1
2894 INTERPRETER="$libgcj_interpreter"
2897 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2898 echo "configure:2899: checking for exception model to use" >&5
2900 ac_ext=C
2901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2902 ac_cpp='$CXXCPP $CPPFLAGS'
2903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2905 cross_compiling=$ac_cv_prog_cxx_cross
2907 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2908 if test "${enable_sjlj_exceptions+set}" = set; then
2909 enableval="$enable_sjlj_exceptions"
2911 else
2912 cat > conftest.$ac_ext << EOF
2913 #line 2914 "configure"
2914 struct S { ~S(); };
2915 void bar();
2916 void foo()
2918 S s;
2919 bar();
2922 old_CXXFLAGS="$CXXFLAGS"
2923 CXXFLAGS=-S
2924 if { (eval echo configure:2925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2925 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2926 enable_sjlj_exceptions=yes
2927 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2928 enable_sjlj_exceptions=no
2931 CXXFLAGS="$old_CXXFLAGS"
2932 rm -f conftest*
2935 if test x$enable_sjlj_exceptions = xyes; then
2936 cat >> confdefs.h <<\EOF
2937 #define SJLJ_EXCEPTIONS 1
2940 ac_exception_model_name=sjlj
2941 elif test x$enable_sjlj_exceptions = xno; then
2942 ac_exception_model_name="call frame"
2943 else
2944 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2946 ac_ext=c
2947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2951 cross_compiling=$ac_cv_prog_cc_cross
2953 echo "$ac_t""$ac_exception_model_name" 1>&6
2955 # If we are non using SJLJ exceptions, and this host does not have support
2956 # for unwinding from a signal handler, enable checked dereferences and divides.
2957 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2958 CHECKREFSPEC=-fcheck-references
2959 DIVIDESPEC=-fuse-divide-subroutine
2960 EXCEPTIONSPEC=
2963 # Check whether --enable-java-net or --disable-java-net was given.
2964 if test "${enable_java_net+set}" = set; then
2965 enableval="$enable_java_net"
2970 if test -z "$enable_java_net"; then
2971 enable_java_net=${enable_java_net_default-yes}
2973 if test "$enable_java_net" = no; then
2974 cat >> confdefs.h <<\EOF
2975 #define DISABLE_JAVA_NET 1
2980 # Check whether --with-libffi or --without-libffi was given.
2981 if test "${with_libffi+set}" = set; then
2982 withval="$with_libffi"
2984 else
2985 with_libffi=${with_libffi_default-yes}
2989 LIBFFI=
2990 LIBFFIINCS=
2991 if test "$with_libffi" != no; then
2992 cat >> confdefs.h <<\EOF
2993 #define USE_LIBFFI 1
2996 LIBFFI=../libffi/libffi_convenience.la
2997 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
3002 # Check whether --enable-jvmpi or --disable-jvmpi was given.
3003 if test "${enable_jvmpi+set}" = set; then
3004 enableval="$enable_jvmpi"
3009 if test "$enable_jvmpi" != no; then
3010 cat >> confdefs.h <<\EOF
3011 #define ENABLE_JVMPI 1
3016 TARGET_ECOS=${PROCESS-"no"}
3017 # Check whether --with-ecos or --without-ecos was given.
3018 if test "${with_ecos+set}" = set; then
3019 withval="$with_ecos"
3020 TARGET_ECOS="$with_ecos"
3025 EXTRA_CC_FILES=
3028 PLATFORMOBJS=
3029 case "$TARGET_ECOS" in
3030 no) case "$host" in
3031 *mingw*)
3032 PLATFORM=Win32
3033 PLATFORMNET=Win32
3034 PLATFORMOBJS=win32.lo
3035 PLATFORMH=win32.h
3037 echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
3038 echo "configure:3039: checking whether 'ld' is at least 2.13" >&5
3039 LD_PROG=`$CC --print-prog-name=ld`
3040 LD_VERSION=`$LD_PROG --version`
3041 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3042 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3043 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3044 LD_OK="ok"
3045 else
3046 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3047 LD_OK="ok"
3050 if test "x$LD_OK" != x; then
3051 echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3052 else
3053 echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3054 echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
3055 cat >> confdefs.h <<\EOF
3056 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3062 PLATFORM=Posix
3063 PLATFORMNET=Posix
3064 PLATFORMOBJS=posix.lo
3065 PLATFORMH=posix.h
3067 esac
3070 PLATFORM=Ecos
3071 PLATFORMNET=NoNet
3072 cat >> confdefs.h <<\EOF
3073 #define ECOS 1
3076 PLATFORMOBJS=posix.lo
3077 PLATFORMH=posix.h
3079 esac
3083 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3084 echo "configure:3085: checking how to run the C preprocessor" >&5
3085 # On Suns, sometimes $CPP names a directory.
3086 if test -n "$CPP" && test -d "$CPP"; then
3087 CPP=
3089 if test -z "$CPP"; then
3090 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3092 else
3093 # This must be in double quotes, not single quotes, because CPP may get
3094 # substituted into the Makefile and "${CC-cc}" will confuse make.
3095 CPP="${CC-cc} -E"
3096 # On the NeXT, cc -E runs the code through the compiler's parser,
3097 # not just through cpp.
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #include <assert.h>
3102 Syntax Error
3104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3105 { (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3107 if test -z "$ac_err"; then
3109 else
3110 echo "$ac_err" >&5
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3113 rm -rf conftest*
3114 CPP="${CC-cc} -E -traditional-cpp"
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3118 #include <assert.h>
3119 Syntax Error
3121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3122 { (eval echo configure:3123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3124 if test -z "$ac_err"; then
3126 else
3127 echo "$ac_err" >&5
3128 echo "configure: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3130 rm -rf conftest*
3131 CPP="${CC-cc} -nologo -E"
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3135 #include <assert.h>
3136 Syntax Error
3138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3139 { (eval echo configure:3140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3141 if test -z "$ac_err"; then
3143 else
3144 echo "$ac_err" >&5
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3147 rm -rf conftest*
3148 CPP=/lib/cpp
3150 rm -f conftest*
3152 rm -f conftest*
3154 rm -f conftest*
3155 ac_cv_prog_CPP="$CPP"
3157 CPP="$ac_cv_prog_CPP"
3158 else
3159 ac_cv_prog_CPP="$CPP"
3161 echo "$ac_t""$CPP" 1>&6
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 #include <stdint.h>
3168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3169 egrep "uint32_t" >/dev/null 2>&1; then
3170 rm -rf conftest*
3171 cat >> confdefs.h <<\EOF
3172 #define HAVE_INT32_DEFINED 1
3176 rm -f conftest*
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 #include <inttypes.h>
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 egrep "uint32_t" >/dev/null 2>&1; then
3185 rm -rf conftest*
3186 cat >> confdefs.h <<\EOF
3187 #define HAVE_INT32_DEFINED 1
3191 rm -f conftest*
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <sys/types.h>
3198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3199 egrep "u_int32_t" >/dev/null 2>&1; then
3200 rm -rf conftest*
3201 cat >> confdefs.h <<\EOF
3202 #define HAVE_BSD_INT32_DEFINED 1
3206 rm -f conftest*
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 #include <sys/config.h>
3213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3214 egrep "u_int32_t" >/dev/null 2>&1; then
3215 rm -rf conftest*
3216 cat >> confdefs.h <<\EOF
3217 #define HAVE_BSD_INT32_DEFINED 1
3221 rm -f conftest*
3225 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3228 #include <time.h>
3230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3231 egrep "mktime" >/dev/null 2>&1; then
3232 rm -rf conftest*
3233 cat >> confdefs.h <<\EOF
3234 #define HAVE_MKTIME 1
3238 rm -f conftest*
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 #include <time.h>
3245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3246 egrep "localtime" >/dev/null 2>&1; then
3247 rm -rf conftest*
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_LOCALTIME 1
3253 rm -f conftest*
3256 test -d java || mkdir java
3257 test -d java/io || mkdir java/io
3258 test -d gnu || mkdir gnu
3261 test -d java/lang || mkdir java/lang
3265 test -d java/net || mkdir java/net
3269 test -d gnu/java || mkdir gnu/java
3270 test -d gnu/java/net || mkdir gnu/java/net
3274 test -d gnu/java/nio || mkdir gnu/java/nio
3277 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
3280 case "${host}" in
3281 *mingw*)
3282 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3283 if test "${with_win32_nlsapi}" = "unicows"; then
3284 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3288 SYSTEMSPEC=
3290 esac
3293 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3296 # Check whether --with-system-zlib or --without-system-zlib was given.
3297 if test "${with_system_zlib+set}" = set; then
3298 withval="$with_system_zlib"
3302 ZLIBSPEC=
3304 ZLIBTESTSPEC=
3307 # If we find X, set shell vars x_includes and x_libraries to the
3308 # paths, otherwise set no_x=yes.
3309 # Uses ac_ vars as temps to allow command line to override cache and checks.
3310 # --without-x overrides everything else, but does not touch the cache.
3311 echo $ac_n "checking for X""... $ac_c" 1>&6
3312 echo "configure:3313: checking for X" >&5
3314 # Check whether --with-x or --without-x was given.
3315 if test "${with_x+set}" = set; then
3316 withval="$with_x"
3320 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3321 if test "x$with_x" = xno; then
3322 # The user explicitly disabled X.
3323 have_x=disabled
3324 else
3325 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3326 # Both variables are already set.
3327 have_x=yes
3328 else
3329 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3331 else
3332 # One or both of the vars are not set, and there is no cached value.
3333 ac_x_includes=NO ac_x_libraries=NO
3334 rm -fr conftestdir
3335 if mkdir conftestdir; then
3336 cd conftestdir
3337 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3338 cat > Imakefile <<'EOF'
3339 acfindx:
3340 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3342 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3343 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3344 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3345 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3346 for ac_extension in a so sl; do
3347 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3348 test -f $ac_im_libdir/libX11.$ac_extension; then
3349 ac_im_usrlibdir=$ac_im_libdir; break
3351 done
3352 # Screen out bogus values from the imake configuration. They are
3353 # bogus both because they are the default anyway, and because
3354 # using them would break gcc on systems where it needs fixed includes.
3355 case "$ac_im_incroot" in
3356 /usr/include) ;;
3357 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3358 esac
3359 case "$ac_im_usrlibdir" in
3360 /usr/lib | /lib) ;;
3361 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3362 esac
3364 cd ..
3365 rm -fr conftestdir
3368 if test "$ac_x_includes" = NO; then
3369 # Guess where to find include files, by looking for this one X11 .h file.
3370 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3372 # First, try using that file with no special directory specified.
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <$x_direct_test_include>
3378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3379 { (eval echo configure:3380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3381 if test -z "$ac_err"; then
3382 rm -rf conftest*
3383 # We can compile using X headers with no special include directory.
3384 ac_x_includes=
3385 else
3386 echo "$ac_err" >&5
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3389 rm -rf conftest*
3390 # Look for the header file in a standard set of common directories.
3391 # Check X11 before X11Rn because it is often a symlink to the current release.
3392 for ac_dir in \
3393 /usr/X11/include \
3394 /usr/X11R6/include \
3395 /usr/X11R5/include \
3396 /usr/X11R4/include \
3398 /usr/include/X11 \
3399 /usr/include/X11R6 \
3400 /usr/include/X11R5 \
3401 /usr/include/X11R4 \
3403 /usr/local/X11/include \
3404 /usr/local/X11R6/include \
3405 /usr/local/X11R5/include \
3406 /usr/local/X11R4/include \
3408 /usr/local/include/X11 \
3409 /usr/local/include/X11R6 \
3410 /usr/local/include/X11R5 \
3411 /usr/local/include/X11R4 \
3413 /usr/X386/include \
3414 /usr/x386/include \
3415 /usr/XFree86/include/X11 \
3417 /usr/include \
3418 /usr/local/include \
3419 /usr/unsupported/include \
3420 /usr/athena/include \
3421 /usr/local/x11r5/include \
3422 /usr/lpp/Xamples/include \
3424 /usr/openwin/include \
3425 /usr/openwin/share/include \
3428 if test -r "$ac_dir/$x_direct_test_include"; then
3429 ac_x_includes=$ac_dir
3430 break
3432 done
3434 rm -f conftest*
3435 fi # $ac_x_includes = NO
3437 if test "$ac_x_libraries" = NO; then
3438 # Check for the libraries.
3440 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3441 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3443 # See if we find them without any special options.
3444 # Don't add to $LIBS permanently.
3445 ac_save_LIBS="$LIBS"
3446 LIBS="-l$x_direct_test_library $LIBS"
3447 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3451 int main() {
3452 ${x_direct_test_function}()
3453 ; return 0; }
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3456 rm -rf conftest*
3457 LIBS="$ac_save_LIBS"
3458 # We can link X programs with no special library path.
3459 ac_x_libraries=
3460 else
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3463 rm -rf conftest*
3464 LIBS="$ac_save_LIBS"
3465 # First see if replacing the include by lib works.
3466 # Check X11 before X11Rn because it is often a symlink to the current release.
3467 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3468 /usr/X11/lib \
3469 /usr/X11R6/lib \
3470 /usr/X11R5/lib \
3471 /usr/X11R4/lib \
3473 /usr/lib/X11 \
3474 /usr/lib/X11R6 \
3475 /usr/lib/X11R5 \
3476 /usr/lib/X11R4 \
3478 /usr/local/X11/lib \
3479 /usr/local/X11R6/lib \
3480 /usr/local/X11R5/lib \
3481 /usr/local/X11R4/lib \
3483 /usr/local/lib/X11 \
3484 /usr/local/lib/X11R6 \
3485 /usr/local/lib/X11R5 \
3486 /usr/local/lib/X11R4 \
3488 /usr/X386/lib \
3489 /usr/x386/lib \
3490 /usr/XFree86/lib/X11 \
3492 /usr/lib \
3493 /usr/local/lib \
3494 /usr/unsupported/lib \
3495 /usr/athena/lib \
3496 /usr/local/x11r5/lib \
3497 /usr/lpp/Xamples/lib \
3498 /lib/usr/lib/X11 \
3500 /usr/openwin/lib \
3501 /usr/openwin/share/lib \
3504 for ac_extension in a so sl; do
3505 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3506 ac_x_libraries=$ac_dir
3507 break 2
3509 done
3510 done
3512 rm -f conftest*
3513 fi # $ac_x_libraries = NO
3515 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3516 # Didn't find X anywhere. Cache the known absence of X.
3517 ac_cv_have_x="have_x=no"
3518 else
3519 # Record where we found X for the cache.
3520 ac_cv_have_x="have_x=yes \
3521 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3525 eval "$ac_cv_have_x"
3526 fi # $with_x != no
3528 if test "$have_x" != yes; then
3529 echo "$ac_t""$have_x" 1>&6
3530 no_x=yes
3531 else
3532 # If each of the values was on the command line, it overrides each guess.
3533 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3534 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3535 # Update the cache value to reflect the command line values.
3536 ac_cv_have_x="have_x=yes \
3537 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3538 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3541 if test "$no_x" = yes; then
3542 # Not all programs may use this symbol, but it does not hurt to define it.
3543 cat >> confdefs.h <<\EOF
3544 #define X_DISPLAY_MISSING 1
3547 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3548 else
3549 if test -n "$x_includes"; then
3550 X_CFLAGS="$X_CFLAGS -I$x_includes"
3553 # It would also be nice to do this for all -L options, not just this one.
3554 if test -n "$x_libraries"; then
3555 X_LIBS="$X_LIBS -L$x_libraries"
3556 # For Solaris; some versions of Sun CC require a space after -R and
3557 # others require no space. Words are not sufficient . . . .
3558 case "`(uname -sr) 2>/dev/null`" in
3559 "SunOS 5"*)
3560 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3561 echo "configure:3562: checking whether -R must be followed by a space" >&5
3562 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3567 int main() {
3569 ; return 0; }
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3572 rm -rf conftest*
3573 ac_R_nospace=yes
3574 else
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3577 rm -rf conftest*
3578 ac_R_nospace=no
3580 rm -f conftest*
3581 if test $ac_R_nospace = yes; then
3582 echo "$ac_t""no" 1>&6
3583 X_LIBS="$X_LIBS -R$x_libraries"
3584 else
3585 LIBS="$ac_xsave_LIBS -R $x_libraries"
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3590 int main() {
3592 ; return 0; }
3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595 rm -rf conftest*
3596 ac_R_space=yes
3597 else
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3600 rm -rf conftest*
3601 ac_R_space=no
3603 rm -f conftest*
3604 if test $ac_R_space = yes; then
3605 echo "$ac_t""yes" 1>&6
3606 X_LIBS="$X_LIBS -R $x_libraries"
3607 else
3608 echo "$ac_t""neither works" 1>&6
3611 LIBS="$ac_xsave_LIBS"
3612 esac
3615 # Check for system-dependent libraries X programs must link with.
3616 # Do this before checking for the system-independent R6 libraries
3617 # (-lICE), since we may need -lsocket or whatever for X linking.
3619 if test "$ISC" = yes; then
3620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3621 else
3622 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3623 # libraries were built with DECnet support. And karl@cs.umb.edu says
3624 # the Alpha needs dnet_stub (dnet does not exist).
3625 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3626 echo "configure:3627: checking for dnet_ntoa in -ldnet" >&5
3627 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3630 else
3631 ac_save_LIBS="$LIBS"
3632 LIBS="-ldnet $LIBS"
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3639 char dnet_ntoa();
3641 int main() {
3642 dnet_ntoa()
3643 ; return 0; }
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646 rm -rf conftest*
3647 eval "ac_cv_lib_$ac_lib_var=yes"
3648 else
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3651 rm -rf conftest*
3652 eval "ac_cv_lib_$ac_lib_var=no"
3654 rm -f conftest*
3655 LIBS="$ac_save_LIBS"
3658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3661 else
3662 echo "$ac_t""no" 1>&6
3665 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3666 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3667 echo "configure:3668: checking for dnet_ntoa in -ldnet_stub" >&5
3668 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3671 else
3672 ac_save_LIBS="$LIBS"
3673 LIBS="-ldnet_stub $LIBS"
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 /* We use char because int might match the return type of a gcc2
3679 builtin and then its argument prototype would still apply. */
3680 char dnet_ntoa();
3682 int main() {
3683 dnet_ntoa()
3684 ; return 0; }
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3687 rm -rf conftest*
3688 eval "ac_cv_lib_$ac_lib_var=yes"
3689 else
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3692 rm -rf conftest*
3693 eval "ac_cv_lib_$ac_lib_var=no"
3695 rm -f conftest*
3696 LIBS="$ac_save_LIBS"
3699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3702 else
3703 echo "$ac_t""no" 1>&6
3708 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3709 # to get the SysV transport functions.
3710 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3711 # needs -lnsl.
3712 # The nsl library prevents programs from opening the X display
3713 # on Irix 5.2, according to dickey@clark.net.
3714 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3715 echo "configure:3716: checking for gethostbyname" >&5
3716 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3718 else
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 /* System header to define __stub macros and hopefully few prototypes,
3723 which can conflict with char gethostbyname(); below. */
3724 #include <assert.h>
3725 /* Override any gcc2 internal prototype to avoid an error. */
3726 /* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3728 char gethostbyname();
3730 int main() {
3732 /* The GNU C library defines this for functions which it implements
3733 to always fail with ENOSYS. Some functions are actually named
3734 something starting with __ and the normal name is an alias. */
3735 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3736 choke me
3737 #else
3738 gethostbyname();
3739 #endif
3741 ; return 0; }
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3744 rm -rf conftest*
3745 eval "ac_cv_func_gethostbyname=yes"
3746 else
3747 echo "configure: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3749 rm -rf conftest*
3750 eval "ac_cv_func_gethostbyname=no"
3752 rm -f conftest*
3755 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3758 else
3759 echo "$ac_t""no" 1>&6
3762 if test $ac_cv_func_gethostbyname = no; then
3763 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3764 echo "configure:3765: checking for gethostbyname in -lnsl" >&5
3765 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3768 else
3769 ac_save_LIBS="$LIBS"
3770 LIBS="-lnsl $LIBS"
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 /* Override any gcc2 internal prototype to avoid an error. */
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3777 char gethostbyname();
3779 int main() {
3780 gethostbyname()
3781 ; return 0; }
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3784 rm -rf conftest*
3785 eval "ac_cv_lib_$ac_lib_var=yes"
3786 else
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3789 rm -rf conftest*
3790 eval "ac_cv_lib_$ac_lib_var=no"
3792 rm -f conftest*
3793 LIBS="$ac_save_LIBS"
3796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3799 else
3800 echo "$ac_t""no" 1>&6
3805 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3806 # socket/setsockopt and other routines are undefined under SCO ODT
3807 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3808 # on later versions), says simon@lia.di.epfl.ch: it contains
3809 # gethostby* variants that don't use the nameserver (or something).
3810 # -lsocket must be given before -lnsl if both are needed.
3811 # We assume that if connect needs -lnsl, so does gethostbyname.
3812 echo $ac_n "checking for connect""... $ac_c" 1>&6
3813 echo "configure:3814: checking for connect" >&5
3814 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3816 else
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3820 /* System header to define __stub macros and hopefully few prototypes,
3821 which can conflict with char connect(); below. */
3822 #include <assert.h>
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3826 char connect();
3828 int main() {
3830 /* The GNU C library defines this for functions which it implements
3831 to always fail with ENOSYS. Some functions are actually named
3832 something starting with __ and the normal name is an alias. */
3833 #if defined (__stub_connect) || defined (__stub___connect)
3834 choke me
3835 #else
3836 connect();
3837 #endif
3839 ; return 0; }
3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3842 rm -rf conftest*
3843 eval "ac_cv_func_connect=yes"
3844 else
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 rm -rf conftest*
3848 eval "ac_cv_func_connect=no"
3850 rm -f conftest*
3853 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3856 else
3857 echo "$ac_t""no" 1>&6
3860 if test $ac_cv_func_connect = no; then
3861 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3862 echo "configure:3863: checking for connect in -lsocket" >&5
3863 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3866 else
3867 ac_save_LIBS="$LIBS"
3868 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 /* Override any gcc2 internal prototype to avoid an error. */
3873 /* We use char because int might match the return type of a gcc2
3874 builtin and then its argument prototype would still apply. */
3875 char connect();
3877 int main() {
3878 connect()
3879 ; return 0; }
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3882 rm -rf conftest*
3883 eval "ac_cv_lib_$ac_lib_var=yes"
3884 else
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 rm -rf conftest*
3888 eval "ac_cv_lib_$ac_lib_var=no"
3890 rm -f conftest*
3891 LIBS="$ac_save_LIBS"
3894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3896 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3897 else
3898 echo "$ac_t""no" 1>&6
3903 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3904 echo $ac_n "checking for remove""... $ac_c" 1>&6
3905 echo "configure:3906: checking for remove" >&5
3906 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3908 else
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 /* System header to define __stub macros and hopefully few prototypes,
3913 which can conflict with char remove(); below. */
3914 #include <assert.h>
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3918 char remove();
3920 int main() {
3922 /* The GNU C library defines this for functions which it implements
3923 to always fail with ENOSYS. Some functions are actually named
3924 something starting with __ and the normal name is an alias. */
3925 #if defined (__stub_remove) || defined (__stub___remove)
3926 choke me
3927 #else
3928 remove();
3929 #endif
3931 ; return 0; }
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3934 rm -rf conftest*
3935 eval "ac_cv_func_remove=yes"
3936 else
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3939 rm -rf conftest*
3940 eval "ac_cv_func_remove=no"
3942 rm -f conftest*
3945 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3946 echo "$ac_t""yes" 1>&6
3948 else
3949 echo "$ac_t""no" 1>&6
3952 if test $ac_cv_func_remove = no; then
3953 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3954 echo "configure:3955: checking for remove in -lposix" >&5
3955 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3958 else
3959 ac_save_LIBS="$LIBS"
3960 LIBS="-lposix $LIBS"
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964 /* Override any gcc2 internal prototype to avoid an error. */
3965 /* We use char because int might match the return type of a gcc2
3966 builtin and then its argument prototype would still apply. */
3967 char remove();
3969 int main() {
3970 remove()
3971 ; return 0; }
3973 if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3974 rm -rf conftest*
3975 eval "ac_cv_lib_$ac_lib_var=yes"
3976 else
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3979 rm -rf conftest*
3980 eval "ac_cv_lib_$ac_lib_var=no"
3982 rm -f conftest*
3983 LIBS="$ac_save_LIBS"
3986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3989 else
3990 echo "$ac_t""no" 1>&6
3995 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3996 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3997 echo "configure:3998: checking for shmat" >&5
3998 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4000 else
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* System header to define __stub macros and hopefully few prototypes,
4005 which can conflict with char shmat(); below. */
4006 #include <assert.h>
4007 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4010 char shmat();
4012 int main() {
4014 /* The GNU C library defines this for functions which it implements
4015 to always fail with ENOSYS. Some functions are actually named
4016 something starting with __ and the normal name is an alias. */
4017 #if defined (__stub_shmat) || defined (__stub___shmat)
4018 choke me
4019 #else
4020 shmat();
4021 #endif
4023 ; return 0; }
4025 if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4026 rm -rf conftest*
4027 eval "ac_cv_func_shmat=yes"
4028 else
4029 echo "configure: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4031 rm -rf conftest*
4032 eval "ac_cv_func_shmat=no"
4034 rm -f conftest*
4037 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4040 else
4041 echo "$ac_t""no" 1>&6
4044 if test $ac_cv_func_shmat = no; then
4045 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4046 echo "configure:4047: checking for shmat in -lipc" >&5
4047 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051 ac_save_LIBS="$LIBS"
4052 LIBS="-lipc $LIBS"
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 /* Override any gcc2 internal prototype to avoid an error. */
4057 /* We use char because int might match the return type of a gcc2
4058 builtin and then its argument prototype would still apply. */
4059 char shmat();
4061 int main() {
4062 shmat()
4063 ; return 0; }
4065 if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4066 rm -rf conftest*
4067 eval "ac_cv_lib_$ac_lib_var=yes"
4068 else
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4071 rm -rf conftest*
4072 eval "ac_cv_lib_$ac_lib_var=no"
4074 rm -f conftest*
4075 LIBS="$ac_save_LIBS"
4078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4079 echo "$ac_t""yes" 1>&6
4080 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4081 else
4082 echo "$ac_t""no" 1>&6
4088 # Check for libraries that X11R6 Xt/Xaw programs need.
4089 ac_save_LDFLAGS="$LDFLAGS"
4090 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4091 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4092 # check for ICE first), but we must link in the order -lSM -lICE or
4093 # we get undefined symbols. So assume we have SM if we have ICE.
4094 # These have to be linked with before -lX11, unlike the other
4095 # libraries we check for below, so use a different variable.
4096 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4097 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4098 echo "configure:4099: checking for IceConnectionNumber in -lICE" >&5
4099 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4102 else
4103 ac_save_LIBS="$LIBS"
4104 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4111 char IceConnectionNumber();
4113 int main() {
4114 IceConnectionNumber()
4115 ; return 0; }
4117 if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4118 rm -rf conftest*
4119 eval "ac_cv_lib_$ac_lib_var=yes"
4120 else
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4123 rm -rf conftest*
4124 eval "ac_cv_lib_$ac_lib_var=no"
4126 rm -f conftest*
4127 LIBS="$ac_save_LIBS"
4130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4132 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4133 else
4134 echo "$ac_t""no" 1>&6
4137 LDFLAGS="$ac_save_LDFLAGS"
4142 # Check whether --enable-java-awt or --disable-java-awt was given.
4143 if test "${enable_java_awt+set}" = set; then
4144 enableval="$enable_java_awt"
4149 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4150 use_xlib_awt=""
4151 use_gtk_awt=""
4152 # The default toolkit to use is the first one specified.
4153 TOOLKIT=
4156 for peer in $peerlibs ; do
4157 case $peer in
4158 xlib)
4159 if test "$no_x" = yes; then
4160 echo "*** xlib peers requested but no X library available" 1>&2
4161 exit 1
4162 else
4163 use_xlib_awt="yes"
4164 if test -z "$TOOLKIT"; then
4165 TOOLKIT=gnu.awt.xlib.XToolkit
4169 gtk)
4170 if test "$no_x" = yes; then
4171 echo "*** xlib peers requested but no X library available" 1>&2
4172 exit 1
4173 else
4174 use_gtk_awt=yes
4175 if test -z "$TOOLKIT"; then
4176 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4178 test -d jniinclude || mkdir jniinclude
4182 use_xlib_awt=
4183 use_gtk_awt=
4184 break
4187 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4188 exit 1
4189 esac
4190 done
4194 if test "$use_xlib_awt" = yes; then
4195 XLIB_AWT_TRUE=
4196 XLIB_AWT_FALSE='#'
4197 else
4198 XLIB_AWT_TRUE='#'
4199 XLIB_AWT_FALSE=
4203 if test "$use_gtk_awt" = yes; then
4204 GTK_AWT_TRUE=
4205 GTK_AWT_FALSE='#'
4206 else
4207 GTK_AWT_TRUE='#'
4208 GTK_AWT_FALSE=
4211 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4212 if test "${enable_gtk_cairo+set}" = set; then
4213 enableval="$enable_gtk_cairo"
4219 if test "x${enable_gtk_cairo}" = xyes; then
4220 GTK_CAIRO_TRUE=
4221 GTK_CAIRO_FALSE='#'
4222 else
4223 GTK_CAIRO_TRUE='#'
4224 GTK_CAIRO_FALSE=
4226 if test "x${enable_gtk_cairo}" = xyes
4227 then
4229 succeeded=no
4231 if test -z "$PKG_CONFIG"; then
4232 # Extract the first word of "pkg-config", so it can be a program name with args.
4233 set dummy pkg-config; ac_word=$2
4234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4235 echo "configure:4236: checking for $ac_word" >&5
4236 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4238 else
4239 case "$PKG_CONFIG" in
4241 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4243 ?:/*)
4244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4248 ac_dummy="$PATH"
4249 for ac_dir in $ac_dummy; do
4250 test -z "$ac_dir" && ac_dir=.
4251 if test -f $ac_dir/$ac_word; then
4252 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4253 break
4255 done
4256 IFS="$ac_save_ifs"
4257 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4259 esac
4261 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4262 if test -n "$PKG_CONFIG"; then
4263 echo "$ac_t""$PKG_CONFIG" 1>&6
4264 else
4265 echo "$ac_t""no" 1>&6
4270 if test "$PKG_CONFIG" = "no" ; then
4271 echo "*** The pkg-config script could not be found. Make sure it is"
4272 echo "*** in your path, or set the PKG_CONFIG environment variable"
4273 echo "*** to the full path to pkg-config."
4274 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4275 else
4276 PKG_CONFIG_MIN_VERSION=0.9.0
4277 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4278 echo $ac_n "checking for cairo""... $ac_c" 1>&6
4279 echo "configure:4280: checking for cairo" >&5
4281 if $PKG_CONFIG --exists "cairo" ; then
4282 echo "$ac_t""yes" 1>&6
4283 succeeded=yes
4285 echo $ac_n "checking CAIRO_CFLAGS""... $ac_c" 1>&6
4286 echo "configure:4287: checking CAIRO_CFLAGS" >&5
4287 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
4288 echo "$ac_t""$CAIRO_CFLAGS" 1>&6
4290 echo $ac_n "checking CAIRO_LIBS""... $ac_c" 1>&6
4291 echo "configure:4292: checking CAIRO_LIBS" >&5
4292 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
4293 echo "$ac_t""$CAIRO_LIBS" 1>&6
4294 else
4295 CAIRO_CFLAGS=""
4296 CAIRO_LIBS=""
4297 ## If we have a custom action on failure, don't print errors, but
4298 ## do set a variable so people can do so.
4299 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
4300 echo $CAIRO_PKG_ERRORS
4305 else
4306 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4307 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4311 if test $succeeded = yes; then
4313 else
4314 { echo "configure: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
4318 succeeded=no
4320 if test -z "$PKG_CONFIG"; then
4321 # Extract the first word of "pkg-config", so it can be a program name with args.
4322 set dummy pkg-config; ac_word=$2
4323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4324 echo "configure:4325: checking for $ac_word" >&5
4325 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4327 else
4328 case "$PKG_CONFIG" in
4330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4332 ?:/*)
4333 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4337 ac_dummy="$PATH"
4338 for ac_dir in $ac_dummy; do
4339 test -z "$ac_dir" && ac_dir=.
4340 if test -f $ac_dir/$ac_word; then
4341 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4342 break
4344 done
4345 IFS="$ac_save_ifs"
4346 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4348 esac
4350 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4351 if test -n "$PKG_CONFIG"; then
4352 echo "$ac_t""$PKG_CONFIG" 1>&6
4353 else
4354 echo "$ac_t""no" 1>&6
4359 if test "$PKG_CONFIG" = "no" ; then
4360 echo "*** The pkg-config script could not be found. Make sure it is"
4361 echo "*** in your path, or set the PKG_CONFIG environment variable"
4362 echo "*** to the full path to pkg-config."
4363 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4364 else
4365 PKG_CONFIG_MIN_VERSION=0.9.0
4366 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4367 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
4368 echo "configure:4369: checking for pangoft2" >&5
4370 if $PKG_CONFIG --exists "pangoft2" ; then
4371 echo "$ac_t""yes" 1>&6
4372 succeeded=yes
4374 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
4375 echo "configure:4376: checking PANGOFT2_CFLAGS" >&5
4376 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
4377 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
4379 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
4380 echo "configure:4381: checking PANGOFT2_LIBS" >&5
4381 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
4382 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
4383 else
4384 PANGOFT2_CFLAGS=""
4385 PANGOFT2_LIBS=""
4386 ## If we have a custom action on failure, don't print errors, but
4387 ## do set a variable so people can do so.
4388 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
4389 echo $PANGOFT2_PKG_ERRORS
4394 else
4395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4400 if test $succeeded = yes; then
4402 else
4403 { echo "configure: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
4412 libsubdir=.libs
4414 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
4415 echo "configure:4416: checking for garbage collector to use" >&5
4416 # Check whether --enable-java-gc or --disable-java-gc was given.
4417 if test "${enable_java_gc+set}" = set; then
4418 enableval="$enable_java_gc"
4420 GC=$enableval
4421 else
4422 GC=boehm
4425 GCLIBS=
4426 GCINCS=
4427 GCDEPS=
4428 GCOBJS=
4429 GCSPEC=
4430 JC1GCSPEC=
4431 GCTESTSPEC=
4432 case "$GC" in
4433 boehm)
4434 echo "$ac_t""boehm" 1>&6
4435 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4436 JC1GCSPEC='-fuse-boehm-gc'
4437 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
4439 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4440 GCOBJS=boehm.lo
4441 GCHDR=boehm-gc.h
4442 cat >> confdefs.h <<\EOF
4443 #define HAVE_BOEHM_GC 1
4448 echo "$ac_t""none" 1>&6
4449 GCOBJS=nogc.lo
4450 GCHDR=no-gc.h
4453 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
4455 esac
4466 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4467 echo "configure:4468: checking for thread model used by GCC" >&5
4468 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4469 echo "$ac_t""$THREADS" 1>&6
4471 case "$THREADS" in
4472 no | none | single)
4473 THREADS=none
4475 posix | pthreads)
4476 THREADS=posix
4477 case "$host" in
4478 *-*-linux*)
4479 cat >> confdefs.h <<\EOF
4480 #define LINUX_THREADS 1
4484 esac
4486 win32)
4488 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4489 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
4492 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
4494 esac
4496 THREADCXXFLAGS=
4497 THREADLDFLAGS=
4498 THREADLIBS=
4499 THREADINCS=
4500 THREADDEPS=
4501 THREADOBJS=
4502 THREADH=
4503 THREADSPEC=
4504 case "$THREADS" in
4505 posix)
4506 case "$host" in
4507 *-*-cygwin*)
4508 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4511 *-*-freebsd[1234]*)
4513 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4514 # merely adds pthread_* functions) but it does have a -pthread switch
4515 # which is required at link-time to select -lc_r *instead* of -lc.
4516 THREADLDFLAGS=-pthread
4517 # Don't set THREADSPEC here as might be expected since -pthread is
4518 # not processed when found within a spec file, it must come from
4519 # the command line. For now, the user must provide the -pthread
4520 # switch to link code compiled with gcj. In future, consider adding
4521 # support for weak references to pthread_* functions ala gthr.h API.
4522 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4524 *-*-freebsd*)
4525 # FreeBSD 5 implements a model much closer to other modern UNIX
4526 # which support threads. However, it still does not support
4527 # -lpthread.
4528 THREADLDFLAGS=-pthread
4529 THREADSPEC=-lc_r
4531 alpha*-dec-osf*)
4532 THREADCXXFLAGS=-pthread
4533 # boehm-gc needs some functions from librt, so link that too.
4534 THREADLIBS='-lpthread -lrt'
4535 THREADSPEC='-lpthread -lrt'
4538 THREADLIBS=-lpthread
4539 THREADSPEC=-lpthread
4541 esac
4542 THREADOBJS=posix-threads.lo
4543 THREADH=posix-threads.h
4544 # MIT pthreads doesn't seem to have the mutexattr functions.
4545 # But for now we don't check for it. We just assume you aren't
4546 # using MIT pthreads.
4547 cat >> confdefs.h <<\EOF
4548 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4552 # If we're using the Boehm GC, then we happen to know that it
4553 # defines _REENTRANT, so we don't bother. Eww.
4554 if test "$GC" != boehm; then
4555 cat >> confdefs.h <<\EOF
4556 #define _REENTRANT 1
4560 cat >> confdefs.h <<\EOF
4561 #define _POSIX_PTHREAD_SEMANTICS 1
4566 win32)
4567 THREADOBJS=win32-threads.lo
4568 THREADH=win32-threads.h
4571 none)
4572 THREADOBJS=no-threads.lo
4573 THREADH=no-threads.h
4575 esac
4585 if test -d sysdep; then true; else mkdir sysdep; fi
4588 HASH_SYNC_SPEC=
4589 # Hash synchronization is only useful with posix threads right now.
4590 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
4591 HASH_SYNC_SPEC=-fhash-synchronization
4592 cat >> confdefs.h <<\EOF
4593 #define JV_HASH_SYNCHRONIZATION 1
4602 if test "$GCC" = yes; then
4603 USING_GCC_TRUE=
4604 USING_GCC_FALSE='#'
4605 else
4606 USING_GCC_TRUE='#'
4607 USING_GCC_FALSE=
4610 # We're in the tree with gcc, and need to include some of its headers.
4611 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4613 # Figure out where generated headers like libgcj-config.h get installed.
4614 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4615 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4616 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4617 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
4621 if test "x${with_newlib}" = "xyes"; then
4622 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4623 # may not work correctly, because the compiler may not be able to
4624 # link executables.
4626 # We assume newlib. This lets us hard-code the functions we know
4627 # we'll have.
4628 cat >> confdefs.h <<\EOF
4629 #define HAVE_MEMMOVE 1
4632 cat >> confdefs.h <<\EOF
4633 #define HAVE_MEMCPY 1
4636 cat >> confdefs.h <<\EOF
4637 #define HAVE_STRERROR 1
4640 cat >> confdefs.h <<\EOF
4641 #define HAVE_TIME 1
4644 cat >> confdefs.h <<\EOF
4645 #define HAVE_GMTIME_R 1
4648 cat >> confdefs.h <<\EOF
4649 #define HAVE_LOCALTIME_R 1
4652 cat >> confdefs.h <<\EOF
4653 #define HAVE_USLEEP_DECL 1
4656 cat >> confdefs.h <<\EOF
4657 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4660 cat >> confdefs.h <<\EOF
4661 #define HAVE_ALLOCA 1
4665 cat >> confdefs.h <<\EOF
4666 #define NO_GETUID 1
4669 PLATFORMNET=NoNet
4670 else
4671 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4674 echo "configure:4675: checking for $ac_func" >&5
4675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4677 else
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 /* System header to define __stub macros and hopefully few prototypes,
4682 which can conflict with char $ac_func(); below. */
4683 #include <assert.h>
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4687 char $ac_func();
4689 int main() {
4691 /* The GNU C library defines this for functions which it implements
4692 to always fail with ENOSYS. Some functions are actually named
4693 something starting with __ and the normal name is an alias. */
4694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4695 choke me
4696 #else
4697 $ac_func();
4698 #endif
4700 ; return 0; }
4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4703 rm -rf conftest*
4704 eval "ac_cv_func_$ac_func=yes"
4705 else
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 rm -rf conftest*
4709 eval "ac_cv_func_$ac_func=no"
4711 rm -f conftest*
4714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4717 cat >> confdefs.h <<EOF
4718 #define $ac_tr_func 1
4721 else
4722 echo "$ac_t""no" 1>&6
4724 done
4726 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4729 echo "configure:4730: checking for $ac_func" >&5
4730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4732 else
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 /* System header to define __stub macros and hopefully few prototypes,
4737 which can conflict with char $ac_func(); below. */
4738 #include <assert.h>
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4742 char $ac_func();
4744 int main() {
4746 /* The GNU C library defines this for functions which it implements
4747 to always fail with ENOSYS. Some functions are actually named
4748 something starting with __ and the normal name is an alias. */
4749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4750 choke me
4751 #else
4752 $ac_func();
4753 #endif
4755 ; return 0; }
4757 if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4758 rm -rf conftest*
4759 eval "ac_cv_func_$ac_func=yes"
4760 else
4761 echo "configure: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4763 rm -rf conftest*
4764 eval "ac_cv_func_$ac_func=no"
4766 rm -f conftest*
4769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4770 echo "$ac_t""yes" 1>&6
4771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4772 cat >> confdefs.h <<EOF
4773 #define $ac_tr_func 1
4776 else
4777 echo "$ac_t""no" 1>&6
4779 done
4781 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4784 echo "configure:4785: checking for $ac_func" >&5
4785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4787 else
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4791 /* System header to define __stub macros and hopefully few prototypes,
4792 which can conflict with char $ac_func(); below. */
4793 #include <assert.h>
4794 /* Override any gcc2 internal prototype to avoid an error. */
4795 /* We use char because int might match the return type of a gcc2
4796 builtin and then its argument prototype would still apply. */
4797 char $ac_func();
4799 int main() {
4801 /* The GNU C library defines this for functions which it implements
4802 to always fail with ENOSYS. Some functions are actually named
4803 something starting with __ and the normal name is an alias. */
4804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4805 choke me
4806 #else
4807 $ac_func();
4808 #endif
4810 ; return 0; }
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4813 rm -rf conftest*
4814 eval "ac_cv_func_$ac_func=yes"
4815 else
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4818 rm -rf conftest*
4819 eval "ac_cv_func_$ac_func=no"
4821 rm -f conftest*
4824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4825 echo "$ac_t""yes" 1>&6
4826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4827 cat >> confdefs.h <<EOF
4828 #define $ac_tr_func 1
4831 else
4832 echo "$ac_t""no" 1>&6
4834 done
4836 for ac_func in nl_langinfo setlocale
4838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4839 echo "configure:4840: checking for $ac_func" >&5
4840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4841 echo $ac_n "(cached) $ac_c" 1>&6
4842 else
4843 cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4846 /* System header to define __stub macros and hopefully few prototypes,
4847 which can conflict with char $ac_func(); below. */
4848 #include <assert.h>
4849 /* Override any gcc2 internal prototype to avoid an error. */
4850 /* We use char because int might match the return type of a gcc2
4851 builtin and then its argument prototype would still apply. */
4852 char $ac_func();
4854 int main() {
4856 /* The GNU C library defines this for functions which it implements
4857 to always fail with ENOSYS. Some functions are actually named
4858 something starting with __ and the normal name is an alias. */
4859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4860 choke me
4861 #else
4862 $ac_func();
4863 #endif
4865 ; return 0; }
4867 if { (eval echo configure:4868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 rm -rf conftest*
4869 eval "ac_cv_func_$ac_func=yes"
4870 else
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4873 rm -rf conftest*
4874 eval "ac_cv_func_$ac_func=no"
4876 rm -f conftest*
4879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4880 echo "$ac_t""yes" 1>&6
4881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4882 cat >> confdefs.h <<EOF
4883 #define $ac_tr_func 1
4886 else
4887 echo "$ac_t""no" 1>&6
4889 done
4891 for ac_func in inet_aton inet_addr
4893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4894 echo "configure:4895: checking for $ac_func" >&5
4895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4897 else
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4901 /* System header to define __stub macros and hopefully few prototypes,
4902 which can conflict with char $ac_func(); below. */
4903 #include <assert.h>
4904 /* Override any gcc2 internal prototype to avoid an error. */
4905 /* We use char because int might match the return type of a gcc2
4906 builtin and then its argument prototype would still apply. */
4907 char $ac_func();
4909 int main() {
4911 /* The GNU C library defines this for functions which it implements
4912 to always fail with ENOSYS. Some functions are actually named
4913 something starting with __ and the normal name is an alias. */
4914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4915 choke me
4916 #else
4917 $ac_func();
4918 #endif
4920 ; return 0; }
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4923 rm -rf conftest*
4924 eval "ac_cv_func_$ac_func=yes"
4925 else
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4928 rm -rf conftest*
4929 eval "ac_cv_func_$ac_func=no"
4931 rm -f conftest*
4934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4935 echo "$ac_t""yes" 1>&6
4936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4937 cat >> confdefs.h <<EOF
4938 #define $ac_tr_func 1
4940 break
4941 else
4942 echo "$ac_t""no" 1>&6
4944 done
4946 for ac_func in inet_pton uname inet_ntoa
4948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_func" >&5
4950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4952 else
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* System header to define __stub macros and hopefully few prototypes,
4957 which can conflict with char $ac_func(); below. */
4958 #include <assert.h>
4959 /* Override any gcc2 internal prototype to avoid an error. */
4960 /* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4962 char $ac_func();
4964 int main() {
4966 /* The GNU C library defines this for functions which it implements
4967 to always fail with ENOSYS. Some functions are actually named
4968 something starting with __ and the normal name is an alias. */
4969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4970 choke me
4971 #else
4972 $ac_func();
4973 #endif
4975 ; return 0; }
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 rm -rf conftest*
4979 eval "ac_cv_func_$ac_func=yes"
4980 else
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4983 rm -rf conftest*
4984 eval "ac_cv_func_$ac_func=no"
4986 rm -f conftest*
4989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4992 cat >> confdefs.h <<EOF
4993 #define $ac_tr_func 1
4996 else
4997 echo "$ac_t""no" 1>&6
4999 done
5001 for ac_func in fork execvp pipe sigaction ftruncate
5003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5004 echo "configure:5005: checking for $ac_func" >&5
5005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5007 else
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 /* System header to define __stub macros and hopefully few prototypes,
5012 which can conflict with char $ac_func(); below. */
5013 #include <assert.h>
5014 /* Override any gcc2 internal prototype to avoid an error. */
5015 /* We use char because int might match the return type of a gcc2
5016 builtin and then its argument prototype would still apply. */
5017 char $ac_func();
5019 int main() {
5021 /* The GNU C library defines this for functions which it implements
5022 to always fail with ENOSYS. Some functions are actually named
5023 something starting with __ and the normal name is an alias. */
5024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5025 choke me
5026 #else
5027 $ac_func();
5028 #endif
5030 ; return 0; }
5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 rm -rf conftest*
5034 eval "ac_cv_func_$ac_func=yes"
5035 else
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5038 rm -rf conftest*
5039 eval "ac_cv_func_$ac_func=no"
5041 rm -f conftest*
5044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5047 cat >> confdefs.h <<EOF
5048 #define $ac_tr_func 1
5051 else
5052 echo "$ac_t""no" 1>&6
5054 done
5056 for ac_hdr in execinfo.h unistd.h dlfcn.h
5058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_hdr" >&5
5061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5063 else
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 #include <$ac_hdr>
5069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5070 { (eval echo configure:5071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5072 if test -z "$ac_err"; then
5073 rm -rf conftest*
5074 eval "ac_cv_header_$ac_safe=yes"
5075 else
5076 echo "$ac_err" >&5
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5079 rm -rf conftest*
5080 eval "ac_cv_header_$ac_safe=no"
5082 rm -f conftest*
5084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5087 cat >> confdefs.h <<EOF
5088 #define $ac_tr_hdr 1
5091 else
5092 echo "$ac_t""no" 1>&6
5094 done
5096 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
5097 echo "configure:5098: checking for backtrace" >&5
5098 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
5099 echo $ac_n "(cached) $ac_c" 1>&6
5100 else
5101 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5104 /* System header to define __stub macros and hopefully few prototypes,
5105 which can conflict with char backtrace(); below. */
5106 #include <assert.h>
5107 /* Override any gcc2 internal prototype to avoid an error. */
5108 /* We use char because int might match the return type of a gcc2
5109 builtin and then its argument prototype would still apply. */
5110 char backtrace();
5112 int main() {
5114 /* The GNU C library defines this for functions which it implements
5115 to always fail with ENOSYS. Some functions are actually named
5116 something starting with __ and the normal name is an alias. */
5117 #if defined (__stub_backtrace) || defined (__stub___backtrace)
5118 choke me
5119 #else
5120 backtrace();
5121 #endif
5123 ; return 0; }
5125 if { (eval echo configure:5126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5126 rm -rf conftest*
5127 eval "ac_cv_func_backtrace=yes"
5128 else
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5131 rm -rf conftest*
5132 eval "ac_cv_func_backtrace=no"
5134 rm -f conftest*
5137 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
5138 echo "$ac_t""yes" 1>&6
5140 case "$host" in
5141 ia64-*-linux*)
5142 # Has broken backtrace()
5144 mips*-*-linux*)
5145 # Has broken backtrace(), but we supply our own.
5146 if test -d sysdep; then true; else mkdir -p sysdep; fi
5147 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep/dwarf2-backtrace.cc"
5148 cat >> confdefs.h <<\EOF
5149 #define HAVE_BACKTRACE 1
5154 cat >> confdefs.h <<\EOF
5155 #define HAVE_BACKTRACE 1
5159 esac
5161 else
5162 echo "$ac_t""no" 1>&6
5164 case "$host" in
5165 *mingw*)
5166 # Has backtrace() defined in libgcj itself
5167 cat >> confdefs.h <<\EOF
5168 #define HAVE_BACKTRACE 1
5172 esac
5177 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
5178 echo "configure:5179: checking for dladdr in -ldl" >&5
5179 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
5180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5182 else
5183 ac_save_LIBS="$LIBS"
5184 LIBS="-ldl $LIBS"
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 /* Override any gcc2 internal prototype to avoid an error. */
5189 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */
5191 char dladdr();
5193 int main() {
5194 dladdr()
5195 ; return 0; }
5197 if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5198 rm -rf conftest*
5199 eval "ac_cv_lib_$ac_lib_var=yes"
5200 else
5201 echo "configure: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5203 rm -rf conftest*
5204 eval "ac_cv_lib_$ac_lib_var=no"
5206 rm -f conftest*
5207 LIBS="$ac_save_LIBS"
5210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5213 if test "x${disable_dladdr}" = "xyes"; then
5214 #Broken dladdr().
5215 true
5216 else
5217 cat >> confdefs.h <<\EOF
5218 #define HAVE_DLADDR 1
5223 else
5224 echo "$ac_t""no" 1>&6
5227 if test x"$build" = x"$host"; then
5228 for ac_file in /proc/self/exe
5231 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
5232 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
5233 echo "configure:5234: checking for $ac_file" >&5
5234 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5236 else
5237 if test "$cross_compiling" = yes; then
5238 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
5239 else
5240 if test -r $ac_file; then
5241 eval "ac_cv_file_$ac_safe=yes"
5242 else
5243 eval "ac_cv_file_$ac_safe=no"
5247 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
5248 echo "$ac_t""yes" 1>&6
5249 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5250 cat >> confdefs.h <<EOF
5251 #define $ac_tr_file 1
5254 cat >> confdefs.h <<\EOF
5255 #define HAVE_PROC_SELF_EXE 1
5258 else
5259 echo "$ac_t""no" 1>&6
5262 done
5264 else
5265 case $host in
5266 *-linux*)
5267 cat >> confdefs.h <<\EOF
5268 #define HAVE_PROC_SELF_EXE 1
5272 esac
5277 am_cv_lib_iconv_ldpath=
5278 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5279 if test "${with_libiconv_prefix+set}" = set; then
5280 withval="$with_libiconv_prefix"
5282 for dir in `echo "$withval" | tr : ' '`; do
5283 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
5284 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
5285 done
5290 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5291 echo "configure:5292: checking for iconv" >&5
5292 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5294 else
5296 am_cv_func_iconv="no, consider installing GNU libiconv"
5297 am_cv_lib_iconv=no
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 #include <stdlib.h>
5302 #include <iconv.h>
5303 int main() {
5304 iconv_t cd = iconv_open("","");
5305 iconv(cd,NULL,NULL,NULL,NULL);
5306 iconv_close(cd);
5307 ; return 0; }
5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5310 rm -rf conftest*
5311 am_cv_func_iconv=yes
5312 else
5313 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5316 rm -f conftest*
5317 if test "$am_cv_func_iconv" != yes; then
5318 am_save_LIBS="$LIBS"
5319 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5320 cat > conftest.$ac_ext <<EOF
5321 #line 5322 "configure"
5322 #include "confdefs.h"
5323 #include <stdlib.h>
5324 #include <iconv.h>
5325 int main() {
5326 iconv_t cd = iconv_open("","");
5327 iconv(cd,NULL,NULL,NULL,NULL);
5328 iconv_close(cd);
5329 ; return 0; }
5331 if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5332 rm -rf conftest*
5333 am_cv_lib_iconv=yes
5334 am_cv_func_iconv=yes
5335 else
5336 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5339 rm -f conftest*
5340 LIBS="$am_save_LIBS"
5345 echo "$ac_t""$am_cv_func_iconv" 1>&6
5346 if test "$am_cv_func_iconv" = yes; then
5347 cat >> confdefs.h <<\EOF
5348 #define HAVE_ICONV 1
5351 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5352 echo "configure:5353: checking for iconv declaration" >&5
5353 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5355 else
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5361 #include <stdlib.h>
5362 #include <iconv.h>
5363 extern
5364 #ifdef __cplusplus
5366 #endif
5367 #if defined(__STDC__) || defined(__cplusplus)
5368 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5369 #else
5370 size_t iconv();
5371 #endif
5373 int main() {
5375 ; return 0; }
5377 if { (eval echo configure:5378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5378 rm -rf conftest*
5379 am_cv_proto_iconv_arg1=""
5380 else
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 rm -rf conftest*
5384 am_cv_proto_iconv_arg1="const"
5386 rm -f conftest*
5387 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);"
5390 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5391 echo "$ac_t""${ac_t:-
5392 }$am_cv_proto_iconv" 1>&6
5393 cat >> confdefs.h <<EOF
5394 #define ICONV_CONST $am_cv_proto_iconv_arg1
5398 LIBICONV=
5399 if test "$am_cv_lib_iconv" = yes; then
5400 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5404 for ac_hdr in locale.h
5406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5408 echo "configure:5409: checking for $ac_hdr" >&5
5409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5411 else
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 #include <$ac_hdr>
5417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5418 { (eval echo configure:5419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5420 if test -z "$ac_err"; then
5421 rm -rf conftest*
5422 eval "ac_cv_header_$ac_safe=yes"
5423 else
5424 echo "$ac_err" >&5
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5427 rm -rf conftest*
5428 eval "ac_cv_header_$ac_safe=no"
5430 rm -f conftest*
5432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5433 echo "$ac_t""yes" 1>&6
5434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5435 cat >> confdefs.h <<EOF
5436 #define $ac_tr_hdr 1
5439 else
5440 echo "$ac_t""no" 1>&6
5442 done
5444 if test $ac_cv_header_locale_h = yes; then
5445 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5446 echo "configure:5447: checking for LC_MESSAGES" >&5
5447 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5449 else
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453 #include <locale.h>
5454 int main() {
5455 return LC_MESSAGES
5456 ; return 0; }
5458 if { (eval echo configure:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459 rm -rf conftest*
5460 am_cv_val_LC_MESSAGES=yes
5461 else
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 rm -rf conftest*
5465 am_cv_val_LC_MESSAGES=no
5467 rm -f conftest*
5470 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5471 if test $am_cv_val_LC_MESSAGES = yes; then
5472 cat >> confdefs.h <<\EOF
5473 #define HAVE_LC_MESSAGES 1
5478 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5479 echo "configure:5480: checking whether struct tm is in sys/time.h or time.h" >&5
5480 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5482 else
5483 cat > conftest.$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5486 #include <sys/types.h>
5487 #include <time.h>
5488 int main() {
5489 struct tm *tp; tp->tm_sec;
5490 ; return 0; }
5492 if { (eval echo configure:5493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5493 rm -rf conftest*
5494 ac_cv_struct_tm=time.h
5495 else
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5498 rm -rf conftest*
5499 ac_cv_struct_tm=sys/time.h
5501 rm -f conftest*
5504 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5505 if test $ac_cv_struct_tm = sys/time.h; then
5506 cat >> confdefs.h <<\EOF
5507 #define TM_IN_SYS_TIME 1
5512 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5513 echo "configure:5514: checking for tm_zone in struct tm" >&5
5514 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5516 else
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5520 #include <sys/types.h>
5521 #include <$ac_cv_struct_tm>
5522 int main() {
5523 struct tm tm; tm.tm_zone;
5524 ; return 0; }
5526 if { (eval echo configure:5527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5527 rm -rf conftest*
5528 ac_cv_struct_tm_zone=yes
5529 else
5530 echo "configure: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5532 rm -rf conftest*
5533 ac_cv_struct_tm_zone=no
5535 rm -f conftest*
5538 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5539 if test "$ac_cv_struct_tm_zone" = yes; then
5540 cat >> confdefs.h <<\EOF
5541 #define HAVE_TM_ZONE 1
5544 else
5545 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5546 echo "configure:5547: checking for tzname" >&5
5547 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5549 else
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 #include <time.h>
5554 #ifndef tzname /* For SGI. */
5555 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5556 #endif
5557 int main() {
5558 atoi(*tzname);
5559 ; return 0; }
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5562 rm -rf conftest*
5563 ac_cv_var_tzname=yes
5564 else
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5567 rm -rf conftest*
5568 ac_cv_var_tzname=no
5570 rm -f conftest*
5573 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5574 if test $ac_cv_var_tzname = yes; then
5575 cat >> confdefs.h <<\EOF
5576 #define HAVE_TZNAME 1
5583 for ac_func in gethostbyname_r
5585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5586 echo "configure:5587: checking for $ac_func" >&5
5587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5589 else
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char $ac_func(); below. */
5595 #include <assert.h>
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5599 char $ac_func();
5601 int main() {
5603 /* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5607 choke me
5608 #else
5609 $ac_func();
5610 #endif
5612 ; return 0; }
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5615 rm -rf conftest*
5616 eval "ac_cv_func_$ac_func=yes"
5617 else
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 rm -rf conftest*
5621 eval "ac_cv_func_$ac_func=no"
5623 rm -f conftest*
5626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5629 cat >> confdefs.h <<EOF
5630 #define $ac_tr_func 1
5633 cat >> confdefs.h <<\EOF
5634 #define HAVE_GETHOSTBYNAME_R 1
5637 # There are two different kinds of gethostbyname_r.
5638 # We look for the one that returns `int'.
5639 # Hopefully this check is robust enough.
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 #include <netdb.h>
5645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5646 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
5647 rm -rf conftest*
5649 cat >> confdefs.h <<\EOF
5650 #define GETHOSTBYNAME_R_RETURNS_INT 1
5654 rm -f conftest*
5657 case " $GCINCS " in
5658 *" -D_REENTRANT "*) ;;
5660 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
5661 echo "configure:5662: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
5662 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5664 else
5666 ac_ext=C
5667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5668 ac_cpp='$CXXCPP $CPPFLAGS'
5669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5671 cross_compiling=$ac_cv_prog_cxx_cross
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 #include <netdb.h>
5677 int main() {
5678 gethostbyname_r("", 0, 0);
5679 ; return 0; }
5681 if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5682 rm -rf conftest*
5683 libjava_cv_gethostbyname_r_needs_reentrant=no
5684 else
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 rm -rf conftest*
5688 CPPFLAGS_SAVE="$CPPFLAGS"
5689 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5693 #include <netdb.h>
5694 int main() {
5695 gethostbyname_r("", 0, 0);
5696 ; return 0; }
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5699 rm -rf conftest*
5700 libjava_cv_gethostbyname_r_needs_reentrant=yes
5701 else
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5704 rm -rf conftest*
5705 libjava_cv_gethostbyname_r_needs_reentrant=fail
5707 rm -f conftest*
5708 CPPFLAGS="$CPPFLAGS_SAVE"
5711 rm -f conftest*
5712 ac_ext=c
5713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5714 ac_cpp='$CPP $CPPFLAGS'
5715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5717 cross_compiling=$ac_cv_prog_cc_cross
5722 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5723 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5724 cat >> confdefs.h <<\EOF
5725 #define _REENTRANT 1
5730 esac
5732 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
5733 echo "configure:5734: checking for struct hostent_data" >&5
5734 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5736 else
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5741 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5742 # define _REENTRANT 1
5743 #endif
5744 #include <netdb.h>
5745 int main() {
5746 struct hostent_data data;
5747 ; return 0; }
5749 if { (eval echo configure:5750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5750 rm -rf conftest*
5751 libjava_cv_struct_hostent_data=yes
5752 else
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 rm -rf conftest*
5756 libjava_cv_struct_hostent_data=no
5758 rm -f conftest*
5761 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5762 if test "x$libjava_cv_struct_hostent_data" = xyes; then
5763 cat >> confdefs.h <<\EOF
5764 #define HAVE_STRUCT_HOSTENT_DATA 1
5769 else
5770 echo "$ac_t""no" 1>&6
5772 done
5775 # FIXME: libjava source code expects to find a prototype for
5776 # gethostbyaddr_r in netdb.h. The outer check ensures that
5777 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5778 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5779 # linkage check is enough, yet C++ code requires proper prototypes.)
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 #include <netdb.h>
5785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
5787 rm -rf conftest*
5789 for ac_func in gethostbyaddr_r
5791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5792 echo "configure:5793: checking for $ac_func" >&5
5793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5794 echo $ac_n "(cached) $ac_c" 1>&6
5795 else
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5799 /* System header to define __stub macros and hopefully few prototypes,
5800 which can conflict with char $ac_func(); below. */
5801 #include <assert.h>
5802 /* Override any gcc2 internal prototype to avoid an error. */
5803 /* We use char because int might match the return type of a gcc2
5804 builtin and then its argument prototype would still apply. */
5805 char $ac_func();
5807 int main() {
5809 /* The GNU C library defines this for functions which it implements
5810 to always fail with ENOSYS. Some functions are actually named
5811 something starting with __ and the normal name is an alias. */
5812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5813 choke me
5814 #else
5815 $ac_func();
5816 #endif
5818 ; return 0; }
5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5821 rm -rf conftest*
5822 eval "ac_cv_func_$ac_func=yes"
5823 else
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5826 rm -rf conftest*
5827 eval "ac_cv_func_$ac_func=no"
5829 rm -f conftest*
5832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5833 echo "$ac_t""yes" 1>&6
5834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5835 cat >> confdefs.h <<EOF
5836 #define $ac_tr_func 1
5839 cat >> confdefs.h <<\EOF
5840 #define HAVE_GETHOSTBYADDR_R 1
5843 # There are two different kinds of gethostbyaddr_r.
5844 # We look for the one that returns `int'.
5845 # Hopefully this check is robust enough.
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure"
5848 #include "confdefs.h"
5849 #include <netdb.h>
5851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5852 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
5853 rm -rf conftest*
5855 cat >> confdefs.h <<\EOF
5856 #define GETHOSTBYADDR_R_RETURNS_INT 1
5860 rm -f conftest*
5862 else
5863 echo "$ac_t""no" 1>&6
5865 done
5868 rm -f conftest*
5871 for ac_func in gethostname
5873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_func" >&5
5875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5877 else
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char $ac_func(); below. */
5883 #include <assert.h>
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5887 char $ac_func();
5889 int main() {
5891 /* The GNU C library defines this for functions which it implements
5892 to always fail with ENOSYS. Some functions are actually named
5893 something starting with __ and the normal name is an alias. */
5894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5895 choke me
5896 #else
5897 $ac_func();
5898 #endif
5900 ; return 0; }
5902 if { (eval echo configure:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5903 rm -rf conftest*
5904 eval "ac_cv_func_$ac_func=yes"
5905 else
5906 echo "configure: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 rm -rf conftest*
5909 eval "ac_cv_func_$ac_func=no"
5911 rm -f conftest*
5914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5917 cat >> confdefs.h <<EOF
5918 #define $ac_tr_func 1
5921 cat >> confdefs.h <<\EOF
5922 #define HAVE_GETHOSTNAME 1
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 #include <unistd.h>
5930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5931 egrep "gethostname" >/dev/null 2>&1; then
5932 rm -rf conftest*
5934 cat >> confdefs.h <<\EOF
5935 #define HAVE_GETHOSTNAME_DECL 1
5939 rm -f conftest*
5941 else
5942 echo "$ac_t""no" 1>&6
5944 done
5947 for ac_func in usleep
5949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5950 echo "configure:5951: checking for $ac_func" >&5
5951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5952 echo $ac_n "(cached) $ac_c" 1>&6
5953 else
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 /* System header to define __stub macros and hopefully few prototypes,
5958 which can conflict with char $ac_func(); below. */
5959 #include <assert.h>
5960 /* Override any gcc2 internal prototype to avoid an error. */
5961 /* We use char because int might match the return type of a gcc2
5962 builtin and then its argument prototype would still apply. */
5963 char $ac_func();
5965 int main() {
5967 /* The GNU C library defines this for functions which it implements
5968 to always fail with ENOSYS. Some functions are actually named
5969 something starting with __ and the normal name is an alias. */
5970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5971 choke me
5972 #else
5973 $ac_func();
5974 #endif
5976 ; return 0; }
5978 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5979 rm -rf conftest*
5980 eval "ac_cv_func_$ac_func=yes"
5981 else
5982 echo "configure: failed program was:" >&5
5983 cat conftest.$ac_ext >&5
5984 rm -rf conftest*
5985 eval "ac_cv_func_$ac_func=no"
5987 rm -f conftest*
5990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5991 echo "$ac_t""yes" 1>&6
5992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5993 cat >> confdefs.h <<EOF
5994 #define $ac_tr_func 1
5997 cat > conftest.$ac_ext <<EOF
5998 #line 5999 "configure"
5999 #include "confdefs.h"
6000 #include <unistd.h>
6002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003 egrep "usleep" >/dev/null 2>&1; then
6004 rm -rf conftest*
6006 cat >> confdefs.h <<\EOF
6007 #define HAVE_USLEEP_DECL 1
6011 rm -f conftest*
6013 else
6014 echo "$ac_t""no" 1>&6
6016 done
6019 # Look for these functions in the thread library, but only bother
6020 # if using POSIX threads.
6021 if test "$THREADS" = posix; then
6022 save_LIBS="$LIBS"
6023 LIBS="$LIBS $THREADLIBS"
6024 # Some POSIX thread systems don't have pthread_mutexattr_settype.
6025 # E.g., Solaris.
6026 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
6028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6029 echo "configure:6030: checking for $ac_func" >&5
6030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6032 else
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6036 /* System header to define __stub macros and hopefully few prototypes,
6037 which can conflict with char $ac_func(); below. */
6038 #include <assert.h>
6039 /* Override any gcc2 internal prototype to avoid an error. */
6040 /* We use char because int might match the return type of a gcc2
6041 builtin and then its argument prototype would still apply. */
6042 char $ac_func();
6044 int main() {
6046 /* The GNU C library defines this for functions which it implements
6047 to always fail with ENOSYS. Some functions are actually named
6048 something starting with __ and the normal name is an alias. */
6049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6050 choke me
6051 #else
6052 $ac_func();
6053 #endif
6055 ; return 0; }
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6058 rm -rf conftest*
6059 eval "ac_cv_func_$ac_func=yes"
6060 else
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6063 rm -rf conftest*
6064 eval "ac_cv_func_$ac_func=no"
6066 rm -f conftest*
6069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6072 cat >> confdefs.h <<EOF
6073 #define $ac_tr_func 1
6076 else
6077 echo "$ac_t""no" 1>&6
6079 done
6082 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
6083 # Solaris 7 the name librt is preferred.
6084 for ac_func in sched_yield
6086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_func" >&5
6088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6090 else
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 /* System header to define __stub macros and hopefully few prototypes,
6095 which can conflict with char $ac_func(); below. */
6096 #include <assert.h>
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6100 char $ac_func();
6102 int main() {
6104 /* The GNU C library defines this for functions which it implements
6105 to always fail with ENOSYS. Some functions are actually named
6106 something starting with __ and the normal name is an alias. */
6107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6108 choke me
6109 #else
6110 $ac_func();
6111 #endif
6113 ; return 0; }
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6116 rm -rf conftest*
6117 eval "ac_cv_func_$ac_func=yes"
6118 else
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6121 rm -rf conftest*
6122 eval "ac_cv_func_$ac_func=no"
6124 rm -f conftest*
6127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6130 cat >> confdefs.h <<EOF
6131 #define $ac_tr_func 1
6134 else
6135 echo "$ac_t""no" 1>&6
6136 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6137 echo "configure:6138: checking for sched_yield in -lrt" >&5
6138 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6141 else
6142 ac_save_LIBS="$LIBS"
6143 LIBS="-lrt $LIBS"
6144 cat > conftest.$ac_ext <<EOF
6145 #line 6146 "configure"
6146 #include "confdefs.h"
6147 /* Override any gcc2 internal prototype to avoid an error. */
6148 /* We use char because int might match the return type of a gcc2
6149 builtin and then its argument prototype would still apply. */
6150 char sched_yield();
6152 int main() {
6153 sched_yield()
6154 ; return 0; }
6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 rm -rf conftest*
6158 eval "ac_cv_lib_$ac_lib_var=yes"
6159 else
6160 echo "configure: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6162 rm -rf conftest*
6163 eval "ac_cv_lib_$ac_lib_var=no"
6165 rm -f conftest*
6166 LIBS="$ac_save_LIBS"
6169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6170 echo "$ac_t""yes" 1>&6
6172 cat >> confdefs.h <<\EOF
6173 #define HAVE_SCHED_YIELD 1
6176 THREADLIBS="$THREADLIBS -lrt"
6177 THREADSPEC="$THREADSPEC -lrt"
6178 else
6179 echo "$ac_t""no" 1>&6
6181 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
6182 echo "configure:6183: checking for sched_yield in -lposix4" >&5
6183 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
6184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6185 echo $ac_n "(cached) $ac_c" 1>&6
6186 else
6187 ac_save_LIBS="$LIBS"
6188 LIBS="-lposix4 $LIBS"
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195 char sched_yield();
6197 int main() {
6198 sched_yield()
6199 ; return 0; }
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6202 rm -rf conftest*
6203 eval "ac_cv_lib_$ac_lib_var=yes"
6204 else
6205 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6207 rm -rf conftest*
6208 eval "ac_cv_lib_$ac_lib_var=no"
6210 rm -f conftest*
6211 LIBS="$ac_save_LIBS"
6214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6217 cat >> confdefs.h <<\EOF
6218 #define HAVE_SCHED_YIELD 1
6221 THREADLIBS="$THREADLIBS -lposix4"
6222 THREADSPEC="$THREADSPEC -lposix4"
6223 else
6224 echo "$ac_t""no" 1>&6
6230 done
6232 LIBS="$save_LIBS"
6234 # We can save a little space at runtime if the mutex has m_count
6235 # or __m_count. This is a nice hack for Linux.
6236 cat > conftest.$ac_ext <<EOF
6237 #line 6238 "configure"
6238 #include "confdefs.h"
6239 #include <pthread.h>
6240 int main() {
6242 extern pthread_mutex_t *mutex; int q = mutex->m_count;
6244 ; return 0; }
6246 if { (eval echo configure:6247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6247 rm -rf conftest*
6248 cat >> confdefs.h <<\EOF
6249 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
6252 else
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 rm -rf conftest*
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6260 #include <pthread.h>
6261 int main() {
6263 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
6265 ; return 0; }
6267 if { (eval echo configure:6268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6268 rm -rf conftest*
6269 cat >> confdefs.h <<\EOF
6270 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
6273 else
6274 echo "configure: failed program was:" >&5
6275 cat conftest.$ac_ext >&5
6277 rm -f conftest*
6279 rm -f conftest*
6282 # We require a way to get the time.
6283 time_found=no
6284 for ac_func in gettimeofday time ftime
6286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6287 echo "configure:6288: checking for $ac_func" >&5
6288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6289 echo $ac_n "(cached) $ac_c" 1>&6
6290 else
6291 cat > conftest.$ac_ext <<EOF
6292 #line 6293 "configure"
6293 #include "confdefs.h"
6294 /* System header to define __stub macros and hopefully few prototypes,
6295 which can conflict with char $ac_func(); below. */
6296 #include <assert.h>
6297 /* Override any gcc2 internal prototype to avoid an error. */
6298 /* We use char because int might match the return type of a gcc2
6299 builtin and then its argument prototype would still apply. */
6300 char $ac_func();
6302 int main() {
6304 /* The GNU C library defines this for functions which it implements
6305 to always fail with ENOSYS. Some functions are actually named
6306 something starting with __ and the normal name is an alias. */
6307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6308 choke me
6309 #else
6310 $ac_func();
6311 #endif
6313 ; return 0; }
6315 if { (eval echo configure:6316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6316 rm -rf conftest*
6317 eval "ac_cv_func_$ac_func=yes"
6318 else
6319 echo "configure: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6321 rm -rf conftest*
6322 eval "ac_cv_func_$ac_func=no"
6324 rm -f conftest*
6327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6328 echo "$ac_t""yes" 1>&6
6329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6330 cat >> confdefs.h <<EOF
6331 #define $ac_tr_func 1
6333 time_found=yes
6334 else
6335 echo "$ac_t""no" 1>&6
6337 done
6339 if test "$time_found" = no; then
6340 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
6343 for ac_func in memmove
6345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6346 echo "configure:6347: checking for $ac_func" >&5
6347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6349 else
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 /* System header to define __stub macros and hopefully few prototypes,
6354 which can conflict with char $ac_func(); below. */
6355 #include <assert.h>
6356 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6359 char $ac_func();
6361 int main() {
6363 /* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6367 choke me
6368 #else
6369 $ac_func();
6370 #endif
6372 ; return 0; }
6374 if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6375 rm -rf conftest*
6376 eval "ac_cv_func_$ac_func=yes"
6377 else
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6380 rm -rf conftest*
6381 eval "ac_cv_func_$ac_func=no"
6383 rm -f conftest*
6386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6389 cat >> confdefs.h <<EOF
6390 #define $ac_tr_func 1
6393 else
6394 echo "$ac_t""no" 1>&6
6396 done
6399 # We require memcpy.
6400 memcpy_found=no
6401 for ac_func in memcpy
6403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6404 echo "configure:6405: checking for $ac_func" >&5
6405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6406 echo $ac_n "(cached) $ac_c" 1>&6
6407 else
6408 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure"
6410 #include "confdefs.h"
6411 /* System header to define __stub macros and hopefully few prototypes,
6412 which can conflict with char $ac_func(); below. */
6413 #include <assert.h>
6414 /* Override any gcc2 internal prototype to avoid an error. */
6415 /* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6417 char $ac_func();
6419 int main() {
6421 /* The GNU C library defines this for functions which it implements
6422 to always fail with ENOSYS. Some functions are actually named
6423 something starting with __ and the normal name is an alias. */
6424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6425 choke me
6426 #else
6427 $ac_func();
6428 #endif
6430 ; return 0; }
6432 if { (eval echo configure:6433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6433 rm -rf conftest*
6434 eval "ac_cv_func_$ac_func=yes"
6435 else
6436 echo "configure: failed program was:" >&5
6437 cat conftest.$ac_ext >&5
6438 rm -rf conftest*
6439 eval "ac_cv_func_$ac_func=no"
6441 rm -f conftest*
6444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6445 echo "$ac_t""yes" 1>&6
6446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6447 cat >> confdefs.h <<EOF
6448 #define $ac_tr_func 1
6450 memcpy_found=yes
6451 else
6452 echo "$ac_t""no" 1>&6
6454 done
6456 if test "$memcpy_found" = no; then
6457 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
6460 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6461 echo "configure:6462: checking for dlopen in -ldl" >&5
6462 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6464 echo $ac_n "(cached) $ac_c" 1>&6
6465 else
6466 ac_save_LIBS="$LIBS"
6467 LIBS="-ldl $LIBS"
6468 cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure"
6470 #include "confdefs.h"
6471 /* Override any gcc2 internal prototype to avoid an error. */
6472 /* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6474 char dlopen();
6476 int main() {
6477 dlopen()
6478 ; return 0; }
6480 if { (eval echo configure:6481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6481 rm -rf conftest*
6482 eval "ac_cv_lib_$ac_lib_var=yes"
6483 else
6484 echo "configure: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 rm -rf conftest*
6487 eval "ac_cv_lib_$ac_lib_var=no"
6489 rm -f conftest*
6490 LIBS="$ac_save_LIBS"
6493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6494 echo "$ac_t""yes" 1>&6
6496 cat >> confdefs.h <<\EOF
6497 #define HAVE_DLOPEN 1
6500 else
6501 echo "$ac_t""no" 1>&6
6505 # Some library-finding code we stole from Tcl.
6506 #--------------------------------------------------------------------
6507 # Check for the existence of the -lsocket and -lnsl libraries.
6508 # The order here is important, so that they end up in the right
6509 # order in the command line generated by make. Here are some
6510 # special considerations:
6511 # 1. Use "connect" and "accept" to check for -lsocket, and
6512 # "gethostbyname" to check for -lnsl.
6513 # 2. Use each function name only once: can't redo a check because
6514 # autoconf caches the results of the last check and won't redo it.
6515 # 3. Use -lnsl and -lsocket only if they supply procedures that
6516 # aren't already present in the normal libraries. This is because
6517 # IRIX 5.2 has libraries, but they aren't needed and they're
6518 # bogus: they goof up name resolution if used.
6519 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6520 # To get around this problem, check for both libraries together
6521 # if -lsocket doesn't work by itself.
6522 #--------------------------------------------------------------------
6524 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
6525 echo "configure:6526: checking for socket libraries" >&5
6526 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6528 else
6529 gcj_cv_lib_sockets=
6530 gcj_checkBoth=0
6531 unset ac_cv_func_connect
6532 echo $ac_n "checking for connect""... $ac_c" 1>&6
6533 echo "configure:6534: checking for connect" >&5
6534 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6535 echo $ac_n "(cached) $ac_c" 1>&6
6536 else
6537 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6540 /* System header to define __stub macros and hopefully few prototypes,
6541 which can conflict with char connect(); below. */
6542 #include <assert.h>
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6546 char connect();
6548 int main() {
6550 /* The GNU C library defines this for functions which it implements
6551 to always fail with ENOSYS. Some functions are actually named
6552 something starting with __ and the normal name is an alias. */
6553 #if defined (__stub_connect) || defined (__stub___connect)
6554 choke me
6555 #else
6556 connect();
6557 #endif
6559 ; return 0; }
6561 if { (eval echo configure:6562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6562 rm -rf conftest*
6563 eval "ac_cv_func_connect=yes"
6564 else
6565 echo "configure: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 rm -rf conftest*
6568 eval "ac_cv_func_connect=no"
6570 rm -f conftest*
6573 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6574 echo "$ac_t""yes" 1>&6
6575 gcj_checkSocket=0
6576 else
6577 echo "$ac_t""no" 1>&6
6578 gcj_checkSocket=1
6581 if test "$gcj_checkSocket" = 1; then
6582 unset ac_cv_func_connect
6583 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
6584 echo "configure:6585: checking for main in -lsocket" >&5
6585 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6588 else
6589 ac_save_LIBS="$LIBS"
6590 LIBS="-lsocket $LIBS"
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6595 int main() {
6596 main()
6597 ; return 0; }
6599 if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6600 rm -rf conftest*
6601 eval "ac_cv_lib_$ac_lib_var=yes"
6602 else
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6605 rm -rf conftest*
6606 eval "ac_cv_lib_$ac_lib_var=no"
6608 rm -f conftest*
6609 LIBS="$ac_save_LIBS"
6612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6613 echo "$ac_t""yes" 1>&6
6614 gcj_cv_lib_sockets="-lsocket"
6615 else
6616 echo "$ac_t""no" 1>&6
6617 gcj_checkBoth=1
6621 if test "$gcj_checkBoth" = 1; then
6622 gcj_oldLibs=$LIBS
6623 LIBS="$LIBS -lsocket -lnsl"
6624 unset ac_cv_func_accept
6625 echo $ac_n "checking for accept""... $ac_c" 1>&6
6626 echo "configure:6627: checking for accept" >&5
6627 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6628 echo $ac_n "(cached) $ac_c" 1>&6
6629 else
6630 cat > conftest.$ac_ext <<EOF
6631 #line 6632 "configure"
6632 #include "confdefs.h"
6633 /* System header to define __stub macros and hopefully few prototypes,
6634 which can conflict with char accept(); below. */
6635 #include <assert.h>
6636 /* Override any gcc2 internal prototype to avoid an error. */
6637 /* We use char because int might match the return type of a gcc2
6638 builtin and then its argument prototype would still apply. */
6639 char accept();
6641 int main() {
6643 /* The GNU C library defines this for functions which it implements
6644 to always fail with ENOSYS. Some functions are actually named
6645 something starting with __ and the normal name is an alias. */
6646 #if defined (__stub_accept) || defined (__stub___accept)
6647 choke me
6648 #else
6649 accept();
6650 #endif
6652 ; return 0; }
6654 if { (eval echo configure:6655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6655 rm -rf conftest*
6656 eval "ac_cv_func_accept=yes"
6657 else
6658 echo "configure: failed program was:" >&5
6659 cat conftest.$ac_ext >&5
6660 rm -rf conftest*
6661 eval "ac_cv_func_accept=no"
6663 rm -f conftest*
6666 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6667 echo "$ac_t""yes" 1>&6
6668 gcj_checkNsl=0
6669 gcj_cv_lib_sockets="-lsocket -lnsl"
6670 else
6671 echo "$ac_t""no" 1>&6
6674 unset ac_cv_func_accept
6675 LIBS=$gcj_oldLibs
6677 unset ac_cv_func_gethostbyname
6678 gcj_oldLibs=$LIBS
6679 LIBS="$LIBS $gcj_cv_lib_sockets"
6680 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6681 echo "configure:6682: checking for gethostbyname" >&5
6682 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6684 else
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 /* System header to define __stub macros and hopefully few prototypes,
6689 which can conflict with char gethostbyname(); below. */
6690 #include <assert.h>
6691 /* Override any gcc2 internal prototype to avoid an error. */
6692 /* We use char because int might match the return type of a gcc2
6693 builtin and then its argument prototype would still apply. */
6694 char gethostbyname();
6696 int main() {
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6702 choke me
6703 #else
6704 gethostbyname();
6705 #endif
6707 ; return 0; }
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 rm -rf conftest*
6711 eval "ac_cv_func_gethostbyname=yes"
6712 else
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 rm -rf conftest*
6716 eval "ac_cv_func_gethostbyname=no"
6718 rm -f conftest*
6721 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6724 else
6725 echo "$ac_t""no" 1>&6
6726 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
6727 echo "configure:6728: checking for main in -lnsl" >&5
6728 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6731 else
6732 ac_save_LIBS="$LIBS"
6733 LIBS="-lnsl $LIBS"
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6738 int main() {
6739 main()
6740 ; return 0; }
6742 if { (eval echo configure:6743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6743 rm -rf conftest*
6744 eval "ac_cv_lib_$ac_lib_var=yes"
6745 else
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6748 rm -rf conftest*
6749 eval "ac_cv_lib_$ac_lib_var=no"
6751 rm -f conftest*
6752 LIBS="$ac_save_LIBS"
6755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6758 else
6759 echo "$ac_t""no" 1>&6
6764 unset ac_cv_func_gethostbyname
6765 LIBS=$gcj_oldLIBS
6769 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6770 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6772 if test "$with_system_zlib" = yes; then
6773 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6774 echo "configure:6775: checking for deflate in -lz" >&5
6775 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6778 else
6779 ac_save_LIBS="$LIBS"
6780 LIBS="-lz $LIBS"
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
6784 /* Override any gcc2 internal prototype to avoid an error. */
6785 /* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6787 char deflate();
6789 int main() {
6790 deflate()
6791 ; return 0; }
6793 if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6794 rm -rf conftest*
6795 eval "ac_cv_lib_$ac_lib_var=yes"
6796 else
6797 echo "configure: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6799 rm -rf conftest*
6800 eval "ac_cv_lib_$ac_lib_var=no"
6802 rm -f conftest*
6803 LIBS="$ac_save_LIBS"
6806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6808 ZLIBSPEC=-lz
6809 else
6810 echo "$ac_t""no" 1>&6
6811 ZLIBSPEC=
6816 # Test for Gtk stuff, if asked for.
6817 if test "$use_gtk_awt" = yes; then
6819 succeeded=no
6821 if test -z "$PKG_CONFIG"; then
6822 # Extract the first word of "pkg-config", so it can be a program name with args.
6823 set dummy pkg-config; ac_word=$2
6824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6825 echo "configure:6826: checking for $ac_word" >&5
6826 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6828 else
6829 case "$PKG_CONFIG" in
6831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6833 ?:/*)
6834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6838 ac_dummy="$PATH"
6839 for ac_dir in $ac_dummy; do
6840 test -z "$ac_dir" && ac_dir=.
6841 if test -f $ac_dir/$ac_word; then
6842 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6843 break
6845 done
6846 IFS="$ac_save_ifs"
6847 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6849 esac
6851 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6852 if test -n "$PKG_CONFIG"; then
6853 echo "$ac_t""$PKG_CONFIG" 1>&6
6854 else
6855 echo "$ac_t""no" 1>&6
6860 if test "$PKG_CONFIG" = "no" ; then
6861 echo "*** The pkg-config script could not be found. Make sure it is"
6862 echo "*** in your path, or set the PKG_CONFIG environment variable"
6863 echo "*** to the full path to pkg-config."
6864 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6865 else
6866 PKG_CONFIG_MIN_VERSION=0.9.0
6867 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6868 echo $ac_n "checking for gtk+-2.0 >= 2.2""... $ac_c" 1>&6
6869 echo "configure:6870: checking for gtk+-2.0 >= 2.2" >&5
6871 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2" ; then
6872 echo "$ac_t""yes" 1>&6
6873 succeeded=yes
6875 echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6
6876 echo "configure:6877: checking GTK_CFLAGS" >&5
6877 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.2"`
6878 echo "$ac_t""$GTK_CFLAGS" 1>&6
6880 echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6
6881 echo "configure:6882: checking GTK_LIBS" >&5
6882 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.2"`
6883 echo "$ac_t""$GTK_LIBS" 1>&6
6884 else
6885 GTK_CFLAGS=""
6886 GTK_LIBS=""
6887 ## If we have a custom action on failure, don't print errors, but
6888 ## do set a variable so people can do so.
6889 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2"`
6890 echo $GTK_PKG_ERRORS
6895 else
6896 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6897 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6901 if test $succeeded = yes; then
6903 else
6904 { echo "configure: error: Library requirements (gtk+-2.0 >= 2.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
6911 succeeded=no
6913 if test -z "$PKG_CONFIG"; then
6914 # Extract the first word of "pkg-config", so it can be a program name with args.
6915 set dummy pkg-config; ac_word=$2
6916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6917 echo "configure:6918: checking for $ac_word" >&5
6918 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6919 echo $ac_n "(cached) $ac_c" 1>&6
6920 else
6921 case "$PKG_CONFIG" in
6923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6925 ?:/*)
6926 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6930 ac_dummy="$PATH"
6931 for ac_dir in $ac_dummy; do
6932 test -z "$ac_dir" && ac_dir=.
6933 if test -f $ac_dir/$ac_word; then
6934 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6935 break
6937 done
6938 IFS="$ac_save_ifs"
6939 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6941 esac
6943 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6944 if test -n "$PKG_CONFIG"; then
6945 echo "$ac_t""$PKG_CONFIG" 1>&6
6946 else
6947 echo "$ac_t""no" 1>&6
6952 if test "$PKG_CONFIG" = "no" ; then
6953 echo "*** The pkg-config script could not be found. Make sure it is"
6954 echo "*** in your path, or set the PKG_CONFIG environment variable"
6955 echo "*** to the full path to pkg-config."
6956 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6957 else
6958 PKG_CONFIG_MIN_VERSION=0.9.0
6959 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6960 echo $ac_n "checking for glib-2.0 >= 2.2 gthread-2.0 >= 2.2""... $ac_c" 1>&6
6961 echo "configure:6962: checking for glib-2.0 >= 2.2 gthread-2.0 >= 2.2" >&5
6963 if $PKG_CONFIG --exists "glib-2.0 >= 2.2 gthread-2.0 >= 2.2" ; then
6964 echo "$ac_t""yes" 1>&6
6965 succeeded=yes
6967 echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
6968 echo "configure:6969: checking GLIB_CFLAGS" >&5
6969 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6970 echo "$ac_t""$GLIB_CFLAGS" 1>&6
6972 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
6973 echo "configure:6974: checking GLIB_LIBS" >&5
6974 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6975 echo "$ac_t""$GLIB_LIBS" 1>&6
6976 else
6977 GLIB_CFLAGS=""
6978 GLIB_LIBS=""
6979 ## If we have a custom action on failure, don't print errors, but
6980 ## do set a variable so people can do so.
6981 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6982 echo $GLIB_PKG_ERRORS
6987 else
6988 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6989 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6993 if test $succeeded = yes; then
6995 else
6996 { echo "configure: error: Library requirements (glib-2.0 >= 2.2 gthread-2.0 >= 2.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
7003 succeeded=no
7005 if test -z "$PKG_CONFIG"; then
7006 # Extract the first word of "pkg-config", so it can be a program name with args.
7007 set dummy pkg-config; ac_word=$2
7008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7009 echo "configure:7010: checking for $ac_word" >&5
7010 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7012 else
7013 case "$PKG_CONFIG" in
7015 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7017 ?:/*)
7018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
7021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7022 ac_dummy="$PATH"
7023 for ac_dir in $ac_dummy; do
7024 test -z "$ac_dir" && ac_dir=.
7025 if test -f $ac_dir/$ac_word; then
7026 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7027 break
7029 done
7030 IFS="$ac_save_ifs"
7031 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7033 esac
7035 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7036 if test -n "$PKG_CONFIG"; then
7037 echo "$ac_t""$PKG_CONFIG" 1>&6
7038 else
7039 echo "$ac_t""no" 1>&6
7044 if test "$PKG_CONFIG" = "no" ; then
7045 echo "*** The pkg-config script could not be found. Make sure it is"
7046 echo "*** in your path, or set the PKG_CONFIG environment variable"
7047 echo "*** to the full path to pkg-config."
7048 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7049 else
7050 PKG_CONFIG_MIN_VERSION=0.9.0
7051 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7052 echo $ac_n "checking for libart-2.0 >= 2.1""... $ac_c" 1>&6
7053 echo "configure:7054: checking for libart-2.0 >= 2.1" >&5
7055 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
7056 echo "$ac_t""yes" 1>&6
7057 succeeded=yes
7059 echo $ac_n "checking LIBART_CFLAGS""... $ac_c" 1>&6
7060 echo "configure:7061: checking LIBART_CFLAGS" >&5
7061 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
7062 echo "$ac_t""$LIBART_CFLAGS" 1>&6
7064 echo $ac_n "checking LIBART_LIBS""... $ac_c" 1>&6
7065 echo "configure:7066: checking LIBART_LIBS" >&5
7066 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
7067 echo "$ac_t""$LIBART_LIBS" 1>&6
7068 else
7069 LIBART_CFLAGS=""
7070 LIBART_LIBS=""
7071 ## If we have a custom action on failure, don't print errors, but
7072 ## do set a variable so people can do so.
7073 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
7074 echo $LIBART_PKG_ERRORS
7079 else
7080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7085 if test $succeeded = yes; then
7087 else
7088 { echo "configure: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
7095 # On Solaris, and maybe other architectures, the Boehm collector
7096 # requires -ldl.
7097 if test "$GC" = boehm; then
7098 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
7099 echo "configure:7100: checking for main in -ldl" >&5
7100 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7103 else
7104 ac_save_LIBS="$LIBS"
7105 LIBS="-ldl $LIBS"
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7110 int main() {
7111 main()
7112 ; return 0; }
7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7115 rm -rf conftest*
7116 eval "ac_cv_lib_$ac_lib_var=yes"
7117 else
7118 echo "configure: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7120 rm -rf conftest*
7121 eval "ac_cv_lib_$ac_lib_var=no"
7123 rm -f conftest*
7124 LIBS="$ac_save_LIBS"
7127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7128 echo "$ac_t""yes" 1>&6
7129 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7130 else
7131 echo "$ac_t""no" 1>&6
7137 if test -z "${with_multisubdir}"; then
7138 builddotdot=.
7139 else
7141 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7145 NATIVE=yes
7147 # Which gcj do we use?
7148 which_gcj=default
7149 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7150 if test -n "${with_cross_host}"; then
7151 # We are being configured with a cross compiler. We can't
7152 # use ac_exeext, because that is for the target platform.
7153 NATIVE=no
7154 cross_host_exeext=
7155 case "${with_cross_host}" in
7156 *mingw* | *cygwin*)
7157 cross_host_exeext=.exe
7159 esac
7160 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
7161 if test x"$build_noncanonical" = x"$with_cross_host"; then
7162 # Ordinary cross (host!=target and host=build)
7163 which_gcj=built
7164 else
7165 # Canadian cross (host!=target and host!=build)
7166 which_gcj=cross
7168 else
7169 which_gcj=cross
7171 else
7172 # We are being configured with a native or crossed-native compiler
7173 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
7174 if test x"$build" = x"$host"; then
7175 # True native build (host=target and host=build)
7176 which_gcj=built
7177 else
7178 # Crossed-native build (host=target and host!=build)
7179 which_gcj=cross
7181 else
7182 which_gcj=path
7185 case "${which_gcj}" in
7186 built)
7187 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7188 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
7189 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar'
7191 cross)
7192 if test "x${with_newlib}" = "xyes"; then
7193 # FIXME (comment): Why is this needed?
7194 GCC_UNWIND_INCLUDE=
7195 GCJ="${target_noncanonical}-gcj"
7196 else
7197 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
7199 ZIP=jar
7200 GCJH='$(target_noncanonical)-gcjh'
7202 path)
7203 GCJ="gcj -B`${PWDCMD-pwd}`/"
7204 ## In this case, gcj is found outside the build tree. However, zip is
7205 ## found in the build tree.
7206 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar'
7207 GCJH=gcjh
7209 esac
7214 # Create it, so that compile/link tests don't fail
7215 test -f libgcj.spec || touch libgcj.spec
7217 # We must search the source tree for java.lang, since we still don't
7218 # have libgcj.jar nor java/lang/*.class
7219 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7220 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7222 # Since some classes depend on this one, we need its source available
7223 # before we can do any GCJ compilation test :-(
7224 if test ! -f gnu/classpath/Configuration.java; then
7225 test -d gnu || mkdir gnu
7226 test -d gnu/classpath || mkdir gnu/classpath
7227 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7228 -e 's,@TOOLKIT@,$TOOLKIT,' \
7229 < $srcdir/gnu/classpath/Configuration.java.in \
7230 > gnu/classpath/Configuration.java
7231 # We do not want to redirect the output of the grep below to /dev/null,
7232 # but we add /dev/null to the input list so that grep will print the
7233 # filename of Configuration.java in case it finds any matches.
7234 if grep @ gnu/classpath/Configuration.java /dev/null; then
7235 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
7239 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
7240 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_word" >&5
7243 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7245 else
7246 if test -n "$GCJ"; then
7247 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7248 else
7249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7250 ac_dummy="$PATH"
7251 for ac_dir in $ac_dummy; do
7252 test -z "$ac_dir" && ac_dir=.
7253 if test -f $ac_dir/$ac_word; then
7254 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
7255 break
7257 done
7258 IFS="$ac_save_ifs"
7261 GCJ="$ac_cv_prog_GCJ"
7262 if test -n "$GCJ"; then
7263 echo "$ac_t""$GCJ" 1>&6
7264 else
7265 echo "$ac_t""no" 1>&6
7269 if test -z "$ac_cv_prog_GCJ"; then
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "gcj", so it can be a program name with args.
7272 set dummy gcj; ac_word=$2
7273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7274 echo "configure:7275: checking for $ac_word" >&5
7275 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7276 echo $ac_n "(cached) $ac_c" 1>&6
7277 else
7278 if test -n "$GCJ"; then
7279 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7280 else
7281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7282 ac_dummy="$PATH"
7283 for ac_dir in $ac_dummy; do
7284 test -z "$ac_dir" && ac_dir=.
7285 if test -f $ac_dir/$ac_word; then
7286 ac_cv_prog_GCJ="gcj"
7287 break
7289 done
7290 IFS="$ac_save_ifs"
7291 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
7294 GCJ="$ac_cv_prog_GCJ"
7295 if test -n "$GCJ"; then
7296 echo "$ac_t""$GCJ" 1>&6
7297 else
7298 echo "$ac_t""no" 1>&6
7301 else
7302 GCJ="no"
7306 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7310 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7311 lt_save_CC="$CC"
7312 lt_save_CFLAGS="$CFLAGS"
7313 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7314 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7315 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7316 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7317 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7318 deplibs_check_method="$deplibs_check_method" \
7319 file_magic_cmd="$file_magic_cmd" \
7320 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7321 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7322 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
7323 CC="$lt_save_CC"
7324 CFLAGS="$lt_save_CFLAGS"
7326 # Redirect the config.log output again, so that the ltconfig log is not
7327 # clobbered by the next message.
7328 exec 5>>./config.log
7333 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7335 echo $ac_n "checking size of void *""... $ac_c" 1>&6
7336 echo "configure:7337: checking size of void *" >&5
7337 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7339 else
7340 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7344 #include "confdefs.h"
7345 #include <sys/types.h>
7348 int main() {
7349 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7350 ; return 0; }
7352 if { (eval echo configure:7353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7353 rm -rf conftest*
7354 ac_cv_sizeof_void_p=$ac_size
7355 else
7356 echo "configure: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7359 rm -f conftest*
7360 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7361 done
7365 if test x$ac_cv_sizeof_void_p = x ; then
7366 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
7368 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7369 cat >> confdefs.h <<EOF
7370 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7375 ZLIBS=
7376 SYS_ZLIBS=
7377 ZINCS=
7379 if test -z "$ZLIBSPEC"; then
7380 # Use zlib from the GCC tree.
7381 ZINCS='-I$(top_srcdir)/../zlib'
7382 ZLIBS=../zlib/libzgcj_convenience.la
7383 else
7384 # System's zlib.
7385 SYS_ZLIBS="$ZLIBSPEC"
7397 if test "$NATIVE" = yes; then
7398 NATIVE_TRUE=
7399 NATIVE_FALSE='#'
7400 else
7401 NATIVE_TRUE='#'
7402 NATIVE_FALSE=
7406 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7407 NEEDS_DATA_START_TRUE=
7408 NEEDS_DATA_START_FALSE='#'
7409 else
7410 NEEDS_DATA_START_TRUE='#'
7411 NEEDS_DATA_START_FALSE=
7415 # Process the option "--enable-version-specific-runtime-libs"
7416 # Calculate toolexeclibdir
7417 case ${version_specific_libs} in
7418 yes)
7419 # Need the gcc compiler version to know where to install libraries
7420 # and header files if --enable-version-specific-runtime-libs option
7421 # is selected.
7422 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
7423 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
7424 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
7425 toolexeclibdir=$toolexecmainlibdir
7428 if test -n "$with_cross_host" &&
7429 test x"$with_cross_host" != x"no"; then
7430 # Install a library built with a cross compiler in tooldir, not libdir.
7431 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
7432 toolexecmainlibdir='$(toolexecdir)/lib'
7433 else
7434 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
7435 toolexecmainlibdir='$(libdir)'
7437 multi_os_directory=`$CC -print-multi-os-directory`
7438 case $multi_os_directory in
7439 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7440 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7441 esac
7443 esac
7448 # Determine gcj version number.
7450 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7452 GCJVERSION=$gcjversion
7454 cat >> confdefs.h <<EOF
7455 #define GCJVERSION "$GCJVERSION"
7459 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 net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
7461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7463 echo "configure:7464: checking for $ac_hdr" >&5
7464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7466 else
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 #include <$ac_hdr>
7472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7473 { (eval echo configure:7474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7475 if test -z "$ac_err"; then
7476 rm -rf conftest*
7477 eval "ac_cv_header_$ac_safe=yes"
7478 else
7479 echo "$ac_err" >&5
7480 echo "configure: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7482 rm -rf conftest*
7483 eval "ac_cv_header_$ac_safe=no"
7485 rm -f conftest*
7487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7490 cat >> confdefs.h <<EOF
7491 #define $ac_tr_hdr 1
7494 else
7495 echo "$ac_t""no" 1>&6
7497 done
7499 for ac_hdr in dirent.h
7501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7503 echo "configure:7504: checking for $ac_hdr" >&5
7504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7505 echo $ac_n "(cached) $ac_c" 1>&6
7506 else
7507 cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7510 #include <$ac_hdr>
7512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7513 { (eval echo configure:7514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7515 if test -z "$ac_err"; then
7516 rm -rf conftest*
7517 eval "ac_cv_header_$ac_safe=yes"
7518 else
7519 echo "$ac_err" >&5
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7522 rm -rf conftest*
7523 eval "ac_cv_header_$ac_safe=no"
7525 rm -f conftest*
7527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7528 echo "$ac_t""yes" 1>&6
7529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7530 cat >> confdefs.h <<EOF
7531 #define $ac_tr_hdr 1
7534 else
7535 echo "$ac_t""no" 1>&6
7537 done
7539 for ac_hdr in inttypes.h
7541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7543 echo "configure:7544: checking for $ac_hdr" >&5
7544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7545 echo $ac_n "(cached) $ac_c" 1>&6
7546 else
7547 cat > conftest.$ac_ext <<EOF
7548 #line 7549 "configure"
7549 #include "confdefs.h"
7550 #include <$ac_hdr>
7552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7553 { (eval echo configure:7554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7555 if test -z "$ac_err"; then
7556 rm -rf conftest*
7557 eval "ac_cv_header_$ac_safe=yes"
7558 else
7559 echo "$ac_err" >&5
7560 echo "configure: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7562 rm -rf conftest*
7563 eval "ac_cv_header_$ac_safe=no"
7565 rm -f conftest*
7567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7568 echo "$ac_t""yes" 1>&6
7569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7570 cat >> confdefs.h <<EOF
7571 #define $ac_tr_hdr 1
7574 cat >> confdefs.h <<\EOF
7575 #define HAVE_INTTYPES_H 1
7578 cat >> confdefs.h <<\EOF
7579 #define JV_HAVE_INTTYPES_H 1
7583 else
7584 echo "$ac_t""no" 1>&6
7586 done
7588 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7589 echo "configure:7590: checking for sys/wait.h that is POSIX.1 compatible" >&5
7590 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7591 echo $ac_n "(cached) $ac_c" 1>&6
7592 else
7593 cat > conftest.$ac_ext <<EOF
7594 #line 7595 "configure"
7595 #include "confdefs.h"
7596 #include <sys/types.h>
7597 #include <sys/wait.h>
7598 #ifndef WEXITSTATUS
7599 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7600 #endif
7601 #ifndef WIFEXITED
7602 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7603 #endif
7604 int main() {
7605 int s;
7606 wait (&s);
7607 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7608 ; return 0; }
7610 if { (eval echo configure:7611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7611 rm -rf conftest*
7612 ac_cv_header_sys_wait_h=yes
7613 else
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 ac_cv_header_sys_wait_h=no
7619 rm -f conftest*
7622 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7623 if test $ac_cv_header_sys_wait_h = yes; then
7624 cat >> confdefs.h <<\EOF
7625 #define HAVE_SYS_WAIT_H 1
7631 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7632 echo "configure:7633: checking for ANSI C header files" >&5
7633 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7634 echo $ac_n "(cached) $ac_c" 1>&6
7635 else
7636 cat > conftest.$ac_ext <<EOF
7637 #line 7638 "configure"
7638 #include "confdefs.h"
7639 #include <stdlib.h>
7640 #include <stdarg.h>
7641 #include <string.h>
7642 #include <float.h>
7644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7645 { (eval echo configure:7646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7647 if test -z "$ac_err"; then
7648 rm -rf conftest*
7649 ac_cv_header_stdc=yes
7650 else
7651 echo "$ac_err" >&5
7652 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7654 rm -rf conftest*
7655 ac_cv_header_stdc=no
7657 rm -f conftest*
7659 if test $ac_cv_header_stdc = yes; then
7660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7661 cat > conftest.$ac_ext <<EOF
7662 #line 7663 "configure"
7663 #include "confdefs.h"
7664 #include <string.h>
7666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7667 egrep "memchr" >/dev/null 2>&1; then
7669 else
7670 rm -rf conftest*
7671 ac_cv_header_stdc=no
7673 rm -f conftest*
7677 if test $ac_cv_header_stdc = yes; then
7678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682 #include <stdlib.h>
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 egrep "free" >/dev/null 2>&1; then
7687 else
7688 rm -rf conftest*
7689 ac_cv_header_stdc=no
7691 rm -f conftest*
7695 if test $ac_cv_header_stdc = yes; then
7696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7697 if test "$cross_compiling" = yes; then
7699 else
7700 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7703 #include <ctype.h>
7704 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7705 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7707 int main () { int i; for (i = 0; i < 256; i++)
7708 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7709 exit (0); }
7712 if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7713 then
7715 else
7716 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 rm -fr conftest*
7719 ac_cv_header_stdc=no
7721 rm -fr conftest*
7727 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7728 if test $ac_cv_header_stdc = yes; then
7729 cat >> confdefs.h <<\EOF
7730 #define STDC_HEADERS 1
7735 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
7736 echo "configure:7737: checking for ssize_t" >&5
7737 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7738 echo $ac_n "(cached) $ac_c" 1>&6
7739 else
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 #include <sys/types.h>
7744 #if STDC_HEADERS
7745 #include <stdlib.h>
7746 #include <stddef.h>
7747 #endif
7749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7751 rm -rf conftest*
7752 ac_cv_type_ssize_t=yes
7753 else
7754 rm -rf conftest*
7755 ac_cv_type_ssize_t=no
7757 rm -f conftest*
7760 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7761 if test $ac_cv_type_ssize_t = no; then
7762 cat >> confdefs.h <<\EOF
7763 #define ssize_t int
7769 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
7770 echo "configure:7771: checking for in_addr_t" >&5
7771 cat > conftest.$ac_ext <<EOF
7772 #line 7773 "configure"
7773 #include "confdefs.h"
7774 #include <sys/types.h>
7775 #if STDC_HEADERS
7776 #include <stdlib.h>
7777 #include <stddef.h>
7778 #endif
7779 #if HAVE_NETINET_IN_H
7780 #include <netinet/in.h>
7781 #endif
7782 int main() {
7783 in_addr_t foo;
7784 ; return 0; }
7786 if { (eval echo configure:7787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7787 rm -rf conftest*
7788 cat >> confdefs.h <<\EOF
7789 #define HAVE_IN_ADDR_T 1
7792 echo "$ac_t""yes" 1>&6
7793 else
7794 echo "configure: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7796 rm -rf conftest*
7797 echo "$ac_t""no" 1>&6
7799 rm -f conftest*
7801 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
7802 echo "configure:7803: checking whether struct ip_mreq is in netinet/in.h" >&5
7803 cat > conftest.$ac_ext <<EOF
7804 #line 7805 "configure"
7805 #include "confdefs.h"
7806 #include <netinet/in.h>
7807 int main() {
7808 struct ip_mreq mreq;
7809 ; return 0; }
7811 if { (eval echo configure:7812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7812 rm -rf conftest*
7813 cat >> confdefs.h <<\EOF
7814 #define HAVE_STRUCT_IP_MREQ 1
7817 echo "$ac_t""yes" 1>&6
7818 else
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7821 rm -rf conftest*
7822 echo "$ac_t""no" 1>&6
7824 rm -f conftest*
7826 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
7827 echo "configure:7828: checking whether struct ipv6_mreq is in netinet/in.h" >&5
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 #include <netinet/in.h>
7832 int main() {
7833 struct ipv6_mreq mreq6;
7834 ; return 0; }
7836 if { (eval echo configure:7837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7837 rm -rf conftest*
7838 cat >> confdefs.h <<\EOF
7839 #define HAVE_STRUCT_IPV6_MREQ 1
7842 echo "$ac_t""yes" 1>&6
7843 else
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 rm -rf conftest*
7847 echo "$ac_t""no" 1>&6
7849 rm -f conftest*
7851 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
7852 echo "configure:7853: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
7853 cat > conftest.$ac_ext <<EOF
7854 #line 7855 "configure"
7855 #include "confdefs.h"
7856 #include <netinet/in.h>
7857 int main() {
7858 struct sockaddr_in6 addr6;
7859 ; return 0; }
7861 if { (eval echo configure:7862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7862 rm -rf conftest*
7863 cat >> confdefs.h <<\EOF
7864 #define HAVE_INET6 1
7867 echo "$ac_t""yes" 1>&6
7868 else
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7871 rm -rf conftest*
7872 echo "$ac_t""no" 1>&6
7874 rm -f conftest*
7876 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
7877 echo "configure:7878: checking for socklen_t in sys/socket.h" >&5
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 #define _POSIX_PII_SOCKET
7882 #include <sys/types.h>
7883 #include <sys/socket.h>
7884 int main() {
7885 socklen_t x = 5;
7886 ; return 0; }
7888 if { (eval echo configure:7889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7889 rm -rf conftest*
7890 cat >> confdefs.h <<\EOF
7891 #define HAVE_SOCKLEN_T 1
7894 echo "$ac_t""yes" 1>&6
7895 else
7896 echo "configure: failed program was:" >&5
7897 cat conftest.$ac_ext >&5
7898 rm -rf conftest*
7899 echo "$ac_t""no" 1>&6
7901 rm -f conftest*
7903 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
7904 echo "configure:7905: checking for tm_gmtoff in struct tm" >&5
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure"
7907 #include "confdefs.h"
7908 #include <time.h>
7909 int main() {
7910 struct tm tim; tim.tm_gmtoff = 0;
7911 ; return 0; }
7913 if { (eval echo configure:7914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7914 rm -rf conftest*
7915 cat >> confdefs.h <<\EOF
7916 #define STRUCT_TM_HAS_GMTOFF 1
7919 echo "$ac_t""yes" 1>&6
7920 else
7921 echo "configure: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7923 rm -rf conftest*
7924 echo "$ac_t""no" 1>&6
7925 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
7926 echo "configure:7927: checking for global timezone variable" >&5
7927 cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure"
7929 #include "confdefs.h"
7930 #include <time.h>
7931 int main() {
7932 void i(){long z2 = 2*timezone;}
7933 ; return 0; }
7935 if { (eval echo configure:7936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7936 rm -rf conftest*
7937 cat >> confdefs.h <<\EOF
7938 #define HAVE_TIMEZONE 1
7941 echo "$ac_t""yes" 1>&6
7942 else
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7945 rm -rf conftest*
7946 echo "$ac_t""no" 1>&6
7947 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
7948 echo "configure:7949: checking for global _timezone variable" >&5
7949 cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7952 #include <time.h>
7953 int main() {
7954 long z2 = _timezone;
7955 ; return 0; }
7957 if { (eval echo configure:7958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7958 rm -rf conftest*
7959 cat >> confdefs.h <<\EOF
7960 #define HAVE_UNDERSCORE_TIMEZONE 1
7963 echo "$ac_t""yes" 1>&6
7964 else
7965 echo "configure: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 rm -rf conftest*
7968 echo "$ac_t""no" 1>&6
7970 rm -f conftest*
7972 rm -f conftest*
7974 rm -f conftest*
7976 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7977 # for constant arguments. Useless!
7978 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7979 echo "configure:7980: checking for working alloca.h" >&5
7980 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7982 else
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 #include <alloca.h>
7987 int main() {
7988 char *p = alloca(2 * sizeof(int));
7989 ; return 0; }
7991 if { (eval echo configure:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7992 rm -rf conftest*
7993 ac_cv_header_alloca_h=yes
7994 else
7995 echo "configure: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7997 rm -rf conftest*
7998 ac_cv_header_alloca_h=no
8000 rm -f conftest*
8003 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8004 if test $ac_cv_header_alloca_h = yes; then
8005 cat >> confdefs.h <<\EOF
8006 #define HAVE_ALLOCA_H 1
8011 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8012 echo "configure:8013: checking for alloca" >&5
8013 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8014 echo $ac_n "(cached) $ac_c" 1>&6
8015 else
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8020 #ifdef __GNUC__
8021 # define alloca __builtin_alloca
8022 #else
8023 # ifdef _MSC_VER
8024 # include <malloc.h>
8025 # define alloca _alloca
8026 # else
8027 # if HAVE_ALLOCA_H
8028 # include <alloca.h>
8029 # else
8030 # ifdef _AIX
8031 #pragma alloca
8032 # else
8033 # ifndef alloca /* predefined by HP cc +Olibcalls */
8034 char *alloca ();
8035 # endif
8036 # endif
8037 # endif
8038 # endif
8039 #endif
8041 int main() {
8042 char *p = (char *) alloca(1);
8043 ; return 0; }
8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8046 rm -rf conftest*
8047 ac_cv_func_alloca_works=yes
8048 else
8049 echo "configure: failed program was:" >&5
8050 cat conftest.$ac_ext >&5
8051 rm -rf conftest*
8052 ac_cv_func_alloca_works=no
8054 rm -f conftest*
8057 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8058 if test $ac_cv_func_alloca_works = yes; then
8059 cat >> confdefs.h <<\EOF
8060 #define HAVE_ALLOCA 1
8065 if test $ac_cv_func_alloca_works = no; then
8066 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8067 # that cause trouble. Some versions do not even contain alloca or
8068 # contain a buggy version. If you still want to use their alloca,
8069 # use ar to extract alloca.o from them instead of compiling alloca.c.
8070 ALLOCA=alloca.${ac_objext}
8071 cat >> confdefs.h <<\EOF
8072 #define C_ALLOCA 1
8076 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8077 echo "configure:8078: checking whether alloca needs Cray hooks" >&5
8078 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8079 echo $ac_n "(cached) $ac_c" 1>&6
8080 else
8081 cat > conftest.$ac_ext <<EOF
8082 #line 8083 "configure"
8083 #include "confdefs.h"
8084 #if defined(CRAY) && ! defined(CRAY2)
8085 webecray
8086 #else
8087 wenotbecray
8088 #endif
8091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8092 egrep "webecray" >/dev/null 2>&1; then
8093 rm -rf conftest*
8094 ac_cv_os_cray=yes
8095 else
8096 rm -rf conftest*
8097 ac_cv_os_cray=no
8099 rm -f conftest*
8103 echo "$ac_t""$ac_cv_os_cray" 1>&6
8104 if test $ac_cv_os_cray = yes; then
8105 for ac_func in _getb67 GETB67 getb67; do
8106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8107 echo "configure:8108: checking for $ac_func" >&5
8108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8110 else
8111 cat > conftest.$ac_ext <<EOF
8112 #line 8113 "configure"
8113 #include "confdefs.h"
8114 /* System header to define __stub macros and hopefully few prototypes,
8115 which can conflict with char $ac_func(); below. */
8116 #include <assert.h>
8117 /* Override any gcc2 internal prototype to avoid an error. */
8118 /* We use char because int might match the return type of a gcc2
8119 builtin and then its argument prototype would still apply. */
8120 char $ac_func();
8122 int main() {
8124 /* The GNU C library defines this for functions which it implements
8125 to always fail with ENOSYS. Some functions are actually named
8126 something starting with __ and the normal name is an alias. */
8127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8128 choke me
8129 #else
8130 $ac_func();
8131 #endif
8133 ; return 0; }
8135 if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8136 rm -rf conftest*
8137 eval "ac_cv_func_$ac_func=yes"
8138 else
8139 echo "configure: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 rm -rf conftest*
8142 eval "ac_cv_func_$ac_func=no"
8144 rm -f conftest*
8147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8148 echo "$ac_t""yes" 1>&6
8149 cat >> confdefs.h <<EOF
8150 #define CRAY_STACKSEG_END $ac_func
8153 break
8154 else
8155 echo "$ac_t""no" 1>&6
8158 done
8161 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8162 echo "configure:8163: checking stack direction for C alloca" >&5
8163 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8165 else
8166 if test "$cross_compiling" = yes; then
8167 ac_cv_c_stack_direction=0
8168 else
8169 cat > conftest.$ac_ext <<EOF
8170 #line 8171 "configure"
8171 #include "confdefs.h"
8172 find_stack_direction ()
8174 static char *addr = 0;
8175 auto char dummy;
8176 if (addr == 0)
8178 addr = &dummy;
8179 return find_stack_direction ();
8181 else
8182 return (&dummy > addr) ? 1 : -1;
8184 main ()
8186 exit (find_stack_direction() < 0);
8189 if { (eval echo configure:8190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8190 then
8191 ac_cv_c_stack_direction=1
8192 else
8193 echo "configure: failed program was:" >&5
8194 cat conftest.$ac_ext >&5
8195 rm -fr conftest*
8196 ac_cv_c_stack_direction=-1
8198 rm -fr conftest*
8203 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8204 cat >> confdefs.h <<EOF
8205 #define STACK_DIRECTION $ac_cv_c_stack_direction
8210 for ac_hdr in unistd.h
8212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8214 echo "configure:8215: checking for $ac_hdr" >&5
8215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8216 echo $ac_n "(cached) $ac_c" 1>&6
8217 else
8218 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure"
8220 #include "confdefs.h"
8221 #include <$ac_hdr>
8223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8224 { (eval echo configure:8225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8226 if test -z "$ac_err"; then
8227 rm -rf conftest*
8228 eval "ac_cv_header_$ac_safe=yes"
8229 else
8230 echo "$ac_err" >&5
8231 echo "configure: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233 rm -rf conftest*
8234 eval "ac_cv_header_$ac_safe=no"
8236 rm -f conftest*
8238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8239 echo "$ac_t""yes" 1>&6
8240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8241 cat >> confdefs.h <<EOF
8242 #define $ac_tr_hdr 1
8245 else
8246 echo "$ac_t""no" 1>&6
8248 done
8250 for ac_func in getpagesize
8252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8253 echo "configure:8254: checking for $ac_func" >&5
8254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8255 echo $ac_n "(cached) $ac_c" 1>&6
8256 else
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 /* System header to define __stub macros and hopefully few prototypes,
8261 which can conflict with char $ac_func(); below. */
8262 #include <assert.h>
8263 /* Override any gcc2 internal prototype to avoid an error. */
8264 /* We use char because int might match the return type of a gcc2
8265 builtin and then its argument prototype would still apply. */
8266 char $ac_func();
8268 int main() {
8270 /* The GNU C library defines this for functions which it implements
8271 to always fail with ENOSYS. Some functions are actually named
8272 something starting with __ and the normal name is an alias. */
8273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8274 choke me
8275 #else
8276 $ac_func();
8277 #endif
8279 ; return 0; }
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8282 rm -rf conftest*
8283 eval "ac_cv_func_$ac_func=yes"
8284 else
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 rm -rf conftest*
8288 eval "ac_cv_func_$ac_func=no"
8290 rm -f conftest*
8293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8296 cat >> confdefs.h <<EOF
8297 #define $ac_tr_func 1
8300 else
8301 echo "$ac_t""no" 1>&6
8303 done
8305 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8306 echo "configure:8307: checking for working mmap" >&5
8307 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8309 else
8310 if test "$cross_compiling" = yes; then
8311 ac_cv_func_mmap_fixed_mapped=no
8312 else
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8317 /* Thanks to Mike Haertel and Jim Avera for this test.
8318 Here is a matrix of mmap possibilities:
8319 mmap private not fixed
8320 mmap private fixed at somewhere currently unmapped
8321 mmap private fixed at somewhere already mapped
8322 mmap shared not fixed
8323 mmap shared fixed at somewhere currently unmapped
8324 mmap shared fixed at somewhere already mapped
8325 For private mappings, we should verify that changes cannot be read()
8326 back from the file, nor mmap's back from the file at a different
8327 address. (There have been systems where private was not correctly
8328 implemented like the infamous i386 svr4.0, and systems where the
8329 VM page cache was not coherent with the filesystem buffer cache
8330 like early versions of FreeBSD and possibly contemporary NetBSD.)
8331 For shared mappings, we should conversely verify that changes get
8332 propogated back to all the places they're supposed to be.
8334 Grep wants private fixed already mapped.
8335 The main things grep needs to know about mmap are:
8336 * does it exist and is it safe to write into the mmap'd area
8337 * how to use it (BSD variants) */
8338 #include <sys/types.h>
8339 #include <fcntl.h>
8340 #include <sys/mman.h>
8342 /* This mess was copied from the GNU getpagesize.h. */
8343 #ifndef HAVE_GETPAGESIZE
8344 # ifdef HAVE_UNISTD_H
8345 # include <unistd.h>
8346 # endif
8348 /* Assume that all systems that can run configure have sys/param.h. */
8349 # ifndef HAVE_SYS_PARAM_H
8350 # define HAVE_SYS_PARAM_H 1
8351 # endif
8353 # ifdef _SC_PAGESIZE
8354 # define getpagesize() sysconf(_SC_PAGESIZE)
8355 # else /* no _SC_PAGESIZE */
8356 # ifdef HAVE_SYS_PARAM_H
8357 # include <sys/param.h>
8358 # ifdef EXEC_PAGESIZE
8359 # define getpagesize() EXEC_PAGESIZE
8360 # else /* no EXEC_PAGESIZE */
8361 # ifdef NBPG
8362 # define getpagesize() NBPG * CLSIZE
8363 # ifndef CLSIZE
8364 # define CLSIZE 1
8365 # endif /* no CLSIZE */
8366 # else /* no NBPG */
8367 # ifdef NBPC
8368 # define getpagesize() NBPC
8369 # else /* no NBPC */
8370 # ifdef PAGESIZE
8371 # define getpagesize() PAGESIZE
8372 # endif /* PAGESIZE */
8373 # endif /* no NBPC */
8374 # endif /* no NBPG */
8375 # endif /* no EXEC_PAGESIZE */
8376 # else /* no HAVE_SYS_PARAM_H */
8377 # define getpagesize() 8192 /* punt totally */
8378 # endif /* no HAVE_SYS_PARAM_H */
8379 # endif /* no _SC_PAGESIZE */
8381 #endif /* no HAVE_GETPAGESIZE */
8383 #ifdef __cplusplus
8384 extern "C" { void *malloc(unsigned); }
8385 #else
8386 char *malloc();
8387 #endif
8390 main()
8392 char *data, *data2, *data3;
8393 int i, pagesize;
8394 int fd;
8396 pagesize = getpagesize();
8399 * First, make a file with some known garbage in it.
8401 data = malloc(pagesize);
8402 if (!data)
8403 exit(1);
8404 for (i = 0; i < pagesize; ++i)
8405 *(data + i) = rand();
8406 umask(0);
8407 fd = creat("conftestmmap", 0600);
8408 if (fd < 0)
8409 exit(1);
8410 if (write(fd, data, pagesize) != pagesize)
8411 exit(1);
8412 close(fd);
8415 * Next, try to mmap the file at a fixed address which
8416 * already has something else allocated at it. If we can,
8417 * also make sure that we see the same garbage.
8419 fd = open("conftestmmap", O_RDWR);
8420 if (fd < 0)
8421 exit(1);
8422 data2 = malloc(2 * pagesize);
8423 if (!data2)
8424 exit(1);
8425 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8426 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8427 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8428 exit(1);
8429 for (i = 0; i < pagesize; ++i)
8430 if (*(data + i) != *(data2 + i))
8431 exit(1);
8434 * Finally, make sure that changes to the mapped area
8435 * do not percolate back to the file as seen by read().
8436 * (This is a bug on some variants of i386 svr4.0.)
8438 for (i = 0; i < pagesize; ++i)
8439 *(data2 + i) = *(data2 + i) + 1;
8440 data3 = malloc(pagesize);
8441 if (!data3)
8442 exit(1);
8443 if (read(fd, data3, pagesize) != pagesize)
8444 exit(1);
8445 for (i = 0; i < pagesize; ++i)
8446 if (*(data + i) != *(data3 + i))
8447 exit(1);
8448 close(fd);
8449 unlink("conftestmmap");
8450 exit(0);
8454 if { (eval echo configure:8455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8455 then
8456 ac_cv_func_mmap_fixed_mapped=yes
8457 else
8458 echo "configure: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8460 rm -fr conftest*
8461 ac_cv_func_mmap_fixed_mapped=no
8463 rm -fr conftest*
8468 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8469 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8470 cat >> confdefs.h <<\EOF
8471 #define HAVE_MMAP 1
8477 for ac_prog in perl
8479 # Extract the first word of "$ac_prog", so it can be a program name with args.
8480 set dummy $ac_prog; ac_word=$2
8481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8482 echo "configure:8483: checking for $ac_word" >&5
8483 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8484 echo $ac_n "(cached) $ac_c" 1>&6
8485 else
8486 if test -n "$PERL"; then
8487 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8488 else
8489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8490 ac_dummy="$PATH"
8491 for ac_dir in $ac_dummy; do
8492 test -z "$ac_dir" && ac_dir=.
8493 if test -f $ac_dir/$ac_word; then
8494 ac_cv_prog_PERL="$ac_prog"
8495 break
8497 done
8498 IFS="$ac_save_ifs"
8501 PERL="$ac_cv_prog_PERL"
8502 if test -n "$PERL"; then
8503 echo "$ac_t""$PERL" 1>&6
8504 else
8505 echo "$ac_t""no" 1>&6
8508 test -n "$PERL" && break
8509 done
8510 test -n "$PERL" || PERL="false"
8513 SYSDEP_SOURCES=
8514 SIGNAL_HANDLER_AUX=
8516 case "${host}" in
8517 i?86-*-linux*)
8518 SIGNAL_HANDLER=include/i386-signal.h
8520 sparc*-sun-solaris*)
8521 SIGNAL_HANDLER=include/sparc-signal.h
8523 # ia64-*)
8524 # SYSDEP_SOURCES=sysdep/ia64.c
8525 # test -d sysdep || mkdir sysdep
8526 # ;;
8527 hppa*-*-linux*)
8528 SIGNAL_HANDLER=include/pa-signal.h
8530 ia64-*-linux*)
8531 SIGNAL_HANDLER=include/dwarf2-signal.h
8533 powerpc*-*-linux*)
8534 SIGNAL_HANDLER=include/powerpc-signal.h
8536 alpha*-*-linux*)
8537 SIGNAL_HANDLER=include/dwarf2-signal.h
8539 s390*-*-linux*)
8540 SIGNAL_HANDLER=include/s390-signal.h
8542 x86_64*-*-linux*)
8543 SIGNAL_HANDLER=include/x86_64-signal.h
8544 SIGNAL_HANDLER_AUX=include/i386-signal.h
8546 sparc*-*-linux*)
8547 SIGNAL_HANDLER=include/dwarf2-signal.h
8549 sh-*-linux* | sh[34]*-*-linux*)
8550 SIGNAL_HANDLER=include/dwarf2-signal.h
8552 *mingw*)
8553 SIGNAL_HANDLER=include/win32-signal.h
8555 mips*-*-linux*)
8556 SIGNAL_HANDLER=include/mips-signal.h
8558 *-*-darwin*)
8559 SIGNAL_HANDLER=include/darwin-signal.h
8562 SIGNAL_HANDLER=include/default-signal.h
8564 esac
8566 # If we're using sjlj exceptions, forget what we just learned.
8567 if test "$enable_sjlj_exceptions" = yes; then
8568 SIGNAL_HANDLER=include/default-signal.h
8569 SIGNAL_HANDLER_AUX=
8572 # Define here any compiler flags that you need in order to make backtrace() work.
8573 BACKTRACESPEC=
8574 case "${host}" in
8575 x86_64*-*-linux*|i?86-*)
8576 BACKTRACESPEC=-fno-omit-frame-pointer
8578 esac
8583 if test -z "$SIGNAL_HANDLER_AUX"; then
8584 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
8589 if test "${multilib}" = "yes"; then
8590 multilib_arg="--enable-multilib"
8591 else
8592 multilib_arg=
8597 here=`${PWDCMD-pwd}`
8600 # We get this from the environment.
8603 trap '' 1 2 15
8604 cat > confcache <<\EOF
8605 # This file is a shell script that caches the results of configure
8606 # tests run on this system so they can be shared between configure
8607 # scripts and configure runs. It is not useful on other systems.
8608 # If it contains results you don't want to keep, you may remove or edit it.
8610 # By default, configure uses ./config.cache as the cache file,
8611 # creating it if it does not exist already. You can give configure
8612 # the --cache-file=FILE option to use a different cache file; that is
8613 # what configure does when it calls configure scripts in
8614 # subdirectories, so they share the cache.
8615 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8616 # config.status only pays attention to the cache file if you give it the
8617 # --recheck option to rerun configure.
8620 # The following way of writing the cache mishandles newlines in values,
8621 # but we know of no workaround that is simple, portable, and efficient.
8622 # So, don't put newlines in cache variables' values.
8623 # Ultrix sh set writes to stderr and can't be redirected directly,
8624 # and sets the high bit in the cache file unless we assign to the vars.
8625 (set) 2>&1 |
8626 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8627 *ac_space=\ *)
8628 # `set' does not quote correctly, so add quotes (double-quote substitution
8629 # turns \\\\ into \\, and sed turns \\ into \).
8630 sed -n \
8631 -e "s/'/'\\\\''/g" \
8632 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8635 # `set' quotes correctly as required by POSIX, so do not add quotes.
8636 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8638 esac >> confcache
8639 if cmp -s $cache_file confcache; then
8641 else
8642 if test -w $cache_file; then
8643 echo "updating cache $cache_file"
8644 cat confcache > $cache_file
8645 else
8646 echo "not updating unwritable cache $cache_file"
8649 rm -f confcache
8651 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8654 # Let make expand exec_prefix.
8655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8657 # Any assignment to VPATH causes Sun make to only execute
8658 # the first set of double-colon rules, so remove it if not needed.
8659 # If there is a colon in the path, we need to keep it.
8660 if test "x$srcdir" = x.; then
8661 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8664 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8666 DEFS=-DHAVE_CONFIG_H
8668 # Without the "./", some shells look in PATH for config.status.
8669 : ${CONFIG_STATUS=./config.status}
8671 echo creating $CONFIG_STATUS
8672 rm -f $CONFIG_STATUS
8673 cat > $CONFIG_STATUS <<EOF
8674 #! /bin/sh
8675 # Generated automatically by configure.
8676 # Run this file to recreate the current configuration.
8677 # This directory was configured as follows,
8678 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8680 # $0 $ac_configure_args
8682 # Compiler output produced by configure, useful for debugging
8683 # configure, is in ./config.log if it exists.
8685 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8686 for ac_option
8688 case "\$ac_option" in
8689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8690 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8691 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8692 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8693 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8694 exit 0 ;;
8695 -help | --help | --hel | --he | --h)
8696 echo "\$ac_cs_usage"; exit 0 ;;
8697 *) echo "\$ac_cs_usage"; exit 1 ;;
8698 esac
8699 done
8701 ac_given_srcdir=$srcdir
8702 ac_given_INSTALL="$INSTALL"
8704 trap 'rm -fr `echo "Makefile libgcj.pc 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
8706 cat >> $CONFIG_STATUS <<EOF
8708 # Protect against being on the right side of a sed subst in config.status.
8709 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8710 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8711 $ac_vpsub
8712 $extrasub
8713 s%@SHELL@%$SHELL%g
8714 s%@CFLAGS@%$CFLAGS%g
8715 s%@CPPFLAGS@%$CPPFLAGS%g
8716 s%@CXXFLAGS@%$CXXFLAGS%g
8717 s%@FFLAGS@%$FFLAGS%g
8718 s%@DEFS@%$DEFS%g
8719 s%@LDFLAGS@%$LDFLAGS%g
8720 s%@LIBS@%$LIBS%g
8721 s%@exec_prefix@%$exec_prefix%g
8722 s%@prefix@%$prefix%g
8723 s%@program_transform_name@%$program_transform_name%g
8724 s%@bindir@%$bindir%g
8725 s%@sbindir@%$sbindir%g
8726 s%@libexecdir@%$libexecdir%g
8727 s%@datadir@%$datadir%g
8728 s%@sysconfdir@%$sysconfdir%g
8729 s%@sharedstatedir@%$sharedstatedir%g
8730 s%@localstatedir@%$localstatedir%g
8731 s%@libdir@%$libdir%g
8732 s%@includedir@%$includedir%g
8733 s%@oldincludedir@%$oldincludedir%g
8734 s%@infodir@%$infodir%g
8735 s%@mandir@%$mandir%g
8736 s%@libgcj_basedir@%$libgcj_basedir%g
8737 s%@host@%$host%g
8738 s%@host_alias@%$host_alias%g
8739 s%@host_cpu@%$host_cpu%g
8740 s%@host_vendor@%$host_vendor%g
8741 s%@host_os@%$host_os%g
8742 s%@target@%$target%g
8743 s%@target_alias@%$target_alias%g
8744 s%@target_cpu@%$target_cpu%g
8745 s%@target_vendor@%$target_vendor%g
8746 s%@target_os@%$target_os%g
8747 s%@build@%$build%g
8748 s%@build_alias@%$build_alias%g
8749 s%@build_cpu@%$build_cpu%g
8750 s%@build_vendor@%$build_vendor%g
8751 s%@build_os@%$build_os%g
8752 s%@target_noncanonical@%$target_noncanonical%g
8753 s%@LN_S@%$LN_S%g
8754 s%@mkinstalldirs@%$mkinstalldirs%g
8755 s%@CC@%$CC%g
8756 s%@glibjava_CXX@%$glibjava_CXX%g
8757 s%@CXX@%$CXX%g
8758 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8759 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8760 s%@INSTALL_DATA@%$INSTALL_DATA%g
8761 s%@PACKAGE@%$PACKAGE%g
8762 s%@VERSION@%$VERSION%g
8763 s%@ACLOCAL@%$ACLOCAL%g
8764 s%@AUTOCONF@%$AUTOCONF%g
8765 s%@AUTOMAKE@%$AUTOMAKE%g
8766 s%@AUTOHEADER@%$AUTOHEADER%g
8767 s%@MAKEINFO@%$MAKEINFO%g
8768 s%@SET_MAKE@%$SET_MAKE%g
8769 s%@AS@%$AS%g
8770 s%@AR@%$AR%g
8771 s%@RANLIB@%$RANLIB%g
8772 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8773 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8774 s%@MAINT@%$MAINT%g
8775 s%@EXEEXT@%$EXEEXT%g
8776 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8777 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8778 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8779 s%@INCLTDL@%$INCLTDL%g
8780 s%@LIBLTDL@%$LIBLTDL%g
8781 s%@DIRLTDL@%$DIRLTDL%g
8782 s%@OBJEXT@%$OBJEXT%g
8783 s%@STRIP@%$STRIP%g
8784 s%@LIBTOOL@%$LIBTOOL%g
8785 s%@CXXCPP@%$CXXCPP%g
8786 s%@subdirs@%$subdirs%g
8787 s%@COMPPATH@%$COMPPATH%g
8788 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8789 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8790 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
8791 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
8792 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8793 s%@INTERPRETER@%$INTERPRETER%g
8794 s%@LIBFFI@%$LIBFFI%g
8795 s%@LIBFFIINCS@%$LIBFFIINCS%g
8796 s%@EXTRA_CC_FILES@%$EXTRA_CC_FILES%g
8797 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8798 s%@CPP@%$CPP%g
8799 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8800 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8801 s%@ZLIBSPEC@%$ZLIBSPEC%g
8802 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8803 s%@X_CFLAGS@%$X_CFLAGS%g
8804 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8805 s%@X_LIBS@%$X_LIBS%g
8806 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8807 s%@TOOLKIT@%$TOOLKIT%g
8808 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8809 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8810 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8811 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8812 s%@GTK_CAIRO_TRUE@%$GTK_CAIRO_TRUE%g
8813 s%@GTK_CAIRO_FALSE@%$GTK_CAIRO_FALSE%g
8814 s%@PKG_CONFIG@%$PKG_CONFIG%g
8815 s%@CAIRO_CFLAGS@%$CAIRO_CFLAGS%g
8816 s%@CAIRO_LIBS@%$CAIRO_LIBS%g
8817 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
8818 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
8819 s%@GCLIBS@%$GCLIBS%g
8820 s%@GCINCS@%$GCINCS%g
8821 s%@GCDEPS@%$GCDEPS%g
8822 s%@GCOBJS@%$GCOBJS%g
8823 s%@GCSPEC@%$GCSPEC%g
8824 s%@JC1GCSPEC@%$JC1GCSPEC%g
8825 s%@GCTESTSPEC@%$GCTESTSPEC%g
8826 s%@THREADLIBS@%$THREADLIBS%g
8827 s%@THREADINCS@%$THREADINCS%g
8828 s%@THREADDEPS@%$THREADDEPS%g
8829 s%@THREADOBJS@%$THREADOBJS%g
8830 s%@THREADSPEC@%$THREADSPEC%g
8831 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8832 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
8833 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8834 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8835 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8836 s%@tool_include_dir@%$tool_include_dir%g
8837 s%@gcc_version@%$gcc_version%g
8838 s%@LIBICONV@%$LIBICONV%g
8839 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8840 s%@GTK_LIBS@%$GTK_LIBS%g
8841 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8842 s%@GLIB_LIBS@%$GLIB_LIBS%g
8843 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8844 s%@LIBART_LIBS@%$LIBART_LIBS%g
8845 s%@GCJH@%$GCJH%g
8846 s%@ZIP@%$ZIP%g
8847 s%@GCJ@%$GCJ%g
8848 s%@GCJFLAGS@%$GCJFLAGS%g
8849 s%@ZLIBS@%$ZLIBS%g
8850 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8851 s%@ZINCS@%$ZINCS%g
8852 s%@DIVIDESPEC@%$DIVIDESPEC%g
8853 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8854 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8855 s%@IEEESPEC@%$IEEESPEC%g
8856 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8857 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8858 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8859 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8860 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8861 s%@toolexecdir@%$toolexecdir%g
8862 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8863 s%@toolexeclibdir@%$toolexeclibdir%g
8864 s%@GCJVERSION@%$GCJVERSION%g
8865 s%@ALLOCA@%$ALLOCA%g
8866 s%@PERL@%$PERL%g
8867 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
8868 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
8869 s%@here@%$here%g
8871 CEOF
8874 cat >> $CONFIG_STATUS <<\EOF
8876 # Split the substitutions into bite-sized pieces for seds with
8877 # small command number limits, like on Digital OSF/1 and HP-UX.
8878 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8879 ac_file=1 # Number of current file.
8880 ac_beg=1 # First line for current file.
8881 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8882 ac_more_lines=:
8883 ac_sed_cmds=""
8884 while $ac_more_lines; do
8885 if test $ac_beg -gt 1; then
8886 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8887 else
8888 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8890 if test ! -s conftest.s$ac_file; then
8891 ac_more_lines=false
8892 rm -f conftest.s$ac_file
8893 else
8894 if test -z "$ac_sed_cmds"; then
8895 ac_sed_cmds="sed -f conftest.s$ac_file"
8896 else
8897 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8899 ac_file=`expr $ac_file + 1`
8900 ac_beg=$ac_end
8901 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8903 done
8904 if test -z "$ac_sed_cmds"; then
8905 ac_sed_cmds=cat
8909 cat >> $CONFIG_STATUS <<EOF
8911 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
8913 cat >> $CONFIG_STATUS <<\EOF
8914 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8915 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8916 case "$ac_file" in
8917 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8918 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8919 *) ac_file_in="${ac_file}.in" ;;
8920 esac
8922 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8924 # Remove last slash and all that follows it. Not all systems have dirname.
8925 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8926 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8927 # The file is in a subdirectory.
8928 test ! -d "$ac_dir" && mkdir "$ac_dir"
8929 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8930 # A "../" for each directory in $ac_dir_suffix.
8931 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8932 else
8933 ac_dir_suffix= ac_dots=
8936 case "$ac_given_srcdir" in
8937 .) srcdir=.
8938 if test -z "$ac_dots"; then top_srcdir=.
8939 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8940 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8941 *) # Relative path.
8942 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8943 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8944 esac
8946 case "$ac_given_INSTALL" in
8947 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8948 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8949 esac
8951 echo creating "$ac_file"
8952 rm -f "$ac_file"
8953 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8954 case "$ac_file" in
8955 *Makefile*) ac_comsub="1i\\
8956 # $configure_input" ;;
8957 *) ac_comsub= ;;
8958 esac
8960 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8961 sed -e "$ac_comsub
8962 s%@configure_input@%$configure_input%g
8963 s%@srcdir@%$srcdir%g
8964 s%@top_srcdir@%$top_srcdir%g
8965 s%@INSTALL@%$INSTALL%g
8966 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8967 fi; done
8968 rm -f conftest.s*
8970 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8971 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8973 # ac_d sets the value in "#define NAME VALUE" lines.
8974 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8975 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8976 ac_dC='\3'
8977 ac_dD='%g'
8978 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8979 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8980 ac_uB='\([ ]\)%\1#\2define\3'
8981 ac_uC=' '
8982 ac_uD='\4%g'
8983 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8984 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8985 ac_eB='$%\1#\2define\3'
8986 ac_eC=' '
8987 ac_eD='%g'
8989 if test "${CONFIG_HEADERS+set}" != set; then
8991 cat >> $CONFIG_STATUS <<EOF
8992 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
8994 cat >> $CONFIG_STATUS <<\EOF
8996 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8997 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8998 case "$ac_file" in
8999 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9000 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9001 *) ac_file_in="${ac_file}.in" ;;
9002 esac
9004 echo creating $ac_file
9006 rm -f conftest.frag conftest.in conftest.out
9007 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9008 cat $ac_file_inputs > conftest.in
9012 # Transform confdefs.h into a sed script conftest.vals that substitutes
9013 # the proper values into config.h.in to produce config.h. And first:
9014 # Protect against being on the right side of a sed subst in config.status.
9015 # Protect against being in an unquoted here document in config.status.
9016 rm -f conftest.vals
9017 cat > conftest.hdr <<\EOF
9018 s/[\\&%]/\\&/g
9019 s%[\\$`]%\\&%g
9020 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9021 s%ac_d%ac_u%gp
9022 s%ac_u%ac_e%gp
9024 sed -n -f conftest.hdr confdefs.h > conftest.vals
9025 rm -f conftest.hdr
9027 # This sed command replaces #undef with comments. This is necessary, for
9028 # example, in the case of _POSIX_SOURCE, which is predefined and required
9029 # on some systems where configure will not decide to define it.
9030 cat >> conftest.vals <<\EOF
9031 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9034 # Break up conftest.vals because some shells have a limit on
9035 # the size of here documents, and old seds have small limits too.
9037 rm -f conftest.tail
9038 while :
9040 ac_lines=`grep -c . conftest.vals`
9041 # grep -c gives empty output for an empty file on some AIX systems.
9042 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9043 # Write a limited-size here document to conftest.frag.
9044 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9045 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9046 echo 'CEOF
9047 sed -f conftest.frag conftest.in > conftest.out
9048 rm -f conftest.in
9049 mv conftest.out conftest.in
9050 ' >> $CONFIG_STATUS
9051 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9052 rm -f conftest.vals
9053 mv conftest.tail conftest.vals
9054 done
9055 rm -f conftest.vals
9057 cat >> $CONFIG_STATUS <<\EOF
9058 rm -f conftest.frag conftest.h
9059 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9060 cat conftest.in >> conftest.h
9061 rm -f conftest.in
9062 if cmp -s $ac_file conftest.h 2>/dev/null; then
9063 echo "$ac_file is unchanged"
9064 rm -f conftest.h
9065 else
9066 # Remove last slash and all that follows it. Not all systems have dirname.
9067 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9068 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9069 # The file is in a subdirectory.
9070 test ! -d "$ac_dir" && mkdir "$ac_dir"
9072 rm -f $ac_file
9073 mv conftest.h $ac_file
9075 fi; done
9079 cat >> $CONFIG_STATUS <<EOF
9080 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc java/net/natInetAddress${PLATFORMNET}.cc java/net/natNetworkInterface${PLATFORMNET}.cc gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc gnu/java/nio/natPipeImpl${PLATFORM}.cc gnu/java/nio/natSelectorImpl${PLATFORM}.cc gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER $SIGNAL_HANDLER_AUX"
9081 ac_dests="include/platform.h java/io/natFile.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc java/net/natInetAddress.cc java/net/natNetworkInterface.cc gnu/java/net/natPlainSocketImpl.cc gnu/java/net/natPlainDatagramSocketImpl.cc gnu/java/nio/natPipeImpl.cc gnu/java/nio/natSelectorImpl.cc gnu/java/nio/channels/natFileChannelImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h include/java-signal-aux.h"
9084 cat >> $CONFIG_STATUS <<\EOF
9085 srcdir=$ac_given_srcdir
9086 while test -n "$ac_sources"; do
9087 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9088 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9090 echo "linking $srcdir/$ac_source to $ac_dest"
9092 if test ! -r $srcdir/$ac_source; then
9093 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9095 rm -f $ac_dest
9097 # Make relative symlinks.
9098 # Remove last slash and all that follows it. Not all systems have dirname.
9099 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9100 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9101 # The dest file is in a subdirectory.
9102 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9103 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9104 # A "../" for each directory in $ac_dest_dir_suffix.
9105 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9106 else
9107 ac_dest_dir_suffix= ac_dots=
9110 case "$srcdir" in
9111 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9112 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9113 esac
9115 # Make a symlink if possible; otherwise try a hard link.
9116 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9117 ln $srcdir/$ac_source $ac_dest; then :
9118 else
9119 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9121 done
9123 cat >> $CONFIG_STATUS <<EOF
9125 srcdir=${srcdir}
9126 host=${host}
9127 target=${target}
9128 with_multisubdir=${with_multisubdir}
9129 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9130 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9131 libgcj_basedir=${libgcj_basedir}
9132 CC="${CC}"
9133 CXX="${CXX}"
9134 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9137 cat >> $CONFIG_STATUS <<\EOF
9138 am_indx=1
9139 for am_file in include/config.h gcj/libgcj-config.h; do
9140 case " $CONFIG_HEADERS " in
9141 *" $am_file "*)
9142 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9144 esac
9145 am_indx=`expr "$am_indx" + 1`
9146 done
9147 # Only add multilib support code if we just rebuilt top-level Makefile.
9148 case " $CONFIG_FILES " in
9149 *" Makefile "*)
9150 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9151 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9153 esac
9155 # Make subdirectories and `.d' files. Look in both srcdir and
9156 # builddir for the .java files.
9157 h=`${PWDCMD-pwd}`
9158 : > deps.mk
9159 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
9160 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
9161 fgrep -v testsuite | \
9162 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
9163 while read f; do
9164 echo "include $f" >> deps.mk
9165 test -f $f || {
9167 d=`echo $f | sed -e 's,/[^/]*$,,'`
9169 if test ! -d $d; then
9170 $libgcj_basedir/../mkinstalldirs $d
9172 echo > $f
9174 done
9176 exit 0
9178 chmod +x $CONFIG_STATUS
9179 rm -fr confdefs* $ac_clean_files
9180 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9182 if test "$no_recursion" != yes; then
9184 # Remove --cache-file and --srcdir arguments so they do not pile up.
9185 ac_sub_configure_args=
9186 ac_prev=
9187 for ac_arg in $ac_configure_args; do
9188 if test -n "$ac_prev"; then
9189 ac_prev=
9190 continue
9192 case "$ac_arg" in
9193 -cache-file | --cache-file | --cache-fil | --cache-fi \
9194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9195 ac_prev=cache_file ;;
9196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9200 ac_prev=srcdir ;;
9201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9203 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9204 esac
9205 done
9207 for ac_config_dir in $DIRLTDL; do
9209 # Do not complain, so a configure script can configure whichever
9210 # parts of a large source tree are present.
9211 if test ! -d $srcdir/$ac_config_dir; then
9212 continue
9215 echo configuring in $ac_config_dir
9217 case "$srcdir" in
9218 .) ;;
9220 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9221 else
9222 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9225 esac
9227 ac_popdir=`pwd`
9228 cd $ac_config_dir
9230 # A "../" for each directory in /$ac_config_dir.
9231 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9233 case "$srcdir" in
9234 .) # No --srcdir option. We are building in place.
9235 ac_sub_srcdir=$srcdir ;;
9236 /*) # Absolute path.
9237 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9238 *) # Relative path.
9239 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9240 esac
9242 # Check for guested configure; otherwise get Cygnus style configure.
9243 if test -f $ac_sub_srcdir/configure; then
9244 ac_sub_configure=$ac_sub_srcdir/configure
9245 elif test -f $ac_sub_srcdir/configure.in; then
9246 ac_sub_configure=$ac_configure
9247 else
9248 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9249 ac_sub_configure=
9252 # The recursion is here.
9253 if test -n "$ac_sub_configure"; then
9255 # Make the cache file name correct relative to the subdirectory.
9256 case "$cache_file" in
9257 /*) ac_sub_cache_file=$cache_file ;;
9258 *) # Relative path.
9259 ac_sub_cache_file="$ac_dots$cache_file" ;;
9260 esac
9261 case "$ac_given_INSTALL" in
9262 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9263 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9264 esac
9266 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9267 # The eval makes quoting arguments work.
9268 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9269 then :
9270 else
9271 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
9275 cd "$ac_popdir"
9276 done