PR c++/7584
[official-gcc.git] / libjava / configure
blob2a51bc0bbc219e01180e2819791556b35b808c20
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build many library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
39 ac_help="$ac_help
40 --enable-hash-synchronization
41 Use global hash table for monitor locks"
42 ac_help="$ac_help
43 --enable-libgcj-debug enable runtime debugging code"
44 ac_help="$ac_help
45 --enable-interpreter enable interpreter"
46 ac_help="$ac_help
47 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
48 ac_help="$ac_help
49 --disable-java-net disable java.net"
50 ac_help="$ac_help
51 --without-libffi don't use libffi"
52 ac_help="$ac_help
53 --disable-jvmpi disable JVMPI support"
54 ac_help="$ac_help
55 --with-ecos enable runtime eCos target support"
56 ac_help="$ac_help
57 --with-system-zlib use installed libz"
58 ac_help="$ac_help
59 --enable-java-gc=TYPE choose garbage collector [boehm]"
60 ac_help="$ac_help
61 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
62 ac_help="$ac_help
63 --with-x use the X Window System"
64 ac_help="$ac_help
65 --enable-java-awt list of AWT peer implementations to be built"
67 # Initialize some variables set by options.
68 # The variables have the same names as the options, with
69 # dashes changed to underlines.
70 build=NONE
71 cache_file=./config.cache
72 exec_prefix=NONE
73 host=NONE
74 no_create=
75 nonopt=NONE
76 no_recursion=
77 prefix=NONE
78 program_prefix=NONE
79 program_suffix=NONE
80 program_transform_name=s,x,x,
81 silent=
82 site=
83 sitefile=
84 srcdir=
85 target=NONE
86 verbose=
87 x_includes=NONE
88 x_libraries=NONE
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
102 # Initialize some other variables.
103 subdirs=
104 MFLAGS= MAKEFLAGS=
105 SHELL=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
107 ac_max_here_lines=12
109 ac_prev=
110 for ac_option
113 # If the previous option needs an argument, assign it.
114 if test -n "$ac_prev"; then
115 eval "$ac_prev=\$ac_option"
116 ac_prev=
117 continue
120 case "$ac_option" in
121 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 *) ac_optarg= ;;
123 esac
125 # Accept the important Cygnus configure options, so we can diagnose typos.
127 case "$ac_option" in
129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 ac_prev=bindir ;;
131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132 bindir="$ac_optarg" ;;
134 -build | --build | --buil | --bui | --bu)
135 ac_prev=build ;;
136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137 build="$ac_optarg" ;;
139 -cache-file | --cache-file | --cache-fil | --cache-fi \
140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141 ac_prev=cache_file ;;
142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144 cache_file="$ac_optarg" ;;
146 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 ac_prev=datadir ;;
148 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 | --da=*)
150 datadir="$ac_optarg" ;;
152 -disable-* | --disable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}=no" ;;
161 -enable-* | --enable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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 case "$ac_option" in
169 *=*) ;;
170 *) ac_optarg=yes ;;
171 esac
172 eval "enable_${ac_feature}='$ac_optarg'" ;;
174 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176 | --exec | --exe | --ex)
177 ac_prev=exec_prefix ;;
178 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180 | --exec=* | --exe=* | --ex=*)
181 exec_prefix="$ac_optarg" ;;
183 -gas | --gas | --ga | --g)
184 # Obsolete; use --with-gas.
185 with_gas=yes ;;
187 -help | --help | --hel | --he)
188 # Omit some internal or obsolete options to make the list less imposing.
189 # This message is too long to be a string in the A/UX 3.1 sh.
190 cat << EOF
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
193 Configuration:
194 --cache-file=FILE cache test results in FILE
195 --help print this message
196 --no-create do not create output files
197 --quiet, --silent do not print \`checking...' messages
198 --site-file=FILE use FILE as the site file
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -site-file | --site-file | --site-fil | --site-fi | --site-f)
370 ac_prev=sitefile ;;
371 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
372 sitefile="$ac_optarg" ;;
374 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 ac_prev=srcdir ;;
376 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 srcdir="$ac_optarg" ;;
379 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
380 | --syscon | --sysco | --sysc | --sys | --sy)
381 ac_prev=sysconfdir ;;
382 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
383 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
384 sysconfdir="$ac_optarg" ;;
386 -target | --target | --targe | --targ | --tar | --ta | --t)
387 ac_prev=target ;;
388 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
389 target="$ac_optarg" ;;
391 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 verbose=yes ;;
394 -version | --version | --versio | --versi | --vers)
395 echo "configure generated by autoconf version 2.13"
396 exit 0 ;;
398 -with-* | --with-*)
399 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 case "$ac_option" in
406 *=*) ;;
407 *) ac_optarg=yes ;;
408 esac
409 eval "with_${ac_package}='$ac_optarg'" ;;
411 -without-* | --without-*)
412 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}=no" ;;
420 --x)
421 # Obsolete; use --with-x.
422 with_x=yes ;;
424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
425 | --x-incl | --x-inc | --x-in | --x-i)
426 ac_prev=x_includes ;;
427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
429 x_includes="$ac_optarg" ;;
431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
433 ac_prev=x_libraries ;;
434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
436 x_libraries="$ac_optarg" ;;
438 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 if test "x$nonopt" != xNONE; then
446 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448 nonopt="$ac_option"
451 esac
452 done
454 if test -n "$ac_prev"; then
455 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460 # File descriptor usage:
461 # 0 standard input
462 # 1 file creation
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
469 exec 6>/dev/null
470 else
471 exec 6>&1
473 exec 5>./config.log
475 echo "\
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
478 " 1>&5
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
482 ac_configure_args=
483 for ac_arg
485 case "$ac_arg" in
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c) ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
492 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
493 esac
494 done
496 # NLS nuisances.
497 # Only set these to C if already set. These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
502 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
504 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 echo > confdefs.h
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file=java/lang/System.java
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517 ac_srcdir_defaulted=yes
518 # Try the directory containing this script, then its parent.
519 ac_prog=$0
520 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522 srcdir=$ac_confdir
523 if test ! -r $srcdir/$ac_unique_file; then
524 srcdir=..
526 else
527 ac_srcdir_defaulted=no
529 if test ! -r $srcdir/$ac_unique_file; then
530 if test "$ac_srcdir_defaulted" = yes; then
531 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 else
533 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$sitefile"; then
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 else
548 CONFIG_SITE="$sitefile"
550 for ac_site_file in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
553 . "$ac_site_file"
555 done
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
559 . $cache_file
560 else
561 echo "creating cache $cache_file"
562 > $cache_file
565 ac_ext=c
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp='$CPP $CPPFLAGS'
568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling=$ac_cv_prog_cc_cross
572 ac_exeext=
573 ac_objext=o
574 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
575 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
576 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
577 ac_n= ac_c='
578 ' ac_t=' '
579 else
580 ac_n=-n ac_c= ac_t=
582 else
583 ac_n= ac_c='\c' ac_t=
588 # This works around the fact that libtool configuration may change LD
589 # for this particular configuration, but some shells, instead of
590 # keeping the changes in LD private, export them just because LD is
591 # exported.
592 ORIGINAL_LD_FOR_MULTILIBS=$LD
594 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
595 echo "configure:596: checking whether ln -s works" >&5
596 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
598 else
599 rm -f conftestdata
600 if ln -s X conftestdata 2>/dev/null
601 then
602 rm -f conftestdata
603 ac_cv_prog_LN_S="ln -s"
604 else
605 ac_cv_prog_LN_S=ln
608 LN_S="$ac_cv_prog_LN_S"
609 if test "$ac_cv_prog_LN_S" = "ln -s"; then
610 echo "$ac_t""yes" 1>&6
611 else
612 echo "$ac_t""no" 1>&6
616 # Check whether --with-target-subdir or --without-target-subdir was given.
617 if test "${with_target_subdir+set}" = set; then
618 withval="$with_target_subdir"
622 # Check whether --with-cross-host or --without-cross-host was given.
623 if test "${with_cross_host+set}" = set; then
624 withval="$with_cross_host"
629 # Find a good install program. We prefer a C program (faster),
630 # so one script is as good as another. But avoid the broken or
631 # incompatible versions:
632 # SysV /etc/install, /usr/sbin/install
633 # SunOS /usr/etc/install
634 # IRIX /sbin/install
635 # AIX /bin/install
636 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
637 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
638 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
639 # ./install, which can be erroneously created by make from ./install.sh.
640 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
641 echo "configure:642: checking for a BSD compatible install" >&5
642 if test -z "$INSTALL"; then
643 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
644 echo $ac_n "(cached) $ac_c" 1>&6
645 else
646 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
647 for ac_dir in $PATH; do
648 # Account for people who put trailing slashes in PATH elements.
649 case "$ac_dir/" in
650 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
652 # OSF1 and SCO ODT 3.0 have their own names for install.
653 # Don't use installbsd from OSF since it installs stuff as root
654 # by default.
655 for ac_prog in ginstall scoinst install; do
656 if test -f $ac_dir/$ac_prog; then
657 if test $ac_prog = install &&
658 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
659 # AIX install. It has an incompatible calling convention.
661 else
662 ac_cv_path_install="$ac_dir/$ac_prog -c"
663 break 2
666 done
668 esac
669 done
670 IFS="$ac_save_IFS"
673 if test "${ac_cv_path_install+set}" = set; then
674 INSTALL="$ac_cv_path_install"
675 else
676 # As a last resort, use the slow shell script. We don't cache a
677 # path for INSTALL within a source directory, because that will
678 # break other packages using the cache if that directory is
679 # removed, or if the path is relative.
680 INSTALL="$ac_install_sh"
683 echo "$ac_t""$INSTALL" 1>&6
685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
686 # It thinks the first close brace ends the variable substitution.
687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
689 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
691 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
693 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
694 echo "configure:695: checking whether build environment is sane" >&5
695 # Just in case
696 sleep 1
697 echo timestamp > conftestfile
698 # Do `set' in a subshell so we don't clobber the current shell's
699 # arguments. Must try -L first in case configure is actually a
700 # symlink; some systems play weird games with the mod time of symlinks
701 # (eg FreeBSD returns the mod time of the symlink's containing
702 # directory).
703 if (
704 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
705 if test "$*" = "X"; then
706 # -L didn't work.
707 set X `ls -t $srcdir/configure conftestfile`
709 if test "$*" != "X $srcdir/configure conftestfile" \
710 && test "$*" != "X conftestfile $srcdir/configure"; then
712 # If neither matched, then we have a broken ls. This can happen
713 # if, for instance, CONFIG_SHELL is bash and it inherits a
714 # broken ls alias from the environment. This has actually
715 # happened. Such a system could not be considered "sane".
716 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
717 alias in your environment" 1>&2; exit 1; }
720 test "$2" = conftestfile
722 then
723 # Ok.
725 else
726 { echo "configure: error: newly created file is older than distributed files!
727 Check your system clock" 1>&2; exit 1; }
729 rm -f conftest*
730 echo "$ac_t""yes" 1>&6
731 if test "$program_transform_name" = s,x,x,; then
732 program_transform_name=
733 else
734 # Double any \ or $. echo might interpret backslashes.
735 cat <<\EOF_SED > conftestsed
736 s,\\,\\\\,g; s,\$,$$,g
737 EOF_SED
738 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
739 rm -f conftestsed
741 test "$program_prefix" != NONE &&
742 program_transform_name="s,^,${program_prefix},; $program_transform_name"
743 # Use a double $ so make ignores it.
744 test "$program_suffix" != NONE &&
745 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
747 # sed with no file args requires a program.
748 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
750 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
751 echo "configure:752: checking whether ${MAKE-make} sets \${MAKE}" >&5
752 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
753 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
755 else
756 cat > conftestmake <<\EOF
757 all:
758 @echo 'ac_maketemp="${MAKE}"'
760 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
761 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
762 if test -n "$ac_maketemp"; then
763 eval ac_cv_prog_make_${ac_make}_set=yes
764 else
765 eval ac_cv_prog_make_${ac_make}_set=no
767 rm -f conftestmake
769 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
770 echo "$ac_t""yes" 1>&6
771 SET_MAKE=
772 else
773 echo "$ac_t""no" 1>&6
774 SET_MAKE="MAKE=${MAKE-make}"
777 if test $host != $build; then
778 ac_tool_prefix=${host_alias}-
779 else
780 ac_tool_prefix=
783 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
784 echo "configure:785: checking for Cygwin environment" >&5
785 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
787 else
788 cat > conftest.$ac_ext <<EOF
789 #line 790 "configure"
790 #include "confdefs.h"
792 int main() {
794 #ifndef __CYGWIN__
795 #define __CYGWIN__ __CYGWIN32__
796 #endif
797 return __CYGWIN__;
798 ; return 0; }
800 if { (eval echo configure:801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
801 rm -rf conftest*
802 ac_cv_cygwin=yes
803 else
804 echo "configure: failed program was:" >&5
805 cat conftest.$ac_ext >&5
806 rm -rf conftest*
807 ac_cv_cygwin=no
809 rm -f conftest*
810 rm -f conftest*
813 echo "$ac_t""$ac_cv_cygwin" 1>&6
814 CYGWIN=
815 test "$ac_cv_cygwin" = yes && CYGWIN=yes
816 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
817 echo "configure:818: checking for mingw32 environment" >&5
818 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
820 else
821 cat > conftest.$ac_ext <<EOF
822 #line 823 "configure"
823 #include "confdefs.h"
825 int main() {
826 return __MINGW32__;
827 ; return 0; }
829 if { (eval echo configure:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
830 rm -rf conftest*
831 ac_cv_mingw32=yes
832 else
833 echo "configure: failed program was:" >&5
834 cat conftest.$ac_ext >&5
835 rm -rf conftest*
836 ac_cv_mingw32=no
838 rm -f conftest*
839 rm -f conftest*
842 echo "$ac_t""$ac_cv_mingw32" 1>&6
843 MINGW32=
844 test "$ac_cv_mingw32" = yes && MINGW32=yes
846 # Check whether --enable-multilib or --disable-multilib was given.
847 if test "${enable_multilib+set}" = set; then
848 enableval="$enable_multilib"
849 case "${enableval}" in
850 yes) multilib=yes ;;
851 no) multilib=no ;;
852 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
853 esac
854 else
855 multilib=yes
859 # When building with srcdir == objdir, links to the source files will
860 # be created in directories within the target_subdir. We have to
861 # adjust toplevel_srcdir accordingly, so that configure finds
862 # install-sh and other auxiliary files that live in the top-level
863 # source directory.
864 if test "${srcdir}" = "."; then
865 if test -z "${with_target_subdir}"; then
866 toprel=".."
867 else
868 if test "${with_target_subdir}" != "."; then
869 toprel="${with_multisrctop}../.."
870 else
871 toprel="${with_multisrctop}.."
874 else
875 toprel=".."
878 libgcj_basedir=$srcdir/$toprel/./libjava
881 ac_aux_dir=
882 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
883 if test -f $ac_dir/install-sh; then
884 ac_aux_dir=$ac_dir
885 ac_install_sh="$ac_aux_dir/install-sh -c"
886 break
887 elif test -f $ac_dir/install.sh; then
888 ac_aux_dir=$ac_dir
889 ac_install_sh="$ac_aux_dir/install.sh -c"
890 break
892 done
893 if test -z "$ac_aux_dir"; then
894 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
896 ac_config_guess=$ac_aux_dir/config.guess
897 ac_config_sub=$ac_aux_dir/config.sub
898 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
900 if :; then :; else
901 # This overrides the previous occurrence for automake, but not for
902 # autoconf, which is exactly what we want.
903 ac_aux_dir=
904 for ac_dir in .. $srcdir/..; do
905 if test -f $ac_dir/install-sh; then
906 ac_aux_dir=$ac_dir
907 ac_install_sh="$ac_aux_dir/install-sh -c"
908 break
909 elif test -f $ac_dir/install.sh; then
910 ac_aux_dir=$ac_dir
911 ac_install_sh="$ac_aux_dir/install.sh -c"
912 break
914 done
915 if test -z "$ac_aux_dir"; then
916 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
918 ac_config_guess=$ac_aux_dir/config.guess
919 ac_config_sub=$ac_aux_dir/config.sub
920 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
924 # This works around an automake problem.
925 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
929 # Do some error checking and defaulting for the host and target type.
930 # The inputs are:
931 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
933 # The rules are:
934 # 1. You are not allowed to specify --host, --target, and nonopt at the
935 # same time.
936 # 2. Host defaults to nonopt.
937 # 3. If nonopt is not specified, then host defaults to the current host,
938 # as determined by config.guess.
939 # 4. Target and build default to nonopt.
940 # 5. If nonopt is not specified, then target and build default to host.
942 # The aliases save the names the user supplied, while $host etc.
943 # will get canonicalized.
944 case $host---$target---$nonopt in
945 NONE---*---* | *---NONE---* | *---*---NONE) ;;
946 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
947 esac
950 # Make sure we can run config.sub.
951 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
952 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
955 echo $ac_n "checking host system type""... $ac_c" 1>&6
956 echo "configure:957: checking host system type" >&5
958 host_alias=$host
959 case "$host_alias" in
960 NONE)
961 case $nonopt in
962 NONE)
963 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
964 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
965 fi ;;
966 *) host_alias=$nonopt ;;
967 esac ;;
968 esac
970 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
971 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974 echo "$ac_t""$host" 1>&6
976 echo $ac_n "checking target system type""... $ac_c" 1>&6
977 echo "configure:978: checking target system type" >&5
979 target_alias=$target
980 case "$target_alias" in
981 NONE)
982 case $nonopt in
983 NONE) target_alias=$host_alias ;;
984 *) target_alias=$nonopt ;;
985 esac ;;
986 esac
988 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
989 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo "$ac_t""$target" 1>&6
994 echo $ac_n "checking build system type""... $ac_c" 1>&6
995 echo "configure:996: checking build system type" >&5
997 build_alias=$build
998 case "$build_alias" in
999 NONE)
1000 case $nonopt in
1001 NONE) build_alias=$host_alias ;;
1002 *) build_alias=$nonopt ;;
1003 esac ;;
1004 esac
1006 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1007 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1008 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1009 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1010 echo "$ac_t""$build" 1>&6
1012 test "$host_alias" != "$target_alias" &&
1013 test "$program_prefix$program_suffix$program_transform_name" = \
1014 NONENONEs,x,x, &&
1015 program_prefix=${target_alias}-
1021 # Extract the first word of "gcc", so it can be a program name with args.
1022 set dummy gcc; ac_word=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC="$CC" # Let the user override the test.
1030 else
1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1032 ac_dummy="$PATH"
1033 for ac_dir in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir=.
1035 if test -f $ac_dir/$ac_word; then
1036 ac_cv_prog_CC="gcc"
1037 break
1039 done
1040 IFS="$ac_save_ifs"
1043 CC="$ac_cv_prog_CC"
1044 if test -n "$CC"; then
1045 echo "$ac_t""$CC" 1>&6
1046 else
1047 echo "$ac_t""no" 1>&6
1050 if test -z "$CC"; then
1051 # Extract the first word of "cc", so it can be a program name with args.
1052 set dummy cc; ac_word=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1057 else
1058 if test -n "$CC"; then
1059 ac_cv_prog_CC="$CC" # Let the user override the test.
1060 else
1061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1062 ac_prog_rejected=no
1063 ac_dummy="$PATH"
1064 for ac_dir in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir=.
1066 if test -f $ac_dir/$ac_word; then
1067 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1068 ac_prog_rejected=yes
1069 continue
1071 ac_cv_prog_CC="cc"
1072 break
1074 done
1075 IFS="$ac_save_ifs"
1076 if test $ac_prog_rejected = yes; then
1077 # We found a bogon in the path, so make sure we never use it.
1078 set dummy $ac_cv_prog_CC
1079 shift
1080 if test $# -gt 0; then
1081 # We chose a different compiler from the bogus one.
1082 # However, it has the same basename, so the bogon will be chosen
1083 # first if we set CC to just the basename; use the full file name.
1084 shift
1085 set dummy "$ac_dir/$ac_word" "$@"
1086 shift
1087 ac_cv_prog_CC="$@"
1092 CC="$ac_cv_prog_CC"
1093 if test -n "$CC"; then
1094 echo "$ac_t""$CC" 1>&6
1095 else
1096 echo "$ac_t""no" 1>&6
1099 if test -z "$CC"; then
1100 case "`uname -s`" in
1101 *win32* | *WIN32*)
1102 # Extract the first word of "cl", so it can be a program name with args.
1103 set dummy cl; ac_word=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1108 else
1109 if test -n "$CC"; then
1110 ac_cv_prog_CC="$CC" # Let the user override the test.
1111 else
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1113 ac_dummy="$PATH"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 ac_cv_prog_CC="cl"
1118 break
1120 done
1121 IFS="$ac_save_ifs"
1124 CC="$ac_cv_prog_CC"
1125 if test -n "$CC"; then
1126 echo "$ac_t""$CC" 1>&6
1127 else
1128 echo "$ac_t""no" 1>&6
1131 esac
1133 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1137 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether we are using GNU C" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1141 else
1142 cat > conftest.c <<EOF
1143 #ifdef __GNUC__
1144 yes;
1145 #endif
1147 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1148 ac_cv_prog_gcc=yes
1149 else
1150 ac_cv_prog_gcc=no
1154 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1156 if test $ac_cv_prog_gcc = yes; then
1157 GCC=yes
1158 else
1159 GCC=
1162 ac_test_CFLAGS="${CFLAGS+set}"
1163 ac_save_CFLAGS="$CFLAGS"
1164 CFLAGS=
1165 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1166 echo "configure:1167: checking whether ${CC-cc} accepts -g" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169 else
1170 echo 'void f(){}' > conftest.c
1171 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1172 ac_cv_prog_cc_g=yes
1173 else
1174 ac_cv_prog_cc_g=no
1176 rm -f conftest*
1180 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1181 if test "$ac_test_CFLAGS" = set; then
1182 CFLAGS="$ac_save_CFLAGS"
1183 elif test $ac_cv_prog_cc_g = yes; then
1184 if test "$GCC" = yes; then
1185 CFLAGS="-g -O2"
1186 else
1187 CFLAGS="-g"
1189 else
1190 if test "$GCC" = yes; then
1191 CFLAGS="-O2"
1192 else
1193 CFLAGS=
1198 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1199 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1200 # different definition of CXX than other directories, since we don't
1201 # depend on libstdc++-v3 having already been built.
1205 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1206 # flags that come in CXX while configuring libjava. They're different
1207 # from those used for all other target libraries. If CXX is set in
1208 # the environment, respect that here.
1209 glibjava_CXX=$CXX
1210 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1212 # Extract the first word of "$ac_prog", so it can be a program name with args.
1213 set dummy $ac_prog; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 if test -n "$glibjava_CXX"; then
1220 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1221 else
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1223 ac_dummy="$PATH"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_glibjava_CXX="$ac_prog"
1228 break
1230 done
1231 IFS="$ac_save_ifs"
1234 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1235 if test -n "$glibjava_CXX"; then
1236 echo "$ac_t""$glibjava_CXX" 1>&6
1237 else
1238 echo "$ac_t""no" 1>&6
1241 test -n "$glibjava_CXX" && break
1242 done
1243 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1246 CXX=$glibjava_CXX
1247 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1249 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1250 echo "configure:1251: checking whether we are using GNU C++" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254 cat > conftest.C <<EOF
1255 #ifdef __GNUC__
1256 yes;
1257 #endif
1259 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1260 ac_cv_prog_gxx=yes
1261 else
1262 ac_cv_prog_gxx=no
1266 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1268 if test $ac_cv_prog_gxx = yes; then
1269 GXX=yes
1270 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1271 ac_save_CXXFLAGS="$CXXFLAGS"
1272 CXXFLAGS=
1273 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${CXX-g++} accepts -g" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1277 else
1278 echo 'void f(){}' > conftest.cc
1279 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1280 ac_cv_prog_cxx_g=yes
1281 else
1282 ac_cv_prog_cxx_g=no
1284 rm -f conftest*
1288 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1289 if test "$ac_test_CXXFLAGS" = set; then
1290 CXXFLAGS="$ac_save_CXXFLAGS"
1291 elif test $ac_cv_prog_cxx_g = yes; then
1292 CXXFLAGS="-g -O2"
1293 else
1294 CXXFLAGS="-O2"
1296 else
1297 GXX=
1298 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1302 version=0.0.7
1304 PACKAGE=libjava
1306 VERSION=$version
1308 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1309 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1311 cat >> confdefs.h <<EOF
1312 #define PACKAGE "$PACKAGE"
1315 cat >> confdefs.h <<EOF
1316 #define VERSION "$VERSION"
1321 missing_dir=`cd $ac_aux_dir && pwd`
1322 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1323 echo "configure:1324: checking for working aclocal" >&5
1324 # Run test in a subshell; some versions of sh will print an error if
1325 # an executable is not found, even if stderr is redirected.
1326 # Redirect stdin to placate older versions of autoconf. Sigh.
1327 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1328 ACLOCAL=aclocal
1329 echo "$ac_t""found" 1>&6
1330 else
1331 ACLOCAL="$missing_dir/missing aclocal"
1332 echo "$ac_t""missing" 1>&6
1335 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1336 echo "configure:1337: checking for working autoconf" >&5
1337 # Run test in a subshell; some versions of sh will print an error if
1338 # an executable is not found, even if stderr is redirected.
1339 # Redirect stdin to placate older versions of autoconf. Sigh.
1340 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1341 AUTOCONF=autoconf
1342 echo "$ac_t""found" 1>&6
1343 else
1344 AUTOCONF="$missing_dir/missing autoconf"
1345 echo "$ac_t""missing" 1>&6
1348 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1349 echo "configure:1350: checking for working automake" >&5
1350 # Run test in a subshell; some versions of sh will print an error if
1351 # an executable is not found, even if stderr is redirected.
1352 # Redirect stdin to placate older versions of autoconf. Sigh.
1353 if (automake --version) < /dev/null > /dev/null 2>&1; then
1354 AUTOMAKE=automake
1355 echo "$ac_t""found" 1>&6
1356 else
1357 AUTOMAKE="$missing_dir/missing automake"
1358 echo "$ac_t""missing" 1>&6
1361 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1362 echo "configure:1363: checking for working autoheader" >&5
1363 # Run test in a subshell; some versions of sh will print an error if
1364 # an executable is not found, even if stderr is redirected.
1365 # Redirect stdin to placate older versions of autoconf. Sigh.
1366 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1367 AUTOHEADER=autoheader
1368 echo "$ac_t""found" 1>&6
1369 else
1370 AUTOHEADER="$missing_dir/missing autoheader"
1371 echo "$ac_t""missing" 1>&6
1374 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1375 echo "configure:1376: checking for working makeinfo" >&5
1376 # Run test in a subshell; some versions of sh will print an error if
1377 # an executable is not found, even if stderr is redirected.
1378 # Redirect stdin to placate older versions of autoconf. Sigh.
1379 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1380 MAKEINFO=makeinfo
1381 echo "$ac_t""found" 1>&6
1382 else
1383 MAKEINFO="$missing_dir/missing makeinfo"
1384 echo "$ac_t""missing" 1>&6
1389 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1390 # run it explicitly here, it will be run implicitly before
1391 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1392 # be run before AC_CANONICAL_HOST.
1393 echo $ac_n "checking build system type""... $ac_c" 1>&6
1394 echo "configure:1395: checking build system type" >&5
1396 build_alias=$build
1397 case "$build_alias" in
1398 NONE)
1399 case $nonopt in
1400 NONE) build_alias=$host_alias ;;
1401 *) build_alias=$nonopt ;;
1402 esac ;;
1403 esac
1405 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1406 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1407 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1408 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1409 echo "$ac_t""$build" 1>&6
1412 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1413 set dummy ${ac_tool_prefix}as; ac_word=$2
1414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1415 echo "configure:1416: checking for $ac_word" >&5
1416 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1418 else
1419 if test -n "$AS"; then
1420 ac_cv_prog_AS="$AS" # Let the user override the test.
1421 else
1422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1423 ac_dummy="$PATH"
1424 for ac_dir in $ac_dummy; do
1425 test -z "$ac_dir" && ac_dir=.
1426 if test -f $ac_dir/$ac_word; then
1427 ac_cv_prog_AS="${ac_tool_prefix}as"
1428 break
1430 done
1431 IFS="$ac_save_ifs"
1432 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1435 AS="$ac_cv_prog_AS"
1436 if test -n "$AS"; then
1437 echo "$ac_t""$AS" 1>&6
1438 else
1439 echo "$ac_t""no" 1>&6
1444 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1445 set dummy ${ac_tool_prefix}ar; ac_word=$2
1446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1447 echo "configure:1448: checking for $ac_word" >&5
1448 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1450 else
1451 if test -n "$AR"; then
1452 ac_cv_prog_AR="$AR" # Let the user override the test.
1453 else
1454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1455 ac_dummy="$PATH"
1456 for ac_dir in $ac_dummy; do
1457 test -z "$ac_dir" && ac_dir=.
1458 if test -f $ac_dir/$ac_word; then
1459 ac_cv_prog_AR="${ac_tool_prefix}ar"
1460 break
1462 done
1463 IFS="$ac_save_ifs"
1464 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1467 AR="$ac_cv_prog_AR"
1468 if test -n "$AR"; then
1469 echo "$ac_t""$AR" 1>&6
1470 else
1471 echo "$ac_t""no" 1>&6
1476 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1477 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1482 else
1483 if test -n "$RANLIB"; then
1484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1485 else
1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1487 ac_dummy="$PATH"
1488 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1492 break
1494 done
1495 IFS="$ac_save_ifs"
1498 RANLIB="$ac_cv_prog_RANLIB"
1499 if test -n "$RANLIB"; then
1500 echo "$ac_t""$RANLIB" 1>&6
1501 else
1502 echo "$ac_t""no" 1>&6
1506 if test -z "$ac_cv_prog_RANLIB"; then
1507 if test -n "$ac_tool_prefix"; then
1508 # Extract the first word of "ranlib", so it can be a program name with args.
1509 set dummy ranlib; ac_word=$2
1510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $ac_word" >&5
1512 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1514 else
1515 if test -n "$RANLIB"; then
1516 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1517 else
1518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1519 ac_dummy="$PATH"
1520 for ac_dir in $ac_dummy; do
1521 test -z "$ac_dir" && ac_dir=.
1522 if test -f $ac_dir/$ac_word; then
1523 ac_cv_prog_RANLIB="ranlib"
1524 break
1526 done
1527 IFS="$ac_save_ifs"
1528 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1531 RANLIB="$ac_cv_prog_RANLIB"
1532 if test -n "$RANLIB"; then
1533 echo "$ac_t""$RANLIB" 1>&6
1534 else
1535 echo "$ac_t""no" 1>&6
1538 else
1539 RANLIB=":"
1544 # Find a good install program. We prefer a C program (faster),
1545 # so one script is as good as another. But avoid the broken or
1546 # incompatible versions:
1547 # SysV /etc/install, /usr/sbin/install
1548 # SunOS /usr/etc/install
1549 # IRIX /sbin/install
1550 # AIX /bin/install
1551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1556 echo "configure:1557: checking for a BSD compatible install" >&5
1557 if test -z "$INSTALL"; then
1558 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1562 for ac_dir in $PATH; do
1563 # Account for people who put trailing slashes in PATH elements.
1564 case "$ac_dir/" in
1565 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1567 # OSF1 and SCO ODT 3.0 have their own names for install.
1568 # Don't use installbsd from OSF since it installs stuff as root
1569 # by default.
1570 for ac_prog in ginstall scoinst install; do
1571 if test -f $ac_dir/$ac_prog; then
1572 if test $ac_prog = install &&
1573 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1574 # AIX install. It has an incompatible calling convention.
1576 else
1577 ac_cv_path_install="$ac_dir/$ac_prog -c"
1578 break 2
1581 done
1583 esac
1584 done
1585 IFS="$ac_save_IFS"
1588 if test "${ac_cv_path_install+set}" = set; then
1589 INSTALL="$ac_cv_path_install"
1590 else
1591 # As a last resort, use the slow shell script. We don't cache a
1592 # path for INSTALL within a source directory, because that will
1593 # break other packages using the cache if that directory is
1594 # removed, or if the path is relative.
1595 INSTALL="$ac_install_sh"
1598 echo "$ac_t""$INSTALL" 1>&6
1600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1601 # It thinks the first close brace ends the variable substitution.
1602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1609 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1610 echo "configure:1611: checking whether to enable maintainer-specific portions of Makefiles" >&5
1611 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1612 if test "${enable_maintainer_mode+set}" = set; then
1613 enableval="$enable_maintainer_mode"
1614 USE_MAINTAINER_MODE=$enableval
1615 else
1616 USE_MAINTAINER_MODE=no
1619 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1622 if test $USE_MAINTAINER_MODE = yes; then
1623 MAINTAINER_MODE_TRUE=
1624 MAINTAINER_MODE_FALSE='#'
1625 else
1626 MAINTAINER_MODE_TRUE='#'
1627 MAINTAINER_MODE_FALSE=
1629 MAINT=$MAINTAINER_MODE_TRUE
1633 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1634 # at least currently, we never actually build a program, so we never
1635 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1636 # fails, because we are probably configuring with a cross compiler
1637 # which cant create executables. So we include AC_EXEEXT to keep
1638 # automake happy, but we don't execute it, since we don't care about
1639 # the result.
1640 if false; then
1641 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1642 # to nothing, so nothing would remain between `then' and `fi' if it
1643 # were not for the `:' below.
1647 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1648 echo "configure:1649: checking for executable suffix" >&5
1649 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1651 else
1652 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1653 ac_cv_exeext=.exe
1654 else
1655 rm -f conftest*
1656 echo 'int main () { return 0; }' > conftest.$ac_ext
1657 ac_cv_exeext=
1658 if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1659 for file in conftest.*; do
1660 case $file in
1661 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1662 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1663 esac
1664 done
1665 else
1666 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1668 rm -f conftest*
1669 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1673 EXEEXT=""
1674 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1675 echo "$ac_t""${ac_cv_exeext}" 1>&6
1676 ac_exeext=$EXEEXT
1680 # configure.host sets the following important variables
1681 # libgcj_cflags - host specific C compiler flags
1682 # libgcj_cxxflags - host specific C++ compiler flags
1683 # libgcj_javaflags - host specific Java compiler flags
1685 libgcj_cflags=
1686 libgcj_cxxflags=
1687 libgcj_javaflags=
1689 . ${srcdir}/configure.host
1691 LIBGCJ_CFLAGS="${libgcj_cflags}"
1692 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1693 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1703 # Only use libltdl for native builds.
1704 if test -z "${with_cross_host}"; then
1705 case $enable_ltdl_convenience in
1706 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1707 "") enable_ltdl_convenience=yes
1708 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1709 esac
1710 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1711 INCLTDL='-I${top_srcdir}/''libltdl'
1714 DIRLTDL=libltdl
1715 cat >> confdefs.h <<\EOF
1716 #define USE_LTDL 1
1719 # Sigh. Libtool's macro doesn't do the right thing.
1720 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1721 # FIXME: this is a hack.
1722 sub_auxdir="`cd $ac_aux_dir && pwd`"
1723 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1728 # Check whether --enable-shared or --disable-shared was given.
1729 if test "${enable_shared+set}" = set; then
1730 enableval="$enable_shared"
1731 p=${PACKAGE-default}
1732 case $enableval in
1733 yes) enable_shared=yes ;;
1734 no) enable_shared=no ;;
1736 enable_shared=no
1737 # Look at the argument we got. We use all the common list separators.
1738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1739 for pkg in $enableval; do
1740 if test "X$pkg" = "X$p"; then
1741 enable_shared=yes
1743 done
1744 IFS="$ac_save_ifs"
1746 esac
1747 else
1748 enable_shared=yes
1751 # Check whether --enable-static or --disable-static was given.
1752 if test "${enable_static+set}" = set; then
1753 enableval="$enable_static"
1754 p=${PACKAGE-default}
1755 case $enableval in
1756 yes) enable_static=yes ;;
1757 no) enable_static=no ;;
1759 enable_static=no
1760 # Look at the argument we got. We use all the common list separators.
1761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1762 for pkg in $enableval; do
1763 if test "X$pkg" = "X$p"; then
1764 enable_static=yes
1766 done
1767 IFS="$ac_save_ifs"
1769 esac
1770 else
1771 enable_static=yes
1774 # Check whether --enable-fast-install or --disable-fast-install was given.
1775 if test "${enable_fast_install+set}" = set; then
1776 enableval="$enable_fast_install"
1777 p=${PACKAGE-default}
1778 case $enableval in
1779 yes) enable_fast_install=yes ;;
1780 no) enable_fast_install=no ;;
1782 enable_fast_install=no
1783 # Look at the argument we got. We use all the common list separators.
1784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1785 for pkg in $enableval; do
1786 if test "X$pkg" = "X$p"; then
1787 enable_fast_install=yes
1789 done
1790 IFS="$ac_save_ifs"
1792 esac
1793 else
1794 enable_fast_install=yes
1797 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1798 if test "${with_gnu_ld+set}" = set; then
1799 withval="$with_gnu_ld"
1800 test "$withval" = no || with_gnu_ld=yes
1801 else
1802 with_gnu_ld=no
1805 ac_prog=ld
1806 if test "$GCC" = yes; then
1807 # Check if gcc -print-prog-name=ld gives a path.
1808 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1809 echo "configure:1810: checking for ld used by GCC" >&5
1810 case $host in
1811 *-*-mingw*)
1812 # gcc leaves a trailing carriage return which upsets mingw
1813 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1815 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1816 esac
1817 case $ac_prog in
1818 # Accept absolute paths.
1819 [\\/]* | [A-Za-z]:[\\/]*)
1820 re_direlt='/[^/][^/]*/\.\./'
1821 # Canonicalize the path of ld
1822 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1823 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1824 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1825 done
1826 test -z "$LD" && LD="$ac_prog"
1829 # If it fails, then pretend we aren't using GCC.
1830 ac_prog=ld
1833 # If it is relative, then search for the first ld in PATH.
1834 with_gnu_ld=unknown
1836 esac
1837 elif test "$with_gnu_ld" = yes; then
1838 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1839 echo "configure:1840: checking for GNU ld" >&5
1840 else
1841 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1842 echo "configure:1843: checking for non-GNU ld" >&5
1844 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846 else
1847 if test -z "$LD"; then
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1849 for ac_dir in $PATH; do
1850 test -z "$ac_dir" && ac_dir=.
1851 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1852 lt_cv_path_LD="$ac_dir/$ac_prog"
1853 # Check to see if the program is GNU ld. I'd rather use --version,
1854 # but apparently some GNU ld's only accept -v.
1855 # Break only if it was the GNU/non-GNU ld that we prefer.
1856 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1857 test "$with_gnu_ld" != no && break
1858 else
1859 test "$with_gnu_ld" != yes && break
1862 done
1863 IFS="$ac_save_ifs"
1864 else
1865 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1869 LD="$lt_cv_path_LD"
1870 if test -n "$LD"; then
1871 echo "$ac_t""$LD" 1>&6
1872 else
1873 echo "$ac_t""no" 1>&6
1875 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1876 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1877 echo "configure:1878: checking if the linker ($LD) is GNU ld" >&5
1878 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880 else
1881 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1882 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1883 lt_cv_prog_gnu_ld=yes
1884 else
1885 lt_cv_prog_gnu_ld=no
1889 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1890 with_gnu_ld=$lt_cv_prog_gnu_ld
1893 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $LD option to reload object files" >&5
1895 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 lt_cv_ld_reload_flag='-r'
1901 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1902 reload_flag=$lt_cv_ld_reload_flag
1903 test -n "$reload_flag" && reload_flag=" $reload_flag"
1905 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1906 echo "configure:1907: checking for BSD-compatible nm" >&5
1907 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1909 else
1910 if test -n "$NM"; then
1911 # Let the user override the test.
1912 lt_cv_path_NM="$NM"
1913 else
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1915 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1916 test -z "$ac_dir" && ac_dir=.
1917 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1918 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1919 # Check to see if the nm accepts a BSD-compat flag.
1920 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1921 # nm: unknown option "B" ignored
1922 # Tru64's nm complains that /dev/null is an invalid object file
1923 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1924 lt_cv_path_NM="$tmp_nm -B"
1925 break
1926 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1927 lt_cv_path_NM="$tmp_nm -p"
1928 break
1929 else
1930 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1931 continue # so that we can try to find one that supports BSD flags
1934 done
1935 IFS="$ac_save_ifs"
1936 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1940 NM="$lt_cv_path_NM"
1941 echo "$ac_t""$NM" 1>&6
1943 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1944 echo "configure:1945: checking how to recognise dependant libraries" >&5
1945 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1947 else
1948 lt_cv_file_magic_cmd='$MAGIC_CMD'
1949 lt_cv_file_magic_test_file=
1950 lt_cv_deplibs_check_method='unknown'
1951 # Need to set the preceding variable on all platforms that support
1952 # interlibrary dependencies.
1953 # 'none' -- dependencies not supported.
1954 # `unknown' -- same as none, but documents that we really don't know.
1955 # 'pass_all' -- all dependencies passed with no checks.
1956 # 'test_compile' -- check by making test program.
1957 # 'file_magic [regex]' -- check by looking for files in library path
1958 # which responds to the $file_magic_cmd with a given egrep regex.
1959 # If you have `file' or equivalent on your system and you're not sure
1960 # whether `pass_all' will *always* work, you probably want this one.
1962 case $host_os in
1963 aix*)
1964 lt_cv_deplibs_check_method=pass_all
1967 beos*)
1968 lt_cv_deplibs_check_method=pass_all
1971 bsdi4*)
1972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1973 lt_cv_file_magic_cmd='/usr/bin/file -L'
1974 lt_cv_file_magic_test_file=/shlib/libc.so
1977 cygwin* | mingw* |pw32*)
1978 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1979 lt_cv_file_magic_cmd='$OBJDUMP -f'
1982 darwin* | rhapsody*)
1983 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1984 lt_cv_file_magic_cmd='/usr/bin/file -L'
1985 case "$host_os" in
1986 rhapsody* | darwin1.012)
1987 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1989 *) # Darwin 1.3 on
1990 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1992 esac
1995 freebsd* )
1996 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1997 case $host_cpu in
1998 i*86 )
1999 # Not sure whether the presence of OpenBSD here was a mistake.
2000 # Let's accept both of them until this is cleared up.
2001 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2002 lt_cv_file_magic_cmd=/usr/bin/file
2003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2005 esac
2006 else
2007 lt_cv_deplibs_check_method=pass_all
2011 gnu*)
2012 lt_cv_deplibs_check_method=pass_all
2015 hpux10.20*|hpux11*)
2016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2017 lt_cv_file_magic_cmd=/usr/bin/file
2018 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2021 irix5* | irix6*)
2022 case $host_os in
2023 irix5*)
2024 # this will be overridden with pass_all, but let us keep it just in case
2025 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2028 case $LD in
2029 *-32|*"-32 ") libmagic=32-bit;;
2030 *-n32|*"-n32 ") libmagic=N32;;
2031 *-64|*"-64 ") libmagic=64-bit;;
2032 *) libmagic=never-match;;
2033 esac
2034 # this will be overridden with pass_all, but let us keep it just in case
2035 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2037 esac
2038 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2039 lt_cv_deplibs_check_method=pass_all
2042 # This must be Linux ELF.
2043 linux-gnu*)
2044 case $host_cpu in
2045 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2046 lt_cv_deplibs_check_method=pass_all ;;
2048 # glibc up to 2.1.1 does not perform some relocations on ARM
2049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2050 esac
2051 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2054 netbsd*)
2055 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2056 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2057 else
2058 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2062 newsos6)
2063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2064 lt_cv_file_magic_cmd=/usr/bin/file
2065 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2068 osf3* | osf4* | osf5*)
2069 # this will be overridden with pass_all, but let us keep it just in case
2070 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2071 lt_cv_file_magic_test_file=/shlib/libc.so
2072 lt_cv_deplibs_check_method=pass_all
2075 sco3.2v5*)
2076 lt_cv_deplibs_check_method=pass_all
2079 solaris*)
2080 lt_cv_deplibs_check_method=pass_all
2081 lt_cv_file_magic_test_file=/lib/libc.so
2084 sysv5uw[78]* | sysv4*uw2*)
2085 lt_cv_deplibs_check_method=pass_all
2088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2089 case $host_vendor in
2090 ncr)
2091 lt_cv_deplibs_check_method=pass_all
2093 motorola)
2094 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]'
2095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2097 esac
2099 esac
2103 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2104 file_magic_cmd=$lt_cv_file_magic_cmd
2105 deplibs_check_method=$lt_cv_deplibs_check_method
2107 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2108 echo "configure:2109: checking for object suffix" >&5
2109 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2111 else
2112 rm -f conftest*
2113 echo 'int i = 1;' > conftest.$ac_ext
2114 if { (eval echo configure:2115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2115 for ac_file in conftest.*; do
2116 case $ac_file in
2117 *.c) ;;
2118 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2119 esac
2120 done
2121 else
2122 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2124 rm -f conftest*
2127 echo "$ac_t""$ac_cv_objext" 1>&6
2128 OBJEXT=$ac_cv_objext
2129 ac_objext=$ac_cv_objext
2131 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2133 # Only perform the check for file, if the check method requires it
2134 case $deplibs_check_method in
2135 file_magic*)
2136 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2137 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2138 echo "configure:2139: checking for ${ac_tool_prefix}file" >&5
2139 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142 case $MAGIC_CMD in
2144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2146 ?:/*)
2147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2150 ac_save_MAGIC_CMD="$MAGIC_CMD"
2151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2152 ac_dummy="/usr/bin:$PATH"
2153 for ac_dir in $ac_dummy; do
2154 test -z "$ac_dir" && ac_dir=.
2155 if test -f $ac_dir/${ac_tool_prefix}file; then
2156 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2157 if test -n "$file_magic_test_file"; then
2158 case $deplibs_check_method in
2159 "file_magic "*)
2160 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2161 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2162 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2163 egrep "$file_magic_regex" > /dev/null; then
2165 else
2166 cat <<EOF 1>&2
2168 *** Warning: the command libtool uses to detect shared libraries,
2169 *** $file_magic_cmd, produces output that libtool cannot recognize.
2170 *** The result is that libtool may fail to recognize shared libraries
2171 *** as such. This will affect the creation of libtool libraries that
2172 *** depend on shared libraries, but programs linked with such libtool
2173 *** libraries will work regardless of this problem. Nevertheless, you
2174 *** may want to report the problem to your system manager and/or to
2175 *** bug-libtool@gnu.org
2178 fi ;;
2179 esac
2181 break
2183 done
2184 IFS="$ac_save_ifs"
2185 MAGIC_CMD="$ac_save_MAGIC_CMD"
2187 esac
2190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2191 if test -n "$MAGIC_CMD"; then
2192 echo "$ac_t""$MAGIC_CMD" 1>&6
2193 else
2194 echo "$ac_t""no" 1>&6
2197 if test -z "$lt_cv_path_MAGIC_CMD"; then
2198 if test -n "$ac_tool_prefix"; then
2199 echo $ac_n "checking for file""... $ac_c" 1>&6
2200 echo "configure:2201: checking for file" >&5
2201 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 case $MAGIC_CMD in
2206 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2208 ?:/*)
2209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2212 ac_save_MAGIC_CMD="$MAGIC_CMD"
2213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2214 ac_dummy="/usr/bin:$PATH"
2215 for ac_dir in $ac_dummy; do
2216 test -z "$ac_dir" && ac_dir=.
2217 if test -f $ac_dir/file; then
2218 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2219 if test -n "$file_magic_test_file"; then
2220 case $deplibs_check_method in
2221 "file_magic "*)
2222 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2225 egrep "$file_magic_regex" > /dev/null; then
2227 else
2228 cat <<EOF 1>&2
2230 *** Warning: the command libtool uses to detect shared libraries,
2231 *** $file_magic_cmd, produces output that libtool cannot recognize.
2232 *** The result is that libtool may fail to recognize shared libraries
2233 *** as such. This will affect the creation of libtool libraries that
2234 *** depend on shared libraries, but programs linked with such libtool
2235 *** libraries will work regardless of this problem. Nevertheless, you
2236 *** may want to report the problem to your system manager and/or to
2237 *** bug-libtool@gnu.org
2240 fi ;;
2241 esac
2243 break
2245 done
2246 IFS="$ac_save_ifs"
2247 MAGIC_CMD="$ac_save_MAGIC_CMD"
2249 esac
2252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2253 if test -n "$MAGIC_CMD"; then
2254 echo "$ac_t""$MAGIC_CMD" 1>&6
2255 else
2256 echo "$ac_t""no" 1>&6
2259 else
2260 MAGIC_CMD=:
2266 esac
2268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2271 echo "configure:2272: checking for $ac_word" >&5
2272 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2274 else
2275 if test -n "$RANLIB"; then
2276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2277 else
2278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2279 ac_dummy="$PATH"
2280 for ac_dir in $ac_dummy; do
2281 test -z "$ac_dir" && ac_dir=.
2282 if test -f $ac_dir/$ac_word; then
2283 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2284 break
2286 done
2287 IFS="$ac_save_ifs"
2290 RANLIB="$ac_cv_prog_RANLIB"
2291 if test -n "$RANLIB"; then
2292 echo "$ac_t""$RANLIB" 1>&6
2293 else
2294 echo "$ac_t""no" 1>&6
2298 if test -z "$ac_cv_prog_RANLIB"; then
2299 if test -n "$ac_tool_prefix"; then
2300 # Extract the first word of "ranlib", so it can be a program name with args.
2301 set dummy ranlib; ac_word=$2
2302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_word" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307 if test -n "$RANLIB"; then
2308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2309 else
2310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2311 ac_dummy="$PATH"
2312 for ac_dir in $ac_dummy; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_prog_RANLIB="ranlib"
2316 break
2318 done
2319 IFS="$ac_save_ifs"
2320 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2323 RANLIB="$ac_cv_prog_RANLIB"
2324 if test -n "$RANLIB"; then
2325 echo "$ac_t""$RANLIB" 1>&6
2326 else
2327 echo "$ac_t""no" 1>&6
2330 else
2331 RANLIB=":"
2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}strip; ac_word=$2
2337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_word" >&5
2339 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341 else
2342 if test -n "$STRIP"; then
2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344 else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2346 ac_dummy="$PATH"
2347 for ac_dir in $ac_dummy; do
2348 test -z "$ac_dir" && ac_dir=.
2349 if test -f $ac_dir/$ac_word; then
2350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2351 break
2353 done
2354 IFS="$ac_save_ifs"
2357 STRIP="$ac_cv_prog_STRIP"
2358 if test -n "$STRIP"; then
2359 echo "$ac_t""$STRIP" 1>&6
2360 else
2361 echo "$ac_t""no" 1>&6
2365 if test -z "$ac_cv_prog_STRIP"; then
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "strip", so it can be a program name with args.
2368 set dummy strip; ac_word=$2
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_word" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374 if test -n "$STRIP"; then
2375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2376 else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2378 ac_dummy="$PATH"
2379 for ac_dir in $ac_dummy; do
2380 test -z "$ac_dir" && ac_dir=.
2381 if test -f $ac_dir/$ac_word; then
2382 ac_cv_prog_STRIP="strip"
2383 break
2385 done
2386 IFS="$ac_save_ifs"
2387 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2390 STRIP="$ac_cv_prog_STRIP"
2391 if test -n "$STRIP"; then
2392 echo "$ac_t""$STRIP" 1>&6
2393 else
2394 echo "$ac_t""no" 1>&6
2397 else
2398 STRIP=":"
2403 # Check for any special flags to pass to ltconfig.
2404 libtool_flags="--cache-file=$cache_file"
2405 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2406 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2407 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2408 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2409 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2410 libtool_flags="$libtool_flags --enable-dlopen"
2412 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2413 if test "${enable_libtool_lock+set}" = set; then
2414 enableval="$enable_libtool_lock"
2418 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2419 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2421 # Check whether --with-pic or --without-pic was given.
2422 if test "${with_pic+set}" = set; then
2423 withval="$with_pic"
2424 pic_mode="$withval"
2425 else
2426 pic_mode=default
2429 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2430 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2432 # Some flags need to be propagated to the compiler or linker for good
2433 # libtool support.
2434 case $host in
2435 *-*-irix6*)
2436 # Find out which ABI we are using.
2437 echo '#line 2438 "configure"' > conftest.$ac_ext
2438 if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2439 case `/usr/bin/file conftest.$ac_objext` in
2440 *32-bit*)
2441 LD="${LD-ld} -32"
2443 *N32*)
2444 LD="${LD-ld} -n32"
2446 *64-bit*)
2447 LD="${LD-ld} -64"
2449 esac
2451 rm -rf conftest*
2454 *-*-sco3.2v5*)
2455 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2456 SAVE_CFLAGS="$CFLAGS"
2457 CFLAGS="$CFLAGS -belf"
2458 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2459 echo "configure:2460: checking whether the C compiler needs -belf" >&5
2460 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2462 else
2464 ac_ext=c
2465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cc_cross
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2475 int main() {
2477 ; return 0; }
2479 if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2480 rm -rf conftest*
2481 lt_cv_cc_needs_belf=yes
2482 else
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 rm -rf conftest*
2486 lt_cv_cc_needs_belf=no
2488 rm -f conftest*
2489 ac_ext=c
2490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2494 cross_compiling=$ac_cv_prog_cc_cross
2498 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2499 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2500 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2501 CFLAGS="$SAVE_CFLAGS"
2506 esac
2508 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2509 echo "configure:2510: checking how to run the C++ preprocessor" >&5
2510 if test -z "$CXXCPP"; then
2511 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 ac_ext=C
2515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2516 ac_cpp='$CXXCPP $CPPFLAGS'
2517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2519 cross_compiling=$ac_cv_prog_cxx_cross
2520 CXXCPP="${CXX-g++} -E"
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 #include <stdlib.h>
2526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2527 { (eval echo configure:2528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2529 if test -z "$ac_err"; then
2531 else
2532 echo "$ac_err" >&5
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2535 rm -rf conftest*
2536 CXXCPP=/lib/cpp
2538 rm -f conftest*
2539 ac_cv_prog_CXXCPP="$CXXCPP"
2540 ac_ext=c
2541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2545 cross_compiling=$ac_cv_prog_cc_cross
2548 CXXCPP="$ac_cv_prog_CXXCPP"
2549 echo "$ac_t""$CXXCPP" 1>&6
2552 # Save cache, so that ltconfig can load it
2553 cat > confcache <<\EOF
2554 # This file is a shell script that caches the results of configure
2555 # tests run on this system so they can be shared between configure
2556 # scripts and configure runs. It is not useful on other systems.
2557 # If it contains results you don't want to keep, you may remove or edit it.
2559 # By default, configure uses ./config.cache as the cache file,
2560 # creating it if it does not exist already. You can give configure
2561 # the --cache-file=FILE option to use a different cache file; that is
2562 # what configure does when it calls configure scripts in
2563 # subdirectories, so they share the cache.
2564 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2565 # config.status only pays attention to the cache file if you give it the
2566 # --recheck option to rerun configure.
2569 # The following way of writing the cache mishandles newlines in values,
2570 # but we know of no workaround that is simple, portable, and efficient.
2571 # So, don't put newlines in cache variables' values.
2572 # Ultrix sh set writes to stderr and can't be redirected directly,
2573 # and sets the high bit in the cache file unless we assign to the vars.
2574 (set) 2>&1 |
2575 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2576 *ac_space=\ *)
2577 # `set' does not quote correctly, so add quotes (double-quote substitution
2578 # turns \\\\ into \\, and sed turns \\ into \).
2579 sed -n \
2580 -e "s/'/'\\\\''/g" \
2581 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2584 # `set' quotes correctly as required by POSIX, so do not add quotes.
2585 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2587 esac >> confcache
2588 if cmp -s $cache_file confcache; then
2590 else
2591 if test -w $cache_file; then
2592 echo "updating cache $cache_file"
2593 cat confcache > $cache_file
2594 else
2595 echo "not updating unwritable cache $cache_file"
2598 rm -f confcache
2601 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2602 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2603 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2604 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2605 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2606 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2607 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2608 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2609 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2610 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2612 # Reload cache, that may have been modified by ltconfig
2613 if test -r "$cache_file"; then
2614 echo "loading cache $cache_file"
2615 . $cache_file
2616 else
2617 echo "creating cache $cache_file"
2618 > $cache_file
2622 # This can be used to rebuild libtool when needed
2623 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2625 # Always use our own libtool.
2626 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2628 # Redirect the config.log output again, so that the ltconfig log is not
2629 # clobbered by the next message.
2630 exec 5>>./config.log
2634 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2635 lt_save_CC="$CC"
2636 lt_save_CFLAGS="$CFLAGS"
2637 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2638 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2639 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2640 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2641 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2642 deplibs_check_method="$deplibs_check_method" \
2643 file_magic_cmd="$file_magic_cmd" \
2644 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2645 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2646 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2647 CC="$lt_save_CC"
2648 CFLAGS="$lt_save_CFLAGS"
2650 # Redirect the config.log output again, so that the ltconfig log is not
2651 # clobbered by the next message.
2652 exec 5>>./config.log
2659 subdirs="$DIRLTDL"
2662 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2663 COMPPATH=.
2664 else
2665 COMPPATH=..
2671 if test -d $srcdir/testsuite; then
2672 TESTSUBDIR_TRUE=
2673 TESTSUBDIR_FALSE='#'
2674 else
2675 TESTSUBDIR_TRUE='#'
2676 TESTSUBDIR_FALSE=
2679 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2680 if test "${enable_getenv_properties+set}" = set; then
2681 enableval="$enable_getenv_properties"
2686 if test -z "$enable_getenv_properties"; then
2687 enable_getenv_properties=${enable_getenv_properties_default-yes}
2689 if test "$enable_getenv_properties" = no; then
2690 cat >> confdefs.h <<\EOF
2691 #define DISABLE_GETENV_PROPERTIES 1
2696 if test -z "$enable_main_args"; then
2697 enable_main_args=${enable_main_args_default-yes}
2699 if test "$enable_main_args" = no; then
2700 cat >> confdefs.h <<\EOF
2701 #define DISABLE_MAIN_ARGS 1
2707 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2708 if test "${enable_hash_synchronization+set}" = set; then
2709 enableval="$enable_hash_synchronization"
2714 if test -z "$enable_hash_synchronization"; then
2715 enable_hash_synchronization=$enable_hash_synchronization_default
2718 if test "${slow_pthread_self}" = "yes"; then
2719 cat >> confdefs.h <<\EOF
2720 #define SLOW_PTHREAD_SELF 1
2726 LIBGCJDEBUG="false"
2728 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2729 if test "${enable_libgcj_debug+set}" = set; then
2730 enableval="$enable_libgcj_debug"
2731 if test "$enable_libgcj_debug" = yes; then
2732 cat >> confdefs.h <<\EOF
2733 #define DEBUG 1
2736 LIBGCJDEBUG="true"
2741 # Check whether --enable-interpreter or --disable-interpreter was given.
2742 if test "${enable_interpreter+set}" = set; then
2743 enableval="$enable_interpreter"
2744 if test "$enable_interpreter" = yes; then
2745 # This can also be set in configure.host.
2746 libgcj_interpreter=yes
2747 elif test "$enable_interpreter" = no; then
2748 libgcj_interpreter=no
2753 if test "$libgcj_interpreter" = yes; then
2754 cat >> confdefs.h <<\EOF
2755 #define INTERPRETER 1
2760 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2761 echo "configure:2762: checking for exception model to use" >&5
2763 ac_ext=C
2764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2765 ac_cpp='$CXXCPP $CPPFLAGS'
2766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2768 cross_compiling=$ac_cv_prog_cxx_cross
2770 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2771 if test "${enable_sjlj_exceptions+set}" = set; then
2772 enableval="$enable_sjlj_exceptions"
2774 else
2775 cat > conftest.$ac_ext << EOF
2776 #line 2777 "configure"
2777 struct S { ~S(); };
2778 void bar();
2779 void foo()
2781 S s;
2782 bar();
2785 old_CXXFLAGS="$CXXFLAGS"
2786 CXXFLAGS=-S
2787 if { (eval echo configure:2788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2788 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2789 enable_sjlj_exceptions=yes
2790 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2791 enable_sjlj_exceptions=no
2794 CXXFLAGS="$old_CXXFLAGS"
2795 rm -f conftest*
2798 if test x$enable_sjlj_exceptions = xyes; then
2799 cat >> confdefs.h <<\EOF
2800 #define SJLJ_EXCEPTIONS 1
2803 ac_exception_model_name=sjlj
2804 elif test x$enable_sjlj_exceptions = xno; then
2805 ac_exception_model_name="call frame"
2806 else
2807 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2809 ac_ext=c
2810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2813 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2814 cross_compiling=$ac_cv_prog_cc_cross
2816 echo "$ac_t""$ac_exception_model_name" 1>&6
2818 # If we are non using SJLJ exceptions, and this host does not have support
2819 # for unwinding from a signal handler, enable checked dereferences and divides.
2820 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2821 CHECKREFSPEC=-fcheck-references
2822 DIVIDESPEC=-fuse-divide-subroutine
2823 EXCEPTIONSPEC=
2826 # Check whether --enable-java-net or --disable-java-net was given.
2827 if test "${enable_java_net+set}" = set; then
2828 enableval="$enable_java_net"
2833 if test -z "$enable_java_net"; then
2834 enable_java_net=${enable_java_net_default-yes}
2836 if test "$enable_java_net" = no; then
2837 cat >> confdefs.h <<\EOF
2838 #define DISABLE_JAVA_NET 1
2843 # Check whether --with-libffi or --without-libffi was given.
2844 if test "${with_libffi+set}" = set; then
2845 withval="$with_libffi"
2847 else
2848 with_libffi=${with_libffi_default-yes}
2852 LIBFFI=
2853 LIBFFIINCS=
2854 if test "$with_libffi" != no; then
2855 cat >> confdefs.h <<\EOF
2856 #define USE_LIBFFI 1
2859 LIBFFI=../libffi/libffi_convenience.la
2860 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2865 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2866 if test "${enable_jvmpi+set}" = set; then
2867 enableval="$enable_jvmpi"
2872 if test "$enable_jvmpi" != no; then
2873 cat >> confdefs.h <<\EOF
2874 #define ENABLE_JVMPI 1
2879 TARGET_ECOS=${PROCESS-"no"}
2880 # Check whether --with-ecos or --without-ecos was given.
2881 if test "${with_ecos+set}" = set; then
2882 withval="$with_ecos"
2883 TARGET_ECOS="$with_ecos"
2888 PLATFORMOBJS=
2889 case "$TARGET_ECOS" in
2890 no) case "$host" in
2891 *mingw*)
2892 PLATFORM=Win32
2893 PLATFORMOBJS=win32.lo
2894 PLATFORMH=win32.h
2897 PLATFORM=Posix
2898 PLATFORMOBJS=posix.lo
2899 PLATFORMH=posix.h
2901 esac
2904 PLATFORM=Ecos
2905 cat >> confdefs.h <<\EOF
2906 #define ECOS 1
2909 PLATFORMOBJS=posix.lo
2910 PLATFORMH=posix.h
2912 esac
2916 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2917 echo "configure:2918: checking how to run the C preprocessor" >&5
2918 # On Suns, sometimes $CPP names a directory.
2919 if test -n "$CPP" && test -d "$CPP"; then
2920 CPP=
2922 if test -z "$CPP"; then
2923 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2925 else
2926 # This must be in double quotes, not single quotes, because CPP may get
2927 # substituted into the Makefile and "${CC-cc}" will confuse make.
2928 CPP="${CC-cc} -E"
2929 # On the NeXT, cc -E runs the code through the compiler's parser,
2930 # not just through cpp.
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2934 #include <assert.h>
2935 Syntax Error
2937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2938 { (eval echo configure:2939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2940 if test -z "$ac_err"; then
2942 else
2943 echo "$ac_err" >&5
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2946 rm -rf conftest*
2947 CPP="${CC-cc} -E -traditional-cpp"
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 #include <assert.h>
2952 Syntax Error
2954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2955 { (eval echo configure:2956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2957 if test -z "$ac_err"; then
2959 else
2960 echo "$ac_err" >&5
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2963 rm -rf conftest*
2964 CPP="${CC-cc} -nologo -E"
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 #include <assert.h>
2969 Syntax Error
2971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2972 { (eval echo configure:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2974 if test -z "$ac_err"; then
2976 else
2977 echo "$ac_err" >&5
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 rm -rf conftest*
2981 CPP=/lib/cpp
2983 rm -f conftest*
2985 rm -f conftest*
2987 rm -f conftest*
2988 ac_cv_prog_CPP="$CPP"
2990 CPP="$ac_cv_prog_CPP"
2991 else
2992 ac_cv_prog_CPP="$CPP"
2994 echo "$ac_t""$CPP" 1>&6
2996 cat > conftest.$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
2999 #include <stdint.h>
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 egrep "uint32_t" >/dev/null 2>&1; then
3003 rm -rf conftest*
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_INT32_DEFINED 1
3009 rm -f conftest*
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 #include <inttypes.h>
3016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3017 egrep "uint32_t" >/dev/null 2>&1; then
3018 rm -rf conftest*
3019 cat >> confdefs.h <<\EOF
3020 #define HAVE_INT32_DEFINED 1
3024 rm -f conftest*
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 #include <sys/types.h>
3031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3032 egrep "u_int32_t" >/dev/null 2>&1; then
3033 rm -rf conftest*
3034 cat >> confdefs.h <<\EOF
3035 #define HAVE_BSD_INT32_DEFINED 1
3039 rm -f conftest*
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3044 #include <sys/config.h>
3046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3047 egrep "u_int32_t" >/dev/null 2>&1; then
3048 rm -rf conftest*
3049 cat >> confdefs.h <<\EOF
3050 #define HAVE_BSD_INT32_DEFINED 1
3054 rm -f conftest*
3058 cat > conftest.$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3061 #include <time.h>
3063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3064 egrep "mktime" >/dev/null 2>&1; then
3065 rm -rf conftest*
3066 cat >> confdefs.h <<\EOF
3067 #define HAVE_MKTIME 1
3071 rm -f conftest*
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 #include <time.h>
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079 egrep "localtime" >/dev/null 2>&1; then
3080 rm -rf conftest*
3081 cat >> confdefs.h <<\EOF
3082 #define HAVE_LOCALTIME 1
3086 rm -f conftest*
3089 test -d java || mkdir java
3090 test -d java/io || mkdir java/io
3091 test -d gnu || mkdir gnu
3095 test -d java/lang || mkdir java/lang
3099 case "${host}" in
3100 *mingw*)
3101 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3104 SYSTEMSPEC=
3106 esac
3109 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3112 # Check whether --with-system-zlib or --without-system-zlib was given.
3113 if test "${with_system_zlib+set}" = set; then
3114 withval="$with_system_zlib"
3118 ZLIBSPEC=
3120 ZLIBTESTSPEC=
3123 libsubdir=.libs
3125 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3126 echo "configure:3127: checking for garbage collector to use" >&5
3127 # Check whether --enable-java-gc or --disable-java-gc was given.
3128 if test "${enable_java_gc+set}" = set; then
3129 enableval="$enable_java_gc"
3131 GC=$enableval
3132 else
3133 GC=boehm
3136 GCLIBS=
3137 GCINCS=
3138 GCDEPS=
3139 GCOBJS=
3140 GCSPEC=
3141 JC1GCSPEC=
3142 GCTESTSPEC=
3143 case "$GC" in
3144 boehm)
3145 echo "$ac_t""boehm" 1>&6
3146 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3147 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3148 JC1GCSPEC='-fuse-boehm-gc'
3149 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3151 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3152 GCOBJS=boehm.lo
3153 GCHDR=boehm-gc.h
3154 cat >> confdefs.h <<\EOF
3155 #define HAVE_BOEHM_GC 1
3160 echo "$ac_t""none" 1>&6
3161 GCOBJS=nogc.lo
3162 GCHDR=no-gc.h
3165 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3167 esac
3178 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3179 echo "configure:3180: checking for thread model used by GCC" >&5
3180 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3181 echo "$ac_t""$THREADS" 1>&6
3183 case "$THREADS" in
3184 no | none | single)
3185 THREADS=none
3187 posix | pthreads)
3188 THREADS=posix
3189 case "$host" in
3190 *-*-linux*)
3191 cat >> confdefs.h <<\EOF
3192 #define LINUX_THREADS 1
3196 esac
3198 win32)
3200 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3201 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3204 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3206 esac
3208 THREADLDFLAGS=
3209 THREADLIBS=
3210 THREADINCS=
3211 THREADDEPS=
3212 THREADOBJS=
3213 THREADH=
3214 THREADSPEC=
3215 case "$THREADS" in
3216 posix)
3217 case "$host" in
3218 *-*-cygwin*)
3219 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3222 *-*-freebsd[1234]*)
3224 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3225 # merely adds pthread_* functions) but it does have a -pthread switch
3226 # which is required at link-time to select -lc_r *instead* of -lc.
3227 THREADLDFLAGS=-pthread
3228 # Don't set THREADSPEC here as might be expected since -pthread is
3229 # not processed when found within a spec file, it must come from
3230 # the command line. For now, the user must provide the -pthread
3231 # switch to link code compiled with gcj. In future, consider adding
3232 # support for weak references to pthread_* functions ala gthr.h API.
3233 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3235 *-*-freebsd*)
3236 # FreeBSD 5 implements a model much closer to other modern UNIX
3237 # which support threads. However, it still does not support
3238 # -lpthread.
3239 THREADLDFLAGS=-pthread
3240 THREADSPEC=-lc_r
3243 THREADLIBS=-lpthread
3244 THREADSPEC=-lpthread
3246 esac
3247 THREADOBJS=posix-threads.lo
3248 THREADH=posix-threads.h
3249 # MIT pthreads doesn't seem to have the mutexattr functions.
3250 # But for now we don't check for it. We just assume you aren't
3251 # using MIT pthreads.
3252 cat >> confdefs.h <<\EOF
3253 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3257 # If we're using the Boehm GC, then we happen to know that it
3258 # defines _REENTRANT, so we don't bother. Eww.
3259 if test "$GC" != boehm; then
3260 cat >> confdefs.h <<\EOF
3261 #define _REENTRANT 1
3265 cat >> confdefs.h <<\EOF
3266 #define _POSIX_PTHREAD_SEMANTICS 1
3271 win32)
3272 THREADOBJS=win32-threads.lo
3273 THREADH=win32-threads.h
3276 none)
3277 THREADOBJS=no-threads.lo
3278 THREADH=no-threads.h
3280 esac
3289 if test -d sysdep; then true; else mkdir sysdep; fi
3292 HASH_SYNC_SPEC=
3293 # Hash synchronization is only useful with posix threads right now.
3294 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3295 HASH_SYNC_SPEC=-fhash-synchronization
3296 cat >> confdefs.h <<\EOF
3297 #define JV_HASH_SYNCHRONIZATION 1
3306 if test "$GCC" = yes; then
3307 USING_GCC_TRUE=
3308 USING_GCC_FALSE='#'
3309 else
3310 USING_GCC_TRUE='#'
3311 USING_GCC_FALSE=
3314 CANADIAN=no
3315 NULL_TARGET=no
3316 NATIVE=yes
3318 # We're in the tree with gcc, and need to include some of its headers.
3319 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3321 # Figure out where generated headers like libgcj-config.h get installed.
3322 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3323 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3324 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3325 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3329 if test -n "${with_cross_host}"; then
3330 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3331 # may not work correctly, because the compiler may not be able to
3332 # link executables.
3334 # We assume newlib. This lets us hard-code the functions we know
3335 # we'll have.
3336 cat >> confdefs.h <<\EOF
3337 #define HAVE_MEMMOVE 1
3340 cat >> confdefs.h <<\EOF
3341 #define HAVE_MEMCPY 1
3344 cat >> confdefs.h <<\EOF
3345 #define HAVE_STRERROR 1
3348 cat >> confdefs.h <<\EOF
3349 #define HAVE_TIME 1
3352 cat >> confdefs.h <<\EOF
3353 #define HAVE_GMTIME_R 1
3356 cat >> confdefs.h <<\EOF
3357 #define HAVE_LOCALTIME_R 1
3360 cat >> confdefs.h <<\EOF
3361 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3364 cat >> confdefs.h <<\EOF
3365 #define HAVE_ALLOCA 1
3369 cat >> confdefs.h <<\EOF
3370 #define NO_GETUID 1
3374 # If Canadian cross, then don't pick up tools from the build
3375 # directory.
3376 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3377 CANADIAN=yes
3378 GCC_UNWIND_INCLUDE=
3379 GCJ="${target_alias}-gcj"
3381 NATIVE=no
3382 else
3383 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3386 echo "configure:3387: checking for $ac_func" >&5
3387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3389 else
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 /* System header to define __stub macros and hopefully few prototypes,
3394 which can conflict with char $ac_func(); below. */
3395 #include <assert.h>
3396 /* Override any gcc2 internal prototype to avoid an error. */
3397 /* We use char because int might match the return type of a gcc2
3398 builtin and then its argument prototype would still apply. */
3399 char $ac_func();
3401 int main() {
3403 /* The GNU C library defines this for functions which it implements
3404 to always fail with ENOSYS. Some functions are actually named
3405 something starting with __ and the normal name is an alias. */
3406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3407 choke me
3408 #else
3409 $ac_func();
3410 #endif
3412 ; return 0; }
3414 if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3415 rm -rf conftest*
3416 eval "ac_cv_func_$ac_func=yes"
3417 else
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3420 rm -rf conftest*
3421 eval "ac_cv_func_$ac_func=no"
3423 rm -f conftest*
3426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3427 echo "$ac_t""yes" 1>&6
3428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3429 cat >> confdefs.h <<EOF
3430 #define $ac_tr_func 1
3433 else
3434 echo "$ac_t""no" 1>&6
3436 done
3438 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3441 echo "configure:3442: checking for $ac_func" >&5
3442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3444 else
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* System header to define __stub macros and hopefully few prototypes,
3449 which can conflict with char $ac_func(); below. */
3450 #include <assert.h>
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3454 char $ac_func();
3456 int main() {
3458 /* The GNU C library defines this for functions which it implements
3459 to always fail with ENOSYS. Some functions are actually named
3460 something starting with __ and the normal name is an alias. */
3461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3462 choke me
3463 #else
3464 $ac_func();
3465 #endif
3467 ; return 0; }
3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3470 rm -rf conftest*
3471 eval "ac_cv_func_$ac_func=yes"
3472 else
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 rm -rf conftest*
3476 eval "ac_cv_func_$ac_func=no"
3478 rm -f conftest*
3481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3482 echo "$ac_t""yes" 1>&6
3483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3484 cat >> confdefs.h <<EOF
3485 #define $ac_tr_func 1
3488 else
3489 echo "$ac_t""no" 1>&6
3491 done
3493 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_func" >&5
3497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3499 else
3500 cat > conftest.$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 /* System header to define __stub macros and hopefully few prototypes,
3504 which can conflict with char $ac_func(); below. */
3505 #include <assert.h>
3506 /* Override any gcc2 internal prototype to avoid an error. */
3507 /* We use char because int might match the return type of a gcc2
3508 builtin and then its argument prototype would still apply. */
3509 char $ac_func();
3511 int main() {
3513 /* The GNU C library defines this for functions which it implements
3514 to always fail with ENOSYS. Some functions are actually named
3515 something starting with __ and the normal name is an alias. */
3516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3517 choke me
3518 #else
3519 $ac_func();
3520 #endif
3522 ; return 0; }
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 rm -rf conftest*
3526 eval "ac_cv_func_$ac_func=yes"
3527 else
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 rm -rf conftest*
3531 eval "ac_cv_func_$ac_func=no"
3533 rm -f conftest*
3536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3539 cat >> confdefs.h <<EOF
3540 #define $ac_tr_func 1
3543 else
3544 echo "$ac_t""no" 1>&6
3546 done
3548 for ac_func in nl_langinfo setlocale
3550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3551 echo "configure:3552: checking for $ac_func" >&5
3552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3554 else
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* System header to define __stub macros and hopefully few prototypes,
3559 which can conflict with char $ac_func(); below. */
3560 #include <assert.h>
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3564 char $ac_func();
3566 int main() {
3568 /* The GNU C library defines this for functions which it implements
3569 to always fail with ENOSYS. Some functions are actually named
3570 something starting with __ and the normal name is an alias. */
3571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3572 choke me
3573 #else
3574 $ac_func();
3575 #endif
3577 ; return 0; }
3579 if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3580 rm -rf conftest*
3581 eval "ac_cv_func_$ac_func=yes"
3582 else
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3585 rm -rf conftest*
3586 eval "ac_cv_func_$ac_func=no"
3588 rm -f conftest*
3591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3594 cat >> confdefs.h <<EOF
3595 #define $ac_tr_func 1
3598 else
3599 echo "$ac_t""no" 1>&6
3601 done
3603 for ac_func in inet_aton inet_addr
3605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3606 echo "configure:3607: checking for $ac_func" >&5
3607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3609 else
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 /* System header to define __stub macros and hopefully few prototypes,
3614 which can conflict with char $ac_func(); below. */
3615 #include <assert.h>
3616 /* Override any gcc2 internal prototype to avoid an error. */
3617 /* We use char because int might match the return type of a gcc2
3618 builtin and then its argument prototype would still apply. */
3619 char $ac_func();
3621 int main() {
3623 /* The GNU C library defines this for functions which it implements
3624 to always fail with ENOSYS. Some functions are actually named
3625 something starting with __ and the normal name is an alias. */
3626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3627 choke me
3628 #else
3629 $ac_func();
3630 #endif
3632 ; return 0; }
3634 if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3635 rm -rf conftest*
3636 eval "ac_cv_func_$ac_func=yes"
3637 else
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 rm -rf conftest*
3641 eval "ac_cv_func_$ac_func=no"
3643 rm -f conftest*
3646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3647 echo "$ac_t""yes" 1>&6
3648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3649 cat >> confdefs.h <<EOF
3650 #define $ac_tr_func 1
3652 break
3653 else
3654 echo "$ac_t""no" 1>&6
3656 done
3658 for ac_func in inet_pton uname inet_ntoa
3660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_func" >&5
3662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* System header to define __stub macros and hopefully few prototypes,
3669 which can conflict with char $ac_func(); below. */
3670 #include <assert.h>
3671 /* Override any gcc2 internal prototype to avoid an error. */
3672 /* We use char because int might match the return type of a gcc2
3673 builtin and then its argument prototype would still apply. */
3674 char $ac_func();
3676 int main() {
3678 /* The GNU C library defines this for functions which it implements
3679 to always fail with ENOSYS. Some functions are actually named
3680 something starting with __ and the normal name is an alias. */
3681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3682 choke me
3683 #else
3684 $ac_func();
3685 #endif
3687 ; return 0; }
3689 if { (eval echo configure:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3690 rm -rf conftest*
3691 eval "ac_cv_func_$ac_func=yes"
3692 else
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3695 rm -rf conftest*
3696 eval "ac_cv_func_$ac_func=no"
3698 rm -f conftest*
3701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3704 cat >> confdefs.h <<EOF
3705 #define $ac_tr_func 1
3708 else
3709 echo "$ac_t""no" 1>&6
3711 done
3713 for ac_func in fork execvp pipe sigaction
3715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3716 echo "configure:3717: checking for $ac_func" >&5
3717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3719 else
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 /* System header to define __stub macros and hopefully few prototypes,
3724 which can conflict with char $ac_func(); below. */
3725 #include <assert.h>
3726 /* Override any gcc2 internal prototype to avoid an error. */
3727 /* We use char because int might match the return type of a gcc2
3728 builtin and then its argument prototype would still apply. */
3729 char $ac_func();
3731 int main() {
3733 /* The GNU C library defines this for functions which it implements
3734 to always fail with ENOSYS. Some functions are actually named
3735 something starting with __ and the normal name is an alias. */
3736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3737 choke me
3738 #else
3739 $ac_func();
3740 #endif
3742 ; return 0; }
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745 rm -rf conftest*
3746 eval "ac_cv_func_$ac_func=yes"
3747 else
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3750 rm -rf conftest*
3751 eval "ac_cv_func_$ac_func=no"
3753 rm -f conftest*
3756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3757 echo "$ac_t""yes" 1>&6
3758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3759 cat >> confdefs.h <<EOF
3760 #define $ac_tr_func 1
3763 else
3764 echo "$ac_t""no" 1>&6
3766 done
3768 for ac_hdr in execinfo.h unistd.h dlfcn.h
3770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3772 echo "configure:3773: checking for $ac_hdr" >&5
3773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775 else
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 #include <$ac_hdr>
3781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3782 { (eval echo configure:3783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3784 if test -z "$ac_err"; then
3785 rm -rf conftest*
3786 eval "ac_cv_header_$ac_safe=yes"
3787 else
3788 echo "$ac_err" >&5
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3791 rm -rf conftest*
3792 eval "ac_cv_header_$ac_safe=no"
3794 rm -f conftest*
3796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3799 cat >> confdefs.h <<EOF
3800 #define $ac_tr_hdr 1
3803 else
3804 echo "$ac_t""no" 1>&6
3806 done
3808 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
3809 echo "configure:3810: checking for backtrace" >&5
3810 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3812 else
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 /* System header to define __stub macros and hopefully few prototypes,
3817 which can conflict with char backtrace(); below. */
3818 #include <assert.h>
3819 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3822 char backtrace();
3824 int main() {
3826 /* The GNU C library defines this for functions which it implements
3827 to always fail with ENOSYS. Some functions are actually named
3828 something starting with __ and the normal name is an alias. */
3829 #if defined (__stub_backtrace) || defined (__stub___backtrace)
3830 choke me
3831 #else
3832 backtrace();
3833 #endif
3835 ; return 0; }
3837 if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3838 rm -rf conftest*
3839 eval "ac_cv_func_backtrace=yes"
3840 else
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 rm -rf conftest*
3844 eval "ac_cv_func_backtrace=no"
3846 rm -f conftest*
3849 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
3850 echo "$ac_t""yes" 1>&6
3852 case "$host" in
3853 ia64-*-linux*)
3854 # Has broken backtrace()
3857 cat >> confdefs.h <<\EOF
3858 #define HAVE_BACKTRACE 1
3862 esac
3864 else
3865 echo "$ac_t""no" 1>&6
3869 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3870 echo "configure:3871: checking for dladdr in -ldl" >&5
3871 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3874 else
3875 ac_save_LIBS="$LIBS"
3876 LIBS="-ldl $LIBS"
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char dladdr();
3885 int main() {
3886 dladdr()
3887 ; return 0; }
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3890 rm -rf conftest*
3891 eval "ac_cv_lib_$ac_lib_var=yes"
3892 else
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3895 rm -rf conftest*
3896 eval "ac_cv_lib_$ac_lib_var=no"
3898 rm -f conftest*
3899 LIBS="$ac_save_LIBS"
3902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3905 cat >> confdefs.h <<\EOF
3906 #define HAVE_DLADDR 1
3909 else
3910 echo "$ac_t""no" 1>&6
3913 for ac_file in /proc/self/exe
3916 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3917 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3918 echo "configure:3919: checking for $ac_file" >&5
3919 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3921 else
3922 if test "$cross_compiling" = yes; then
3923 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3924 else
3925 if test -r $ac_file; then
3926 eval "ac_cv_file_$ac_safe=yes"
3927 else
3928 eval "ac_cv_file_$ac_safe=no"
3932 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3933 echo "$ac_t""yes" 1>&6
3934 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3935 cat >> confdefs.h <<EOF
3936 #define $ac_tr_file 1
3939 cat >> confdefs.h <<\EOF
3940 #define HAVE_PROC_SELF_EXE 1
3943 else
3944 echo "$ac_t""no" 1>&6
3947 done
3952 am_cv_lib_iconv_ldpath=
3953 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3954 if test "${with_libiconv_prefix+set}" = set; then
3955 withval="$with_libiconv_prefix"
3957 for dir in `echo "$withval" | tr : ' '`; do
3958 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3959 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
3960 done
3965 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3966 echo "configure:3967: checking for iconv" >&5
3967 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969 else
3971 am_cv_func_iconv="no, consider installing GNU libiconv"
3972 am_cv_lib_iconv=no
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 #include <stdlib.h>
3977 #include <iconv.h>
3978 int main() {
3979 iconv_t cd = iconv_open("","");
3980 iconv(cd,NULL,NULL,NULL,NULL);
3981 iconv_close(cd);
3982 ; return 0; }
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3985 rm -rf conftest*
3986 am_cv_func_iconv=yes
3987 else
3988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3991 rm -f conftest*
3992 if test "$am_cv_func_iconv" != yes; then
3993 am_save_LIBS="$LIBS"
3994 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998 #include <stdlib.h>
3999 #include <iconv.h>
4000 int main() {
4001 iconv_t cd = iconv_open("","");
4002 iconv(cd,NULL,NULL,NULL,NULL);
4003 iconv_close(cd);
4004 ; return 0; }
4006 if { (eval echo configure:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4007 rm -rf conftest*
4008 am_cv_lib_iconv=yes
4009 am_cv_func_iconv=yes
4010 else
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4014 rm -f conftest*
4015 LIBS="$am_save_LIBS"
4020 echo "$ac_t""$am_cv_func_iconv" 1>&6
4021 if test "$am_cv_func_iconv" = yes; then
4022 cat >> confdefs.h <<\EOF
4023 #define HAVE_ICONV 1
4026 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4027 echo "configure:4028: checking for iconv declaration" >&5
4028 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4036 #include <stdlib.h>
4037 #include <iconv.h>
4038 extern
4039 #ifdef __cplusplus
4041 #endif
4042 #if defined(__STDC__) || defined(__cplusplus)
4043 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4044 #else
4045 size_t iconv();
4046 #endif
4048 int main() {
4050 ; return 0; }
4052 if { (eval echo configure:4053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4053 rm -rf conftest*
4054 am_cv_proto_iconv_arg1=""
4055 else
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4058 rm -rf conftest*
4059 am_cv_proto_iconv_arg1="const"
4061 rm -f conftest*
4062 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);"
4065 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4066 echo "$ac_t""${ac_t:-
4067 }$am_cv_proto_iconv" 1>&6
4068 cat >> confdefs.h <<EOF
4069 #define ICONV_CONST $am_cv_proto_iconv_arg1
4073 LIBICONV=
4074 if test "$am_cv_lib_iconv" = yes; then
4075 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
4079 if test $ac_cv_header_locale_h = yes; then
4080 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4081 echo "configure:4082: checking for LC_MESSAGES" >&5
4082 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4084 else
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4088 #include <locale.h>
4089 int main() {
4090 return LC_MESSAGES
4091 ; return 0; }
4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4094 rm -rf conftest*
4095 am_cv_val_LC_MESSAGES=yes
4096 else
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4099 rm -rf conftest*
4100 am_cv_val_LC_MESSAGES=no
4102 rm -f conftest*
4105 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4106 if test $am_cv_val_LC_MESSAGES = yes; then
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_LC_MESSAGES 1
4113 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4114 echo "configure:4115: checking whether struct tm is in sys/time.h or time.h" >&5
4115 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4117 else
4118 cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 #include <sys/types.h>
4122 #include <time.h>
4123 int main() {
4124 struct tm *tp; tp->tm_sec;
4125 ; return 0; }
4127 if { (eval echo configure:4128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4128 rm -rf conftest*
4129 ac_cv_struct_tm=time.h
4130 else
4131 echo "configure: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 rm -rf conftest*
4134 ac_cv_struct_tm=sys/time.h
4136 rm -f conftest*
4139 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4140 if test $ac_cv_struct_tm = sys/time.h; then
4141 cat >> confdefs.h <<\EOF
4142 #define TM_IN_SYS_TIME 1
4147 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4148 echo "configure:4149: checking for tm_zone in struct tm" >&5
4149 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4151 else
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155 #include <sys/types.h>
4156 #include <$ac_cv_struct_tm>
4157 int main() {
4158 struct tm tm; tm.tm_zone;
4159 ; return 0; }
4161 if { (eval echo configure:4162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4162 rm -rf conftest*
4163 ac_cv_struct_tm_zone=yes
4164 else
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4167 rm -rf conftest*
4168 ac_cv_struct_tm_zone=no
4170 rm -f conftest*
4173 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4174 if test "$ac_cv_struct_tm_zone" = yes; then
4175 cat >> confdefs.h <<\EOF
4176 #define HAVE_TM_ZONE 1
4179 else
4180 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4181 echo "configure:4182: checking for tzname" >&5
4182 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4184 else
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 #include <time.h>
4189 #ifndef tzname /* For SGI. */
4190 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4191 #endif
4192 int main() {
4193 atoi(*tzname);
4194 ; return 0; }
4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4197 rm -rf conftest*
4198 ac_cv_var_tzname=yes
4199 else
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 rm -rf conftest*
4203 ac_cv_var_tzname=no
4205 rm -f conftest*
4208 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4209 if test $ac_cv_var_tzname = yes; then
4210 cat >> confdefs.h <<\EOF
4211 #define HAVE_TZNAME 1
4218 for ac_func in gethostbyname_r
4220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4221 echo "configure:4222: checking for $ac_func" >&5
4222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4224 else
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* System header to define __stub macros and hopefully few prototypes,
4229 which can conflict with char $ac_func(); below. */
4230 #include <assert.h>
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char $ac_func();
4236 int main() {
4238 /* The GNU C library defines this for functions which it implements
4239 to always fail with ENOSYS. Some functions are actually named
4240 something starting with __ and the normal name is an alias. */
4241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4242 choke me
4243 #else
4244 $ac_func();
4245 #endif
4247 ; return 0; }
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4250 rm -rf conftest*
4251 eval "ac_cv_func_$ac_func=yes"
4252 else
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4255 rm -rf conftest*
4256 eval "ac_cv_func_$ac_func=no"
4258 rm -f conftest*
4261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4264 cat >> confdefs.h <<EOF
4265 #define $ac_tr_func 1
4268 cat >> confdefs.h <<\EOF
4269 #define HAVE_GETHOSTBYNAME_R 1
4272 # There are two different kinds of gethostbyname_r.
4273 # We look for the one that returns `int'.
4274 # Hopefully this check is robust enough.
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4278 #include <netdb.h>
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
4282 rm -rf conftest*
4284 cat >> confdefs.h <<\EOF
4285 #define GETHOSTBYNAME_R_RETURNS_INT 1
4289 rm -f conftest*
4292 case " $GCINCS " in
4293 *" -D_REENTRANT "*) ;;
4295 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4296 echo "configure:4297: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4297 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4299 else
4301 ac_ext=C
4302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4303 ac_cpp='$CXXCPP $CPPFLAGS'
4304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4306 cross_compiling=$ac_cv_prog_cxx_cross
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 #include <netdb.h>
4312 int main() {
4313 gethostbyname_r("", 0, 0);
4314 ; return 0; }
4316 if { (eval echo configure:4317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4317 rm -rf conftest*
4318 libjava_cv_gethostbyname_r_needs_reentrant=no
4319 else
4320 echo "configure: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 rm -rf conftest*
4323 CPPFLAGS_SAVE="$CPPFLAGS"
4324 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 #include <netdb.h>
4329 int main() {
4330 gethostbyname_r("", 0, 0);
4331 ; return 0; }
4333 if { (eval echo configure:4334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4334 rm -rf conftest*
4335 libjava_cv_gethostbyname_r_needs_reentrant=yes
4336 else
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4339 rm -rf conftest*
4340 libjava_cv_gethostbyname_r_needs_reentrant=fail
4342 rm -f conftest*
4343 CPPFLAGS="$CPPFLAGS_SAVE"
4346 rm -f conftest*
4347 ac_ext=c
4348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4352 cross_compiling=$ac_cv_prog_cc_cross
4357 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4358 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4359 cat >> confdefs.h <<\EOF
4360 #define _REENTRANT 1
4365 esac
4367 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4368 echo "configure:4369: checking for struct hostent_data" >&5
4369 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4371 else
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4376 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4377 # define _REENTRANT 1
4378 #endif
4379 #include <netdb.h>
4380 int main() {
4381 struct hostent_data data;
4382 ; return 0; }
4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4385 rm -rf conftest*
4386 libjava_cv_struct_hostent_data=yes
4387 else
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4390 rm -rf conftest*
4391 libjava_cv_struct_hostent_data=no
4393 rm -f conftest*
4396 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4397 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4398 cat >> confdefs.h <<\EOF
4399 #define HAVE_STRUCT_HOSTENT_DATA 1
4404 else
4405 echo "$ac_t""no" 1>&6
4407 done
4410 # FIXME: libjava source code expects to find a prototype for
4411 # gethostbyaddr_r in netdb.h. The outer check ensures that
4412 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4413 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4414 # linkage check is enough, yet C++ code requires proper prototypes.)
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 #include <netdb.h>
4420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4421 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
4422 rm -rf conftest*
4424 for ac_func in gethostbyaddr_r
4426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4427 echo "configure:4428: checking for $ac_func" >&5
4428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4430 else
4431 cat > conftest.$ac_ext <<EOF
4432 #line 4433 "configure"
4433 #include "confdefs.h"
4434 /* System header to define __stub macros and hopefully few prototypes,
4435 which can conflict with char $ac_func(); below. */
4436 #include <assert.h>
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4440 char $ac_func();
4442 int main() {
4444 /* The GNU C library defines this for functions which it implements
4445 to always fail with ENOSYS. Some functions are actually named
4446 something starting with __ and the normal name is an alias. */
4447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4448 choke me
4449 #else
4450 $ac_func();
4451 #endif
4453 ; return 0; }
4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4456 rm -rf conftest*
4457 eval "ac_cv_func_$ac_func=yes"
4458 else
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461 rm -rf conftest*
4462 eval "ac_cv_func_$ac_func=no"
4464 rm -f conftest*
4467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4468 echo "$ac_t""yes" 1>&6
4469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4470 cat >> confdefs.h <<EOF
4471 #define $ac_tr_func 1
4474 cat >> confdefs.h <<\EOF
4475 #define HAVE_GETHOSTBYADDR_R 1
4478 # There are two different kinds of gethostbyaddr_r.
4479 # We look for the one that returns `int'.
4480 # Hopefully this check is robust enough.
4481 cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4484 #include <netdb.h>
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4488 rm -rf conftest*
4490 cat >> confdefs.h <<\EOF
4491 #define GETHOSTBYADDR_R_RETURNS_INT 1
4495 rm -f conftest*
4497 else
4498 echo "$ac_t""no" 1>&6
4500 done
4503 rm -f conftest*
4506 for ac_func in gethostname
4508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4509 echo "configure:4510: checking for $ac_func" >&5
4510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4512 else
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 /* System header to define __stub macros and hopefully few prototypes,
4517 which can conflict with char $ac_func(); below. */
4518 #include <assert.h>
4519 /* Override any gcc2 internal prototype to avoid an error. */
4520 /* We use char because int might match the return type of a gcc2
4521 builtin and then its argument prototype would still apply. */
4522 char $ac_func();
4524 int main() {
4526 /* The GNU C library defines this for functions which it implements
4527 to always fail with ENOSYS. Some functions are actually named
4528 something starting with __ and the normal name is an alias. */
4529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4530 choke me
4531 #else
4532 $ac_func();
4533 #endif
4535 ; return 0; }
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4538 rm -rf conftest*
4539 eval "ac_cv_func_$ac_func=yes"
4540 else
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4543 rm -rf conftest*
4544 eval "ac_cv_func_$ac_func=no"
4546 rm -f conftest*
4549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4552 cat >> confdefs.h <<EOF
4553 #define $ac_tr_func 1
4556 cat >> confdefs.h <<\EOF
4557 #define HAVE_GETHOSTNAME 1
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 #include <unistd.h>
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 egrep "gethostname" >/dev/null 2>&1; then
4567 rm -rf conftest*
4569 cat >> confdefs.h <<\EOF
4570 #define HAVE_GETHOSTNAME_DECL 1
4574 rm -f conftest*
4576 else
4577 echo "$ac_t""no" 1>&6
4579 done
4582 # Look for these functions in the thread library, but only bother
4583 # if using POSIX threads.
4584 if test "$THREADS" = posix; then
4585 save_LIBS="$LIBS"
4586 LIBS="$LIBS $THREADLIBS"
4587 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4588 # E.g., Solaris.
4589 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_func" >&5
4593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 /* System header to define __stub macros and hopefully few prototypes,
4600 which can conflict with char $ac_func(); below. */
4601 #include <assert.h>
4602 /* Override any gcc2 internal prototype to avoid an error. */
4603 /* We use char because int might match the return type of a gcc2
4604 builtin and then its argument prototype would still apply. */
4605 char $ac_func();
4607 int main() {
4609 /* The GNU C library defines this for functions which it implements
4610 to always fail with ENOSYS. Some functions are actually named
4611 something starting with __ and the normal name is an alias. */
4612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4613 choke me
4614 #else
4615 $ac_func();
4616 #endif
4618 ; return 0; }
4620 if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4621 rm -rf conftest*
4622 eval "ac_cv_func_$ac_func=yes"
4623 else
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4626 rm -rf conftest*
4627 eval "ac_cv_func_$ac_func=no"
4629 rm -f conftest*
4632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4635 cat >> confdefs.h <<EOF
4636 #define $ac_tr_func 1
4639 else
4640 echo "$ac_t""no" 1>&6
4642 done
4645 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4646 # Solaris 7 the name librt is preferred.
4647 for ac_func in sched_yield
4649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4650 echo "configure:4651: checking for $ac_func" >&5
4651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4653 else
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 /* System header to define __stub macros and hopefully few prototypes,
4658 which can conflict with char $ac_func(); below. */
4659 #include <assert.h>
4660 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4663 char $ac_func();
4665 int main() {
4667 /* The GNU C library defines this for functions which it implements
4668 to always fail with ENOSYS. Some functions are actually named
4669 something starting with __ and the normal name is an alias. */
4670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4671 choke me
4672 #else
4673 $ac_func();
4674 #endif
4676 ; return 0; }
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4679 rm -rf conftest*
4680 eval "ac_cv_func_$ac_func=yes"
4681 else
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4684 rm -rf conftest*
4685 eval "ac_cv_func_$ac_func=no"
4687 rm -f conftest*
4690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4691 echo "$ac_t""yes" 1>&6
4692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4693 cat >> confdefs.h <<EOF
4694 #define $ac_tr_func 1
4697 else
4698 echo "$ac_t""no" 1>&6
4699 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4700 echo "configure:4701: checking for sched_yield in -lrt" >&5
4701 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4704 else
4705 ac_save_LIBS="$LIBS"
4706 LIBS="-lrt $LIBS"
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.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 sched_yield();
4715 int main() {
4716 sched_yield()
4717 ; return 0; }
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4720 rm -rf conftest*
4721 eval "ac_cv_lib_$ac_lib_var=yes"
4722 else
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 rm -rf conftest*
4726 eval "ac_cv_lib_$ac_lib_var=no"
4728 rm -f conftest*
4729 LIBS="$ac_save_LIBS"
4732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4735 cat >> confdefs.h <<\EOF
4736 #define HAVE_SCHED_YIELD 1
4739 THREADLIBS="$THREADLIBS -lrt"
4740 THREADSPEC="$THREADSPEC -lrt"
4741 else
4742 echo "$ac_t""no" 1>&6
4744 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4745 echo "configure:4746: checking for sched_yield in -lposix4" >&5
4746 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749 else
4750 ac_save_LIBS="$LIBS"
4751 LIBS="-lposix4 $LIBS"
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4758 char sched_yield();
4760 int main() {
4761 sched_yield()
4762 ; return 0; }
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765 rm -rf conftest*
4766 eval "ac_cv_lib_$ac_lib_var=yes"
4767 else
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4770 rm -rf conftest*
4771 eval "ac_cv_lib_$ac_lib_var=no"
4773 rm -f conftest*
4774 LIBS="$ac_save_LIBS"
4777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4778 echo "$ac_t""yes" 1>&6
4780 cat >> confdefs.h <<\EOF
4781 #define HAVE_SCHED_YIELD 1
4784 THREADLIBS="$THREADLIBS -lposix4"
4785 THREADSPEC="$THREADSPEC -lposix4"
4786 else
4787 echo "$ac_t""no" 1>&6
4793 done
4795 LIBS="$save_LIBS"
4797 # We can save a little space at runtime if the mutex has m_count
4798 # or __m_count. This is a nice hack for Linux.
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 #include <pthread.h>
4803 int main() {
4805 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4807 ; return 0; }
4809 if { (eval echo configure:4810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4810 rm -rf conftest*
4811 cat >> confdefs.h <<\EOF
4812 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4815 else
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4818 rm -rf conftest*
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4823 #include <pthread.h>
4824 int main() {
4826 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4828 ; return 0; }
4830 if { (eval echo configure:4831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4831 rm -rf conftest*
4832 cat >> confdefs.h <<\EOF
4833 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4836 else
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 rm -f conftest*
4842 rm -f conftest*
4845 # We require a way to get the time.
4846 time_found=no
4847 for ac_func in gettimeofday time ftime
4849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4850 echo "configure:4851: checking for $ac_func" >&5
4851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4853 else
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 /* System header to define __stub macros and hopefully few prototypes,
4858 which can conflict with char $ac_func(); below. */
4859 #include <assert.h>
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4863 char $ac_func();
4865 int main() {
4867 /* The GNU C library defines this for functions which it implements
4868 to always fail with ENOSYS. Some functions are actually named
4869 something starting with __ and the normal name is an alias. */
4870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4871 choke me
4872 #else
4873 $ac_func();
4874 #endif
4876 ; return 0; }
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4879 rm -rf conftest*
4880 eval "ac_cv_func_$ac_func=yes"
4881 else
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 rm -rf conftest*
4885 eval "ac_cv_func_$ac_func=no"
4887 rm -f conftest*
4890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4891 echo "$ac_t""yes" 1>&6
4892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4893 cat >> confdefs.h <<EOF
4894 #define $ac_tr_func 1
4896 time_found=yes
4897 else
4898 echo "$ac_t""no" 1>&6
4900 done
4902 if test "$time_found" = no; then
4903 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4906 for ac_func in memmove
4908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4909 echo "configure:4910: checking for $ac_func" >&5
4910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4912 else
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 /* System header to define __stub macros and hopefully few prototypes,
4917 which can conflict with char $ac_func(); below. */
4918 #include <assert.h>
4919 /* Override any gcc2 internal prototype to avoid an error. */
4920 /* We use char because int might match the return type of a gcc2
4921 builtin and then its argument prototype would still apply. */
4922 char $ac_func();
4924 int main() {
4926 /* The GNU C library defines this for functions which it implements
4927 to always fail with ENOSYS. Some functions are actually named
4928 something starting with __ and the normal name is an alias. */
4929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4930 choke me
4931 #else
4932 $ac_func();
4933 #endif
4935 ; return 0; }
4937 if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4938 rm -rf conftest*
4939 eval "ac_cv_func_$ac_func=yes"
4940 else
4941 echo "configure: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4943 rm -rf conftest*
4944 eval "ac_cv_func_$ac_func=no"
4946 rm -f conftest*
4949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4950 echo "$ac_t""yes" 1>&6
4951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4952 cat >> confdefs.h <<EOF
4953 #define $ac_tr_func 1
4956 else
4957 echo "$ac_t""no" 1>&6
4959 done
4962 # We require memcpy.
4963 memcpy_found=no
4964 for ac_func in memcpy
4966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4967 echo "configure:4968: checking for $ac_func" >&5
4968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4970 else
4971 cat > conftest.$ac_ext <<EOF
4972 #line 4973 "configure"
4973 #include "confdefs.h"
4974 /* System header to define __stub macros and hopefully few prototypes,
4975 which can conflict with char $ac_func(); below. */
4976 #include <assert.h>
4977 /* Override any gcc2 internal prototype to avoid an error. */
4978 /* We use char because int might match the return type of a gcc2
4979 builtin and then its argument prototype would still apply. */
4980 char $ac_func();
4982 int main() {
4984 /* The GNU C library defines this for functions which it implements
4985 to always fail with ENOSYS. Some functions are actually named
4986 something starting with __ and the normal name is an alias. */
4987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4988 choke me
4989 #else
4990 $ac_func();
4991 #endif
4993 ; return 0; }
4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4996 rm -rf conftest*
4997 eval "ac_cv_func_$ac_func=yes"
4998 else
4999 echo "configure: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5001 rm -rf conftest*
5002 eval "ac_cv_func_$ac_func=no"
5004 rm -f conftest*
5007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5008 echo "$ac_t""yes" 1>&6
5009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5010 cat >> confdefs.h <<EOF
5011 #define $ac_tr_func 1
5013 memcpy_found=yes
5014 else
5015 echo "$ac_t""no" 1>&6
5017 done
5019 if test "$memcpy_found" = no; then
5020 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
5023 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5024 echo "configure:5025: checking for dlopen in -ldl" >&5
5025 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5026 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5028 else
5029 ac_save_LIBS="$LIBS"
5030 LIBS="-ldl $LIBS"
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5034 /* Override any gcc2 internal prototype to avoid an error. */
5035 /* We use char because int might match the return type of a gcc2
5036 builtin and then its argument prototype would still apply. */
5037 char dlopen();
5039 int main() {
5040 dlopen()
5041 ; return 0; }
5043 if { (eval echo configure:5044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5044 rm -rf conftest*
5045 eval "ac_cv_lib_$ac_lib_var=yes"
5046 else
5047 echo "configure: failed program was:" >&5
5048 cat conftest.$ac_ext >&5
5049 rm -rf conftest*
5050 eval "ac_cv_lib_$ac_lib_var=no"
5052 rm -f conftest*
5053 LIBS="$ac_save_LIBS"
5056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5057 echo "$ac_t""yes" 1>&6
5059 cat >> confdefs.h <<\EOF
5060 #define HAVE_DLOPEN 1
5063 else
5064 echo "$ac_t""no" 1>&6
5068 # Some library-finding code we stole from Tcl.
5069 #--------------------------------------------------------------------
5070 # Check for the existence of the -lsocket and -lnsl libraries.
5071 # The order here is important, so that they end up in the right
5072 # order in the command line generated by make. Here are some
5073 # special considerations:
5074 # 1. Use "connect" and "accept" to check for -lsocket, and
5075 # "gethostbyname" to check for -lnsl.
5076 # 2. Use each function name only once: can't redo a check because
5077 # autoconf caches the results of the last check and won't redo it.
5078 # 3. Use -lnsl and -lsocket only if they supply procedures that
5079 # aren't already present in the normal libraries. This is because
5080 # IRIX 5.2 has libraries, but they aren't needed and they're
5081 # bogus: they goof up name resolution if used.
5082 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5083 # To get around this problem, check for both libraries together
5084 # if -lsocket doesn't work by itself.
5085 #--------------------------------------------------------------------
5087 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
5088 echo "configure:5089: checking for socket libraries" >&5
5089 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5091 else
5092 gcj_cv_lib_sockets=
5093 gcj_checkBoth=0
5094 unset ac_cv_func_connect
5095 echo $ac_n "checking for connect""... $ac_c" 1>&6
5096 echo "configure:5097: checking for connect" >&5
5097 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 /* System header to define __stub macros and hopefully few prototypes,
5104 which can conflict with char connect(); below. */
5105 #include <assert.h>
5106 /* Override any gcc2 internal prototype to avoid an error. */
5107 /* We use char because int might match the return type of a gcc2
5108 builtin and then its argument prototype would still apply. */
5109 char connect();
5111 int main() {
5113 /* The GNU C library defines this for functions which it implements
5114 to always fail with ENOSYS. Some functions are actually named
5115 something starting with __ and the normal name is an alias. */
5116 #if defined (__stub_connect) || defined (__stub___connect)
5117 choke me
5118 #else
5119 connect();
5120 #endif
5122 ; return 0; }
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5125 rm -rf conftest*
5126 eval "ac_cv_func_connect=yes"
5127 else
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5130 rm -rf conftest*
5131 eval "ac_cv_func_connect=no"
5133 rm -f conftest*
5136 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5138 gcj_checkSocket=0
5139 else
5140 echo "$ac_t""no" 1>&6
5141 gcj_checkSocket=1
5144 if test "$gcj_checkSocket" = 1; then
5145 unset ac_cv_func_connect
5146 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5147 echo "configure:5148: checking for main in -lsocket" >&5
5148 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5151 else
5152 ac_save_LIBS="$LIBS"
5153 LIBS="-lsocket $LIBS"
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5158 int main() {
5159 main()
5160 ; return 0; }
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163 rm -rf conftest*
5164 eval "ac_cv_lib_$ac_lib_var=yes"
5165 else
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5168 rm -rf conftest*
5169 eval "ac_cv_lib_$ac_lib_var=no"
5171 rm -f conftest*
5172 LIBS="$ac_save_LIBS"
5175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5176 echo "$ac_t""yes" 1>&6
5177 gcj_cv_lib_sockets="-lsocket"
5178 else
5179 echo "$ac_t""no" 1>&6
5180 gcj_checkBoth=1
5184 if test "$gcj_checkBoth" = 1; then
5185 gcj_oldLibs=$LIBS
5186 LIBS="$LIBS -lsocket -lnsl"
5187 unset ac_cv_func_accept
5188 echo $ac_n "checking for accept""... $ac_c" 1>&6
5189 echo "configure:5190: checking for accept" >&5
5190 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5192 else
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 /* System header to define __stub macros and hopefully few prototypes,
5197 which can conflict with char accept(); below. */
5198 #include <assert.h>
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */
5202 char accept();
5204 int main() {
5206 /* The GNU C library defines this for functions which it implements
5207 to always fail with ENOSYS. Some functions are actually named
5208 something starting with __ and the normal name is an alias. */
5209 #if defined (__stub_accept) || defined (__stub___accept)
5210 choke me
5211 #else
5212 accept();
5213 #endif
5215 ; return 0; }
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5218 rm -rf conftest*
5219 eval "ac_cv_func_accept=yes"
5220 else
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5223 rm -rf conftest*
5224 eval "ac_cv_func_accept=no"
5226 rm -f conftest*
5229 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5230 echo "$ac_t""yes" 1>&6
5231 gcj_checkNsl=0
5232 gcj_cv_lib_sockets="-lsocket -lnsl"
5233 else
5234 echo "$ac_t""no" 1>&6
5237 unset ac_cv_func_accept
5238 LIBS=$gcj_oldLibs
5240 unset ac_cv_func_gethostbyname
5241 gcj_oldLibs=$LIBS
5242 LIBS="$LIBS $gcj_cv_lib_sockets"
5243 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5244 echo "configure:5245: checking for gethostbyname" >&5
5245 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5247 else
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 /* System header to define __stub macros and hopefully few prototypes,
5252 which can conflict with char gethostbyname(); below. */
5253 #include <assert.h>
5254 /* Override any gcc2 internal prototype to avoid an error. */
5255 /* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */
5257 char gethostbyname();
5259 int main() {
5261 /* The GNU C library defines this for functions which it implements
5262 to always fail with ENOSYS. Some functions are actually named
5263 something starting with __ and the normal name is an alias. */
5264 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5265 choke me
5266 #else
5267 gethostbyname();
5268 #endif
5270 ; return 0; }
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5273 rm -rf conftest*
5274 eval "ac_cv_func_gethostbyname=yes"
5275 else
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5278 rm -rf conftest*
5279 eval "ac_cv_func_gethostbyname=no"
5281 rm -f conftest*
5284 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5287 else
5288 echo "$ac_t""no" 1>&6
5289 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5290 echo "configure:5291: checking for main in -lnsl" >&5
5291 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5294 else
5295 ac_save_LIBS="$LIBS"
5296 LIBS="-lnsl $LIBS"
5297 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5301 int main() {
5302 main()
5303 ; return 0; }
5305 if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 rm -rf conftest*
5307 eval "ac_cv_lib_$ac_lib_var=yes"
5308 else
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5311 rm -rf conftest*
5312 eval "ac_cv_lib_$ac_lib_var=no"
5314 rm -f conftest*
5315 LIBS="$ac_save_LIBS"
5318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5319 echo "$ac_t""yes" 1>&6
5320 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5321 else
5322 echo "$ac_t""no" 1>&6
5327 unset ac_cv_func_gethostbyname
5328 LIBS=$gcj_oldLIBS
5332 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5333 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5335 if test "$with_system_zlib" = yes; then
5336 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5337 echo "configure:5338: checking for deflate in -lz" >&5
5338 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5341 else
5342 ac_save_LIBS="$LIBS"
5343 LIBS="-lz $LIBS"
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* Override any gcc2 internal prototype to avoid an error. */
5348 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */
5350 char deflate();
5352 int main() {
5353 deflate()
5354 ; return 0; }
5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5357 rm -rf conftest*
5358 eval "ac_cv_lib_$ac_lib_var=yes"
5359 else
5360 echo "configure: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5362 rm -rf conftest*
5363 eval "ac_cv_lib_$ac_lib_var=no"
5365 rm -f conftest*
5366 LIBS="$ac_save_LIBS"
5369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5371 ZLIBSPEC=-lz
5372 else
5373 echo "$ac_t""no" 1>&6
5374 ZLIBSPEC=
5379 # On Solaris, and maybe other architectures, the Boehm collector
5380 # requires -ldl.
5381 if test "$GC" = boehm; then
5382 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5383 echo "configure:5384: checking for main in -ldl" >&5
5384 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5387 else
5388 ac_save_LIBS="$LIBS"
5389 LIBS="-ldl $LIBS"
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5394 int main() {
5395 main()
5396 ; return 0; }
5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5399 rm -rf conftest*
5400 eval "ac_cv_lib_$ac_lib_var=yes"
5401 else
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5404 rm -rf conftest*
5405 eval "ac_cv_lib_$ac_lib_var=no"
5407 rm -f conftest*
5408 LIBS="$ac_save_LIBS"
5411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5413 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5414 else
5415 echo "$ac_t""no" 1>&6
5420 if test -z "${with_multisubdir}"; then
5421 builddotdot=.
5422 else
5424 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5427 if test -x "${builddotdot}/../../gcc/gcj"; then
5428 dir="`cd ${builddotdot}/../../gcc && pwd`"
5429 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
5430 else
5431 CANADIAN=yes
5432 NULL_TARGET=yes
5433 GCJ="gcj -B`pwd`/"
5437 # Create it, so that compile/link tests don't fail
5438 test -f libgcj.spec || touch libgcj.spec
5440 # We must search the source tree for java.lang, since we still don't
5441 # have libgcj.jar nor java/lang/*.class
5442 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5443 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5445 # Since some classes depend on this one, we need its source available
5446 # before we can do any GCJ compilation test :-(
5447 if test ! -f gnu/classpath/Configuration.java; then
5448 test -d gnu || mkdir gnu
5449 test -d gnu/classpath || mkdir gnu/classpath
5450 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5451 < $srcdir/gnu/classpath/Configuration.java.in \
5452 > gnu/classpath/Configuration.java
5453 # We do not want to redirect the output of the grep below to /dev/null,
5454 # but we add /dev/null to the input list so that grep will print the
5455 # filename of Configuration.java in case it finds any matches.
5456 if grep @ gnu/classpath/Configuration.java /dev/null; then
5457 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5461 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5462 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5464 echo "configure:5465: checking for $ac_word" >&5
5465 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5467 else
5468 if test -n "$GCJ"; then
5469 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5470 else
5471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5472 ac_dummy="$PATH"
5473 for ac_dir in $ac_dummy; do
5474 test -z "$ac_dir" && ac_dir=.
5475 if test -f $ac_dir/$ac_word; then
5476 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5477 break
5479 done
5480 IFS="$ac_save_ifs"
5483 GCJ="$ac_cv_prog_GCJ"
5484 if test -n "$GCJ"; then
5485 echo "$ac_t""$GCJ" 1>&6
5486 else
5487 echo "$ac_t""no" 1>&6
5491 if test -z "$ac_cv_prog_GCJ"; then
5492 if test -n "$ac_tool_prefix"; then
5493 # Extract the first word of "gcj", so it can be a program name with args.
5494 set dummy gcj; ac_word=$2
5495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5496 echo "configure:5497: checking for $ac_word" >&5
5497 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5499 else
5500 if test -n "$GCJ"; then
5501 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5502 else
5503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5504 ac_dummy="$PATH"
5505 for ac_dir in $ac_dummy; do
5506 test -z "$ac_dir" && ac_dir=.
5507 if test -f $ac_dir/$ac_word; then
5508 ac_cv_prog_GCJ="gcj"
5509 break
5511 done
5512 IFS="$ac_save_ifs"
5513 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5516 GCJ="$ac_cv_prog_GCJ"
5517 if test -n "$GCJ"; then
5518 echo "$ac_t""$GCJ" 1>&6
5519 else
5520 echo "$ac_t""no" 1>&6
5523 else
5524 GCJ="no"
5528 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5532 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5533 lt_save_CC="$CC"
5534 lt_save_CFLAGS="$CFLAGS"
5535 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5536 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5537 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5538 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5539 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5540 deplibs_check_method="$deplibs_check_method" \
5541 file_magic_cmd="$file_magic_cmd" \
5542 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5543 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5544 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5545 CC="$lt_save_CC"
5546 CFLAGS="$lt_save_CFLAGS"
5548 # Redirect the config.log output again, so that the ltconfig log is not
5549 # clobbered by the next message.
5550 exec 5>>./config.log
5555 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5557 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5558 echo "configure:5559: checking size of void *" >&5
5559 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5561 else
5562 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 #include "confdefs.h"
5567 #include <sys/types.h>
5570 int main() {
5571 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5572 ; return 0; }
5574 if { (eval echo configure:5575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5575 rm -rf conftest*
5576 ac_cv_sizeof_void_p=$ac_size
5577 else
5578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 rm -f conftest*
5582 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5583 done
5587 if test x$ac_cv_sizeof_void_p = x ; then
5588 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
5590 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5591 cat >> confdefs.h <<EOF
5592 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5597 ZLIBS=
5598 SYS_ZLIBS=
5599 ZINCS=
5601 if test -z "$ZLIBSPEC"; then
5602 # Use zlib from the GCC tree.
5603 ZINCS='-I$(top_srcdir)/../zlib'
5604 ZLIBS=../zlib/libzgcj_convenience.la
5605 else
5606 # System's zlib.
5607 SYS_ZLIBS="$ZLIBSPEC"
5618 if test "$CANADIAN" = yes; then
5619 CANADIAN_TRUE=
5620 CANADIAN_FALSE='#'
5621 else
5622 CANADIAN_TRUE='#'
5623 CANADIAN_FALSE=
5627 if test "$NULL_TARGET" = yes; then
5628 NULL_TARGET_TRUE=
5629 NULL_TARGET_FALSE='#'
5630 else
5631 NULL_TARGET_TRUE='#'
5632 NULL_TARGET_FALSE=
5636 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5637 NATIVE_TRUE=
5638 NATIVE_FALSE='#'
5639 else
5640 NATIVE_TRUE='#'
5641 NATIVE_FALSE=
5645 if test -z "$with_cross_host"; then
5646 USE_LIBDIR_TRUE=
5647 USE_LIBDIR_FALSE='#'
5648 else
5649 USE_LIBDIR_TRUE='#'
5650 USE_LIBDIR_FALSE=
5654 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5655 NEEDS_DATA_START_TRUE=
5656 NEEDS_DATA_START_FALSE='#'
5657 else
5658 NEEDS_DATA_START_TRUE='#'
5659 NEEDS_DATA_START_FALSE=
5665 # Determine gcj version number.
5667 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5669 GCJVERSION=$gcjversion
5671 cat >> confdefs.h <<EOF
5672 #define GCJVERSION "$GCJVERSION"
5676 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5677 echo "configure:5678: checking for g++ -ffloat-store bug" >&5
5678 save_CFLAGS="$CFLAGS"
5679 CFLAGS="-x c++ -O2 -ffloat-store"
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 #include <math.h>
5684 int main() {
5686 ; return 0; }
5688 if { (eval echo configure:5689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5689 rm -rf conftest*
5690 echo "$ac_t""no" 1>&6
5691 else
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 rm -rf conftest*
5695 cat >> confdefs.h <<\EOF
5696 #define __NO_MATH_INLINES 1
5699 echo "$ac_t""yes" 1>&6
5701 rm -f conftest*
5702 CFLAGS="$save_CFLAGS"
5704 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h stdint.h langinfo.h locale.h
5706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5708 echo "configure:5709: checking for $ac_hdr" >&5
5709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5711 else
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5715 #include <$ac_hdr>
5717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5718 { (eval echo configure:5719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5720 if test -z "$ac_err"; then
5721 rm -rf conftest*
5722 eval "ac_cv_header_$ac_safe=yes"
5723 else
5724 echo "$ac_err" >&5
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5727 rm -rf conftest*
5728 eval "ac_cv_header_$ac_safe=no"
5730 rm -f conftest*
5732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5735 cat >> confdefs.h <<EOF
5736 #define $ac_tr_hdr 1
5739 else
5740 echo "$ac_t""no" 1>&6
5742 done
5744 for ac_hdr in dirent.h
5746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5748 echo "configure:5749: checking for $ac_hdr" >&5
5749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5750 echo $ac_n "(cached) $ac_c" 1>&6
5751 else
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5755 #include <$ac_hdr>
5757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5758 { (eval echo configure:5759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5760 if test -z "$ac_err"; then
5761 rm -rf conftest*
5762 eval "ac_cv_header_$ac_safe=yes"
5763 else
5764 echo "$ac_err" >&5
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5767 rm -rf conftest*
5768 eval "ac_cv_header_$ac_safe=no"
5770 rm -f conftest*
5772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5773 echo "$ac_t""yes" 1>&6
5774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5775 cat >> confdefs.h <<EOF
5776 #define $ac_tr_hdr 1
5779 else
5780 echo "$ac_t""no" 1>&6
5782 done
5784 for ac_hdr in inttypes.h
5786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5788 echo "configure:5789: checking for $ac_hdr" >&5
5789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5791 else
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5795 #include <$ac_hdr>
5797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5798 { (eval echo configure:5799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5800 if test -z "$ac_err"; then
5801 rm -rf conftest*
5802 eval "ac_cv_header_$ac_safe=yes"
5803 else
5804 echo "$ac_err" >&5
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5807 rm -rf conftest*
5808 eval "ac_cv_header_$ac_safe=no"
5810 rm -f conftest*
5812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5815 cat >> confdefs.h <<EOF
5816 #define $ac_tr_hdr 1
5819 cat >> confdefs.h <<\EOF
5820 #define HAVE_INTTYPES_H 1
5823 cat >> confdefs.h <<\EOF
5824 #define JV_HAVE_INTTYPES_H 1
5828 else
5829 echo "$ac_t""no" 1>&6
5831 done
5833 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5834 echo "configure:5835: checking for sys/wait.h that is POSIX.1 compatible" >&5
5835 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5836 echo $ac_n "(cached) $ac_c" 1>&6
5837 else
5838 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 #include <sys/types.h>
5842 #include <sys/wait.h>
5843 #ifndef WEXITSTATUS
5844 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5845 #endif
5846 #ifndef WIFEXITED
5847 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5848 #endif
5849 int main() {
5850 int s;
5851 wait (&s);
5852 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5853 ; return 0; }
5855 if { (eval echo configure:5856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5856 rm -rf conftest*
5857 ac_cv_header_sys_wait_h=yes
5858 else
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 rm -rf conftest*
5862 ac_cv_header_sys_wait_h=no
5864 rm -f conftest*
5867 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5868 if test $ac_cv_header_sys_wait_h = yes; then
5869 cat >> confdefs.h <<\EOF
5870 #define HAVE_SYS_WAIT_H 1
5876 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5877 echo "configure:5878: checking for ANSI C header files" >&5
5878 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5880 else
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 #include <stdlib.h>
5885 #include <stdarg.h>
5886 #include <string.h>
5887 #include <float.h>
5889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5890 { (eval echo configure:5891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5892 if test -z "$ac_err"; then
5893 rm -rf conftest*
5894 ac_cv_header_stdc=yes
5895 else
5896 echo "$ac_err" >&5
5897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5899 rm -rf conftest*
5900 ac_cv_header_stdc=no
5902 rm -f conftest*
5904 if test $ac_cv_header_stdc = yes; then
5905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5909 #include <string.h>
5911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5912 egrep "memchr" >/dev/null 2>&1; then
5914 else
5915 rm -rf conftest*
5916 ac_cv_header_stdc=no
5918 rm -f conftest*
5922 if test $ac_cv_header_stdc = yes; then
5923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 #include <stdlib.h>
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 egrep "free" >/dev/null 2>&1; then
5932 else
5933 rm -rf conftest*
5934 ac_cv_header_stdc=no
5936 rm -f conftest*
5940 if test $ac_cv_header_stdc = yes; then
5941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5942 if test "$cross_compiling" = yes; then
5944 else
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 #include <ctype.h>
5949 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5950 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5952 int main () { int i; for (i = 0; i < 256; i++)
5953 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5954 exit (0); }
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5958 then
5960 else
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5963 rm -fr conftest*
5964 ac_cv_header_stdc=no
5966 rm -fr conftest*
5972 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5973 if test $ac_cv_header_stdc = yes; then
5974 cat >> confdefs.h <<\EOF
5975 #define STDC_HEADERS 1
5980 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5981 echo "configure:5982: checking for ssize_t" >&5
5982 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5983 echo $ac_n "(cached) $ac_c" 1>&6
5984 else
5985 cat > conftest.$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5988 #include <sys/types.h>
5989 #if STDC_HEADERS
5990 #include <stdlib.h>
5991 #include <stddef.h>
5992 #endif
5994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5995 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5996 rm -rf conftest*
5997 ac_cv_type_ssize_t=yes
5998 else
5999 rm -rf conftest*
6000 ac_cv_type_ssize_t=no
6002 rm -f conftest*
6005 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6006 if test $ac_cv_type_ssize_t = no; then
6007 cat >> confdefs.h <<\EOF
6008 #define ssize_t int
6014 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
6015 echo "configure:6016: checking for in_addr_t" >&5
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 #include <sys/types.h>
6020 #if STDC_HEADERS
6021 #include <stdlib.h>
6022 #include <stddef.h>
6023 #endif
6024 #if HAVE_NETINET_IN_H
6025 #include <netinet/in.h>
6026 #endif
6027 int main() {
6028 in_addr_t foo;
6029 ; return 0; }
6031 if { (eval echo configure:6032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6032 rm -rf conftest*
6033 cat >> confdefs.h <<\EOF
6034 #define HAVE_IN_ADDR_T 1
6037 echo "$ac_t""yes" 1>&6
6038 else
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6041 rm -rf conftest*
6042 echo "$ac_t""no" 1>&6
6044 rm -f conftest*
6046 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
6047 echo "configure:6048: checking whether struct ip_mreq is in netinet/in.h" >&5
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051 #include <netinet/in.h>
6052 int main() {
6053 struct ip_mreq mreq;
6054 ; return 0; }
6056 if { (eval echo configure:6057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6057 rm -rf conftest*
6058 cat >> confdefs.h <<\EOF
6059 #define HAVE_STRUCT_IP_MREQ 1
6062 echo "$ac_t""yes" 1>&6
6063 else
6064 echo "configure: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6066 rm -rf conftest*
6067 echo "$ac_t""no" 1>&6
6069 rm -f conftest*
6071 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
6072 echo "configure:6073: checking whether struct ipv6_mreq is in netinet/in.h" >&5
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <netinet/in.h>
6077 int main() {
6078 struct ipv6_mreq mreq6;
6079 ; return 0; }
6081 if { (eval echo configure:6082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6082 rm -rf conftest*
6083 cat >> confdefs.h <<\EOF
6084 #define HAVE_STRUCT_IPV6_MREQ 1
6087 echo "$ac_t""yes" 1>&6
6088 else
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 rm -rf conftest*
6092 echo "$ac_t""no" 1>&6
6094 rm -f conftest*
6096 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
6097 echo "configure:6098: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
6098 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101 #include <netinet/in.h>
6102 int main() {
6103 struct sockaddr_in6 addr6;
6104 ; return 0; }
6106 if { (eval echo configure:6107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6107 rm -rf conftest*
6108 cat >> confdefs.h <<\EOF
6109 #define HAVE_INET6 1
6112 echo "$ac_t""yes" 1>&6
6113 else
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116 rm -rf conftest*
6117 echo "$ac_t""no" 1>&6
6119 rm -f conftest*
6121 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
6122 echo "configure:6123: checking for socklen_t in sys/socket.h" >&5
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126 #define _POSIX_PII_SOCKET
6127 #include <sys/types.h>
6128 #include <sys/socket.h>
6129 int main() {
6130 socklen_t x = 5;
6131 ; return 0; }
6133 if { (eval echo configure:6134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6134 rm -rf conftest*
6135 cat >> confdefs.h <<\EOF
6136 #define HAVE_SOCKLEN_T 1
6139 echo "$ac_t""yes" 1>&6
6140 else
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 rm -rf conftest*
6144 echo "$ac_t""no" 1>&6
6146 rm -f conftest*
6148 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6149 echo "configure:6150: checking for tm_gmtoff in struct tm" >&5
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 #include <time.h>
6154 int main() {
6155 struct tm tim; tim.tm_gmtoff = 0;
6156 ; return 0; }
6158 if { (eval echo configure:6159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6159 rm -rf conftest*
6160 cat >> confdefs.h <<\EOF
6161 #define STRUCT_TM_HAS_GMTOFF 1
6164 echo "$ac_t""yes" 1>&6
6165 else
6166 echo "configure: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6168 rm -rf conftest*
6169 echo "$ac_t""no" 1>&6
6170 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
6171 echo "configure:6172: checking for global timezone variable" >&5
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 #include <time.h>
6176 int main() {
6177 long z2 = timezone;
6178 ; return 0; }
6180 if { (eval echo configure:6181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6181 rm -rf conftest*
6182 cat >> confdefs.h <<\EOF
6183 #define HAVE_TIMEZONE 1
6186 echo "$ac_t""yes" 1>&6
6187 else
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6190 rm -rf conftest*
6191 echo "$ac_t""no" 1>&6
6193 rm -f conftest*
6195 rm -f conftest*
6197 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6198 # for constant arguments. Useless!
6199 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6200 echo "configure:6201: checking for working alloca.h" >&5
6201 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6203 else
6204 cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure"
6206 #include "confdefs.h"
6207 #include <alloca.h>
6208 int main() {
6209 char *p = alloca(2 * sizeof(int));
6210 ; return 0; }
6212 if { (eval echo configure:6213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6213 rm -rf conftest*
6214 ac_cv_header_alloca_h=yes
6215 else
6216 echo "configure: failed program was:" >&5
6217 cat conftest.$ac_ext >&5
6218 rm -rf conftest*
6219 ac_cv_header_alloca_h=no
6221 rm -f conftest*
6224 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6225 if test $ac_cv_header_alloca_h = yes; then
6226 cat >> confdefs.h <<\EOF
6227 #define HAVE_ALLOCA_H 1
6232 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6233 echo "configure:6234: checking for alloca" >&5
6234 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6236 else
6237 cat > conftest.$ac_ext <<EOF
6238 #line 6239 "configure"
6239 #include "confdefs.h"
6241 #ifdef __GNUC__
6242 # define alloca __builtin_alloca
6243 #else
6244 # ifdef _MSC_VER
6245 # include <malloc.h>
6246 # define alloca _alloca
6247 # else
6248 # if HAVE_ALLOCA_H
6249 # include <alloca.h>
6250 # else
6251 # ifdef _AIX
6252 #pragma alloca
6253 # else
6254 # ifndef alloca /* predefined by HP cc +Olibcalls */
6255 char *alloca ();
6256 # endif
6257 # endif
6258 # endif
6259 # endif
6260 #endif
6262 int main() {
6263 char *p = (char *) alloca(1);
6264 ; return 0; }
6266 if { (eval echo configure:6267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6267 rm -rf conftest*
6268 ac_cv_func_alloca_works=yes
6269 else
6270 echo "configure: failed program was:" >&5
6271 cat conftest.$ac_ext >&5
6272 rm -rf conftest*
6273 ac_cv_func_alloca_works=no
6275 rm -f conftest*
6278 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6279 if test $ac_cv_func_alloca_works = yes; then
6280 cat >> confdefs.h <<\EOF
6281 #define HAVE_ALLOCA 1
6286 if test $ac_cv_func_alloca_works = no; then
6287 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6288 # that cause trouble. Some versions do not even contain alloca or
6289 # contain a buggy version. If you still want to use their alloca,
6290 # use ar to extract alloca.o from them instead of compiling alloca.c.
6291 ALLOCA=alloca.${ac_objext}
6292 cat >> confdefs.h <<\EOF
6293 #define C_ALLOCA 1
6297 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6298 echo "configure:6299: checking whether alloca needs Cray hooks" >&5
6299 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6301 else
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 #if defined(CRAY) && ! defined(CRAY2)
6306 webecray
6307 #else
6308 wenotbecray
6309 #endif
6312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313 egrep "webecray" >/dev/null 2>&1; then
6314 rm -rf conftest*
6315 ac_cv_os_cray=yes
6316 else
6317 rm -rf conftest*
6318 ac_cv_os_cray=no
6320 rm -f conftest*
6324 echo "$ac_t""$ac_cv_os_cray" 1>&6
6325 if test $ac_cv_os_cray = yes; then
6326 for ac_func in _getb67 GETB67 getb67; do
6327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6328 echo "configure:6329: checking for $ac_func" >&5
6329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6330 echo $ac_n "(cached) $ac_c" 1>&6
6331 else
6332 cat > conftest.$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335 /* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char $ac_func(); below. */
6337 #include <assert.h>
6338 /* Override any gcc2 internal prototype to avoid an error. */
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6341 char $ac_func();
6343 int main() {
6345 /* The GNU C library defines this for functions which it implements
6346 to always fail with ENOSYS. Some functions are actually named
6347 something starting with __ and the normal name is an alias. */
6348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6349 choke me
6350 #else
6351 $ac_func();
6352 #endif
6354 ; return 0; }
6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6357 rm -rf conftest*
6358 eval "ac_cv_func_$ac_func=yes"
6359 else
6360 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 rm -rf conftest*
6363 eval "ac_cv_func_$ac_func=no"
6365 rm -f conftest*
6368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6369 echo "$ac_t""yes" 1>&6
6370 cat >> confdefs.h <<EOF
6371 #define CRAY_STACKSEG_END $ac_func
6374 break
6375 else
6376 echo "$ac_t""no" 1>&6
6379 done
6382 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6383 echo "configure:6384: checking stack direction for C alloca" >&5
6384 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6386 else
6387 if test "$cross_compiling" = yes; then
6388 ac_cv_c_stack_direction=0
6389 else
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 find_stack_direction ()
6395 static char *addr = 0;
6396 auto char dummy;
6397 if (addr == 0)
6399 addr = &dummy;
6400 return find_stack_direction ();
6402 else
6403 return (&dummy > addr) ? 1 : -1;
6405 main ()
6407 exit (find_stack_direction() < 0);
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6411 then
6412 ac_cv_c_stack_direction=1
6413 else
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 rm -fr conftest*
6417 ac_cv_c_stack_direction=-1
6419 rm -fr conftest*
6424 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6425 cat >> confdefs.h <<EOF
6426 #define STACK_DIRECTION $ac_cv_c_stack_direction
6432 for ac_prog in perl
6434 # Extract the first word of "$ac_prog", so it can be a program name with args.
6435 set dummy $ac_prog; ac_word=$2
6436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_word" >&5
6438 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6440 else
6441 if test -n "$PERL"; then
6442 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6443 else
6444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6445 ac_dummy="$PATH"
6446 for ac_dir in $ac_dummy; do
6447 test -z "$ac_dir" && ac_dir=.
6448 if test -f $ac_dir/$ac_word; then
6449 ac_cv_prog_PERL="$ac_prog"
6450 break
6452 done
6453 IFS="$ac_save_ifs"
6456 PERL="$ac_cv_prog_PERL"
6457 if test -n "$PERL"; then
6458 echo "$ac_t""$PERL" 1>&6
6459 else
6460 echo "$ac_t""no" 1>&6
6463 test -n "$PERL" && break
6464 done
6465 test -n "$PERL" || PERL="false"
6468 SYSDEP_SOURCES=
6470 case "${host}" in
6471 i?86-*-linux*)
6472 SIGNAL_HANDLER=include/i386-signal.h
6474 sparc*-sun-solaris*)
6475 SIGNAL_HANDLER=include/sparc-signal.h
6477 # ia64-*)
6478 # SYSDEP_SOURCES=sysdep/ia64.c
6479 # test -d sysdep || mkdir sysdep
6480 # ;;
6481 ia64-*-linux*)
6482 SIGNAL_HANDLER=include/dwarf2-signal.h
6484 powerpc-*-linux*)
6485 SIGNAL_HANDLER=include/dwarf2-signal.h
6487 alpha*-*-linux*)
6488 SIGNAL_HANDLER=include/dwarf2-signal.h
6490 sparc*-*-linux*)
6491 SIGNAL_HANDLER=include/dwarf2-signal.h
6493 *mingw*)
6494 SIGNAL_HANDLER=include/win32-signal.h
6497 SIGNAL_HANDLER=include/default-signal.h
6499 esac
6501 # If we're using sjlj exceptions, forget what we just learned.
6502 if test "$enable_sjlj_exceptions" = yes; then
6503 SIGNAL_HANDLER=include/default-signal.h
6510 if test "${multilib}" = "yes"; then
6511 multilib_arg="--enable-multilib"
6512 else
6513 multilib_arg=
6516 # If we find X, set shell vars x_includes and x_libraries to the
6517 # paths, otherwise set no_x=yes.
6518 # Uses ac_ vars as temps to allow command line to override cache and checks.
6519 # --without-x overrides everything else, but does not touch the cache.
6520 echo $ac_n "checking for X""... $ac_c" 1>&6
6521 echo "configure:6522: checking for X" >&5
6523 # Check whether --with-x or --without-x was given.
6524 if test "${with_x+set}" = set; then
6525 withval="$with_x"
6529 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6530 if test "x$with_x" = xno; then
6531 # The user explicitly disabled X.
6532 have_x=disabled
6533 else
6534 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6535 # Both variables are already set.
6536 have_x=yes
6537 else
6538 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6540 else
6541 # One or both of the vars are not set, and there is no cached value.
6542 ac_x_includes=NO ac_x_libraries=NO
6543 rm -fr conftestdir
6544 if mkdir conftestdir; then
6545 cd conftestdir
6546 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6547 cat > Imakefile <<'EOF'
6548 acfindx:
6549 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6551 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6552 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6553 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6554 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6555 for ac_extension in a so sl; do
6556 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6557 test -f $ac_im_libdir/libX11.$ac_extension; then
6558 ac_im_usrlibdir=$ac_im_libdir; break
6560 done
6561 # Screen out bogus values from the imake configuration. They are
6562 # bogus both because they are the default anyway, and because
6563 # using them would break gcc on systems where it needs fixed includes.
6564 case "$ac_im_incroot" in
6565 /usr/include) ;;
6566 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6567 esac
6568 case "$ac_im_usrlibdir" in
6569 /usr/lib | /lib) ;;
6570 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6571 esac
6573 cd ..
6574 rm -fr conftestdir
6577 if test "$ac_x_includes" = NO; then
6578 # Guess where to find include files, by looking for this one X11 .h file.
6579 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6581 # First, try using that file with no special directory specified.
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 #include <$x_direct_test_include>
6587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6588 { (eval echo configure:6589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6590 if test -z "$ac_err"; then
6591 rm -rf conftest*
6592 # We can compile using X headers with no special include directory.
6593 ac_x_includes=
6594 else
6595 echo "$ac_err" >&5
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 rm -rf conftest*
6599 # Look for the header file in a standard set of common directories.
6600 # Check X11 before X11Rn because it is often a symlink to the current release.
6601 for ac_dir in \
6602 /usr/X11/include \
6603 /usr/X11R6/include \
6604 /usr/X11R5/include \
6605 /usr/X11R4/include \
6607 /usr/include/X11 \
6608 /usr/include/X11R6 \
6609 /usr/include/X11R5 \
6610 /usr/include/X11R4 \
6612 /usr/local/X11/include \
6613 /usr/local/X11R6/include \
6614 /usr/local/X11R5/include \
6615 /usr/local/X11R4/include \
6617 /usr/local/include/X11 \
6618 /usr/local/include/X11R6 \
6619 /usr/local/include/X11R5 \
6620 /usr/local/include/X11R4 \
6622 /usr/X386/include \
6623 /usr/x386/include \
6624 /usr/XFree86/include/X11 \
6626 /usr/include \
6627 /usr/local/include \
6628 /usr/unsupported/include \
6629 /usr/athena/include \
6630 /usr/local/x11r5/include \
6631 /usr/lpp/Xamples/include \
6633 /usr/openwin/include \
6634 /usr/openwin/share/include \
6637 if test -r "$ac_dir/$x_direct_test_include"; then
6638 ac_x_includes=$ac_dir
6639 break
6641 done
6643 rm -f conftest*
6644 fi # $ac_x_includes = NO
6646 if test "$ac_x_libraries" = NO; then
6647 # Check for the libraries.
6649 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6650 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6652 # See if we find them without any special options.
6653 # Don't add to $LIBS permanently.
6654 ac_save_LIBS="$LIBS"
6655 LIBS="-l$x_direct_test_library $LIBS"
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6660 int main() {
6661 ${x_direct_test_function}()
6662 ; return 0; }
6664 if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6665 rm -rf conftest*
6666 LIBS="$ac_save_LIBS"
6667 # We can link X programs with no special library path.
6668 ac_x_libraries=
6669 else
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 rm -rf conftest*
6673 LIBS="$ac_save_LIBS"
6674 # First see if replacing the include by lib works.
6675 # Check X11 before X11Rn because it is often a symlink to the current release.
6676 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6677 /usr/X11/lib \
6678 /usr/X11R6/lib \
6679 /usr/X11R5/lib \
6680 /usr/X11R4/lib \
6682 /usr/lib/X11 \
6683 /usr/lib/X11R6 \
6684 /usr/lib/X11R5 \
6685 /usr/lib/X11R4 \
6687 /usr/local/X11/lib \
6688 /usr/local/X11R6/lib \
6689 /usr/local/X11R5/lib \
6690 /usr/local/X11R4/lib \
6692 /usr/local/lib/X11 \
6693 /usr/local/lib/X11R6 \
6694 /usr/local/lib/X11R5 \
6695 /usr/local/lib/X11R4 \
6697 /usr/X386/lib \
6698 /usr/x386/lib \
6699 /usr/XFree86/lib/X11 \
6701 /usr/lib \
6702 /usr/local/lib \
6703 /usr/unsupported/lib \
6704 /usr/athena/lib \
6705 /usr/local/x11r5/lib \
6706 /usr/lpp/Xamples/lib \
6707 /lib/usr/lib/X11 \
6709 /usr/openwin/lib \
6710 /usr/openwin/share/lib \
6713 for ac_extension in a so sl; do
6714 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6715 ac_x_libraries=$ac_dir
6716 break 2
6718 done
6719 done
6721 rm -f conftest*
6722 fi # $ac_x_libraries = NO
6724 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6725 # Didn't find X anywhere. Cache the known absence of X.
6726 ac_cv_have_x="have_x=no"
6727 else
6728 # Record where we found X for the cache.
6729 ac_cv_have_x="have_x=yes \
6730 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6734 eval "$ac_cv_have_x"
6735 fi # $with_x != no
6737 if test "$have_x" != yes; then
6738 echo "$ac_t""$have_x" 1>&6
6739 no_x=yes
6740 else
6741 # If each of the values was on the command line, it overrides each guess.
6742 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6743 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6744 # Update the cache value to reflect the command line values.
6745 ac_cv_have_x="have_x=yes \
6746 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6747 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6750 if test "$no_x" = yes; then
6751 # Not all programs may use this symbol, but it does not hurt to define it.
6752 cat >> confdefs.h <<\EOF
6753 #define X_DISPLAY_MISSING 1
6756 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6757 else
6758 if test -n "$x_includes"; then
6759 X_CFLAGS="$X_CFLAGS -I$x_includes"
6762 # It would also be nice to do this for all -L options, not just this one.
6763 if test -n "$x_libraries"; then
6764 X_LIBS="$X_LIBS -L$x_libraries"
6765 # For Solaris; some versions of Sun CC require a space after -R and
6766 # others require no space. Words are not sufficient . . . .
6767 case "`(uname -sr) 2>/dev/null`" in
6768 "SunOS 5"*)
6769 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6770 echo "configure:6771: checking whether -R must be followed by a space" >&5
6771 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6776 int main() {
6778 ; return 0; }
6780 if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6781 rm -rf conftest*
6782 ac_R_nospace=yes
6783 else
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 rm -rf conftest*
6787 ac_R_nospace=no
6789 rm -f conftest*
6790 if test $ac_R_nospace = yes; then
6791 echo "$ac_t""no" 1>&6
6792 X_LIBS="$X_LIBS -R$x_libraries"
6793 else
6794 LIBS="$ac_xsave_LIBS -R $x_libraries"
6795 cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6799 int main() {
6801 ; return 0; }
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6804 rm -rf conftest*
6805 ac_R_space=yes
6806 else
6807 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 rm -rf conftest*
6810 ac_R_space=no
6812 rm -f conftest*
6813 if test $ac_R_space = yes; then
6814 echo "$ac_t""yes" 1>&6
6815 X_LIBS="$X_LIBS -R $x_libraries"
6816 else
6817 echo "$ac_t""neither works" 1>&6
6820 LIBS="$ac_xsave_LIBS"
6821 esac
6824 # Check for system-dependent libraries X programs must link with.
6825 # Do this before checking for the system-independent R6 libraries
6826 # (-lICE), since we may need -lsocket or whatever for X linking.
6828 if test "$ISC" = yes; then
6829 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6830 else
6831 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6832 # libraries were built with DECnet support. And karl@cs.umb.edu says
6833 # the Alpha needs dnet_stub (dnet does not exist).
6834 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6835 echo "configure:6836: checking for dnet_ntoa in -ldnet" >&5
6836 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6838 echo $ac_n "(cached) $ac_c" 1>&6
6839 else
6840 ac_save_LIBS="$LIBS"
6841 LIBS="-ldnet $LIBS"
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6845 /* Override any gcc2 internal prototype to avoid an error. */
6846 /* We use char because int might match the return type of a gcc2
6847 builtin and then its argument prototype would still apply. */
6848 char dnet_ntoa();
6850 int main() {
6851 dnet_ntoa()
6852 ; return 0; }
6854 if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6855 rm -rf conftest*
6856 eval "ac_cv_lib_$ac_lib_var=yes"
6857 else
6858 echo "configure: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6860 rm -rf conftest*
6861 eval "ac_cv_lib_$ac_lib_var=no"
6863 rm -f conftest*
6864 LIBS="$ac_save_LIBS"
6867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6868 echo "$ac_t""yes" 1>&6
6869 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6870 else
6871 echo "$ac_t""no" 1>&6
6874 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6875 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6876 echo "configure:6877: checking for dnet_ntoa in -ldnet_stub" >&5
6877 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6880 else
6881 ac_save_LIBS="$LIBS"
6882 LIBS="-ldnet_stub $LIBS"
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6886 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6889 char dnet_ntoa();
6891 int main() {
6892 dnet_ntoa()
6893 ; return 0; }
6895 if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6896 rm -rf conftest*
6897 eval "ac_cv_lib_$ac_lib_var=yes"
6898 else
6899 echo "configure: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6901 rm -rf conftest*
6902 eval "ac_cv_lib_$ac_lib_var=no"
6904 rm -f conftest*
6905 LIBS="$ac_save_LIBS"
6908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6909 echo "$ac_t""yes" 1>&6
6910 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6911 else
6912 echo "$ac_t""no" 1>&6
6917 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6918 # to get the SysV transport functions.
6919 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6920 # needs -lnsl.
6921 # The nsl library prevents programs from opening the X display
6922 # on Irix 5.2, according to dickey@clark.net.
6923 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6924 echo "configure:6925: checking for gethostbyname" >&5
6925 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6926 echo $ac_n "(cached) $ac_c" 1>&6
6927 else
6928 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6931 /* System header to define __stub macros and hopefully few prototypes,
6932 which can conflict with char gethostbyname(); below. */
6933 #include <assert.h>
6934 /* Override any gcc2 internal prototype to avoid an error. */
6935 /* We use char because int might match the return type of a gcc2
6936 builtin and then its argument prototype would still apply. */
6937 char gethostbyname();
6939 int main() {
6941 /* The GNU C library defines this for functions which it implements
6942 to always fail with ENOSYS. Some functions are actually named
6943 something starting with __ and the normal name is an alias. */
6944 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6945 choke me
6946 #else
6947 gethostbyname();
6948 #endif
6950 ; return 0; }
6952 if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6953 rm -rf conftest*
6954 eval "ac_cv_func_gethostbyname=yes"
6955 else
6956 echo "configure: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6958 rm -rf conftest*
6959 eval "ac_cv_func_gethostbyname=no"
6961 rm -f conftest*
6964 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6965 echo "$ac_t""yes" 1>&6
6967 else
6968 echo "$ac_t""no" 1>&6
6971 if test $ac_cv_func_gethostbyname = no; then
6972 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6973 echo "configure:6974: checking for gethostbyname in -lnsl" >&5
6974 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
6977 else
6978 ac_save_LIBS="$LIBS"
6979 LIBS="-lnsl $LIBS"
6980 cat > conftest.$ac_ext <<EOF
6981 #line 6982 "configure"
6982 #include "confdefs.h"
6983 /* Override any gcc2 internal prototype to avoid an error. */
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6986 char gethostbyname();
6988 int main() {
6989 gethostbyname()
6990 ; return 0; }
6992 if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6993 rm -rf conftest*
6994 eval "ac_cv_lib_$ac_lib_var=yes"
6995 else
6996 echo "configure: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6998 rm -rf conftest*
6999 eval "ac_cv_lib_$ac_lib_var=no"
7001 rm -f conftest*
7002 LIBS="$ac_save_LIBS"
7005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7006 echo "$ac_t""yes" 1>&6
7007 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7008 else
7009 echo "$ac_t""no" 1>&6
7014 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7015 # socket/setsockopt and other routines are undefined under SCO ODT
7016 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7017 # on later versions), says simon@lia.di.epfl.ch: it contains
7018 # gethostby* variants that don't use the nameserver (or something).
7019 # -lsocket must be given before -lnsl if both are needed.
7020 # We assume that if connect needs -lnsl, so does gethostbyname.
7021 echo $ac_n "checking for connect""... $ac_c" 1>&6
7022 echo "configure:7023: checking for connect" >&5
7023 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7025 else
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* System header to define __stub macros and hopefully few prototypes,
7030 which can conflict with char connect(); below. */
7031 #include <assert.h>
7032 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7035 char connect();
7037 int main() {
7039 /* The GNU C library defines this for functions which it implements
7040 to always fail with ENOSYS. Some functions are actually named
7041 something starting with __ and the normal name is an alias. */
7042 #if defined (__stub_connect) || defined (__stub___connect)
7043 choke me
7044 #else
7045 connect();
7046 #endif
7048 ; return 0; }
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7051 rm -rf conftest*
7052 eval "ac_cv_func_connect=yes"
7053 else
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7056 rm -rf conftest*
7057 eval "ac_cv_func_connect=no"
7059 rm -f conftest*
7062 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7063 echo "$ac_t""yes" 1>&6
7065 else
7066 echo "$ac_t""no" 1>&6
7069 if test $ac_cv_func_connect = no; then
7070 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7071 echo "configure:7072: checking for connect in -lsocket" >&5
7072 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7075 else
7076 ac_save_LIBS="$LIBS"
7077 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7078 cat > conftest.$ac_ext <<EOF
7079 #line 7080 "configure"
7080 #include "confdefs.h"
7081 /* Override any gcc2 internal prototype to avoid an error. */
7082 /* We use char because int might match the return type of a gcc2
7083 builtin and then its argument prototype would still apply. */
7084 char connect();
7086 int main() {
7087 connect()
7088 ; return 0; }
7090 if { (eval echo configure:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7091 rm -rf conftest*
7092 eval "ac_cv_lib_$ac_lib_var=yes"
7093 else
7094 echo "configure: failed program was:" >&5
7095 cat conftest.$ac_ext >&5
7096 rm -rf conftest*
7097 eval "ac_cv_lib_$ac_lib_var=no"
7099 rm -f conftest*
7100 LIBS="$ac_save_LIBS"
7103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7104 echo "$ac_t""yes" 1>&6
7105 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7106 else
7107 echo "$ac_t""no" 1>&6
7112 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7113 echo $ac_n "checking for remove""... $ac_c" 1>&6
7114 echo "configure:7115: checking for remove" >&5
7115 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7117 else
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7121 /* System header to define __stub macros and hopefully few prototypes,
7122 which can conflict with char remove(); below. */
7123 #include <assert.h>
7124 /* Override any gcc2 internal prototype to avoid an error. */
7125 /* We use char because int might match the return type of a gcc2
7126 builtin and then its argument prototype would still apply. */
7127 char remove();
7129 int main() {
7131 /* The GNU C library defines this for functions which it implements
7132 to always fail with ENOSYS. Some functions are actually named
7133 something starting with __ and the normal name is an alias. */
7134 #if defined (__stub_remove) || defined (__stub___remove)
7135 choke me
7136 #else
7137 remove();
7138 #endif
7140 ; return 0; }
7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7143 rm -rf conftest*
7144 eval "ac_cv_func_remove=yes"
7145 else
7146 echo "configure: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 rm -rf conftest*
7149 eval "ac_cv_func_remove=no"
7151 rm -f conftest*
7154 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7155 echo "$ac_t""yes" 1>&6
7157 else
7158 echo "$ac_t""no" 1>&6
7161 if test $ac_cv_func_remove = no; then
7162 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7163 echo "configure:7164: checking for remove in -lposix" >&5
7164 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7167 else
7168 ac_save_LIBS="$LIBS"
7169 LIBS="-lposix $LIBS"
7170 cat > conftest.$ac_ext <<EOF
7171 #line 7172 "configure"
7172 #include "confdefs.h"
7173 /* Override any gcc2 internal prototype to avoid an error. */
7174 /* We use char because int might match the return type of a gcc2
7175 builtin and then its argument prototype would still apply. */
7176 char remove();
7178 int main() {
7179 remove()
7180 ; return 0; }
7182 if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7183 rm -rf conftest*
7184 eval "ac_cv_lib_$ac_lib_var=yes"
7185 else
7186 echo "configure: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7188 rm -rf conftest*
7189 eval "ac_cv_lib_$ac_lib_var=no"
7191 rm -f conftest*
7192 LIBS="$ac_save_LIBS"
7195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7196 echo "$ac_t""yes" 1>&6
7197 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7198 else
7199 echo "$ac_t""no" 1>&6
7204 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7205 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7206 echo "configure:7207: checking for shmat" >&5
7207 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7209 else
7210 cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7213 /* System header to define __stub macros and hopefully few prototypes,
7214 which can conflict with char shmat(); below. */
7215 #include <assert.h>
7216 /* Override any gcc2 internal prototype to avoid an error. */
7217 /* We use char because int might match the return type of a gcc2
7218 builtin and then its argument prototype would still apply. */
7219 char shmat();
7221 int main() {
7223 /* The GNU C library defines this for functions which it implements
7224 to always fail with ENOSYS. Some functions are actually named
7225 something starting with __ and the normal name is an alias. */
7226 #if defined (__stub_shmat) || defined (__stub___shmat)
7227 choke me
7228 #else
7229 shmat();
7230 #endif
7232 ; return 0; }
7234 if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7235 rm -rf conftest*
7236 eval "ac_cv_func_shmat=yes"
7237 else
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7240 rm -rf conftest*
7241 eval "ac_cv_func_shmat=no"
7243 rm -f conftest*
7246 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7247 echo "$ac_t""yes" 1>&6
7249 else
7250 echo "$ac_t""no" 1>&6
7253 if test $ac_cv_func_shmat = no; then
7254 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7255 echo "configure:7256: checking for shmat in -lipc" >&5
7256 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7258 echo $ac_n "(cached) $ac_c" 1>&6
7259 else
7260 ac_save_LIBS="$LIBS"
7261 LIBS="-lipc $LIBS"
7262 cat > conftest.$ac_ext <<EOF
7263 #line 7264 "configure"
7264 #include "confdefs.h"
7265 /* Override any gcc2 internal prototype to avoid an error. */
7266 /* We use char because int might match the return type of a gcc2
7267 builtin and then its argument prototype would still apply. */
7268 char shmat();
7270 int main() {
7271 shmat()
7272 ; return 0; }
7274 if { (eval echo configure:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7275 rm -rf conftest*
7276 eval "ac_cv_lib_$ac_lib_var=yes"
7277 else
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 rm -rf conftest*
7281 eval "ac_cv_lib_$ac_lib_var=no"
7283 rm -f conftest*
7284 LIBS="$ac_save_LIBS"
7287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7288 echo "$ac_t""yes" 1>&6
7289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7290 else
7291 echo "$ac_t""no" 1>&6
7297 # Check for libraries that X11R6 Xt/Xaw programs need.
7298 ac_save_LDFLAGS="$LDFLAGS"
7299 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7300 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7301 # check for ICE first), but we must link in the order -lSM -lICE or
7302 # we get undefined symbols. So assume we have SM if we have ICE.
7303 # These have to be linked with before -lX11, unlike the other
7304 # libraries we check for below, so use a different variable.
7305 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7306 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7307 echo "configure:7308: checking for IceConnectionNumber in -lICE" >&5
7308 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7311 else
7312 ac_save_LIBS="$LIBS"
7313 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7314 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7317 /* Override any gcc2 internal prototype to avoid an error. */
7318 /* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320 char IceConnectionNumber();
7322 int main() {
7323 IceConnectionNumber()
7324 ; return 0; }
7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7327 rm -rf conftest*
7328 eval "ac_cv_lib_$ac_lib_var=yes"
7329 else
7330 echo "configure: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 rm -rf conftest*
7333 eval "ac_cv_lib_$ac_lib_var=no"
7335 rm -f conftest*
7336 LIBS="$ac_save_LIBS"
7339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7340 echo "$ac_t""yes" 1>&6
7341 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7342 else
7343 echo "$ac_t""no" 1>&6
7346 LDFLAGS="$ac_save_LDFLAGS"
7351 # Check whether --enable-java-awt or --disable-java-awt was given.
7352 if test "${enable_java_awt+set}" = set; then
7353 enableval="$enable_java_awt"
7358 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7359 use_xlib_awt=""
7360 use_gtk_awt=""
7362 for peer in $peerlibs ; do
7363 case $peer in
7364 xlib)
7365 if test "$no_x" = yes; then
7366 echo "*** xlib peers requested but no X library available" 1>&2
7367 exit 1
7368 else
7369 use_xlib_awt="yes"
7372 gtk)
7373 # Nothing, yet...
7376 use_xlib_awt=
7377 use_gtk_awt=
7378 break
7381 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7382 exit 1
7383 esac
7384 done
7388 if test "$use_xlib_awt" = yes; then
7389 XLIB_AWT_TRUE=
7390 XLIB_AWT_FALSE='#'
7391 else
7392 XLIB_AWT_TRUE='#'
7393 XLIB_AWT_FALSE=
7397 if test "$use_gtk_awt" = yes; then
7398 GTK_AWT_TRUE=
7399 GTK_AWT_FALSE='#'
7400 else
7401 GTK_AWT_TRUE='#'
7402 GTK_AWT_FALSE=
7406 here=`pwd`
7409 # We get this from the environment.
7412 trap '' 1 2 15
7413 cat > confcache <<\EOF
7414 # This file is a shell script that caches the results of configure
7415 # tests run on this system so they can be shared between configure
7416 # scripts and configure runs. It is not useful on other systems.
7417 # If it contains results you don't want to keep, you may remove or edit it.
7419 # By default, configure uses ./config.cache as the cache file,
7420 # creating it if it does not exist already. You can give configure
7421 # the --cache-file=FILE option to use a different cache file; that is
7422 # what configure does when it calls configure scripts in
7423 # subdirectories, so they share the cache.
7424 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7425 # config.status only pays attention to the cache file if you give it the
7426 # --recheck option to rerun configure.
7429 # The following way of writing the cache mishandles newlines in values,
7430 # but we know of no workaround that is simple, portable, and efficient.
7431 # So, don't put newlines in cache variables' values.
7432 # Ultrix sh set writes to stderr and can't be redirected directly,
7433 # and sets the high bit in the cache file unless we assign to the vars.
7434 (set) 2>&1 |
7435 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7436 *ac_space=\ *)
7437 # `set' does not quote correctly, so add quotes (double-quote substitution
7438 # turns \\\\ into \\, and sed turns \\ into \).
7439 sed -n \
7440 -e "s/'/'\\\\''/g" \
7441 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7444 # `set' quotes correctly as required by POSIX, so do not add quotes.
7445 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7447 esac >> confcache
7448 if cmp -s $cache_file confcache; then
7450 else
7451 if test -w $cache_file; then
7452 echo "updating cache $cache_file"
7453 cat confcache > $cache_file
7454 else
7455 echo "not updating unwritable cache $cache_file"
7458 rm -f confcache
7460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7463 # Let make expand exec_prefix.
7464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7466 # Any assignment to VPATH causes Sun make to only execute
7467 # the first set of double-colon rules, so remove it if not needed.
7468 # If there is a colon in the path, we need to keep it.
7469 if test "x$srcdir" = x.; then
7470 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7473 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7475 DEFS=-DHAVE_CONFIG_H
7477 # Without the "./", some shells look in PATH for config.status.
7478 : ${CONFIG_STATUS=./config.status}
7480 echo creating $CONFIG_STATUS
7481 rm -f $CONFIG_STATUS
7482 cat > $CONFIG_STATUS <<EOF
7483 #! /bin/sh
7484 # Generated automatically by configure.
7485 # Run this file to recreate the current configuration.
7486 # This directory was configured as follows,
7487 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7489 # $0 $ac_configure_args
7491 # Compiler output produced by configure, useful for debugging
7492 # configure, is in ./config.log if it exists.
7494 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7495 for ac_option
7497 case "\$ac_option" in
7498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7499 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7500 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7501 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7502 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7503 exit 0 ;;
7504 -help | --help | --hel | --he | --h)
7505 echo "\$ac_cs_usage"; exit 0 ;;
7506 *) echo "\$ac_cs_usage"; exit 1 ;;
7507 esac
7508 done
7510 ac_given_srcdir=$srcdir
7511 ac_given_INSTALL="$INSTALL"
7513 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7515 cat >> $CONFIG_STATUS <<EOF
7517 # Protect against being on the right side of a sed subst in config.status.
7518 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7519 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7520 $ac_vpsub
7521 $extrasub
7522 s%@SHELL@%$SHELL%g
7523 s%@CFLAGS@%$CFLAGS%g
7524 s%@CPPFLAGS@%$CPPFLAGS%g
7525 s%@CXXFLAGS@%$CXXFLAGS%g
7526 s%@FFLAGS@%$FFLAGS%g
7527 s%@DEFS@%$DEFS%g
7528 s%@LDFLAGS@%$LDFLAGS%g
7529 s%@LIBS@%$LIBS%g
7530 s%@exec_prefix@%$exec_prefix%g
7531 s%@prefix@%$prefix%g
7532 s%@program_transform_name@%$program_transform_name%g
7533 s%@bindir@%$bindir%g
7534 s%@sbindir@%$sbindir%g
7535 s%@libexecdir@%$libexecdir%g
7536 s%@datadir@%$datadir%g
7537 s%@sysconfdir@%$sysconfdir%g
7538 s%@sharedstatedir@%$sharedstatedir%g
7539 s%@localstatedir@%$localstatedir%g
7540 s%@libdir@%$libdir%g
7541 s%@includedir@%$includedir%g
7542 s%@oldincludedir@%$oldincludedir%g
7543 s%@infodir@%$infodir%g
7544 s%@mandir@%$mandir%g
7545 s%@LN_S@%$LN_S%g
7546 s%@libgcj_basedir@%$libgcj_basedir%g
7547 s%@mkinstalldirs@%$mkinstalldirs%g
7548 s%@host@%$host%g
7549 s%@host_alias@%$host_alias%g
7550 s%@host_cpu@%$host_cpu%g
7551 s%@host_vendor@%$host_vendor%g
7552 s%@host_os@%$host_os%g
7553 s%@target@%$target%g
7554 s%@target_alias@%$target_alias%g
7555 s%@target_cpu@%$target_cpu%g
7556 s%@target_vendor@%$target_vendor%g
7557 s%@target_os@%$target_os%g
7558 s%@build@%$build%g
7559 s%@build_alias@%$build_alias%g
7560 s%@build_cpu@%$build_cpu%g
7561 s%@build_vendor@%$build_vendor%g
7562 s%@build_os@%$build_os%g
7563 s%@CC@%$CC%g
7564 s%@glibjava_CXX@%$glibjava_CXX%g
7565 s%@CXX@%$CXX%g
7566 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7567 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7568 s%@INSTALL_DATA@%$INSTALL_DATA%g
7569 s%@PACKAGE@%$PACKAGE%g
7570 s%@VERSION@%$VERSION%g
7571 s%@ACLOCAL@%$ACLOCAL%g
7572 s%@AUTOCONF@%$AUTOCONF%g
7573 s%@AUTOMAKE@%$AUTOMAKE%g
7574 s%@AUTOHEADER@%$AUTOHEADER%g
7575 s%@MAKEINFO@%$MAKEINFO%g
7576 s%@SET_MAKE@%$SET_MAKE%g
7577 s%@AS@%$AS%g
7578 s%@AR@%$AR%g
7579 s%@RANLIB@%$RANLIB%g
7580 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7581 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7582 s%@MAINT@%$MAINT%g
7583 s%@EXEEXT@%$EXEEXT%g
7584 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7585 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7586 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7587 s%@INCLTDL@%$INCLTDL%g
7588 s%@LIBLTDL@%$LIBLTDL%g
7589 s%@DIRLTDL@%$DIRLTDL%g
7590 s%@OBJEXT@%$OBJEXT%g
7591 s%@STRIP@%$STRIP%g
7592 s%@LIBTOOL@%$LIBTOOL%g
7593 s%@CXXCPP@%$CXXCPP%g
7594 s%@subdirs@%$subdirs%g
7595 s%@COMPPATH@%$COMPPATH%g
7596 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7597 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7598 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7599 s%@LIBFFI@%$LIBFFI%g
7600 s%@LIBFFIINCS@%$LIBFFIINCS%g
7601 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7602 s%@CPP@%$CPP%g
7603 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7604 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7605 s%@ZLIBSPEC@%$ZLIBSPEC%g
7606 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7607 s%@GCLIBS@%$GCLIBS%g
7608 s%@GCINCS@%$GCINCS%g
7609 s%@GCDEPS@%$GCDEPS%g
7610 s%@GCOBJS@%$GCOBJS%g
7611 s%@GCSPEC@%$GCSPEC%g
7612 s%@JC1GCSPEC@%$JC1GCSPEC%g
7613 s%@GCTESTSPEC@%$GCTESTSPEC%g
7614 s%@THREADLIBS@%$THREADLIBS%g
7615 s%@THREADINCS@%$THREADINCS%g
7616 s%@THREADDEPS@%$THREADDEPS%g
7617 s%@THREADOBJS@%$THREADOBJS%g
7618 s%@THREADSPEC@%$THREADSPEC%g
7619 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
7620 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7621 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7622 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7623 s%@tool_include_dir@%$tool_include_dir%g
7624 s%@gcc_version@%$gcc_version%g
7625 s%@LIBICONV@%$LIBICONV%g
7626 s%@GCJ@%$GCJ%g
7627 s%@GCJFLAGS@%$GCJFLAGS%g
7628 s%@ZLIBS@%$ZLIBS%g
7629 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
7630 s%@ZINCS@%$ZINCS%g
7631 s%@DIVIDESPEC@%$DIVIDESPEC%g
7632 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
7633 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7634 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7635 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7636 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7637 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7638 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7639 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7640 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7641 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7642 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7643 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7644 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7645 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7646 s%@GCJVERSION@%$GCJVERSION%g
7647 s%@ALLOCA@%$ALLOCA%g
7648 s%@PERL@%$PERL%g
7649 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7650 s%@X_CFLAGS@%$X_CFLAGS%g
7651 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7652 s%@X_LIBS@%$X_LIBS%g
7653 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7654 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7655 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7656 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7657 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7658 s%@here@%$here%g
7660 CEOF
7663 cat >> $CONFIG_STATUS <<\EOF
7665 # Split the substitutions into bite-sized pieces for seds with
7666 # small command number limits, like on Digital OSF/1 and HP-UX.
7667 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7668 ac_file=1 # Number of current file.
7669 ac_beg=1 # First line for current file.
7670 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7671 ac_more_lines=:
7672 ac_sed_cmds=""
7673 while $ac_more_lines; do
7674 if test $ac_beg -gt 1; then
7675 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7676 else
7677 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7679 if test ! -s conftest.s$ac_file; then
7680 ac_more_lines=false
7681 rm -f conftest.s$ac_file
7682 else
7683 if test -z "$ac_sed_cmds"; then
7684 ac_sed_cmds="sed -f conftest.s$ac_file"
7685 else
7686 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7688 ac_file=`expr $ac_file + 1`
7689 ac_beg=$ac_end
7690 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7692 done
7693 if test -z "$ac_sed_cmds"; then
7694 ac_sed_cmds=cat
7698 cat >> $CONFIG_STATUS <<EOF
7700 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7702 cat >> $CONFIG_STATUS <<\EOF
7703 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7704 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7705 case "$ac_file" in
7706 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7707 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7708 *) ac_file_in="${ac_file}.in" ;;
7709 esac
7711 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7713 # Remove last slash and all that follows it. Not all systems have dirname.
7714 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7715 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7716 # The file is in a subdirectory.
7717 test ! -d "$ac_dir" && mkdir "$ac_dir"
7718 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7719 # A "../" for each directory in $ac_dir_suffix.
7720 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7721 else
7722 ac_dir_suffix= ac_dots=
7725 case "$ac_given_srcdir" in
7726 .) srcdir=.
7727 if test -z "$ac_dots"; then top_srcdir=.
7728 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7729 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7730 *) # Relative path.
7731 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7732 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7733 esac
7735 case "$ac_given_INSTALL" in
7736 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7737 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7738 esac
7740 echo creating "$ac_file"
7741 rm -f "$ac_file"
7742 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7743 case "$ac_file" in
7744 *Makefile*) ac_comsub="1i\\
7745 # $configure_input" ;;
7746 *) ac_comsub= ;;
7747 esac
7749 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7750 sed -e "$ac_comsub
7751 s%@configure_input@%$configure_input%g
7752 s%@srcdir@%$srcdir%g
7753 s%@top_srcdir@%$top_srcdir%g
7754 s%@INSTALL@%$INSTALL%g
7755 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7756 fi; done
7757 rm -f conftest.s*
7759 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7760 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7762 # ac_d sets the value in "#define NAME VALUE" lines.
7763 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7764 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7765 ac_dC='\3'
7766 ac_dD='%g'
7767 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7768 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7769 ac_uB='\([ ]\)%\1#\2define\3'
7770 ac_uC=' '
7771 ac_uD='\4%g'
7772 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7773 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7774 ac_eB='$%\1#\2define\3'
7775 ac_eC=' '
7776 ac_eD='%g'
7778 if test "${CONFIG_HEADERS+set}" != set; then
7780 cat >> $CONFIG_STATUS <<EOF
7781 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7783 cat >> $CONFIG_STATUS <<\EOF
7785 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7786 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7787 case "$ac_file" in
7788 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7789 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7790 *) ac_file_in="${ac_file}.in" ;;
7791 esac
7793 echo creating $ac_file
7795 rm -f conftest.frag conftest.in conftest.out
7796 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7797 cat $ac_file_inputs > conftest.in
7801 # Transform confdefs.h into a sed script conftest.vals that substitutes
7802 # the proper values into config.h.in to produce config.h. And first:
7803 # Protect against being on the right side of a sed subst in config.status.
7804 # Protect against being in an unquoted here document in config.status.
7805 rm -f conftest.vals
7806 cat > conftest.hdr <<\EOF
7807 s/[\\&%]/\\&/g
7808 s%[\\$`]%\\&%g
7809 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7810 s%ac_d%ac_u%gp
7811 s%ac_u%ac_e%gp
7813 sed -n -f conftest.hdr confdefs.h > conftest.vals
7814 rm -f conftest.hdr
7816 # This sed command replaces #undef with comments. This is necessary, for
7817 # example, in the case of _POSIX_SOURCE, which is predefined and required
7818 # on some systems where configure will not decide to define it.
7819 cat >> conftest.vals <<\EOF
7820 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7823 # Break up conftest.vals because some shells have a limit on
7824 # the size of here documents, and old seds have small limits too.
7826 rm -f conftest.tail
7827 while :
7829 ac_lines=`grep -c . conftest.vals`
7830 # grep -c gives empty output for an empty file on some AIX systems.
7831 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7832 # Write a limited-size here document to conftest.frag.
7833 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7834 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7835 echo 'CEOF
7836 sed -f conftest.frag conftest.in > conftest.out
7837 rm -f conftest.in
7838 mv conftest.out conftest.in
7839 ' >> $CONFIG_STATUS
7840 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7841 rm -f conftest.vals
7842 mv conftest.tail conftest.vals
7843 done
7844 rm -f conftest.vals
7846 cat >> $CONFIG_STATUS <<\EOF
7847 rm -f conftest.frag conftest.h
7848 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7849 cat conftest.in >> conftest.h
7850 rm -f conftest.in
7851 if cmp -s $ac_file conftest.h 2>/dev/null; then
7852 echo "$ac_file is unchanged"
7853 rm -f conftest.h
7854 else
7855 # Remove last slash and all that follows it. Not all systems have dirname.
7856 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7857 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7858 # The file is in a subdirectory.
7859 test ! -d "$ac_dir" && mkdir "$ac_dir"
7861 rm -f $ac_file
7862 mv conftest.h $ac_file
7864 fi; done
7868 cat >> $CONFIG_STATUS <<EOF
7869 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
7870 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
7873 cat >> $CONFIG_STATUS <<\EOF
7874 srcdir=$ac_given_srcdir
7875 while test -n "$ac_sources"; do
7876 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7877 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7879 echo "linking $srcdir/$ac_source to $ac_dest"
7881 if test ! -r $srcdir/$ac_source; then
7882 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7884 rm -f $ac_dest
7886 # Make relative symlinks.
7887 # Remove last slash and all that follows it. Not all systems have dirname.
7888 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7889 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7890 # The dest file is in a subdirectory.
7891 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7892 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7893 # A "../" for each directory in $ac_dest_dir_suffix.
7894 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7895 else
7896 ac_dest_dir_suffix= ac_dots=
7899 case "$srcdir" in
7900 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7901 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7902 esac
7904 # Make a symlink if possible; otherwise try a hard link.
7905 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7906 ln $srcdir/$ac_source $ac_dest; then :
7907 else
7908 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7910 done
7912 cat >> $CONFIG_STATUS <<EOF
7914 srcdir=${srcdir}
7915 host=${host}
7916 target=${target}
7917 with_multisubdir=${with_multisubdir}
7918 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7919 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7920 libgcj_basedir=${libgcj_basedir}
7921 CC="${CC}"
7922 CXX="${CXX}"
7925 cat >> $CONFIG_STATUS <<\EOF
7926 am_indx=1
7927 for am_file in include/config.h gcj/libgcj-config.h; do
7928 case " $CONFIG_HEADERS " in
7929 *" $am_file "*)
7930 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7932 esac
7933 am_indx=`expr "$am_indx" + 1`
7934 done
7935 # Only add multilib support code if we just rebuilt top-level Makefile.
7936 case " $CONFIG_FILES " in
7937 *" Makefile "*)
7938 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7939 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7941 esac
7943 # Make subdirectories and `.d' files. Look in both srcdir and
7944 # builddir for the .java files.
7945 h=`pwd`
7946 : > deps.mk
7947 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
7948 find . \( -name '*.java' -o -name '*.cc' \) -print) | \
7949 fgrep -v testsuite | \
7950 sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
7951 while read f; do
7952 echo "include $f" >> deps.mk
7953 test -f $f || {
7955 d=`echo $f | sed -e 's,/[^/]*$,,'`
7957 if test ! -d $d; then
7958 $libgcj_basedir/../mkinstalldirs $d
7960 echo > $f
7962 done
7964 exit 0
7966 chmod +x $CONFIG_STATUS
7967 rm -fr confdefs* $ac_clean_files
7968 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7970 if test "$no_recursion" != yes; then
7972 # Remove --cache-file and --srcdir arguments so they do not pile up.
7973 ac_sub_configure_args=
7974 ac_prev=
7975 for ac_arg in $ac_configure_args; do
7976 if test -n "$ac_prev"; then
7977 ac_prev=
7978 continue
7980 case "$ac_arg" in
7981 -cache-file | --cache-file | --cache-fil | --cache-fi \
7982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7983 ac_prev=cache_file ;;
7984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7987 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7988 ac_prev=srcdir ;;
7989 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7991 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7992 esac
7993 done
7995 for ac_config_dir in $DIRLTDL; do
7997 # Do not complain, so a configure script can configure whichever
7998 # parts of a large source tree are present.
7999 if test ! -d $srcdir/$ac_config_dir; then
8000 continue
8003 echo configuring in $ac_config_dir
8005 case "$srcdir" in
8006 .) ;;
8008 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8009 else
8010 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8013 esac
8015 ac_popdir=`pwd`
8016 cd $ac_config_dir
8018 # A "../" for each directory in /$ac_config_dir.
8019 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8021 case "$srcdir" in
8022 .) # No --srcdir option. We are building in place.
8023 ac_sub_srcdir=$srcdir ;;
8024 /*) # Absolute path.
8025 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8026 *) # Relative path.
8027 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8028 esac
8030 # Check for guested configure; otherwise get Cygnus style configure.
8031 if test -f $ac_sub_srcdir/configure; then
8032 ac_sub_configure=$ac_sub_srcdir/configure
8033 elif test -f $ac_sub_srcdir/configure.in; then
8034 ac_sub_configure=$ac_configure
8035 else
8036 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8037 ac_sub_configure=
8040 # The recursion is here.
8041 if test -n "$ac_sub_configure"; then
8043 # Make the cache file name correct relative to the subdirectory.
8044 case "$cache_file" in
8045 /*) ac_sub_cache_file=$cache_file ;;
8046 *) # Relative path.
8047 ac_sub_cache_file="$ac_dots$cache_file" ;;
8048 esac
8049 case "$ac_given_INSTALL" in
8050 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8051 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8052 esac
8054 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8055 # The eval makes quoting arguments work.
8056 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8057 then :
8058 else
8059 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
8063 cd $ac_popdir
8064 done