gcc/testsuite/:
[official-gcc.git] / libjava / configure
blob94ce96a5cf47c63d45c11b4d5c7c0138179e8ebf
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --with-newlib Configuring with newlib"
21 ac_help="$ac_help
22 --enable-multilib build many library versions (default)"
23 ac_help="$ac_help
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30 ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
41 ac_help="$ac_help
42 --enable-hash-synchronization
43 use global hash table for monitor locks"
44 ac_help="$ac_help
45 --enable-libgcj-multifile
46 allow compilation of several files at once"
47 ac_help="$ac_help
48 --with-win32-nlsapi=ansi, unicows or unicode
49 native MinGW libgcj Win32 OS API [ansi]"
50 ac_help="$ac_help
51 --enable-libgcj-debug enable runtime debugging code"
52 ac_help="$ac_help
53 --enable-interpreter enable interpreter"
54 ac_help="$ac_help
55 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
56 ac_help="$ac_help
57 --disable-java-net disable java.net"
58 ac_help="$ac_help
59 --without-libffi don't use libffi"
60 ac_help="$ac_help
61 --disable-jvmpi disable JVMPI support"
62 ac_help="$ac_help
63 --with-ecos enable runtime eCos target support"
64 ac_help="$ac_help
65 --with-system-zlib use installed libz"
66 ac_help="$ac_help
67 --with-x use the X Window System"
68 ac_help="$ac_help
69 --enable-java-awt list of AWT peer implementations to be built"
70 ac_help="$ac_help
71 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK"
72 ac_help="$ac_help
73 --enable-java-gc=TYPE choose garbage collector [boehm]"
74 ac_help="$ac_help
75 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
80 build=NONE
81 cache_file=./config.cache
82 exec_prefix=NONE
83 host=NONE
84 no_create=
85 nonopt=NONE
86 no_recursion=
87 prefix=NONE
88 program_prefix=NONE
89 program_suffix=NONE
90 program_transform_name=s,x,x,
91 silent=
92 site=
93 srcdir=
94 target=NONE
95 verbose=
96 x_includes=NONE
97 x_libraries=NONE
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
112 subdirs=
113 MFLAGS= MAKEFLAGS=
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
116 ac_max_here_lines=12
118 ac_prev=
119 for ac_option
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
125 ac_prev=
126 continue
129 case "$ac_option" in
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 *) ac_optarg= ;;
132 esac
134 # Accept the important Cygnus configure options, so we can diagnose typos.
136 case "$ac_option" in
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 ac_prev=bindir ;;
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
144 ac_prev=build ;;
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 ac_prev=datadir ;;
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 | --da=*)
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 case "$ac_option" in
178 *=*) ;;
179 *) ac_optarg=yes ;;
180 esac
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
194 with_gas=yes ;;
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
199 cat << EOF
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
202 Configuration:
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
210 [$ac_default_prefix]
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 [same as prefix]
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
217 [PREFIX/share]
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 [PREFIX/com]
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
233 cat << EOF
234 Host type:
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
249 exit 0 ;;
251 -host | --host | --hos | --ho)
252 ac_prev=host ;;
253 -host=* | --host=* | --hos=* | --ho=*)
254 host="$ac_optarg" ;;
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 ac_prev=infodir ;;
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
269 ac_prev=libdir ;;
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 ac_prev=mandir ;;
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
294 -nfp | --nfp | --nf)
295 # Obsolete; use --without-fp.
296 with_fp=no ;;
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299 | --no-cr | --no-c)
300 no_create=yes ;;
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304 no_recursion=yes ;;
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 ac_prev=prefix ;;
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
353 silent=yes ;;
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 ac_prev=sbindir ;;
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 | --sbi=* | --sb=*)
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
364 | --sha | --sh)
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 | --sha=* | --sh=*)
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
373 ac_prev=site ;;
374 -site=* | --site=* | --sit=*)
375 site="$ac_optarg" ;;
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 ac_prev=srcdir ;;
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
390 ac_prev=target ;;
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 verbose=yes ;;
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
399 exit 0 ;;
401 -with-* | --with-*)
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 case "$ac_option" in
409 *=*) ;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
423 --x)
424 # Obsolete; use --with-x.
425 with_x=yes ;;
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 nonopt="$ac_option"
454 esac
455 done
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
464 # 0 standard input
465 # 1 file creation
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
472 exec 6>/dev/null
473 else
474 exec 6>&1
476 exec 5>./config.log
478 echo "\
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
481 " 1>&5
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
485 ac_configure_args=
486 for ac_arg
488 case "$ac_arg" in
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496 esac
497 done
499 # NLS nuisances.
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 echo > confdefs.h
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=java/lang/System.java
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
522 ac_prog=$0
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 srcdir=$ac_confdir
526 if test ! -r $srcdir/$ac_unique_file; then
527 srcdir=..
529 else
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 else
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 else
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
552 . "$ac_site_file"
554 done
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
558 . $cache_file
559 else
560 echo "creating cache $cache_file"
561 > $cache_file
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
571 ac_exeext=
572 ac_objext=o
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='
577 ' ac_t=' '
578 else
579 ac_n=-n ac_c= ac_t=
581 else
582 ac_n= ac_c='\c' ac_t=
587 # This works around the fact that libtool configuration may change LD
588 # for this particular configuration, but some shells, instead of
589 # keeping the changes in LD private, export them just because LD is
590 # exported.
591 ORIGINAL_LD_FOR_MULTILIBS=$LD
593 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
594 echo "configure:595: checking whether ln -s works" >&5
595 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
596 echo $ac_n "(cached) $ac_c" 1>&6
597 else
598 rm -f conftestdata
599 if ln -s X conftestdata 2>/dev/null
600 then
601 rm -f conftestdata
602 ac_cv_prog_LN_S="ln -s"
603 else
604 ac_cv_prog_LN_S=ln
607 LN_S="$ac_cv_prog_LN_S"
608 if test "$ac_cv_prog_LN_S" = "ln -s"; then
609 echo "$ac_t""yes" 1>&6
610 else
611 echo "$ac_t""no" 1>&6
615 # Check whether --with-target-subdir or --without-target-subdir was given.
616 if test "${with_target_subdir+set}" = set; then
617 withval="$with_target_subdir"
621 # Check whether --with-cross-host or --without-cross-host was given.
622 if test "${with_cross_host+set}" = set; then
623 withval="$with_cross_host"
628 # Check whether --with-newlib or --without-newlib was given.
629 if test "${with_newlib+set}" = set; then
630 withval="$with_newlib"
635 am__api_version="1.4"
636 # Find a good install program. We prefer a C program (faster),
637 # so one script is as good as another. But avoid the broken or
638 # incompatible versions:
639 # SysV /etc/install, /usr/sbin/install
640 # SunOS /usr/etc/install
641 # IRIX /sbin/install
642 # AIX /bin/install
643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
646 # ./install, which can be erroneously created by make from ./install.sh.
647 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
648 echo "configure:649: checking for a BSD compatible install" >&5
649 if test -z "$INSTALL"; then
650 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
652 else
653 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
654 for ac_dir in $PATH; do
655 # Account for people who put trailing slashes in PATH elements.
656 case "$ac_dir/" in
657 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
659 # OSF1 and SCO ODT 3.0 have their own names for install.
660 # Don't use installbsd from OSF since it installs stuff as root
661 # by default.
662 for ac_prog in ginstall scoinst install; do
663 if test -f $ac_dir/$ac_prog; then
664 if test $ac_prog = install &&
665 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
666 # AIX install. It has an incompatible calling convention.
668 else
669 ac_cv_path_install="$ac_dir/$ac_prog -c"
670 break 2
673 done
675 esac
676 done
677 IFS="$ac_save_IFS"
680 if test "${ac_cv_path_install+set}" = set; then
681 INSTALL="$ac_cv_path_install"
682 else
683 # As a last resort, use the slow shell script. We don't cache a
684 # path for INSTALL within a source directory, because that will
685 # break other packages using the cache if that directory is
686 # removed, or if the path is relative.
687 INSTALL="$ac_install_sh"
690 echo "$ac_t""$INSTALL" 1>&6
692 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
693 # It thinks the first close brace ends the variable substitution.
694 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
696 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
698 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
700 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
701 echo "configure:702: checking whether build environment is sane" >&5
702 # Just in case
703 sleep 1
704 echo timestamp > conftestfile
705 # Do `set' in a subshell so we don't clobber the current shell's
706 # arguments. Must try -L first in case configure is actually a
707 # symlink; some systems play weird games with the mod time of symlinks
708 # (eg FreeBSD returns the mod time of the symlink's containing
709 # directory).
710 if (
711 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
712 if test "$*" = "X"; then
713 # -L didn't work.
714 set X `ls -t $srcdir/configure conftestfile`
716 if test "$*" != "X $srcdir/configure conftestfile" \
717 && test "$*" != "X conftestfile $srcdir/configure"; then
719 # If neither matched, then we have a broken ls. This can happen
720 # if, for instance, CONFIG_SHELL is bash and it inherits a
721 # broken ls alias from the environment. This has actually
722 # happened. Such a system could not be considered "sane".
723 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
724 alias in your environment" 1>&2; exit 1; }
727 test "$2" = conftestfile
729 then
730 # Ok.
732 else
733 { echo "configure: error: newly created file is older than distributed files!
734 Check your system clock" 1>&2; exit 1; }
736 rm -f conftest*
737 echo "$ac_t""yes" 1>&6
738 if test "$program_transform_name" = s,x,x,; then
739 program_transform_name=
740 else
741 # Double any \ or $. echo might interpret backslashes.
742 cat <<\EOF_SED > conftestsed
743 s,\\,\\\\,g; s,\$,$$,g
744 EOF_SED
745 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
746 rm -f conftestsed
748 test "$program_prefix" != NONE &&
749 program_transform_name="s,^,${program_prefix},; $program_transform_name"
750 # Use a double $ so make ignores it.
751 test "$program_suffix" != NONE &&
752 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
754 # sed with no file args requires a program.
755 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
757 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
758 echo "configure:759: checking whether ${MAKE-make} sets \${MAKE}" >&5
759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
760 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
762 else
763 cat > conftestmake <<\EOF
764 all:
765 @echo 'ac_maketemp="${MAKE}"'
767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
768 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
769 if test -n "$ac_maketemp"; then
770 eval ac_cv_prog_make_${ac_make}_set=yes
771 else
772 eval ac_cv_prog_make_${ac_make}_set=no
774 rm -f conftestmake
776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
777 echo "$ac_t""yes" 1>&6
778 SET_MAKE=
779 else
780 echo "$ac_t""no" 1>&6
781 SET_MAKE="MAKE=${MAKE-make}"
784 if test $host != $build; then
785 ac_tool_prefix=${host_alias}-
786 else
787 ac_tool_prefix=
790 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
791 echo "configure:792: checking for Cygwin environment" >&5
792 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
794 else
795 cat > conftest.$ac_ext <<EOF
796 #line 797 "configure"
797 #include "confdefs.h"
799 int main() {
801 #ifndef __CYGWIN__
802 #define __CYGWIN__ __CYGWIN32__
803 #endif
804 return __CYGWIN__;
805 ; return 0; }
807 if { (eval echo configure:808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
808 rm -rf conftest*
809 ac_cv_cygwin=yes
810 else
811 echo "configure: failed program was:" >&5
812 cat conftest.$ac_ext >&5
813 rm -rf conftest*
814 ac_cv_cygwin=no
816 rm -f conftest*
817 rm -f conftest*
820 echo "$ac_t""$ac_cv_cygwin" 1>&6
821 CYGWIN=
822 test "$ac_cv_cygwin" = yes && CYGWIN=yes
823 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
824 echo "configure:825: checking for mingw32 environment" >&5
825 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827 else
828 cat > conftest.$ac_ext <<EOF
829 #line 830 "configure"
830 #include "confdefs.h"
832 int main() {
833 return __MINGW32__;
834 ; return 0; }
836 if { (eval echo configure:837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
837 rm -rf conftest*
838 ac_cv_mingw32=yes
839 else
840 echo "configure: failed program was:" >&5
841 cat conftest.$ac_ext >&5
842 rm -rf conftest*
843 ac_cv_mingw32=no
845 rm -f conftest*
846 rm -f conftest*
849 echo "$ac_t""$ac_cv_mingw32" 1>&6
850 MINGW32=
851 test "$ac_cv_mingw32" = yes && MINGW32=yes
853 # Check whether --enable-multilib or --disable-multilib was given.
854 if test "${enable_multilib+set}" = set; then
855 enableval="$enable_multilib"
856 case "${enableval}" in
857 yes) multilib=yes ;;
858 no) multilib=no ;;
859 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
860 esac
861 else
862 multilib=yes
866 # When building with srcdir == objdir, links to the source files will
867 # be created in directories within the target_subdir. We have to
868 # adjust toplevel_srcdir accordingly, so that configure finds
869 # install-sh and other auxiliary files that live in the top-level
870 # source directory.
871 if test "${srcdir}" = "."; then
872 if test -z "${with_target_subdir}"; then
873 toprel=".."
874 else
875 if test "${with_target_subdir}" != "."; then
876 toprel="${with_multisrctop}../.."
877 else
878 toprel="${with_multisrctop}.."
881 else
882 toprel=".."
885 libgcj_basedir=$srcdir/$toprel/./libjava
888 ac_aux_dir=
889 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
890 if test -f $ac_dir/install-sh; then
891 ac_aux_dir=$ac_dir
892 ac_install_sh="$ac_aux_dir/install-sh -c"
893 break
894 elif test -f $ac_dir/install.sh; then
895 ac_aux_dir=$ac_dir
896 ac_install_sh="$ac_aux_dir/install.sh -c"
897 break
899 done
900 if test -z "$ac_aux_dir"; then
901 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
903 ac_config_guess=$ac_aux_dir/config.guess
904 ac_config_sub=$ac_aux_dir/config.sub
905 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
907 if :; then :; else
908 # This overrides the previous occurrence for automake, but not for
909 # autoconf, which is exactly what we want.
910 ac_aux_dir=
911 for ac_dir in .. $srcdir/..; do
912 if test -f $ac_dir/install-sh; then
913 ac_aux_dir=$ac_dir
914 ac_install_sh="$ac_aux_dir/install-sh -c"
915 break
916 elif test -f $ac_dir/install.sh; then
917 ac_aux_dir=$ac_dir
918 ac_install_sh="$ac_aux_dir/install.sh -c"
919 break
921 done
922 if test -z "$ac_aux_dir"; then
923 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
925 ac_config_guess=$ac_aux_dir/config.guess
926 ac_config_sub=$ac_aux_dir/config.sub
927 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
931 # This works around an automake problem.
932 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
936 # Do some error checking and defaulting for the host and target type.
937 # The inputs are:
938 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
940 # The rules are:
941 # 1. You are not allowed to specify --host, --target, and nonopt at the
942 # same time.
943 # 2. Host defaults to nonopt.
944 # 3. If nonopt is not specified, then host defaults to the current host,
945 # as determined by config.guess.
946 # 4. Target and build default to nonopt.
947 # 5. If nonopt is not specified, then target and build default to host.
949 # The aliases save the names the user supplied, while $host etc.
950 # will get canonicalized.
951 case $host---$target---$nonopt in
952 NONE---*---* | *---NONE---* | *---*---NONE) ;;
953 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
954 esac
957 # Make sure we can run config.sub.
958 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
959 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
962 echo $ac_n "checking host system type""... $ac_c" 1>&6
963 echo "configure:964: checking host system type" >&5
965 host_alias=$host
966 case "$host_alias" in
967 NONE)
968 case $nonopt in
969 NONE)
970 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
971 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
972 fi ;;
973 *) host_alias=$nonopt ;;
974 esac ;;
975 esac
977 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
978 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
979 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
980 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
981 echo "$ac_t""$host" 1>&6
983 echo $ac_n "checking target system type""... $ac_c" 1>&6
984 echo "configure:985: checking target system type" >&5
986 target_alias=$target
987 case "$target_alias" in
988 NONE)
989 case $nonopt in
990 NONE) target_alias=$host_alias ;;
991 *) target_alias=$nonopt ;;
992 esac ;;
993 esac
995 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
996 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
997 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
998 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
999 echo "$ac_t""$target" 1>&6
1001 echo $ac_n "checking build system type""... $ac_c" 1>&6
1002 echo "configure:1003: checking build system type" >&5
1004 build_alias=$build
1005 case "$build_alias" in
1006 NONE)
1007 case $nonopt in
1008 NONE) build_alias=$host_alias ;;
1009 *) build_alias=$nonopt ;;
1010 esac ;;
1011 esac
1013 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1014 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1015 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1016 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1017 echo "$ac_t""$build" 1>&6
1019 test "$host_alias" != "$target_alias" &&
1020 test "$program_prefix$program_suffix$program_transform_name" = \
1021 NONENONEs,x,x, &&
1022 program_prefix=${target_alias}-
1028 # Extract the first word of "gcc", so it can be a program name with args.
1029 set dummy gcc; ac_word=$2
1030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1031 echo "configure:1032: checking for $ac_word" >&5
1032 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1034 else
1035 if test -n "$CC"; then
1036 ac_cv_prog_CC="$CC" # Let the user override the test.
1037 else
1038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1039 ac_dummy="$PATH"
1040 for ac_dir in $ac_dummy; do
1041 test -z "$ac_dir" && ac_dir=.
1042 if test -f $ac_dir/$ac_word; then
1043 ac_cv_prog_CC="gcc"
1044 break
1046 done
1047 IFS="$ac_save_ifs"
1050 CC="$ac_cv_prog_CC"
1051 if test -n "$CC"; then
1052 echo "$ac_t""$CC" 1>&6
1053 else
1054 echo "$ac_t""no" 1>&6
1057 if test -z "$CC"; then
1058 # Extract the first word of "cc", so it can be a program name with args.
1059 set dummy cc; ac_word=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1064 else
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC="$CC" # Let the user override the test.
1067 else
1068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1069 ac_prog_rejected=no
1070 ac_dummy="$PATH"
1071 for ac_dir in $ac_dummy; do
1072 test -z "$ac_dir" && ac_dir=.
1073 if test -f $ac_dir/$ac_word; then
1074 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1075 ac_prog_rejected=yes
1076 continue
1078 ac_cv_prog_CC="cc"
1079 break
1081 done
1082 IFS="$ac_save_ifs"
1083 if test $ac_prog_rejected = yes; then
1084 # We found a bogon in the path, so make sure we never use it.
1085 set dummy $ac_cv_prog_CC
1086 shift
1087 if test $# -gt 0; then
1088 # We chose a different compiler from the bogus one.
1089 # However, it has the same basename, so the bogon will be chosen
1090 # first if we set CC to just the basename; use the full file name.
1091 shift
1092 set dummy "$ac_dir/$ac_word" "$@"
1093 shift
1094 ac_cv_prog_CC="$@"
1099 CC="$ac_cv_prog_CC"
1100 if test -n "$CC"; then
1101 echo "$ac_t""$CC" 1>&6
1102 else
1103 echo "$ac_t""no" 1>&6
1106 if test -z "$CC"; then
1107 case "`uname -s`" in
1108 *win32* | *WIN32*)
1109 # Extract the first word of "cl", so it can be a program name with args.
1110 set dummy cl; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 if test -n "$CC"; then
1117 ac_cv_prog_CC="$CC" # Let the user override the test.
1118 else
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1120 ac_dummy="$PATH"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_CC="cl"
1125 break
1127 done
1128 IFS="$ac_save_ifs"
1131 CC="$ac_cv_prog_CC"
1132 if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1134 else
1135 echo "$ac_t""no" 1>&6
1138 esac
1140 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151 yes;
1152 #endif
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155 ac_cv_prog_gcc=yes
1156 else
1157 ac_cv_prog_gcc=no
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1164 GCC=yes
1165 else
1166 GCC=
1169 ac_test_CFLAGS="${CFLAGS+set}"
1170 ac_save_CFLAGS="$CFLAGS"
1171 CFLAGS=
1172 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1179 ac_cv_prog_cc_g=yes
1180 else
1181 ac_cv_prog_cc_g=no
1183 rm -f conftest*
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189 CFLAGS="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191 if test "$GCC" = yes; then
1192 CFLAGS="-g -O2"
1193 else
1194 CFLAGS="-g"
1196 else
1197 if test "$GCC" = yes; then
1198 CFLAGS="-O2"
1199 else
1200 CFLAGS=
1205 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1206 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1207 # different definition of CXX than other directories, since we don't
1208 # depend on libstdc++-v3 having already been built.
1212 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1213 # flags that come in CXX while configuring libjava. They're different
1214 # from those used for all other target libraries. If CXX is set in
1215 # the environment, respect that here.
1216 glibjava_CXX=$CXX
1217 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1219 # Extract the first word of "$ac_prog", so it can be a program name with args.
1220 set dummy $ac_prog; ac_word=$2
1221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1222 echo "configure:1223: checking for $ac_word" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1225 else
1226 if test -n "$glibjava_CXX"; then
1227 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1228 else
1229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1230 ac_dummy="$PATH"
1231 for ac_dir in $ac_dummy; do
1232 test -z "$ac_dir" && ac_dir=.
1233 if test -f $ac_dir/$ac_word; then
1234 ac_cv_prog_glibjava_CXX="$ac_prog"
1235 break
1237 done
1238 IFS="$ac_save_ifs"
1241 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1242 if test -n "$glibjava_CXX"; then
1243 echo "$ac_t""$glibjava_CXX" 1>&6
1244 else
1245 echo "$ac_t""no" 1>&6
1248 test -n "$glibjava_CXX" && break
1249 done
1250 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1253 CXX=$glibjava_CXX
1254 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1256 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1257 echo "configure:1258: checking whether we are using GNU C++" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1260 else
1261 cat > conftest.C <<EOF
1262 #ifdef __GNUC__
1263 yes;
1264 #endif
1266 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1267 ac_cv_prog_gxx=yes
1268 else
1269 ac_cv_prog_gxx=no
1273 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1275 if test $ac_cv_prog_gxx = yes; then
1276 GXX=yes
1277 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1278 ac_save_CXXFLAGS="$CXXFLAGS"
1279 CXXFLAGS=
1280 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1281 echo "configure:1282: checking whether ${CXX-g++} accepts -g" >&5
1282 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1284 else
1285 echo 'void f(){}' > conftest.cc
1286 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1287 ac_cv_prog_cxx_g=yes
1288 else
1289 ac_cv_prog_cxx_g=no
1291 rm -f conftest*
1295 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1296 if test "$ac_test_CXXFLAGS" = set; then
1297 CXXFLAGS="$ac_save_CXXFLAGS"
1298 elif test $ac_cv_prog_cxx_g = yes; then
1299 CXXFLAGS="-g -O2"
1300 else
1301 CXXFLAGS="-O2"
1303 else
1304 GXX=
1305 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1309 version=0.0.7
1311 PACKAGE=libjava
1313 VERSION=$version
1315 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1316 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1318 cat >> confdefs.h <<EOF
1319 #define PACKAGE "$PACKAGE"
1322 cat >> confdefs.h <<EOF
1323 #define VERSION "$VERSION"
1328 missing_dir=`cd $ac_aux_dir && pwd`
1329 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1330 echo "configure:1331: checking for working aclocal-${am__api_version}" >&5
1331 # Run test in a subshell; some versions of sh will print an error if
1332 # an executable is not found, even if stderr is redirected.
1333 # Redirect stdin to placate older versions of autoconf. Sigh.
1334 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1335 ACLOCAL=aclocal-${am__api_version}
1336 echo "$ac_t""found" 1>&6
1337 else
1338 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1339 echo "$ac_t""missing" 1>&6
1342 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1343 echo "configure:1344: checking for working autoconf" >&5
1344 # Run test in a subshell; some versions of sh will print an error if
1345 # an executable is not found, even if stderr is redirected.
1346 # Redirect stdin to placate older versions of autoconf. Sigh.
1347 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1348 AUTOCONF=autoconf
1349 echo "$ac_t""found" 1>&6
1350 else
1351 AUTOCONF="$missing_dir/missing autoconf"
1352 echo "$ac_t""missing" 1>&6
1355 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1356 echo "configure:1357: checking for working automake-${am__api_version}" >&5
1357 # Run test in a subshell; some versions of sh will print an error if
1358 # an executable is not found, even if stderr is redirected.
1359 # Redirect stdin to placate older versions of autoconf. Sigh.
1360 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1361 AUTOMAKE=automake-${am__api_version}
1362 echo "$ac_t""found" 1>&6
1363 else
1364 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1365 echo "$ac_t""missing" 1>&6
1368 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1369 echo "configure:1370: checking for working autoheader" >&5
1370 # Run test in a subshell; some versions of sh will print an error if
1371 # an executable is not found, even if stderr is redirected.
1372 # Redirect stdin to placate older versions of autoconf. Sigh.
1373 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1374 AUTOHEADER=autoheader
1375 echo "$ac_t""found" 1>&6
1376 else
1377 AUTOHEADER="$missing_dir/missing autoheader"
1378 echo "$ac_t""missing" 1>&6
1381 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1382 echo "configure:1383: checking for working makeinfo" >&5
1383 # Run test in a subshell; some versions of sh will print an error if
1384 # an executable is not found, even if stderr is redirected.
1385 # Redirect stdin to placate older versions of autoconf. Sigh.
1386 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1387 MAKEINFO=makeinfo
1388 echo "$ac_t""found" 1>&6
1389 else
1390 MAKEINFO="$missing_dir/missing makeinfo"
1391 echo "$ac_t""missing" 1>&6
1396 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1397 set dummy ${ac_tool_prefix}as; ac_word=$2
1398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1399 echo "configure:1400: checking for $ac_word" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403 if test -n "$AS"; then
1404 ac_cv_prog_AS="$AS" # Let the user override the test.
1405 else
1406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1407 ac_dummy="$PATH"
1408 for ac_dir in $ac_dummy; do
1409 test -z "$ac_dir" && ac_dir=.
1410 if test -f $ac_dir/$ac_word; then
1411 ac_cv_prog_AS="${ac_tool_prefix}as"
1412 break
1414 done
1415 IFS="$ac_save_ifs"
1416 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1419 AS="$ac_cv_prog_AS"
1420 if test -n "$AS"; then
1421 echo "$ac_t""$AS" 1>&6
1422 else
1423 echo "$ac_t""no" 1>&6
1428 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1429 set dummy ${ac_tool_prefix}ar; ac_word=$2
1430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1431 echo "configure:1432: checking for $ac_word" >&5
1432 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1434 else
1435 if test -n "$AR"; then
1436 ac_cv_prog_AR="$AR" # Let the user override the test.
1437 else
1438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1439 ac_dummy="$PATH"
1440 for ac_dir in $ac_dummy; do
1441 test -z "$ac_dir" && ac_dir=.
1442 if test -f $ac_dir/$ac_word; then
1443 ac_cv_prog_AR="${ac_tool_prefix}ar"
1444 break
1446 done
1447 IFS="$ac_save_ifs"
1448 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1451 AR="$ac_cv_prog_AR"
1452 if test -n "$AR"; then
1453 echo "$ac_t""$AR" 1>&6
1454 else
1455 echo "$ac_t""no" 1>&6
1460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1463 echo "configure:1464: checking for $ac_word" >&5
1464 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1466 else
1467 if test -n "$RANLIB"; then
1468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1469 else
1470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1471 ac_dummy="$PATH"
1472 for ac_dir in $ac_dummy; do
1473 test -z "$ac_dir" && ac_dir=.
1474 if test -f $ac_dir/$ac_word; then
1475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1476 break
1478 done
1479 IFS="$ac_save_ifs"
1482 RANLIB="$ac_cv_prog_RANLIB"
1483 if test -n "$RANLIB"; then
1484 echo "$ac_t""$RANLIB" 1>&6
1485 else
1486 echo "$ac_t""no" 1>&6
1490 if test -z "$ac_cv_prog_RANLIB"; then
1491 if test -n "$ac_tool_prefix"; then
1492 # Extract the first word of "ranlib", so it can be a program name with args.
1493 set dummy ranlib; ac_word=$2
1494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1498 else
1499 if test -n "$RANLIB"; then
1500 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1501 else
1502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1503 ac_dummy="$PATH"
1504 for ac_dir in $ac_dummy; do
1505 test -z "$ac_dir" && ac_dir=.
1506 if test -f $ac_dir/$ac_word; then
1507 ac_cv_prog_RANLIB="ranlib"
1508 break
1510 done
1511 IFS="$ac_save_ifs"
1512 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1515 RANLIB="$ac_cv_prog_RANLIB"
1516 if test -n "$RANLIB"; then
1517 echo "$ac_t""$RANLIB" 1>&6
1518 else
1519 echo "$ac_t""no" 1>&6
1522 else
1523 RANLIB=":"
1528 # Find a good install program. We prefer a C program (faster),
1529 # so one script is as good as another. But avoid the broken or
1530 # incompatible versions:
1531 # SysV /etc/install, /usr/sbin/install
1532 # SunOS /usr/etc/install
1533 # IRIX /sbin/install
1534 # AIX /bin/install
1535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1540 echo "configure:1541: checking for a BSD compatible install" >&5
1541 if test -z "$INSTALL"; then
1542 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1546 for ac_dir in $PATH; do
1547 # Account for people who put trailing slashes in PATH elements.
1548 case "$ac_dir/" in
1549 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1551 # OSF1 and SCO ODT 3.0 have their own names for install.
1552 # Don't use installbsd from OSF since it installs stuff as root
1553 # by default.
1554 for ac_prog in ginstall scoinst install; do
1555 if test -f $ac_dir/$ac_prog; then
1556 if test $ac_prog = install &&
1557 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1558 # AIX install. It has an incompatible calling convention.
1560 else
1561 ac_cv_path_install="$ac_dir/$ac_prog -c"
1562 break 2
1565 done
1567 esac
1568 done
1569 IFS="$ac_save_IFS"
1572 if test "${ac_cv_path_install+set}" = set; then
1573 INSTALL="$ac_cv_path_install"
1574 else
1575 # As a last resort, use the slow shell script. We don't cache a
1576 # path for INSTALL within a source directory, because that will
1577 # break other packages using the cache if that directory is
1578 # removed, or if the path is relative.
1579 INSTALL="$ac_install_sh"
1582 echo "$ac_t""$INSTALL" 1>&6
1584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1585 # It thinks the first close brace ends the variable substitution.
1586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1593 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether to enable maintainer-specific portions of Makefiles" >&5
1595 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1596 if test "${enable_maintainer_mode+set}" = set; then
1597 enableval="$enable_maintainer_mode"
1598 USE_MAINTAINER_MODE=$enableval
1599 else
1600 USE_MAINTAINER_MODE=no
1603 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1606 if test $USE_MAINTAINER_MODE = yes; then
1607 MAINTAINER_MODE_TRUE=
1608 MAINTAINER_MODE_FALSE='#'
1609 else
1610 MAINTAINER_MODE_TRUE='#'
1611 MAINTAINER_MODE_FALSE=
1613 MAINT=$MAINTAINER_MODE_TRUE
1619 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1620 echo "configure:1621: checking for executable suffix" >&5
1621 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1623 else
1624 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1625 ac_cv_exeext=.exe
1626 else
1627 rm -f conftest*
1628 echo 'int main () { return 0; }' > conftest.$ac_ext
1629 ac_cv_exeext=
1630 if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1631 for file in conftest.*; do
1632 case $file in
1633 *.c | *.o | *.obj) ;;
1634 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1635 esac
1636 done
1637 else
1638 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1640 rm -f conftest*
1641 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1645 EXEEXT=""
1646 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1647 echo "$ac_t""${ac_cv_exeext}" 1>&6
1648 ac_exeext=$EXEEXT
1651 # configure.host sets the following important variables
1652 # libgcj_cflags - host specific C compiler flags
1653 # libgcj_cxxflags - host specific C++ compiler flags
1654 # libgcj_javaflags - host specific Java compiler flags
1656 libgcj_cflags=
1657 libgcj_cxxflags=
1658 libgcj_javaflags=
1660 . ${srcdir}/configure.host
1662 LIBGCJ_CFLAGS="${libgcj_cflags}"
1663 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1664 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1674 # Only use libltdl for non-newlib builds.
1675 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
1676 case $enable_ltdl_convenience in
1677 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1678 "") enable_ltdl_convenience=yes
1679 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1680 esac
1681 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1682 INCLTDL='-I${top_srcdir}/''libltdl'
1685 DIRLTDL=libltdl
1686 cat >> confdefs.h <<\EOF
1687 #define USE_LTDL 1
1690 # Sigh. Libtool's macro doesn't do the right thing.
1691 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1692 # FIXME: this is a hack.
1693 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1694 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1699 # Check whether --enable-shared or --disable-shared was given.
1700 if test "${enable_shared+set}" = set; then
1701 enableval="$enable_shared"
1702 p=${PACKAGE-default}
1703 case $enableval in
1704 yes) enable_shared=yes ;;
1705 no) enable_shared=no ;;
1707 enable_shared=no
1708 # Look at the argument we got. We use all the common list separators.
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1710 for pkg in $enableval; do
1711 if test "X$pkg" = "X$p"; then
1712 enable_shared=yes
1714 done
1715 IFS="$ac_save_ifs"
1717 esac
1718 else
1719 enable_shared=yes
1722 # Check whether --enable-static or --disable-static was given.
1723 if test "${enable_static+set}" = set; then
1724 enableval="$enable_static"
1725 p=${PACKAGE-default}
1726 case $enableval in
1727 yes) enable_static=yes ;;
1728 no) enable_static=no ;;
1730 enable_static=no
1731 # Look at the argument we got. We use all the common list separators.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1733 for pkg in $enableval; do
1734 if test "X$pkg" = "X$p"; then
1735 enable_static=yes
1737 done
1738 IFS="$ac_save_ifs"
1740 esac
1741 else
1742 enable_static=yes
1745 # Check whether --enable-fast-install or --disable-fast-install was given.
1746 if test "${enable_fast_install+set}" = set; then
1747 enableval="$enable_fast_install"
1748 p=${PACKAGE-default}
1749 case $enableval in
1750 yes) enable_fast_install=yes ;;
1751 no) enable_fast_install=no ;;
1753 enable_fast_install=no
1754 # Look at the argument we got. We use all the common list separators.
1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1756 for pkg in $enableval; do
1757 if test "X$pkg" = "X$p"; then
1758 enable_fast_install=yes
1760 done
1761 IFS="$ac_save_ifs"
1763 esac
1764 else
1765 enable_fast_install=yes
1768 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1769 if test "${with_gnu_ld+set}" = set; then
1770 withval="$with_gnu_ld"
1771 test "$withval" = no || with_gnu_ld=yes
1772 else
1773 with_gnu_ld=no
1776 ac_prog=ld
1777 if test "$GCC" = yes; then
1778 # Check if gcc -print-prog-name=ld gives a path.
1779 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1780 echo "configure:1781: checking for ld used by GCC" >&5
1781 case $host in
1782 *-*-mingw*)
1783 # gcc leaves a trailing carriage return which upsets mingw
1784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1787 esac
1788 case $ac_prog in
1789 # Accept absolute paths.
1790 [\\/]* | [A-Za-z]:[\\/]*)
1791 re_direlt='/[^/][^/]*/\.\./'
1792 # Canonicalize the path of ld
1793 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1795 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1796 done
1797 test -z "$LD" && LD="$ac_prog"
1800 # If it fails, then pretend we aren't using GCC.
1801 ac_prog=ld
1804 # If it is relative, then search for the first ld in PATH.
1805 with_gnu_ld=unknown
1807 esac
1808 elif test "$with_gnu_ld" = yes; then
1809 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1810 echo "configure:1811: checking for GNU ld" >&5
1811 else
1812 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1813 echo "configure:1814: checking for non-GNU ld" >&5
1815 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817 else
1818 if test -z "$LD"; then
1819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1820 for ac_dir in $PATH; do
1821 test -z "$ac_dir" && ac_dir=.
1822 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1823 lt_cv_path_LD="$ac_dir/$ac_prog"
1824 # Check to see if the program is GNU ld. I'd rather use --version,
1825 # but apparently some GNU ld's only accept -v.
1826 # Break only if it was the GNU/non-GNU ld that we prefer.
1827 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1828 test "$with_gnu_ld" != no && break
1829 else
1830 test "$with_gnu_ld" != yes && break
1833 done
1834 IFS="$ac_save_ifs"
1835 else
1836 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1840 LD="$lt_cv_path_LD"
1841 if test -n "$LD"; then
1842 echo "$ac_t""$LD" 1>&6
1843 else
1844 echo "$ac_t""no" 1>&6
1846 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1847 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1848 echo "configure:1849: checking if the linker ($LD) is GNU ld" >&5
1849 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851 else
1852 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1853 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1854 lt_cv_prog_gnu_ld=yes
1855 else
1856 lt_cv_prog_gnu_ld=no
1860 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1861 with_gnu_ld=$lt_cv_prog_gnu_ld
1864 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $LD option to reload object files" >&5
1866 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868 else
1869 lt_cv_ld_reload_flag='-r'
1872 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1873 reload_flag=$lt_cv_ld_reload_flag
1874 test -n "$reload_flag" && reload_flag=" $reload_flag"
1876 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1877 echo "configure:1878: checking for BSD-compatible nm" >&5
1878 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880 else
1881 if test -n "$NM"; then
1882 # Let the user override the test.
1883 lt_cv_path_NM="$NM"
1884 else
1885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1886 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1887 test -z "$ac_dir" && ac_dir=.
1888 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1889 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1890 # Check to see if the nm accepts a BSD-compat flag.
1891 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1892 # nm: unknown option "B" ignored
1893 # Tru64's nm complains that /dev/null is an invalid object file
1894 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1895 lt_cv_path_NM="$tmp_nm -B"
1896 break
1897 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1898 lt_cv_path_NM="$tmp_nm -p"
1899 break
1900 else
1901 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1902 continue # so that we can try to find one that supports BSD flags
1905 done
1906 IFS="$ac_save_ifs"
1907 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1911 NM="$lt_cv_path_NM"
1912 echo "$ac_t""$NM" 1>&6
1914 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1915 echo "configure:1916: checking how to recognise dependant libraries" >&5
1916 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 lt_cv_file_magic_cmd='$MAGIC_CMD'
1920 lt_cv_file_magic_test_file=
1921 lt_cv_deplibs_check_method='unknown'
1922 # Need to set the preceding variable on all platforms that support
1923 # interlibrary dependencies.
1924 # 'none' -- dependencies not supported.
1925 # `unknown' -- same as none, but documents that we really don't know.
1926 # 'pass_all' -- all dependencies passed with no checks.
1927 # 'test_compile' -- check by making test program.
1928 # 'file_magic [regex]' -- check by looking for files in library path
1929 # which responds to the $file_magic_cmd with a given egrep regex.
1930 # If you have `file' or equivalent on your system and you're not sure
1931 # whether `pass_all' will *always* work, you probably want this one.
1933 case $host_os in
1934 aix*)
1935 lt_cv_deplibs_check_method=pass_all
1938 beos*)
1939 lt_cv_deplibs_check_method=pass_all
1942 bsdi4*)
1943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1944 lt_cv_file_magic_cmd='/usr/bin/file -L'
1945 lt_cv_file_magic_test_file=/shlib/libc.so
1948 cygwin* | mingw* |pw32*)
1949 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1950 lt_cv_file_magic_cmd='$OBJDUMP -f'
1953 darwin* | rhapsody*)
1954 # this will be overwritten by pass_all, but leave it in just in case
1955 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1956 lt_cv_file_magic_cmd='/usr/bin/file -L'
1957 case "$host_os" in
1958 rhapsody* | darwin1.012)
1959 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1961 *) # Darwin 1.3 on
1962 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1964 esac
1965 lt_cv_deplibs_check_method=pass_all
1968 freebsd* )
1969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1970 case $host_cpu in
1971 i*86 )
1972 # Not sure whether the presence of OpenBSD here was a mistake.
1973 # Let's accept both of them until this is cleared up.
1974 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1975 lt_cv_file_magic_cmd=/usr/bin/file
1976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1978 esac
1979 else
1980 lt_cv_deplibs_check_method=pass_all
1984 gnu*)
1985 lt_cv_deplibs_check_method=pass_all
1988 hpux10.20*|hpux11*)
1989 case $host_cpu in
1990 hppa*)
1991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1992 lt_cv_file_magic_cmd=/usr/bin/file
1993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1995 ia64*)
1996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1997 lt_cv_file_magic_cmd=/usr/bin/file
1998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2000 esac
2003 irix5* | irix6*)
2004 case $host_os in
2005 irix5*)
2006 # this will be overridden with pass_all, but let us keep it just in case
2007 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2010 case $LD in
2011 *-32|*"-32 ") libmagic=32-bit;;
2012 *-n32|*"-n32 ") libmagic=N32;;
2013 *-64|*"-64 ") libmagic=64-bit;;
2014 *) libmagic=never-match;;
2015 esac
2016 # this will be overridden with pass_all, but let us keep it just in case
2017 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2019 esac
2020 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2021 lt_cv_deplibs_check_method=pass_all
2024 # This must be Linux ELF.
2025 linux-gnu*)
2026 case $host_cpu in
2027 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2028 lt_cv_deplibs_check_method=pass_all ;;
2030 # glibc up to 2.1.1 does not perform some relocations on ARM
2031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2032 esac
2033 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2036 netbsd*)
2037 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2038 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2039 else
2040 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2044 newsos6)
2045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2046 lt_cv_file_magic_cmd=/usr/bin/file
2047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2050 osf3* | osf4* | osf5*)
2051 # this will be overridden with pass_all, but let us keep it just in case
2052 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2053 lt_cv_file_magic_test_file=/shlib/libc.so
2054 lt_cv_deplibs_check_method=pass_all
2057 sco3.2v5*)
2058 lt_cv_deplibs_check_method=pass_all
2061 solaris*)
2062 lt_cv_deplibs_check_method=pass_all
2063 lt_cv_file_magic_test_file=/lib/libc.so
2066 sysv5uw[78]* | sysv4*uw2*)
2067 lt_cv_deplibs_check_method=pass_all
2070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2071 case $host_vendor in
2072 ncr)
2073 lt_cv_deplibs_check_method=pass_all
2075 motorola)
2076 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]'
2077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2079 esac
2081 esac
2085 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2086 file_magic_cmd=$lt_cv_file_magic_cmd
2087 deplibs_check_method=$lt_cv_deplibs_check_method
2089 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2090 echo "configure:2091: checking for object suffix" >&5
2091 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094 rm -f conftest*
2095 echo 'int i = 1;' > conftest.$ac_ext
2096 if { (eval echo configure:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2097 for ac_file in conftest.*; do
2098 case $ac_file in
2099 *.c) ;;
2100 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2101 esac
2102 done
2103 else
2104 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2106 rm -f conftest*
2109 echo "$ac_t""$ac_cv_objext" 1>&6
2110 OBJEXT=$ac_cv_objext
2111 ac_objext=$ac_cv_objext
2113 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2115 # Only perform the check for file, if the check method requires it
2116 case $deplibs_check_method in
2117 file_magic*)
2118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2119 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2120 echo "configure:2121: checking for ${ac_tool_prefix}file" >&5
2121 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 case $MAGIC_CMD in
2126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2128 ?:/*)
2129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2132 ac_save_MAGIC_CMD="$MAGIC_CMD"
2133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2134 ac_dummy="/usr/bin:$PATH"
2135 for ac_dir in $ac_dummy; do
2136 test -z "$ac_dir" && ac_dir=.
2137 if test -f $ac_dir/${ac_tool_prefix}file; then
2138 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2139 if test -n "$file_magic_test_file"; then
2140 case $deplibs_check_method in
2141 "file_magic "*)
2142 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2145 egrep "$file_magic_regex" > /dev/null; then
2147 else
2148 cat <<EOF 1>&2
2150 *** Warning: the command libtool uses to detect shared libraries,
2151 *** $file_magic_cmd, produces output that libtool cannot recognize.
2152 *** The result is that libtool may fail to recognize shared libraries
2153 *** as such. This will affect the creation of libtool libraries that
2154 *** depend on shared libraries, but programs linked with such libtool
2155 *** libraries will work regardless of this problem. Nevertheless, you
2156 *** may want to report the problem to your system manager and/or to
2157 *** bug-libtool@gnu.org
2160 fi ;;
2161 esac
2163 break
2165 done
2166 IFS="$ac_save_ifs"
2167 MAGIC_CMD="$ac_save_MAGIC_CMD"
2169 esac
2172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2173 if test -n "$MAGIC_CMD"; then
2174 echo "$ac_t""$MAGIC_CMD" 1>&6
2175 else
2176 echo "$ac_t""no" 1>&6
2179 if test -z "$lt_cv_path_MAGIC_CMD"; then
2180 if test -n "$ac_tool_prefix"; then
2181 echo $ac_n "checking for file""... $ac_c" 1>&6
2182 echo "configure:2183: checking for file" >&5
2183 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2185 else
2186 case $MAGIC_CMD in
2188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2190 ?:/*)
2191 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2194 ac_save_MAGIC_CMD="$MAGIC_CMD"
2195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2196 ac_dummy="/usr/bin:$PATH"
2197 for ac_dir in $ac_dummy; do
2198 test -z "$ac_dir" && ac_dir=.
2199 if test -f $ac_dir/file; then
2200 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2201 if test -n "$file_magic_test_file"; then
2202 case $deplibs_check_method in
2203 "file_magic "*)
2204 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2207 egrep "$file_magic_regex" > /dev/null; then
2209 else
2210 cat <<EOF 1>&2
2212 *** Warning: the command libtool uses to detect shared libraries,
2213 *** $file_magic_cmd, produces output that libtool cannot recognize.
2214 *** The result is that libtool may fail to recognize shared libraries
2215 *** as such. This will affect the creation of libtool libraries that
2216 *** depend on shared libraries, but programs linked with such libtool
2217 *** libraries will work regardless of this problem. Nevertheless, you
2218 *** may want to report the problem to your system manager and/or to
2219 *** bug-libtool@gnu.org
2222 fi ;;
2223 esac
2225 break
2227 done
2228 IFS="$ac_save_ifs"
2229 MAGIC_CMD="$ac_save_MAGIC_CMD"
2231 esac
2234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2235 if test -n "$MAGIC_CMD"; then
2236 echo "$ac_t""$MAGIC_CMD" 1>&6
2237 else
2238 echo "$ac_t""no" 1>&6
2241 else
2242 MAGIC_CMD=:
2248 esac
2250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2253 echo "configure:2254: checking for $ac_word" >&5
2254 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2256 else
2257 if test -n "$RANLIB"; then
2258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2259 else
2260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2261 ac_dummy="$PATH"
2262 for ac_dir in $ac_dummy; do
2263 test -z "$ac_dir" && ac_dir=.
2264 if test -f $ac_dir/$ac_word; then
2265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2266 break
2268 done
2269 IFS="$ac_save_ifs"
2272 RANLIB="$ac_cv_prog_RANLIB"
2273 if test -n "$RANLIB"; then
2274 echo "$ac_t""$RANLIB" 1>&6
2275 else
2276 echo "$ac_t""no" 1>&6
2280 if test -z "$ac_cv_prog_RANLIB"; then
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "ranlib", so it can be a program name with args.
2283 set dummy ranlib; ac_word=$2
2284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2285 echo "configure:2286: checking for $ac_word" >&5
2286 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 if test -n "$RANLIB"; then
2290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2291 else
2292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2293 ac_dummy="$PATH"
2294 for ac_dir in $ac_dummy; do
2295 test -z "$ac_dir" && ac_dir=.
2296 if test -f $ac_dir/$ac_word; then
2297 ac_cv_prog_RANLIB="ranlib"
2298 break
2300 done
2301 IFS="$ac_save_ifs"
2302 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
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
2312 else
2313 RANLIB=":"
2317 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}strip; ac_word=$2
2319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2320 echo "configure:2321: checking for $ac_word" >&5
2321 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2323 else
2324 if test -n "$STRIP"; then
2325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2326 else
2327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2328 ac_dummy="$PATH"
2329 for ac_dir in $ac_dummy; do
2330 test -z "$ac_dir" && ac_dir=.
2331 if test -f $ac_dir/$ac_word; then
2332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333 break
2335 done
2336 IFS="$ac_save_ifs"
2339 STRIP="$ac_cv_prog_STRIP"
2340 if test -n "$STRIP"; then
2341 echo "$ac_t""$STRIP" 1>&6
2342 else
2343 echo "$ac_t""no" 1>&6
2347 if test -z "$ac_cv_prog_STRIP"; then
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "strip", so it can be a program name with args.
2350 set dummy strip; ac_word=$2
2351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_word" >&5
2353 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355 else
2356 if test -n "$STRIP"; then
2357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2358 else
2359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2360 ac_dummy="$PATH"
2361 for ac_dir in $ac_dummy; do
2362 test -z "$ac_dir" && ac_dir=.
2363 if test -f $ac_dir/$ac_word; then
2364 ac_cv_prog_STRIP="strip"
2365 break
2367 done
2368 IFS="$ac_save_ifs"
2369 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
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
2379 else
2380 STRIP=":"
2385 # Check for any special flags to pass to ltconfig.
2386 libtool_flags="--cache-file=$cache_file"
2387 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2388 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2389 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2390 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2391 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2392 libtool_flags="$libtool_flags --enable-dlopen"
2394 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2395 if test "${enable_libtool_lock+set}" = set; then
2396 enableval="$enable_libtool_lock"
2400 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2401 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2403 # Check whether --with-pic or --without-pic was given.
2404 if test "${with_pic+set}" = set; then
2405 withval="$with_pic"
2406 pic_mode="$withval"
2407 else
2408 pic_mode=default
2411 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2412 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2414 # Some flags need to be propagated to the compiler or linker for good
2415 # libtool support.
2416 case $host in
2417 *-*-irix6*)
2418 # Find out which ABI we are using.
2419 echo '#line 2420 "configure"' > conftest.$ac_ext
2420 if { (eval echo configure:2421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2421 if test "$lt_cv_prog_gnu_ld" = yes; then
2422 case `/usr/bin/file conftest.$ac_objext` in
2423 *32-bit*)
2424 LD="${LD-ld} -melf32bsmip"
2426 *N32*)
2427 LD="${LD-ld} -melf32bmipn32"
2429 *64-bit*)
2430 LD="${LD-ld} -melf64bmip"
2432 esac
2433 else
2434 case `/usr/bin/file conftest.$ac_objext` in
2435 *32-bit*)
2436 LD="${LD-ld} -32"
2438 *N32*)
2439 LD="${LD-ld} -n32"
2441 *64-bit*)
2442 LD="${LD-ld} -64"
2444 esac
2447 rm -rf conftest*
2450 ia64-*-hpux*)
2451 # Find out which ABI we are using.
2452 echo 'int i;' > conftest.$ac_ext
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 case "`/usr/bin/file conftest.o`" in
2455 *ELF-32*)
2456 HPUX_IA64_MODE="32"
2458 *ELF-64*)
2459 HPUX_IA64_MODE="64"
2461 esac
2463 rm -rf conftest*
2466 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2467 # Find out which ABI we are using.
2468 echo 'int i;' > conftest.$ac_ext
2469 if { (eval echo configure:2470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2470 case "`/usr/bin/file conftest.o`" in
2471 *32-bit*)
2472 case $host in
2473 x86_64-*linux*)
2474 LD="${LD-ld} -m elf_i386"
2476 ppc64-*linux*|powerpc64-*linux*)
2477 LD="${LD-ld} -m elf32ppclinux"
2479 s390x-*linux*)
2480 LD="${LD-ld} -m elf_s390"
2482 sparc64-*linux*)
2483 LD="${LD-ld} -m elf32_sparc"
2485 esac
2487 *64-bit*)
2488 case $host in
2489 x86_64-*linux*)
2490 LD="${LD-ld} -m elf_x86_64"
2492 ppc*-*linux*|powerpc*-*linux*)
2493 LD="${LD-ld} -m elf64ppc"
2495 s390*-*linux*)
2496 LD="${LD-ld} -m elf64_s390"
2498 sparc*-*linux*)
2499 LD="${LD-ld} -m elf64_sparc"
2501 esac
2503 esac
2505 rm -rf conftest*
2508 *-*-sco3.2v5*)
2509 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2510 SAVE_CFLAGS="$CFLAGS"
2511 CFLAGS="$CFLAGS -belf"
2512 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2513 echo "configure:2514: checking whether the C compiler needs -belf" >&5
2514 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2516 else
2518 ac_ext=c
2519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2523 cross_compiling=$ac_cv_prog_cc_cross
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2529 int main() {
2531 ; return 0; }
2533 if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2534 rm -rf conftest*
2535 lt_cv_cc_needs_belf=yes
2536 else
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2539 rm -rf conftest*
2540 lt_cv_cc_needs_belf=no
2542 rm -f conftest*
2543 ac_ext=c
2544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2548 cross_compiling=$ac_cv_prog_cc_cross
2552 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2553 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2554 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2555 CFLAGS="$SAVE_CFLAGS"
2560 esac
2562 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2563 echo "configure:2564: checking how to run the C++ preprocessor" >&5
2564 if test -z "$CXXCPP"; then
2565 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2567 else
2568 ac_ext=C
2569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2570 ac_cpp='$CXXCPP $CPPFLAGS'
2571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2573 cross_compiling=$ac_cv_prog_cxx_cross
2574 CXXCPP="${CXX-g++} -E"
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 #include <stdlib.h>
2580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2581 { (eval echo configure:2582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2583 if test -z "$ac_err"; then
2585 else
2586 echo "$ac_err" >&5
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2589 rm -rf conftest*
2590 CXXCPP=/lib/cpp
2592 rm -f conftest*
2593 ac_cv_prog_CXXCPP="$CXXCPP"
2594 ac_ext=c
2595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2599 cross_compiling=$ac_cv_prog_cc_cross
2602 CXXCPP="$ac_cv_prog_CXXCPP"
2603 echo "$ac_t""$CXXCPP" 1>&6
2606 # Save cache, so that ltconfig can load it
2607 cat > confcache <<\EOF
2608 # This file is a shell script that caches the results of configure
2609 # tests run on this system so they can be shared between configure
2610 # scripts and configure runs. It is not useful on other systems.
2611 # If it contains results you don't want to keep, you may remove or edit it.
2613 # By default, configure uses ./config.cache as the cache file,
2614 # creating it if it does not exist already. You can give configure
2615 # the --cache-file=FILE option to use a different cache file; that is
2616 # what configure does when it calls configure scripts in
2617 # subdirectories, so they share the cache.
2618 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2619 # config.status only pays attention to the cache file if you give it the
2620 # --recheck option to rerun configure.
2623 # The following way of writing the cache mishandles newlines in values,
2624 # but we know of no workaround that is simple, portable, and efficient.
2625 # So, don't put newlines in cache variables' values.
2626 # Ultrix sh set writes to stderr and can't be redirected directly,
2627 # and sets the high bit in the cache file unless we assign to the vars.
2628 (set) 2>&1 |
2629 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2630 *ac_space=\ *)
2631 # `set' does not quote correctly, so add quotes (double-quote substitution
2632 # turns \\\\ into \\, and sed turns \\ into \).
2633 sed -n \
2634 -e "s/'/'\\\\''/g" \
2635 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2638 # `set' quotes correctly as required by POSIX, so do not add quotes.
2639 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2641 esac >> confcache
2642 if cmp -s $cache_file confcache; then
2644 else
2645 if test -w $cache_file; then
2646 echo "updating cache $cache_file"
2647 cat confcache > $cache_file
2648 else
2649 echo "not updating unwritable cache $cache_file"
2652 rm -f confcache
2655 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2656 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2657 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2658 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2659 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2660 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2661 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2662 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2663 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2664 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2666 # Reload cache, that may have been modified by ltconfig
2667 if test -r "$cache_file"; then
2668 echo "loading cache $cache_file"
2669 . $cache_file
2670 else
2671 echo "creating cache $cache_file"
2672 > $cache_file
2676 # This can be used to rebuild libtool when needed
2677 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2679 # Always use our own libtool.
2680 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2682 # Redirect the config.log output again, so that the ltconfig log is not
2683 # clobbered by the next message.
2684 exec 5>>./config.log
2688 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2689 lt_save_CC="$CC"
2690 lt_save_CFLAGS="$CFLAGS"
2691 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2692 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2693 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2694 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2695 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2696 deplibs_check_method="$deplibs_check_method" \
2697 file_magic_cmd="$file_magic_cmd" \
2698 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2699 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2700 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2701 CC="$lt_save_CC"
2702 CFLAGS="$lt_save_CFLAGS"
2704 # Redirect the config.log output again, so that the ltconfig log is not
2705 # clobbered by the next message.
2706 exec 5>>./config.log
2713 subdirs="$DIRLTDL"
2716 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2717 COMPPATH=.
2718 else
2719 COMPPATH=..
2725 if test -d $srcdir/testsuite; then
2726 TESTSUBDIR_TRUE=
2727 TESTSUBDIR_FALSE='#'
2728 else
2729 TESTSUBDIR_TRUE='#'
2730 TESTSUBDIR_FALSE=
2733 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2734 if test "${enable_getenv_properties+set}" = set; then
2735 enableval="$enable_getenv_properties"
2740 if test -z "$enable_getenv_properties"; then
2741 enable_getenv_properties=${enable_getenv_properties_default-yes}
2743 if test "$enable_getenv_properties" = no; then
2744 cat >> confdefs.h <<\EOF
2745 #define DISABLE_GETENV_PROPERTIES 1
2750 if test -z "$enable_main_args"; then
2751 enable_main_args=${enable_main_args_default-yes}
2753 if test "$enable_main_args" = no; then
2754 cat >> confdefs.h <<\EOF
2755 #define DISABLE_MAIN_ARGS 1
2761 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2762 if test "${enable_hash_synchronization+set}" = set; then
2763 enableval="$enable_hash_synchronization"
2768 if test -z "$enable_hash_synchronization"; then
2769 enable_hash_synchronization=$enable_hash_synchronization_default
2772 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2773 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2774 if test "${enable_libgcj_multifile+set}" = set; then
2775 enableval="$enable_libgcj_multifile"
2776 case "${enableval}" in
2777 yes) enable_libgcj_multifile=yes ;;
2778 no) enable_libgcj_multifile=no ;;
2779 *) { echo "configure: error: bad value ${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2780 esac
2781 else
2782 enable_libgcj_multifile=no
2787 if test "$enable_libgcj_multifile" = yes; then
2788 ONESTEP_TRUE=
2789 ONESTEP_FALSE='#'
2790 else
2791 ONESTEP_TRUE='#'
2792 ONESTEP_FALSE=
2795 # What is the native OS API for MinGW?
2796 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
2797 if test "${with_win32_nlsapi+set}" = set; then
2798 withval="$with_win32_nlsapi"
2800 case "${withval}" in
2801 ansi) with_win32_nlsapi=ansi ;;
2802 unicows) with_win32_nlsapi=unicows ;;
2803 unicode) with_win32_nlsapi=unicode ;;
2804 *) { echo "configure: error: Bad value ${withval} for --with-win32-nlsapi." 1>&2; exit 1; } ;;
2805 esac
2806 else
2807 with_win32_nlsapi=ansi
2811 case "${with_win32_nlsapi}" in
2812 unicows | unicode)
2813 cat >> confdefs.h <<\EOF
2814 #define MINGW_LIBGCJ_UNICODE 1
2818 esac
2820 if test "${slow_pthread_self}" = "yes"; then
2821 cat >> confdefs.h <<\EOF
2822 #define SLOW_PTHREAD_SELF 1
2828 LIBGCJDEBUG="false"
2830 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2831 if test "${enable_libgcj_debug+set}" = set; then
2832 enableval="$enable_libgcj_debug"
2833 if test "$enable_libgcj_debug" = yes; then
2834 cat >> confdefs.h <<\EOF
2835 #define DEBUG 1
2838 LIBGCJDEBUG="true"
2843 # Check whether --enable-interpreter or --disable-interpreter was given.
2844 if test "${enable_interpreter+set}" = set; then
2845 enableval="$enable_interpreter"
2846 if test "$enable_interpreter" = yes; then
2847 # This can also be set in configure.host.
2848 libgcj_interpreter=yes
2849 elif test "$enable_interpreter" = no; then
2850 libgcj_interpreter=no
2855 if test "$libgcj_interpreter" = yes; then
2856 cat >> confdefs.h <<\EOF
2857 #define INTERPRETER 1
2861 INTERPRETER="$libgcj_interpreter"
2864 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2865 echo "configure:2866: checking for exception model to use" >&5
2867 ac_ext=C
2868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2872 cross_compiling=$ac_cv_prog_cxx_cross
2874 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2875 if test "${enable_sjlj_exceptions+set}" = set; then
2876 enableval="$enable_sjlj_exceptions"
2878 else
2879 cat > conftest.$ac_ext << EOF
2880 #line 2881 "configure"
2881 struct S { ~S(); };
2882 void bar();
2883 void foo()
2885 S s;
2886 bar();
2889 old_CXXFLAGS="$CXXFLAGS"
2890 CXXFLAGS=-S
2891 if { (eval echo configure:2892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2892 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2893 enable_sjlj_exceptions=yes
2894 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2895 enable_sjlj_exceptions=no
2898 CXXFLAGS="$old_CXXFLAGS"
2899 rm -f conftest*
2902 if test x$enable_sjlj_exceptions = xyes; then
2903 cat >> confdefs.h <<\EOF
2904 #define SJLJ_EXCEPTIONS 1
2907 ac_exception_model_name=sjlj
2908 elif test x$enable_sjlj_exceptions = xno; then
2909 ac_exception_model_name="call frame"
2910 else
2911 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2913 ac_ext=c
2914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2918 cross_compiling=$ac_cv_prog_cc_cross
2920 echo "$ac_t""$ac_exception_model_name" 1>&6
2922 # If we are non using SJLJ exceptions, and this host does not have support
2923 # for unwinding from a signal handler, enable checked dereferences and divides.
2924 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2925 CHECKREFSPEC=-fcheck-references
2926 DIVIDESPEC=-fuse-divide-subroutine
2927 EXCEPTIONSPEC=
2930 # Check whether --enable-java-net or --disable-java-net was given.
2931 if test "${enable_java_net+set}" = set; then
2932 enableval="$enable_java_net"
2937 if test -z "$enable_java_net"; then
2938 enable_java_net=${enable_java_net_default-yes}
2940 if test "$enable_java_net" = no; then
2941 cat >> confdefs.h <<\EOF
2942 #define DISABLE_JAVA_NET 1
2947 # Check whether --with-libffi or --without-libffi was given.
2948 if test "${with_libffi+set}" = set; then
2949 withval="$with_libffi"
2951 else
2952 with_libffi=${with_libffi_default-yes}
2956 LIBFFI=
2957 LIBFFIINCS=
2958 if test "$with_libffi" != no; then
2959 cat >> confdefs.h <<\EOF
2960 #define USE_LIBFFI 1
2963 LIBFFI=../libffi/libffi_convenience.la
2964 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2969 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2970 if test "${enable_jvmpi+set}" = set; then
2971 enableval="$enable_jvmpi"
2976 if test "$enable_jvmpi" != no; then
2977 cat >> confdefs.h <<\EOF
2978 #define ENABLE_JVMPI 1
2983 TARGET_ECOS=${PROCESS-"no"}
2984 # Check whether --with-ecos or --without-ecos was given.
2985 if test "${with_ecos+set}" = set; then
2986 withval="$with_ecos"
2987 TARGET_ECOS="$with_ecos"
2992 EXTRA_CC_FILES=
2995 PLATFORMOBJS=
2996 case "$TARGET_ECOS" in
2997 no) case "$host" in
2998 *mingw*)
2999 PLATFORM=Win32
3000 PLATFORMNET=Win32
3001 PLATFORMOBJS=win32.lo
3002 PLATFORMH=win32.h
3004 echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
3005 echo "configure:3006: checking whether 'ld' is at least 2.13" >&5
3006 LD_PROG=`$CC --print-prog-name=ld`
3007 LD_VERSION=`$LD_PROG --version`
3008 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3009 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3010 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3011 LD_OK="ok"
3012 else
3013 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3014 LD_OK="ok"
3017 if test "x$LD_OK" != x; then
3018 echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3019 else
3020 echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3021 echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
3022 cat >> confdefs.h <<\EOF
3023 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3029 PLATFORM=Posix
3030 PLATFORMNET=Posix
3031 PLATFORMOBJS=posix.lo
3032 PLATFORMH=posix.h
3034 esac
3037 PLATFORM=Ecos
3038 PLATFORMNET=NoNet
3039 cat >> confdefs.h <<\EOF
3040 #define ECOS 1
3043 PLATFORMOBJS=posix.lo
3044 PLATFORMH=posix.h
3046 esac
3050 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3051 echo "configure:3052: checking how to run the C preprocessor" >&5
3052 # On Suns, sometimes $CPP names a directory.
3053 if test -n "$CPP" && test -d "$CPP"; then
3054 CPP=
3056 if test -z "$CPP"; then
3057 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3059 else
3060 # This must be in double quotes, not single quotes, because CPP may get
3061 # substituted into the Makefile and "${CC-cc}" will confuse make.
3062 CPP="${CC-cc} -E"
3063 # On the NeXT, cc -E runs the code through the compiler's parser,
3064 # not just through cpp.
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 #include <assert.h>
3069 Syntax Error
3071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3072 { (eval echo configure:3073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3074 if test -z "$ac_err"; then
3076 else
3077 echo "$ac_err" >&5
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3080 rm -rf conftest*
3081 CPP="${CC-cc} -E -traditional-cpp"
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3085 #include <assert.h>
3086 Syntax Error
3088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3089 { (eval echo configure:3090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3091 if test -z "$ac_err"; then
3093 else
3094 echo "$ac_err" >&5
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 rm -rf conftest*
3098 CPP="${CC-cc} -nologo -E"
3099 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3102 #include <assert.h>
3103 Syntax Error
3105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3106 { (eval echo configure:3107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3108 if test -z "$ac_err"; then
3110 else
3111 echo "$ac_err" >&5
3112 echo "configure: failed program was:" >&5
3113 cat conftest.$ac_ext >&5
3114 rm -rf conftest*
3115 CPP=/lib/cpp
3117 rm -f conftest*
3119 rm -f conftest*
3121 rm -f conftest*
3122 ac_cv_prog_CPP="$CPP"
3124 CPP="$ac_cv_prog_CPP"
3125 else
3126 ac_cv_prog_CPP="$CPP"
3128 echo "$ac_t""$CPP" 1>&6
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 #include <stdint.h>
3135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3136 egrep "uint32_t" >/dev/null 2>&1; then
3137 rm -rf conftest*
3138 cat >> confdefs.h <<\EOF
3139 #define HAVE_INT32_DEFINED 1
3143 rm -f conftest*
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 #include <inttypes.h>
3150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3151 egrep "uint32_t" >/dev/null 2>&1; then
3152 rm -rf conftest*
3153 cat >> confdefs.h <<\EOF
3154 #define HAVE_INT32_DEFINED 1
3158 rm -f conftest*
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3163 #include <sys/types.h>
3165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3166 egrep "u_int32_t" >/dev/null 2>&1; then
3167 rm -rf conftest*
3168 cat >> confdefs.h <<\EOF
3169 #define HAVE_BSD_INT32_DEFINED 1
3173 rm -f conftest*
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3178 #include <sys/config.h>
3180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3181 egrep "u_int32_t" >/dev/null 2>&1; then
3182 rm -rf conftest*
3183 cat >> confdefs.h <<\EOF
3184 #define HAVE_BSD_INT32_DEFINED 1
3188 rm -f conftest*
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 #include <time.h>
3197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3198 egrep "mktime" >/dev/null 2>&1; then
3199 rm -rf conftest*
3200 cat >> confdefs.h <<\EOF
3201 #define HAVE_MKTIME 1
3205 rm -f conftest*
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 #include <time.h>
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213 egrep "localtime" >/dev/null 2>&1; then
3214 rm -rf conftest*
3215 cat >> confdefs.h <<\EOF
3216 #define HAVE_LOCALTIME 1
3220 rm -f conftest*
3223 test -d java || mkdir java
3224 test -d java/io || mkdir java/io
3225 test -d gnu || mkdir gnu
3228 test -d java/lang || mkdir java/lang
3232 test -d java/net || mkdir java/net
3236 test -d gnu/java || mkdir gnu/java
3237 test -d gnu/java/net || mkdir gnu/java/net
3241 test -d gnu/java/nio || mkdir gnu/java/nio
3244 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
3247 case "${host}" in
3248 *mingw*)
3249 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3250 if test "${with_win32_nlsapi}" = "unicows"; then
3251 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3255 SYSTEMSPEC=
3257 esac
3260 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3263 # Check whether --with-system-zlib or --without-system-zlib was given.
3264 if test "${with_system_zlib+set}" = set; then
3265 withval="$with_system_zlib"
3269 ZLIBSPEC=
3271 ZLIBTESTSPEC=
3274 # If we find X, set shell vars x_includes and x_libraries to the
3275 # paths, otherwise set no_x=yes.
3276 # Uses ac_ vars as temps to allow command line to override cache and checks.
3277 # --without-x overrides everything else, but does not touch the cache.
3278 echo $ac_n "checking for X""... $ac_c" 1>&6
3279 echo "configure:3280: checking for X" >&5
3281 # Check whether --with-x or --without-x was given.
3282 if test "${with_x+set}" = set; then
3283 withval="$with_x"
3287 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3288 if test "x$with_x" = xno; then
3289 # The user explicitly disabled X.
3290 have_x=disabled
3291 else
3292 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3293 # Both variables are already set.
3294 have_x=yes
3295 else
3296 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3298 else
3299 # One or both of the vars are not set, and there is no cached value.
3300 ac_x_includes=NO ac_x_libraries=NO
3301 rm -fr conftestdir
3302 if mkdir conftestdir; then
3303 cd conftestdir
3304 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3305 cat > Imakefile <<'EOF'
3306 acfindx:
3307 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3309 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3310 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3311 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3312 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3313 for ac_extension in a so sl; do
3314 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3315 test -f $ac_im_libdir/libX11.$ac_extension; then
3316 ac_im_usrlibdir=$ac_im_libdir; break
3318 done
3319 # Screen out bogus values from the imake configuration. They are
3320 # bogus both because they are the default anyway, and because
3321 # using them would break gcc on systems where it needs fixed includes.
3322 case "$ac_im_incroot" in
3323 /usr/include) ;;
3324 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3325 esac
3326 case "$ac_im_usrlibdir" in
3327 /usr/lib | /lib) ;;
3328 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3329 esac
3331 cd ..
3332 rm -fr conftestdir
3335 if test "$ac_x_includes" = NO; then
3336 # Guess where to find include files, by looking for this one X11 .h file.
3337 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3339 # First, try using that file with no special directory specified.
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 #include <$x_direct_test_include>
3345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3346 { (eval echo configure:3347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3348 if test -z "$ac_err"; then
3349 rm -rf conftest*
3350 # We can compile using X headers with no special include directory.
3351 ac_x_includes=
3352 else
3353 echo "$ac_err" >&5
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 rm -rf conftest*
3357 # Look for the header file in a standard set of common directories.
3358 # Check X11 before X11Rn because it is often a symlink to the current release.
3359 for ac_dir in \
3360 /usr/X11/include \
3361 /usr/X11R6/include \
3362 /usr/X11R5/include \
3363 /usr/X11R4/include \
3365 /usr/include/X11 \
3366 /usr/include/X11R6 \
3367 /usr/include/X11R5 \
3368 /usr/include/X11R4 \
3370 /usr/local/X11/include \
3371 /usr/local/X11R6/include \
3372 /usr/local/X11R5/include \
3373 /usr/local/X11R4/include \
3375 /usr/local/include/X11 \
3376 /usr/local/include/X11R6 \
3377 /usr/local/include/X11R5 \
3378 /usr/local/include/X11R4 \
3380 /usr/X386/include \
3381 /usr/x386/include \
3382 /usr/XFree86/include/X11 \
3384 /usr/include \
3385 /usr/local/include \
3386 /usr/unsupported/include \
3387 /usr/athena/include \
3388 /usr/local/x11r5/include \
3389 /usr/lpp/Xamples/include \
3391 /usr/openwin/include \
3392 /usr/openwin/share/include \
3395 if test -r "$ac_dir/$x_direct_test_include"; then
3396 ac_x_includes=$ac_dir
3397 break
3399 done
3401 rm -f conftest*
3402 fi # $ac_x_includes = NO
3404 if test "$ac_x_libraries" = NO; then
3405 # Check for the libraries.
3407 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3408 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3410 # See if we find them without any special options.
3411 # Don't add to $LIBS permanently.
3412 ac_save_LIBS="$LIBS"
3413 LIBS="-l$x_direct_test_library $LIBS"
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3418 int main() {
3419 ${x_direct_test_function}()
3420 ; return 0; }
3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3423 rm -rf conftest*
3424 LIBS="$ac_save_LIBS"
3425 # We can link X programs with no special library path.
3426 ac_x_libraries=
3427 else
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3430 rm -rf conftest*
3431 LIBS="$ac_save_LIBS"
3432 # First see if replacing the include by lib works.
3433 # Check X11 before X11Rn because it is often a symlink to the current release.
3434 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3435 /usr/X11/lib \
3436 /usr/X11R6/lib \
3437 /usr/X11R5/lib \
3438 /usr/X11R4/lib \
3440 /usr/lib/X11 \
3441 /usr/lib/X11R6 \
3442 /usr/lib/X11R5 \
3443 /usr/lib/X11R4 \
3445 /usr/local/X11/lib \
3446 /usr/local/X11R6/lib \
3447 /usr/local/X11R5/lib \
3448 /usr/local/X11R4/lib \
3450 /usr/local/lib/X11 \
3451 /usr/local/lib/X11R6 \
3452 /usr/local/lib/X11R5 \
3453 /usr/local/lib/X11R4 \
3455 /usr/X386/lib \
3456 /usr/x386/lib \
3457 /usr/XFree86/lib/X11 \
3459 /usr/lib \
3460 /usr/local/lib \
3461 /usr/unsupported/lib \
3462 /usr/athena/lib \
3463 /usr/local/x11r5/lib \
3464 /usr/lpp/Xamples/lib \
3465 /lib/usr/lib/X11 \
3467 /usr/openwin/lib \
3468 /usr/openwin/share/lib \
3471 for ac_extension in a so sl; do
3472 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3473 ac_x_libraries=$ac_dir
3474 break 2
3476 done
3477 done
3479 rm -f conftest*
3480 fi # $ac_x_libraries = NO
3482 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3483 # Didn't find X anywhere. Cache the known absence of X.
3484 ac_cv_have_x="have_x=no"
3485 else
3486 # Record where we found X for the cache.
3487 ac_cv_have_x="have_x=yes \
3488 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3492 eval "$ac_cv_have_x"
3493 fi # $with_x != no
3495 if test "$have_x" != yes; then
3496 echo "$ac_t""$have_x" 1>&6
3497 no_x=yes
3498 else
3499 # If each of the values was on the command line, it overrides each guess.
3500 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3501 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3502 # Update the cache value to reflect the command line values.
3503 ac_cv_have_x="have_x=yes \
3504 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3505 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3508 if test "$no_x" = yes; then
3509 # Not all programs may use this symbol, but it does not hurt to define it.
3510 cat >> confdefs.h <<\EOF
3511 #define X_DISPLAY_MISSING 1
3514 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3515 else
3516 if test -n "$x_includes"; then
3517 X_CFLAGS="$X_CFLAGS -I$x_includes"
3520 # It would also be nice to do this for all -L options, not just this one.
3521 if test -n "$x_libraries"; then
3522 X_LIBS="$X_LIBS -L$x_libraries"
3523 # For Solaris; some versions of Sun CC require a space after -R and
3524 # others require no space. Words are not sufficient . . . .
3525 case "`(uname -sr) 2>/dev/null`" in
3526 "SunOS 5"*)
3527 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3528 echo "configure:3529: checking whether -R must be followed by a space" >&5
3529 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3534 int main() {
3536 ; return 0; }
3538 if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539 rm -rf conftest*
3540 ac_R_nospace=yes
3541 else
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3544 rm -rf conftest*
3545 ac_R_nospace=no
3547 rm -f conftest*
3548 if test $ac_R_nospace = yes; then
3549 echo "$ac_t""no" 1>&6
3550 X_LIBS="$X_LIBS -R$x_libraries"
3551 else
3552 LIBS="$ac_xsave_LIBS -R $x_libraries"
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3557 int main() {
3559 ; return 0; }
3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3562 rm -rf conftest*
3563 ac_R_space=yes
3564 else
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3567 rm -rf conftest*
3568 ac_R_space=no
3570 rm -f conftest*
3571 if test $ac_R_space = yes; then
3572 echo "$ac_t""yes" 1>&6
3573 X_LIBS="$X_LIBS -R $x_libraries"
3574 else
3575 echo "$ac_t""neither works" 1>&6
3578 LIBS="$ac_xsave_LIBS"
3579 esac
3582 # Check for system-dependent libraries X programs must link with.
3583 # Do this before checking for the system-independent R6 libraries
3584 # (-lICE), since we may need -lsocket or whatever for X linking.
3586 if test "$ISC" = yes; then
3587 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3588 else
3589 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3590 # libraries were built with DECnet support. And karl@cs.umb.edu says
3591 # the Alpha needs dnet_stub (dnet does not exist).
3592 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3593 echo "configure:3594: checking for dnet_ntoa in -ldnet" >&5
3594 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3597 else
3598 ac_save_LIBS="$LIBS"
3599 LIBS="-ldnet $LIBS"
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* Override any gcc2 internal prototype to avoid an error. */
3604 /* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3606 char dnet_ntoa();
3608 int main() {
3609 dnet_ntoa()
3610 ; return 0; }
3612 if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613 rm -rf conftest*
3614 eval "ac_cv_lib_$ac_lib_var=yes"
3615 else
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3618 rm -rf conftest*
3619 eval "ac_cv_lib_$ac_lib_var=no"
3621 rm -f conftest*
3622 LIBS="$ac_save_LIBS"
3625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3626 echo "$ac_t""yes" 1>&6
3627 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3628 else
3629 echo "$ac_t""no" 1>&6
3632 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3633 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3634 echo "configure:3635: checking for dnet_ntoa in -ldnet_stub" >&5
3635 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3638 else
3639 ac_save_LIBS="$LIBS"
3640 LIBS="-ldnet_stub $LIBS"
3641 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 /* Override any gcc2 internal prototype to avoid an error. */
3645 /* We use char because int might match the return type of a gcc2
3646 builtin and then its argument prototype would still apply. */
3647 char dnet_ntoa();
3649 int main() {
3650 dnet_ntoa()
3651 ; return 0; }
3653 if { (eval echo configure:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3654 rm -rf conftest*
3655 eval "ac_cv_lib_$ac_lib_var=yes"
3656 else
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3659 rm -rf conftest*
3660 eval "ac_cv_lib_$ac_lib_var=no"
3662 rm -f conftest*
3663 LIBS="$ac_save_LIBS"
3666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3669 else
3670 echo "$ac_t""no" 1>&6
3675 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3676 # to get the SysV transport functions.
3677 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3678 # needs -lnsl.
3679 # The nsl library prevents programs from opening the X display
3680 # on Irix 5.2, according to dickey@clark.net.
3681 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3682 echo "configure:3683: checking for gethostbyname" >&5
3683 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3685 else
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3689 /* System header to define __stub macros and hopefully few prototypes,
3690 which can conflict with char gethostbyname(); below. */
3691 #include <assert.h>
3692 /* Override any gcc2 internal prototype to avoid an error. */
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3695 char gethostbyname();
3697 int main() {
3699 /* The GNU C library defines this for functions which it implements
3700 to always fail with ENOSYS. Some functions are actually named
3701 something starting with __ and the normal name is an alias. */
3702 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3703 choke me
3704 #else
3705 gethostbyname();
3706 #endif
3708 ; return 0; }
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3711 rm -rf conftest*
3712 eval "ac_cv_func_gethostbyname=yes"
3713 else
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3716 rm -rf conftest*
3717 eval "ac_cv_func_gethostbyname=no"
3719 rm -f conftest*
3722 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3723 echo "$ac_t""yes" 1>&6
3725 else
3726 echo "$ac_t""no" 1>&6
3729 if test $ac_cv_func_gethostbyname = no; then
3730 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3731 echo "configure:3732: checking for gethostbyname in -lnsl" >&5
3732 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3735 else
3736 ac_save_LIBS="$LIBS"
3737 LIBS="-lnsl $LIBS"
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3741 /* Override any gcc2 internal prototype to avoid an error. */
3742 /* We use char because int might match the return type of a gcc2
3743 builtin and then its argument prototype would still apply. */
3744 char gethostbyname();
3746 int main() {
3747 gethostbyname()
3748 ; return 0; }
3750 if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 rm -rf conftest*
3752 eval "ac_cv_lib_$ac_lib_var=yes"
3753 else
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 rm -rf conftest*
3757 eval "ac_cv_lib_$ac_lib_var=no"
3759 rm -f conftest*
3760 LIBS="$ac_save_LIBS"
3763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3764 echo "$ac_t""yes" 1>&6
3765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3766 else
3767 echo "$ac_t""no" 1>&6
3772 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3773 # socket/setsockopt and other routines are undefined under SCO ODT
3774 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3775 # on later versions), says simon@lia.di.epfl.ch: it contains
3776 # gethostby* variants that don't use the nameserver (or something).
3777 # -lsocket must be given before -lnsl if both are needed.
3778 # We assume that if connect needs -lnsl, so does gethostbyname.
3779 echo $ac_n "checking for connect""... $ac_c" 1>&6
3780 echo "configure:3781: checking for connect" >&5
3781 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3783 else
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 /* System header to define __stub macros and hopefully few prototypes,
3788 which can conflict with char connect(); below. */
3789 #include <assert.h>
3790 /* Override any gcc2 internal prototype to avoid an error. */
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3793 char connect();
3795 int main() {
3797 /* The GNU C library defines this for functions which it implements
3798 to always fail with ENOSYS. Some functions are actually named
3799 something starting with __ and the normal name is an alias. */
3800 #if defined (__stub_connect) || defined (__stub___connect)
3801 choke me
3802 #else
3803 connect();
3804 #endif
3806 ; return 0; }
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809 rm -rf conftest*
3810 eval "ac_cv_func_connect=yes"
3811 else
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 eval "ac_cv_func_connect=no"
3817 rm -f conftest*
3820 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3823 else
3824 echo "$ac_t""no" 1>&6
3827 if test $ac_cv_func_connect = no; then
3828 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3829 echo "configure:3830: checking for connect in -lsocket" >&5
3830 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3833 else
3834 ac_save_LIBS="$LIBS"
3835 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3842 char connect();
3844 int main() {
3845 connect()
3846 ; return 0; }
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3849 rm -rf conftest*
3850 eval "ac_cv_lib_$ac_lib_var=yes"
3851 else
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3854 rm -rf conftest*
3855 eval "ac_cv_lib_$ac_lib_var=no"
3857 rm -f conftest*
3858 LIBS="$ac_save_LIBS"
3861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3862 echo "$ac_t""yes" 1>&6
3863 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3864 else
3865 echo "$ac_t""no" 1>&6
3870 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3871 echo $ac_n "checking for remove""... $ac_c" 1>&6
3872 echo "configure:3873: checking for remove" >&5
3873 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3875 else
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 /* System header to define __stub macros and hopefully few prototypes,
3880 which can conflict with char remove(); below. */
3881 #include <assert.h>
3882 /* Override any gcc2 internal prototype to avoid an error. */
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3885 char remove();
3887 int main() {
3889 /* The GNU C library defines this for functions which it implements
3890 to always fail with ENOSYS. Some functions are actually named
3891 something starting with __ and the normal name is an alias. */
3892 #if defined (__stub_remove) || defined (__stub___remove)
3893 choke me
3894 #else
3895 remove();
3896 #endif
3898 ; return 0; }
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3901 rm -rf conftest*
3902 eval "ac_cv_func_remove=yes"
3903 else
3904 echo "configure: failed program was:" >&5
3905 cat conftest.$ac_ext >&5
3906 rm -rf conftest*
3907 eval "ac_cv_func_remove=no"
3909 rm -f conftest*
3912 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3913 echo "$ac_t""yes" 1>&6
3915 else
3916 echo "$ac_t""no" 1>&6
3919 if test $ac_cv_func_remove = no; then
3920 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3921 echo "configure:3922: checking for remove in -lposix" >&5
3922 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3925 else
3926 ac_save_LIBS="$LIBS"
3927 LIBS="-lposix $LIBS"
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3934 char remove();
3936 int main() {
3937 remove()
3938 ; return 0; }
3940 if { (eval echo configure:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3941 rm -rf conftest*
3942 eval "ac_cv_lib_$ac_lib_var=yes"
3943 else
3944 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3946 rm -rf conftest*
3947 eval "ac_cv_lib_$ac_lib_var=no"
3949 rm -f conftest*
3950 LIBS="$ac_save_LIBS"
3953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3954 echo "$ac_t""yes" 1>&6
3955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3956 else
3957 echo "$ac_t""no" 1>&6
3962 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3963 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3964 echo "configure:3965: checking for shmat" >&5
3965 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3967 else
3968 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3971 /* System header to define __stub macros and hopefully few prototypes,
3972 which can conflict with char shmat(); below. */
3973 #include <assert.h>
3974 /* Override any gcc2 internal prototype to avoid an error. */
3975 /* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3977 char shmat();
3979 int main() {
3981 /* The GNU C library defines this for functions which it implements
3982 to always fail with ENOSYS. Some functions are actually named
3983 something starting with __ and the normal name is an alias. */
3984 #if defined (__stub_shmat) || defined (__stub___shmat)
3985 choke me
3986 #else
3987 shmat();
3988 #endif
3990 ; return 0; }
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3993 rm -rf conftest*
3994 eval "ac_cv_func_shmat=yes"
3995 else
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3998 rm -rf conftest*
3999 eval "ac_cv_func_shmat=no"
4001 rm -f conftest*
4004 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4005 echo "$ac_t""yes" 1>&6
4007 else
4008 echo "$ac_t""no" 1>&6
4011 if test $ac_cv_func_shmat = no; then
4012 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4013 echo "configure:4014: checking for shmat in -lipc" >&5
4014 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4017 else
4018 ac_save_LIBS="$LIBS"
4019 LIBS="-lipc $LIBS"
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4023 /* Override any gcc2 internal prototype to avoid an error. */
4024 /* We use char because int might match the return type of a gcc2
4025 builtin and then its argument prototype would still apply. */
4026 char shmat();
4028 int main() {
4029 shmat()
4030 ; return 0; }
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4033 rm -rf conftest*
4034 eval "ac_cv_lib_$ac_lib_var=yes"
4035 else
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 rm -rf conftest*
4039 eval "ac_cv_lib_$ac_lib_var=no"
4041 rm -f conftest*
4042 LIBS="$ac_save_LIBS"
4045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4048 else
4049 echo "$ac_t""no" 1>&6
4055 # Check for libraries that X11R6 Xt/Xaw programs need.
4056 ac_save_LDFLAGS="$LDFLAGS"
4057 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4058 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4059 # check for ICE first), but we must link in the order -lSM -lICE or
4060 # we get undefined symbols. So assume we have SM if we have ICE.
4061 # These have to be linked with before -lX11, unlike the other
4062 # libraries we check for below, so use a different variable.
4063 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4064 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4065 echo "configure:4066: checking for IceConnectionNumber in -lICE" >&5
4066 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4069 else
4070 ac_save_LIBS="$LIBS"
4071 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 /* Override any gcc2 internal prototype to avoid an error. */
4076 /* We use char because int might match the return type of a gcc2
4077 builtin and then its argument prototype would still apply. */
4078 char IceConnectionNumber();
4080 int main() {
4081 IceConnectionNumber()
4082 ; return 0; }
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4085 rm -rf conftest*
4086 eval "ac_cv_lib_$ac_lib_var=yes"
4087 else
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4090 rm -rf conftest*
4091 eval "ac_cv_lib_$ac_lib_var=no"
4093 rm -f conftest*
4094 LIBS="$ac_save_LIBS"
4097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4098 echo "$ac_t""yes" 1>&6
4099 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4100 else
4101 echo "$ac_t""no" 1>&6
4104 LDFLAGS="$ac_save_LDFLAGS"
4109 # Check whether --enable-java-awt or --disable-java-awt was given.
4110 if test "${enable_java_awt+set}" = set; then
4111 enableval="$enable_java_awt"
4116 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4117 use_xlib_awt=""
4118 use_gtk_awt=""
4119 # The default toolkit to use is the first one specified.
4120 TOOLKIT=
4123 for peer in $peerlibs ; do
4124 case $peer in
4125 xlib)
4126 if test "$no_x" = yes; then
4127 echo "*** xlib peers requested but no X library available" 1>&2
4128 exit 1
4129 else
4130 use_xlib_awt="yes"
4131 if test -z "$TOOLKIT"; then
4132 TOOLKIT=gnu.awt.xlib.XToolkit
4136 gtk)
4137 if test "$no_x" = yes; then
4138 echo "*** xlib peers requested but no X library available" 1>&2
4139 exit 1
4140 else
4141 use_gtk_awt=yes
4142 if test -z "$TOOLKIT"; then
4143 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4145 test -d jniinclude || mkdir jniinclude
4149 use_xlib_awt=
4150 use_gtk_awt=
4151 break
4154 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4155 exit 1
4156 esac
4157 done
4161 if test "$use_xlib_awt" = yes; then
4162 XLIB_AWT_TRUE=
4163 XLIB_AWT_FALSE='#'
4164 else
4165 XLIB_AWT_TRUE='#'
4166 XLIB_AWT_FALSE=
4170 if test "$use_gtk_awt" = yes; then
4171 GTK_AWT_TRUE=
4172 GTK_AWT_FALSE='#'
4173 else
4174 GTK_AWT_TRUE='#'
4175 GTK_AWT_FALSE=
4178 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4179 if test "${enable_gtk_cairo+set}" = set; then
4180 enableval="$enable_gtk_cairo"
4186 if test "x${enable_gtk_cairo}" = xyes; then
4187 GTK_CAIRO_TRUE=
4188 GTK_CAIRO_FALSE='#'
4189 else
4190 GTK_CAIRO_TRUE='#'
4191 GTK_CAIRO_FALSE=
4193 if test "x${enable_gtk_cairo}" = xyes
4194 then
4196 succeeded=no
4198 if test -z "$PKG_CONFIG"; then
4199 # Extract the first word of "pkg-config", so it can be a program name with args.
4200 set dummy pkg-config; ac_word=$2
4201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4202 echo "configure:4203: checking for $ac_word" >&5
4203 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4205 else
4206 case "$PKG_CONFIG" in
4208 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4210 ?:/*)
4211 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4215 ac_dummy="$PATH"
4216 for ac_dir in $ac_dummy; do
4217 test -z "$ac_dir" && ac_dir=.
4218 if test -f $ac_dir/$ac_word; then
4219 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4220 break
4222 done
4223 IFS="$ac_save_ifs"
4224 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4226 esac
4228 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4229 if test -n "$PKG_CONFIG"; then
4230 echo "$ac_t""$PKG_CONFIG" 1>&6
4231 else
4232 echo "$ac_t""no" 1>&6
4237 if test "$PKG_CONFIG" = "no" ; then
4238 echo "*** The pkg-config script could not be found. Make sure it is"
4239 echo "*** in your path, or set the PKG_CONFIG environment variable"
4240 echo "*** to the full path to pkg-config."
4241 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4242 else
4243 PKG_CONFIG_MIN_VERSION=0.9.0
4244 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4245 echo $ac_n "checking for cairo""... $ac_c" 1>&6
4246 echo "configure:4247: checking for cairo" >&5
4248 if $PKG_CONFIG --exists "cairo" ; then
4249 echo "$ac_t""yes" 1>&6
4250 succeeded=yes
4252 echo $ac_n "checking CAIRO_CFLAGS""... $ac_c" 1>&6
4253 echo "configure:4254: checking CAIRO_CFLAGS" >&5
4254 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
4255 echo "$ac_t""$CAIRO_CFLAGS" 1>&6
4257 echo $ac_n "checking CAIRO_LIBS""... $ac_c" 1>&6
4258 echo "configure:4259: checking CAIRO_LIBS" >&5
4259 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
4260 echo "$ac_t""$CAIRO_LIBS" 1>&6
4261 else
4262 CAIRO_CFLAGS=""
4263 CAIRO_LIBS=""
4264 ## If we have a custom action on failure, don't print errors, but
4265 ## do set a variable so people can do so.
4266 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
4267 echo $CAIRO_PKG_ERRORS
4272 else
4273 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4274 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4278 if test $succeeded = yes; then
4280 else
4281 { 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; }
4285 succeeded=no
4287 if test -z "$PKG_CONFIG"; then
4288 # Extract the first word of "pkg-config", so it can be a program name with args.
4289 set dummy pkg-config; ac_word=$2
4290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4291 echo "configure:4292: checking for $ac_word" >&5
4292 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4294 else
4295 case "$PKG_CONFIG" in
4297 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4299 ?:/*)
4300 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4304 ac_dummy="$PATH"
4305 for ac_dir in $ac_dummy; do
4306 test -z "$ac_dir" && ac_dir=.
4307 if test -f $ac_dir/$ac_word; then
4308 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4309 break
4311 done
4312 IFS="$ac_save_ifs"
4313 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4315 esac
4317 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4318 if test -n "$PKG_CONFIG"; then
4319 echo "$ac_t""$PKG_CONFIG" 1>&6
4320 else
4321 echo "$ac_t""no" 1>&6
4326 if test "$PKG_CONFIG" = "no" ; then
4327 echo "*** The pkg-config script could not be found. Make sure it is"
4328 echo "*** in your path, or set the PKG_CONFIG environment variable"
4329 echo "*** to the full path to pkg-config."
4330 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4331 else
4332 PKG_CONFIG_MIN_VERSION=0.9.0
4333 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4334 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
4335 echo "configure:4336: checking for pangoft2" >&5
4337 if $PKG_CONFIG --exists "pangoft2" ; then
4338 echo "$ac_t""yes" 1>&6
4339 succeeded=yes
4341 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
4342 echo "configure:4343: checking PANGOFT2_CFLAGS" >&5
4343 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
4344 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
4346 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
4347 echo "configure:4348: checking PANGOFT2_LIBS" >&5
4348 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
4349 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
4350 else
4351 PANGOFT2_CFLAGS=""
4352 PANGOFT2_LIBS=""
4353 ## If we have a custom action on failure, don't print errors, but
4354 ## do set a variable so people can do so.
4355 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
4356 echo $PANGOFT2_PKG_ERRORS
4361 else
4362 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4363 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4367 if test $succeeded = yes; then
4369 else
4370 { 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; }
4379 libsubdir=.libs
4381 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
4382 echo "configure:4383: checking for garbage collector to use" >&5
4383 # Check whether --enable-java-gc or --disable-java-gc was given.
4384 if test "${enable_java_gc+set}" = set; then
4385 enableval="$enable_java_gc"
4387 GC=$enableval
4388 else
4389 GC=boehm
4392 GCLIBS=
4393 GCINCS=
4394 GCDEPS=
4395 GCOBJS=
4396 GCSPEC=
4397 JC1GCSPEC=
4398 GCTESTSPEC=
4399 case "$GC" in
4400 boehm)
4401 echo "$ac_t""boehm" 1>&6
4402 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4403 JC1GCSPEC='-fuse-boehm-gc'
4404 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
4406 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4407 GCOBJS=boehm.lo
4408 GCHDR=boehm-gc.h
4409 cat >> confdefs.h <<\EOF
4410 #define HAVE_BOEHM_GC 1
4415 echo "$ac_t""none" 1>&6
4416 GCOBJS=nogc.lo
4417 GCHDR=no-gc.h
4420 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
4422 esac
4433 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4434 echo "configure:4435: checking for thread model used by GCC" >&5
4435 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4436 echo "$ac_t""$THREADS" 1>&6
4438 case "$THREADS" in
4439 no | none | single)
4440 THREADS=none
4442 posix | pthreads)
4443 THREADS=posix
4444 case "$host" in
4445 *-*-linux*)
4446 cat >> confdefs.h <<\EOF
4447 #define LINUX_THREADS 1
4451 esac
4453 win32)
4455 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4456 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
4459 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
4461 esac
4463 THREADCXXFLAGS=
4464 THREADLDFLAGS=
4465 THREADLIBS=
4466 THREADINCS=
4467 THREADDEPS=
4468 THREADOBJS=
4469 THREADH=
4470 THREADSPEC=
4471 case "$THREADS" in
4472 posix)
4473 case "$host" in
4474 *-*-cygwin*)
4475 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4478 *-*-freebsd[1234]*)
4480 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4481 # merely adds pthread_* functions) but it does have a -pthread switch
4482 # which is required at link-time to select -lc_r *instead* of -lc.
4483 THREADLDFLAGS=-pthread
4484 # Don't set THREADSPEC here as might be expected since -pthread is
4485 # not processed when found within a spec file, it must come from
4486 # the command line. For now, the user must provide the -pthread
4487 # switch to link code compiled with gcj. In future, consider adding
4488 # support for weak references to pthread_* functions ala gthr.h API.
4489 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4491 *-*-freebsd*)
4492 # FreeBSD 5 implements a model much closer to other modern UNIX
4493 # which support threads. However, it still does not support
4494 # -lpthread.
4495 THREADLDFLAGS=-pthread
4496 THREADSPEC=-lc_r
4498 alpha*-dec-osf*)
4499 THREADCXXFLAGS=-pthread
4500 # boehm-gc needs some functions from librt, so link that too.
4501 THREADLIBS='-lpthread -lrt'
4502 THREADSPEC='-lpthread -lrt'
4505 THREADLIBS=-lpthread
4506 THREADSPEC=-lpthread
4508 esac
4509 THREADOBJS=posix-threads.lo
4510 THREADH=posix-threads.h
4511 # MIT pthreads doesn't seem to have the mutexattr functions.
4512 # But for now we don't check for it. We just assume you aren't
4513 # using MIT pthreads.
4514 cat >> confdefs.h <<\EOF
4515 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4519 # If we're using the Boehm GC, then we happen to know that it
4520 # defines _REENTRANT, so we don't bother. Eww.
4521 if test "$GC" != boehm; then
4522 cat >> confdefs.h <<\EOF
4523 #define _REENTRANT 1
4527 cat >> confdefs.h <<\EOF
4528 #define _POSIX_PTHREAD_SEMANTICS 1
4533 win32)
4534 THREADOBJS=win32-threads.lo
4535 THREADH=win32-threads.h
4538 none)
4539 THREADOBJS=no-threads.lo
4540 THREADH=no-threads.h
4542 esac
4552 if test -d sysdep; then true; else mkdir sysdep; fi
4555 HASH_SYNC_SPEC=
4556 # Hash synchronization is only useful with posix threads right now.
4557 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
4558 HASH_SYNC_SPEC=-fhash-synchronization
4559 cat >> confdefs.h <<\EOF
4560 #define JV_HASH_SYNCHRONIZATION 1
4569 if test "$GCC" = yes; then
4570 USING_GCC_TRUE=
4571 USING_GCC_FALSE='#'
4572 else
4573 USING_GCC_TRUE='#'
4574 USING_GCC_FALSE=
4577 CANADIAN=no
4578 NULL_TARGET=no
4579 NATIVE=yes
4581 # We're in the tree with gcc, and need to include some of its headers.
4582 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4584 # Figure out where generated headers like libgcj-config.h get installed.
4585 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4586 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4587 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4588 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
4592 if test "x${with_newlib}" = "xyes"; then
4593 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4594 # may not work correctly, because the compiler may not be able to
4595 # link executables.
4597 # We assume newlib. This lets us hard-code the functions we know
4598 # we'll have.
4599 cat >> confdefs.h <<\EOF
4600 #define HAVE_MEMMOVE 1
4603 cat >> confdefs.h <<\EOF
4604 #define HAVE_MEMCPY 1
4607 cat >> confdefs.h <<\EOF
4608 #define HAVE_STRERROR 1
4611 cat >> confdefs.h <<\EOF
4612 #define HAVE_TIME 1
4615 cat >> confdefs.h <<\EOF
4616 #define HAVE_GMTIME_R 1
4619 cat >> confdefs.h <<\EOF
4620 #define HAVE_LOCALTIME_R 1
4623 cat >> confdefs.h <<\EOF
4624 #define HAVE_USLEEP_DECL 1
4627 cat >> confdefs.h <<\EOF
4628 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4631 cat >> confdefs.h <<\EOF
4632 #define HAVE_ALLOCA 1
4636 cat >> confdefs.h <<\EOF
4637 #define NO_GETUID 1
4640 PLATFORMNET=NoNet
4641 else
4642 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4645 echo "configure:4646: checking for $ac_func" >&5
4646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4648 else
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 /* System header to define __stub macros and hopefully few prototypes,
4653 which can conflict with char $ac_func(); below. */
4654 #include <assert.h>
4655 /* Override any gcc2 internal prototype to avoid an error. */
4656 /* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */
4658 char $ac_func();
4660 int main() {
4662 /* The GNU C library defines this for functions which it implements
4663 to always fail with ENOSYS. Some functions are actually named
4664 something starting with __ and the normal name is an alias. */
4665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4666 choke me
4667 #else
4668 $ac_func();
4669 #endif
4671 ; return 0; }
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4674 rm -rf conftest*
4675 eval "ac_cv_func_$ac_func=yes"
4676 else
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4679 rm -rf conftest*
4680 eval "ac_cv_func_$ac_func=no"
4682 rm -f conftest*
4685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4688 cat >> confdefs.h <<EOF
4689 #define $ac_tr_func 1
4692 else
4693 echo "$ac_t""no" 1>&6
4695 done
4697 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4700 echo "configure:4701: checking for $ac_func" >&5
4701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4703 else
4704 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4707 /* System header to define __stub macros and hopefully few prototypes,
4708 which can conflict with char $ac_func(); below. */
4709 #include <assert.h>
4710 /* Override any gcc2 internal prototype to avoid an error. */
4711 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4713 char $ac_func();
4715 int main() {
4717 /* The GNU C library defines this for functions which it implements
4718 to always fail with ENOSYS. Some functions are actually named
4719 something starting with __ and the normal name is an alias. */
4720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4721 choke me
4722 #else
4723 $ac_func();
4724 #endif
4726 ; return 0; }
4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 rm -rf conftest*
4730 eval "ac_cv_func_$ac_func=yes"
4731 else
4732 echo "configure: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4734 rm -rf conftest*
4735 eval "ac_cv_func_$ac_func=no"
4737 rm -f conftest*
4740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_func 1
4747 else
4748 echo "$ac_t""no" 1>&6
4750 done
4752 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4755 echo "configure:4756: checking for $ac_func" >&5
4756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4758 else
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 /* System header to define __stub macros and hopefully few prototypes,
4763 which can conflict with char $ac_func(); below. */
4764 #include <assert.h>
4765 /* Override any gcc2 internal prototype to avoid an error. */
4766 /* We use char because int might match the return type of a gcc2
4767 builtin and then its argument prototype would still apply. */
4768 char $ac_func();
4770 int main() {
4772 /* The GNU C library defines this for functions which it implements
4773 to always fail with ENOSYS. Some functions are actually named
4774 something starting with __ and the normal name is an alias. */
4775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4776 choke me
4777 #else
4778 $ac_func();
4779 #endif
4781 ; return 0; }
4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4784 rm -rf conftest*
4785 eval "ac_cv_func_$ac_func=yes"
4786 else
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4789 rm -rf conftest*
4790 eval "ac_cv_func_$ac_func=no"
4792 rm -f conftest*
4795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4796 echo "$ac_t""yes" 1>&6
4797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4798 cat >> confdefs.h <<EOF
4799 #define $ac_tr_func 1
4802 else
4803 echo "$ac_t""no" 1>&6
4805 done
4807 for ac_func in nl_langinfo setlocale
4809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4810 echo "configure:4811: checking for $ac_func" >&5
4811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4813 else
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* System header to define __stub macros and hopefully few prototypes,
4818 which can conflict with char $ac_func(); below. */
4819 #include <assert.h>
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4823 char $ac_func();
4825 int main() {
4827 /* The GNU C library defines this for functions which it implements
4828 to always fail with ENOSYS. Some functions are actually named
4829 something starting with __ and the normal name is an alias. */
4830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4831 choke me
4832 #else
4833 $ac_func();
4834 #endif
4836 ; return 0; }
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4839 rm -rf conftest*
4840 eval "ac_cv_func_$ac_func=yes"
4841 else
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4844 rm -rf conftest*
4845 eval "ac_cv_func_$ac_func=no"
4847 rm -f conftest*
4850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4853 cat >> confdefs.h <<EOF
4854 #define $ac_tr_func 1
4857 else
4858 echo "$ac_t""no" 1>&6
4860 done
4862 for ac_func in inet_aton inet_addr
4864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_func" >&5
4866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4868 else
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 /* System header to define __stub macros and hopefully few prototypes,
4873 which can conflict with char $ac_func(); below. */
4874 #include <assert.h>
4875 /* Override any gcc2 internal prototype to avoid an error. */
4876 /* We use char because int might match the return type of a gcc2
4877 builtin and then its argument prototype would still apply. */
4878 char $ac_func();
4880 int main() {
4882 /* The GNU C library defines this for functions which it implements
4883 to always fail with ENOSYS. Some functions are actually named
4884 something starting with __ and the normal name is an alias. */
4885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4886 choke me
4887 #else
4888 $ac_func();
4889 #endif
4891 ; return 0; }
4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4894 rm -rf conftest*
4895 eval "ac_cv_func_$ac_func=yes"
4896 else
4897 echo "configure: failed program was:" >&5
4898 cat conftest.$ac_ext >&5
4899 rm -rf conftest*
4900 eval "ac_cv_func_$ac_func=no"
4902 rm -f conftest*
4905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4906 echo "$ac_t""yes" 1>&6
4907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4908 cat >> confdefs.h <<EOF
4909 #define $ac_tr_func 1
4911 break
4912 else
4913 echo "$ac_t""no" 1>&6
4915 done
4917 for ac_func in inet_pton uname inet_ntoa
4919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4920 echo "configure:4921: checking for $ac_func" >&5
4921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4923 else
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char $ac_func(); below. */
4929 #include <assert.h>
4930 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4933 char $ac_func();
4935 int main() {
4937 /* The GNU C library defines this for functions which it implements
4938 to always fail with ENOSYS. Some functions are actually named
4939 something starting with __ and the normal name is an alias. */
4940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4941 choke me
4942 #else
4943 $ac_func();
4944 #endif
4946 ; return 0; }
4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 rm -rf conftest*
4950 eval "ac_cv_func_$ac_func=yes"
4951 else
4952 echo "configure: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4954 rm -rf conftest*
4955 eval "ac_cv_func_$ac_func=no"
4957 rm -f conftest*
4960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_func 1
4967 else
4968 echo "$ac_t""no" 1>&6
4970 done
4972 for ac_func in fork execvp pipe sigaction ftruncate
4974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4975 echo "configure:4976: checking for $ac_func" >&5
4976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4977 echo $ac_n "(cached) $ac_c" 1>&6
4978 else
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 /* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func(); below. */
4984 #include <assert.h>
4985 /* Override any gcc2 internal prototype to avoid an error. */
4986 /* We use char because int might match the return type of a gcc2
4987 builtin and then its argument prototype would still apply. */
4988 char $ac_func();
4990 int main() {
4992 /* The GNU C library defines this for functions which it implements
4993 to always fail with ENOSYS. Some functions are actually named
4994 something starting with __ and the normal name is an alias. */
4995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4996 choke me
4997 #else
4998 $ac_func();
4999 #endif
5001 ; return 0; }
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004 rm -rf conftest*
5005 eval "ac_cv_func_$ac_func=yes"
5006 else
5007 echo "configure: failed program was:" >&5
5008 cat conftest.$ac_ext >&5
5009 rm -rf conftest*
5010 eval "ac_cv_func_$ac_func=no"
5012 rm -f conftest*
5015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5016 echo "$ac_t""yes" 1>&6
5017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5018 cat >> confdefs.h <<EOF
5019 #define $ac_tr_func 1
5022 else
5023 echo "$ac_t""no" 1>&6
5025 done
5027 for ac_hdr in execinfo.h unistd.h dlfcn.h
5029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5031 echo "configure:5032: checking for $ac_hdr" >&5
5032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5034 else
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038 #include <$ac_hdr>
5040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5041 { (eval echo configure:5042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5043 if test -z "$ac_err"; then
5044 rm -rf conftest*
5045 eval "ac_cv_header_$ac_safe=yes"
5046 else
5047 echo "$ac_err" >&5
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5050 rm -rf conftest*
5051 eval "ac_cv_header_$ac_safe=no"
5053 rm -f conftest*
5055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5056 echo "$ac_t""yes" 1>&6
5057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5058 cat >> confdefs.h <<EOF
5059 #define $ac_tr_hdr 1
5062 else
5063 echo "$ac_t""no" 1>&6
5065 done
5067 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
5068 echo "configure:5069: checking for backtrace" >&5
5069 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5071 else
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075 /* System header to define __stub macros and hopefully few prototypes,
5076 which can conflict with char backtrace(); below. */
5077 #include <assert.h>
5078 /* Override any gcc2 internal prototype to avoid an error. */
5079 /* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5081 char backtrace();
5083 int main() {
5085 /* The GNU C library defines this for functions which it implements
5086 to always fail with ENOSYS. Some functions are actually named
5087 something starting with __ and the normal name is an alias. */
5088 #if defined (__stub_backtrace) || defined (__stub___backtrace)
5089 choke me
5090 #else
5091 backtrace();
5092 #endif
5094 ; return 0; }
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5097 rm -rf conftest*
5098 eval "ac_cv_func_backtrace=yes"
5099 else
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5102 rm -rf conftest*
5103 eval "ac_cv_func_backtrace=no"
5105 rm -f conftest*
5108 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5111 case "$host" in
5112 ia64-*-linux*)
5113 # Has broken backtrace()
5115 mips*-*-linux*)
5116 # Has broken backtrace(), but we supply our own.
5117 if test -d sysdep; then true; else mkdir -p sysdep; fi
5118 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep/dwarf2-backtrace.cc"
5119 cat >> confdefs.h <<\EOF
5120 #define HAVE_BACKTRACE 1
5125 cat >> confdefs.h <<\EOF
5126 #define HAVE_BACKTRACE 1
5130 esac
5132 else
5133 echo "$ac_t""no" 1>&6
5135 case "$host" in
5136 *mingw*)
5137 # Has backtrace() defined in libgcj itself
5138 cat >> confdefs.h <<\EOF
5139 #define HAVE_BACKTRACE 1
5143 esac
5148 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
5149 echo "configure:5150: checking for dladdr in -ldl" >&5
5150 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
5151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5153 else
5154 ac_save_LIBS="$LIBS"
5155 LIBS="-ldl $LIBS"
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5162 char dladdr();
5164 int main() {
5165 dladdr()
5166 ; return 0; }
5168 if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5169 rm -rf conftest*
5170 eval "ac_cv_lib_$ac_lib_var=yes"
5171 else
5172 echo "configure: failed program was:" >&5
5173 cat conftest.$ac_ext >&5
5174 rm -rf conftest*
5175 eval "ac_cv_lib_$ac_lib_var=no"
5177 rm -f conftest*
5178 LIBS="$ac_save_LIBS"
5181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5182 echo "$ac_t""yes" 1>&6
5184 if test "x${disable_dladdr}" = "xyes"; then
5185 #Broken dladdr().
5186 true
5187 else
5188 cat >> confdefs.h <<\EOF
5189 #define HAVE_DLADDR 1
5194 else
5195 echo "$ac_t""no" 1>&6
5198 if test x"$build" = x"$host"; then
5199 for ac_file in /proc/self/exe
5202 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
5203 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_file" >&5
5205 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5207 else
5208 if test "$cross_compiling" = yes; then
5209 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
5210 else
5211 if test -r $ac_file; then
5212 eval "ac_cv_file_$ac_safe=yes"
5213 else
5214 eval "ac_cv_file_$ac_safe=no"
5218 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
5219 echo "$ac_t""yes" 1>&6
5220 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5221 cat >> confdefs.h <<EOF
5222 #define $ac_tr_file 1
5225 cat >> confdefs.h <<\EOF
5226 #define HAVE_PROC_SELF_EXE 1
5229 else
5230 echo "$ac_t""no" 1>&6
5233 done
5235 else
5236 case $host in
5237 *-linux*)
5238 cat >> confdefs.h <<\EOF
5239 #define HAVE_PROC_SELF_EXE 1
5243 esac
5248 am_cv_lib_iconv_ldpath=
5249 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5250 if test "${with_libiconv_prefix+set}" = set; then
5251 withval="$with_libiconv_prefix"
5253 for dir in `echo "$withval" | tr : ' '`; do
5254 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
5255 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
5256 done
5261 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5262 echo "configure:5263: checking for iconv" >&5
5263 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5265 else
5267 am_cv_func_iconv="no, consider installing GNU libiconv"
5268 am_cv_lib_iconv=no
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272 #include <stdlib.h>
5273 #include <iconv.h>
5274 int main() {
5275 iconv_t cd = iconv_open("","");
5276 iconv(cd,NULL,NULL,NULL,NULL);
5277 iconv_close(cd);
5278 ; return 0; }
5280 if { (eval echo configure:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5281 rm -rf conftest*
5282 am_cv_func_iconv=yes
5283 else
5284 echo "configure: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
5287 rm -f conftest*
5288 if test "$am_cv_func_iconv" != yes; then
5289 am_save_LIBS="$LIBS"
5290 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5291 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5294 #include <stdlib.h>
5295 #include <iconv.h>
5296 int main() {
5297 iconv_t cd = iconv_open("","");
5298 iconv(cd,NULL,NULL,NULL,NULL);
5299 iconv_close(cd);
5300 ; return 0; }
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303 rm -rf conftest*
5304 am_cv_lib_iconv=yes
5305 am_cv_func_iconv=yes
5306 else
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 rm -f conftest*
5311 LIBS="$am_save_LIBS"
5316 echo "$ac_t""$am_cv_func_iconv" 1>&6
5317 if test "$am_cv_func_iconv" = yes; then
5318 cat >> confdefs.h <<\EOF
5319 #define HAVE_ICONV 1
5322 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5323 echo "configure:5324: checking for iconv declaration" >&5
5324 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5325 echo $ac_n "(cached) $ac_c" 1>&6
5326 else
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5332 #include <stdlib.h>
5333 #include <iconv.h>
5334 extern
5335 #ifdef __cplusplus
5337 #endif
5338 #if defined(__STDC__) || defined(__cplusplus)
5339 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5340 #else
5341 size_t iconv();
5342 #endif
5344 int main() {
5346 ; return 0; }
5348 if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5349 rm -rf conftest*
5350 am_cv_proto_iconv_arg1=""
5351 else
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5354 rm -rf conftest*
5355 am_cv_proto_iconv_arg1="const"
5357 rm -f conftest*
5358 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);"
5361 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5362 echo "$ac_t""${ac_t:-
5363 }$am_cv_proto_iconv" 1>&6
5364 cat >> confdefs.h <<EOF
5365 #define ICONV_CONST $am_cv_proto_iconv_arg1
5369 LIBICONV=
5370 if test "$am_cv_lib_iconv" = yes; then
5371 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5375 for ac_hdr in locale.h
5377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5379 echo "configure:5380: checking for $ac_hdr" >&5
5380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5382 else
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5386 #include <$ac_hdr>
5388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5389 { (eval echo configure:5390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5391 if test -z "$ac_err"; then
5392 rm -rf conftest*
5393 eval "ac_cv_header_$ac_safe=yes"
5394 else
5395 echo "$ac_err" >&5
5396 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5398 rm -rf conftest*
5399 eval "ac_cv_header_$ac_safe=no"
5401 rm -f conftest*
5403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5404 echo "$ac_t""yes" 1>&6
5405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5406 cat >> confdefs.h <<EOF
5407 #define $ac_tr_hdr 1
5410 else
5411 echo "$ac_t""no" 1>&6
5413 done
5415 if test $ac_cv_header_locale_h = yes; then
5416 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5417 echo "configure:5418: checking for LC_MESSAGES" >&5
5418 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5420 else
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 #include <locale.h>
5425 int main() {
5426 return LC_MESSAGES
5427 ; return 0; }
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 rm -rf conftest*
5431 am_cv_val_LC_MESSAGES=yes
5432 else
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5435 rm -rf conftest*
5436 am_cv_val_LC_MESSAGES=no
5438 rm -f conftest*
5441 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5442 if test $am_cv_val_LC_MESSAGES = yes; then
5443 cat >> confdefs.h <<\EOF
5444 #define HAVE_LC_MESSAGES 1
5449 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5450 echo "configure:5451: checking whether struct tm is in sys/time.h or time.h" >&5
5451 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5453 else
5454 cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5457 #include <sys/types.h>
5458 #include <time.h>
5459 int main() {
5460 struct tm *tp; tp->tm_sec;
5461 ; return 0; }
5463 if { (eval echo configure:5464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5464 rm -rf conftest*
5465 ac_cv_struct_tm=time.h
5466 else
5467 echo "configure: failed program was:" >&5
5468 cat conftest.$ac_ext >&5
5469 rm -rf conftest*
5470 ac_cv_struct_tm=sys/time.h
5472 rm -f conftest*
5475 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5476 if test $ac_cv_struct_tm = sys/time.h; then
5477 cat >> confdefs.h <<\EOF
5478 #define TM_IN_SYS_TIME 1
5483 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5484 echo "configure:5485: checking for tm_zone in struct tm" >&5
5485 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5487 else
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 #include <sys/types.h>
5492 #include <$ac_cv_struct_tm>
5493 int main() {
5494 struct tm tm; tm.tm_zone;
5495 ; return 0; }
5497 if { (eval echo configure:5498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5498 rm -rf conftest*
5499 ac_cv_struct_tm_zone=yes
5500 else
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5503 rm -rf conftest*
5504 ac_cv_struct_tm_zone=no
5506 rm -f conftest*
5509 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5510 if test "$ac_cv_struct_tm_zone" = yes; then
5511 cat >> confdefs.h <<\EOF
5512 #define HAVE_TM_ZONE 1
5515 else
5516 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5517 echo "configure:5518: checking for tzname" >&5
5518 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5520 else
5521 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5524 #include <time.h>
5525 #ifndef tzname /* For SGI. */
5526 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5527 #endif
5528 int main() {
5529 atoi(*tzname);
5530 ; return 0; }
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5533 rm -rf conftest*
5534 ac_cv_var_tzname=yes
5535 else
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5538 rm -rf conftest*
5539 ac_cv_var_tzname=no
5541 rm -f conftest*
5544 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5545 if test $ac_cv_var_tzname = yes; then
5546 cat >> confdefs.h <<\EOF
5547 #define HAVE_TZNAME 1
5554 for ac_func in gethostbyname_r
5556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5557 echo "configure:5558: checking for $ac_func" >&5
5558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5560 else
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5564 /* System header to define __stub macros and hopefully few prototypes,
5565 which can conflict with char $ac_func(); below. */
5566 #include <assert.h>
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5570 char $ac_func();
5572 int main() {
5574 /* The GNU C library defines this for functions which it implements
5575 to always fail with ENOSYS. Some functions are actually named
5576 something starting with __ and the normal name is an alias. */
5577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5578 choke me
5579 #else
5580 $ac_func();
5581 #endif
5583 ; return 0; }
5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586 rm -rf conftest*
5587 eval "ac_cv_func_$ac_func=yes"
5588 else
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5591 rm -rf conftest*
5592 eval "ac_cv_func_$ac_func=no"
5594 rm -f conftest*
5597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5598 echo "$ac_t""yes" 1>&6
5599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5600 cat >> confdefs.h <<EOF
5601 #define $ac_tr_func 1
5604 cat >> confdefs.h <<\EOF
5605 #define HAVE_GETHOSTBYNAME_R 1
5608 # There are two different kinds of gethostbyname_r.
5609 # We look for the one that returns `int'.
5610 # Hopefully this check is robust enough.
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5614 #include <netdb.h>
5616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5617 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
5618 rm -rf conftest*
5620 cat >> confdefs.h <<\EOF
5621 #define GETHOSTBYNAME_R_RETURNS_INT 1
5625 rm -f conftest*
5628 case " $GCINCS " in
5629 *" -D_REENTRANT "*) ;;
5631 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
5632 echo "configure:5633: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
5633 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5634 echo $ac_n "(cached) $ac_c" 1>&6
5635 else
5637 ac_ext=C
5638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5639 ac_cpp='$CXXCPP $CPPFLAGS'
5640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5642 cross_compiling=$ac_cv_prog_cxx_cross
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5647 #include <netdb.h>
5648 int main() {
5649 gethostbyname_r("", 0, 0);
5650 ; return 0; }
5652 if { (eval echo configure:5653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653 rm -rf conftest*
5654 libjava_cv_gethostbyname_r_needs_reentrant=no
5655 else
5656 echo "configure: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5658 rm -rf conftest*
5659 CPPFLAGS_SAVE="$CPPFLAGS"
5660 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5661 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5664 #include <netdb.h>
5665 int main() {
5666 gethostbyname_r("", 0, 0);
5667 ; return 0; }
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5670 rm -rf conftest*
5671 libjava_cv_gethostbyname_r_needs_reentrant=yes
5672 else
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 rm -rf conftest*
5676 libjava_cv_gethostbyname_r_needs_reentrant=fail
5678 rm -f conftest*
5679 CPPFLAGS="$CPPFLAGS_SAVE"
5682 rm -f conftest*
5683 ac_ext=c
5684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5685 ac_cpp='$CPP $CPPFLAGS'
5686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5688 cross_compiling=$ac_cv_prog_cc_cross
5693 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5694 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5695 cat >> confdefs.h <<\EOF
5696 #define _REENTRANT 1
5701 esac
5703 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
5704 echo "configure:5705: checking for struct hostent_data" >&5
5705 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5706 echo $ac_n "(cached) $ac_c" 1>&6
5707 else
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5712 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5713 # define _REENTRANT 1
5714 #endif
5715 #include <netdb.h>
5716 int main() {
5717 struct hostent_data data;
5718 ; return 0; }
5720 if { (eval echo configure:5721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5721 rm -rf conftest*
5722 libjava_cv_struct_hostent_data=yes
5723 else
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5726 rm -rf conftest*
5727 libjava_cv_struct_hostent_data=no
5729 rm -f conftest*
5732 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5733 if test "x$libjava_cv_struct_hostent_data" = xyes; then
5734 cat >> confdefs.h <<\EOF
5735 #define HAVE_STRUCT_HOSTENT_DATA 1
5740 else
5741 echo "$ac_t""no" 1>&6
5743 done
5746 # FIXME: libjava source code expects to find a prototype for
5747 # gethostbyaddr_r in netdb.h. The outer check ensures that
5748 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5749 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5750 # linkage check is enough, yet C++ code requires proper prototypes.)
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 #include <netdb.h>
5756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5757 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
5758 rm -rf conftest*
5760 for ac_func in gethostbyaddr_r
5762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5763 echo "configure:5764: checking for $ac_func" >&5
5764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5766 else
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5770 /* System header to define __stub macros and hopefully few prototypes,
5771 which can conflict with char $ac_func(); below. */
5772 #include <assert.h>
5773 /* Override any gcc2 internal prototype to avoid an error. */
5774 /* We use char because int might match the return type of a gcc2
5775 builtin and then its argument prototype would still apply. */
5776 char $ac_func();
5778 int main() {
5780 /* The GNU C library defines this for functions which it implements
5781 to always fail with ENOSYS. Some functions are actually named
5782 something starting with __ and the normal name is an alias. */
5783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5784 choke me
5785 #else
5786 $ac_func();
5787 #endif
5789 ; return 0; }
5791 if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5792 rm -rf conftest*
5793 eval "ac_cv_func_$ac_func=yes"
5794 else
5795 echo "configure: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 rm -rf conftest*
5798 eval "ac_cv_func_$ac_func=no"
5800 rm -f conftest*
5803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5806 cat >> confdefs.h <<EOF
5807 #define $ac_tr_func 1
5810 cat >> confdefs.h <<\EOF
5811 #define HAVE_GETHOSTBYADDR_R 1
5814 # There are two different kinds of gethostbyaddr_r.
5815 # We look for the one that returns `int'.
5816 # Hopefully this check is robust enough.
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 #include <netdb.h>
5822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5823 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
5824 rm -rf conftest*
5826 cat >> confdefs.h <<\EOF
5827 #define GETHOSTBYADDR_R_RETURNS_INT 1
5831 rm -f conftest*
5833 else
5834 echo "$ac_t""no" 1>&6
5836 done
5839 rm -f conftest*
5842 for ac_func in gethostname
5844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5845 echo "configure:5846: checking for $ac_func" >&5
5846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5848 else
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5852 /* System header to define __stub macros and hopefully few prototypes,
5853 which can conflict with char $ac_func(); below. */
5854 #include <assert.h>
5855 /* Override any gcc2 internal prototype to avoid an error. */
5856 /* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5858 char $ac_func();
5860 int main() {
5862 /* The GNU C library defines this for functions which it implements
5863 to always fail with ENOSYS. Some functions are actually named
5864 something starting with __ and the normal name is an alias. */
5865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5866 choke me
5867 #else
5868 $ac_func();
5869 #endif
5871 ; return 0; }
5873 if { (eval echo configure:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5874 rm -rf conftest*
5875 eval "ac_cv_func_$ac_func=yes"
5876 else
5877 echo "configure: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5879 rm -rf conftest*
5880 eval "ac_cv_func_$ac_func=no"
5882 rm -f conftest*
5885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5886 echo "$ac_t""yes" 1>&6
5887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5888 cat >> confdefs.h <<EOF
5889 #define $ac_tr_func 1
5892 cat >> confdefs.h <<\EOF
5893 #define HAVE_GETHOSTNAME 1
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 #include <unistd.h>
5901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5902 egrep "gethostname" >/dev/null 2>&1; then
5903 rm -rf conftest*
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE_GETHOSTNAME_DECL 1
5910 rm -f conftest*
5912 else
5913 echo "$ac_t""no" 1>&6
5915 done
5918 for ac_func in usleep
5920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5921 echo "configure:5922: checking for $ac_func" >&5
5922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5924 else
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 /* System header to define __stub macros and hopefully few prototypes,
5929 which can conflict with char $ac_func(); below. */
5930 #include <assert.h>
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5934 char $ac_func();
5936 int main() {
5938 /* The GNU C library defines this for functions which it implements
5939 to always fail with ENOSYS. Some functions are actually named
5940 something starting with __ and the normal name is an alias. */
5941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5942 choke me
5943 #else
5944 $ac_func();
5945 #endif
5947 ; return 0; }
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950 rm -rf conftest*
5951 eval "ac_cv_func_$ac_func=yes"
5952 else
5953 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 rm -rf conftest*
5956 eval "ac_cv_func_$ac_func=no"
5958 rm -f conftest*
5961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5964 cat >> confdefs.h <<EOF
5965 #define $ac_tr_func 1
5968 cat > conftest.$ac_ext <<EOF
5969 #line 5970 "configure"
5970 #include "confdefs.h"
5971 #include <unistd.h>
5973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5974 egrep "usleep" >/dev/null 2>&1; then
5975 rm -rf conftest*
5977 cat >> confdefs.h <<\EOF
5978 #define HAVE_USLEEP_DECL 1
5982 rm -f conftest*
5984 else
5985 echo "$ac_t""no" 1>&6
5987 done
5990 # Look for these functions in the thread library, but only bother
5991 # if using POSIX threads.
5992 if test "$THREADS" = posix; then
5993 save_LIBS="$LIBS"
5994 LIBS="$LIBS $THREADLIBS"
5995 # Some POSIX thread systems don't have pthread_mutexattr_settype.
5996 # E.g., Solaris.
5997 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
5999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_func" >&5
6001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6003 else
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6007 /* System header to define __stub macros and hopefully few prototypes,
6008 which can conflict with char $ac_func(); below. */
6009 #include <assert.h>
6010 /* Override any gcc2 internal prototype to avoid an error. */
6011 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */
6013 char $ac_func();
6015 int main() {
6017 /* The GNU C library defines this for functions which it implements
6018 to always fail with ENOSYS. Some functions are actually named
6019 something starting with __ and the normal name is an alias. */
6020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6021 choke me
6022 #else
6023 $ac_func();
6024 #endif
6026 ; return 0; }
6028 if { (eval echo configure:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6029 rm -rf conftest*
6030 eval "ac_cv_func_$ac_func=yes"
6031 else
6032 echo "configure: failed program was:" >&5
6033 cat conftest.$ac_ext >&5
6034 rm -rf conftest*
6035 eval "ac_cv_func_$ac_func=no"
6037 rm -f conftest*
6040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6041 echo "$ac_t""yes" 1>&6
6042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6043 cat >> confdefs.h <<EOF
6044 #define $ac_tr_func 1
6047 else
6048 echo "$ac_t""no" 1>&6
6050 done
6053 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
6054 # Solaris 7 the name librt is preferred.
6055 for ac_func in sched_yield
6057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6058 echo "configure:6059: checking for $ac_func" >&5
6059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6061 else
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 /* System header to define __stub macros and hopefully few prototypes,
6066 which can conflict with char $ac_func(); below. */
6067 #include <assert.h>
6068 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6071 char $ac_func();
6073 int main() {
6075 /* The GNU C library defines this for functions which it implements
6076 to always fail with ENOSYS. Some functions are actually named
6077 something starting with __ and the normal name is an alias. */
6078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6079 choke me
6080 #else
6081 $ac_func();
6082 #endif
6084 ; return 0; }
6086 if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6087 rm -rf conftest*
6088 eval "ac_cv_func_$ac_func=yes"
6089 else
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6092 rm -rf conftest*
6093 eval "ac_cv_func_$ac_func=no"
6095 rm -f conftest*
6098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6099 echo "$ac_t""yes" 1>&6
6100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6101 cat >> confdefs.h <<EOF
6102 #define $ac_tr_func 1
6105 else
6106 echo "$ac_t""no" 1>&6
6107 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6108 echo "configure:6109: checking for sched_yield in -lrt" >&5
6109 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6112 else
6113 ac_save_LIBS="$LIBS"
6114 LIBS="-lrt $LIBS"
6115 cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6118 /* Override any gcc2 internal prototype to avoid an error. */
6119 /* We use char because int might match the return type of a gcc2
6120 builtin and then its argument prototype would still apply. */
6121 char sched_yield();
6123 int main() {
6124 sched_yield()
6125 ; return 0; }
6127 if { (eval echo configure:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6128 rm -rf conftest*
6129 eval "ac_cv_lib_$ac_lib_var=yes"
6130 else
6131 echo "configure: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 rm -rf conftest*
6134 eval "ac_cv_lib_$ac_lib_var=no"
6136 rm -f conftest*
6137 LIBS="$ac_save_LIBS"
6140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6141 echo "$ac_t""yes" 1>&6
6143 cat >> confdefs.h <<\EOF
6144 #define HAVE_SCHED_YIELD 1
6147 THREADLIBS="$THREADLIBS -lrt"
6148 THREADSPEC="$THREADSPEC -lrt"
6149 else
6150 echo "$ac_t""no" 1>&6
6152 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
6153 echo "configure:6154: checking for sched_yield in -lposix4" >&5
6154 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
6155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6157 else
6158 ac_save_LIBS="$LIBS"
6159 LIBS="-lposix4 $LIBS"
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6163 /* Override any gcc2 internal prototype to avoid an error. */
6164 /* We use char because int might match the return type of a gcc2
6165 builtin and then its argument prototype would still apply. */
6166 char sched_yield();
6168 int main() {
6169 sched_yield()
6170 ; return 0; }
6172 if { (eval echo configure:6173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6173 rm -rf conftest*
6174 eval "ac_cv_lib_$ac_lib_var=yes"
6175 else
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6178 rm -rf conftest*
6179 eval "ac_cv_lib_$ac_lib_var=no"
6181 rm -f conftest*
6182 LIBS="$ac_save_LIBS"
6185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6186 echo "$ac_t""yes" 1>&6
6188 cat >> confdefs.h <<\EOF
6189 #define HAVE_SCHED_YIELD 1
6192 THREADLIBS="$THREADLIBS -lposix4"
6193 THREADSPEC="$THREADSPEC -lposix4"
6194 else
6195 echo "$ac_t""no" 1>&6
6201 done
6203 LIBS="$save_LIBS"
6205 # We can save a little space at runtime if the mutex has m_count
6206 # or __m_count. This is a nice hack for Linux.
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 #include <pthread.h>
6211 int main() {
6213 extern pthread_mutex_t *mutex; int q = mutex->m_count;
6215 ; return 0; }
6217 if { (eval echo configure:6218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6218 rm -rf conftest*
6219 cat >> confdefs.h <<\EOF
6220 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
6223 else
6224 echo "configure: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6226 rm -rf conftest*
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6231 #include <pthread.h>
6232 int main() {
6234 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
6236 ; return 0; }
6238 if { (eval echo configure:6239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6239 rm -rf conftest*
6240 cat >> confdefs.h <<\EOF
6241 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
6244 else
6245 echo "configure: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6248 rm -f conftest*
6250 rm -f conftest*
6253 # We require a way to get the time.
6254 time_found=no
6255 for ac_func in gettimeofday time ftime
6257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6261 else
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char $ac_func(); below. */
6267 #include <assert.h>
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271 char $ac_func();
6273 int main() {
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 choke me
6280 #else
6281 $ac_func();
6282 #endif
6284 ; return 0; }
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 rm -rf conftest*
6288 eval "ac_cv_func_$ac_func=yes"
6289 else
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 rm -rf conftest*
6293 eval "ac_cv_func_$ac_func=no"
6295 rm -f conftest*
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h <<EOF
6302 #define $ac_tr_func 1
6304 time_found=yes
6305 else
6306 echo "$ac_t""no" 1>&6
6308 done
6310 if test "$time_found" = no; then
6311 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
6314 for ac_func in memmove
6316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6317 echo "configure:6318: checking for $ac_func" >&5
6318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6320 else
6321 cat > conftest.$ac_ext <<EOF
6322 #line 6323 "configure"
6323 #include "confdefs.h"
6324 /* System header to define __stub macros and hopefully few prototypes,
6325 which can conflict with char $ac_func(); below. */
6326 #include <assert.h>
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6330 char $ac_func();
6332 int main() {
6334 /* The GNU C library defines this for functions which it implements
6335 to always fail with ENOSYS. Some functions are actually named
6336 something starting with __ and the normal name is an alias. */
6337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6338 choke me
6339 #else
6340 $ac_func();
6341 #endif
6343 ; return 0; }
6345 if { (eval echo configure:6346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6346 rm -rf conftest*
6347 eval "ac_cv_func_$ac_func=yes"
6348 else
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6351 rm -rf conftest*
6352 eval "ac_cv_func_$ac_func=no"
6354 rm -f conftest*
6357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6358 echo "$ac_t""yes" 1>&6
6359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6360 cat >> confdefs.h <<EOF
6361 #define $ac_tr_func 1
6364 else
6365 echo "$ac_t""no" 1>&6
6367 done
6370 # We require memcpy.
6371 memcpy_found=no
6372 for ac_func in memcpy
6374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6375 echo "configure:6376: checking for $ac_func" >&5
6376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6377 echo $ac_n "(cached) $ac_c" 1>&6
6378 else
6379 cat > conftest.$ac_ext <<EOF
6380 #line 6381 "configure"
6381 #include "confdefs.h"
6382 /* System header to define __stub macros and hopefully few prototypes,
6383 which can conflict with char $ac_func(); below. */
6384 #include <assert.h>
6385 /* Override any gcc2 internal prototype to avoid an error. */
6386 /* We use char because int might match the return type of a gcc2
6387 builtin and then its argument prototype would still apply. */
6388 char $ac_func();
6390 int main() {
6392 /* The GNU C library defines this for functions which it implements
6393 to always fail with ENOSYS. Some functions are actually named
6394 something starting with __ and the normal name is an alias. */
6395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6396 choke me
6397 #else
6398 $ac_func();
6399 #endif
6401 ; return 0; }
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 rm -rf conftest*
6405 eval "ac_cv_func_$ac_func=yes"
6406 else
6407 echo "configure: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6409 rm -rf conftest*
6410 eval "ac_cv_func_$ac_func=no"
6412 rm -f conftest*
6415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6416 echo "$ac_t""yes" 1>&6
6417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6418 cat >> confdefs.h <<EOF
6419 #define $ac_tr_func 1
6421 memcpy_found=yes
6422 else
6423 echo "$ac_t""no" 1>&6
6425 done
6427 if test "$memcpy_found" = no; then
6428 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
6431 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6432 echo "configure:6433: checking for dlopen in -ldl" >&5
6433 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6436 else
6437 ac_save_LIBS="$LIBS"
6438 LIBS="-ldl $LIBS"
6439 cat > conftest.$ac_ext <<EOF
6440 #line 6441 "configure"
6441 #include "confdefs.h"
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6445 char dlopen();
6447 int main() {
6448 dlopen()
6449 ; return 0; }
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6452 rm -rf conftest*
6453 eval "ac_cv_lib_$ac_lib_var=yes"
6454 else
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6457 rm -rf conftest*
6458 eval "ac_cv_lib_$ac_lib_var=no"
6460 rm -f conftest*
6461 LIBS="$ac_save_LIBS"
6464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6467 cat >> confdefs.h <<\EOF
6468 #define HAVE_DLOPEN 1
6471 else
6472 echo "$ac_t""no" 1>&6
6476 # Some library-finding code we stole from Tcl.
6477 #--------------------------------------------------------------------
6478 # Check for the existence of the -lsocket and -lnsl libraries.
6479 # The order here is important, so that they end up in the right
6480 # order in the command line generated by make. Here are some
6481 # special considerations:
6482 # 1. Use "connect" and "accept" to check for -lsocket, and
6483 # "gethostbyname" to check for -lnsl.
6484 # 2. Use each function name only once: can't redo a check because
6485 # autoconf caches the results of the last check and won't redo it.
6486 # 3. Use -lnsl and -lsocket only if they supply procedures that
6487 # aren't already present in the normal libraries. This is because
6488 # IRIX 5.2 has libraries, but they aren't needed and they're
6489 # bogus: they goof up name resolution if used.
6490 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6491 # To get around this problem, check for both libraries together
6492 # if -lsocket doesn't work by itself.
6493 #--------------------------------------------------------------------
6495 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
6496 echo "configure:6497: checking for socket libraries" >&5
6497 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6498 echo $ac_n "(cached) $ac_c" 1>&6
6499 else
6500 gcj_cv_lib_sockets=
6501 gcj_checkBoth=0
6502 unset ac_cv_func_connect
6503 echo $ac_n "checking for connect""... $ac_c" 1>&6
6504 echo "configure:6505: checking for connect" >&5
6505 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6507 else
6508 cat > conftest.$ac_ext <<EOF
6509 #line 6510 "configure"
6510 #include "confdefs.h"
6511 /* System header to define __stub macros and hopefully few prototypes,
6512 which can conflict with char connect(); below. */
6513 #include <assert.h>
6514 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6517 char connect();
6519 int main() {
6521 /* The GNU C library defines this for functions which it implements
6522 to always fail with ENOSYS. Some functions are actually named
6523 something starting with __ and the normal name is an alias. */
6524 #if defined (__stub_connect) || defined (__stub___connect)
6525 choke me
6526 #else
6527 connect();
6528 #endif
6530 ; return 0; }
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 rm -rf conftest*
6534 eval "ac_cv_func_connect=yes"
6535 else
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6538 rm -rf conftest*
6539 eval "ac_cv_func_connect=no"
6541 rm -f conftest*
6544 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6546 gcj_checkSocket=0
6547 else
6548 echo "$ac_t""no" 1>&6
6549 gcj_checkSocket=1
6552 if test "$gcj_checkSocket" = 1; then
6553 unset ac_cv_func_connect
6554 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
6555 echo "configure:6556: checking for main in -lsocket" >&5
6556 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6559 else
6560 ac_save_LIBS="$LIBS"
6561 LIBS="-lsocket $LIBS"
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6566 int main() {
6567 main()
6568 ; return 0; }
6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6571 rm -rf conftest*
6572 eval "ac_cv_lib_$ac_lib_var=yes"
6573 else
6574 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6576 rm -rf conftest*
6577 eval "ac_cv_lib_$ac_lib_var=no"
6579 rm -f conftest*
6580 LIBS="$ac_save_LIBS"
6583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6584 echo "$ac_t""yes" 1>&6
6585 gcj_cv_lib_sockets="-lsocket"
6586 else
6587 echo "$ac_t""no" 1>&6
6588 gcj_checkBoth=1
6592 if test "$gcj_checkBoth" = 1; then
6593 gcj_oldLibs=$LIBS
6594 LIBS="$LIBS -lsocket -lnsl"
6595 unset ac_cv_func_accept
6596 echo $ac_n "checking for accept""... $ac_c" 1>&6
6597 echo "configure:6598: checking for accept" >&5
6598 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6600 else
6601 cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* System header to define __stub macros and hopefully few prototypes,
6605 which can conflict with char accept(); below. */
6606 #include <assert.h>
6607 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6610 char accept();
6612 int main() {
6614 /* The GNU C library defines this for functions which it implements
6615 to always fail with ENOSYS. Some functions are actually named
6616 something starting with __ and the normal name is an alias. */
6617 #if defined (__stub_accept) || defined (__stub___accept)
6618 choke me
6619 #else
6620 accept();
6621 #endif
6623 ; return 0; }
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 rm -rf conftest*
6627 eval "ac_cv_func_accept=yes"
6628 else
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6631 rm -rf conftest*
6632 eval "ac_cv_func_accept=no"
6634 rm -f conftest*
6637 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6638 echo "$ac_t""yes" 1>&6
6639 gcj_checkNsl=0
6640 gcj_cv_lib_sockets="-lsocket -lnsl"
6641 else
6642 echo "$ac_t""no" 1>&6
6645 unset ac_cv_func_accept
6646 LIBS=$gcj_oldLibs
6648 unset ac_cv_func_gethostbyname
6649 gcj_oldLibs=$LIBS
6650 LIBS="$LIBS $gcj_cv_lib_sockets"
6651 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6652 echo "configure:6653: checking for gethostbyname" >&5
6653 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6655 else
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6659 /* System header to define __stub macros and hopefully few prototypes,
6660 which can conflict with char gethostbyname(); below. */
6661 #include <assert.h>
6662 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6665 char gethostbyname();
6667 int main() {
6669 /* The GNU C library defines this for functions which it implements
6670 to always fail with ENOSYS. Some functions are actually named
6671 something starting with __ and the normal name is an alias. */
6672 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6673 choke me
6674 #else
6675 gethostbyname();
6676 #endif
6678 ; return 0; }
6680 if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6681 rm -rf conftest*
6682 eval "ac_cv_func_gethostbyname=yes"
6683 else
6684 echo "configure: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6686 rm -rf conftest*
6687 eval "ac_cv_func_gethostbyname=no"
6689 rm -f conftest*
6692 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6695 else
6696 echo "$ac_t""no" 1>&6
6697 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
6698 echo "configure:6699: checking for main in -lnsl" >&5
6699 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6701 echo $ac_n "(cached) $ac_c" 1>&6
6702 else
6703 ac_save_LIBS="$LIBS"
6704 LIBS="-lnsl $LIBS"
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6709 int main() {
6710 main()
6711 ; return 0; }
6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6714 rm -rf conftest*
6715 eval "ac_cv_lib_$ac_lib_var=yes"
6716 else
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6719 rm -rf conftest*
6720 eval "ac_cv_lib_$ac_lib_var=no"
6722 rm -f conftest*
6723 LIBS="$ac_save_LIBS"
6726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6729 else
6730 echo "$ac_t""no" 1>&6
6735 unset ac_cv_func_gethostbyname
6736 LIBS=$gcj_oldLIBS
6740 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6741 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6743 if test "$with_system_zlib" = yes; then
6744 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6745 echo "configure:6746: checking for deflate in -lz" >&5
6746 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6749 else
6750 ac_save_LIBS="$LIBS"
6751 LIBS="-lz $LIBS"
6752 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure"
6754 #include "confdefs.h"
6755 /* Override any gcc2 internal prototype to avoid an error. */
6756 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */
6758 char deflate();
6760 int main() {
6761 deflate()
6762 ; return 0; }
6764 if { (eval echo configure:6765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6765 rm -rf conftest*
6766 eval "ac_cv_lib_$ac_lib_var=yes"
6767 else
6768 echo "configure: failed program was:" >&5
6769 cat conftest.$ac_ext >&5
6770 rm -rf conftest*
6771 eval "ac_cv_lib_$ac_lib_var=no"
6773 rm -f conftest*
6774 LIBS="$ac_save_LIBS"
6777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6778 echo "$ac_t""yes" 1>&6
6779 ZLIBSPEC=-lz
6780 else
6781 echo "$ac_t""no" 1>&6
6782 ZLIBSPEC=
6787 # Test for Gtk stuff, if asked for.
6788 if test "$use_gtk_awt" = yes; then
6790 succeeded=no
6792 if test -z "$PKG_CONFIG"; then
6793 # Extract the first word of "pkg-config", so it can be a program name with args.
6794 set dummy pkg-config; ac_word=$2
6795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6796 echo "configure:6797: checking for $ac_word" >&5
6797 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6799 else
6800 case "$PKG_CONFIG" in
6802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6804 ?:/*)
6805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6809 ac_dummy="$PATH"
6810 for ac_dir in $ac_dummy; do
6811 test -z "$ac_dir" && ac_dir=.
6812 if test -f $ac_dir/$ac_word; then
6813 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6814 break
6816 done
6817 IFS="$ac_save_ifs"
6818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6820 esac
6822 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6823 if test -n "$PKG_CONFIG"; then
6824 echo "$ac_t""$PKG_CONFIG" 1>&6
6825 else
6826 echo "$ac_t""no" 1>&6
6831 if test "$PKG_CONFIG" = "no" ; then
6832 echo "*** The pkg-config script could not be found. Make sure it is"
6833 echo "*** in your path, or set the PKG_CONFIG environment variable"
6834 echo "*** to the full path to pkg-config."
6835 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6836 else
6837 PKG_CONFIG_MIN_VERSION=0.9.0
6838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6839 echo $ac_n "checking for gtk+-2.0 >= 2.2""... $ac_c" 1>&6
6840 echo "configure:6841: checking for gtk+-2.0 >= 2.2" >&5
6842 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2" ; then
6843 echo "$ac_t""yes" 1>&6
6844 succeeded=yes
6846 echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6
6847 echo "configure:6848: checking GTK_CFLAGS" >&5
6848 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.2"`
6849 echo "$ac_t""$GTK_CFLAGS" 1>&6
6851 echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6
6852 echo "configure:6853: checking GTK_LIBS" >&5
6853 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.2"`
6854 echo "$ac_t""$GTK_LIBS" 1>&6
6855 else
6856 GTK_CFLAGS=""
6857 GTK_LIBS=""
6858 ## If we have a custom action on failure, don't print errors, but
6859 ## do set a variable so people can do so.
6860 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2"`
6861 echo $GTK_PKG_ERRORS
6866 else
6867 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6868 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6872 if test $succeeded = yes; then
6874 else
6875 { 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; }
6882 succeeded=no
6884 if test -z "$PKG_CONFIG"; then
6885 # Extract the first word of "pkg-config", so it can be a program name with args.
6886 set dummy pkg-config; ac_word=$2
6887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6888 echo "configure:6889: checking for $ac_word" >&5
6889 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6891 else
6892 case "$PKG_CONFIG" in
6894 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6896 ?:/*)
6897 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6901 ac_dummy="$PATH"
6902 for ac_dir in $ac_dummy; do
6903 test -z "$ac_dir" && ac_dir=.
6904 if test -f $ac_dir/$ac_word; then
6905 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6906 break
6908 done
6909 IFS="$ac_save_ifs"
6910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6912 esac
6914 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6915 if test -n "$PKG_CONFIG"; then
6916 echo "$ac_t""$PKG_CONFIG" 1>&6
6917 else
6918 echo "$ac_t""no" 1>&6
6923 if test "$PKG_CONFIG" = "no" ; then
6924 echo "*** The pkg-config script could not be found. Make sure it is"
6925 echo "*** in your path, or set the PKG_CONFIG environment variable"
6926 echo "*** to the full path to pkg-config."
6927 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6928 else
6929 PKG_CONFIG_MIN_VERSION=0.9.0
6930 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6931 echo $ac_n "checking for glib-2.0 >= 2.2 gthread-2.0 >= 2.2""... $ac_c" 1>&6
6932 echo "configure:6933: checking for glib-2.0 >= 2.2 gthread-2.0 >= 2.2" >&5
6934 if $PKG_CONFIG --exists "glib-2.0 >= 2.2 gthread-2.0 >= 2.2" ; then
6935 echo "$ac_t""yes" 1>&6
6936 succeeded=yes
6938 echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
6939 echo "configure:6940: checking GLIB_CFLAGS" >&5
6940 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6941 echo "$ac_t""$GLIB_CFLAGS" 1>&6
6943 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
6944 echo "configure:6945: checking GLIB_LIBS" >&5
6945 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6946 echo "$ac_t""$GLIB_LIBS" 1>&6
6947 else
6948 GLIB_CFLAGS=""
6949 GLIB_LIBS=""
6950 ## If we have a custom action on failure, don't print errors, but
6951 ## do set a variable so people can do so.
6952 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6953 echo $GLIB_PKG_ERRORS
6958 else
6959 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6960 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6964 if test $succeeded = yes; then
6966 else
6967 { 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; }
6974 succeeded=no
6976 if test -z "$PKG_CONFIG"; then
6977 # Extract the first word of "pkg-config", so it can be a program name with args.
6978 set dummy pkg-config; ac_word=$2
6979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6980 echo "configure:6981: checking for $ac_word" >&5
6981 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6983 else
6984 case "$PKG_CONFIG" in
6986 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6988 ?:/*)
6989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6993 ac_dummy="$PATH"
6994 for ac_dir in $ac_dummy; do
6995 test -z "$ac_dir" && ac_dir=.
6996 if test -f $ac_dir/$ac_word; then
6997 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6998 break
7000 done
7001 IFS="$ac_save_ifs"
7002 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7004 esac
7006 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7007 if test -n "$PKG_CONFIG"; then
7008 echo "$ac_t""$PKG_CONFIG" 1>&6
7009 else
7010 echo "$ac_t""no" 1>&6
7015 if test "$PKG_CONFIG" = "no" ; then
7016 echo "*** The pkg-config script could not be found. Make sure it is"
7017 echo "*** in your path, or set the PKG_CONFIG environment variable"
7018 echo "*** to the full path to pkg-config."
7019 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7020 else
7021 PKG_CONFIG_MIN_VERSION=0.9.0
7022 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7023 echo $ac_n "checking for libart-2.0 >= 2.1""... $ac_c" 1>&6
7024 echo "configure:7025: checking for libart-2.0 >= 2.1" >&5
7026 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
7027 echo "$ac_t""yes" 1>&6
7028 succeeded=yes
7030 echo $ac_n "checking LIBART_CFLAGS""... $ac_c" 1>&6
7031 echo "configure:7032: checking LIBART_CFLAGS" >&5
7032 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
7033 echo "$ac_t""$LIBART_CFLAGS" 1>&6
7035 echo $ac_n "checking LIBART_LIBS""... $ac_c" 1>&6
7036 echo "configure:7037: checking LIBART_LIBS" >&5
7037 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
7038 echo "$ac_t""$LIBART_LIBS" 1>&6
7039 else
7040 LIBART_CFLAGS=""
7041 LIBART_LIBS=""
7042 ## If we have a custom action on failure, don't print errors, but
7043 ## do set a variable so people can do so.
7044 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
7045 echo $LIBART_PKG_ERRORS
7050 else
7051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7056 if test $succeeded = yes; then
7058 else
7059 { 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; }
7066 # On Solaris, and maybe other architectures, the Boehm collector
7067 # requires -ldl.
7068 if test "$GC" = boehm; then
7069 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
7070 echo "configure:7071: checking for main in -ldl" >&5
7071 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7074 else
7075 ac_save_LIBS="$LIBS"
7076 LIBS="-ldl $LIBS"
7077 cat > conftest.$ac_ext <<EOF
7078 #line 7079 "configure"
7079 #include "confdefs.h"
7081 int main() {
7082 main()
7083 ; return 0; }
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7086 rm -rf conftest*
7087 eval "ac_cv_lib_$ac_lib_var=yes"
7088 else
7089 echo "configure: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7091 rm -rf conftest*
7092 eval "ac_cv_lib_$ac_lib_var=no"
7094 rm -f conftest*
7095 LIBS="$ac_save_LIBS"
7098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7099 echo "$ac_t""yes" 1>&6
7100 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7101 else
7102 echo "$ac_t""no" 1>&6
7108 if test -z "${with_multisubdir}"; then
7109 builddotdot=.
7110 else
7112 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7116 # Which gcj do we use?
7117 which_gcj=default
7118 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7119 if test -n "${with_cross_host}"; then
7120 # We are being configured with a cross compiler. We can't
7121 # use ac_exeext, because that is for the target platform.
7122 NATIVE=no
7123 cross_host_exeext=
7124 case "${with_cross_host}" in
7125 *mingw* | *cygwin*)
7126 cross_host_exeext=.exe
7128 esac
7129 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
7130 if test x"$build_alias" = x"$with_cross_host"; then
7131 # Ordinary cross (host!=target and host=build)
7132 which_gcj=built
7133 else
7134 # Canadian cross (host!=target and host!=build)
7135 which_gcj=cross
7137 else
7138 which_gcj=cross
7140 else
7141 # We are being configured with a native or crossed-native compiler
7142 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
7143 if test x"$build" = x"$host"; then
7144 # True native build (host=target and host=build)
7145 which_gcj=built
7146 else
7147 # Crossed-native build (host=target and host!=build)
7148 which_gcj=cross
7150 else
7151 which_gcj=path
7154 case "${which_gcj}" in
7155 built)
7156 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7158 cross)
7159 # See the comment in Makefile.am about CANADIAN being a misnomer
7160 CANADIAN=yes
7161 NULL_TARGET=no
7162 if test "x${with_newlib}" = "xyes"; then
7163 # FIXME (comment): Why is this needed?
7164 GCC_UNWIND_INCLUDE=
7165 GCJ="${target_alias}-gcj"
7166 else
7167 GCJ="${target_alias}-gcj -B`${PWDCMD-pwd}`/"
7170 path)
7171 # See the comment in Makefile.am about CANADIAN being a misnomer
7172 CANADIAN=yes
7173 NULL_TARGET=yes
7174 GCJ="gcj -B`${PWDCMD-pwd}`/"
7176 esac
7178 # Create it, so that compile/link tests don't fail
7179 test -f libgcj.spec || touch libgcj.spec
7181 # We must search the source tree for java.lang, since we still don't
7182 # have libgcj.jar nor java/lang/*.class
7183 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7184 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7186 # Since some classes depend on this one, we need its source available
7187 # before we can do any GCJ compilation test :-(
7188 if test ! -f gnu/classpath/Configuration.java; then
7189 test -d gnu || mkdir gnu
7190 test -d gnu/classpath || mkdir gnu/classpath
7191 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7192 -e 's,@TOOLKIT@,$TOOLKIT,' \
7193 < $srcdir/gnu/classpath/Configuration.java.in \
7194 > gnu/classpath/Configuration.java
7195 # We do not want to redirect the output of the grep below to /dev/null,
7196 # but we add /dev/null to the input list so that grep will print the
7197 # filename of Configuration.java in case it finds any matches.
7198 if grep @ gnu/classpath/Configuration.java /dev/null; then
7199 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
7203 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7206 echo "configure:7207: checking for $ac_word" >&5
7207 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7209 else
7210 if test -n "$GCJ"; then
7211 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7212 else
7213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7214 ac_dummy="$PATH"
7215 for ac_dir in $ac_dummy; do
7216 test -z "$ac_dir" && ac_dir=.
7217 if test -f $ac_dir/$ac_word; then
7218 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
7219 break
7221 done
7222 IFS="$ac_save_ifs"
7225 GCJ="$ac_cv_prog_GCJ"
7226 if test -n "$GCJ"; then
7227 echo "$ac_t""$GCJ" 1>&6
7228 else
7229 echo "$ac_t""no" 1>&6
7233 if test -z "$ac_cv_prog_GCJ"; then
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "gcj", so it can be a program name with args.
7236 set dummy gcj; ac_word=$2
7237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7238 echo "configure:7239: checking for $ac_word" >&5
7239 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7241 else
7242 if test -n "$GCJ"; then
7243 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7244 else
7245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7246 ac_dummy="$PATH"
7247 for ac_dir in $ac_dummy; do
7248 test -z "$ac_dir" && ac_dir=.
7249 if test -f $ac_dir/$ac_word; then
7250 ac_cv_prog_GCJ="gcj"
7251 break
7253 done
7254 IFS="$ac_save_ifs"
7255 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
7258 GCJ="$ac_cv_prog_GCJ"
7259 if test -n "$GCJ"; then
7260 echo "$ac_t""$GCJ" 1>&6
7261 else
7262 echo "$ac_t""no" 1>&6
7265 else
7266 GCJ="no"
7270 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7274 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7275 lt_save_CC="$CC"
7276 lt_save_CFLAGS="$CFLAGS"
7277 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7278 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7279 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7280 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7281 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7282 deplibs_check_method="$deplibs_check_method" \
7283 file_magic_cmd="$file_magic_cmd" \
7284 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7285 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7286 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
7287 CC="$lt_save_CC"
7288 CFLAGS="$lt_save_CFLAGS"
7290 # Redirect the config.log output again, so that the ltconfig log is not
7291 # clobbered by the next message.
7292 exec 5>>./config.log
7297 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7299 echo $ac_n "checking size of void *""... $ac_c" 1>&6
7300 echo "configure:7301: checking size of void *" >&5
7301 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7303 else
7304 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7305 cat > conftest.$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 #include "confdefs.h"
7309 #include <sys/types.h>
7312 int main() {
7313 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7314 ; return 0; }
7316 if { (eval echo configure:7317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7317 rm -rf conftest*
7318 ac_cv_sizeof_void_p=$ac_size
7319 else
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7323 rm -f conftest*
7324 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7325 done
7329 if test x$ac_cv_sizeof_void_p = x ; then
7330 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
7332 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7333 cat >> confdefs.h <<EOF
7334 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7339 ZLIBS=
7340 SYS_ZLIBS=
7341 ZINCS=
7343 if test -z "$ZLIBSPEC"; then
7344 # Use zlib from the GCC tree.
7345 ZINCS='-I$(top_srcdir)/../zlib'
7346 ZLIBS=../zlib/libzgcj_convenience.la
7347 else
7348 # System's zlib.
7349 SYS_ZLIBS="$ZLIBSPEC"
7361 if test "$CANADIAN" = yes; then
7362 CANADIAN_TRUE=
7363 CANADIAN_FALSE='#'
7364 else
7365 CANADIAN_TRUE='#'
7366 CANADIAN_FALSE=
7370 if test "$NULL_TARGET" = yes; then
7371 NULL_TARGET_TRUE=
7372 NULL_TARGET_FALSE='#'
7373 else
7374 NULL_TARGET_TRUE='#'
7375 NULL_TARGET_FALSE=
7379 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
7380 NATIVE_TRUE=
7381 NATIVE_FALSE='#'
7382 else
7383 NATIVE_TRUE='#'
7384 NATIVE_FALSE=
7388 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7389 NEEDS_DATA_START_TRUE=
7390 NEEDS_DATA_START_FALSE='#'
7391 else
7392 NEEDS_DATA_START_TRUE='#'
7393 NEEDS_DATA_START_FALSE=
7397 if test -n "$with_cross_host" &&
7398 test x"$with_cross_host" != x"no"; then
7399 toolexecdir='$(exec_prefix)/$(target_alias)'
7400 toolexecmainlibdir='$(toolexecdir)/lib'
7401 else
7402 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7403 toolexecmainlibdir='$(libdir)'
7405 multi_os_directory=`$CC -print-multi-os-directory`
7406 case $multi_os_directory in
7407 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7408 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7409 esac
7414 # Determine gcj version number.
7416 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7418 GCJVERSION=$gcjversion
7420 cat >> confdefs.h <<EOF
7421 #define GCJVERSION "$GCJVERSION"
7425 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
7427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7429 echo "configure:7430: checking for $ac_hdr" >&5
7430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7432 else
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7436 #include <$ac_hdr>
7438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7439 { (eval echo configure:7440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7441 if test -z "$ac_err"; then
7442 rm -rf conftest*
7443 eval "ac_cv_header_$ac_safe=yes"
7444 else
7445 echo "$ac_err" >&5
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 rm -rf conftest*
7449 eval "ac_cv_header_$ac_safe=no"
7451 rm -f conftest*
7453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7454 echo "$ac_t""yes" 1>&6
7455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7456 cat >> confdefs.h <<EOF
7457 #define $ac_tr_hdr 1
7460 else
7461 echo "$ac_t""no" 1>&6
7463 done
7465 for ac_hdr in dirent.h
7467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7469 echo "configure:7470: checking for $ac_hdr" >&5
7470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7471 echo $ac_n "(cached) $ac_c" 1>&6
7472 else
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476 #include <$ac_hdr>
7478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7479 { (eval echo configure:7480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7481 if test -z "$ac_err"; then
7482 rm -rf conftest*
7483 eval "ac_cv_header_$ac_safe=yes"
7484 else
7485 echo "$ac_err" >&5
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7488 rm -rf conftest*
7489 eval "ac_cv_header_$ac_safe=no"
7491 rm -f conftest*
7493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7496 cat >> confdefs.h <<EOF
7497 #define $ac_tr_hdr 1
7500 else
7501 echo "$ac_t""no" 1>&6
7503 done
7505 for ac_hdr in inttypes.h
7507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7509 echo "configure:7510: checking for $ac_hdr" >&5
7510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7512 else
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 #include <$ac_hdr>
7518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7519 { (eval echo configure:7520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7521 if test -z "$ac_err"; then
7522 rm -rf conftest*
7523 eval "ac_cv_header_$ac_safe=yes"
7524 else
7525 echo "$ac_err" >&5
7526 echo "configure: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7528 rm -rf conftest*
7529 eval "ac_cv_header_$ac_safe=no"
7531 rm -f conftest*
7533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7534 echo "$ac_t""yes" 1>&6
7535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7536 cat >> confdefs.h <<EOF
7537 #define $ac_tr_hdr 1
7540 cat >> confdefs.h <<\EOF
7541 #define HAVE_INTTYPES_H 1
7544 cat >> confdefs.h <<\EOF
7545 #define JV_HAVE_INTTYPES_H 1
7549 else
7550 echo "$ac_t""no" 1>&6
7552 done
7554 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7555 echo "configure:7556: checking for sys/wait.h that is POSIX.1 compatible" >&5
7556 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7558 else
7559 cat > conftest.$ac_ext <<EOF
7560 #line 7561 "configure"
7561 #include "confdefs.h"
7562 #include <sys/types.h>
7563 #include <sys/wait.h>
7564 #ifndef WEXITSTATUS
7565 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7566 #endif
7567 #ifndef WIFEXITED
7568 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7569 #endif
7570 int main() {
7571 int s;
7572 wait (&s);
7573 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7574 ; return 0; }
7576 if { (eval echo configure:7577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7577 rm -rf conftest*
7578 ac_cv_header_sys_wait_h=yes
7579 else
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 rm -rf conftest*
7583 ac_cv_header_sys_wait_h=no
7585 rm -f conftest*
7588 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7589 if test $ac_cv_header_sys_wait_h = yes; then
7590 cat >> confdefs.h <<\EOF
7591 #define HAVE_SYS_WAIT_H 1
7597 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7598 echo "configure:7599: checking for ANSI C header files" >&5
7599 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7600 echo $ac_n "(cached) $ac_c" 1>&6
7601 else
7602 cat > conftest.$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7605 #include <stdlib.h>
7606 #include <stdarg.h>
7607 #include <string.h>
7608 #include <float.h>
7610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7611 { (eval echo configure:7612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7613 if test -z "$ac_err"; then
7614 rm -rf conftest*
7615 ac_cv_header_stdc=yes
7616 else
7617 echo "$ac_err" >&5
7618 echo "configure: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 rm -rf conftest*
7621 ac_cv_header_stdc=no
7623 rm -f conftest*
7625 if test $ac_cv_header_stdc = yes; then
7626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7627 cat > conftest.$ac_ext <<EOF
7628 #line 7629 "configure"
7629 #include "confdefs.h"
7630 #include <string.h>
7632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7633 egrep "memchr" >/dev/null 2>&1; then
7635 else
7636 rm -rf conftest*
7637 ac_cv_header_stdc=no
7639 rm -f conftest*
7643 if test $ac_cv_header_stdc = yes; then
7644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure"
7647 #include "confdefs.h"
7648 #include <stdlib.h>
7650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7651 egrep "free" >/dev/null 2>&1; then
7653 else
7654 rm -rf conftest*
7655 ac_cv_header_stdc=no
7657 rm -f conftest*
7661 if test $ac_cv_header_stdc = yes; then
7662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7663 if test "$cross_compiling" = yes; then
7665 else
7666 cat > conftest.$ac_ext <<EOF
7667 #line 7668 "configure"
7668 #include "confdefs.h"
7669 #include <ctype.h>
7670 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7671 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7673 int main () { int i; for (i = 0; i < 256; i++)
7674 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7675 exit (0); }
7678 if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7679 then
7681 else
7682 echo "configure: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 rm -fr conftest*
7685 ac_cv_header_stdc=no
7687 rm -fr conftest*
7693 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7694 if test $ac_cv_header_stdc = yes; then
7695 cat >> confdefs.h <<\EOF
7696 #define STDC_HEADERS 1
7701 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
7702 echo "configure:7703: checking for ssize_t" >&5
7703 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7705 else
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7709 #include <sys/types.h>
7710 #if STDC_HEADERS
7711 #include <stdlib.h>
7712 #include <stddef.h>
7713 #endif
7715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7716 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7717 rm -rf conftest*
7718 ac_cv_type_ssize_t=yes
7719 else
7720 rm -rf conftest*
7721 ac_cv_type_ssize_t=no
7723 rm -f conftest*
7726 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7727 if test $ac_cv_type_ssize_t = no; then
7728 cat >> confdefs.h <<\EOF
7729 #define ssize_t int
7735 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
7736 echo "configure:7737: checking for in_addr_t" >&5
7737 cat > conftest.$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740 #include <sys/types.h>
7741 #if STDC_HEADERS
7742 #include <stdlib.h>
7743 #include <stddef.h>
7744 #endif
7745 #if HAVE_NETINET_IN_H
7746 #include <netinet/in.h>
7747 #endif
7748 int main() {
7749 in_addr_t foo;
7750 ; return 0; }
7752 if { (eval echo configure:7753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7753 rm -rf conftest*
7754 cat >> confdefs.h <<\EOF
7755 #define HAVE_IN_ADDR_T 1
7758 echo "$ac_t""yes" 1>&6
7759 else
7760 echo "configure: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7762 rm -rf conftest*
7763 echo "$ac_t""no" 1>&6
7765 rm -f conftest*
7767 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
7768 echo "configure:7769: checking whether struct ip_mreq is in netinet/in.h" >&5
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 #include <netinet/in.h>
7773 int main() {
7774 struct ip_mreq mreq;
7775 ; return 0; }
7777 if { (eval echo configure:7778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7778 rm -rf conftest*
7779 cat >> confdefs.h <<\EOF
7780 #define HAVE_STRUCT_IP_MREQ 1
7783 echo "$ac_t""yes" 1>&6
7784 else
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7787 rm -rf conftest*
7788 echo "$ac_t""no" 1>&6
7790 rm -f conftest*
7792 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
7793 echo "configure:7794: checking whether struct ipv6_mreq is in netinet/in.h" >&5
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 #include <netinet/in.h>
7798 int main() {
7799 struct ipv6_mreq mreq6;
7800 ; return 0; }
7802 if { (eval echo configure:7803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7803 rm -rf conftest*
7804 cat >> confdefs.h <<\EOF
7805 #define HAVE_STRUCT_IPV6_MREQ 1
7808 echo "$ac_t""yes" 1>&6
7809 else
7810 echo "configure: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7812 rm -rf conftest*
7813 echo "$ac_t""no" 1>&6
7815 rm -f conftest*
7817 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
7818 echo "configure:7819: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
7819 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7822 #include <netinet/in.h>
7823 int main() {
7824 struct sockaddr_in6 addr6;
7825 ; return 0; }
7827 if { (eval echo configure:7828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7828 rm -rf conftest*
7829 cat >> confdefs.h <<\EOF
7830 #define HAVE_INET6 1
7833 echo "$ac_t""yes" 1>&6
7834 else
7835 echo "configure: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 rm -rf conftest*
7838 echo "$ac_t""no" 1>&6
7840 rm -f conftest*
7842 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
7843 echo "configure:7844: checking for socklen_t in sys/socket.h" >&5
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7847 #define _POSIX_PII_SOCKET
7848 #include <sys/types.h>
7849 #include <sys/socket.h>
7850 int main() {
7851 socklen_t x = 5;
7852 ; return 0; }
7854 if { (eval echo configure:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7855 rm -rf conftest*
7856 cat >> confdefs.h <<\EOF
7857 #define HAVE_SOCKLEN_T 1
7860 echo "$ac_t""yes" 1>&6
7861 else
7862 echo "configure: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7864 rm -rf conftest*
7865 echo "$ac_t""no" 1>&6
7867 rm -f conftest*
7869 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
7870 echo "configure:7871: checking for tm_gmtoff in struct tm" >&5
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 #include <time.h>
7875 int main() {
7876 struct tm tim; tim.tm_gmtoff = 0;
7877 ; return 0; }
7879 if { (eval echo configure:7880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7880 rm -rf conftest*
7881 cat >> confdefs.h <<\EOF
7882 #define STRUCT_TM_HAS_GMTOFF 1
7885 echo "$ac_t""yes" 1>&6
7886 else
7887 echo "configure: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7889 rm -rf conftest*
7890 echo "$ac_t""no" 1>&6
7891 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
7892 echo "configure:7893: checking for global timezone variable" >&5
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 #include <time.h>
7897 int main() {
7898 void i(){long z2 = 2*timezone;}
7899 ; return 0; }
7901 if { (eval echo configure:7902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7902 rm -rf conftest*
7903 cat >> confdefs.h <<\EOF
7904 #define HAVE_TIMEZONE 1
7907 echo "$ac_t""yes" 1>&6
7908 else
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7911 rm -rf conftest*
7912 echo "$ac_t""no" 1>&6
7913 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
7914 echo "configure:7915: checking for global _timezone variable" >&5
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7917 "configure"
7917 #include "confdefs.h"
7918 #include <time.h>
7919 int main() {
7920 long z2 = _timezone;
7921 ; return 0; }
7923 if { (eval echo configure:7924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7924 rm -rf conftest*
7925 cat >> confdefs.h <<\EOF
7926 #define HAVE_UNDERSCORE_TIMEZONE 1
7929 echo "$ac_t""yes" 1>&6
7930 else
7931 echo "configure: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7933 rm -rf conftest*
7934 echo "$ac_t""no" 1>&6
7936 rm -f conftest*
7938 rm -f conftest*
7940 rm -f conftest*
7942 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7943 # for constant arguments. Useless!
7944 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7945 echo "configure:7946: checking for working alloca.h" >&5
7946 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7948 else
7949 cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7952 #include <alloca.h>
7953 int main() {
7954 char *p = alloca(2 * sizeof(int));
7955 ; return 0; }
7957 if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958 rm -rf conftest*
7959 ac_cv_header_alloca_h=yes
7960 else
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7963 rm -rf conftest*
7964 ac_cv_header_alloca_h=no
7966 rm -f conftest*
7969 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7970 if test $ac_cv_header_alloca_h = yes; then
7971 cat >> confdefs.h <<\EOF
7972 #define HAVE_ALLOCA_H 1
7977 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7978 echo "configure:7979: checking for alloca" >&5
7979 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7981 else
7982 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure"
7984 #include "confdefs.h"
7986 #ifdef __GNUC__
7987 # define alloca __builtin_alloca
7988 #else
7989 # ifdef _MSC_VER
7990 # include <malloc.h>
7991 # define alloca _alloca
7992 # else
7993 # if HAVE_ALLOCA_H
7994 # include <alloca.h>
7995 # else
7996 # ifdef _AIX
7997 #pragma alloca
7998 # else
7999 # ifndef alloca /* predefined by HP cc +Olibcalls */
8000 char *alloca ();
8001 # endif
8002 # endif
8003 # endif
8004 # endif
8005 #endif
8007 int main() {
8008 char *p = (char *) alloca(1);
8009 ; return 0; }
8011 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8012 rm -rf conftest*
8013 ac_cv_func_alloca_works=yes
8014 else
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 rm -rf conftest*
8018 ac_cv_func_alloca_works=no
8020 rm -f conftest*
8023 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8024 if test $ac_cv_func_alloca_works = yes; then
8025 cat >> confdefs.h <<\EOF
8026 #define HAVE_ALLOCA 1
8031 if test $ac_cv_func_alloca_works = no; then
8032 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8033 # that cause trouble. Some versions do not even contain alloca or
8034 # contain a buggy version. If you still want to use their alloca,
8035 # use ar to extract alloca.o from them instead of compiling alloca.c.
8036 ALLOCA=alloca.${ac_objext}
8037 cat >> confdefs.h <<\EOF
8038 #define C_ALLOCA 1
8042 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8043 echo "configure:8044: checking whether alloca needs Cray hooks" >&5
8044 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8045 echo $ac_n "(cached) $ac_c" 1>&6
8046 else
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8050 #if defined(CRAY) && ! defined(CRAY2)
8051 webecray
8052 #else
8053 wenotbecray
8054 #endif
8057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8058 egrep "webecray" >/dev/null 2>&1; then
8059 rm -rf conftest*
8060 ac_cv_os_cray=yes
8061 else
8062 rm -rf conftest*
8063 ac_cv_os_cray=no
8065 rm -f conftest*
8069 echo "$ac_t""$ac_cv_os_cray" 1>&6
8070 if test $ac_cv_os_cray = yes; then
8071 for ac_func in _getb67 GETB67 getb67; do
8072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8073 echo "configure:8074: checking for $ac_func" >&5
8074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8076 else
8077 cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure"
8079 #include "confdefs.h"
8080 /* System header to define __stub macros and hopefully few prototypes,
8081 which can conflict with char $ac_func(); below. */
8082 #include <assert.h>
8083 /* Override any gcc2 internal prototype to avoid an error. */
8084 /* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */
8086 char $ac_func();
8088 int main() {
8090 /* The GNU C library defines this for functions which it implements
8091 to always fail with ENOSYS. Some functions are actually named
8092 something starting with __ and the normal name is an alias. */
8093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8094 choke me
8095 #else
8096 $ac_func();
8097 #endif
8099 ; return 0; }
8101 if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8102 rm -rf conftest*
8103 eval "ac_cv_func_$ac_func=yes"
8104 else
8105 echo "configure: failed program was:" >&5
8106 cat conftest.$ac_ext >&5
8107 rm -rf conftest*
8108 eval "ac_cv_func_$ac_func=no"
8110 rm -f conftest*
8113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8114 echo "$ac_t""yes" 1>&6
8115 cat >> confdefs.h <<EOF
8116 #define CRAY_STACKSEG_END $ac_func
8119 break
8120 else
8121 echo "$ac_t""no" 1>&6
8124 done
8127 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8128 echo "configure:8129: checking stack direction for C alloca" >&5
8129 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8130 echo $ac_n "(cached) $ac_c" 1>&6
8131 else
8132 if test "$cross_compiling" = yes; then
8133 ac_cv_c_stack_direction=0
8134 else
8135 cat > conftest.$ac_ext <<EOF
8136 #line 8137 "configure"
8137 #include "confdefs.h"
8138 find_stack_direction ()
8140 static char *addr = 0;
8141 auto char dummy;
8142 if (addr == 0)
8144 addr = &dummy;
8145 return find_stack_direction ();
8147 else
8148 return (&dummy > addr) ? 1 : -1;
8150 main ()
8152 exit (find_stack_direction() < 0);
8155 if { (eval echo configure:8156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8156 then
8157 ac_cv_c_stack_direction=1
8158 else
8159 echo "configure: failed program was:" >&5
8160 cat conftest.$ac_ext >&5
8161 rm -fr conftest*
8162 ac_cv_c_stack_direction=-1
8164 rm -fr conftest*
8169 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8170 cat >> confdefs.h <<EOF
8171 #define STACK_DIRECTION $ac_cv_c_stack_direction
8176 for ac_hdr in unistd.h
8178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8180 echo "configure:8181: checking for $ac_hdr" >&5
8181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8182 echo $ac_n "(cached) $ac_c" 1>&6
8183 else
8184 cat > conftest.$ac_ext <<EOF
8185 #line 8186 "configure"
8186 #include "confdefs.h"
8187 #include <$ac_hdr>
8189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8190 { (eval echo configure:8191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8192 if test -z "$ac_err"; then
8193 rm -rf conftest*
8194 eval "ac_cv_header_$ac_safe=yes"
8195 else
8196 echo "$ac_err" >&5
8197 echo "configure: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8199 rm -rf conftest*
8200 eval "ac_cv_header_$ac_safe=no"
8202 rm -f conftest*
8204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8205 echo "$ac_t""yes" 1>&6
8206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8207 cat >> confdefs.h <<EOF
8208 #define $ac_tr_hdr 1
8211 else
8212 echo "$ac_t""no" 1>&6
8214 done
8216 for ac_func in getpagesize
8218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8219 echo "configure:8220: checking for $ac_func" >&5
8220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8221 echo $ac_n "(cached) $ac_c" 1>&6
8222 else
8223 cat > conftest.$ac_ext <<EOF
8224 #line 8225 "configure"
8225 #include "confdefs.h"
8226 /* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */
8228 #include <assert.h>
8229 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8232 char $ac_func();
8234 int main() {
8236 /* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */
8239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8240 choke me
8241 #else
8242 $ac_func();
8243 #endif
8245 ; return 0; }
8247 if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8248 rm -rf conftest*
8249 eval "ac_cv_func_$ac_func=yes"
8250 else
8251 echo "configure: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8253 rm -rf conftest*
8254 eval "ac_cv_func_$ac_func=no"
8256 rm -f conftest*
8259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8260 echo "$ac_t""yes" 1>&6
8261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8262 cat >> confdefs.h <<EOF
8263 #define $ac_tr_func 1
8266 else
8267 echo "$ac_t""no" 1>&6
8269 done
8271 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8272 echo "configure:8273: checking for working mmap" >&5
8273 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
8275 else
8276 if test "$cross_compiling" = yes; then
8277 ac_cv_func_mmap_fixed_mapped=no
8278 else
8279 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8283 /* Thanks to Mike Haertel and Jim Avera for this test.
8284 Here is a matrix of mmap possibilities:
8285 mmap private not fixed
8286 mmap private fixed at somewhere currently unmapped
8287 mmap private fixed at somewhere already mapped
8288 mmap shared not fixed
8289 mmap shared fixed at somewhere currently unmapped
8290 mmap shared fixed at somewhere already mapped
8291 For private mappings, we should verify that changes cannot be read()
8292 back from the file, nor mmap's back from the file at a different
8293 address. (There have been systems where private was not correctly
8294 implemented like the infamous i386 svr4.0, and systems where the
8295 VM page cache was not coherent with the filesystem buffer cache
8296 like early versions of FreeBSD and possibly contemporary NetBSD.)
8297 For shared mappings, we should conversely verify that changes get
8298 propogated back to all the places they're supposed to be.
8300 Grep wants private fixed already mapped.
8301 The main things grep needs to know about mmap are:
8302 * does it exist and is it safe to write into the mmap'd area
8303 * how to use it (BSD variants) */
8304 #include <sys/types.h>
8305 #include <fcntl.h>
8306 #include <sys/mman.h>
8308 /* This mess was copied from the GNU getpagesize.h. */
8309 #ifndef HAVE_GETPAGESIZE
8310 # ifdef HAVE_UNISTD_H
8311 # include <unistd.h>
8312 # endif
8314 /* Assume that all systems that can run configure have sys/param.h. */
8315 # ifndef HAVE_SYS_PARAM_H
8316 # define HAVE_SYS_PARAM_H 1
8317 # endif
8319 # ifdef _SC_PAGESIZE
8320 # define getpagesize() sysconf(_SC_PAGESIZE)
8321 # else /* no _SC_PAGESIZE */
8322 # ifdef HAVE_SYS_PARAM_H
8323 # include <sys/param.h>
8324 # ifdef EXEC_PAGESIZE
8325 # define getpagesize() EXEC_PAGESIZE
8326 # else /* no EXEC_PAGESIZE */
8327 # ifdef NBPG
8328 # define getpagesize() NBPG * CLSIZE
8329 # ifndef CLSIZE
8330 # define CLSIZE 1
8331 # endif /* no CLSIZE */
8332 # else /* no NBPG */
8333 # ifdef NBPC
8334 # define getpagesize() NBPC
8335 # else /* no NBPC */
8336 # ifdef PAGESIZE
8337 # define getpagesize() PAGESIZE
8338 # endif /* PAGESIZE */
8339 # endif /* no NBPC */
8340 # endif /* no NBPG */
8341 # endif /* no EXEC_PAGESIZE */
8342 # else /* no HAVE_SYS_PARAM_H */
8343 # define getpagesize() 8192 /* punt totally */
8344 # endif /* no HAVE_SYS_PARAM_H */
8345 # endif /* no _SC_PAGESIZE */
8347 #endif /* no HAVE_GETPAGESIZE */
8349 #ifdef __cplusplus
8350 extern "C" { void *malloc(unsigned); }
8351 #else
8352 char *malloc();
8353 #endif
8356 main()
8358 char *data, *data2, *data3;
8359 int i, pagesize;
8360 int fd;
8362 pagesize = getpagesize();
8365 * First, make a file with some known garbage in it.
8367 data = malloc(pagesize);
8368 if (!data)
8369 exit(1);
8370 for (i = 0; i < pagesize; ++i)
8371 *(data + i) = rand();
8372 umask(0);
8373 fd = creat("conftestmmap", 0600);
8374 if (fd < 0)
8375 exit(1);
8376 if (write(fd, data, pagesize) != pagesize)
8377 exit(1);
8378 close(fd);
8381 * Next, try to mmap the file at a fixed address which
8382 * already has something else allocated at it. If we can,
8383 * also make sure that we see the same garbage.
8385 fd = open("conftestmmap", O_RDWR);
8386 if (fd < 0)
8387 exit(1);
8388 data2 = malloc(2 * pagesize);
8389 if (!data2)
8390 exit(1);
8391 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8392 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8393 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8394 exit(1);
8395 for (i = 0; i < pagesize; ++i)
8396 if (*(data + i) != *(data2 + i))
8397 exit(1);
8400 * Finally, make sure that changes to the mapped area
8401 * do not percolate back to the file as seen by read().
8402 * (This is a bug on some variants of i386 svr4.0.)
8404 for (i = 0; i < pagesize; ++i)
8405 *(data2 + i) = *(data2 + i) + 1;
8406 data3 = malloc(pagesize);
8407 if (!data3)
8408 exit(1);
8409 if (read(fd, data3, pagesize) != pagesize)
8410 exit(1);
8411 for (i = 0; i < pagesize; ++i)
8412 if (*(data + i) != *(data3 + i))
8413 exit(1);
8414 close(fd);
8415 unlink("conftestmmap");
8416 exit(0);
8420 if { (eval echo configure:8421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8421 then
8422 ac_cv_func_mmap_fixed_mapped=yes
8423 else
8424 echo "configure: failed program was:" >&5
8425 cat conftest.$ac_ext >&5
8426 rm -fr conftest*
8427 ac_cv_func_mmap_fixed_mapped=no
8429 rm -fr conftest*
8434 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8435 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8436 cat >> confdefs.h <<\EOF
8437 #define HAVE_MMAP 1
8443 for ac_prog in perl
8445 # Extract the first word of "$ac_prog", so it can be a program name with args.
8446 set dummy $ac_prog; ac_word=$2
8447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8448 echo "configure:8449: checking for $ac_word" >&5
8449 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8451 else
8452 if test -n "$PERL"; then
8453 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8454 else
8455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8456 ac_dummy="$PATH"
8457 for ac_dir in $ac_dummy; do
8458 test -z "$ac_dir" && ac_dir=.
8459 if test -f $ac_dir/$ac_word; then
8460 ac_cv_prog_PERL="$ac_prog"
8461 break
8463 done
8464 IFS="$ac_save_ifs"
8467 PERL="$ac_cv_prog_PERL"
8468 if test -n "$PERL"; then
8469 echo "$ac_t""$PERL" 1>&6
8470 else
8471 echo "$ac_t""no" 1>&6
8474 test -n "$PERL" && break
8475 done
8476 test -n "$PERL" || PERL="false"
8479 SYSDEP_SOURCES=
8480 SIGNAL_HANDLER_AUX=
8482 case "${host}" in
8483 i?86-*-linux*)
8484 SIGNAL_HANDLER=include/i386-signal.h
8486 sparc*-sun-solaris*)
8487 SIGNAL_HANDLER=include/sparc-signal.h
8489 # ia64-*)
8490 # SYSDEP_SOURCES=sysdep/ia64.c
8491 # test -d sysdep || mkdir sysdep
8492 # ;;
8493 ia64-*-linux*)
8494 SIGNAL_HANDLER=include/dwarf2-signal.h
8496 powerpc*-*-linux*)
8497 SIGNAL_HANDLER=include/powerpc-signal.h
8499 alpha*-*-linux*)
8500 SIGNAL_HANDLER=include/dwarf2-signal.h
8502 s390*-*-linux*)
8503 SIGNAL_HANDLER=include/s390-signal.h
8505 x86_64*-*-linux*)
8506 SIGNAL_HANDLER=include/x86_64-signal.h
8507 SIGNAL_HANDLER_AUX=include/i386-signal.h
8509 sparc*-*-linux*)
8510 SIGNAL_HANDLER=include/dwarf2-signal.h
8512 sh-*-linux* | sh[34]*-*-linux*)
8513 SIGNAL_HANDLER=include/dwarf2-signal.h
8515 *mingw*)
8516 SIGNAL_HANDLER=include/win32-signal.h
8518 mips*-*-linux*)
8519 SIGNAL_HANDLER=include/mips-signal.h
8522 SIGNAL_HANDLER=include/default-signal.h
8524 esac
8526 # If we're using sjlj exceptions, forget what we just learned.
8527 if test "$enable_sjlj_exceptions" = yes; then
8528 SIGNAL_HANDLER=include/default-signal.h
8529 SIGNAL_HANDLER_AUX=
8532 # Define here any compiler flags that you need in order to make backtrace() work.
8533 BACKTRACESPEC=
8534 case "${host}" in
8535 x86_64*-*-linux*|i?86-*)
8536 BACKTRACESPEC=-fno-omit-frame-pointer
8538 esac
8543 if test -z "$SIGNAL_HANDLER_AUX"; then
8544 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
8549 if test "${multilib}" = "yes"; then
8550 multilib_arg="--enable-multilib"
8551 else
8552 multilib_arg=
8557 here=`${PWDCMD-pwd}`
8560 # We get this from the environment.
8563 trap '' 1 2 15
8564 cat > confcache <<\EOF
8565 # This file is a shell script that caches the results of configure
8566 # tests run on this system so they can be shared between configure
8567 # scripts and configure runs. It is not useful on other systems.
8568 # If it contains results you don't want to keep, you may remove or edit it.
8570 # By default, configure uses ./config.cache as the cache file,
8571 # creating it if it does not exist already. You can give configure
8572 # the --cache-file=FILE option to use a different cache file; that is
8573 # what configure does when it calls configure scripts in
8574 # subdirectories, so they share the cache.
8575 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8576 # config.status only pays attention to the cache file if you give it the
8577 # --recheck option to rerun configure.
8580 # The following way of writing the cache mishandles newlines in values,
8581 # but we know of no workaround that is simple, portable, and efficient.
8582 # So, don't put newlines in cache variables' values.
8583 # Ultrix sh set writes to stderr and can't be redirected directly,
8584 # and sets the high bit in the cache file unless we assign to the vars.
8585 (set) 2>&1 |
8586 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8587 *ac_space=\ *)
8588 # `set' does not quote correctly, so add quotes (double-quote substitution
8589 # turns \\\\ into \\, and sed turns \\ into \).
8590 sed -n \
8591 -e "s/'/'\\\\''/g" \
8592 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8595 # `set' quotes correctly as required by POSIX, so do not add quotes.
8596 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8598 esac >> confcache
8599 if cmp -s $cache_file confcache; then
8601 else
8602 if test -w $cache_file; then
8603 echo "updating cache $cache_file"
8604 cat confcache > $cache_file
8605 else
8606 echo "not updating unwritable cache $cache_file"
8609 rm -f confcache
8611 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8614 # Let make expand exec_prefix.
8615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8617 # Any assignment to VPATH causes Sun make to only execute
8618 # the first set of double-colon rules, so remove it if not needed.
8619 # If there is a colon in the path, we need to keep it.
8620 if test "x$srcdir" = x.; then
8621 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8624 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8626 DEFS=-DHAVE_CONFIG_H
8628 # Without the "./", some shells look in PATH for config.status.
8629 : ${CONFIG_STATUS=./config.status}
8631 echo creating $CONFIG_STATUS
8632 rm -f $CONFIG_STATUS
8633 cat > $CONFIG_STATUS <<EOF
8634 #! /bin/sh
8635 # Generated automatically by configure.
8636 # Run this file to recreate the current configuration.
8637 # This directory was configured as follows,
8638 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8640 # $0 $ac_configure_args
8642 # Compiler output produced by configure, useful for debugging
8643 # configure, is in ./config.log if it exists.
8645 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8646 for ac_option
8648 case "\$ac_option" in
8649 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8650 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8651 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8652 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8653 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8654 exit 0 ;;
8655 -help | --help | --hel | --he | --h)
8656 echo "\$ac_cs_usage"; exit 0 ;;
8657 *) echo "\$ac_cs_usage"; exit 1 ;;
8658 esac
8659 done
8661 ac_given_srcdir=$srcdir
8662 ac_given_INSTALL="$INSTALL"
8664 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
8666 cat >> $CONFIG_STATUS <<EOF
8668 # Protect against being on the right side of a sed subst in config.status.
8669 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8670 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8671 $ac_vpsub
8672 $extrasub
8673 s%@SHELL@%$SHELL%g
8674 s%@CFLAGS@%$CFLAGS%g
8675 s%@CPPFLAGS@%$CPPFLAGS%g
8676 s%@CXXFLAGS@%$CXXFLAGS%g
8677 s%@FFLAGS@%$FFLAGS%g
8678 s%@DEFS@%$DEFS%g
8679 s%@LDFLAGS@%$LDFLAGS%g
8680 s%@LIBS@%$LIBS%g
8681 s%@exec_prefix@%$exec_prefix%g
8682 s%@prefix@%$prefix%g
8683 s%@program_transform_name@%$program_transform_name%g
8684 s%@bindir@%$bindir%g
8685 s%@sbindir@%$sbindir%g
8686 s%@libexecdir@%$libexecdir%g
8687 s%@datadir@%$datadir%g
8688 s%@sysconfdir@%$sysconfdir%g
8689 s%@sharedstatedir@%$sharedstatedir%g
8690 s%@localstatedir@%$localstatedir%g
8691 s%@libdir@%$libdir%g
8692 s%@includedir@%$includedir%g
8693 s%@oldincludedir@%$oldincludedir%g
8694 s%@infodir@%$infodir%g
8695 s%@mandir@%$mandir%g
8696 s%@LN_S@%$LN_S%g
8697 s%@libgcj_basedir@%$libgcj_basedir%g
8698 s%@mkinstalldirs@%$mkinstalldirs%g
8699 s%@host@%$host%g
8700 s%@host_alias@%$host_alias%g
8701 s%@host_cpu@%$host_cpu%g
8702 s%@host_vendor@%$host_vendor%g
8703 s%@host_os@%$host_os%g
8704 s%@target@%$target%g
8705 s%@target_alias@%$target_alias%g
8706 s%@target_cpu@%$target_cpu%g
8707 s%@target_vendor@%$target_vendor%g
8708 s%@target_os@%$target_os%g
8709 s%@build@%$build%g
8710 s%@build_alias@%$build_alias%g
8711 s%@build_cpu@%$build_cpu%g
8712 s%@build_vendor@%$build_vendor%g
8713 s%@build_os@%$build_os%g
8714 s%@CC@%$CC%g
8715 s%@glibjava_CXX@%$glibjava_CXX%g
8716 s%@CXX@%$CXX%g
8717 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8718 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8719 s%@INSTALL_DATA@%$INSTALL_DATA%g
8720 s%@PACKAGE@%$PACKAGE%g
8721 s%@VERSION@%$VERSION%g
8722 s%@ACLOCAL@%$ACLOCAL%g
8723 s%@AUTOCONF@%$AUTOCONF%g
8724 s%@AUTOMAKE@%$AUTOMAKE%g
8725 s%@AUTOHEADER@%$AUTOHEADER%g
8726 s%@MAKEINFO@%$MAKEINFO%g
8727 s%@SET_MAKE@%$SET_MAKE%g
8728 s%@AS@%$AS%g
8729 s%@AR@%$AR%g
8730 s%@RANLIB@%$RANLIB%g
8731 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8732 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8733 s%@MAINT@%$MAINT%g
8734 s%@EXEEXT@%$EXEEXT%g
8735 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8736 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8737 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8738 s%@INCLTDL@%$INCLTDL%g
8739 s%@LIBLTDL@%$LIBLTDL%g
8740 s%@DIRLTDL@%$DIRLTDL%g
8741 s%@OBJEXT@%$OBJEXT%g
8742 s%@STRIP@%$STRIP%g
8743 s%@LIBTOOL@%$LIBTOOL%g
8744 s%@CXXCPP@%$CXXCPP%g
8745 s%@subdirs@%$subdirs%g
8746 s%@COMPPATH@%$COMPPATH%g
8747 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8748 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8749 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
8750 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
8751 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8752 s%@INTERPRETER@%$INTERPRETER%g
8753 s%@LIBFFI@%$LIBFFI%g
8754 s%@LIBFFIINCS@%$LIBFFIINCS%g
8755 s%@EXTRA_CC_FILES@%$EXTRA_CC_FILES%g
8756 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8757 s%@CPP@%$CPP%g
8758 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8759 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8760 s%@ZLIBSPEC@%$ZLIBSPEC%g
8761 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8762 s%@X_CFLAGS@%$X_CFLAGS%g
8763 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8764 s%@X_LIBS@%$X_LIBS%g
8765 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8766 s%@TOOLKIT@%$TOOLKIT%g
8767 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8768 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8769 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8770 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8771 s%@GTK_CAIRO_TRUE@%$GTK_CAIRO_TRUE%g
8772 s%@GTK_CAIRO_FALSE@%$GTK_CAIRO_FALSE%g
8773 s%@PKG_CONFIG@%$PKG_CONFIG%g
8774 s%@CAIRO_CFLAGS@%$CAIRO_CFLAGS%g
8775 s%@CAIRO_LIBS@%$CAIRO_LIBS%g
8776 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
8777 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
8778 s%@GCLIBS@%$GCLIBS%g
8779 s%@GCINCS@%$GCINCS%g
8780 s%@GCDEPS@%$GCDEPS%g
8781 s%@GCOBJS@%$GCOBJS%g
8782 s%@GCSPEC@%$GCSPEC%g
8783 s%@JC1GCSPEC@%$JC1GCSPEC%g
8784 s%@GCTESTSPEC@%$GCTESTSPEC%g
8785 s%@THREADLIBS@%$THREADLIBS%g
8786 s%@THREADINCS@%$THREADINCS%g
8787 s%@THREADDEPS@%$THREADDEPS%g
8788 s%@THREADOBJS@%$THREADOBJS%g
8789 s%@THREADSPEC@%$THREADSPEC%g
8790 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8791 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
8792 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8793 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8794 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8795 s%@tool_include_dir@%$tool_include_dir%g
8796 s%@gcc_version@%$gcc_version%g
8797 s%@LIBICONV@%$LIBICONV%g
8798 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8799 s%@GTK_LIBS@%$GTK_LIBS%g
8800 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8801 s%@GLIB_LIBS@%$GLIB_LIBS%g
8802 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8803 s%@LIBART_LIBS@%$LIBART_LIBS%g
8804 s%@GCJ@%$GCJ%g
8805 s%@GCJFLAGS@%$GCJFLAGS%g
8806 s%@ZLIBS@%$ZLIBS%g
8807 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8808 s%@ZINCS@%$ZINCS%g
8809 s%@DIVIDESPEC@%$DIVIDESPEC%g
8810 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8811 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8812 s%@IEEESPEC@%$IEEESPEC%g
8813 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
8814 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
8815 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
8816 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
8817 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8818 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8819 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8820 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8821 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8822 s%@toolexecdir@%$toolexecdir%g
8823 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8824 s%@toolexeclibdir@%$toolexeclibdir%g
8825 s%@GCJVERSION@%$GCJVERSION%g
8826 s%@ALLOCA@%$ALLOCA%g
8827 s%@PERL@%$PERL%g
8828 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
8829 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
8830 s%@here@%$here%g
8832 CEOF
8835 cat >> $CONFIG_STATUS <<\EOF
8837 # Split the substitutions into bite-sized pieces for seds with
8838 # small command number limits, like on Digital OSF/1 and HP-UX.
8839 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8840 ac_file=1 # Number of current file.
8841 ac_beg=1 # First line for current file.
8842 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8843 ac_more_lines=:
8844 ac_sed_cmds=""
8845 while $ac_more_lines; do
8846 if test $ac_beg -gt 1; then
8847 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8848 else
8849 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8851 if test ! -s conftest.s$ac_file; then
8852 ac_more_lines=false
8853 rm -f conftest.s$ac_file
8854 else
8855 if test -z "$ac_sed_cmds"; then
8856 ac_sed_cmds="sed -f conftest.s$ac_file"
8857 else
8858 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8860 ac_file=`expr $ac_file + 1`
8861 ac_beg=$ac_end
8862 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8864 done
8865 if test -z "$ac_sed_cmds"; then
8866 ac_sed_cmds=cat
8870 cat >> $CONFIG_STATUS <<EOF
8872 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
8874 cat >> $CONFIG_STATUS <<\EOF
8875 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8877 case "$ac_file" in
8878 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8879 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8880 *) ac_file_in="${ac_file}.in" ;;
8881 esac
8883 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8885 # Remove last slash and all that follows it. Not all systems have dirname.
8886 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8887 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8888 # The file is in a subdirectory.
8889 test ! -d "$ac_dir" && mkdir "$ac_dir"
8890 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8891 # A "../" for each directory in $ac_dir_suffix.
8892 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8893 else
8894 ac_dir_suffix= ac_dots=
8897 case "$ac_given_srcdir" in
8898 .) srcdir=.
8899 if test -z "$ac_dots"; then top_srcdir=.
8900 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8901 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8902 *) # Relative path.
8903 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8904 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8905 esac
8907 case "$ac_given_INSTALL" in
8908 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8909 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8910 esac
8912 echo creating "$ac_file"
8913 rm -f "$ac_file"
8914 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8915 case "$ac_file" in
8916 *Makefile*) ac_comsub="1i\\
8917 # $configure_input" ;;
8918 *) ac_comsub= ;;
8919 esac
8921 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8922 sed -e "$ac_comsub
8923 s%@configure_input@%$configure_input%g
8924 s%@srcdir@%$srcdir%g
8925 s%@top_srcdir@%$top_srcdir%g
8926 s%@INSTALL@%$INSTALL%g
8927 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8928 fi; done
8929 rm -f conftest.s*
8931 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8932 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8934 # ac_d sets the value in "#define NAME VALUE" lines.
8935 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8936 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8937 ac_dC='\3'
8938 ac_dD='%g'
8939 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8940 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8941 ac_uB='\([ ]\)%\1#\2define\3'
8942 ac_uC=' '
8943 ac_uD='\4%g'
8944 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8945 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8946 ac_eB='$%\1#\2define\3'
8947 ac_eC=' '
8948 ac_eD='%g'
8950 if test "${CONFIG_HEADERS+set}" != set; then
8952 cat >> $CONFIG_STATUS <<EOF
8953 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
8955 cat >> $CONFIG_STATUS <<\EOF
8957 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8959 case "$ac_file" in
8960 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8961 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8962 *) ac_file_in="${ac_file}.in" ;;
8963 esac
8965 echo creating $ac_file
8967 rm -f conftest.frag conftest.in conftest.out
8968 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8969 cat $ac_file_inputs > conftest.in
8973 # Transform confdefs.h into a sed script conftest.vals that substitutes
8974 # the proper values into config.h.in to produce config.h. And first:
8975 # Protect against being on the right side of a sed subst in config.status.
8976 # Protect against being in an unquoted here document in config.status.
8977 rm -f conftest.vals
8978 cat > conftest.hdr <<\EOF
8979 s/[\\&%]/\\&/g
8980 s%[\\$`]%\\&%g
8981 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8982 s%ac_d%ac_u%gp
8983 s%ac_u%ac_e%gp
8985 sed -n -f conftest.hdr confdefs.h > conftest.vals
8986 rm -f conftest.hdr
8988 # This sed command replaces #undef with comments. This is necessary, for
8989 # example, in the case of _POSIX_SOURCE, which is predefined and required
8990 # on some systems where configure will not decide to define it.
8991 cat >> conftest.vals <<\EOF
8992 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8995 # Break up conftest.vals because some shells have a limit on
8996 # the size of here documents, and old seds have small limits too.
8998 rm -f conftest.tail
8999 while :
9001 ac_lines=`grep -c . conftest.vals`
9002 # grep -c gives empty output for an empty file on some AIX systems.
9003 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9004 # Write a limited-size here document to conftest.frag.
9005 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9006 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9007 echo 'CEOF
9008 sed -f conftest.frag conftest.in > conftest.out
9009 rm -f conftest.in
9010 mv conftest.out conftest.in
9011 ' >> $CONFIG_STATUS
9012 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9013 rm -f conftest.vals
9014 mv conftest.tail conftest.vals
9015 done
9016 rm -f conftest.vals
9018 cat >> $CONFIG_STATUS <<\EOF
9019 rm -f conftest.frag conftest.h
9020 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9021 cat conftest.in >> conftest.h
9022 rm -f conftest.in
9023 if cmp -s $ac_file conftest.h 2>/dev/null; then
9024 echo "$ac_file is unchanged"
9025 rm -f conftest.h
9026 else
9027 # Remove last slash and all that follows it. Not all systems have dirname.
9028 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9029 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9030 # The file is in a subdirectory.
9031 test ! -d "$ac_dir" && mkdir "$ac_dir"
9033 rm -f $ac_file
9034 mv conftest.h $ac_file
9036 fi; done
9040 cat >> $CONFIG_STATUS <<EOF
9041 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"
9042 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"
9045 cat >> $CONFIG_STATUS <<\EOF
9046 srcdir=$ac_given_srcdir
9047 while test -n "$ac_sources"; do
9048 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9049 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9051 echo "linking $srcdir/$ac_source to $ac_dest"
9053 if test ! -r $srcdir/$ac_source; then
9054 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9056 rm -f $ac_dest
9058 # Make relative symlinks.
9059 # Remove last slash and all that follows it. Not all systems have dirname.
9060 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9061 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9062 # The dest file is in a subdirectory.
9063 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9064 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9065 # A "../" for each directory in $ac_dest_dir_suffix.
9066 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9067 else
9068 ac_dest_dir_suffix= ac_dots=
9071 case "$srcdir" in
9072 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9073 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9074 esac
9076 # Make a symlink if possible; otherwise try a hard link.
9077 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9078 ln $srcdir/$ac_source $ac_dest; then :
9079 else
9080 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9082 done
9084 cat >> $CONFIG_STATUS <<EOF
9086 srcdir=${srcdir}
9087 host=${host}
9088 target=${target}
9089 with_multisubdir=${with_multisubdir}
9090 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9091 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9092 libgcj_basedir=${libgcj_basedir}
9093 CC="${CC}"
9094 CXX="${CXX}"
9095 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9098 cat >> $CONFIG_STATUS <<\EOF
9099 am_indx=1
9100 for am_file in include/config.h gcj/libgcj-config.h; do
9101 case " $CONFIG_HEADERS " in
9102 *" $am_file "*)
9103 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9105 esac
9106 am_indx=`expr "$am_indx" + 1`
9107 done
9108 # Only add multilib support code if we just rebuilt top-level Makefile.
9109 case " $CONFIG_FILES " in
9110 *" Makefile "*)
9111 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9112 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9114 esac
9116 # Make subdirectories and `.d' files. Look in both srcdir and
9117 # builddir for the .java files.
9118 h=`${PWDCMD-pwd}`
9119 : > deps.mk
9120 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
9121 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
9122 fgrep -v testsuite | \
9123 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
9124 while read f; do
9125 echo "include $f" >> deps.mk
9126 test -f $f || {
9128 d=`echo $f | sed -e 's,/[^/]*$,,'`
9130 if test ! -d $d; then
9131 $libgcj_basedir/../mkinstalldirs $d
9133 echo > $f
9135 done
9137 exit 0
9139 chmod +x $CONFIG_STATUS
9140 rm -fr confdefs* $ac_clean_files
9141 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9143 if test "$no_recursion" != yes; then
9145 # Remove --cache-file and --srcdir arguments so they do not pile up.
9146 ac_sub_configure_args=
9147 ac_prev=
9148 for ac_arg in $ac_configure_args; do
9149 if test -n "$ac_prev"; then
9150 ac_prev=
9151 continue
9153 case "$ac_arg" in
9154 -cache-file | --cache-file | --cache-fil | --cache-fi \
9155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9156 ac_prev=cache_file ;;
9157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9161 ac_prev=srcdir ;;
9162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9164 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9165 esac
9166 done
9168 for ac_config_dir in $DIRLTDL; do
9170 # Do not complain, so a configure script can configure whichever
9171 # parts of a large source tree are present.
9172 if test ! -d $srcdir/$ac_config_dir; then
9173 continue
9176 echo configuring in $ac_config_dir
9178 case "$srcdir" in
9179 .) ;;
9181 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9182 else
9183 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9186 esac
9188 ac_popdir=`pwd`
9189 cd $ac_config_dir
9191 # A "../" for each directory in /$ac_config_dir.
9192 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9194 case "$srcdir" in
9195 .) # No --srcdir option. We are building in place.
9196 ac_sub_srcdir=$srcdir ;;
9197 /*) # Absolute path.
9198 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9199 *) # Relative path.
9200 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9201 esac
9203 # Check for guested configure; otherwise get Cygnus style configure.
9204 if test -f $ac_sub_srcdir/configure; then
9205 ac_sub_configure=$ac_sub_srcdir/configure
9206 elif test -f $ac_sub_srcdir/configure.in; then
9207 ac_sub_configure=$ac_configure
9208 else
9209 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9210 ac_sub_configure=
9213 # The recursion is here.
9214 if test -n "$ac_sub_configure"; then
9216 # Make the cache file name correct relative to the subdirectory.
9217 case "$cache_file" in
9218 /*) ac_sub_cache_file=$cache_file ;;
9219 *) # Relative path.
9220 ac_sub_cache_file="$ac_dots$cache_file" ;;
9221 esac
9222 case "$ac_given_INSTALL" in
9223 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9224 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9225 esac
9227 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9228 # The eval makes quoting arguments work.
9229 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9230 then :
9231 else
9232 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
9236 cd $ac_popdir
9237 done