oops - omitted from previouys delta
[official-gcc.git] / libjava / configure
blob7ee698c696db987d2c78a174800f884a2efd2cb3
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 --enable-fast-character prefer speed over size for Character"
38 ac_help="$ac_help
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
41 ac_help="$ac_help
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
44 ac_help="$ac_help
45 --enable-libgcj-debug enable runtime debugging code"
46 ac_help="$ac_help
47 --enable-interpreter enable interpreter"
48 ac_help="$ac_help
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
50 ac_help="$ac_help
51 --disable-java-net disable java.net"
52 ac_help="$ac_help
53 --without-libffi don't use libffi"
54 ac_help="$ac_help
55 --disable-jvmpi disable JVMPI support"
56 ac_help="$ac_help
57 --with-ecos enable runtime eCos target support"
58 ac_help="$ac_help
59 --with-system-zlib use installed libz"
60 ac_help="$ac_help
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
62 ac_help="$ac_help
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64 ac_help="$ac_help
65 --with-x use the X Window System"
66 ac_help="$ac_help
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 sitefile=
86 srcdir=
87 target=NONE
88 verbose=
89 x_includes=NONE
90 x_libraries=NONE
91 bindir='${exec_prefix}/bin'
92 sbindir='${exec_prefix}/sbin'
93 libexecdir='${exec_prefix}/libexec'
94 datadir='${prefix}/share'
95 sysconfdir='${prefix}/etc'
96 sharedstatedir='${prefix}/com'
97 localstatedir='${prefix}/var'
98 libdir='${exec_prefix}/lib'
99 includedir='${prefix}/include'
100 oldincludedir='/usr/include'
101 infodir='${prefix}/info'
102 mandir='${prefix}/man'
104 # Initialize some other variables.
105 subdirs=
106 MFLAGS= MAKEFLAGS=
107 SHELL=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
109 ac_max_here_lines=12
111 ac_prev=
112 for ac_option
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
118 ac_prev=
119 continue
122 case "$ac_option" in
123 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 *) ac_optarg= ;;
125 esac
127 # Accept the important Cygnus configure options, so we can diagnose typos.
129 case "$ac_option" in
131 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 ac_prev=bindir ;;
133 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
134 bindir="$ac_optarg" ;;
136 -build | --build | --buil | --bui | --bu)
137 ac_prev=build ;;
138 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
139 build="$ac_optarg" ;;
141 -cache-file | --cache-file | --cache-fil | --cache-fi \
142 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
143 ac_prev=cache_file ;;
144 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
145 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
146 cache_file="$ac_optarg" ;;
148 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 ac_prev=datadir ;;
150 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 | --da=*)
152 datadir="$ac_optarg" ;;
154 -disable-* | --disable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* | --enable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 case "$ac_option" in
171 *=*) ;;
172 *) ac_optarg=yes ;;
173 esac
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
178 | --exec | --exe | --ex)
179 ac_prev=exec_prefix ;;
180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
182 | --exec=* | --exe=* | --ex=*)
183 exec_prefix="$ac_optarg" ;;
185 -gas | --gas | --ga | --g)
186 # Obsolete; use --with-gas.
187 with_gas=yes ;;
189 -help | --help | --hel | --he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
192 cat << EOF
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
195 Configuration:
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --site-file=FILE use FILE as the site file
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
204 [$ac_default_prefix]
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
206 [same as prefix]
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
211 [PREFIX/share]
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
214 [PREFIX/com]
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
227 cat << EOF
228 Host type:
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
243 exit 0 ;;
245 -host | --host | --hos | --ho)
246 ac_prev=host ;;
247 -host=* | --host=* | --hos=* | --ho=*)
248 host="$ac_optarg" ;;
250 -includedir | --includedir | --includedi | --included | --include \
251 | --includ | --inclu | --incl | --inc)
252 ac_prev=includedir ;;
253 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
254 | --includ=* | --inclu=* | --incl=* | --inc=*)
255 includedir="$ac_optarg" ;;
257 -infodir | --infodir | --infodi | --infod | --info | --inf)
258 ac_prev=infodir ;;
259 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
260 infodir="$ac_optarg" ;;
262 -libdir | --libdir | --libdi | --libd)
263 ac_prev=libdir ;;
264 -libdir=* | --libdir=* | --libdi=* | --libd=*)
265 libdir="$ac_optarg" ;;
267 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
268 | --libexe | --libex | --libe)
269 ac_prev=libexecdir ;;
270 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
271 | --libexe=* | --libex=* | --libe=*)
272 libexecdir="$ac_optarg" ;;
274 -localstatedir | --localstatedir | --localstatedi | --localstated \
275 | --localstate | --localstat | --localsta | --localst \
276 | --locals | --local | --loca | --loc | --lo)
277 ac_prev=localstatedir ;;
278 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
279 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
280 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
281 localstatedir="$ac_optarg" ;;
283 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
284 ac_prev=mandir ;;
285 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
286 mandir="$ac_optarg" ;;
288 -nfp | --nfp | --nf)
289 # Obsolete; use --without-fp.
290 with_fp=no ;;
292 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
293 | --no-cr | --no-c)
294 no_create=yes ;;
296 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
297 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
298 no_recursion=yes ;;
300 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
301 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
302 | --oldin | --oldi | --old | --ol | --o)
303 ac_prev=oldincludedir ;;
304 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
305 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
306 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
307 oldincludedir="$ac_optarg" ;;
309 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
310 ac_prev=prefix ;;
311 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
312 prefix="$ac_optarg" ;;
314 -program-prefix | --program-prefix | --program-prefi | --program-pref \
315 | --program-pre | --program-pr | --program-p)
316 ac_prev=program_prefix ;;
317 -program-prefix=* | --program-prefix=* | --program-prefi=* \
318 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
319 program_prefix="$ac_optarg" ;;
321 -program-suffix | --program-suffix | --program-suffi | --program-suff \
322 | --program-suf | --program-su | --program-s)
323 ac_prev=program_suffix ;;
324 -program-suffix=* | --program-suffix=* | --program-suffi=* \
325 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
326 program_suffix="$ac_optarg" ;;
328 -program-transform-name | --program-transform-name \
329 | --program-transform-nam | --program-transform-na \
330 | --program-transform-n | --program-transform- \
331 | --program-transform | --program-transfor \
332 | --program-transfo | --program-transf \
333 | --program-trans | --program-tran \
334 | --progr-tra | --program-tr | --program-t)
335 ac_prev=program_transform_name ;;
336 -program-transform-name=* | --program-transform-name=* \
337 | --program-transform-nam=* | --program-transform-na=* \
338 | --program-transform-n=* | --program-transform-=* \
339 | --program-transform=* | --program-transfor=* \
340 | --program-transfo=* | --program-transf=* \
341 | --program-trans=* | --program-tran=* \
342 | --progr-tra=* | --program-tr=* | --program-t=*)
343 program_transform_name="$ac_optarg" ;;
345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
346 | -silent | --silent | --silen | --sile | --sil)
347 silent=yes ;;
349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
350 ac_prev=sbindir ;;
351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
352 | --sbi=* | --sb=*)
353 sbindir="$ac_optarg" ;;
355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
357 | --sharedst | --shareds | --shared | --share | --shar \
358 | --sha | --sh)
359 ac_prev=sharedstatedir ;;
360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
363 | --sha=* | --sh=*)
364 sharedstatedir="$ac_optarg" ;;
366 -site | --site | --sit)
367 ac_prev=site ;;
368 -site=* | --site=* | --sit=*)
369 site="$ac_optarg" ;;
371 -site-file | --site-file | --site-fil | --site-fi | --site-f)
372 ac_prev=sitefile ;;
373 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
374 sitefile="$ac_optarg" ;;
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
377 ac_prev=srcdir ;;
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
389 ac_prev=target ;;
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
394 verbose=yes ;;
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
398 exit 0 ;;
400 -with-* | --with-*)
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 case "$ac_option" in
408 *=*) ;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
422 --x)
423 # Obsolete; use --with-x.
424 with_x=yes ;;
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 nonopt="$ac_option"
453 esac
454 done
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
463 # 0 standard input
464 # 1 file creation
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
471 exec 6>/dev/null
472 else
473 exec 6>&1
475 exec 5>./config.log
477 echo "\
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
480 " 1>&5
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
484 ac_configure_args=
485 for ac_arg
487 case "$ac_arg" in
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
495 esac
496 done
498 # NLS nuisances.
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
511 echo > confdefs.h
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=java/lang/System.java
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
521 ac_prog=$0
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
524 srcdir=$ac_confdir
525 if test ! -r $srcdir/$ac_unique_file; then
526 srcdir=..
528 else
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 else
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$sitefile"; then
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 else
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 else
550 CONFIG_SITE="$sitefile"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
555 . "$ac_site_file"
557 done
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
561 . $cache_file
562 else
563 echo "creating cache $cache_file"
564 > $cache_file
567 ac_ext=c
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
574 ac_exeext=
575 ac_objext=o
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579 ac_n= ac_c='
580 ' ac_t=' '
581 else
582 ac_n=-n ac_c= ac_t=
584 else
585 ac_n= ac_c='\c' ac_t=
590 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
591 echo "configure:592: checking whether ln -s works" >&5
592 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
594 else
595 rm -f conftestdata
596 if ln -s X conftestdata 2>/dev/null
597 then
598 rm -f conftestdata
599 ac_cv_prog_LN_S="ln -s"
600 else
601 ac_cv_prog_LN_S=ln
604 LN_S="$ac_cv_prog_LN_S"
605 if test "$ac_cv_prog_LN_S" = "ln -s"; then
606 echo "$ac_t""yes" 1>&6
607 else
608 echo "$ac_t""no" 1>&6
612 # Check whether --with-target-subdir or --without-target-subdir was given.
613 if test "${with_target_subdir+set}" = set; then
614 withval="$with_target_subdir"
618 # Check whether --with-cross-host or --without-cross-host was given.
619 if test "${with_cross_host+set}" = set; then
620 withval="$with_cross_host"
625 # Find a good install program. We prefer a C program (faster),
626 # so one script is as good as another. But avoid the broken or
627 # incompatible versions:
628 # SysV /etc/install, /usr/sbin/install
629 # SunOS /usr/etc/install
630 # IRIX /sbin/install
631 # AIX /bin/install
632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
635 # ./install, which can be erroneously created by make from ./install.sh.
636 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
637 echo "configure:638: checking for a BSD compatible install" >&5
638 if test -z "$INSTALL"; then
639 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
641 else
642 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
643 for ac_dir in $PATH; do
644 # Account for people who put trailing slashes in PATH elements.
645 case "$ac_dir/" in
646 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
648 # OSF1 and SCO ODT 3.0 have their own names for install.
649 # Don't use installbsd from OSF since it installs stuff as root
650 # by default.
651 for ac_prog in ginstall scoinst install; do
652 if test -f $ac_dir/$ac_prog; then
653 if test $ac_prog = install &&
654 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
655 # AIX install. It has an incompatible calling convention.
657 else
658 ac_cv_path_install="$ac_dir/$ac_prog -c"
659 break 2
662 done
664 esac
665 done
666 IFS="$ac_save_IFS"
669 if test "${ac_cv_path_install+set}" = set; then
670 INSTALL="$ac_cv_path_install"
671 else
672 # As a last resort, use the slow shell script. We don't cache a
673 # path for INSTALL within a source directory, because that will
674 # break other packages using the cache if that directory is
675 # removed, or if the path is relative.
676 INSTALL="$ac_install_sh"
679 echo "$ac_t""$INSTALL" 1>&6
681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
682 # It thinks the first close brace ends the variable substitution.
683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
689 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
690 echo "configure:691: checking whether build environment is sane" >&5
691 # Just in case
692 sleep 1
693 echo timestamp > conftestfile
694 # Do `set' in a subshell so we don't clobber the current shell's
695 # arguments. Must try -L first in case configure is actually a
696 # symlink; some systems play weird games with the mod time of symlinks
697 # (eg FreeBSD returns the mod time of the symlink's containing
698 # directory).
699 if (
700 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
701 if test "$*" = "X"; then
702 # -L didn't work.
703 set X `ls -t $srcdir/configure conftestfile`
705 if test "$*" != "X $srcdir/configure conftestfile" \
706 && test "$*" != "X conftestfile $srcdir/configure"; then
708 # If neither matched, then we have a broken ls. This can happen
709 # if, for instance, CONFIG_SHELL is bash and it inherits a
710 # broken ls alias from the environment. This has actually
711 # happened. Such a system could not be considered "sane".
712 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
713 alias in your environment" 1>&2; exit 1; }
716 test "$2" = conftestfile
718 then
719 # Ok.
721 else
722 { echo "configure: error: newly created file is older than distributed files!
723 Check your system clock" 1>&2; exit 1; }
725 rm -f conftest*
726 echo "$ac_t""yes" 1>&6
727 if test "$program_transform_name" = s,x,x,; then
728 program_transform_name=
729 else
730 # Double any \ or $. echo might interpret backslashes.
731 cat <<\EOF_SED > conftestsed
732 s,\\,\\\\,g; s,\$,$$,g
733 EOF_SED
734 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
735 rm -f conftestsed
737 test "$program_prefix" != NONE &&
738 program_transform_name="s,^,${program_prefix},; $program_transform_name"
739 # Use a double $ so make ignores it.
740 test "$program_suffix" != NONE &&
741 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
743 # sed with no file args requires a program.
744 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
746 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
747 echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
749 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
751 else
752 cat > conftestmake <<\EOF
753 all:
754 @echo 'ac_maketemp="${MAKE}"'
756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
757 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
758 if test -n "$ac_maketemp"; then
759 eval ac_cv_prog_make_${ac_make}_set=yes
760 else
761 eval ac_cv_prog_make_${ac_make}_set=no
763 rm -f conftestmake
765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
767 SET_MAKE=
768 else
769 echo "$ac_t""no" 1>&6
770 SET_MAKE="MAKE=${MAKE-make}"
773 if test $host != $build; then
774 ac_tool_prefix=${host_alias}-
775 else
776 ac_tool_prefix=
779 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
780 echo "configure:781: checking for Cygwin environment" >&5
781 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
783 else
784 cat > conftest.$ac_ext <<EOF
785 #line 786 "configure"
786 #include "confdefs.h"
788 int main() {
790 #ifndef __CYGWIN__
791 #define __CYGWIN__ __CYGWIN32__
792 #endif
793 return __CYGWIN__;
794 ; return 0; }
796 if { (eval echo configure:797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
797 rm -rf conftest*
798 ac_cv_cygwin=yes
799 else
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
802 rm -rf conftest*
803 ac_cv_cygwin=no
805 rm -f conftest*
806 rm -f conftest*
809 echo "$ac_t""$ac_cv_cygwin" 1>&6
810 CYGWIN=
811 test "$ac_cv_cygwin" = yes && CYGWIN=yes
812 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
813 echo "configure:814: checking for mingw32 environment" >&5
814 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
816 else
817 cat > conftest.$ac_ext <<EOF
818 #line 819 "configure"
819 #include "confdefs.h"
821 int main() {
822 return __MINGW32__;
823 ; return 0; }
825 if { (eval echo configure:826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
826 rm -rf conftest*
827 ac_cv_mingw32=yes
828 else
829 echo "configure: failed program was:" >&5
830 cat conftest.$ac_ext >&5
831 rm -rf conftest*
832 ac_cv_mingw32=no
834 rm -f conftest*
835 rm -f conftest*
838 echo "$ac_t""$ac_cv_mingw32" 1>&6
839 MINGW32=
840 test "$ac_cv_mingw32" = yes && MINGW32=yes
842 # Check whether --enable-multilib or --disable-multilib was given.
843 if test "${enable_multilib+set}" = set; then
844 enableval="$enable_multilib"
845 case "${enableval}" in
846 yes) multilib=yes ;;
847 no) multilib=no ;;
848 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
849 esac
850 else
851 multilib=yes
855 # When building with srcdir == objdir, links to the source files will
856 # be created in directories within the target_subdir. We have to
857 # adjust toplevel_srcdir accordingly, so that configure finds
858 # install-sh and other auxiliary files that live in the top-level
859 # source directory.
860 if test "${srcdir}" = "."; then
861 if test -z "${with_target_subdir}"; then
862 toprel=".."
863 else
864 if test "${with_target_subdir}" != "."; then
865 toprel="${with_multisrctop}../.."
866 else
867 toprel="${with_multisrctop}.."
870 else
871 toprel=".."
874 libgcj_basedir=$srcdir/$toprel/./libjava
877 ac_aux_dir=
878 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
879 if test -f $ac_dir/install-sh; then
880 ac_aux_dir=$ac_dir
881 ac_install_sh="$ac_aux_dir/install-sh -c"
882 break
883 elif 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
888 done
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
892 ac_config_guess=$ac_aux_dir/config.guess
893 ac_config_sub=$ac_aux_dir/config.sub
894 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
896 if :; then :; else
897 # This overrides the previous occurrence for automake, but not for
898 # autoconf, which is exactly what we want.
899 ac_aux_dir=
900 for ac_dir in .. $srcdir/..; do
901 if test -f $ac_dir/install-sh; then
902 ac_aux_dir=$ac_dir
903 ac_install_sh="$ac_aux_dir/install-sh -c"
904 break
905 elif 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
910 done
911 if test -z "$ac_aux_dir"; then
912 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
914 ac_config_guess=$ac_aux_dir/config.guess
915 ac_config_sub=$ac_aux_dir/config.sub
916 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
920 # This works around an automake problem.
921 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
925 # Do some error checking and defaulting for the host and target type.
926 # The inputs are:
927 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
929 # The rules are:
930 # 1. You are not allowed to specify --host, --target, and nonopt at the
931 # same time.
932 # 2. Host defaults to nonopt.
933 # 3. If nonopt is not specified, then host defaults to the current host,
934 # as determined by config.guess.
935 # 4. Target and build default to nonopt.
936 # 5. If nonopt is not specified, then target and build default to host.
938 # The aliases save the names the user supplied, while $host etc.
939 # will get canonicalized.
940 case $host---$target---$nonopt in
941 NONE---*---* | *---NONE---* | *---*---NONE) ;;
942 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
943 esac
946 # Make sure we can run config.sub.
947 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
948 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
951 echo $ac_n "checking host system type""... $ac_c" 1>&6
952 echo "configure:953: checking host system type" >&5
954 host_alias=$host
955 case "$host_alias" in
956 NONE)
957 case $nonopt in
958 NONE)
959 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
960 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
961 fi ;;
962 *) host_alias=$nonopt ;;
963 esac ;;
964 esac
966 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
967 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970 echo "$ac_t""$host" 1>&6
972 echo $ac_n "checking target system type""... $ac_c" 1>&6
973 echo "configure:974: checking target system type" >&5
975 target_alias=$target
976 case "$target_alias" in
977 NONE)
978 case $nonopt in
979 NONE) target_alias=$host_alias ;;
980 *) target_alias=$nonopt ;;
981 esac ;;
982 esac
984 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
985 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
986 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
987 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988 echo "$ac_t""$target" 1>&6
990 echo $ac_n "checking build system type""... $ac_c" 1>&6
991 echo "configure:992: checking build system type" >&5
993 build_alias=$build
994 case "$build_alias" in
995 NONE)
996 case $nonopt in
997 NONE) build_alias=$host_alias ;;
998 *) build_alias=$nonopt ;;
999 esac ;;
1000 esac
1002 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1003 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1004 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1005 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1006 echo "$ac_t""$build" 1>&6
1008 test "$host_alias" != "$target_alias" &&
1009 test "$program_prefix$program_suffix$program_transform_name" = \
1010 NONENONEs,x,x, &&
1011 program_prefix=${target_alias}-
1017 # Extract the first word of "gcc", so it can be a program name with args.
1018 set dummy gcc; ac_word=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1023 else
1024 if test -n "$CC"; then
1025 ac_cv_prog_CC="$CC" # Let the user override the test.
1026 else
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1028 ac_dummy="$PATH"
1029 for ac_dir in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_prog_CC="gcc"
1033 break
1035 done
1036 IFS="$ac_save_ifs"
1039 CC="$ac_cv_prog_CC"
1040 if test -n "$CC"; then
1041 echo "$ac_t""$CC" 1>&6
1042 else
1043 echo "$ac_t""no" 1>&6
1046 if test -z "$CC"; then
1047 # Extract the first word of "cc", so it can be a program name with args.
1048 set dummy cc; ac_word=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1056 else
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1058 ac_prog_rejected=no
1059 ac_dummy="$PATH"
1060 for ac_dir in $ac_dummy; do
1061 test -z "$ac_dir" && ac_dir=.
1062 if test -f $ac_dir/$ac_word; then
1063 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1064 ac_prog_rejected=yes
1065 continue
1067 ac_cv_prog_CC="cc"
1068 break
1070 done
1071 IFS="$ac_save_ifs"
1072 if test $ac_prog_rejected = yes; then
1073 # We found a bogon in the path, so make sure we never use it.
1074 set dummy $ac_cv_prog_CC
1075 shift
1076 if test $# -gt 0; then
1077 # We chose a different compiler from the bogus one.
1078 # However, it has the same basename, so the bogon will be chosen
1079 # first if we set CC to just the basename; use the full file name.
1080 shift
1081 set dummy "$ac_dir/$ac_word" "$@"
1082 shift
1083 ac_cv_prog_CC="$@"
1088 CC="$ac_cv_prog_CC"
1089 if test -n "$CC"; then
1090 echo "$ac_t""$CC" 1>&6
1091 else
1092 echo "$ac_t""no" 1>&6
1095 if test -z "$CC"; then
1096 case "`uname -s`" in
1097 *win32* | *WIN32*)
1098 # Extract the first word of "cl", so it can be a program name with args.
1099 set dummy cl; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1104 else
1105 if test -n "$CC"; then
1106 ac_cv_prog_CC="$CC" # Let the user override the test.
1107 else
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1109 ac_dummy="$PATH"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1113 ac_cv_prog_CC="cl"
1114 break
1116 done
1117 IFS="$ac_save_ifs"
1120 CC="$ac_cv_prog_CC"
1121 if test -n "$CC"; then
1122 echo "$ac_t""$CC" 1>&6
1123 else
1124 echo "$ac_t""no" 1>&6
1127 esac
1129 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1133 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1134 echo "configure:1135: checking whether we are using GNU C" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1137 else
1138 cat > conftest.c <<EOF
1139 #ifdef __GNUC__
1140 yes;
1141 #endif
1143 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1144 ac_cv_prog_gcc=yes
1145 else
1146 ac_cv_prog_gcc=no
1150 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1152 if test $ac_cv_prog_gcc = yes; then
1153 GCC=yes
1154 else
1155 GCC=
1158 ac_test_CFLAGS="${CFLAGS+set}"
1159 ac_save_CFLAGS="$CFLAGS"
1160 CFLAGS=
1161 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether ${CC-cc} accepts -g" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165 else
1166 echo 'void f(){}' > conftest.c
1167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1168 ac_cv_prog_cc_g=yes
1169 else
1170 ac_cv_prog_cc_g=no
1172 rm -f conftest*
1176 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1177 if test "$ac_test_CFLAGS" = set; then
1178 CFLAGS="$ac_save_CFLAGS"
1179 elif test $ac_cv_prog_cc_g = yes; then
1180 if test "$GCC" = yes; then
1181 CFLAGS="-g -O2"
1182 else
1183 CFLAGS="-g"
1185 else
1186 if test "$GCC" = yes; then
1187 CFLAGS="-O2"
1188 else
1189 CFLAGS=
1193 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1195 # Extract the first word of "$ac_prog", so it can be a program name with args.
1196 set dummy $ac_prog; ac_word=$2
1197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1198 echo "configure:1199: checking for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201 else
1202 if test -n "$CXX"; then
1203 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1204 else
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1206 ac_dummy="$PATH"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_CXX="$ac_prog"
1211 break
1213 done
1214 IFS="$ac_save_ifs"
1217 CXX="$ac_cv_prog_CXX"
1218 if test -n "$CXX"; then
1219 echo "$ac_t""$CXX" 1>&6
1220 else
1221 echo "$ac_t""no" 1>&6
1224 test -n "$CXX" && break
1225 done
1226 test -n "$CXX" || CXX="gcc"
1230 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether we are using GNU C++" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1234 else
1235 cat > conftest.C <<EOF
1236 #ifdef __GNUC__
1237 yes;
1238 #endif
1240 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1241 ac_cv_prog_gxx=yes
1242 else
1243 ac_cv_prog_gxx=no
1247 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1249 if test $ac_cv_prog_gxx = yes; then
1250 GXX=yes
1251 else
1252 GXX=
1255 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1256 ac_save_CXXFLAGS="$CXXFLAGS"
1257 CXXFLAGS=
1258 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether ${CXX-g++} accepts -g" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1262 else
1263 echo 'void f(){}' > conftest.cc
1264 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1265 ac_cv_prog_cxx_g=yes
1266 else
1267 ac_cv_prog_cxx_g=no
1269 rm -f conftest*
1273 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1274 if test "$ac_test_CXXFLAGS" = set; then
1275 CXXFLAGS="$ac_save_CXXFLAGS"
1276 elif test $ac_cv_prog_cxx_g = yes; then
1277 if test "$GXX" = yes; then
1278 CXXFLAGS="-g -O2"
1279 else
1280 CXXFLAGS="-g"
1282 else
1283 if test "$GXX" = yes; then
1284 CXXFLAGS="-O2"
1285 else
1286 CXXFLAGS=
1291 version=0.0.7
1293 PACKAGE=libjava
1295 VERSION=$version
1297 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1298 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1300 cat >> confdefs.h <<EOF
1301 #define PACKAGE "$PACKAGE"
1304 cat >> confdefs.h <<EOF
1305 #define VERSION "$VERSION"
1310 missing_dir=`cd $ac_aux_dir && pwd`
1311 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1312 echo "configure:1313: checking for working aclocal" >&5
1313 # Run test in a subshell; some versions of sh will print an error if
1314 # an executable is not found, even if stderr is redirected.
1315 # Redirect stdin to placate older versions of autoconf. Sigh.
1316 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1317 ACLOCAL=aclocal
1318 echo "$ac_t""found" 1>&6
1319 else
1320 ACLOCAL="$missing_dir/missing aclocal"
1321 echo "$ac_t""missing" 1>&6
1324 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1325 echo "configure:1326: checking for working autoconf" >&5
1326 # Run test in a subshell; some versions of sh will print an error if
1327 # an executable is not found, even if stderr is redirected.
1328 # Redirect stdin to placate older versions of autoconf. Sigh.
1329 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1330 AUTOCONF=autoconf
1331 echo "$ac_t""found" 1>&6
1332 else
1333 AUTOCONF="$missing_dir/missing autoconf"
1334 echo "$ac_t""missing" 1>&6
1337 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1338 echo "configure:1339: checking for working automake" >&5
1339 # Run test in a subshell; some versions of sh will print an error if
1340 # an executable is not found, even if stderr is redirected.
1341 # Redirect stdin to placate older versions of autoconf. Sigh.
1342 if (automake --version) < /dev/null > /dev/null 2>&1; then
1343 AUTOMAKE=automake
1344 echo "$ac_t""found" 1>&6
1345 else
1346 AUTOMAKE="$missing_dir/missing automake"
1347 echo "$ac_t""missing" 1>&6
1350 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1351 echo "configure:1352: checking for working autoheader" >&5
1352 # Run test in a subshell; some versions of sh will print an error if
1353 # an executable is not found, even if stderr is redirected.
1354 # Redirect stdin to placate older versions of autoconf. Sigh.
1355 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1356 AUTOHEADER=autoheader
1357 echo "$ac_t""found" 1>&6
1358 else
1359 AUTOHEADER="$missing_dir/missing autoheader"
1360 echo "$ac_t""missing" 1>&6
1363 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1364 echo "configure:1365: checking for working makeinfo" >&5
1365 # Run test in a subshell; some versions of sh will print an error if
1366 # an executable is not found, even if stderr is redirected.
1367 # Redirect stdin to placate older versions of autoconf. Sigh.
1368 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1369 MAKEINFO=makeinfo
1370 echo "$ac_t""found" 1>&6
1371 else
1372 MAKEINFO="$missing_dir/missing makeinfo"
1373 echo "$ac_t""missing" 1>&6
1378 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1379 # run it explicitly here, it will be run implicitly before
1380 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1381 # be run before AC_CANONICAL_HOST.
1382 echo $ac_n "checking build system type""... $ac_c" 1>&6
1383 echo "configure:1384: checking build system type" >&5
1385 build_alias=$build
1386 case "$build_alias" in
1387 NONE)
1388 case $nonopt in
1389 NONE) build_alias=$host_alias ;;
1390 *) build_alias=$nonopt ;;
1391 esac ;;
1392 esac
1394 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1395 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398 echo "$ac_t""$build" 1>&6
1401 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}as; ac_word=$2
1403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1404 echo "configure:1405: checking for $ac_word" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1407 else
1408 if test -n "$AS"; then
1409 ac_cv_prog_AS="$AS" # Let the user override the test.
1410 else
1411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1412 ac_dummy="$PATH"
1413 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 if test -f $ac_dir/$ac_word; then
1416 ac_cv_prog_AS="${ac_tool_prefix}as"
1417 break
1419 done
1420 IFS="$ac_save_ifs"
1421 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1424 AS="$ac_cv_prog_AS"
1425 if test -n "$AS"; then
1426 echo "$ac_t""$AS" 1>&6
1427 else
1428 echo "$ac_t""no" 1>&6
1433 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}ar; ac_word=$2
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_word" >&5
1437 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1439 else
1440 if test -n "$AR"; then
1441 ac_cv_prog_AR="$AR" # Let the user override the test.
1442 else
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1444 ac_dummy="$PATH"
1445 for ac_dir in $ac_dummy; do
1446 test -z "$ac_dir" && ac_dir=.
1447 if test -f $ac_dir/$ac_word; then
1448 ac_cv_prog_AR="${ac_tool_prefix}ar"
1449 break
1451 done
1452 IFS="$ac_save_ifs"
1453 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1456 AR="$ac_cv_prog_AR"
1457 if test -n "$AR"; then
1458 echo "$ac_t""$AR" 1>&6
1459 else
1460 echo "$ac_t""no" 1>&6
1465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1466 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 if test -n "$RANLIB"; then
1473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1474 else
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1476 ac_dummy="$PATH"
1477 for ac_dir in $ac_dummy; do
1478 test -z "$ac_dir" && ac_dir=.
1479 if test -f $ac_dir/$ac_word; then
1480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1481 break
1483 done
1484 IFS="$ac_save_ifs"
1487 RANLIB="$ac_cv_prog_RANLIB"
1488 if test -n "$RANLIB"; then
1489 echo "$ac_t""$RANLIB" 1>&6
1490 else
1491 echo "$ac_t""no" 1>&6
1495 if test -z "$ac_cv_prog_RANLIB"; then
1496 if test -n "$ac_tool_prefix"; then
1497 # Extract the first word of "ranlib", so it can be a program name with args.
1498 set dummy ranlib; ac_word=$2
1499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1500 echo "configure:1501: checking for $ac_word" >&5
1501 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1503 else
1504 if test -n "$RANLIB"; then
1505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1506 else
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1508 ac_dummy="$PATH"
1509 for ac_dir in $ac_dummy; do
1510 test -z "$ac_dir" && ac_dir=.
1511 if test -f $ac_dir/$ac_word; then
1512 ac_cv_prog_RANLIB="ranlib"
1513 break
1515 done
1516 IFS="$ac_save_ifs"
1517 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1520 RANLIB="$ac_cv_prog_RANLIB"
1521 if test -n "$RANLIB"; then
1522 echo "$ac_t""$RANLIB" 1>&6
1523 else
1524 echo "$ac_t""no" 1>&6
1527 else
1528 RANLIB=":"
1533 # Find a good install program. We prefer a C program (faster),
1534 # so one script is as good as another. But avoid the broken or
1535 # incompatible versions:
1536 # SysV /etc/install, /usr/sbin/install
1537 # SunOS /usr/etc/install
1538 # IRIX /sbin/install
1539 # AIX /bin/install
1540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1543 # ./install, which can be erroneously created by make from ./install.sh.
1544 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1545 echo "configure:1546: checking for a BSD compatible install" >&5
1546 if test -z "$INSTALL"; then
1547 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1551 for ac_dir in $PATH; do
1552 # Account for people who put trailing slashes in PATH elements.
1553 case "$ac_dir/" in
1554 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1558 # by default.
1559 for ac_prog in ginstall scoinst install; do
1560 if test -f $ac_dir/$ac_prog; then
1561 if test $ac_prog = install &&
1562 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1563 # AIX install. It has an incompatible calling convention.
1565 else
1566 ac_cv_path_install="$ac_dir/$ac_prog -c"
1567 break 2
1570 done
1572 esac
1573 done
1574 IFS="$ac_save_IFS"
1577 if test "${ac_cv_path_install+set}" = set; then
1578 INSTALL="$ac_cv_path_install"
1579 else
1580 # As a last resort, use the slow shell script. We don't cache a
1581 # path for INSTALL within a source directory, because that will
1582 # break other packages using the cache if that directory is
1583 # removed, or if the path is relative.
1584 INSTALL="$ac_install_sh"
1587 echo "$ac_t""$INSTALL" 1>&6
1589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1590 # It thinks the first close brace ends the variable substitution.
1591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1598 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1599 echo "configure:1600: checking whether to enable maintainer-specific portions of Makefiles" >&5
1600 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1601 if test "${enable_maintainer_mode+set}" = set; then
1602 enableval="$enable_maintainer_mode"
1603 USE_MAINTAINER_MODE=$enableval
1604 else
1605 USE_MAINTAINER_MODE=no
1608 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1611 if test $USE_MAINTAINER_MODE = yes; then
1612 MAINTAINER_MODE_TRUE=
1613 MAINTAINER_MODE_FALSE='#'
1614 else
1615 MAINTAINER_MODE_TRUE='#'
1616 MAINTAINER_MODE_FALSE=
1618 MAINT=$MAINTAINER_MODE_TRUE
1622 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1623 # at least currently, we never actually build a program, so we never
1624 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1625 # fails, because we are probably configuring with a cross compiler
1626 # which cant create executables. So we include AC_EXEEXT to keep
1627 # automake happy, but we dont execute it, since we dont care about
1628 # the result.
1629 if false; then
1630 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1631 # to nothing, so nothing would remain between `then' and `fi' if it
1632 # were not for the `:' below.
1636 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1637 echo "configure:1638: checking for executable suffix" >&5
1638 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1640 else
1641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1642 ac_cv_exeext=.exe
1643 else
1644 rm -f conftest*
1645 echo 'int main () { return 0; }' > conftest.$ac_ext
1646 ac_cv_exeext=
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1648 for file in conftest.*; do
1649 case $file in
1650 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1651 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1652 esac
1653 done
1654 else
1655 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1657 rm -f conftest*
1658 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1662 EXEEXT=""
1663 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1664 echo "$ac_t""${ac_cv_exeext}" 1>&6
1665 ac_exeext=$EXEEXT
1669 # configure.host sets the following important variables
1670 # libgcj_cflags - host specific C compiler flags
1671 # libgcj_cxxflags - host specific C++ compiler flags
1672 # libgcj_javaflags - host specific Java compiler flags
1674 libgcj_cflags=
1675 libgcj_cxxflags=
1676 libgcj_javaflags=
1678 . ${srcdir}/configure.host
1680 LIBGCJ_CFLAGS="${libgcj_cflags}"
1681 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1682 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1692 # Only use libltdl for native builds.
1693 if test -z "${with_cross_host}"; then
1694 case $enable_ltdl_convenience in
1695 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1696 "") enable_ltdl_convenience=yes
1697 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1698 esac
1699 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1700 INCLTDL='-I${top_srcdir}/''libltdl'
1703 DIRLTDL=libltdl
1704 cat >> confdefs.h <<\EOF
1705 #define USE_LTDL 1
1708 # Sigh. Libtool's macro doesn't do the right thing.
1709 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1710 # FIXME: this is a hack.
1711 sub_auxdir="`cd $ac_aux_dir && pwd`"
1712 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1717 # Check whether --enable-shared or --disable-shared was given.
1718 if test "${enable_shared+set}" = set; then
1719 enableval="$enable_shared"
1720 p=${PACKAGE-default}
1721 case $enableval in
1722 yes) enable_shared=yes ;;
1723 no) enable_shared=no ;;
1725 enable_shared=no
1726 # Look at the argument we got. We use all the common list separators.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1728 for pkg in $enableval; do
1729 if test "X$pkg" = "X$p"; then
1730 enable_shared=yes
1732 done
1733 IFS="$ac_save_ifs"
1735 esac
1736 else
1737 enable_shared=yes
1740 # Check whether --enable-static or --disable-static was given.
1741 if test "${enable_static+set}" = set; then
1742 enableval="$enable_static"
1743 p=${PACKAGE-default}
1744 case $enableval in
1745 yes) enable_static=yes ;;
1746 no) enable_static=no ;;
1748 enable_static=no
1749 # Look at the argument we got. We use all the common list separators.
1750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1751 for pkg in $enableval; do
1752 if test "X$pkg" = "X$p"; then
1753 enable_static=yes
1755 done
1756 IFS="$ac_save_ifs"
1758 esac
1759 else
1760 enable_static=yes
1763 # Check whether --enable-fast-install or --disable-fast-install was given.
1764 if test "${enable_fast_install+set}" = set; then
1765 enableval="$enable_fast_install"
1766 p=${PACKAGE-default}
1767 case $enableval in
1768 yes) enable_fast_install=yes ;;
1769 no) enable_fast_install=no ;;
1771 enable_fast_install=no
1772 # Look at the argument we got. We use all the common list separators.
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1774 for pkg in $enableval; do
1775 if test "X$pkg" = "X$p"; then
1776 enable_fast_install=yes
1778 done
1779 IFS="$ac_save_ifs"
1781 esac
1782 else
1783 enable_fast_install=yes
1786 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1787 if test "${with_gnu_ld+set}" = set; then
1788 withval="$with_gnu_ld"
1789 test "$withval" = no || with_gnu_ld=yes
1790 else
1791 with_gnu_ld=no
1794 ac_prog=ld
1795 if test "$GCC" = yes; then
1796 # Check if gcc -print-prog-name=ld gives a path.
1797 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1798 echo "configure:1799: checking for ld used by GCC" >&5
1799 case $host in
1800 *-*-mingw*)
1801 # gcc leaves a trailing carriage return which upsets mingw
1802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1805 esac
1806 case $ac_prog in
1807 # Accept absolute paths.
1808 [\\/]* | [A-Za-z]:[\\/]*)
1809 re_direlt='/[^/][^/]*/\.\./'
1810 # Canonicalize the path of ld
1811 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1813 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1814 done
1815 test -z "$LD" && LD="$ac_prog"
1818 # If it fails, then pretend we aren't using GCC.
1819 ac_prog=ld
1822 # If it is relative, then search for the first ld in PATH.
1823 with_gnu_ld=unknown
1825 esac
1826 elif test "$with_gnu_ld" = yes; then
1827 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking for GNU ld" >&5
1829 else
1830 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1831 echo "configure:1832: checking for non-GNU ld" >&5
1833 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1835 else
1836 if test -z "$LD"; then
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1838 for ac_dir in $PATH; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1841 lt_cv_path_LD="$ac_dir/$ac_prog"
1842 # Check to see if the program is GNU ld. I'd rather use --version,
1843 # but apparently some GNU ld's only accept -v.
1844 # Break only if it was the GNU/non-GNU ld that we prefer.
1845 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1846 test "$with_gnu_ld" != no && break
1847 else
1848 test "$with_gnu_ld" != yes && break
1851 done
1852 IFS="$ac_save_ifs"
1853 else
1854 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1858 LD="$lt_cv_path_LD"
1859 if test -n "$LD"; then
1860 echo "$ac_t""$LD" 1>&6
1861 else
1862 echo "$ac_t""no" 1>&6
1864 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1865 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1866 echo "configure:1867: checking if the linker ($LD) is GNU ld" >&5
1867 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1869 else
1870 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1871 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1872 lt_cv_prog_gnu_ld=yes
1873 else
1874 lt_cv_prog_gnu_ld=no
1878 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1879 with_gnu_ld=$lt_cv_prog_gnu_ld
1882 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $LD option to reload object files" >&5
1884 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 lt_cv_ld_reload_flag='-r'
1890 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1891 reload_flag=$lt_cv_ld_reload_flag
1892 test -n "$reload_flag" && reload_flag=" $reload_flag"
1894 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1895 echo "configure:1896: checking for BSD-compatible nm" >&5
1896 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 if test -n "$NM"; then
1900 # Let the user override the test.
1901 lt_cv_path_NM="$NM"
1902 else
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1904 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1905 test -z "$ac_dir" && ac_dir=.
1906 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1907 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1908 # Check to see if the nm accepts a BSD-compat flag.
1909 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1910 # nm: unknown option "B" ignored
1911 # Tru64's nm complains that /dev/null is an invalid object file
1912 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1913 lt_cv_path_NM="$tmp_nm -B"
1914 break
1915 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1916 lt_cv_path_NM="$tmp_nm -p"
1917 break
1918 else
1919 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1920 continue # so that we can try to find one that supports BSD flags
1923 done
1924 IFS="$ac_save_ifs"
1925 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1929 NM="$lt_cv_path_NM"
1930 echo "$ac_t""$NM" 1>&6
1932 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1933 echo "configure:1934: checking how to recognise dependant libraries" >&5
1934 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937 lt_cv_file_magic_cmd='$MAGIC_CMD'
1938 lt_cv_file_magic_test_file=
1939 lt_cv_deplibs_check_method='unknown'
1940 # Need to set the preceding variable on all platforms that support
1941 # interlibrary dependencies.
1942 # 'none' -- dependencies not supported.
1943 # `unknown' -- same as none, but documents that we really don't know.
1944 # 'pass_all' -- all dependencies passed with no checks.
1945 # 'test_compile' -- check by making test program.
1946 # 'file_magic [regex]' -- check by looking for files in library path
1947 # which responds to the $file_magic_cmd with a given egrep regex.
1948 # If you have `file' or equivalent on your system and you're not sure
1949 # whether `pass_all' will *always* work, you probably want this one.
1951 case $host_os in
1952 aix*)
1953 lt_cv_deplibs_check_method=pass_all
1956 beos*)
1957 lt_cv_deplibs_check_method=pass_all
1960 bsdi4*)
1961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1962 lt_cv_file_magic_cmd='/usr/bin/file -L'
1963 lt_cv_file_magic_test_file=/shlib/libc.so
1966 cygwin* | mingw* |pw32*)
1967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1968 lt_cv_file_magic_cmd='$OBJDUMP -f'
1971 darwin* | rhapsody*)
1972 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1973 lt_cv_file_magic_cmd='/usr/bin/file -L'
1974 case "$host_os" in
1975 rhapsody* | darwin1.012)
1976 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1978 *) # Darwin 1.3 on
1979 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1981 esac
1984 freebsd* )
1985 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1986 case $host_cpu in
1987 i*86 )
1988 # Not sure whether the presence of OpenBSD here was a mistake.
1989 # Let's accept both of them until this is cleared up.
1990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1991 lt_cv_file_magic_cmd=/usr/bin/file
1992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1994 esac
1995 else
1996 lt_cv_deplibs_check_method=pass_all
2000 gnu*)
2001 lt_cv_deplibs_check_method=pass_all
2004 hpux10.20*|hpux11*)
2005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2006 lt_cv_file_magic_cmd=/usr/bin/file
2007 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2010 irix5* | irix6*)
2011 case $host_os in
2012 irix5*)
2013 # this will be overridden with pass_all, but let us keep it just in case
2014 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2017 case $LD in
2018 *-32|*"-32 ") libmagic=32-bit;;
2019 *-n32|*"-n32 ") libmagic=N32;;
2020 *-64|*"-64 ") libmagic=64-bit;;
2021 *) libmagic=never-match;;
2022 esac
2023 # this will be overridden with pass_all, but let us keep it just in case
2024 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2026 esac
2027 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2028 lt_cv_deplibs_check_method=pass_all
2031 # This must be Linux ELF.
2032 linux-gnu*)
2033 case $host_cpu in
2034 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2035 lt_cv_deplibs_check_method=pass_all ;;
2037 # glibc up to 2.1.1 does not perform some relocations on ARM
2038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2039 esac
2040 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2043 netbsd*)
2044 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2045 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2046 else
2047 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2051 newsos6)
2052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2053 lt_cv_file_magic_cmd=/usr/bin/file
2054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2057 osf3* | osf4* | osf5*)
2058 # this will be overridden with pass_all, but let us keep it just in case
2059 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2060 lt_cv_file_magic_test_file=/shlib/libc.so
2061 lt_cv_deplibs_check_method=pass_all
2064 sco3.2v5*)
2065 lt_cv_deplibs_check_method=pass_all
2068 solaris*)
2069 lt_cv_deplibs_check_method=pass_all
2070 lt_cv_file_magic_test_file=/lib/libc.so
2073 sysv5uw[78]* | sysv4*uw2*)
2074 lt_cv_deplibs_check_method=pass_all
2077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2078 case $host_vendor in
2079 ncr)
2080 lt_cv_deplibs_check_method=pass_all
2082 motorola)
2083 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]'
2084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2086 esac
2088 esac
2092 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2093 file_magic_cmd=$lt_cv_file_magic_cmd
2094 deplibs_check_method=$lt_cv_deplibs_check_method
2096 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2097 echo "configure:2098: checking for object suffix" >&5
2098 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 rm -f conftest*
2102 echo 'int i = 1;' > conftest.$ac_ext
2103 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2104 for ac_file in conftest.*; do
2105 case $ac_file in
2106 *.c) ;;
2107 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2108 esac
2109 done
2110 else
2111 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2113 rm -f conftest*
2116 echo "$ac_t""$ac_cv_objext" 1>&6
2117 OBJEXT=$ac_cv_objext
2118 ac_objext=$ac_cv_objext
2120 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2122 # Only perform the check for file, if the check method requires it
2123 case $deplibs_check_method in
2124 file_magic*)
2125 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2126 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2127 echo "configure:2128: checking for ${ac_tool_prefix}file" >&5
2128 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131 case $MAGIC_CMD in
2133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2135 ?:/*)
2136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2139 ac_save_MAGIC_CMD="$MAGIC_CMD"
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2141 ac_dummy="/usr/bin:$PATH"
2142 for ac_dir in $ac_dummy; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f $ac_dir/${ac_tool_prefix}file; then
2145 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2146 if test -n "$file_magic_test_file"; then
2147 case $deplibs_check_method in
2148 "file_magic "*)
2149 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2152 egrep "$file_magic_regex" > /dev/null; then
2154 else
2155 cat <<EOF 1>&2
2157 *** Warning: the command libtool uses to detect shared libraries,
2158 *** $file_magic_cmd, produces output that libtool cannot recognize.
2159 *** The result is that libtool may fail to recognize shared libraries
2160 *** as such. This will affect the creation of libtool libraries that
2161 *** depend on shared libraries, but programs linked with such libtool
2162 *** libraries will work regardless of this problem. Nevertheless, you
2163 *** may want to report the problem to your system manager and/or to
2164 *** bug-libtool@gnu.org
2167 fi ;;
2168 esac
2170 break
2172 done
2173 IFS="$ac_save_ifs"
2174 MAGIC_CMD="$ac_save_MAGIC_CMD"
2176 esac
2179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180 if test -n "$MAGIC_CMD"; then
2181 echo "$ac_t""$MAGIC_CMD" 1>&6
2182 else
2183 echo "$ac_t""no" 1>&6
2186 if test -z "$lt_cv_path_MAGIC_CMD"; then
2187 if test -n "$ac_tool_prefix"; then
2188 echo $ac_n "checking for file""... $ac_c" 1>&6
2189 echo "configure:2190: checking for file" >&5
2190 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2192 else
2193 case $MAGIC_CMD in
2195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2197 ?:/*)
2198 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2201 ac_save_MAGIC_CMD="$MAGIC_CMD"
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2203 ac_dummy="/usr/bin:$PATH"
2204 for ac_dir in $ac_dummy; do
2205 test -z "$ac_dir" && ac_dir=.
2206 if test -f $ac_dir/file; then
2207 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2208 if test -n "$file_magic_test_file"; then
2209 case $deplibs_check_method in
2210 "file_magic "*)
2211 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2214 egrep "$file_magic_regex" > /dev/null; then
2216 else
2217 cat <<EOF 1>&2
2219 *** Warning: the command libtool uses to detect shared libraries,
2220 *** $file_magic_cmd, produces output that libtool cannot recognize.
2221 *** The result is that libtool may fail to recognize shared libraries
2222 *** as such. This will affect the creation of libtool libraries that
2223 *** depend on shared libraries, but programs linked with such libtool
2224 *** libraries will work regardless of this problem. Nevertheless, you
2225 *** may want to report the problem to your system manager and/or to
2226 *** bug-libtool@gnu.org
2229 fi ;;
2230 esac
2232 break
2234 done
2235 IFS="$ac_save_ifs"
2236 MAGIC_CMD="$ac_save_MAGIC_CMD"
2238 esac
2241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2242 if test -n "$MAGIC_CMD"; then
2243 echo "$ac_t""$MAGIC_CMD" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2248 else
2249 MAGIC_CMD=:
2255 esac
2257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 if test -n "$RANLIB"; then
2265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2266 else
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2268 ac_dummy="$PATH"
2269 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 if test -f $ac_dir/$ac_word; then
2272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2273 break
2275 done
2276 IFS="$ac_save_ifs"
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281 echo "$ac_t""$RANLIB" 1>&6
2282 else
2283 echo "$ac_t""no" 1>&6
2287 if test -z "$ac_cv_prog_RANLIB"; then
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "ranlib", so it can be a program name with args.
2290 set dummy ranlib; ac_word=$2
2291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2292 echo "configure:2293: checking for $ac_word" >&5
2293 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2295 else
2296 if test -n "$RANLIB"; then
2297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2298 else
2299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2300 ac_dummy="$PATH"
2301 for ac_dir in $ac_dummy; do
2302 test -z "$ac_dir" && ac_dir=.
2303 if test -f $ac_dir/$ac_word; then
2304 ac_cv_prog_RANLIB="ranlib"
2305 break
2307 done
2308 IFS="$ac_save_ifs"
2309 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2312 RANLIB="$ac_cv_prog_RANLIB"
2313 if test -n "$RANLIB"; then
2314 echo "$ac_t""$RANLIB" 1>&6
2315 else
2316 echo "$ac_t""no" 1>&6
2319 else
2320 RANLIB=":"
2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330 else
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 else
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2335 ac_dummy="$PATH"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2340 break
2342 done
2343 IFS="$ac_save_ifs"
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348 echo "$ac_t""$STRIP" 1>&6
2349 else
2350 echo "$ac_t""no" 1>&6
2354 if test -z "$ac_cv_prog_STRIP"; then
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "strip", so it can be a program name with args.
2357 set dummy strip; ac_word=$2
2358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2362 else
2363 if test -n "$STRIP"; then
2364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2365 else
2366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2367 ac_dummy="$PATH"
2368 for ac_dir in $ac_dummy; do
2369 test -z "$ac_dir" && ac_dir=.
2370 if test -f $ac_dir/$ac_word; then
2371 ac_cv_prog_STRIP="strip"
2372 break
2374 done
2375 IFS="$ac_save_ifs"
2376 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2379 STRIP="$ac_cv_prog_STRIP"
2380 if test -n "$STRIP"; then
2381 echo "$ac_t""$STRIP" 1>&6
2382 else
2383 echo "$ac_t""no" 1>&6
2386 else
2387 STRIP=":"
2392 # Check for any special flags to pass to ltconfig.
2393 libtool_flags="--cache-file=$cache_file"
2394 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2395 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2396 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2397 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2398 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2399 libtool_flags="$libtool_flags --enable-dlopen"
2401 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2402 if test "${enable_libtool_lock+set}" = set; then
2403 enableval="$enable_libtool_lock"
2407 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2408 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2410 # Check whether --with-pic or --without-pic was given.
2411 if test "${with_pic+set}" = set; then
2412 withval="$with_pic"
2413 pic_mode="$withval"
2414 else
2415 pic_mode=default
2418 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2419 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2421 # Some flags need to be propagated to the compiler or linker for good
2422 # libtool support.
2423 case $host in
2424 *-*-irix6*)
2425 # Find out which ABI we are using.
2426 echo '#line 2427 "configure"' > conftest.$ac_ext
2427 if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 case `/usr/bin/file conftest.$ac_objext` in
2429 *32-bit*)
2430 LD="${LD-ld} -32"
2432 *N32*)
2433 LD="${LD-ld} -n32"
2435 *64-bit*)
2436 LD="${LD-ld} -64"
2438 esac
2440 rm -rf conftest*
2443 *-*-sco3.2v5*)
2444 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2445 SAVE_CFLAGS="$CFLAGS"
2446 CFLAGS="$CFLAGS -belf"
2447 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2448 echo "configure:2449: checking whether the C compiler needs -belf" >&5
2449 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2451 else
2453 ac_ext=c
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling=$ac_cv_prog_cc_cross
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2464 int main() {
2466 ; return 0; }
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2469 rm -rf conftest*
2470 lt_cv_cc_needs_belf=yes
2471 else
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 rm -rf conftest*
2475 lt_cv_cc_needs_belf=no
2477 rm -f conftest*
2478 ac_ext=c
2479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cc_cross
2487 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2488 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2490 CFLAGS="$SAVE_CFLAGS"
2495 esac
2497 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2498 echo "configure:2499: checking how to run the C++ preprocessor" >&5
2499 if test -z "$CXXCPP"; then
2500 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2502 else
2503 ac_ext=C
2504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CXXCPP $CPPFLAGS'
2506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cxx_cross
2509 CXXCPP="${CXX-g++} -E"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 #include <stdlib.h>
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2520 else
2521 echo "$ac_err" >&5
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 rm -rf conftest*
2525 CXXCPP=/lib/cpp
2527 rm -f conftest*
2528 ac_cv_prog_CXXCPP="$CXXCPP"
2529 ac_ext=c
2530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2534 cross_compiling=$ac_cv_prog_cc_cross
2537 CXXCPP="$ac_cv_prog_CXXCPP"
2538 echo "$ac_t""$CXXCPP" 1>&6
2541 # Save cache, so that ltconfig can load it
2542 cat > confcache <<\EOF
2543 # This file is a shell script that caches the results of configure
2544 # tests run on this system so they can be shared between configure
2545 # scripts and configure runs. It is not useful on other systems.
2546 # If it contains results you don't want to keep, you may remove or edit it.
2548 # By default, configure uses ./config.cache as the cache file,
2549 # creating it if it does not exist already. You can give configure
2550 # the --cache-file=FILE option to use a different cache file; that is
2551 # what configure does when it calls configure scripts in
2552 # subdirectories, so they share the cache.
2553 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2554 # config.status only pays attention to the cache file if you give it the
2555 # --recheck option to rerun configure.
2558 # The following way of writing the cache mishandles newlines in values,
2559 # but we know of no workaround that is simple, portable, and efficient.
2560 # So, don't put newlines in cache variables' values.
2561 # Ultrix sh set writes to stderr and can't be redirected directly,
2562 # and sets the high bit in the cache file unless we assign to the vars.
2563 (set) 2>&1 |
2564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2565 *ac_space=\ *)
2566 # `set' does not quote correctly, so add quotes (double-quote substitution
2567 # turns \\\\ into \\, and sed turns \\ into \).
2568 sed -n \
2569 -e "s/'/'\\\\''/g" \
2570 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2573 # `set' quotes correctly as required by POSIX, so do not add quotes.
2574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2576 esac >> confcache
2577 if cmp -s $cache_file confcache; then
2579 else
2580 if test -w $cache_file; then
2581 echo "updating cache $cache_file"
2582 cat confcache > $cache_file
2583 else
2584 echo "not updating unwritable cache $cache_file"
2587 rm -f confcache
2590 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2591 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2592 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2593 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2594 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2595 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2596 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2597 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2598 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2599 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2601 # Reload cache, that may have been modified by ltconfig
2602 if test -r "$cache_file"; then
2603 echo "loading cache $cache_file"
2604 . $cache_file
2605 else
2606 echo "creating cache $cache_file"
2607 > $cache_file
2611 # This can be used to rebuild libtool when needed
2612 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2614 # Always use our own libtool.
2615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2617 # Redirect the config.log output again, so that the ltconfig log is not
2618 # clobbered by the next message.
2619 exec 5>>./config.log
2623 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2624 lt_save_CC="$CC"
2625 lt_save_CFLAGS="$CFLAGS"
2626 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2627 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2628 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2629 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2630 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2631 deplibs_check_method="$deplibs_check_method" \
2632 file_magic_cmd="$file_magic_cmd" \
2633 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2634 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2635 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2636 CC="$lt_save_CC"
2637 CFLAGS="$lt_save_CFLAGS"
2639 # Redirect the config.log output again, so that the ltconfig log is not
2640 # clobbered by the next message.
2641 exec 5>>./config.log
2648 subdirs="$DIRLTDL"
2651 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2652 COMPPATH=.
2653 else
2654 COMPPATH=..
2660 if test -d $srcdir/testsuite; then
2661 TESTSUBDIR_TRUE=
2662 TESTSUBDIR_FALSE='#'
2663 else
2664 TESTSUBDIR_TRUE='#'
2665 TESTSUBDIR_FALSE=
2668 # Check whether --enable-fast-character or --disable-fast-character was given.
2669 if test "${enable_fast_character+set}" = set; then
2670 enableval="$enable_fast_character"
2671 # Nothing
2673 else
2674 cat >> confdefs.h <<\EOF
2675 #define COMPACT_CHARACTER 1
2681 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2682 if test "${enable_getenv_properties+set}" = set; then
2683 enableval="$enable_getenv_properties"
2688 if test -z "$enable_getenv_properties"; then
2689 enable_getenv_properties=${enable_getenv_properties_default-yes}
2691 if test "$enable_getenv_properties" = no; then
2692 cat >> confdefs.h <<\EOF
2693 #define DISABLE_GETENV_PROPERTIES 1
2699 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2700 if test "${enable_hash_synchronization+set}" = set; then
2701 enableval="$enable_hash_synchronization"
2706 if test -z "$enable_hash_synchronization"; then
2707 enable_hash_synchronization=$enable_hash_synchronization_default
2711 LIBGCJDEBUG="false"
2713 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2714 if test "${enable_libgcj_debug+set}" = set; then
2715 enableval="$enable_libgcj_debug"
2716 if test "$enable_libgcj_debug" = yes; then
2717 cat >> confdefs.h <<\EOF
2718 #define DEBUG 1
2721 LIBGCJDEBUG="true"
2726 # Check whether --enable-interpreter or --disable-interpreter was given.
2727 if test "${enable_interpreter+set}" = set; then
2728 enableval="$enable_interpreter"
2729 if test "$enable_interpreter" = yes; then
2730 # This can also be set in configure.host.
2731 libgcj_interpreter=yes
2732 elif test "$enable_interpreter" = no; then
2733 libgcj_interpreter=no
2738 if test "$libgcj_interpreter" = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define INTERPRETER 1
2745 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2746 echo "configure:2747: checking for exception model to use" >&5
2748 ac_ext=C
2749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2750 ac_cpp='$CXXCPP $CPPFLAGS'
2751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2753 cross_compiling=$ac_cv_prog_cxx_cross
2755 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2756 if test "${enable_sjlj_exceptions+set}" = set; then
2757 enableval="$enable_sjlj_exceptions"
2759 else
2760 cat > conftest.$ac_ext << EOF
2761 #line 2762 "configure"
2762 struct S { ~S(); };
2763 void bar();
2764 void foo()
2766 S s;
2767 bar();
2770 old_CXXFLAGS="$CXXFLAGS"
2771 CXXFLAGS=-S
2772 if { (eval echo configure:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2773 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2774 enable_sjlj_exceptions=yes
2775 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2776 enable_sjlj_exceptions=no
2779 CXXFLAGS="$old_CXXFLAGS"
2780 rm -f conftest*
2783 if test x$enable_sjlj_exceptions = xyes; then
2784 cat >> confdefs.h <<\EOF
2785 #define SJLJ_EXCEPTIONS 1
2788 ac_exception_model_name=sjlj
2789 elif test x$enable_sjlj_exceptions = xno; then
2790 ac_exception_model_name="call frame"
2791 else
2792 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2794 ac_ext=c
2795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2799 cross_compiling=$ac_cv_prog_cc_cross
2801 echo "$ac_t""$ac_exception_model_name" 1>&6
2803 # Check whether --enable-java-net or --disable-java-net was given.
2804 if test "${enable_java_net+set}" = set; then
2805 enableval="$enable_java_net"
2810 if test -z "$enable_java_net"; then
2811 enable_java_net=${enable_java_net_default-yes}
2813 if test "$enable_java_net" = no; then
2814 cat >> confdefs.h <<\EOF
2815 #define DISABLE_JAVA_NET 1
2820 # Check whether --with-libffi or --without-libffi was given.
2821 if test "${with_libffi+set}" = set; then
2822 withval="$with_libffi"
2824 else
2825 with_libffi=${with_libffi_default-yes}
2829 LIBFFI=
2830 LIBFFIINCS=
2831 if test "$with_libffi" != no; then
2832 cat >> confdefs.h <<\EOF
2833 #define USE_LIBFFI 1
2836 LIBFFI=../libffi/libfficonvenience.la
2837 LIBFFIINCS="-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include"
2842 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2843 if test "${enable_jvmpi+set}" = set; then
2844 enableval="$enable_jvmpi"
2849 if test "$enable_jvmpi" != no; then
2850 cat >> confdefs.h <<\EOF
2851 #define ENABLE_JVMPI 1
2856 TARGET_ECOS="no"
2857 # Check whether --with-ecos or --without-ecos was given.
2858 if test "${with_ecos+set}" = set; then
2859 withval="$with_ecos"
2860 TARGET_ECOS="$with_ecos"
2865 case "$TARGET_ECOS" in
2867 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2868 PROCESS=${PROCESS-Posix}
2871 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2872 PROCESS=Ecos
2873 cat >> confdefs.h <<\EOF
2874 #define ECOS 1
2878 esac
2880 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2881 echo "configure:2882: checking how to run the C preprocessor" >&5
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2884 CPP=
2886 if test -z "$CPP"; then
2887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2889 else
2890 # This must be in double quotes, not single quotes, because CPP may get
2891 # substituted into the Makefile and "${CC-cc}" will confuse make.
2892 CPP="${CC-cc} -E"
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp.
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <assert.h>
2899 Syntax Error
2901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2904 if test -z "$ac_err"; then
2906 else
2907 echo "$ac_err" >&5
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 rm -rf conftest*
2911 CPP="${CC-cc} -E -traditional-cpp"
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 #include <assert.h>
2916 Syntax Error
2918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2919 { (eval echo configure:2920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2921 if test -z "$ac_err"; then
2923 else
2924 echo "$ac_err" >&5
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2927 rm -rf conftest*
2928 CPP="${CC-cc} -nologo -E"
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <assert.h>
2933 Syntax Error
2935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2936 { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2938 if test -z "$ac_err"; then
2940 else
2941 echo "$ac_err" >&5
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 rm -rf conftest*
2945 CPP=/lib/cpp
2947 rm -f conftest*
2949 rm -f conftest*
2951 rm -f conftest*
2952 ac_cv_prog_CPP="$CPP"
2954 CPP="$ac_cv_prog_CPP"
2955 else
2956 ac_cv_prog_CPP="$CPP"
2958 echo "$ac_t""$CPP" 1>&6
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #include <stdint.h>
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 egrep "uint32_t" >/dev/null 2>&1; then
2967 rm -rf conftest*
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_INT32_DEFINED 1
2973 rm -f conftest*
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <inttypes.h>
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 egrep "uint32_t" >/dev/null 2>&1; then
2982 rm -rf conftest*
2983 cat >> confdefs.h <<\EOF
2984 #define HAVE_INT32_DEFINED 1
2988 rm -f conftest*
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996 egrep "u_int32_t" >/dev/null 2>&1; then
2997 rm -rf conftest*
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_BSD_INT32_DEFINED 1
3003 rm -f conftest*
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <sys/config.h>
3010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3011 egrep "u_int32_t" >/dev/null 2>&1; then
3012 rm -rf conftest*
3013 cat >> confdefs.h <<\EOF
3014 #define HAVE_BSD_INT32_DEFINED 1
3018 rm -f conftest*
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025 #include <time.h>
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "mktime" >/dev/null 2>&1; then
3029 rm -rf conftest*
3030 cat >> confdefs.h <<\EOF
3031 #define HAVE_MKTIME 1
3035 rm -f conftest*
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 #include <time.h>
3042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3043 egrep "localtime" >/dev/null 2>&1; then
3044 rm -rf conftest*
3045 cat >> confdefs.h <<\EOF
3046 #define HAVE_LOCALTIME 1
3050 rm -f conftest*
3053 test -d java || mkdir java
3054 test -d java/io || mkdir java/io
3055 test -d gnu || mkdir gnu
3058 test -d java/lang || mkdir java/lang
3062 SYSTEMSPEC=
3065 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3068 # Check whether --with-system-zlib or --without-system-zlib was given.
3069 if test "${with_system_zlib+set}" = set; then
3070 withval="$with_system_zlib"
3074 ZLIBSPEC=
3076 ZLIBTESTSPEC=
3079 libsubdir=.libs
3081 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3082 echo "configure:3083: checking for garbage collector to use" >&5
3083 # Check whether --enable-java-gc or --disable-java-gc was given.
3084 if test "${enable_java_gc+set}" = set; then
3085 enableval="$enable_java_gc"
3087 GC=$enableval
3088 else
3089 GC=boehm
3092 GCLIBS=
3093 GCINCS=
3094 GCDEPS=
3095 GCOBJS=
3096 GCSPEC=
3097 JC1GCSPEC=
3098 GCTESTSPEC=
3099 case "$GC" in
3100 boehm)
3101 echo "$ac_t""boehm" 1>&6
3102 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3103 # We include the path to the boehm-gc build directory.
3104 # See Makefile.am to understand why.
3105 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3106 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3107 GCSPEC='-lgcjgc'
3108 JC1GCSPEC='-fuse-boehm-gc'
3109 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3110 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3111 GCOBJS=boehm.lo
3112 GCHDR=boehm-gc.h
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_BOEHM_GC 1
3119 echo "$ac_t""none" 1>&6
3120 GCOBJS=nogc.lo
3121 GCHDR=no-gc.h
3124 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3126 esac
3137 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3138 echo "configure:3139: checking for thread model used by GCC" >&5
3139 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3140 echo "$ac_t""$THREADS" 1>&6
3142 case "$THREADS" in
3143 no | none | single)
3144 THREADS=none
3146 posix | pthreads)
3147 THREADS=posix
3148 case "$host" in
3149 *-*-linux*)
3150 cat >> confdefs.h <<\EOF
3151 #define LINUX_THREADS 1
3155 esac
3157 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3158 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3161 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3163 esac
3165 THREADLIBS=
3166 THREADINCS=
3167 THREADDEPS=
3168 THREADOBJS=
3169 THREADH=
3170 THREADSPEC=
3171 case "$THREADS" in
3172 posix)
3173 case "$host" in
3174 *-*-cygwin*)
3175 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3178 THREADLIBS=-lpthread
3179 THREADSPEC=-lpthread
3181 esac
3182 THREADOBJS=posix-threads.lo
3183 THREADH=posix-threads.h
3184 # MIT pthreads doesn't seem to have the mutexattr functions.
3185 # But for now we don't check for it. We just assume you aren't
3186 # using MIT pthreads.
3187 cat >> confdefs.h <<\EOF
3188 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3192 # If we're using the Boehm GC, then we happen to know that it
3193 # defines _REENTRANT, so we don't bother. Eww.
3194 if test "$GC" != boehm; then
3195 cat >> confdefs.h <<\EOF
3196 #define _REENTRANT 1
3200 cat >> confdefs.h <<\EOF
3201 #define _POSIX_PTHREAD_SEMANTICS 1
3206 none)
3207 THREADOBJS=no-threads.lo
3208 THREADH=no-threads.h
3210 esac
3218 HASH_SYNC_SPEC=
3219 # Hash synchronization is only useful with posix threads right now.
3220 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3221 HASH_SYNC_SPEC=-fhash-synchronization
3222 cat >> confdefs.h <<\EOF
3223 #define JV_HASH_SYNCHRONIZATION 1
3232 if test "$GCC" = yes; then
3233 USING_GCC_TRUE=
3234 USING_GCC_FALSE='#'
3235 else
3236 USING_GCC_TRUE='#'
3237 USING_GCC_FALSE=
3240 CANADIAN=no
3241 NULL_TARGET=no
3242 NATIVE=yes
3244 # We're in the tree with gcc, and need to include some of its headers.
3245 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3247 if test -n "${with_cross_host}"; then
3248 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3249 # may not work correctly, because the compiler may not be able to
3250 # link executables.
3252 # We assume newlib. This lets us hard-code the functions we know
3253 # we'll have.
3254 cat >> confdefs.h <<\EOF
3255 #define HAVE_MEMMOVE 1
3258 cat >> confdefs.h <<\EOF
3259 #define HAVE_MEMCPY 1
3262 cat >> confdefs.h <<\EOF
3263 #define HAVE_STRERROR 1
3266 cat >> confdefs.h <<\EOF
3267 #define HAVE_GMTIME_R 1
3270 cat >> confdefs.h <<\EOF
3271 #define HAVE_LOCALTIME_R 1
3274 cat >> confdefs.h <<\EOF
3275 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3278 cat >> confdefs.h <<\EOF
3279 #define HAVE_ALLOCA 1
3283 cat >> confdefs.h <<\EOF
3284 #define NO_GETUID 1
3288 ZLIBSPEC=-lzgcj
3289 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3291 # If Canadian cross, then don't pick up tools from the build
3292 # directory.
3293 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3294 CANADIAN=yes
3295 GCC_UNWIND_INCLUDE=
3296 GCJ="${target_alias}-gcj"
3298 NATIVE=no
3299 else
3300 for ac_func in strerror ioctl select fstat open fsync sleep
3302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_func" >&5
3304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3306 else
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 /* System header to define __stub macros and hopefully few prototypes,
3311 which can conflict with char $ac_func(); below. */
3312 #include <assert.h>
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3316 char $ac_func();
3318 int main() {
3320 /* The GNU C library defines this for functions which it implements
3321 to always fail with ENOSYS. Some functions are actually named
3322 something starting with __ and the normal name is an alias. */
3323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 choke me
3325 #else
3326 $ac_func();
3327 #endif
3329 ; return 0; }
3331 if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3332 rm -rf conftest*
3333 eval "ac_cv_func_$ac_func=yes"
3334 else
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 rm -rf conftest*
3338 eval "ac_cv_func_$ac_func=no"
3340 rm -f conftest*
3343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3346 cat >> confdefs.h <<EOF
3347 #define $ac_tr_func 1
3350 else
3351 echo "$ac_t""no" 1>&6
3353 done
3355 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3358 echo "configure:3359: checking for $ac_func" >&5
3359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361 else
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3365 /* System header to define __stub macros and hopefully few prototypes,
3366 which can conflict with char $ac_func(); below. */
3367 #include <assert.h>
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3371 char $ac_func();
3373 int main() {
3375 /* The GNU C library defines this for functions which it implements
3376 to always fail with ENOSYS. Some functions are actually named
3377 something starting with __ and the normal name is an alias. */
3378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3379 choke me
3380 #else
3381 $ac_func();
3382 #endif
3384 ; return 0; }
3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3387 rm -rf conftest*
3388 eval "ac_cv_func_$ac_func=yes"
3389 else
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3392 rm -rf conftest*
3393 eval "ac_cv_func_$ac_func=no"
3395 rm -f conftest*
3398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3401 cat >> confdefs.h <<EOF
3402 #define $ac_tr_func 1
3405 else
3406 echo "$ac_t""no" 1>&6
3408 done
3410 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3413 echo "configure:3414: checking for $ac_func" >&5
3414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3416 else
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 /* System header to define __stub macros and hopefully few prototypes,
3421 which can conflict with char $ac_func(); below. */
3422 #include <assert.h>
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 /* We use char because int might match the return type of a gcc2
3425 builtin and then its argument prototype would still apply. */
3426 char $ac_func();
3428 int main() {
3430 /* The GNU C library defines this for functions which it implements
3431 to always fail with ENOSYS. Some functions are actually named
3432 something starting with __ and the normal name is an alias. */
3433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3434 choke me
3435 #else
3436 $ac_func();
3437 #endif
3439 ; return 0; }
3441 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3442 rm -rf conftest*
3443 eval "ac_cv_func_$ac_func=yes"
3444 else
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 rm -rf conftest*
3448 eval "ac_cv_func_$ac_func=no"
3450 rm -f conftest*
3453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_func 1
3460 else
3461 echo "$ac_t""no" 1>&6
3463 done
3465 for ac_func in nl_langinfo setlocale
3467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3468 echo "configure:3469: checking for $ac_func" >&5
3469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3471 else
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 /* System header to define __stub macros and hopefully few prototypes,
3476 which can conflict with char $ac_func(); below. */
3477 #include <assert.h>
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3481 char $ac_func();
3483 int main() {
3485 /* The GNU C library defines this for functions which it implements
3486 to always fail with ENOSYS. Some functions are actually named
3487 something starting with __ and the normal name is an alias. */
3488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3489 choke me
3490 #else
3491 $ac_func();
3492 #endif
3494 ; return 0; }
3496 if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3497 rm -rf conftest*
3498 eval "ac_cv_func_$ac_func=yes"
3499 else
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3502 rm -rf conftest*
3503 eval "ac_cv_func_$ac_func=no"
3505 rm -f conftest*
3508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3509 echo "$ac_t""yes" 1>&6
3510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3511 cat >> confdefs.h <<EOF
3512 #define $ac_tr_func 1
3515 else
3516 echo "$ac_t""no" 1>&6
3518 done
3520 for ac_func in inet_aton inet_addr
3522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_func" >&5
3524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3526 else
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* System header to define __stub macros and hopefully few prototypes,
3531 which can conflict with char $ac_func(); below. */
3532 #include <assert.h>
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3536 char $ac_func();
3538 int main() {
3540 /* The GNU C library defines this for functions which it implements
3541 to always fail with ENOSYS. Some functions are actually named
3542 something starting with __ and the normal name is an alias. */
3543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3544 choke me
3545 #else
3546 $ac_func();
3547 #endif
3549 ; return 0; }
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3552 rm -rf conftest*
3553 eval "ac_cv_func_$ac_func=yes"
3554 else
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3557 rm -rf conftest*
3558 eval "ac_cv_func_$ac_func=no"
3560 rm -f conftest*
3563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3566 cat >> confdefs.h <<EOF
3567 #define $ac_tr_func 1
3569 break
3570 else
3571 echo "$ac_t""no" 1>&6
3573 done
3575 for ac_func in inet_pton uname inet_ntoa
3577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_func" >&5
3579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3581 else
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 /* System header to define __stub macros and hopefully few prototypes,
3586 which can conflict with char $ac_func(); below. */
3587 #include <assert.h>
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3591 char $ac_func();
3593 int main() {
3595 /* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 choke me
3600 #else
3601 $ac_func();
3602 #endif
3604 ; return 0; }
3606 if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3607 rm -rf conftest*
3608 eval "ac_cv_func_$ac_func=yes"
3609 else
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3612 rm -rf conftest*
3613 eval "ac_cv_func_$ac_func=no"
3615 rm -f conftest*
3618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3621 cat >> confdefs.h <<EOF
3622 #define $ac_tr_func 1
3625 else
3626 echo "$ac_t""no" 1>&6
3628 done
3630 for ac_func in backtrace fork execvp pipe sigaction
3632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3633 echo "configure:3634: checking for $ac_func" >&5
3634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3636 else
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 /* System header to define __stub macros and hopefully few prototypes,
3641 which can conflict with char $ac_func(); below. */
3642 #include <assert.h>
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char $ac_func();
3648 int main() {
3650 /* The GNU C library defines this for functions which it implements
3651 to always fail with ENOSYS. Some functions are actually named
3652 something starting with __ and the normal name is an alias. */
3653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3654 choke me
3655 #else
3656 $ac_func();
3657 #endif
3659 ; return 0; }
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3662 rm -rf conftest*
3663 eval "ac_cv_func_$ac_func=yes"
3664 else
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 rm -rf conftest*
3668 eval "ac_cv_func_$ac_func=no"
3670 rm -f conftest*
3673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3676 cat >> confdefs.h <<EOF
3677 #define $ac_tr_func 1
3680 else
3681 echo "$ac_t""no" 1>&6
3683 done
3685 for ac_hdr in execinfo.h unistd.h dlfcn.h
3687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_hdr" >&5
3690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692 else
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <$ac_hdr>
3698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3699 { (eval echo configure:3700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3701 if test -z "$ac_err"; then
3702 rm -rf conftest*
3703 eval "ac_cv_header_$ac_safe=yes"
3704 else
3705 echo "$ac_err" >&5
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 rm -rf conftest*
3709 eval "ac_cv_header_$ac_safe=no"
3711 rm -f conftest*
3713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3716 cat >> confdefs.h <<EOF
3717 #define $ac_tr_hdr 1
3720 else
3721 echo "$ac_t""no" 1>&6
3723 done
3725 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3726 echo "configure:3727: checking for dladdr in -ldl" >&5
3727 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3730 else
3731 ac_save_LIBS="$LIBS"
3732 LIBS="-ldl $LIBS"
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 /* Override any gcc2 internal prototype to avoid an error. */
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3739 char dladdr();
3741 int main() {
3742 dladdr()
3743 ; return 0; }
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3746 rm -rf conftest*
3747 eval "ac_cv_lib_$ac_lib_var=yes"
3748 else
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 rm -rf conftest*
3752 eval "ac_cv_lib_$ac_lib_var=no"
3754 rm -f conftest*
3755 LIBS="$ac_save_LIBS"
3758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3759 echo "$ac_t""yes" 1>&6
3761 cat >> confdefs.h <<\EOF
3762 #define HAVE_DLADDR 1
3765 else
3766 echo "$ac_t""no" 1>&6
3769 for ac_file in /proc/self/exe
3772 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3773 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3774 echo "configure:3775: checking for $ac_file" >&5
3775 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3777 else
3778 if test "$cross_compiling" = yes; then
3779 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3780 else
3781 if test -r $ac_file; then
3782 eval "ac_cv_file_$ac_safe=yes"
3783 else
3784 eval "ac_cv_file_$ac_safe=no"
3788 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3790 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3791 cat >> confdefs.h <<EOF
3792 #define $ac_tr_file 1
3795 cat >> confdefs.h <<\EOF
3796 #define HAVE_PROC_SELF_EXE 1
3799 else
3800 echo "$ac_t""no" 1>&6
3803 done
3808 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3809 if test "${with_libiconv_prefix+set}" = set; then
3810 withval="$with_libiconv_prefix"
3812 for dir in `echo "$withval" | tr : ' '`; do
3813 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3814 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
3815 done
3820 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3821 echo "configure:3822: checking for iconv" >&5
3822 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3824 else
3826 am_cv_func_iconv="no, consider installing GNU libiconv"
3827 am_cv_lib_iconv=no
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <stdlib.h>
3832 #include <iconv.h>
3833 int main() {
3834 iconv_t cd = iconv_open("","");
3835 iconv(cd,NULL,NULL,NULL,NULL);
3836 iconv_close(cd);
3837 ; return 0; }
3839 if { (eval echo configure:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3840 rm -rf conftest*
3841 am_cv_func_iconv=yes
3842 else
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3846 rm -f conftest*
3847 if test "$am_cv_func_iconv" != yes; then
3848 am_save_LIBS="$LIBS"
3849 LIBS="$LIBS -liconv"
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 #include <stdlib.h>
3854 #include <iconv.h>
3855 int main() {
3856 iconv_t cd = iconv_open("","");
3857 iconv(cd,NULL,NULL,NULL,NULL);
3858 iconv_close(cd);
3859 ; return 0; }
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 rm -rf conftest*
3863 am_cv_lib_iconv=yes
3864 am_cv_func_iconv=yes
3865 else
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3869 rm -f conftest*
3870 LIBS="$am_save_LIBS"
3875 echo "$ac_t""$am_cv_func_iconv" 1>&6
3876 if test "$am_cv_func_iconv" = yes; then
3877 cat >> confdefs.h <<\EOF
3878 #define HAVE_ICONV 1
3881 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3882 echo "configure:3883: checking for iconv declaration" >&5
3883 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3885 else
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3891 #include <stdlib.h>
3892 #include <iconv.h>
3893 extern
3894 #ifdef __cplusplus
3896 #endif
3897 #if defined(__STDC__) || defined(__cplusplus)
3898 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3899 #else
3900 size_t iconv();
3901 #endif
3903 int main() {
3905 ; return 0; }
3907 if { (eval echo configure:3908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3908 rm -rf conftest*
3909 am_cv_proto_iconv_arg1=""
3910 else
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3913 rm -rf conftest*
3914 am_cv_proto_iconv_arg1="const"
3916 rm -f conftest*
3917 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);"
3920 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3921 echo "$ac_t""${ac_t:-
3922 }$am_cv_proto_iconv" 1>&6
3923 cat >> confdefs.h <<EOF
3924 #define ICONV_CONST $am_cv_proto_iconv_arg1
3928 LIBICONV=
3929 if test "$am_cv_lib_iconv" = yes; then
3930 LIBICONV="-liconv"
3935 for ac_func in gethostbyname_r
3937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3938 echo "configure:3939: checking for $ac_func" >&5
3939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3941 else
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 /* System header to define __stub macros and hopefully few prototypes,
3946 which can conflict with char $ac_func(); below. */
3947 #include <assert.h>
3948 /* Override any gcc2 internal prototype to avoid an error. */
3949 /* We use char because int might match the return type of a gcc2
3950 builtin and then its argument prototype would still apply. */
3951 char $ac_func();
3953 int main() {
3955 /* The GNU C library defines this for functions which it implements
3956 to always fail with ENOSYS. Some functions are actually named
3957 something starting with __ and the normal name is an alias. */
3958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3959 choke me
3960 #else
3961 $ac_func();
3962 #endif
3964 ; return 0; }
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3967 rm -rf conftest*
3968 eval "ac_cv_func_$ac_func=yes"
3969 else
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 rm -rf conftest*
3973 eval "ac_cv_func_$ac_func=no"
3975 rm -f conftest*
3978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3981 cat >> confdefs.h <<EOF
3982 #define $ac_tr_func 1
3985 cat >> confdefs.h <<\EOF
3986 #define HAVE_GETHOSTBYNAME_R 1
3989 # There are two different kinds of gethostbyname_r.
3990 # We look for the one that returns `int'.
3991 # Hopefully this check is robust enough.
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 #include <netdb.h>
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3999 rm -rf conftest*
4001 cat >> confdefs.h <<\EOF
4002 #define GETHOSTBYNAME_R_RETURNS_INT 1
4006 rm -f conftest*
4009 case " $GCINCS " in
4010 *" -D_REENTRANT "*) ;;
4012 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4013 echo "configure:4014: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4014 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4018 ac_ext=C
4019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4020 ac_cpp='$CXXCPP $CPPFLAGS'
4021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4023 cross_compiling=$ac_cv_prog_cxx_cross
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 #include <netdb.h>
4029 int main() {
4030 gethostbyname_r("", 0, 0);
4031 ; return 0; }
4033 if { (eval echo configure:4034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4034 rm -rf conftest*
4035 libjava_cv_gethostbyname_r_needs_reentrant=no
4036 else
4037 echo "configure: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4039 rm -rf conftest*
4040 CPPFLAGS_SAVE="$CPPFLAGS"
4041 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 #include <netdb.h>
4046 int main() {
4047 gethostbyname_r("", 0, 0);
4048 ; return 0; }
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4051 rm -rf conftest*
4052 libjava_cv_gethostbyname_r_needs_reentrant=yes
4053 else
4054 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4056 rm -rf conftest*
4057 libjava_cv_gethostbyname_r_needs_reentrant=fail
4059 rm -f conftest*
4060 CPPFLAGS="$CPPFLAGS_SAVE"
4063 rm -f conftest*
4064 ac_ext=c
4065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4069 cross_compiling=$ac_cv_prog_cc_cross
4074 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4075 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4076 cat >> confdefs.h <<\EOF
4077 #define _REENTRANT 1
4082 esac
4084 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4085 echo "configure:4086: checking for struct hostent_data" >&5
4086 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4093 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4094 # define _REENTRANT 1
4095 #endif
4096 #include <netdb.h>
4097 int main() {
4098 struct hostent_data data;
4099 ; return 0; }
4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4102 rm -rf conftest*
4103 libjava_cv_struct_hostent_data=yes
4104 else
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4107 rm -rf conftest*
4108 libjava_cv_struct_hostent_data=no
4110 rm -f conftest*
4113 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4114 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_STRUCT_HOSTENT_DATA 1
4121 else
4122 echo "$ac_t""no" 1>&6
4124 done
4127 for ac_func in gethostbyaddr_r
4129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4130 echo "configure:4131: checking for $ac_func" >&5
4131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4133 else
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4137 /* System header to define __stub macros and hopefully few prototypes,
4138 which can conflict with char $ac_func(); below. */
4139 #include <assert.h>
4140 /* Override any gcc2 internal prototype to avoid an error. */
4141 /* We use char because int might match the return type of a gcc2
4142 builtin and then its argument prototype would still apply. */
4143 char $ac_func();
4145 int main() {
4147 /* The GNU C library defines this for functions which it implements
4148 to always fail with ENOSYS. Some functions are actually named
4149 something starting with __ and the normal name is an alias. */
4150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4151 choke me
4152 #else
4153 $ac_func();
4154 #endif
4156 ; return 0; }
4158 if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 rm -rf conftest*
4160 eval "ac_cv_func_$ac_func=yes"
4161 else
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4164 rm -rf conftest*
4165 eval "ac_cv_func_$ac_func=no"
4167 rm -f conftest*
4170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4171 echo "$ac_t""yes" 1>&6
4172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4173 cat >> confdefs.h <<EOF
4174 #define $ac_tr_func 1
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_GETHOSTBYADDR_R 1
4181 # There are two different kinds of gethostbyaddr_r.
4182 # We look for the one that returns `int'.
4183 # Hopefully this check is robust enough.
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 #include <netdb.h>
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4191 rm -rf conftest*
4193 cat >> confdefs.h <<\EOF
4194 #define GETHOSTBYADDR_R_RETURNS_INT 1
4198 rm -f conftest*
4200 else
4201 echo "$ac_t""no" 1>&6
4203 done
4206 for ac_func in gethostname
4208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4209 echo "configure:4210: checking for $ac_func" >&5
4210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4212 else
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 /* System header to define __stub macros and hopefully few prototypes,
4217 which can conflict with char $ac_func(); below. */
4218 #include <assert.h>
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char $ac_func();
4224 int main() {
4226 /* The GNU C library defines this for functions which it implements
4227 to always fail with ENOSYS. Some functions are actually named
4228 something starting with __ and the normal name is an alias. */
4229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4230 choke me
4231 #else
4232 $ac_func();
4233 #endif
4235 ; return 0; }
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4238 rm -rf conftest*
4239 eval "ac_cv_func_$ac_func=yes"
4240 else
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 rm -rf conftest*
4244 eval "ac_cv_func_$ac_func=no"
4246 rm -f conftest*
4249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4252 cat >> confdefs.h <<EOF
4253 #define $ac_tr_func 1
4256 cat >> confdefs.h <<\EOF
4257 #define HAVE_GETHOSTNAME 1
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4263 #include <unistd.h>
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 egrep "gethostname" >/dev/null 2>&1; then
4267 rm -rf conftest*
4269 cat >> confdefs.h <<\EOF
4270 #define HAVE_GETHOSTNAME_DECL 1
4274 rm -f conftest*
4276 else
4277 echo "$ac_t""no" 1>&6
4279 done
4282 # Look for these functions in the thread library, but only bother
4283 # if using POSIX threads.
4284 if test "$THREADS" = posix; then
4285 save_LIBS="$LIBS"
4286 LIBS="$LIBS $THREADLIBS"
4287 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4288 # E.g., Solaris.
4289 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4292 echo "configure:4293: checking for $ac_func" >&5
4293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4295 else
4296 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure"
4298 #include "confdefs.h"
4299 /* System header to define __stub macros and hopefully few prototypes,
4300 which can conflict with char $ac_func(); below. */
4301 #include <assert.h>
4302 /* Override any gcc2 internal prototype to avoid an error. */
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4305 char $ac_func();
4307 int main() {
4309 /* The GNU C library defines this for functions which it implements
4310 to always fail with ENOSYS. Some functions are actually named
4311 something starting with __ and the normal name is an alias. */
4312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4313 choke me
4314 #else
4315 $ac_func();
4316 #endif
4318 ; return 0; }
4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4321 rm -rf conftest*
4322 eval "ac_cv_func_$ac_func=yes"
4323 else
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4326 rm -rf conftest*
4327 eval "ac_cv_func_$ac_func=no"
4329 rm -f conftest*
4332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4333 echo "$ac_t""yes" 1>&6
4334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4335 cat >> confdefs.h <<EOF
4336 #define $ac_tr_func 1
4339 else
4340 echo "$ac_t""no" 1>&6
4342 done
4345 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4346 # Solaris 7 the name librt is preferred.
4347 for ac_func in sched_yield
4349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4350 echo "configure:4351: checking for $ac_func" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4353 else
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* System header to define __stub macros and hopefully few prototypes,
4358 which can conflict with char $ac_func(); below. */
4359 #include <assert.h>
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4363 char $ac_func();
4365 int main() {
4367 /* The GNU C library defines this for functions which it implements
4368 to always fail with ENOSYS. Some functions are actually named
4369 something starting with __ and the normal name is an alias. */
4370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4371 choke me
4372 #else
4373 $ac_func();
4374 #endif
4376 ; return 0; }
4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4379 rm -rf conftest*
4380 eval "ac_cv_func_$ac_func=yes"
4381 else
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4384 rm -rf conftest*
4385 eval "ac_cv_func_$ac_func=no"
4387 rm -f conftest*
4390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_func 1
4397 else
4398 echo "$ac_t""no" 1>&6
4399 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4400 echo "configure:4401: checking for sched_yield in -lrt" >&5
4401 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4404 else
4405 ac_save_LIBS="$LIBS"
4406 LIBS="-lrt $LIBS"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4413 char sched_yield();
4415 int main() {
4416 sched_yield()
4417 ; return 0; }
4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4420 rm -rf conftest*
4421 eval "ac_cv_lib_$ac_lib_var=yes"
4422 else
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4425 rm -rf conftest*
4426 eval "ac_cv_lib_$ac_lib_var=no"
4428 rm -f conftest*
4429 LIBS="$ac_save_LIBS"
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4435 cat >> confdefs.h <<\EOF
4436 #define HAVE_SCHED_YIELD 1
4439 THREADLIBS="$THREADLIBS -lrt"
4440 THREADSPEC="$THREADSPEC -lrt"
4441 else
4442 echo "$ac_t""no" 1>&6
4444 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4445 echo "configure:4446: checking for sched_yield in -lposix4" >&5
4446 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 ac_save_LIBS="$LIBS"
4451 LIBS="-lposix4 $LIBS"
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4458 char sched_yield();
4460 int main() {
4461 sched_yield()
4462 ; return 0; }
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4465 rm -rf conftest*
4466 eval "ac_cv_lib_$ac_lib_var=yes"
4467 else
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4470 rm -rf conftest*
4471 eval "ac_cv_lib_$ac_lib_var=no"
4473 rm -f conftest*
4474 LIBS="$ac_save_LIBS"
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4480 cat >> confdefs.h <<\EOF
4481 #define HAVE_SCHED_YIELD 1
4484 THREADLIBS="$THREADLIBS -lposix4"
4485 THREADSPEC="$THREADSPEC -lposix4"
4486 else
4487 echo "$ac_t""no" 1>&6
4493 done
4495 LIBS="$save_LIBS"
4497 # We can save a little space at runtime if the mutex has m_count
4498 # or __m_count. This is a nice hack for Linux.
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 #include <pthread.h>
4503 int main() {
4505 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4507 ; return 0; }
4509 if { (eval echo configure:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 rm -rf conftest*
4511 cat >> confdefs.h <<\EOF
4512 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4515 else
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4518 rm -rf conftest*
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 #include <pthread.h>
4524 int main() {
4526 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4528 ; return 0; }
4530 if { (eval echo configure:4531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4531 rm -rf conftest*
4532 cat >> confdefs.h <<\EOF
4533 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4536 else
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4540 rm -f conftest*
4542 rm -f conftest*
4545 # We require a way to get the time.
4546 time_found=no
4547 for ac_func in gettimeofday time ftime
4549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_func" >&5
4551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4553 else
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* System header to define __stub macros and hopefully few prototypes,
4558 which can conflict with char $ac_func(); below. */
4559 #include <assert.h>
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4563 char $ac_func();
4565 int main() {
4567 /* The GNU C library defines this for functions which it implements
4568 to always fail with ENOSYS. Some functions are actually named
4569 something starting with __ and the normal name is an alias. */
4570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4571 choke me
4572 #else
4573 $ac_func();
4574 #endif
4576 ; return 0; }
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4579 rm -rf conftest*
4580 eval "ac_cv_func_$ac_func=yes"
4581 else
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4584 rm -rf conftest*
4585 eval "ac_cv_func_$ac_func=no"
4587 rm -f conftest*
4590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4593 cat >> confdefs.h <<EOF
4594 #define $ac_tr_func 1
4596 time_found=yes
4597 else
4598 echo "$ac_t""no" 1>&6
4600 done
4602 if test "$time_found" = no; then
4603 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4606 for ac_func in memmove
4608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_func" >&5
4610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4612 else
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 /* System header to define __stub macros and hopefully few prototypes,
4617 which can conflict with char $ac_func(); below. */
4618 #include <assert.h>
4619 /* Override any gcc2 internal prototype to avoid an error. */
4620 /* We use char because int might match the return type of a gcc2
4621 builtin and then its argument prototype would still apply. */
4622 char $ac_func();
4624 int main() {
4626 /* The GNU C library defines this for functions which it implements
4627 to always fail with ENOSYS. Some functions are actually named
4628 something starting with __ and the normal name is an alias. */
4629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4630 choke me
4631 #else
4632 $ac_func();
4633 #endif
4635 ; return 0; }
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4638 rm -rf conftest*
4639 eval "ac_cv_func_$ac_func=yes"
4640 else
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 rm -rf conftest*
4644 eval "ac_cv_func_$ac_func=no"
4646 rm -f conftest*
4649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_func 1
4656 else
4657 echo "$ac_t""no" 1>&6
4659 done
4662 # We require memcpy.
4663 memcpy_found=no
4664 for ac_func in memcpy
4666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4667 echo "configure:4668: checking for $ac_func" >&5
4668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4670 else
4671 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 /* System header to define __stub macros and hopefully few prototypes,
4675 which can conflict with char $ac_func(); below. */
4676 #include <assert.h>
4677 /* Override any gcc2 internal prototype to avoid an error. */
4678 /* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4680 char $ac_func();
4682 int main() {
4684 /* The GNU C library defines this for functions which it implements
4685 to always fail with ENOSYS. Some functions are actually named
4686 something starting with __ and the normal name is an alias. */
4687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4688 choke me
4689 #else
4690 $ac_func();
4691 #endif
4693 ; return 0; }
4695 if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4696 rm -rf conftest*
4697 eval "ac_cv_func_$ac_func=yes"
4698 else
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 rm -rf conftest*
4702 eval "ac_cv_func_$ac_func=no"
4704 rm -f conftest*
4707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4708 echo "$ac_t""yes" 1>&6
4709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4710 cat >> confdefs.h <<EOF
4711 #define $ac_tr_func 1
4713 memcpy_found=yes
4714 else
4715 echo "$ac_t""no" 1>&6
4717 done
4719 if test "$memcpy_found" = no; then
4720 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4723 # Some library-finding code we stole from Tcl.
4724 #--------------------------------------------------------------------
4725 # Check for the existence of the -lsocket and -lnsl libraries.
4726 # The order here is important, so that they end up in the right
4727 # order in the command line generated by make. Here are some
4728 # special considerations:
4729 # 1. Use "connect" and "accept" to check for -lsocket, and
4730 # "gethostbyname" to check for -lnsl.
4731 # 2. Use each function name only once: can't redo a check because
4732 # autoconf caches the results of the last check and won't redo it.
4733 # 3. Use -lnsl and -lsocket only if they supply procedures that
4734 # aren't already present in the normal libraries. This is because
4735 # IRIX 5.2 has libraries, but they aren't needed and they're
4736 # bogus: they goof up name resolution if used.
4737 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4738 # To get around this problem, check for both libraries together
4739 # if -lsocket doesn't work by itself.
4740 #--------------------------------------------------------------------
4742 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4743 echo "configure:4744: checking for socket libraries" >&5
4744 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4746 else
4747 gcj_cv_lib_sockets=
4748 gcj_checkBoth=0
4749 unset ac_cv_func_connect
4750 echo $ac_n "checking for connect""... $ac_c" 1>&6
4751 echo "configure:4752: checking for connect" >&5
4752 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4754 else
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char connect(); below. */
4760 #include <assert.h>
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4764 char connect();
4766 int main() {
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_connect) || defined (__stub___connect)
4772 choke me
4773 #else
4774 connect();
4775 #endif
4777 ; return 0; }
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 rm -rf conftest*
4781 eval "ac_cv_func_connect=yes"
4782 else
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4785 rm -rf conftest*
4786 eval "ac_cv_func_connect=no"
4788 rm -f conftest*
4791 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 gcj_checkSocket=0
4794 else
4795 echo "$ac_t""no" 1>&6
4796 gcj_checkSocket=1
4799 if test "$gcj_checkSocket" = 1; then
4800 unset ac_cv_func_connect
4801 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4802 echo "configure:4803: checking for main in -lsocket" >&5
4803 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4806 else
4807 ac_save_LIBS="$LIBS"
4808 LIBS="-lsocket $LIBS"
4809 cat > conftest.$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4813 int main() {
4814 main()
4815 ; return 0; }
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4818 rm -rf conftest*
4819 eval "ac_cv_lib_$ac_lib_var=yes"
4820 else
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4823 rm -rf conftest*
4824 eval "ac_cv_lib_$ac_lib_var=no"
4826 rm -f conftest*
4827 LIBS="$ac_save_LIBS"
4830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4831 echo "$ac_t""yes" 1>&6
4832 gcj_cv_lib_sockets="-lsocket"
4833 else
4834 echo "$ac_t""no" 1>&6
4835 gcj_checkBoth=1
4839 if test "$gcj_checkBoth" = 1; then
4840 gcj_oldLibs=$LIBS
4841 LIBS="$LIBS -lsocket -lnsl"
4842 unset ac_cv_func_accept
4843 echo $ac_n "checking for accept""... $ac_c" 1>&6
4844 echo "configure:4845: checking for accept" >&5
4845 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4847 else
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4851 /* System header to define __stub macros and hopefully few prototypes,
4852 which can conflict with char accept(); below. */
4853 #include <assert.h>
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 /* We use char because int might match the return type of a gcc2
4856 builtin and then its argument prototype would still apply. */
4857 char accept();
4859 int main() {
4861 /* The GNU C library defines this for functions which it implements
4862 to always fail with ENOSYS. Some functions are actually named
4863 something starting with __ and the normal name is an alias. */
4864 #if defined (__stub_accept) || defined (__stub___accept)
4865 choke me
4866 #else
4867 accept();
4868 #endif
4870 ; return 0; }
4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873 rm -rf conftest*
4874 eval "ac_cv_func_accept=yes"
4875 else
4876 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4878 rm -rf conftest*
4879 eval "ac_cv_func_accept=no"
4881 rm -f conftest*
4884 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 gcj_checkNsl=0
4887 gcj_cv_lib_sockets="-lsocket -lnsl"
4888 else
4889 echo "$ac_t""no" 1>&6
4892 unset ac_cv_func_accept
4893 LIBS=$gcj_oldLibs
4895 unset ac_cv_func_gethostbyname
4896 gcj_oldLibs=$LIBS
4897 LIBS="$LIBS $gcj_cv_lib_sockets"
4898 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4899 echo "configure:4900: checking for gethostbyname" >&5
4900 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4902 else
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* System header to define __stub macros and hopefully few prototypes,
4907 which can conflict with char gethostbyname(); below. */
4908 #include <assert.h>
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4912 char gethostbyname();
4914 int main() {
4916 /* The GNU C library defines this for functions which it implements
4917 to always fail with ENOSYS. Some functions are actually named
4918 something starting with __ and the normal name is an alias. */
4919 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4920 choke me
4921 #else
4922 gethostbyname();
4923 #endif
4925 ; return 0; }
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4928 rm -rf conftest*
4929 eval "ac_cv_func_gethostbyname=yes"
4930 else
4931 echo "configure: failed program was:" >&5
4932 cat conftest.$ac_ext >&5
4933 rm -rf conftest*
4934 eval "ac_cv_func_gethostbyname=no"
4936 rm -f conftest*
4939 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4942 else
4943 echo "$ac_t""no" 1>&6
4944 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4945 echo "configure:4946: checking for main in -lnsl" >&5
4946 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4949 else
4950 ac_save_LIBS="$LIBS"
4951 LIBS="-lnsl $LIBS"
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4956 int main() {
4957 main()
4958 ; return 0; }
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 rm -rf conftest*
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4963 else
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4966 rm -rf conftest*
4967 eval "ac_cv_lib_$ac_lib_var=no"
4969 rm -f conftest*
4970 LIBS="$ac_save_LIBS"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4976 else
4977 echo "$ac_t""no" 1>&6
4982 unset ac_cv_func_gethostbyname
4983 LIBS=$gcj_oldLIBS
4987 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4988 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4990 if test "$with_system_zlib" = yes; then
4991 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4992 echo "configure:4993: checking for deflate in -lz" >&5
4993 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4996 else
4997 ac_save_LIBS="$LIBS"
4998 LIBS="-lz $LIBS"
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 /* Override any gcc2 internal prototype to avoid an error. */
5003 /* We use char because int might match the return type of a gcc2
5004 builtin and then its argument prototype would still apply. */
5005 char deflate();
5007 int main() {
5008 deflate()
5009 ; return 0; }
5011 if { (eval echo configure:5012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5012 rm -rf conftest*
5013 eval "ac_cv_lib_$ac_lib_var=yes"
5014 else
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5017 rm -rf conftest*
5018 eval "ac_cv_lib_$ac_lib_var=no"
5020 rm -f conftest*
5021 LIBS="$ac_save_LIBS"
5024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5026 ZLIBSPEC=-lz
5027 else
5028 echo "$ac_t""no" 1>&6
5029 ZLIBSPEC=-lzgcj
5032 else
5033 ZLIBSPEC=-lzgcj
5034 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
5037 # On Solaris, and maybe other architectures, the Boehm collector
5038 # requires -ldl.
5039 if test "$GC" = boehm; then
5040 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5041 echo "configure:5042: checking for main in -ldl" >&5
5042 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5045 else
5046 ac_save_LIBS="$LIBS"
5047 LIBS="-ldl $LIBS"
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5052 int main() {
5053 main()
5054 ; return 0; }
5056 if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 rm -rf conftest*
5058 eval "ac_cv_lib_$ac_lib_var=yes"
5059 else
5060 echo "configure: failed program was:" >&5
5061 cat conftest.$ac_ext >&5
5062 rm -rf conftest*
5063 eval "ac_cv_lib_$ac_lib_var=no"
5065 rm -f conftest*
5066 LIBS="$ac_save_LIBS"
5069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5070 echo "$ac_t""yes" 1>&6
5071 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5072 else
5073 echo "$ac_t""no" 1>&6
5078 if test -z "${with_multisubdir}"; then
5079 builddotdot=.
5080 else
5082 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5085 if test -x "${builddotdot}/../../gcc/gcj"; then
5086 dir="`cd ${builddotdot}/../../gcc && pwd`"
5087 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
5088 else
5089 CANADIAN=yes
5090 NULL_TARGET=yes
5091 GCJ="gcj -B`pwd`/"
5095 # Create it, so that compile/link tests don't fail
5096 test -f libgcj.spec || touch libgcj.spec
5098 # We must search the source tree for java.lang, since we still don't
5099 # have libgcj.jar nor java/lang/*.class
5100 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5101 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5103 # Since some classes depend on this one, we need its source available
5104 # before we can do any GCJ compilation test :-(
5105 if test ! -f gnu/classpath/Configuration.java; then
5106 test -d gnu || mkdir gnu
5107 test -d gnu/classpath || mkdir gnu/classpath
5108 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5109 < $srcdir/gnu/classpath/Configuration.java.in \
5110 > gnu/classpath/Configuration.java
5111 # We do not want to redirect the output of the grep below to /dev/null,
5112 # but we add /dev/null to the input list so that grep will print the
5113 # filename of Configuration.java in case it finds any matches.
5114 if grep @ gnu/classpath/Configuration.java /dev/null; then
5115 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5119 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5122 echo "configure:5123: checking for $ac_word" >&5
5123 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5125 else
5126 if test -n "$GCJ"; then
5127 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5128 else
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5130 ac_dummy="$PATH"
5131 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5135 break
5137 done
5138 IFS="$ac_save_ifs"
5141 GCJ="$ac_cv_prog_GCJ"
5142 if test -n "$GCJ"; then
5143 echo "$ac_t""$GCJ" 1>&6
5144 else
5145 echo "$ac_t""no" 1>&6
5149 if test -z "$ac_cv_prog_GCJ"; then
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "gcj", so it can be a program name with args.
5152 set dummy gcj; ac_word=$2
5153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_word" >&5
5155 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5157 else
5158 if test -n "$GCJ"; then
5159 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5160 else
5161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5162 ac_dummy="$PATH"
5163 for ac_dir in $ac_dummy; do
5164 test -z "$ac_dir" && ac_dir=.
5165 if test -f $ac_dir/$ac_word; then
5166 ac_cv_prog_GCJ="gcj"
5167 break
5169 done
5170 IFS="$ac_save_ifs"
5171 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5174 GCJ="$ac_cv_prog_GCJ"
5175 if test -n "$GCJ"; then
5176 echo "$ac_t""$GCJ" 1>&6
5177 else
5178 echo "$ac_t""no" 1>&6
5181 else
5182 GCJ="no"
5186 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5190 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5191 lt_save_CC="$CC"
5192 lt_save_CFLAGS="$CFLAGS"
5193 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5194 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5195 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5196 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5197 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5198 deplibs_check_method="$deplibs_check_method" \
5199 file_magic_cmd="$file_magic_cmd" \
5200 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5201 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5202 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5203 CC="$lt_save_CC"
5204 CFLAGS="$lt_save_CFLAGS"
5206 # Redirect the config.log output again, so that the ltconfig log is not
5207 # clobbered by the next message.
5208 exec 5>>./config.log
5213 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5215 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5216 echo "configure:5217: checking size of void *" >&5
5217 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5219 else
5220 if test "$cross_compiling" = yes; then
5221 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5222 else
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5226 #include <stdio.h>
5227 main()
5229 FILE *f=fopen("conftestval", "w");
5230 if (!f) exit(1);
5231 fprintf(f, "%d\n", sizeof(void *));
5232 exit(0);
5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5236 then
5237 ac_cv_sizeof_void_p=`cat conftestval`
5238 else
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5241 rm -fr conftest*
5242 ac_cv_sizeof_void_p=0
5244 rm -fr conftest*
5248 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5249 cat >> confdefs.h <<EOF
5250 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5255 ZLIBS=
5256 ZDEPS=
5257 ZINCS=
5258 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5259 # We include the path to the zlib build directory.
5260 # See Makefile.am to understand why.
5261 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5262 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5263 ZINCS='-I$(top_srcdir)/../zlib'
5264 else
5265 ZLIBS="$ZLIBSPEC"
5275 if test "$CANADIAN" = yes; then
5276 CANADIAN_TRUE=
5277 CANADIAN_FALSE='#'
5278 else
5279 CANADIAN_TRUE='#'
5280 CANADIAN_FALSE=
5284 if test "$NULL_TARGET" = yes; then
5285 NULL_TARGET_TRUE=
5286 NULL_TARGET_FALSE='#'
5287 else
5288 NULL_TARGET_TRUE='#'
5289 NULL_TARGET_FALSE=
5293 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5294 NATIVE_TRUE=
5295 NATIVE_FALSE='#'
5296 else
5297 NATIVE_TRUE='#'
5298 NATIVE_FALSE=
5302 if test -z "$with_cross_host"; then
5303 USE_LIBDIR_TRUE=
5304 USE_LIBDIR_FALSE='#'
5305 else
5306 USE_LIBDIR_TRUE='#'
5307 USE_LIBDIR_FALSE=
5311 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5312 NEEDS_DATA_START_TRUE=
5313 NEEDS_DATA_START_FALSE='#'
5314 else
5315 NEEDS_DATA_START_TRUE='#'
5316 NEEDS_DATA_START_FALSE=
5320 # Determine gcj version number.
5322 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5324 cat >> confdefs.h <<EOF
5325 #define GCJVERSION "$gcjvers"
5332 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5333 echo "configure:5334: checking for g++ -ffloat-store bug" >&5
5334 save_CFLAGS="$CFLAGS"
5335 CFLAGS="-x c++ -O2 -ffloat-store"
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <math.h>
5340 int main() {
5342 ; return 0; }
5344 if { (eval echo configure:5345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5345 rm -rf conftest*
5346 echo "$ac_t""no" 1>&6
5347 else
5348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5350 rm -rf conftest*
5351 cat >> confdefs.h <<\EOF
5352 #define __NO_MATH_INLINES 1
5355 echo "$ac_t""yes" 1>&6
5357 rm -f conftest*
5358 CFLAGS="$save_CFLAGS"
5360 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h langinfo.h locale.h
5362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5364 echo "configure:5365: checking for $ac_hdr" >&5
5365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5367 else
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 #include <$ac_hdr>
5373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5374 { (eval echo configure:5375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5376 if test -z "$ac_err"; then
5377 rm -rf conftest*
5378 eval "ac_cv_header_$ac_safe=yes"
5379 else
5380 echo "$ac_err" >&5
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 rm -rf conftest*
5384 eval "ac_cv_header_$ac_safe=no"
5386 rm -f conftest*
5388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5389 echo "$ac_t""yes" 1>&6
5390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5391 cat >> confdefs.h <<EOF
5392 #define $ac_tr_hdr 1
5395 else
5396 echo "$ac_t""no" 1>&6
5398 done
5400 for ac_hdr in dirent.h
5402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5404 echo "configure:5405: checking for $ac_hdr" >&5
5405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5407 else
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 #include <$ac_hdr>
5413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5414 { (eval echo configure:5415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5416 if test -z "$ac_err"; then
5417 rm -rf conftest*
5418 eval "ac_cv_header_$ac_safe=yes"
5419 else
5420 echo "$ac_err" >&5
5421 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5
5423 rm -rf conftest*
5424 eval "ac_cv_header_$ac_safe=no"
5426 rm -f conftest*
5428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5429 echo "$ac_t""yes" 1>&6
5430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5431 cat >> confdefs.h <<EOF
5432 #define $ac_tr_hdr 1
5435 else
5436 echo "$ac_t""no" 1>&6
5438 done
5441 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5442 echo "configure:5443: checking for ANSI C header files" >&5
5443 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5445 else
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5449 #include <stdlib.h>
5450 #include <stdarg.h>
5451 #include <string.h>
5452 #include <float.h>
5454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5455 { (eval echo configure:5456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5457 if test -z "$ac_err"; then
5458 rm -rf conftest*
5459 ac_cv_header_stdc=yes
5460 else
5461 echo "$ac_err" >&5
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 rm -rf conftest*
5465 ac_cv_header_stdc=no
5467 rm -f conftest*
5469 if test $ac_cv_header_stdc = yes; then
5470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5474 #include <string.h>
5476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5477 egrep "memchr" >/dev/null 2>&1; then
5479 else
5480 rm -rf conftest*
5481 ac_cv_header_stdc=no
5483 rm -f conftest*
5487 if test $ac_cv_header_stdc = yes; then
5488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 #include <stdlib.h>
5494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5495 egrep "free" >/dev/null 2>&1; then
5497 else
5498 rm -rf conftest*
5499 ac_cv_header_stdc=no
5501 rm -f conftest*
5505 if test $ac_cv_header_stdc = yes; then
5506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5507 if test "$cross_compiling" = yes; then
5509 else
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 #include <ctype.h>
5514 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5515 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5517 int main () { int i; for (i = 0; i < 256; i++)
5518 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5519 exit (0); }
5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5523 then
5525 else
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5528 rm -fr conftest*
5529 ac_cv_header_stdc=no
5531 rm -fr conftest*
5537 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5538 if test $ac_cv_header_stdc = yes; then
5539 cat >> confdefs.h <<\EOF
5540 #define STDC_HEADERS 1
5545 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5546 echo "configure:5547: checking for ssize_t" >&5
5547 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5549 else
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 #include <sys/types.h>
5554 #if STDC_HEADERS
5555 #include <stdlib.h>
5556 #include <stddef.h>
5557 #endif
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5561 rm -rf conftest*
5562 ac_cv_type_ssize_t=yes
5563 else
5564 rm -rf conftest*
5565 ac_cv_type_ssize_t=no
5567 rm -f conftest*
5570 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5571 if test $ac_cv_type_ssize_t = no; then
5572 cat >> confdefs.h <<\EOF
5573 #define ssize_t int
5579 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5580 echo "configure:5581: checking for in_addr_t" >&5
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 #include <sys/types.h>
5585 #if STDC_HEADERS
5586 #include <stdlib.h>
5587 #include <stddef.h>
5588 #endif
5589 #if HAVE_NETINET_IN_H
5590 #include <netinet/in.h>
5591 #endif
5592 int main() {
5593 in_addr_t foo;
5594 ; return 0; }
5596 if { (eval echo configure:5597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5597 rm -rf conftest*
5598 cat >> confdefs.h <<\EOF
5599 #define HAVE_IN_ADDR_T 1
5602 echo "$ac_t""yes" 1>&6
5603 else
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5606 rm -rf conftest*
5607 echo "$ac_t""no" 1>&6
5609 rm -f conftest*
5611 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5612 echo "configure:5613: checking whether struct ip_mreq is in netinet/in.h" >&5
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5616 #include <netinet/in.h>
5617 int main() {
5618 struct ip_mreq mreq;
5619 ; return 0; }
5621 if { (eval echo configure:5622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5622 rm -rf conftest*
5623 cat >> confdefs.h <<\EOF
5624 #define HAVE_STRUCT_IP_MREQ 1
5627 echo "$ac_t""yes" 1>&6
5628 else
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5631 rm -rf conftest*
5632 echo "$ac_t""no" 1>&6
5634 rm -f conftest*
5636 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
5637 echo "configure:5638: checking whether struct ipv6_mreq is in netinet/in.h" >&5
5638 cat > conftest.$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5641 #include <netinet/in.h>
5642 int main() {
5643 struct ipv6_mreq mreq6;
5644 ; return 0; }
5646 if { (eval echo configure:5647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5647 rm -rf conftest*
5648 cat >> confdefs.h <<\EOF
5649 #define HAVE_STRUCT_IPV6_MREQ 1
5652 echo "$ac_t""yes" 1>&6
5653 else
5654 echo "configure: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 rm -rf conftest*
5657 echo "$ac_t""no" 1>&6
5659 rm -f conftest*
5661 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5662 echo "configure:5663: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5666 #include <netinet/in.h>
5667 int main() {
5668 struct sockaddr_in6 addr6;
5669 ; return 0; }
5671 if { (eval echo configure:5672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5672 rm -rf conftest*
5673 cat >> confdefs.h <<\EOF
5674 #define HAVE_INET6 1
5677 echo "$ac_t""yes" 1>&6
5678 else
5679 echo "configure: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 rm -rf conftest*
5682 echo "$ac_t""no" 1>&6
5684 rm -f conftest*
5686 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5687 echo "configure:5688: checking for socklen_t in sys/socket.h" >&5
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5691 #define _POSIX_PII_SOCKET
5692 #include <sys/types.h>
5693 #include <sys/socket.h>
5694 int main() {
5695 socklen_t x = 5;
5696 ; return 0; }
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5699 rm -rf conftest*
5700 cat >> confdefs.h <<\EOF
5701 #define HAVE_SOCKLEN_T 1
5704 echo "$ac_t""yes" 1>&6
5705 else
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5708 rm -rf conftest*
5709 echo "$ac_t""no" 1>&6
5711 rm -f conftest*
5713 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5714 echo "configure:5715: checking for tm_gmtoff in struct tm" >&5
5715 cat > conftest.$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5718 #include <time.h>
5719 int main() {
5720 struct tm tim; tim.tm_gmtoff = 0;
5721 ; return 0; }
5723 if { (eval echo configure:5724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5724 rm -rf conftest*
5725 cat >> confdefs.h <<\EOF
5726 #define STRUCT_TM_HAS_GMTOFF 1
5729 echo "$ac_t""yes" 1>&6
5730 else
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 rm -rf conftest*
5734 echo "$ac_t""no" 1>&6
5735 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5736 echo "configure:5737: checking for global timezone variable" >&5
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 #include <time.h>
5741 int main() {
5742 long z2 = timezone;
5743 ; return 0; }
5745 if { (eval echo configure:5746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5746 rm -rf conftest*
5747 cat >> confdefs.h <<\EOF
5748 #define HAVE_TIMEZONE 1
5751 echo "$ac_t""yes" 1>&6
5752 else
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 rm -rf conftest*
5756 echo "$ac_t""no" 1>&6
5758 rm -f conftest*
5760 rm -f conftest*
5762 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5763 # for constant arguments. Useless!
5764 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5765 echo "configure:5766: checking for working alloca.h" >&5
5766 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5768 else
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5772 #include <alloca.h>
5773 int main() {
5774 char *p = alloca(2 * sizeof(int));
5775 ; return 0; }
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5778 rm -rf conftest*
5779 ac_cv_header_alloca_h=yes
5780 else
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5783 rm -rf conftest*
5784 ac_cv_header_alloca_h=no
5786 rm -f conftest*
5789 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5790 if test $ac_cv_header_alloca_h = yes; then
5791 cat >> confdefs.h <<\EOF
5792 #define HAVE_ALLOCA_H 1
5797 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5798 echo "configure:5799: checking for alloca" >&5
5799 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5800 echo $ac_n "(cached) $ac_c" 1>&6
5801 else
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5806 #ifdef __GNUC__
5807 # define alloca __builtin_alloca
5808 #else
5809 # ifdef _MSC_VER
5810 # include <malloc.h>
5811 # define alloca _alloca
5812 # else
5813 # if HAVE_ALLOCA_H
5814 # include <alloca.h>
5815 # else
5816 # ifdef _AIX
5817 #pragma alloca
5818 # else
5819 # ifndef alloca /* predefined by HP cc +Olibcalls */
5820 char *alloca ();
5821 # endif
5822 # endif
5823 # endif
5824 # endif
5825 #endif
5827 int main() {
5828 char *p = (char *) alloca(1);
5829 ; return 0; }
5831 if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5832 rm -rf conftest*
5833 ac_cv_func_alloca_works=yes
5834 else
5835 echo "configure: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 rm -rf conftest*
5838 ac_cv_func_alloca_works=no
5840 rm -f conftest*
5843 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5844 if test $ac_cv_func_alloca_works = yes; then
5845 cat >> confdefs.h <<\EOF
5846 #define HAVE_ALLOCA 1
5851 if test $ac_cv_func_alloca_works = no; then
5852 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5853 # that cause trouble. Some versions do not even contain alloca or
5854 # contain a buggy version. If you still want to use their alloca,
5855 # use ar to extract alloca.o from them instead of compiling alloca.c.
5856 ALLOCA=alloca.${ac_objext}
5857 cat >> confdefs.h <<\EOF
5858 #define C_ALLOCA 1
5862 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5863 echo "configure:5864: checking whether alloca needs Cray hooks" >&5
5864 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5866 else
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 #if defined(CRAY) && ! defined(CRAY2)
5871 webecray
5872 #else
5873 wenotbecray
5874 #endif
5877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5878 egrep "webecray" >/dev/null 2>&1; then
5879 rm -rf conftest*
5880 ac_cv_os_cray=yes
5881 else
5882 rm -rf conftest*
5883 ac_cv_os_cray=no
5885 rm -f conftest*
5889 echo "$ac_t""$ac_cv_os_cray" 1>&6
5890 if test $ac_cv_os_cray = yes; then
5891 for ac_func in _getb67 GETB67 getb67; do
5892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5893 echo "configure:5894: checking for $ac_func" >&5
5894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5896 else
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5900 /* System header to define __stub macros and hopefully few prototypes,
5901 which can conflict with char $ac_func(); below. */
5902 #include <assert.h>
5903 /* Override any gcc2 internal prototype to avoid an error. */
5904 /* We use char because int might match the return type of a gcc2
5905 builtin and then its argument prototype would still apply. */
5906 char $ac_func();
5908 int main() {
5910 /* The GNU C library defines this for functions which it implements
5911 to always fail with ENOSYS. Some functions are actually named
5912 something starting with __ and the normal name is an alias. */
5913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5914 choke me
5915 #else
5916 $ac_func();
5917 #endif
5919 ; return 0; }
5921 if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5922 rm -rf conftest*
5923 eval "ac_cv_func_$ac_func=yes"
5924 else
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5927 rm -rf conftest*
5928 eval "ac_cv_func_$ac_func=no"
5930 rm -f conftest*
5933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5934 echo "$ac_t""yes" 1>&6
5935 cat >> confdefs.h <<EOF
5936 #define CRAY_STACKSEG_END $ac_func
5939 break
5940 else
5941 echo "$ac_t""no" 1>&6
5944 done
5947 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5948 echo "configure:5949: checking stack direction for C alloca" >&5
5949 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5951 else
5952 if test "$cross_compiling" = yes; then
5953 ac_cv_c_stack_direction=0
5954 else
5955 cat > conftest.$ac_ext <<EOF
5956 #line 5957 "configure"
5957 #include "confdefs.h"
5958 find_stack_direction ()
5960 static char *addr = 0;
5961 auto char dummy;
5962 if (addr == 0)
5964 addr = &dummy;
5965 return find_stack_direction ();
5967 else
5968 return (&dummy > addr) ? 1 : -1;
5970 main ()
5972 exit (find_stack_direction() < 0);
5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5976 then
5977 ac_cv_c_stack_direction=1
5978 else
5979 echo "configure: failed program was:" >&5
5980 cat conftest.$ac_ext >&5
5981 rm -fr conftest*
5982 ac_cv_c_stack_direction=-1
5984 rm -fr conftest*
5989 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5990 cat >> confdefs.h <<EOF
5991 #define STACK_DIRECTION $ac_cv_c_stack_direction
5997 for ac_prog in perl
5999 # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6002 echo "configure:6003: checking for $ac_word" >&5
6003 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6004 echo $ac_n "(cached) $ac_c" 1>&6
6005 else
6006 if test -n "$PERL"; then
6007 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6008 else
6009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6010 ac_dummy="$PATH"
6011 for ac_dir in $ac_dummy; do
6012 test -z "$ac_dir" && ac_dir=.
6013 if test -f $ac_dir/$ac_word; then
6014 ac_cv_prog_PERL="$ac_prog"
6015 break
6017 done
6018 IFS="$ac_save_ifs"
6021 PERL="$ac_cv_prog_PERL"
6022 if test -n "$PERL"; then
6023 echo "$ac_t""$PERL" 1>&6
6024 else
6025 echo "$ac_t""no" 1>&6
6028 test -n "$PERL" && break
6029 done
6030 test -n "$PERL" || PERL="false"
6033 SYSDEP_SOURCES=
6035 case "${host}" in
6036 i?86-*-linux*)
6037 SIGNAL_HANDLER=include/i386-signal.h
6039 sparc-sun-solaris*)
6040 SIGNAL_HANDLER=include/sparc-signal.h
6042 # ia64-*)
6043 # SYSDEP_SOURCES=sysdep/ia64.c
6044 # test -d sysdep || mkdir sysdep
6045 # ;;
6046 powerpc-*-linux*)
6047 SIGNAL_HANDLER=include/dwarf2-signal.h
6049 alpha*-*-linux*)
6050 SIGNAL_HANDLER=include/dwarf2-signal.h
6053 SIGNAL_HANDLER=include/default-signal.h
6055 esac
6057 # If we're using sjlj exceptions, forget what we just learned.
6058 if test "$enable_sjlj_exceptions" = yes; then
6059 SIGNAL_HANDLER=include/default-signal.h
6066 if test "${multilib}" = "yes"; then
6067 multilib_arg="--enable-multilib"
6068 else
6069 multilib_arg=
6072 # If we find X, set shell vars x_includes and x_libraries to the
6073 # paths, otherwise set no_x=yes.
6074 # Uses ac_ vars as temps to allow command line to override cache and checks.
6075 # --without-x overrides everything else, but does not touch the cache.
6076 echo $ac_n "checking for X""... $ac_c" 1>&6
6077 echo "configure:6078: checking for X" >&5
6079 # Check whether --with-x or --without-x was given.
6080 if test "${with_x+set}" = set; then
6081 withval="$with_x"
6085 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6086 if test "x$with_x" = xno; then
6087 # The user explicitly disabled X.
6088 have_x=disabled
6089 else
6090 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6091 # Both variables are already set.
6092 have_x=yes
6093 else
6094 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6096 else
6097 # One or both of the vars are not set, and there is no cached value.
6098 ac_x_includes=NO ac_x_libraries=NO
6099 rm -fr conftestdir
6100 if mkdir conftestdir; then
6101 cd conftestdir
6102 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6103 cat > Imakefile <<'EOF'
6104 acfindx:
6105 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6107 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6108 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6109 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6110 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6111 for ac_extension in a so sl; do
6112 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6113 test -f $ac_im_libdir/libX11.$ac_extension; then
6114 ac_im_usrlibdir=$ac_im_libdir; break
6116 done
6117 # Screen out bogus values from the imake configuration. They are
6118 # bogus both because they are the default anyway, and because
6119 # using them would break gcc on systems where it needs fixed includes.
6120 case "$ac_im_incroot" in
6121 /usr/include) ;;
6122 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6123 esac
6124 case "$ac_im_usrlibdir" in
6125 /usr/lib | /lib) ;;
6126 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6127 esac
6129 cd ..
6130 rm -fr conftestdir
6133 if test "$ac_x_includes" = NO; then
6134 # Guess where to find include files, by looking for this one X11 .h file.
6135 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6137 # First, try using that file with no special directory specified.
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6141 #include <$x_direct_test_include>
6143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6144 { (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6146 if test -z "$ac_err"; then
6147 rm -rf conftest*
6148 # We can compile using X headers with no special include directory.
6149 ac_x_includes=
6150 else
6151 echo "$ac_err" >&5
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6154 rm -rf conftest*
6155 # Look for the header file in a standard set of common directories.
6156 # Check X11 before X11Rn because it is often a symlink to the current release.
6157 for ac_dir in \
6158 /usr/X11/include \
6159 /usr/X11R6/include \
6160 /usr/X11R5/include \
6161 /usr/X11R4/include \
6163 /usr/include/X11 \
6164 /usr/include/X11R6 \
6165 /usr/include/X11R5 \
6166 /usr/include/X11R4 \
6168 /usr/local/X11/include \
6169 /usr/local/X11R6/include \
6170 /usr/local/X11R5/include \
6171 /usr/local/X11R4/include \
6173 /usr/local/include/X11 \
6174 /usr/local/include/X11R6 \
6175 /usr/local/include/X11R5 \
6176 /usr/local/include/X11R4 \
6178 /usr/X386/include \
6179 /usr/x386/include \
6180 /usr/XFree86/include/X11 \
6182 /usr/include \
6183 /usr/local/include \
6184 /usr/unsupported/include \
6185 /usr/athena/include \
6186 /usr/local/x11r5/include \
6187 /usr/lpp/Xamples/include \
6189 /usr/openwin/include \
6190 /usr/openwin/share/include \
6193 if test -r "$ac_dir/$x_direct_test_include"; then
6194 ac_x_includes=$ac_dir
6195 break
6197 done
6199 rm -f conftest*
6200 fi # $ac_x_includes = NO
6202 if test "$ac_x_libraries" = NO; then
6203 # Check for the libraries.
6205 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6206 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6208 # See if we find them without any special options.
6209 # Don't add to $LIBS permanently.
6210 ac_save_LIBS="$LIBS"
6211 LIBS="-l$x_direct_test_library $LIBS"
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6216 int main() {
6217 ${x_direct_test_function}()
6218 ; return 0; }
6220 if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6221 rm -rf conftest*
6222 LIBS="$ac_save_LIBS"
6223 # We can link X programs with no special library path.
6224 ac_x_libraries=
6225 else
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6228 rm -rf conftest*
6229 LIBS="$ac_save_LIBS"
6230 # First see if replacing the include by lib works.
6231 # Check X11 before X11Rn because it is often a symlink to the current release.
6232 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6233 /usr/X11/lib \
6234 /usr/X11R6/lib \
6235 /usr/X11R5/lib \
6236 /usr/X11R4/lib \
6238 /usr/lib/X11 \
6239 /usr/lib/X11R6 \
6240 /usr/lib/X11R5 \
6241 /usr/lib/X11R4 \
6243 /usr/local/X11/lib \
6244 /usr/local/X11R6/lib \
6245 /usr/local/X11R5/lib \
6246 /usr/local/X11R4/lib \
6248 /usr/local/lib/X11 \
6249 /usr/local/lib/X11R6 \
6250 /usr/local/lib/X11R5 \
6251 /usr/local/lib/X11R4 \
6253 /usr/X386/lib \
6254 /usr/x386/lib \
6255 /usr/XFree86/lib/X11 \
6257 /usr/lib \
6258 /usr/local/lib \
6259 /usr/unsupported/lib \
6260 /usr/athena/lib \
6261 /usr/local/x11r5/lib \
6262 /usr/lpp/Xamples/lib \
6263 /lib/usr/lib/X11 \
6265 /usr/openwin/lib \
6266 /usr/openwin/share/lib \
6269 for ac_extension in a so sl; do
6270 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6271 ac_x_libraries=$ac_dir
6272 break 2
6274 done
6275 done
6277 rm -f conftest*
6278 fi # $ac_x_libraries = NO
6280 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6281 # Didn't find X anywhere. Cache the known absence of X.
6282 ac_cv_have_x="have_x=no"
6283 else
6284 # Record where we found X for the cache.
6285 ac_cv_have_x="have_x=yes \
6286 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6290 eval "$ac_cv_have_x"
6291 fi # $with_x != no
6293 if test "$have_x" != yes; then
6294 echo "$ac_t""$have_x" 1>&6
6295 no_x=yes
6296 else
6297 # If each of the values was on the command line, it overrides each guess.
6298 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6299 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6300 # Update the cache value to reflect the command line values.
6301 ac_cv_have_x="have_x=yes \
6302 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6303 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6306 if test "$no_x" = yes; then
6307 # Not all programs may use this symbol, but it does not hurt to define it.
6308 cat >> confdefs.h <<\EOF
6309 #define X_DISPLAY_MISSING 1
6312 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6313 else
6314 if test -n "$x_includes"; then
6315 X_CFLAGS="$X_CFLAGS -I$x_includes"
6318 # It would also be nice to do this for all -L options, not just this one.
6319 if test -n "$x_libraries"; then
6320 X_LIBS="$X_LIBS -L$x_libraries"
6321 # For Solaris; some versions of Sun CC require a space after -R and
6322 # others require no space. Words are not sufficient . . . .
6323 case "`(uname -sr) 2>/dev/null`" in
6324 "SunOS 5"*)
6325 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6326 echo "configure:6327: checking whether -R must be followed by a space" >&5
6327 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6332 int main() {
6334 ; return 0; }
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 rm -rf conftest*
6338 ac_R_nospace=yes
6339 else
6340 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6342 rm -rf conftest*
6343 ac_R_nospace=no
6345 rm -f conftest*
6346 if test $ac_R_nospace = yes; then
6347 echo "$ac_t""no" 1>&6
6348 X_LIBS="$X_LIBS -R$x_libraries"
6349 else
6350 LIBS="$ac_xsave_LIBS -R $x_libraries"
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6355 int main() {
6357 ; return 0; }
6359 if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6360 rm -rf conftest*
6361 ac_R_space=yes
6362 else
6363 echo "configure: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6365 rm -rf conftest*
6366 ac_R_space=no
6368 rm -f conftest*
6369 if test $ac_R_space = yes; then
6370 echo "$ac_t""yes" 1>&6
6371 X_LIBS="$X_LIBS -R $x_libraries"
6372 else
6373 echo "$ac_t""neither works" 1>&6
6376 LIBS="$ac_xsave_LIBS"
6377 esac
6380 # Check for system-dependent libraries X programs must link with.
6381 # Do this before checking for the system-independent R6 libraries
6382 # (-lICE), since we may need -lsocket or whatever for X linking.
6384 if test "$ISC" = yes; then
6385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6386 else
6387 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6388 # libraries were built with DECnet support. And karl@cs.umb.edu says
6389 # the Alpha needs dnet_stub (dnet does not exist).
6390 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6391 echo "configure:6392: checking for dnet_ntoa in -ldnet" >&5
6392 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6394 echo $ac_n "(cached) $ac_c" 1>&6
6395 else
6396 ac_save_LIBS="$LIBS"
6397 LIBS="-ldnet $LIBS"
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6404 char dnet_ntoa();
6406 int main() {
6407 dnet_ntoa()
6408 ; return 0; }
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 rm -rf conftest*
6412 eval "ac_cv_lib_$ac_lib_var=yes"
6413 else
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 rm -rf conftest*
6417 eval "ac_cv_lib_$ac_lib_var=no"
6419 rm -f conftest*
6420 LIBS="$ac_save_LIBS"
6423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6425 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6426 else
6427 echo "$ac_t""no" 1>&6
6430 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6431 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6432 echo "configure:6433: checking for dnet_ntoa in -ldnet_stub" >&5
6433 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6436 else
6437 ac_save_LIBS="$LIBS"
6438 LIBS="-ldnet_stub $LIBS"
6439 cat > conftest.$ac_ext <<EOF
6440 #line 6441 "configure"
6441 #include "confdefs.h"
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6445 char dnet_ntoa();
6447 int main() {
6448 dnet_ntoa()
6449 ; return 0; }
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6452 rm -rf conftest*
6453 eval "ac_cv_lib_$ac_lib_var=yes"
6454 else
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6457 rm -rf conftest*
6458 eval "ac_cv_lib_$ac_lib_var=no"
6460 rm -f conftest*
6461 LIBS="$ac_save_LIBS"
6464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6466 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6467 else
6468 echo "$ac_t""no" 1>&6
6473 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6474 # to get the SysV transport functions.
6475 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6476 # needs -lnsl.
6477 # The nsl library prevents programs from opening the X display
6478 # on Irix 5.2, according to dickey@clark.net.
6479 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6480 echo "configure:6481: checking for gethostbyname" >&5
6481 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6483 else
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 /* System header to define __stub macros and hopefully few prototypes,
6488 which can conflict with char gethostbyname(); below. */
6489 #include <assert.h>
6490 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6493 char gethostbyname();
6495 int main() {
6497 /* The GNU C library defines this for functions which it implements
6498 to always fail with ENOSYS. Some functions are actually named
6499 something starting with __ and the normal name is an alias. */
6500 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6501 choke me
6502 #else
6503 gethostbyname();
6504 #endif
6506 ; return 0; }
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 rm -rf conftest*
6510 eval "ac_cv_func_gethostbyname=yes"
6511 else
6512 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6514 rm -rf conftest*
6515 eval "ac_cv_func_gethostbyname=no"
6517 rm -f conftest*
6520 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6521 echo "$ac_t""yes" 1>&6
6523 else
6524 echo "$ac_t""no" 1>&6
6527 if test $ac_cv_func_gethostbyname = no; then
6528 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6529 echo "configure:6530: checking for gethostbyname in -lnsl" >&5
6530 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6533 else
6534 ac_save_LIBS="$LIBS"
6535 LIBS="-lnsl $LIBS"
6536 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure"
6538 #include "confdefs.h"
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542 char gethostbyname();
6544 int main() {
6545 gethostbyname()
6546 ; return 0; }
6548 if { (eval echo configure:6549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6549 rm -rf conftest*
6550 eval "ac_cv_lib_$ac_lib_var=yes"
6551 else
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6554 rm -rf conftest*
6555 eval "ac_cv_lib_$ac_lib_var=no"
6557 rm -f conftest*
6558 LIBS="$ac_save_LIBS"
6561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6563 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6564 else
6565 echo "$ac_t""no" 1>&6
6570 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6571 # socket/setsockopt and other routines are undefined under SCO ODT
6572 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6573 # on later versions), says simon@lia.di.epfl.ch: it contains
6574 # gethostby* variants that don't use the nameserver (or something).
6575 # -lsocket must be given before -lnsl if both are needed.
6576 # We assume that if connect needs -lnsl, so does gethostbyname.
6577 echo $ac_n "checking for connect""... $ac_c" 1>&6
6578 echo "configure:6579: checking for connect" >&5
6579 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6581 else
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 /* System header to define __stub macros and hopefully few prototypes,
6586 which can conflict with char connect(); below. */
6587 #include <assert.h>
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6591 char connect();
6593 int main() {
6595 /* The GNU C library defines this for functions which it implements
6596 to always fail with ENOSYS. Some functions are actually named
6597 something starting with __ and the normal name is an alias. */
6598 #if defined (__stub_connect) || defined (__stub___connect)
6599 choke me
6600 #else
6601 connect();
6602 #endif
6604 ; return 0; }
6606 if { (eval echo configure:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6607 rm -rf conftest*
6608 eval "ac_cv_func_connect=yes"
6609 else
6610 echo "configure: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6612 rm -rf conftest*
6613 eval "ac_cv_func_connect=no"
6615 rm -f conftest*
6618 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6619 echo "$ac_t""yes" 1>&6
6621 else
6622 echo "$ac_t""no" 1>&6
6625 if test $ac_cv_func_connect = no; then
6626 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6627 echo "configure:6628: checking for connect in -lsocket" >&5
6628 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6630 echo $ac_n "(cached) $ac_c" 1>&6
6631 else
6632 ac_save_LIBS="$LIBS"
6633 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 /* Override any gcc2 internal prototype to avoid an error. */
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6640 char connect();
6642 int main() {
6643 connect()
6644 ; return 0; }
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647 rm -rf conftest*
6648 eval "ac_cv_lib_$ac_lib_var=yes"
6649 else
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6652 rm -rf conftest*
6653 eval "ac_cv_lib_$ac_lib_var=no"
6655 rm -f conftest*
6656 LIBS="$ac_save_LIBS"
6659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6660 echo "$ac_t""yes" 1>&6
6661 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6662 else
6663 echo "$ac_t""no" 1>&6
6668 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6669 echo $ac_n "checking for remove""... $ac_c" 1>&6
6670 echo "configure:6671: checking for remove" >&5
6671 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6672 echo $ac_n "(cached) $ac_c" 1>&6
6673 else
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6677 /* System header to define __stub macros and hopefully few prototypes,
6678 which can conflict with char remove(); below. */
6679 #include <assert.h>
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6683 char remove();
6685 int main() {
6687 /* The GNU C library defines this for functions which it implements
6688 to always fail with ENOSYS. Some functions are actually named
6689 something starting with __ and the normal name is an alias. */
6690 #if defined (__stub_remove) || defined (__stub___remove)
6691 choke me
6692 #else
6693 remove();
6694 #endif
6696 ; return 0; }
6698 if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6699 rm -rf conftest*
6700 eval "ac_cv_func_remove=yes"
6701 else
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6704 rm -rf conftest*
6705 eval "ac_cv_func_remove=no"
6707 rm -f conftest*
6710 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6
6713 else
6714 echo "$ac_t""no" 1>&6
6717 if test $ac_cv_func_remove = no; then
6718 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6719 echo "configure:6720: checking for remove in -lposix" >&5
6720 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6723 else
6724 ac_save_LIBS="$LIBS"
6725 LIBS="-lposix $LIBS"
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6732 char remove();
6734 int main() {
6735 remove()
6736 ; return 0; }
6738 if { (eval echo configure:6739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6739 rm -rf conftest*
6740 eval "ac_cv_lib_$ac_lib_var=yes"
6741 else
6742 echo "configure: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6744 rm -rf conftest*
6745 eval "ac_cv_lib_$ac_lib_var=no"
6747 rm -f conftest*
6748 LIBS="$ac_save_LIBS"
6751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6752 echo "$ac_t""yes" 1>&6
6753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6754 else
6755 echo "$ac_t""no" 1>&6
6760 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6761 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6762 echo "configure:6763: checking for shmat" >&5
6763 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6765 else
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 /* System header to define __stub macros and hopefully few prototypes,
6770 which can conflict with char shmat(); below. */
6771 #include <assert.h>
6772 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6775 char shmat();
6777 int main() {
6779 /* The GNU C library defines this for functions which it implements
6780 to always fail with ENOSYS. Some functions are actually named
6781 something starting with __ and the normal name is an alias. */
6782 #if defined (__stub_shmat) || defined (__stub___shmat)
6783 choke me
6784 #else
6785 shmat();
6786 #endif
6788 ; return 0; }
6790 if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6791 rm -rf conftest*
6792 eval "ac_cv_func_shmat=yes"
6793 else
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6796 rm -rf conftest*
6797 eval "ac_cv_func_shmat=no"
6799 rm -f conftest*
6802 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6803 echo "$ac_t""yes" 1>&6
6805 else
6806 echo "$ac_t""no" 1>&6
6809 if test $ac_cv_func_shmat = no; then
6810 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6811 echo "configure:6812: checking for shmat in -lipc" >&5
6812 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6815 else
6816 ac_save_LIBS="$LIBS"
6817 LIBS="-lipc $LIBS"
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6821 /* Override any gcc2 internal prototype to avoid an error. */
6822 /* We use char because int might match the return type of a gcc2
6823 builtin and then its argument prototype would still apply. */
6824 char shmat();
6826 int main() {
6827 shmat()
6828 ; return 0; }
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6831 rm -rf conftest*
6832 eval "ac_cv_lib_$ac_lib_var=yes"
6833 else
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6836 rm -rf conftest*
6837 eval "ac_cv_lib_$ac_lib_var=no"
6839 rm -f conftest*
6840 LIBS="$ac_save_LIBS"
6843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6844 echo "$ac_t""yes" 1>&6
6845 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6846 else
6847 echo "$ac_t""no" 1>&6
6853 # Check for libraries that X11R6 Xt/Xaw programs need.
6854 ac_save_LDFLAGS="$LDFLAGS"
6855 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6856 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6857 # check for ICE first), but we must link in the order -lSM -lICE or
6858 # we get undefined symbols. So assume we have SM if we have ICE.
6859 # These have to be linked with before -lX11, unlike the other
6860 # libraries we check for below, so use a different variable.
6861 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6862 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6863 echo "configure:6864: checking for IceConnectionNumber in -lICE" >&5
6864 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6867 else
6868 ac_save_LIBS="$LIBS"
6869 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 /* Override any gcc2 internal prototype to avoid an error. */
6874 /* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */
6876 char IceConnectionNumber();
6878 int main() {
6879 IceConnectionNumber()
6880 ; return 0; }
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883 rm -rf conftest*
6884 eval "ac_cv_lib_$ac_lib_var=yes"
6885 else
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6888 rm -rf conftest*
6889 eval "ac_cv_lib_$ac_lib_var=no"
6891 rm -f conftest*
6892 LIBS="$ac_save_LIBS"
6895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6896 echo "$ac_t""yes" 1>&6
6897 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6898 else
6899 echo "$ac_t""no" 1>&6
6902 LDFLAGS="$ac_save_LDFLAGS"
6907 # Check whether --enable-java-awt or --disable-java-awt was given.
6908 if test "${enable_java_awt+set}" = set; then
6909 enableval="$enable_java_awt"
6914 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6915 use_xlib_awt=""
6916 use_gtk_awt=""
6918 for peer in $peerlibs ; do
6919 case $peer in
6920 xlib)
6921 if test "$no_x" = yes; then
6922 echo "*** xlib peers requested but no X library available" 1>&2
6923 exit 1
6924 else
6925 use_xlib_awt="yes"
6928 gtk)
6929 # Nothing, yet...
6932 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6933 exit 1
6934 esac
6935 done
6939 if test "$use_xlib_awt" = yes; then
6940 XLIB_AWT_TRUE=
6941 XLIB_AWT_FALSE='#'
6942 else
6943 XLIB_AWT_TRUE='#'
6944 XLIB_AWT_FALSE=
6948 if test "$use_gtk_awt" = yes; then
6949 GTK_AWT_TRUE=
6950 GTK_AWT_FALSE='#'
6951 else
6952 GTK_AWT_TRUE='#'
6953 GTK_AWT_FALSE=
6957 here=`pwd`
6960 # We get this from the environment.
6963 trap '' 1 2 15
6964 cat > confcache <<\EOF
6965 # This file is a shell script that caches the results of configure
6966 # tests run on this system so they can be shared between configure
6967 # scripts and configure runs. It is not useful on other systems.
6968 # If it contains results you don't want to keep, you may remove or edit it.
6970 # By default, configure uses ./config.cache as the cache file,
6971 # creating it if it does not exist already. You can give configure
6972 # the --cache-file=FILE option to use a different cache file; that is
6973 # what configure does when it calls configure scripts in
6974 # subdirectories, so they share the cache.
6975 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6976 # config.status only pays attention to the cache file if you give it the
6977 # --recheck option to rerun configure.
6980 # The following way of writing the cache mishandles newlines in values,
6981 # but we know of no workaround that is simple, portable, and efficient.
6982 # So, don't put newlines in cache variables' values.
6983 # Ultrix sh set writes to stderr and can't be redirected directly,
6984 # and sets the high bit in the cache file unless we assign to the vars.
6985 (set) 2>&1 |
6986 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6987 *ac_space=\ *)
6988 # `set' does not quote correctly, so add quotes (double-quote substitution
6989 # turns \\\\ into \\, and sed turns \\ into \).
6990 sed -n \
6991 -e "s/'/'\\\\''/g" \
6992 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6995 # `set' quotes correctly as required by POSIX, so do not add quotes.
6996 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6998 esac >> confcache
6999 if cmp -s $cache_file confcache; then
7001 else
7002 if test -w $cache_file; then
7003 echo "updating cache $cache_file"
7004 cat confcache > $cache_file
7005 else
7006 echo "not updating unwritable cache $cache_file"
7009 rm -f confcache
7011 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7014 # Let make expand exec_prefix.
7015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7017 # Any assignment to VPATH causes Sun make to only execute
7018 # the first set of double-colon rules, so remove it if not needed.
7019 # If there is a colon in the path, we need to keep it.
7020 if test "x$srcdir" = x.; then
7021 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7024 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7026 DEFS=-DHAVE_CONFIG_H
7028 # Without the "./", some shells look in PATH for config.status.
7029 : ${CONFIG_STATUS=./config.status}
7031 echo creating $CONFIG_STATUS
7032 rm -f $CONFIG_STATUS
7033 cat > $CONFIG_STATUS <<EOF
7034 #! /bin/sh
7035 # Generated automatically by configure.
7036 # Run this file to recreate the current configuration.
7037 # This directory was configured as follows,
7038 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7040 # $0 $ac_configure_args
7042 # Compiler output produced by configure, useful for debugging
7043 # configure, is in ./config.log if it exists.
7045 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7046 for ac_option
7048 case "\$ac_option" in
7049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7050 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7051 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7052 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7053 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7054 exit 0 ;;
7055 -help | --help | --hel | --he | --h)
7056 echo "\$ac_cs_usage"; exit 0 ;;
7057 *) echo "\$ac_cs_usage"; exit 1 ;;
7058 esac
7059 done
7061 ac_given_srcdir=$srcdir
7062 ac_given_INSTALL="$INSTALL"
7064 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
7066 cat >> $CONFIG_STATUS <<EOF
7068 # Protect against being on the right side of a sed subst in config.status.
7069 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7070 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7071 $ac_vpsub
7072 $extrasub
7073 s%@SHELL@%$SHELL%g
7074 s%@CFLAGS@%$CFLAGS%g
7075 s%@CPPFLAGS@%$CPPFLAGS%g
7076 s%@CXXFLAGS@%$CXXFLAGS%g
7077 s%@FFLAGS@%$FFLAGS%g
7078 s%@DEFS@%$DEFS%g
7079 s%@LDFLAGS@%$LDFLAGS%g
7080 s%@LIBS@%$LIBS%g
7081 s%@exec_prefix@%$exec_prefix%g
7082 s%@prefix@%$prefix%g
7083 s%@program_transform_name@%$program_transform_name%g
7084 s%@bindir@%$bindir%g
7085 s%@sbindir@%$sbindir%g
7086 s%@libexecdir@%$libexecdir%g
7087 s%@datadir@%$datadir%g
7088 s%@sysconfdir@%$sysconfdir%g
7089 s%@sharedstatedir@%$sharedstatedir%g
7090 s%@localstatedir@%$localstatedir%g
7091 s%@libdir@%$libdir%g
7092 s%@includedir@%$includedir%g
7093 s%@oldincludedir@%$oldincludedir%g
7094 s%@infodir@%$infodir%g
7095 s%@mandir@%$mandir%g
7096 s%@LN_S@%$LN_S%g
7097 s%@libgcj_basedir@%$libgcj_basedir%g
7098 s%@mkinstalldirs@%$mkinstalldirs%g
7099 s%@host@%$host%g
7100 s%@host_alias@%$host_alias%g
7101 s%@host_cpu@%$host_cpu%g
7102 s%@host_vendor@%$host_vendor%g
7103 s%@host_os@%$host_os%g
7104 s%@target@%$target%g
7105 s%@target_alias@%$target_alias%g
7106 s%@target_cpu@%$target_cpu%g
7107 s%@target_vendor@%$target_vendor%g
7108 s%@target_os@%$target_os%g
7109 s%@build@%$build%g
7110 s%@build_alias@%$build_alias%g
7111 s%@build_cpu@%$build_cpu%g
7112 s%@build_vendor@%$build_vendor%g
7113 s%@build_os@%$build_os%g
7114 s%@CC@%$CC%g
7115 s%@CXX@%$CXX%g
7116 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7117 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7118 s%@INSTALL_DATA@%$INSTALL_DATA%g
7119 s%@PACKAGE@%$PACKAGE%g
7120 s%@VERSION@%$VERSION%g
7121 s%@ACLOCAL@%$ACLOCAL%g
7122 s%@AUTOCONF@%$AUTOCONF%g
7123 s%@AUTOMAKE@%$AUTOMAKE%g
7124 s%@AUTOHEADER@%$AUTOHEADER%g
7125 s%@MAKEINFO@%$MAKEINFO%g
7126 s%@SET_MAKE@%$SET_MAKE%g
7127 s%@AS@%$AS%g
7128 s%@AR@%$AR%g
7129 s%@RANLIB@%$RANLIB%g
7130 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7131 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7132 s%@MAINT@%$MAINT%g
7133 s%@EXEEXT@%$EXEEXT%g
7134 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7135 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7136 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7137 s%@INCLTDL@%$INCLTDL%g
7138 s%@LIBLTDL@%$LIBLTDL%g
7139 s%@DIRLTDL@%$DIRLTDL%g
7140 s%@OBJEXT@%$OBJEXT%g
7141 s%@STRIP@%$STRIP%g
7142 s%@LIBTOOL@%$LIBTOOL%g
7143 s%@CXXCPP@%$CXXCPP%g
7144 s%@subdirs@%$subdirs%g
7145 s%@COMPPATH@%$COMPPATH%g
7146 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7147 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7148 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7149 s%@LIBFFI@%$LIBFFI%g
7150 s%@LIBFFIINCS@%$LIBFFIINCS%g
7151 s%@CPP@%$CPP%g
7152 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7153 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7154 s%@ZLIBSPEC@%$ZLIBSPEC%g
7155 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7156 s%@GCLIBS@%$GCLIBS%g
7157 s%@GCINCS@%$GCINCS%g
7158 s%@GCDEPS@%$GCDEPS%g
7159 s%@GCOBJS@%$GCOBJS%g
7160 s%@GCSPEC@%$GCSPEC%g
7161 s%@JC1GCSPEC@%$JC1GCSPEC%g
7162 s%@GCTESTSPEC@%$GCTESTSPEC%g
7163 s%@THREADLIBS@%$THREADLIBS%g
7164 s%@THREADINCS@%$THREADINCS%g
7165 s%@THREADDEPS@%$THREADDEPS%g
7166 s%@THREADOBJS@%$THREADOBJS%g
7167 s%@THREADSPEC@%$THREADSPEC%g
7168 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7169 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7170 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7171 s%@LIBICONV@%$LIBICONV%g
7172 s%@GCJ@%$GCJ%g
7173 s%@GCJFLAGS@%$GCJFLAGS%g
7174 s%@ZLIBS@%$ZLIBS%g
7175 s%@ZDEPS@%$ZDEPS%g
7176 s%@ZINCS@%$ZINCS%g
7177 s%@DIVIDESPEC@%$DIVIDESPEC%g
7178 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7179 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7180 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7181 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7182 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7183 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7184 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7185 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7186 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7187 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7188 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7189 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7190 s%@GCJVERSION@%$GCJVERSION%g
7191 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7192 s%@ALLOCA@%$ALLOCA%g
7193 s%@PERL@%$PERL%g
7194 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7195 s%@X_CFLAGS@%$X_CFLAGS%g
7196 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7197 s%@X_LIBS@%$X_LIBS%g
7198 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7199 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7200 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7201 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7202 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7203 s%@here@%$here%g
7205 CEOF
7208 cat >> $CONFIG_STATUS <<\EOF
7210 # Split the substitutions into bite-sized pieces for seds with
7211 # small command number limits, like on Digital OSF/1 and HP-UX.
7212 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7213 ac_file=1 # Number of current file.
7214 ac_beg=1 # First line for current file.
7215 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7216 ac_more_lines=:
7217 ac_sed_cmds=""
7218 while $ac_more_lines; do
7219 if test $ac_beg -gt 1; then
7220 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7221 else
7222 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7224 if test ! -s conftest.s$ac_file; then
7225 ac_more_lines=false
7226 rm -f conftest.s$ac_file
7227 else
7228 if test -z "$ac_sed_cmds"; then
7229 ac_sed_cmds="sed -f conftest.s$ac_file"
7230 else
7231 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7233 ac_file=`expr $ac_file + 1`
7234 ac_beg=$ac_end
7235 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7237 done
7238 if test -z "$ac_sed_cmds"; then
7239 ac_sed_cmds=cat
7243 cat >> $CONFIG_STATUS <<EOF
7245 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7247 cat >> $CONFIG_STATUS <<\EOF
7248 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7249 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7250 case "$ac_file" in
7251 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7252 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7253 *) ac_file_in="${ac_file}.in" ;;
7254 esac
7256 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7258 # Remove last slash and all that follows it. Not all systems have dirname.
7259 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7260 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7261 # The file is in a subdirectory.
7262 test ! -d "$ac_dir" && mkdir "$ac_dir"
7263 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7264 # A "../" for each directory in $ac_dir_suffix.
7265 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7266 else
7267 ac_dir_suffix= ac_dots=
7270 case "$ac_given_srcdir" in
7271 .) srcdir=.
7272 if test -z "$ac_dots"; then top_srcdir=.
7273 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7274 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7275 *) # Relative path.
7276 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7277 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7278 esac
7280 case "$ac_given_INSTALL" in
7281 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7282 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7283 esac
7285 echo creating "$ac_file"
7286 rm -f "$ac_file"
7287 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7288 case "$ac_file" in
7289 *Makefile*) ac_comsub="1i\\
7290 # $configure_input" ;;
7291 *) ac_comsub= ;;
7292 esac
7294 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7295 sed -e "$ac_comsub
7296 s%@configure_input@%$configure_input%g
7297 s%@srcdir@%$srcdir%g
7298 s%@top_srcdir@%$top_srcdir%g
7299 s%@INSTALL@%$INSTALL%g
7300 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7301 fi; done
7302 rm -f conftest.s*
7304 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7305 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7307 # ac_d sets the value in "#define NAME VALUE" lines.
7308 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7309 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7310 ac_dC='\3'
7311 ac_dD='%g'
7312 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7313 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7314 ac_uB='\([ ]\)%\1#\2define\3'
7315 ac_uC=' '
7316 ac_uD='\4%g'
7317 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7318 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7319 ac_eB='$%\1#\2define\3'
7320 ac_eC=' '
7321 ac_eD='%g'
7323 if test "${CONFIG_HEADERS+set}" != set; then
7325 cat >> $CONFIG_STATUS <<EOF
7326 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7328 cat >> $CONFIG_STATUS <<\EOF
7330 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7332 case "$ac_file" in
7333 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7334 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7335 *) ac_file_in="${ac_file}.in" ;;
7336 esac
7338 echo creating $ac_file
7340 rm -f conftest.frag conftest.in conftest.out
7341 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7342 cat $ac_file_inputs > conftest.in
7346 # Transform confdefs.h into a sed script conftest.vals that substitutes
7347 # the proper values into config.h.in to produce config.h. And first:
7348 # Protect against being on the right side of a sed subst in config.status.
7349 # Protect against being in an unquoted here document in config.status.
7350 rm -f conftest.vals
7351 cat > conftest.hdr <<\EOF
7352 s/[\\&%]/\\&/g
7353 s%[\\$`]%\\&%g
7354 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7355 s%ac_d%ac_u%gp
7356 s%ac_u%ac_e%gp
7358 sed -n -f conftest.hdr confdefs.h > conftest.vals
7359 rm -f conftest.hdr
7361 # This sed command replaces #undef with comments. This is necessary, for
7362 # example, in the case of _POSIX_SOURCE, which is predefined and required
7363 # on some systems where configure will not decide to define it.
7364 cat >> conftest.vals <<\EOF
7365 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7368 # Break up conftest.vals because some shells have a limit on
7369 # the size of here documents, and old seds have small limits too.
7371 rm -f conftest.tail
7372 while :
7374 ac_lines=`grep -c . conftest.vals`
7375 # grep -c gives empty output for an empty file on some AIX systems.
7376 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7377 # Write a limited-size here document to conftest.frag.
7378 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7379 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7380 echo 'CEOF
7381 sed -f conftest.frag conftest.in > conftest.out
7382 rm -f conftest.in
7383 mv conftest.out conftest.in
7384 ' >> $CONFIG_STATUS
7385 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7386 rm -f conftest.vals
7387 mv conftest.tail conftest.vals
7388 done
7389 rm -f conftest.vals
7391 cat >> $CONFIG_STATUS <<\EOF
7392 rm -f conftest.frag conftest.h
7393 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7394 cat conftest.in >> conftest.h
7395 rm -f conftest.in
7396 if cmp -s $ac_file conftest.h 2>/dev/null; then
7397 echo "$ac_file is unchanged"
7398 rm -f conftest.h
7399 else
7400 # Remove last slash and all that follows it. Not all systems have dirname.
7401 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7402 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7403 # The file is in a subdirectory.
7404 test ! -d "$ac_dir" && mkdir "$ac_dir"
7406 rm -f $ac_file
7407 mv conftest.h $ac_file
7409 fi; done
7413 cat >> $CONFIG_STATUS <<EOF
7414 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7415 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7418 cat >> $CONFIG_STATUS <<\EOF
7419 srcdir=$ac_given_srcdir
7420 while test -n "$ac_sources"; do
7421 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7422 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7424 echo "linking $srcdir/$ac_source to $ac_dest"
7426 if test ! -r $srcdir/$ac_source; then
7427 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7429 rm -f $ac_dest
7431 # Make relative symlinks.
7432 # Remove last slash and all that follows it. Not all systems have dirname.
7433 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7434 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7435 # The dest file is in a subdirectory.
7436 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7437 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7438 # A "../" for each directory in $ac_dest_dir_suffix.
7439 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7440 else
7441 ac_dest_dir_suffix= ac_dots=
7444 case "$srcdir" in
7445 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7446 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7447 esac
7449 # Make a symlink if possible; otherwise try a hard link.
7450 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7451 ln $srcdir/$ac_source $ac_dest; then :
7452 else
7453 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7455 done
7457 cat >> $CONFIG_STATUS <<EOF
7459 srcdir=${srcdir}
7460 host=${host}
7461 target=${target}
7462 with_multisubdir=${with_multisubdir}
7463 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7464 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7465 libgcj_basedir=${libgcj_basedir}
7466 CC="${CC}"
7467 CXX="${CXX}"
7470 cat >> $CONFIG_STATUS <<\EOF
7471 am_indx=1
7472 for am_file in include/config.h gcj/libgcj-config.h; do
7473 case " $CONFIG_HEADERS " in
7474 *" $am_file "*)
7475 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7477 esac
7478 am_indx=`expr "$am_indx" + 1`
7479 done
7480 # Only add multilib support code if we just rebuilt top-level Makefile.
7481 case " $CONFIG_FILES " in
7482 *" Makefile "*)
7483 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7485 esac
7487 # Make subdirectories and `.d' files. Look in both srcdir and
7488 # builddir for the .java files.
7489 h=`pwd`
7490 : > deps.mk
7491 ( (cd $srcdir && find . -name '*.java' -print) ;
7492 find . -name '*.java' -print) | \
7493 fgrep -v testsuite | \
7494 sed -e 's/\.java/.d/' | \
7495 while read f; do
7496 echo "include $f" >> deps.mk
7497 test -f $f || {
7499 d=`echo $f | sed -e 's,/[^/]*$,,'`
7501 $libgcj_basedir/../mkinstalldirs $d
7502 echo > $f
7504 done
7506 exit 0
7508 chmod +x $CONFIG_STATUS
7509 rm -fr confdefs* $ac_clean_files
7510 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7512 if test "$no_recursion" != yes; then
7514 # Remove --cache-file and --srcdir arguments so they do not pile up.
7515 ac_sub_configure_args=
7516 ac_prev=
7517 for ac_arg in $ac_configure_args; do
7518 if test -n "$ac_prev"; then
7519 ac_prev=
7520 continue
7522 case "$ac_arg" in
7523 -cache-file | --cache-file | --cache-fil | --cache-fi \
7524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7525 ac_prev=cache_file ;;
7526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7529 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7530 ac_prev=srcdir ;;
7531 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7533 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7534 esac
7535 done
7537 for ac_config_dir in $DIRLTDL; do
7539 # Do not complain, so a configure script can configure whichever
7540 # parts of a large source tree are present.
7541 if test ! -d $srcdir/$ac_config_dir; then
7542 continue
7545 echo configuring in $ac_config_dir
7547 case "$srcdir" in
7548 .) ;;
7550 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7551 else
7552 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7555 esac
7557 ac_popdir=`pwd`
7558 cd $ac_config_dir
7560 # A "../" for each directory in /$ac_config_dir.
7561 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7563 case "$srcdir" in
7564 .) # No --srcdir option. We are building in place.
7565 ac_sub_srcdir=$srcdir ;;
7566 /*) # Absolute path.
7567 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7568 *) # Relative path.
7569 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7570 esac
7572 # Check for guested configure; otherwise get Cygnus style configure.
7573 if test -f $ac_sub_srcdir/configure; then
7574 ac_sub_configure=$ac_sub_srcdir/configure
7575 elif test -f $ac_sub_srcdir/configure.in; then
7576 ac_sub_configure=$ac_configure
7577 else
7578 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7579 ac_sub_configure=
7582 # The recursion is here.
7583 if test -n "$ac_sub_configure"; then
7585 # Make the cache file name correct relative to the subdirectory.
7586 case "$cache_file" in
7587 /*) ac_sub_cache_file=$cache_file ;;
7588 *) # Relative path.
7589 ac_sub_cache_file="$ac_dots$cache_file" ;;
7590 esac
7591 case "$ac_given_INSTALL" in
7592 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7593 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7594 esac
7596 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7597 # The eval makes quoting arguments work.
7598 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7599 then :
7600 else
7601 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
7605 cd $ac_popdir
7606 done