* gcc.c-torture/execute/20020307-1.c: New test.
[official-gcc.git] / libjava / configure
blob4e5632fdb53d79041880324534ba4f8e9798154c
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build many library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
39 ac_help="$ac_help
40 --enable-hash-synchronization
41 Use global hash table for monitor locks"
42 ac_help="$ac_help
43 --enable-libgcj-debug enable runtime debugging code"
44 ac_help="$ac_help
45 --enable-interpreter enable interpreter"
46 ac_help="$ac_help
47 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
48 ac_help="$ac_help
49 --disable-java-net disable java.net"
50 ac_help="$ac_help
51 --without-libffi don't use libffi"
52 ac_help="$ac_help
53 --disable-jvmpi disable JVMPI support"
54 ac_help="$ac_help
55 --with-ecos enable runtime eCos target support"
56 ac_help="$ac_help
57 --with-system-zlib use installed libz"
58 ac_help="$ac_help
59 --enable-java-gc=TYPE choose garbage collector [boehm]"
60 ac_help="$ac_help
61 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
62 ac_help="$ac_help
63 --with-x use the X Window System"
64 ac_help="$ac_help
65 --enable-java-awt list of AWT peer implementations to be built"
67 # Initialize some variables set by options.
68 # The variables have the same names as the options, with
69 # dashes changed to underlines.
70 build=NONE
71 cache_file=./config.cache
72 exec_prefix=NONE
73 host=NONE
74 no_create=
75 nonopt=NONE
76 no_recursion=
77 prefix=NONE
78 program_prefix=NONE
79 program_suffix=NONE
80 program_transform_name=s,x,x,
81 silent=
82 site=
83 sitefile=
84 srcdir=
85 target=NONE
86 verbose=
87 x_includes=NONE
88 x_libraries=NONE
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
102 # Initialize some other variables.
103 subdirs=
104 MFLAGS= MAKEFLAGS=
105 SHELL=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
107 ac_max_here_lines=12
109 ac_prev=
110 for ac_option
113 # If the previous option needs an argument, assign it.
114 if test -n "$ac_prev"; then
115 eval "$ac_prev=\$ac_option"
116 ac_prev=
117 continue
120 case "$ac_option" in
121 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 *) ac_optarg= ;;
123 esac
125 # Accept the important Cygnus configure options, so we can diagnose typos.
127 case "$ac_option" in
129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 ac_prev=bindir ;;
131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132 bindir="$ac_optarg" ;;
134 -build | --build | --buil | --bui | --bu)
135 ac_prev=build ;;
136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137 build="$ac_optarg" ;;
139 -cache-file | --cache-file | --cache-fil | --cache-fi \
140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141 ac_prev=cache_file ;;
142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144 cache_file="$ac_optarg" ;;
146 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 ac_prev=datadir ;;
148 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 | --da=*)
150 datadir="$ac_optarg" ;;
152 -disable-* | --disable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}=no" ;;
161 -enable-* | --enable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 case "$ac_option" in
169 *=*) ;;
170 *) ac_optarg=yes ;;
171 esac
172 eval "enable_${ac_feature}='$ac_optarg'" ;;
174 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176 | --exec | --exe | --ex)
177 ac_prev=exec_prefix ;;
178 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180 | --exec=* | --exe=* | --ex=*)
181 exec_prefix="$ac_optarg" ;;
183 -gas | --gas | --ga | --g)
184 # Obsolete; use --with-gas.
185 with_gas=yes ;;
187 -help | --help | --hel | --he)
188 # Omit some internal or obsolete options to make the list less imposing.
189 # This message is too long to be a string in the A/UX 3.1 sh.
190 cat << EOF
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
193 Configuration:
194 --cache-file=FILE cache test results in FILE
195 --help print this message
196 --no-create do not create output files
197 --quiet, --silent do not print \`checking...' messages
198 --site-file=FILE use FILE as the site file
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -site-file | --site-file | --site-fil | --site-fi | --site-f)
370 ac_prev=sitefile ;;
371 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
372 sitefile="$ac_optarg" ;;
374 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 ac_prev=srcdir ;;
376 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 srcdir="$ac_optarg" ;;
379 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
380 | --syscon | --sysco | --sysc | --sys | --sy)
381 ac_prev=sysconfdir ;;
382 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
383 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
384 sysconfdir="$ac_optarg" ;;
386 -target | --target | --targe | --targ | --tar | --ta | --t)
387 ac_prev=target ;;
388 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
389 target="$ac_optarg" ;;
391 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 verbose=yes ;;
394 -version | --version | --versio | --versi | --vers)
395 echo "configure generated by autoconf version 2.13"
396 exit 0 ;;
398 -with-* | --with-*)
399 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 case "$ac_option" in
406 *=*) ;;
407 *) ac_optarg=yes ;;
408 esac
409 eval "with_${ac_package}='$ac_optarg'" ;;
411 -without-* | --without-*)
412 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}=no" ;;
420 --x)
421 # Obsolete; use --with-x.
422 with_x=yes ;;
424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
425 | --x-incl | --x-inc | --x-in | --x-i)
426 ac_prev=x_includes ;;
427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
429 x_includes="$ac_optarg" ;;
431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
433 ac_prev=x_libraries ;;
434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
436 x_libraries="$ac_optarg" ;;
438 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 if test "x$nonopt" != xNONE; then
446 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448 nonopt="$ac_option"
451 esac
452 done
454 if test -n "$ac_prev"; then
455 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460 # File descriptor usage:
461 # 0 standard input
462 # 1 file creation
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
469 exec 6>/dev/null
470 else
471 exec 6>&1
473 exec 5>./config.log
475 echo "\
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
478 " 1>&5
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
482 ac_configure_args=
483 for ac_arg
485 case "$ac_arg" in
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c) ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
492 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
493 esac
494 done
496 # NLS nuisances.
497 # Only set these to C if already set. These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
502 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
504 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 echo > confdefs.h
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file=java/lang/System.java
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517 ac_srcdir_defaulted=yes
518 # Try the directory containing this script, then its parent.
519 ac_prog=$0
520 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522 srcdir=$ac_confdir
523 if test ! -r $srcdir/$ac_unique_file; then
524 srcdir=..
526 else
527 ac_srcdir_defaulted=no
529 if test ! -r $srcdir/$ac_unique_file; then
530 if test "$ac_srcdir_defaulted" = yes; then
531 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 else
533 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$sitefile"; then
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 else
548 CONFIG_SITE="$sitefile"
550 for ac_site_file in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
553 . "$ac_site_file"
555 done
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
559 . $cache_file
560 else
561 echo "creating cache $cache_file"
562 > $cache_file
565 ac_ext=c
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp='$CPP $CPPFLAGS'
568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling=$ac_cv_prog_cc_cross
572 ac_exeext=
573 ac_objext=o
574 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
575 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
576 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
577 ac_n= ac_c='
578 ' ac_t=' '
579 else
580 ac_n=-n ac_c= ac_t=
582 else
583 ac_n= ac_c='\c' ac_t=
588 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
589 echo "configure:590: checking whether ln -s works" >&5
590 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
591 echo $ac_n "(cached) $ac_c" 1>&6
592 else
593 rm -f conftestdata
594 if ln -s X conftestdata 2>/dev/null
595 then
596 rm -f conftestdata
597 ac_cv_prog_LN_S="ln -s"
598 else
599 ac_cv_prog_LN_S=ln
602 LN_S="$ac_cv_prog_LN_S"
603 if test "$ac_cv_prog_LN_S" = "ln -s"; then
604 echo "$ac_t""yes" 1>&6
605 else
606 echo "$ac_t""no" 1>&6
610 # Check whether --with-target-subdir or --without-target-subdir was given.
611 if test "${with_target_subdir+set}" = set; then
612 withval="$with_target_subdir"
616 # Check whether --with-cross-host or --without-cross-host was given.
617 if test "${with_cross_host+set}" = set; then
618 withval="$with_cross_host"
623 # Find a good install program. We prefer a C program (faster),
624 # so one script is as good as another. But avoid the broken or
625 # incompatible versions:
626 # SysV /etc/install, /usr/sbin/install
627 # SunOS /usr/etc/install
628 # IRIX /sbin/install
629 # AIX /bin/install
630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
633 # ./install, which can be erroneously created by make from ./install.sh.
634 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
635 echo "configure:636: checking for a BSD compatible install" >&5
636 if test -z "$INSTALL"; then
637 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
638 echo $ac_n "(cached) $ac_c" 1>&6
639 else
640 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
641 for ac_dir in $PATH; do
642 # Account for people who put trailing slashes in PATH elements.
643 case "$ac_dir/" in
644 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
646 # OSF1 and SCO ODT 3.0 have their own names for install.
647 # Don't use installbsd from OSF since it installs stuff as root
648 # by default.
649 for ac_prog in ginstall scoinst install; do
650 if test -f $ac_dir/$ac_prog; then
651 if test $ac_prog = install &&
652 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
653 # AIX install. It has an incompatible calling convention.
655 else
656 ac_cv_path_install="$ac_dir/$ac_prog -c"
657 break 2
660 done
662 esac
663 done
664 IFS="$ac_save_IFS"
667 if test "${ac_cv_path_install+set}" = set; then
668 INSTALL="$ac_cv_path_install"
669 else
670 # As a last resort, use the slow shell script. We don't cache a
671 # path for INSTALL within a source directory, because that will
672 # break other packages using the cache if that directory is
673 # removed, or if the path is relative.
674 INSTALL="$ac_install_sh"
677 echo "$ac_t""$INSTALL" 1>&6
679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
680 # It thinks the first close brace ends the variable substitution.
681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
687 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
688 echo "configure:689: checking whether build environment is sane" >&5
689 # Just in case
690 sleep 1
691 echo timestamp > conftestfile
692 # Do `set' in a subshell so we don't clobber the current shell's
693 # arguments. Must try -L first in case configure is actually a
694 # symlink; some systems play weird games with the mod time of symlinks
695 # (eg FreeBSD returns the mod time of the symlink's containing
696 # directory).
697 if (
698 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
699 if test "$*" = "X"; then
700 # -L didn't work.
701 set X `ls -t $srcdir/configure conftestfile`
703 if test "$*" != "X $srcdir/configure conftestfile" \
704 && test "$*" != "X conftestfile $srcdir/configure"; then
706 # If neither matched, then we have a broken ls. This can happen
707 # if, for instance, CONFIG_SHELL is bash and it inherits a
708 # broken ls alias from the environment. This has actually
709 # happened. Such a system could not be considered "sane".
710 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
711 alias in your environment" 1>&2; exit 1; }
714 test "$2" = conftestfile
716 then
717 # Ok.
719 else
720 { echo "configure: error: newly created file is older than distributed files!
721 Check your system clock" 1>&2; exit 1; }
723 rm -f conftest*
724 echo "$ac_t""yes" 1>&6
725 if test "$program_transform_name" = s,x,x,; then
726 program_transform_name=
727 else
728 # Double any \ or $. echo might interpret backslashes.
729 cat <<\EOF_SED > conftestsed
730 s,\\,\\\\,g; s,\$,$$,g
731 EOF_SED
732 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
733 rm -f conftestsed
735 test "$program_prefix" != NONE &&
736 program_transform_name="s,^,${program_prefix},; $program_transform_name"
737 # Use a double $ so make ignores it.
738 test "$program_suffix" != NONE &&
739 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
741 # sed with no file args requires a program.
742 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
744 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
745 echo "configure:746: checking whether ${MAKE-make} sets \${MAKE}" >&5
746 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
747 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
749 else
750 cat > conftestmake <<\EOF
751 all:
752 @echo 'ac_maketemp="${MAKE}"'
754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
755 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
756 if test -n "$ac_maketemp"; then
757 eval ac_cv_prog_make_${ac_make}_set=yes
758 else
759 eval ac_cv_prog_make_${ac_make}_set=no
761 rm -f conftestmake
763 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
764 echo "$ac_t""yes" 1>&6
765 SET_MAKE=
766 else
767 echo "$ac_t""no" 1>&6
768 SET_MAKE="MAKE=${MAKE-make}"
771 if test $host != $build; then
772 ac_tool_prefix=${host_alias}-
773 else
774 ac_tool_prefix=
777 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
778 echo "configure:779: checking for Cygwin environment" >&5
779 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781 else
782 cat > conftest.$ac_ext <<EOF
783 #line 784 "configure"
784 #include "confdefs.h"
786 int main() {
788 #ifndef __CYGWIN__
789 #define __CYGWIN__ __CYGWIN32__
790 #endif
791 return __CYGWIN__;
792 ; return 0; }
794 if { (eval echo configure:795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795 rm -rf conftest*
796 ac_cv_cygwin=yes
797 else
798 echo "configure: failed program was:" >&5
799 cat conftest.$ac_ext >&5
800 rm -rf conftest*
801 ac_cv_cygwin=no
803 rm -f conftest*
804 rm -f conftest*
807 echo "$ac_t""$ac_cv_cygwin" 1>&6
808 CYGWIN=
809 test "$ac_cv_cygwin" = yes && CYGWIN=yes
810 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
811 echo "configure:812: checking for mingw32 environment" >&5
812 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
814 else
815 cat > conftest.$ac_ext <<EOF
816 #line 817 "configure"
817 #include "confdefs.h"
819 int main() {
820 return __MINGW32__;
821 ; return 0; }
823 if { (eval echo configure:824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
824 rm -rf conftest*
825 ac_cv_mingw32=yes
826 else
827 echo "configure: failed program was:" >&5
828 cat conftest.$ac_ext >&5
829 rm -rf conftest*
830 ac_cv_mingw32=no
832 rm -f conftest*
833 rm -f conftest*
836 echo "$ac_t""$ac_cv_mingw32" 1>&6
837 MINGW32=
838 test "$ac_cv_mingw32" = yes && MINGW32=yes
840 # Check whether --enable-multilib or --disable-multilib was given.
841 if test "${enable_multilib+set}" = set; then
842 enableval="$enable_multilib"
843 case "${enableval}" in
844 yes) multilib=yes ;;
845 no) multilib=no ;;
846 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
847 esac
848 else
849 multilib=yes
853 # When building with srcdir == objdir, links to the source files will
854 # be created in directories within the target_subdir. We have to
855 # adjust toplevel_srcdir accordingly, so that configure finds
856 # install-sh and other auxiliary files that live in the top-level
857 # source directory.
858 if test "${srcdir}" = "."; then
859 if test -z "${with_target_subdir}"; then
860 toprel=".."
861 else
862 if test "${with_target_subdir}" != "."; then
863 toprel="${with_multisrctop}../.."
864 else
865 toprel="${with_multisrctop}.."
868 else
869 toprel=".."
872 libgcj_basedir=$srcdir/$toprel/./libjava
875 ac_aux_dir=
876 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
877 if test -f $ac_dir/install-sh; then
878 ac_aux_dir=$ac_dir
879 ac_install_sh="$ac_aux_dir/install-sh -c"
880 break
881 elif test -f $ac_dir/install.sh; then
882 ac_aux_dir=$ac_dir
883 ac_install_sh="$ac_aux_dir/install.sh -c"
884 break
886 done
887 if test -z "$ac_aux_dir"; then
888 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
890 ac_config_guess=$ac_aux_dir/config.guess
891 ac_config_sub=$ac_aux_dir/config.sub
892 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
894 if :; then :; else
895 # This overrides the previous occurrence for automake, but not for
896 # autoconf, which is exactly what we want.
897 ac_aux_dir=
898 for ac_dir in .. $srcdir/..; do
899 if test -f $ac_dir/install-sh; then
900 ac_aux_dir=$ac_dir
901 ac_install_sh="$ac_aux_dir/install-sh -c"
902 break
903 elif test -f $ac_dir/install.sh; then
904 ac_aux_dir=$ac_dir
905 ac_install_sh="$ac_aux_dir/install.sh -c"
906 break
908 done
909 if test -z "$ac_aux_dir"; then
910 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
912 ac_config_guess=$ac_aux_dir/config.guess
913 ac_config_sub=$ac_aux_dir/config.sub
914 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
918 # This works around an automake problem.
919 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
923 # Do some error checking and defaulting for the host and target type.
924 # The inputs are:
925 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
927 # The rules are:
928 # 1. You are not allowed to specify --host, --target, and nonopt at the
929 # same time.
930 # 2. Host defaults to nonopt.
931 # 3. If nonopt is not specified, then host defaults to the current host,
932 # as determined by config.guess.
933 # 4. Target and build default to nonopt.
934 # 5. If nonopt is not specified, then target and build default to host.
936 # The aliases save the names the user supplied, while $host etc.
937 # will get canonicalized.
938 case $host---$target---$nonopt in
939 NONE---*---* | *---NONE---* | *---*---NONE) ;;
940 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
941 esac
944 # Make sure we can run config.sub.
945 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
946 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
949 echo $ac_n "checking host system type""... $ac_c" 1>&6
950 echo "configure:951: checking host system type" >&5
952 host_alias=$host
953 case "$host_alias" in
954 NONE)
955 case $nonopt in
956 NONE)
957 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
958 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
959 fi ;;
960 *) host_alias=$nonopt ;;
961 esac ;;
962 esac
964 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
965 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
968 echo "$ac_t""$host" 1>&6
970 echo $ac_n "checking target system type""... $ac_c" 1>&6
971 echo "configure:972: checking target system type" >&5
973 target_alias=$target
974 case "$target_alias" in
975 NONE)
976 case $nonopt in
977 NONE) target_alias=$host_alias ;;
978 *) target_alias=$nonopt ;;
979 esac ;;
980 esac
982 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
983 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986 echo "$ac_t""$target" 1>&6
988 echo $ac_n "checking build system type""... $ac_c" 1>&6
989 echo "configure:990: checking build system type" >&5
991 build_alias=$build
992 case "$build_alias" in
993 NONE)
994 case $nonopt in
995 NONE) build_alias=$host_alias ;;
996 *) build_alias=$nonopt ;;
997 esac ;;
998 esac
1000 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1001 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1002 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1003 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1004 echo "$ac_t""$build" 1>&6
1006 test "$host_alias" != "$target_alias" &&
1007 test "$program_prefix$program_suffix$program_transform_name" = \
1008 NONENONEs,x,x, &&
1009 program_prefix=${target_alias}-
1015 # Extract the first word of "gcc", so it can be a program name with args.
1016 set dummy gcc; ac_word=$2
1017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1018 echo "configure:1019: checking for $ac_word" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 if test -n "$CC"; then
1023 ac_cv_prog_CC="$CC" # Let the user override the test.
1024 else
1025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1026 ac_dummy="$PATH"
1027 for ac_dir in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir=.
1029 if test -f $ac_dir/$ac_word; then
1030 ac_cv_prog_CC="gcc"
1031 break
1033 done
1034 IFS="$ac_save_ifs"
1037 CC="$ac_cv_prog_CC"
1038 if test -n "$CC"; then
1039 echo "$ac_t""$CC" 1>&6
1040 else
1041 echo "$ac_t""no" 1>&6
1044 if test -z "$CC"; then
1045 # Extract the first word of "cc", so it can be a program name with args.
1046 set dummy cc; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1051 else
1052 if test -n "$CC"; then
1053 ac_cv_prog_CC="$CC" # Let the user override the test.
1054 else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1056 ac_prog_rejected=no
1057 ac_dummy="$PATH"
1058 for ac_dir in $ac_dummy; do
1059 test -z "$ac_dir" && ac_dir=.
1060 if test -f $ac_dir/$ac_word; then
1061 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1062 ac_prog_rejected=yes
1063 continue
1065 ac_cv_prog_CC="cc"
1066 break
1068 done
1069 IFS="$ac_save_ifs"
1070 if test $ac_prog_rejected = yes; then
1071 # We found a bogon in the path, so make sure we never use it.
1072 set dummy $ac_cv_prog_CC
1073 shift
1074 if test $# -gt 0; then
1075 # We chose a different compiler from the bogus one.
1076 # However, it has the same basename, so the bogon will be chosen
1077 # first if we set CC to just the basename; use the full file name.
1078 shift
1079 set dummy "$ac_dir/$ac_word" "$@"
1080 shift
1081 ac_cv_prog_CC="$@"
1086 CC="$ac_cv_prog_CC"
1087 if test -n "$CC"; then
1088 echo "$ac_t""$CC" 1>&6
1089 else
1090 echo "$ac_t""no" 1>&6
1093 if test -z "$CC"; then
1094 case "`uname -s`" in
1095 *win32* | *WIN32*)
1096 # Extract the first word of "cl", so it can be a program name with args.
1097 set dummy cl; ac_word=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_word" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1102 else
1103 if test -n "$CC"; then
1104 ac_cv_prog_CC="$CC" # Let the user override the test.
1105 else
1106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1107 ac_dummy="$PATH"
1108 for ac_dir in $ac_dummy; do
1109 test -z "$ac_dir" && ac_dir=.
1110 if test -f $ac_dir/$ac_word; then
1111 ac_cv_prog_CC="cl"
1112 break
1114 done
1115 IFS="$ac_save_ifs"
1118 CC="$ac_cv_prog_CC"
1119 if test -n "$CC"; then
1120 echo "$ac_t""$CC" 1>&6
1121 else
1122 echo "$ac_t""no" 1>&6
1125 esac
1127 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1131 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1132 echo "configure:1133: checking whether we are using GNU C" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1135 else
1136 cat > conftest.c <<EOF
1137 #ifdef __GNUC__
1138 yes;
1139 #endif
1141 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1142 ac_cv_prog_gcc=yes
1143 else
1144 ac_cv_prog_gcc=no
1148 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1150 if test $ac_cv_prog_gcc = yes; then
1151 GCC=yes
1152 else
1153 GCC=
1156 ac_test_CFLAGS="${CFLAGS+set}"
1157 ac_save_CFLAGS="$CFLAGS"
1158 CFLAGS=
1159 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1160 echo "configure:1161: checking whether ${CC-cc} accepts -g" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1163 else
1164 echo 'void f(){}' > conftest.c
1165 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1166 ac_cv_prog_cc_g=yes
1167 else
1168 ac_cv_prog_cc_g=no
1170 rm -f conftest*
1174 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1175 if test "$ac_test_CFLAGS" = set; then
1176 CFLAGS="$ac_save_CFLAGS"
1177 elif test $ac_cv_prog_cc_g = yes; then
1178 if test "$GCC" = yes; then
1179 CFLAGS="-g -O2"
1180 else
1181 CFLAGS="-g"
1183 else
1184 if test "$GCC" = yes; then
1185 CFLAGS="-O2"
1186 else
1187 CFLAGS=
1192 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1193 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1194 # different definition of CXX than other directories, since we don't
1195 # depend on libstdc++-v3 having already been built.
1199 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1200 # flags that come in CXX while configuring libjava. They're different
1201 # from those used for all other target libraries. If CXX is set in
1202 # the environment, respect that here.
1203 glibjava_CXX=$CXX
1204 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1206 # Extract the first word of "$ac_prog", so it can be a program name with args.
1207 set dummy $ac_prog; ac_word=$2
1208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_word" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213 if test -n "$glibjava_CXX"; then
1214 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1215 else
1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1217 ac_dummy="$PATH"
1218 for ac_dir in $ac_dummy; do
1219 test -z "$ac_dir" && ac_dir=.
1220 if test -f $ac_dir/$ac_word; then
1221 ac_cv_prog_glibjava_CXX="$ac_prog"
1222 break
1224 done
1225 IFS="$ac_save_ifs"
1228 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1229 if test -n "$glibjava_CXX"; then
1230 echo "$ac_t""$glibjava_CXX" 1>&6
1231 else
1232 echo "$ac_t""no" 1>&6
1235 test -n "$glibjava_CXX" && break
1236 done
1237 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1240 CXX=$glibjava_CXX
1241 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1243 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether we are using GNU C++" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248 cat > conftest.C <<EOF
1249 #ifdef __GNUC__
1250 yes;
1251 #endif
1253 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1254 ac_cv_prog_gxx=yes
1255 else
1256 ac_cv_prog_gxx=no
1260 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1262 if test $ac_cv_prog_gxx = yes; then
1263 GXX=yes
1264 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1265 ac_save_CXXFLAGS="$CXXFLAGS"
1266 CXXFLAGS=
1267 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1268 echo "configure:1269: checking whether ${CXX-g++} accepts -g" >&5
1269 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1271 else
1272 echo 'void f(){}' > conftest.cc
1273 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1274 ac_cv_prog_cxx_g=yes
1275 else
1276 ac_cv_prog_cxx_g=no
1278 rm -f conftest*
1282 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1283 if test "$ac_test_CXXFLAGS" = set; then
1284 CXXFLAGS="$ac_save_CXXFLAGS"
1285 elif test $ac_cv_prog_cxx_g = yes; then
1286 CXXFLAGS="-g -O2"
1287 else
1288 CXXFLAGS="-O2"
1290 else
1291 GXX=
1292 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1296 version=0.0.7
1298 PACKAGE=libjava
1300 VERSION=$version
1302 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1303 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1305 cat >> confdefs.h <<EOF
1306 #define PACKAGE "$PACKAGE"
1309 cat >> confdefs.h <<EOF
1310 #define VERSION "$VERSION"
1315 missing_dir=`cd $ac_aux_dir && pwd`
1316 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1317 echo "configure:1318: checking for working aclocal" >&5
1318 # Run test in a subshell; some versions of sh will print an error if
1319 # an executable is not found, even if stderr is redirected.
1320 # Redirect stdin to placate older versions of autoconf. Sigh.
1321 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1322 ACLOCAL=aclocal
1323 echo "$ac_t""found" 1>&6
1324 else
1325 ACLOCAL="$missing_dir/missing aclocal"
1326 echo "$ac_t""missing" 1>&6
1329 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1330 echo "configure:1331: checking for working autoconf" >&5
1331 # Run test in a subshell; some versions of sh will print an error if
1332 # an executable is not found, even if stderr is redirected.
1333 # Redirect stdin to placate older versions of autoconf. Sigh.
1334 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1335 AUTOCONF=autoconf
1336 echo "$ac_t""found" 1>&6
1337 else
1338 AUTOCONF="$missing_dir/missing autoconf"
1339 echo "$ac_t""missing" 1>&6
1342 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1343 echo "configure:1344: checking for working automake" >&5
1344 # Run test in a subshell; some versions of sh will print an error if
1345 # an executable is not found, even if stderr is redirected.
1346 # Redirect stdin to placate older versions of autoconf. Sigh.
1347 if (automake --version) < /dev/null > /dev/null 2>&1; then
1348 AUTOMAKE=automake
1349 echo "$ac_t""found" 1>&6
1350 else
1351 AUTOMAKE="$missing_dir/missing automake"
1352 echo "$ac_t""missing" 1>&6
1355 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1356 echo "configure:1357: checking for working autoheader" >&5
1357 # Run test in a subshell; some versions of sh will print an error if
1358 # an executable is not found, even if stderr is redirected.
1359 # Redirect stdin to placate older versions of autoconf. Sigh.
1360 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1361 AUTOHEADER=autoheader
1362 echo "$ac_t""found" 1>&6
1363 else
1364 AUTOHEADER="$missing_dir/missing autoheader"
1365 echo "$ac_t""missing" 1>&6
1368 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1369 echo "configure:1370: checking for working makeinfo" >&5
1370 # Run test in a subshell; some versions of sh will print an error if
1371 # an executable is not found, even if stderr is redirected.
1372 # Redirect stdin to placate older versions of autoconf. Sigh.
1373 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1374 MAKEINFO=makeinfo
1375 echo "$ac_t""found" 1>&6
1376 else
1377 MAKEINFO="$missing_dir/missing makeinfo"
1378 echo "$ac_t""missing" 1>&6
1383 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1384 # run it explicitly here, it will be run implicitly before
1385 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1386 # be run before AC_CANONICAL_HOST.
1387 echo $ac_n "checking build system type""... $ac_c" 1>&6
1388 echo "configure:1389: checking build system type" >&5
1390 build_alias=$build
1391 case "$build_alias" in
1392 NONE)
1393 case $nonopt in
1394 NONE) build_alias=$host_alias ;;
1395 *) build_alias=$nonopt ;;
1396 esac ;;
1397 esac
1399 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1400 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403 echo "$ac_t""$build" 1>&6
1406 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1407 set dummy ${ac_tool_prefix}as; ac_word=$2
1408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1409 echo "configure:1410: checking for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413 if test -n "$AS"; then
1414 ac_cv_prog_AS="$AS" # Let the user override the test.
1415 else
1416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1417 ac_dummy="$PATH"
1418 for ac_dir in $ac_dummy; do
1419 test -z "$ac_dir" && ac_dir=.
1420 if test -f $ac_dir/$ac_word; then
1421 ac_cv_prog_AS="${ac_tool_prefix}as"
1422 break
1424 done
1425 IFS="$ac_save_ifs"
1426 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1429 AS="$ac_cv_prog_AS"
1430 if test -n "$AS"; then
1431 echo "$ac_t""$AS" 1>&6
1432 else
1433 echo "$ac_t""no" 1>&6
1438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}ar; ac_word=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445 if test -n "$AR"; then
1446 ac_cv_prog_AR="$AR" # Let the user override the test.
1447 else
1448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1449 ac_dummy="$PATH"
1450 for ac_dir in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir=.
1452 if test -f $ac_dir/$ac_word; then
1453 ac_cv_prog_AR="${ac_tool_prefix}ar"
1454 break
1456 done
1457 IFS="$ac_save_ifs"
1458 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1461 AR="$ac_cv_prog_AR"
1462 if test -n "$AR"; then
1463 echo "$ac_t""$AR" 1>&6
1464 else
1465 echo "$ac_t""no" 1>&6
1470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $ac_word" >&5
1474 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1476 else
1477 if test -n "$RANLIB"; then
1478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1479 else
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1481 ac_dummy="$PATH"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1486 break
1488 done
1489 IFS="$ac_save_ifs"
1492 RANLIB="$ac_cv_prog_RANLIB"
1493 if test -n "$RANLIB"; then
1494 echo "$ac_t""$RANLIB" 1>&6
1495 else
1496 echo "$ac_t""no" 1>&6
1500 if test -z "$ac_cv_prog_RANLIB"; then
1501 if test -n "$ac_tool_prefix"; then
1502 # Extract the first word of "ranlib", so it can be a program name with args.
1503 set dummy ranlib; ac_word=$2
1504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1505 echo "configure:1506: checking for $ac_word" >&5
1506 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509 if test -n "$RANLIB"; then
1510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1511 else
1512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1513 ac_dummy="$PATH"
1514 for ac_dir in $ac_dummy; do
1515 test -z "$ac_dir" && ac_dir=.
1516 if test -f $ac_dir/$ac_word; then
1517 ac_cv_prog_RANLIB="ranlib"
1518 break
1520 done
1521 IFS="$ac_save_ifs"
1522 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1525 RANLIB="$ac_cv_prog_RANLIB"
1526 if test -n "$RANLIB"; then
1527 echo "$ac_t""$RANLIB" 1>&6
1528 else
1529 echo "$ac_t""no" 1>&6
1532 else
1533 RANLIB=":"
1538 # Find a good install program. We prefer a C program (faster),
1539 # so one script is as good as another. But avoid the broken or
1540 # incompatible versions:
1541 # SysV /etc/install, /usr/sbin/install
1542 # SunOS /usr/etc/install
1543 # IRIX /sbin/install
1544 # AIX /bin/install
1545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1548 # ./install, which can be erroneously created by make from ./install.sh.
1549 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1550 echo "configure:1551: checking for a BSD compatible install" >&5
1551 if test -z "$INSTALL"; then
1552 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1554 else
1555 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1556 for ac_dir in $PATH; do
1557 # Account for people who put trailing slashes in PATH elements.
1558 case "$ac_dir/" in
1559 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1561 # OSF1 and SCO ODT 3.0 have their own names for install.
1562 # Don't use installbsd from OSF since it installs stuff as root
1563 # by default.
1564 for ac_prog in ginstall scoinst install; do
1565 if test -f $ac_dir/$ac_prog; then
1566 if test $ac_prog = install &&
1567 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1568 # AIX install. It has an incompatible calling convention.
1570 else
1571 ac_cv_path_install="$ac_dir/$ac_prog -c"
1572 break 2
1575 done
1577 esac
1578 done
1579 IFS="$ac_save_IFS"
1582 if test "${ac_cv_path_install+set}" = set; then
1583 INSTALL="$ac_cv_path_install"
1584 else
1585 # As a last resort, use the slow shell script. We don't cache a
1586 # path for INSTALL within a source directory, because that will
1587 # break other packages using the cache if that directory is
1588 # removed, or if the path is relative.
1589 INSTALL="$ac_install_sh"
1592 echo "$ac_t""$INSTALL" 1>&6
1594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1595 # It thinks the first close brace ends the variable substitution.
1596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1603 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1604 echo "configure:1605: checking whether to enable maintainer-specific portions of Makefiles" >&5
1605 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1606 if test "${enable_maintainer_mode+set}" = set; then
1607 enableval="$enable_maintainer_mode"
1608 USE_MAINTAINER_MODE=$enableval
1609 else
1610 USE_MAINTAINER_MODE=no
1613 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1616 if test $USE_MAINTAINER_MODE = yes; then
1617 MAINTAINER_MODE_TRUE=
1618 MAINTAINER_MODE_FALSE='#'
1619 else
1620 MAINTAINER_MODE_TRUE='#'
1621 MAINTAINER_MODE_FALSE=
1623 MAINT=$MAINTAINER_MODE_TRUE
1627 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1628 # at least currently, we never actually build a program, so we never
1629 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1630 # fails, because we are probably configuring with a cross compiler
1631 # which cant create executables. So we include AC_EXEEXT to keep
1632 # automake happy, but we don't execute it, since we don't care about
1633 # the result.
1634 if false; then
1635 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1636 # to nothing, so nothing would remain between `then' and `fi' if it
1637 # were not for the `:' below.
1641 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1642 echo "configure:1643: checking for executable suffix" >&5
1643 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1647 ac_cv_exeext=.exe
1648 else
1649 rm -f conftest*
1650 echo 'int main () { return 0; }' > conftest.$ac_ext
1651 ac_cv_exeext=
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1653 for file in conftest.*; do
1654 case $file in
1655 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1656 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1657 esac
1658 done
1659 else
1660 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1662 rm -f conftest*
1663 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1667 EXEEXT=""
1668 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1669 echo "$ac_t""${ac_cv_exeext}" 1>&6
1670 ac_exeext=$EXEEXT
1674 # configure.host sets the following important variables
1675 # libgcj_cflags - host specific C compiler flags
1676 # libgcj_cxxflags - host specific C++ compiler flags
1677 # libgcj_javaflags - host specific Java compiler flags
1679 libgcj_cflags=
1680 libgcj_cxxflags=
1681 libgcj_javaflags=
1683 . ${srcdir}/configure.host
1685 LIBGCJ_CFLAGS="${libgcj_cflags}"
1686 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1687 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1697 # Only use libltdl for native builds.
1698 if test -z "${with_cross_host}"; then
1699 case $enable_ltdl_convenience in
1700 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1701 "") enable_ltdl_convenience=yes
1702 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1703 esac
1704 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1705 INCLTDL='-I${top_srcdir}/''libltdl'
1708 DIRLTDL=libltdl
1709 cat >> confdefs.h <<\EOF
1710 #define USE_LTDL 1
1713 # Sigh. Libtool's macro doesn't do the right thing.
1714 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1715 # FIXME: this is a hack.
1716 sub_auxdir="`cd $ac_aux_dir && pwd`"
1717 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1722 # Check whether --enable-shared or --disable-shared was given.
1723 if test "${enable_shared+set}" = set; then
1724 enableval="$enable_shared"
1725 p=${PACKAGE-default}
1726 case $enableval in
1727 yes) enable_shared=yes ;;
1728 no) enable_shared=no ;;
1730 enable_shared=no
1731 # Look at the argument we got. We use all the common list separators.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1733 for pkg in $enableval; do
1734 if test "X$pkg" = "X$p"; then
1735 enable_shared=yes
1737 done
1738 IFS="$ac_save_ifs"
1740 esac
1741 else
1742 enable_shared=yes
1745 # Check whether --enable-static or --disable-static was given.
1746 if test "${enable_static+set}" = set; then
1747 enableval="$enable_static"
1748 p=${PACKAGE-default}
1749 case $enableval in
1750 yes) enable_static=yes ;;
1751 no) enable_static=no ;;
1753 enable_static=no
1754 # Look at the argument we got. We use all the common list separators.
1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1756 for pkg in $enableval; do
1757 if test "X$pkg" = "X$p"; then
1758 enable_static=yes
1760 done
1761 IFS="$ac_save_ifs"
1763 esac
1764 else
1765 enable_static=yes
1768 # Check whether --enable-fast-install or --disable-fast-install was given.
1769 if test "${enable_fast_install+set}" = set; then
1770 enableval="$enable_fast_install"
1771 p=${PACKAGE-default}
1772 case $enableval in
1773 yes) enable_fast_install=yes ;;
1774 no) enable_fast_install=no ;;
1776 enable_fast_install=no
1777 # Look at the argument we got. We use all the common list separators.
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1779 for pkg in $enableval; do
1780 if test "X$pkg" = "X$p"; then
1781 enable_fast_install=yes
1783 done
1784 IFS="$ac_save_ifs"
1786 esac
1787 else
1788 enable_fast_install=yes
1791 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1792 if test "${with_gnu_ld+set}" = set; then
1793 withval="$with_gnu_ld"
1794 test "$withval" = no || with_gnu_ld=yes
1795 else
1796 with_gnu_ld=no
1799 ac_prog=ld
1800 if test "$GCC" = yes; then
1801 # Check if gcc -print-prog-name=ld gives a path.
1802 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1803 echo "configure:1804: checking for ld used by GCC" >&5
1804 case $host in
1805 *-*-mingw*)
1806 # gcc leaves a trailing carriage return which upsets mingw
1807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1810 esac
1811 case $ac_prog in
1812 # Accept absolute paths.
1813 [\\/]* | [A-Za-z]:[\\/]*)
1814 re_direlt='/[^/][^/]*/\.\./'
1815 # Canonicalize the path of ld
1816 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1817 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1818 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1819 done
1820 test -z "$LD" && LD="$ac_prog"
1823 # If it fails, then pretend we aren't using GCC.
1824 ac_prog=ld
1827 # If it is relative, then search for the first ld in PATH.
1828 with_gnu_ld=unknown
1830 esac
1831 elif test "$with_gnu_ld" = yes; then
1832 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1833 echo "configure:1834: checking for GNU ld" >&5
1834 else
1835 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1836 echo "configure:1837: checking for non-GNU ld" >&5
1838 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1840 else
1841 if test -z "$LD"; then
1842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1843 for ac_dir in $PATH; do
1844 test -z "$ac_dir" && ac_dir=.
1845 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1846 lt_cv_path_LD="$ac_dir/$ac_prog"
1847 # Check to see if the program is GNU ld. I'd rather use --version,
1848 # but apparently some GNU ld's only accept -v.
1849 # Break only if it was the GNU/non-GNU ld that we prefer.
1850 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1851 test "$with_gnu_ld" != no && break
1852 else
1853 test "$with_gnu_ld" != yes && break
1856 done
1857 IFS="$ac_save_ifs"
1858 else
1859 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1863 LD="$lt_cv_path_LD"
1864 if test -n "$LD"; then
1865 echo "$ac_t""$LD" 1>&6
1866 else
1867 echo "$ac_t""no" 1>&6
1869 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1870 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1871 echo "configure:1872: checking if the linker ($LD) is GNU ld" >&5
1872 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1874 else
1875 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1876 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1877 lt_cv_prog_gnu_ld=yes
1878 else
1879 lt_cv_prog_gnu_ld=no
1883 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1884 with_gnu_ld=$lt_cv_prog_gnu_ld
1887 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1888 echo "configure:1889: checking for $LD option to reload object files" >&5
1889 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892 lt_cv_ld_reload_flag='-r'
1895 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1896 reload_flag=$lt_cv_ld_reload_flag
1897 test -n "$reload_flag" && reload_flag=" $reload_flag"
1899 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1900 echo "configure:1901: checking for BSD-compatible nm" >&5
1901 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1903 else
1904 if test -n "$NM"; then
1905 # Let the user override the test.
1906 lt_cv_path_NM="$NM"
1907 else
1908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1909 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1910 test -z "$ac_dir" && ac_dir=.
1911 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1912 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1913 # Check to see if the nm accepts a BSD-compat flag.
1914 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1915 # nm: unknown option "B" ignored
1916 # Tru64's nm complains that /dev/null is an invalid object file
1917 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1918 lt_cv_path_NM="$tmp_nm -B"
1919 break
1920 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1921 lt_cv_path_NM="$tmp_nm -p"
1922 break
1923 else
1924 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1925 continue # so that we can try to find one that supports BSD flags
1928 done
1929 IFS="$ac_save_ifs"
1930 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1934 NM="$lt_cv_path_NM"
1935 echo "$ac_t""$NM" 1>&6
1937 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1938 echo "configure:1939: checking how to recognise dependant libraries" >&5
1939 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942 lt_cv_file_magic_cmd='$MAGIC_CMD'
1943 lt_cv_file_magic_test_file=
1944 lt_cv_deplibs_check_method='unknown'
1945 # Need to set the preceding variable on all platforms that support
1946 # interlibrary dependencies.
1947 # 'none' -- dependencies not supported.
1948 # `unknown' -- same as none, but documents that we really don't know.
1949 # 'pass_all' -- all dependencies passed with no checks.
1950 # 'test_compile' -- check by making test program.
1951 # 'file_magic [regex]' -- check by looking for files in library path
1952 # which responds to the $file_magic_cmd with a given egrep regex.
1953 # If you have `file' or equivalent on your system and you're not sure
1954 # whether `pass_all' will *always* work, you probably want this one.
1956 case $host_os in
1957 aix*)
1958 lt_cv_deplibs_check_method=pass_all
1961 beos*)
1962 lt_cv_deplibs_check_method=pass_all
1965 bsdi4*)
1966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1967 lt_cv_file_magic_cmd='/usr/bin/file -L'
1968 lt_cv_file_magic_test_file=/shlib/libc.so
1971 cygwin* | mingw* |pw32*)
1972 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1973 lt_cv_file_magic_cmd='$OBJDUMP -f'
1976 darwin* | rhapsody*)
1977 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1978 lt_cv_file_magic_cmd='/usr/bin/file -L'
1979 case "$host_os" in
1980 rhapsody* | darwin1.012)
1981 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1983 *) # Darwin 1.3 on
1984 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1986 esac
1989 freebsd* )
1990 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1991 case $host_cpu in
1992 i*86 )
1993 # Not sure whether the presence of OpenBSD here was a mistake.
1994 # Let's accept both of them until this is cleared up.
1995 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1996 lt_cv_file_magic_cmd=/usr/bin/file
1997 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1999 esac
2000 else
2001 lt_cv_deplibs_check_method=pass_all
2005 gnu*)
2006 lt_cv_deplibs_check_method=pass_all
2009 hpux10.20*|hpux11*)
2010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2011 lt_cv_file_magic_cmd=/usr/bin/file
2012 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2015 irix5* | irix6*)
2016 case $host_os in
2017 irix5*)
2018 # this will be overridden with pass_all, but let us keep it just in case
2019 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2022 case $LD in
2023 *-32|*"-32 ") libmagic=32-bit;;
2024 *-n32|*"-n32 ") libmagic=N32;;
2025 *-64|*"-64 ") libmagic=64-bit;;
2026 *) libmagic=never-match;;
2027 esac
2028 # this will be overridden with pass_all, but let us keep it just in case
2029 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2031 esac
2032 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2033 lt_cv_deplibs_check_method=pass_all
2036 # This must be Linux ELF.
2037 linux-gnu*)
2038 case $host_cpu in
2039 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2040 lt_cv_deplibs_check_method=pass_all ;;
2042 # glibc up to 2.1.1 does not perform some relocations on ARM
2043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2044 esac
2045 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2048 netbsd*)
2049 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2050 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2051 else
2052 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2056 newsos6)
2057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2058 lt_cv_file_magic_cmd=/usr/bin/file
2059 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2062 osf3* | osf4* | osf5*)
2063 # this will be overridden with pass_all, but let us keep it just in case
2064 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2065 lt_cv_file_magic_test_file=/shlib/libc.so
2066 lt_cv_deplibs_check_method=pass_all
2069 sco3.2v5*)
2070 lt_cv_deplibs_check_method=pass_all
2073 solaris*)
2074 lt_cv_deplibs_check_method=pass_all
2075 lt_cv_file_magic_test_file=/lib/libc.so
2078 sysv5uw[78]* | sysv4*uw2*)
2079 lt_cv_deplibs_check_method=pass_all
2082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2083 case $host_vendor in
2084 ncr)
2085 lt_cv_deplibs_check_method=pass_all
2087 motorola)
2088 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]'
2089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2091 esac
2093 esac
2097 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2098 file_magic_cmd=$lt_cv_file_magic_cmd
2099 deplibs_check_method=$lt_cv_deplibs_check_method
2101 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2102 echo "configure:2103: checking for object suffix" >&5
2103 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106 rm -f conftest*
2107 echo 'int i = 1;' > conftest.$ac_ext
2108 if { (eval echo configure:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2109 for ac_file in conftest.*; do
2110 case $ac_file in
2111 *.c) ;;
2112 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2113 esac
2114 done
2115 else
2116 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2118 rm -f conftest*
2121 echo "$ac_t""$ac_cv_objext" 1>&6
2122 OBJEXT=$ac_cv_objext
2123 ac_objext=$ac_cv_objext
2125 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2127 # Only perform the check for file, if the check method requires it
2128 case $deplibs_check_method in
2129 file_magic*)
2130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2131 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2132 echo "configure:2133: checking for ${ac_tool_prefix}file" >&5
2133 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2135 else
2136 case $MAGIC_CMD in
2138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2140 ?:/*)
2141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2144 ac_save_MAGIC_CMD="$MAGIC_CMD"
2145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2146 ac_dummy="/usr/bin:$PATH"
2147 for ac_dir in $ac_dummy; do
2148 test -z "$ac_dir" && ac_dir=.
2149 if test -f $ac_dir/${ac_tool_prefix}file; then
2150 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2151 if test -n "$file_magic_test_file"; then
2152 case $deplibs_check_method in
2153 "file_magic "*)
2154 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2156 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2157 egrep "$file_magic_regex" > /dev/null; then
2159 else
2160 cat <<EOF 1>&2
2162 *** Warning: the command libtool uses to detect shared libraries,
2163 *** $file_magic_cmd, produces output that libtool cannot recognize.
2164 *** The result is that libtool may fail to recognize shared libraries
2165 *** as such. This will affect the creation of libtool libraries that
2166 *** depend on shared libraries, but programs linked with such libtool
2167 *** libraries will work regardless of this problem. Nevertheless, you
2168 *** may want to report the problem to your system manager and/or to
2169 *** bug-libtool@gnu.org
2172 fi ;;
2173 esac
2175 break
2177 done
2178 IFS="$ac_save_ifs"
2179 MAGIC_CMD="$ac_save_MAGIC_CMD"
2181 esac
2184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2185 if test -n "$MAGIC_CMD"; then
2186 echo "$ac_t""$MAGIC_CMD" 1>&6
2187 else
2188 echo "$ac_t""no" 1>&6
2191 if test -z "$lt_cv_path_MAGIC_CMD"; then
2192 if test -n "$ac_tool_prefix"; then
2193 echo $ac_n "checking for file""... $ac_c" 1>&6
2194 echo "configure:2195: checking for file" >&5
2195 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2197 else
2198 case $MAGIC_CMD in
2200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2202 ?:/*)
2203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2206 ac_save_MAGIC_CMD="$MAGIC_CMD"
2207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2208 ac_dummy="/usr/bin:$PATH"
2209 for ac_dir in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir=.
2211 if test -f $ac_dir/file; then
2212 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2213 if test -n "$file_magic_test_file"; then
2214 case $deplibs_check_method in
2215 "file_magic "*)
2216 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2218 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2219 egrep "$file_magic_regex" > /dev/null; then
2221 else
2222 cat <<EOF 1>&2
2224 *** Warning: the command libtool uses to detect shared libraries,
2225 *** $file_magic_cmd, produces output that libtool cannot recognize.
2226 *** The result is that libtool may fail to recognize shared libraries
2227 *** as such. This will affect the creation of libtool libraries that
2228 *** depend on shared libraries, but programs linked with such libtool
2229 *** libraries will work regardless of this problem. Nevertheless, you
2230 *** may want to report the problem to your system manager and/or to
2231 *** bug-libtool@gnu.org
2234 fi ;;
2235 esac
2237 break
2239 done
2240 IFS="$ac_save_ifs"
2241 MAGIC_CMD="$ac_save_MAGIC_CMD"
2243 esac
2246 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2247 if test -n "$MAGIC_CMD"; then
2248 echo "$ac_t""$MAGIC_CMD" 1>&6
2249 else
2250 echo "$ac_t""no" 1>&6
2253 else
2254 MAGIC_CMD=:
2260 esac
2262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_word" >&5
2266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2268 else
2269 if test -n "$RANLIB"; then
2270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2271 else
2272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2273 ac_dummy="$PATH"
2274 for ac_dir in $ac_dummy; do
2275 test -z "$ac_dir" && ac_dir=.
2276 if test -f $ac_dir/$ac_word; then
2277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2278 break
2280 done
2281 IFS="$ac_save_ifs"
2284 RANLIB="$ac_cv_prog_RANLIB"
2285 if test -n "$RANLIB"; then
2286 echo "$ac_t""$RANLIB" 1>&6
2287 else
2288 echo "$ac_t""no" 1>&6
2292 if test -z "$ac_cv_prog_RANLIB"; then
2293 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "ranlib", so it can be a program name with args.
2295 set dummy ranlib; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301 if test -n "$RANLIB"; then
2302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2303 else
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 ac_dummy="$PATH"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_RANLIB="ranlib"
2310 break
2312 done
2313 IFS="$ac_save_ifs"
2314 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2317 RANLIB="$ac_cv_prog_RANLIB"
2318 if test -n "$RANLIB"; then
2319 echo "$ac_t""$RANLIB" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2324 else
2325 RANLIB=":"
2329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2330 set dummy ${ac_tool_prefix}strip; ac_word=$2
2331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_word" >&5
2333 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2335 else
2336 if test -n "$STRIP"; then
2337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2338 else
2339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2340 ac_dummy="$PATH"
2341 for ac_dir in $ac_dummy; do
2342 test -z "$ac_dir" && ac_dir=.
2343 if test -f $ac_dir/$ac_word; then
2344 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2345 break
2347 done
2348 IFS="$ac_save_ifs"
2351 STRIP="$ac_cv_prog_STRIP"
2352 if test -n "$STRIP"; then
2353 echo "$ac_t""$STRIP" 1>&6
2354 else
2355 echo "$ac_t""no" 1>&6
2359 if test -z "$ac_cv_prog_STRIP"; then
2360 if test -n "$ac_tool_prefix"; then
2361 # Extract the first word of "strip", so it can be a program name with args.
2362 set dummy strip; ac_word=$2
2363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2364 echo "configure:2365: checking for $ac_word" >&5
2365 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2367 else
2368 if test -n "$STRIP"; then
2369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2370 else
2371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2372 ac_dummy="$PATH"
2373 for ac_dir in $ac_dummy; do
2374 test -z "$ac_dir" && ac_dir=.
2375 if test -f $ac_dir/$ac_word; then
2376 ac_cv_prog_STRIP="strip"
2377 break
2379 done
2380 IFS="$ac_save_ifs"
2381 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2384 STRIP="$ac_cv_prog_STRIP"
2385 if test -n "$STRIP"; then
2386 echo "$ac_t""$STRIP" 1>&6
2387 else
2388 echo "$ac_t""no" 1>&6
2391 else
2392 STRIP=":"
2397 # Check for any special flags to pass to ltconfig.
2398 libtool_flags="--cache-file=$cache_file"
2399 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2400 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2401 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2402 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2403 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2404 libtool_flags="$libtool_flags --enable-dlopen"
2406 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2407 if test "${enable_libtool_lock+set}" = set; then
2408 enableval="$enable_libtool_lock"
2412 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2413 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2415 # Check whether --with-pic or --without-pic was given.
2416 if test "${with_pic+set}" = set; then
2417 withval="$with_pic"
2418 pic_mode="$withval"
2419 else
2420 pic_mode=default
2423 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2424 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2426 # Some flags need to be propagated to the compiler or linker for good
2427 # libtool support.
2428 case $host in
2429 *-*-irix6*)
2430 # Find out which ABI we are using.
2431 echo '#line 2432 "configure"' > conftest.$ac_ext
2432 if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 case `/usr/bin/file conftest.$ac_objext` in
2434 *32-bit*)
2435 LD="${LD-ld} -32"
2437 *N32*)
2438 LD="${LD-ld} -n32"
2440 *64-bit*)
2441 LD="${LD-ld} -64"
2443 esac
2445 rm -rf conftest*
2448 *-*-sco3.2v5*)
2449 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2450 SAVE_CFLAGS="$CFLAGS"
2451 CFLAGS="$CFLAGS -belf"
2452 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2453 echo "configure:2454: checking whether the C compiler needs -belf" >&5
2454 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2456 else
2458 ac_ext=c
2459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2463 cross_compiling=$ac_cv_prog_cc_cross
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2469 int main() {
2471 ; return 0; }
2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2474 rm -rf conftest*
2475 lt_cv_cc_needs_belf=yes
2476 else
2477 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 rm -rf conftest*
2480 lt_cv_cc_needs_belf=no
2482 rm -f conftest*
2483 ac_ext=c
2484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2485 ac_cpp='$CPP $CPPFLAGS'
2486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2488 cross_compiling=$ac_cv_prog_cc_cross
2492 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2493 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2494 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2495 CFLAGS="$SAVE_CFLAGS"
2500 esac
2502 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2503 echo "configure:2504: checking how to run the C++ preprocessor" >&5
2504 if test -z "$CXXCPP"; then
2505 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508 ac_ext=C
2509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2510 ac_cpp='$CXXCPP $CPPFLAGS'
2511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2513 cross_compiling=$ac_cv_prog_cxx_cross
2514 CXXCPP="${CXX-g++} -E"
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 #include <stdlib.h>
2520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2521 { (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2523 if test -z "$ac_err"; then
2525 else
2526 echo "$ac_err" >&5
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 rm -rf conftest*
2530 CXXCPP=/lib/cpp
2532 rm -f conftest*
2533 ac_cv_prog_CXXCPP="$CXXCPP"
2534 ac_ext=c
2535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2539 cross_compiling=$ac_cv_prog_cc_cross
2542 CXXCPP="$ac_cv_prog_CXXCPP"
2543 echo "$ac_t""$CXXCPP" 1>&6
2546 # Save cache, so that ltconfig can load it
2547 cat > confcache <<\EOF
2548 # This file is a shell script that caches the results of configure
2549 # tests run on this system so they can be shared between configure
2550 # scripts and configure runs. It is not useful on other systems.
2551 # If it contains results you don't want to keep, you may remove or edit it.
2553 # By default, configure uses ./config.cache as the cache file,
2554 # creating it if it does not exist already. You can give configure
2555 # the --cache-file=FILE option to use a different cache file; that is
2556 # what configure does when it calls configure scripts in
2557 # subdirectories, so they share the cache.
2558 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2559 # config.status only pays attention to the cache file if you give it the
2560 # --recheck option to rerun configure.
2563 # The following way of writing the cache mishandles newlines in values,
2564 # but we know of no workaround that is simple, portable, and efficient.
2565 # So, don't put newlines in cache variables' values.
2566 # Ultrix sh set writes to stderr and can't be redirected directly,
2567 # and sets the high bit in the cache file unless we assign to the vars.
2568 (set) 2>&1 |
2569 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2570 *ac_space=\ *)
2571 # `set' does not quote correctly, so add quotes (double-quote substitution
2572 # turns \\\\ into \\, and sed turns \\ into \).
2573 sed -n \
2574 -e "s/'/'\\\\''/g" \
2575 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2578 # `set' quotes correctly as required by POSIX, so do not add quotes.
2579 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2581 esac >> confcache
2582 if cmp -s $cache_file confcache; then
2584 else
2585 if test -w $cache_file; then
2586 echo "updating cache $cache_file"
2587 cat confcache > $cache_file
2588 else
2589 echo "not updating unwritable cache $cache_file"
2592 rm -f confcache
2595 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2596 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2597 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2598 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2599 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2600 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2601 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2602 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2603 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2604 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2606 # Reload cache, that may have been modified by ltconfig
2607 if test -r "$cache_file"; then
2608 echo "loading cache $cache_file"
2609 . $cache_file
2610 else
2611 echo "creating cache $cache_file"
2612 > $cache_file
2616 # This can be used to rebuild libtool when needed
2617 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2619 # Always use our own libtool.
2620 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2622 # Redirect the config.log output again, so that the ltconfig log is not
2623 # clobbered by the next message.
2624 exec 5>>./config.log
2628 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2629 lt_save_CC="$CC"
2630 lt_save_CFLAGS="$CFLAGS"
2631 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2632 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2633 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2634 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2635 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2636 deplibs_check_method="$deplibs_check_method" \
2637 file_magic_cmd="$file_magic_cmd" \
2638 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2639 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2640 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2641 CC="$lt_save_CC"
2642 CFLAGS="$lt_save_CFLAGS"
2644 # Redirect the config.log output again, so that the ltconfig log is not
2645 # clobbered by the next message.
2646 exec 5>>./config.log
2653 subdirs="$DIRLTDL"
2656 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2657 COMPPATH=.
2658 else
2659 COMPPATH=..
2665 if test -d $srcdir/testsuite; then
2666 TESTSUBDIR_TRUE=
2667 TESTSUBDIR_FALSE='#'
2668 else
2669 TESTSUBDIR_TRUE='#'
2670 TESTSUBDIR_FALSE=
2673 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2674 if test "${enable_getenv_properties+set}" = set; then
2675 enableval="$enable_getenv_properties"
2680 if test -z "$enable_getenv_properties"; then
2681 enable_getenv_properties=${enable_getenv_properties_default-yes}
2683 if test "$enable_getenv_properties" = no; then
2684 cat >> confdefs.h <<\EOF
2685 #define DISABLE_GETENV_PROPERTIES 1
2690 if test -z "$enable_main_args"; then
2691 enable_main_args=${enable_main_args_default-yes}
2693 if test "$enable_main_args" = no; then
2694 cat >> confdefs.h <<\EOF
2695 #define DISABLE_MAIN_ARGS 1
2701 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2702 if test "${enable_hash_synchronization+set}" = set; then
2703 enableval="$enable_hash_synchronization"
2708 if test -z "$enable_hash_synchronization"; then
2709 enable_hash_synchronization=$enable_hash_synchronization_default
2713 LIBGCJDEBUG="false"
2715 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2716 if test "${enable_libgcj_debug+set}" = set; then
2717 enableval="$enable_libgcj_debug"
2718 if test "$enable_libgcj_debug" = yes; then
2719 cat >> confdefs.h <<\EOF
2720 #define DEBUG 1
2723 LIBGCJDEBUG="true"
2728 # Check whether --enable-interpreter or --disable-interpreter was given.
2729 if test "${enable_interpreter+set}" = set; then
2730 enableval="$enable_interpreter"
2731 if test "$enable_interpreter" = yes; then
2732 # This can also be set in configure.host.
2733 libgcj_interpreter=yes
2734 elif test "$enable_interpreter" = no; then
2735 libgcj_interpreter=no
2740 if test "$libgcj_interpreter" = yes; then
2741 cat >> confdefs.h <<\EOF
2742 #define INTERPRETER 1
2747 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2748 echo "configure:2749: checking for exception model to use" >&5
2750 ac_ext=C
2751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2752 ac_cpp='$CXXCPP $CPPFLAGS'
2753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2755 cross_compiling=$ac_cv_prog_cxx_cross
2757 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2758 if test "${enable_sjlj_exceptions+set}" = set; then
2759 enableval="$enable_sjlj_exceptions"
2761 else
2762 cat > conftest.$ac_ext << EOF
2763 #line 2764 "configure"
2764 struct S { ~S(); };
2765 void bar();
2766 void foo()
2768 S s;
2769 bar();
2772 old_CXXFLAGS="$CXXFLAGS"
2773 CXXFLAGS=-S
2774 if { (eval echo configure:2775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2775 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2776 enable_sjlj_exceptions=yes
2777 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2778 enable_sjlj_exceptions=no
2781 CXXFLAGS="$old_CXXFLAGS"
2782 rm -f conftest*
2785 if test x$enable_sjlj_exceptions = xyes; then
2786 cat >> confdefs.h <<\EOF
2787 #define SJLJ_EXCEPTIONS 1
2790 ac_exception_model_name=sjlj
2791 elif test x$enable_sjlj_exceptions = xno; then
2792 ac_exception_model_name="call frame"
2793 else
2794 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2796 ac_ext=c
2797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2801 cross_compiling=$ac_cv_prog_cc_cross
2803 echo "$ac_t""$ac_exception_model_name" 1>&6
2805 # Check whether --enable-java-net or --disable-java-net was given.
2806 if test "${enable_java_net+set}" = set; then
2807 enableval="$enable_java_net"
2812 if test -z "$enable_java_net"; then
2813 enable_java_net=${enable_java_net_default-yes}
2815 if test "$enable_java_net" = no; then
2816 cat >> confdefs.h <<\EOF
2817 #define DISABLE_JAVA_NET 1
2822 # Check whether --with-libffi or --without-libffi was given.
2823 if test "${with_libffi+set}" = set; then
2824 withval="$with_libffi"
2826 else
2827 with_libffi=${with_libffi_default-yes}
2831 LIBFFI=
2832 LIBFFIINCS=
2833 if test "$with_libffi" != no; then
2834 cat >> confdefs.h <<\EOF
2835 #define USE_LIBFFI 1
2838 LIBFFI=../libffi/libfficonvenience.la
2839 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2844 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2845 if test "${enable_jvmpi+set}" = set; then
2846 enableval="$enable_jvmpi"
2851 if test "$enable_jvmpi" != no; then
2852 cat >> confdefs.h <<\EOF
2853 #define ENABLE_JVMPI 1
2858 TARGET_ECOS=${PROCESS-"no"}
2859 # Check whether --with-ecos or --without-ecos was given.
2860 if test "${with_ecos+set}" = set; then
2861 withval="$with_ecos"
2862 TARGET_ECOS="$with_ecos"
2867 PLATFORMOBJS=
2868 case "$TARGET_ECOS" in
2869 no) case "$host" in
2870 *mingw*)
2871 PLATFORM=Win32
2872 PLATFORMOBJS=win32.lo
2873 PLATFORMH=win32.h
2876 PLATFORM=Posix
2877 PLATFORMOBJS=posix.lo
2878 PLATFORMH=posix.h
2880 esac
2883 PLATFORM=Ecos
2884 cat >> confdefs.h <<\EOF
2885 #define ECOS 1
2888 PLATFORMOBJS=posix.lo
2889 PLATFORMH=posix.h
2891 esac
2895 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2896 echo "configure:2897: checking how to run the C preprocessor" >&5
2897 # On Suns, sometimes $CPP names a directory.
2898 if test -n "$CPP" && test -d "$CPP"; then
2899 CPP=
2901 if test -z "$CPP"; then
2902 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2904 else
2905 # This must be in double quotes, not single quotes, because CPP may get
2906 # substituted into the Makefile and "${CC-cc}" will confuse make.
2907 CPP="${CC-cc} -E"
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp.
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 #include <assert.h>
2914 Syntax Error
2916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2917 { (eval echo configure:2918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2919 if test -z "$ac_err"; then
2921 else
2922 echo "$ac_err" >&5
2923 echo "configure: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2925 rm -rf conftest*
2926 CPP="${CC-cc} -E -traditional-cpp"
2927 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 #include <assert.h>
2931 Syntax Error
2933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2934 { (eval echo configure:2935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2936 if test -z "$ac_err"; then
2938 else
2939 echo "$ac_err" >&5
2940 echo "configure: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2942 rm -rf conftest*
2943 CPP="${CC-cc} -nologo -E"
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 #include <assert.h>
2948 Syntax Error
2950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2951 { (eval echo configure:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2953 if test -z "$ac_err"; then
2955 else
2956 echo "$ac_err" >&5
2957 echo "configure: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2959 rm -rf conftest*
2960 CPP=/lib/cpp
2962 rm -f conftest*
2964 rm -f conftest*
2966 rm -f conftest*
2967 ac_cv_prog_CPP="$CPP"
2969 CPP="$ac_cv_prog_CPP"
2970 else
2971 ac_cv_prog_CPP="$CPP"
2973 echo "$ac_t""$CPP" 1>&6
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <stdint.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 <inttypes.h>
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996 egrep "uint32_t" >/dev/null 2>&1; then
2997 rm -rf conftest*
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_INT32_DEFINED 1
3003 rm -f conftest*
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <sys/types.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*
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #include <sys/config.h>
3025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3026 egrep "u_int32_t" >/dev/null 2>&1; then
3027 rm -rf conftest*
3028 cat >> confdefs.h <<\EOF
3029 #define HAVE_BSD_INT32_DEFINED 1
3033 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 "mktime" >/dev/null 2>&1; then
3044 rm -rf conftest*
3045 cat >> confdefs.h <<\EOF
3046 #define HAVE_MKTIME 1
3050 rm -f conftest*
3052 cat > conftest.$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 #include <time.h>
3057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3058 egrep "localtime" >/dev/null 2>&1; then
3059 rm -rf conftest*
3060 cat >> confdefs.h <<\EOF
3061 #define HAVE_LOCALTIME 1
3065 rm -f conftest*
3068 test -d java || mkdir java
3069 test -d java/io || mkdir java/io
3070 test -d gnu || mkdir gnu
3074 test -d java/lang || mkdir java/lang
3078 case "${host}" in
3079 *mingw*)
3080 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3083 SYSTEMSPEC=
3085 esac
3088 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3091 # Check whether --with-system-zlib or --without-system-zlib was given.
3092 if test "${with_system_zlib+set}" = set; then
3093 withval="$with_system_zlib"
3097 ZLIBSPEC=
3099 ZLIBTESTSPEC=
3102 libsubdir=.libs
3104 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3105 echo "configure:3106: checking for garbage collector to use" >&5
3106 # Check whether --enable-java-gc or --disable-java-gc was given.
3107 if test "${enable_java_gc+set}" = set; then
3108 enableval="$enable_java_gc"
3110 GC=$enableval
3111 else
3112 GC=boehm
3115 GCLIBS=
3116 GCINCS=
3117 GCDEPS=
3118 GCOBJS=
3119 GCSPEC=
3120 JC1GCSPEC=
3121 GCTESTSPEC=
3122 case "$GC" in
3123 boehm)
3124 echo "$ac_t""boehm" 1>&6
3125 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3126 # We include the path to the boehm-gc build directory.
3127 # See Makefile.am to understand why.
3128 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3129 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3130 GCSPEC='-lgcjgc'
3131 JC1GCSPEC='-fuse-boehm-gc'
3132 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3133 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3134 GCOBJS=boehm.lo
3135 GCHDR=boehm-gc.h
3136 cat >> confdefs.h <<\EOF
3137 #define HAVE_BOEHM_GC 1
3142 echo "$ac_t""none" 1>&6
3143 GCOBJS=nogc.lo
3144 GCHDR=no-gc.h
3147 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3149 esac
3160 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3161 echo "configure:3162: checking for thread model used by GCC" >&5
3162 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3163 echo "$ac_t""$THREADS" 1>&6
3165 case "$THREADS" in
3166 no | none | single)
3167 THREADS=none
3169 posix | pthreads)
3170 THREADS=posix
3171 case "$host" in
3172 *-*-linux*)
3173 cat >> confdefs.h <<\EOF
3174 #define LINUX_THREADS 1
3178 esac
3180 win32)
3182 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3183 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3186 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3188 esac
3190 THREADLIBS=
3191 THREADINCS=
3192 THREADDEPS=
3193 THREADOBJS=
3194 THREADH=
3195 THREADSPEC=
3196 case "$THREADS" in
3197 posix)
3198 case "$host" in
3199 *-*-cygwin*)
3200 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3203 *-*-freebsd[1234]*)
3205 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3206 # merely adds pthread_* functions) but it does have a -pthread switch
3207 # which is required at link-time to select -lc_r *instead* of -lc.
3208 THREADLIBS=-pthread
3209 # Don't set THREADSPEC here as might be expected since -pthread is
3210 # not processed when found within a spec file, it must come from
3211 # the command line. For now, the user must provide the -pthread
3212 # switch to link code compiled with gcj. In future, consider adding
3213 # support for weak references to pthread_* functions ala gthr.h API.
3214 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3216 *-*-freebsd*)
3217 # FreeBSD 5 implements a model much closer to other modern UNIX
3218 # which support threads. However, it still does not support
3219 # -lpthread.
3220 THREADLIBS=-pthread
3221 THREADSPEC=-lc_r
3224 THREADLIBS=-lpthread
3225 THREADSPEC=-lpthread
3227 esac
3228 THREADOBJS=posix-threads.lo
3229 THREADH=posix-threads.h
3230 # MIT pthreads doesn't seem to have the mutexattr functions.
3231 # But for now we don't check for it. We just assume you aren't
3232 # using MIT pthreads.
3233 cat >> confdefs.h <<\EOF
3234 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3238 # If we're using the Boehm GC, then we happen to know that it
3239 # defines _REENTRANT, so we don't bother. Eww.
3240 if test "$GC" != boehm; then
3241 cat >> confdefs.h <<\EOF
3242 #define _REENTRANT 1
3246 cat >> confdefs.h <<\EOF
3247 #define _POSIX_PTHREAD_SEMANTICS 1
3252 win32)
3253 THREADOBJS=win32-threads.lo
3254 THREADH=win32-threads.h
3257 none)
3258 THREADOBJS=no-threads.lo
3259 THREADH=no-threads.h
3261 esac
3269 HASH_SYNC_SPEC=
3270 # Hash synchronization is only useful with posix threads right now.
3271 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3272 HASH_SYNC_SPEC=-fhash-synchronization
3273 cat >> confdefs.h <<\EOF
3274 #define JV_HASH_SYNCHRONIZATION 1
3283 if test "$GCC" = yes; then
3284 USING_GCC_TRUE=
3285 USING_GCC_FALSE='#'
3286 else
3287 USING_GCC_TRUE='#'
3288 USING_GCC_FALSE=
3291 CANADIAN=no
3292 NULL_TARGET=no
3293 NATIVE=yes
3295 # We're in the tree with gcc, and need to include some of its headers.
3296 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3298 if test -n "${with_cross_host}"; then
3299 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3300 # may not work correctly, because the compiler may not be able to
3301 # link executables.
3303 # We assume newlib. This lets us hard-code the functions we know
3304 # we'll have.
3305 cat >> confdefs.h <<\EOF
3306 #define HAVE_MEMMOVE 1
3309 cat >> confdefs.h <<\EOF
3310 #define HAVE_MEMCPY 1
3313 cat >> confdefs.h <<\EOF
3314 #define HAVE_STRERROR 1
3317 cat >> confdefs.h <<\EOF
3318 #define HAVE_GMTIME_R 1
3321 cat >> confdefs.h <<\EOF
3322 #define HAVE_LOCALTIME_R 1
3325 cat >> confdefs.h <<\EOF
3326 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3329 cat >> confdefs.h <<\EOF
3330 #define HAVE_ALLOCA 1
3334 cat >> confdefs.h <<\EOF
3335 #define NO_GETUID 1
3339 ZLIBSPEC=-lzgcj
3340 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3342 # If Canadian cross, then don't pick up tools from the build
3343 # directory.
3344 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3345 CANADIAN=yes
3346 GCC_UNWIND_INCLUDE=
3347 GCJ="${target_alias}-gcj"
3349 NATIVE=no
3350 else
3351 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3354 echo "configure:3355: checking for $ac_func" >&5
3355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3357 else
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 /* System header to define __stub macros and hopefully few prototypes,
3362 which can conflict with char $ac_func(); below. */
3363 #include <assert.h>
3364 /* Override any gcc2 internal prototype to avoid an error. */
3365 /* We use char because int might match the return type of a gcc2
3366 builtin and then its argument prototype would still apply. */
3367 char $ac_func();
3369 int main() {
3371 /* The GNU C library defines this for functions which it implements
3372 to always fail with ENOSYS. Some functions are actually named
3373 something starting with __ and the normal name is an alias. */
3374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3375 choke me
3376 #else
3377 $ac_func();
3378 #endif
3380 ; return 0; }
3382 if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3383 rm -rf conftest*
3384 eval "ac_cv_func_$ac_func=yes"
3385 else
3386 echo "configure: failed program was:" >&5
3387 cat conftest.$ac_ext >&5
3388 rm -rf conftest*
3389 eval "ac_cv_func_$ac_func=no"
3391 rm -f conftest*
3394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3395 echo "$ac_t""yes" 1>&6
3396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3397 cat >> confdefs.h <<EOF
3398 #define $ac_tr_func 1
3401 else
3402 echo "$ac_t""no" 1>&6
3404 done
3406 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3409 echo "configure:3410: checking for $ac_func" >&5
3410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3412 else
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 /* System header to define __stub macros and hopefully few prototypes,
3417 which can conflict with char $ac_func(); below. */
3418 #include <assert.h>
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3422 char $ac_func();
3424 int main() {
3426 /* The GNU C library defines this for functions which it implements
3427 to always fail with ENOSYS. Some functions are actually named
3428 something starting with __ and the normal name is an alias. */
3429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3430 choke me
3431 #else
3432 $ac_func();
3433 #endif
3435 ; return 0; }
3437 if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3438 rm -rf conftest*
3439 eval "ac_cv_func_$ac_func=yes"
3440 else
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 rm -rf conftest*
3444 eval "ac_cv_func_$ac_func=no"
3446 rm -f conftest*
3449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3450 echo "$ac_t""yes" 1>&6
3451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3452 cat >> confdefs.h <<EOF
3453 #define $ac_tr_func 1
3456 else
3457 echo "$ac_t""no" 1>&6
3459 done
3461 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3464 echo "configure:3465: checking for $ac_func" >&5
3465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3467 else
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 /* System header to define __stub macros and hopefully few prototypes,
3472 which can conflict with char $ac_func(); below. */
3473 #include <assert.h>
3474 /* Override any gcc2 internal prototype to avoid an error. */
3475 /* We use char because int might match the return type of a gcc2
3476 builtin and then its argument prototype would still apply. */
3477 char $ac_func();
3479 int main() {
3481 /* The GNU C library defines this for functions which it implements
3482 to always fail with ENOSYS. Some functions are actually named
3483 something starting with __ and the normal name is an alias. */
3484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3485 choke me
3486 #else
3487 $ac_func();
3488 #endif
3490 ; return 0; }
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3493 rm -rf conftest*
3494 eval "ac_cv_func_$ac_func=yes"
3495 else
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 rm -rf conftest*
3499 eval "ac_cv_func_$ac_func=no"
3501 rm -f conftest*
3504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3507 cat >> confdefs.h <<EOF
3508 #define $ac_tr_func 1
3511 else
3512 echo "$ac_t""no" 1>&6
3514 done
3516 for ac_func in nl_langinfo setlocale
3518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3519 echo "configure:3520: checking for $ac_func" >&5
3520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3522 else
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 /* System header to define __stub macros and hopefully few prototypes,
3527 which can conflict with char $ac_func(); below. */
3528 #include <assert.h>
3529 /* Override any gcc2 internal prototype to avoid an error. */
3530 /* We use char because int might match the return type of a gcc2
3531 builtin and then its argument prototype would still apply. */
3532 char $ac_func();
3534 int main() {
3536 /* The GNU C library defines this for functions which it implements
3537 to always fail with ENOSYS. Some functions are actually named
3538 something starting with __ and the normal name is an alias. */
3539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3540 choke me
3541 #else
3542 $ac_func();
3543 #endif
3545 ; return 0; }
3547 if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3548 rm -rf conftest*
3549 eval "ac_cv_func_$ac_func=yes"
3550 else
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 rm -rf conftest*
3554 eval "ac_cv_func_$ac_func=no"
3556 rm -f conftest*
3559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3560 echo "$ac_t""yes" 1>&6
3561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3562 cat >> confdefs.h <<EOF
3563 #define $ac_tr_func 1
3566 else
3567 echo "$ac_t""no" 1>&6
3569 done
3571 for ac_func in inet_aton inet_addr
3573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3574 echo "configure:3575: checking for $ac_func" >&5
3575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3577 else
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 /* System header to define __stub macros and hopefully few prototypes,
3582 which can conflict with char $ac_func(); below. */
3583 #include <assert.h>
3584 /* Override any gcc2 internal prototype to avoid an error. */
3585 /* We use char because int might match the return type of a gcc2
3586 builtin and then its argument prototype would still apply. */
3587 char $ac_func();
3589 int main() {
3591 /* The GNU C library defines this for functions which it implements
3592 to always fail with ENOSYS. Some functions are actually named
3593 something starting with __ and the normal name is an alias. */
3594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3595 choke me
3596 #else
3597 $ac_func();
3598 #endif
3600 ; return 0; }
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3603 rm -rf conftest*
3604 eval "ac_cv_func_$ac_func=yes"
3605 else
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3608 rm -rf conftest*
3609 eval "ac_cv_func_$ac_func=no"
3611 rm -f conftest*
3614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3615 echo "$ac_t""yes" 1>&6
3616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3617 cat >> confdefs.h <<EOF
3618 #define $ac_tr_func 1
3620 break
3621 else
3622 echo "$ac_t""no" 1>&6
3624 done
3626 for ac_func in inet_pton uname inet_ntoa
3628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3629 echo "configure:3630: checking for $ac_func" >&5
3630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3632 else
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* System header to define __stub macros and hopefully few prototypes,
3637 which can conflict with char $ac_func(); below. */
3638 #include <assert.h>
3639 /* Override any gcc2 internal prototype to avoid an error. */
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3642 char $ac_func();
3644 int main() {
3646 /* The GNU C library defines this for functions which it implements
3647 to always fail with ENOSYS. Some functions are actually named
3648 something starting with __ and the normal name is an alias. */
3649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3650 choke me
3651 #else
3652 $ac_func();
3653 #endif
3655 ; return 0; }
3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3658 rm -rf conftest*
3659 eval "ac_cv_func_$ac_func=yes"
3660 else
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3663 rm -rf conftest*
3664 eval "ac_cv_func_$ac_func=no"
3666 rm -f conftest*
3669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3670 echo "$ac_t""yes" 1>&6
3671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3672 cat >> confdefs.h <<EOF
3673 #define $ac_tr_func 1
3676 else
3677 echo "$ac_t""no" 1>&6
3679 done
3681 for ac_func in backtrace fork execvp pipe sigaction
3683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3684 echo "configure:3685: checking for $ac_func" >&5
3685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3687 else
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 /* System header to define __stub macros and hopefully few prototypes,
3692 which can conflict with char $ac_func(); below. */
3693 #include <assert.h>
3694 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3697 char $ac_func();
3699 int main() {
3701 /* The GNU C library defines this for functions which it implements
3702 to always fail with ENOSYS. Some functions are actually named
3703 something starting with __ and the normal name is an alias. */
3704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3705 choke me
3706 #else
3707 $ac_func();
3708 #endif
3710 ; return 0; }
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3713 rm -rf conftest*
3714 eval "ac_cv_func_$ac_func=yes"
3715 else
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 rm -rf conftest*
3719 eval "ac_cv_func_$ac_func=no"
3721 rm -f conftest*
3724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3725 echo "$ac_t""yes" 1>&6
3726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3727 cat >> confdefs.h <<EOF
3728 #define $ac_tr_func 1
3731 else
3732 echo "$ac_t""no" 1>&6
3734 done
3736 for ac_hdr in execinfo.h unistd.h dlfcn.h
3738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3740 echo "configure:3741: checking for $ac_hdr" >&5
3741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3743 else
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747 #include <$ac_hdr>
3749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3750 { (eval echo configure:3751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3752 if test -z "$ac_err"; then
3753 rm -rf conftest*
3754 eval "ac_cv_header_$ac_safe=yes"
3755 else
3756 echo "$ac_err" >&5
3757 echo "configure: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3759 rm -rf conftest*
3760 eval "ac_cv_header_$ac_safe=no"
3762 rm -f conftest*
3764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3767 cat >> confdefs.h <<EOF
3768 #define $ac_tr_hdr 1
3771 else
3772 echo "$ac_t""no" 1>&6
3774 done
3776 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3777 echo "configure:3778: checking for dladdr in -ldl" >&5
3778 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3781 else
3782 ac_save_LIBS="$LIBS"
3783 LIBS="-ldl $LIBS"
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3790 char dladdr();
3792 int main() {
3793 dladdr()
3794 ; return 0; }
3796 if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797 rm -rf conftest*
3798 eval "ac_cv_lib_$ac_lib_var=yes"
3799 else
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 rm -rf conftest*
3803 eval "ac_cv_lib_$ac_lib_var=no"
3805 rm -f conftest*
3806 LIBS="$ac_save_LIBS"
3809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3812 cat >> confdefs.h <<\EOF
3813 #define HAVE_DLADDR 1
3816 else
3817 echo "$ac_t""no" 1>&6
3820 for ac_file in /proc/self/exe
3823 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3824 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3825 echo "configure:3826: checking for $ac_file" >&5
3826 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3828 else
3829 if test "$cross_compiling" = yes; then
3830 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3831 else
3832 if test -r $ac_file; then
3833 eval "ac_cv_file_$ac_safe=yes"
3834 else
3835 eval "ac_cv_file_$ac_safe=no"
3839 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3842 cat >> confdefs.h <<EOF
3843 #define $ac_tr_file 1
3846 cat >> confdefs.h <<\EOF
3847 #define HAVE_PROC_SELF_EXE 1
3850 else
3851 echo "$ac_t""no" 1>&6
3854 done
3859 am_cv_lib_iconv_ldpath=
3860 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3861 if test "${with_libiconv_prefix+set}" = set; then
3862 withval="$with_libiconv_prefix"
3864 for dir in `echo "$withval" | tr : ' '`; do
3865 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3866 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
3867 done
3872 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3873 echo "configure:3874: checking for iconv" >&5
3874 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3876 else
3878 am_cv_func_iconv="no, consider installing GNU libiconv"
3879 am_cv_lib_iconv=no
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3883 #include <stdlib.h>
3884 #include <iconv.h>
3885 int main() {
3886 iconv_t cd = iconv_open("","");
3887 iconv(cd,NULL,NULL,NULL,NULL);
3888 iconv_close(cd);
3889 ; return 0; }
3891 if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3892 rm -rf conftest*
3893 am_cv_func_iconv=yes
3894 else
3895 echo "configure: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3898 rm -f conftest*
3899 if test "$am_cv_func_iconv" != yes; then
3900 am_save_LIBS="$LIBS"
3901 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 #include <stdlib.h>
3906 #include <iconv.h>
3907 int main() {
3908 iconv_t cd = iconv_open("","");
3909 iconv(cd,NULL,NULL,NULL,NULL);
3910 iconv_close(cd);
3911 ; return 0; }
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3914 rm -rf conftest*
3915 am_cv_lib_iconv=yes
3916 am_cv_func_iconv=yes
3917 else
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3921 rm -f conftest*
3922 LIBS="$am_save_LIBS"
3927 echo "$ac_t""$am_cv_func_iconv" 1>&6
3928 if test "$am_cv_func_iconv" = yes; then
3929 cat >> confdefs.h <<\EOF
3930 #define HAVE_ICONV 1
3933 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3934 echo "configure:3935: checking for iconv declaration" >&5
3935 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3937 else
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3943 #include <stdlib.h>
3944 #include <iconv.h>
3945 extern
3946 #ifdef __cplusplus
3948 #endif
3949 #if defined(__STDC__) || defined(__cplusplus)
3950 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3951 #else
3952 size_t iconv();
3953 #endif
3955 int main() {
3957 ; return 0; }
3959 if { (eval echo configure:3960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3960 rm -rf conftest*
3961 am_cv_proto_iconv_arg1=""
3962 else
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 rm -rf conftest*
3966 am_cv_proto_iconv_arg1="const"
3968 rm -f conftest*
3969 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);"
3972 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3973 echo "$ac_t""${ac_t:-
3974 }$am_cv_proto_iconv" 1>&6
3975 cat >> confdefs.h <<EOF
3976 #define ICONV_CONST $am_cv_proto_iconv_arg1
3980 LIBICONV=
3981 if test "$am_cv_lib_iconv" = yes; then
3982 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
3986 if test $ac_cv_header_locale_h = yes; then
3987 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3988 echo "configure:3989: checking for LC_MESSAGES" >&5
3989 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3991 else
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 #include <locale.h>
3996 int main() {
3997 return LC_MESSAGES
3998 ; return 0; }
4000 if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4001 rm -rf conftest*
4002 am_cv_val_LC_MESSAGES=yes
4003 else
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 rm -rf conftest*
4007 am_cv_val_LC_MESSAGES=no
4009 rm -f conftest*
4012 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4013 if test $am_cv_val_LC_MESSAGES = yes; then
4014 cat >> confdefs.h <<\EOF
4015 #define HAVE_LC_MESSAGES 1
4020 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4021 echo "configure:4022: checking whether struct tm is in sys/time.h or time.h" >&5
4022 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4024 else
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 #include <sys/types.h>
4029 #include <time.h>
4030 int main() {
4031 struct tm *tp; tp->tm_sec;
4032 ; return 0; }
4034 if { (eval echo configure:4035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4035 rm -rf conftest*
4036 ac_cv_struct_tm=time.h
4037 else
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 rm -rf conftest*
4041 ac_cv_struct_tm=sys/time.h
4043 rm -f conftest*
4046 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4047 if test $ac_cv_struct_tm = sys/time.h; then
4048 cat >> confdefs.h <<\EOF
4049 #define TM_IN_SYS_TIME 1
4054 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4055 echo "configure:4056: checking for tm_zone in struct tm" >&5
4056 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4058 else
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 #include <sys/types.h>
4063 #include <$ac_cv_struct_tm>
4064 int main() {
4065 struct tm tm; tm.tm_zone;
4066 ; return 0; }
4068 if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4069 rm -rf conftest*
4070 ac_cv_struct_tm_zone=yes
4071 else
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4074 rm -rf conftest*
4075 ac_cv_struct_tm_zone=no
4077 rm -f conftest*
4080 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4081 if test "$ac_cv_struct_tm_zone" = yes; then
4082 cat >> confdefs.h <<\EOF
4083 #define HAVE_TM_ZONE 1
4086 else
4087 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4088 echo "configure:4089: checking for tzname" >&5
4089 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4091 else
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 #include <time.h>
4096 #ifndef tzname /* For SGI. */
4097 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4098 #endif
4099 int main() {
4100 atoi(*tzname);
4101 ; return 0; }
4103 if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4104 rm -rf conftest*
4105 ac_cv_var_tzname=yes
4106 else
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 rm -rf conftest*
4110 ac_cv_var_tzname=no
4112 rm -f conftest*
4115 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4116 if test $ac_cv_var_tzname = yes; then
4117 cat >> confdefs.h <<\EOF
4118 #define HAVE_TZNAME 1
4125 for ac_func in gethostbyname_r
4127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_func" >&5
4129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4131 else
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func(); below. */
4137 #include <assert.h>
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4141 char $ac_func();
4143 int main() {
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4149 choke me
4150 #else
4151 $ac_func();
4152 #endif
4154 ; return 0; }
4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4157 rm -rf conftest*
4158 eval "ac_cv_func_$ac_func=yes"
4159 else
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4162 rm -rf conftest*
4163 eval "ac_cv_func_$ac_func=no"
4165 rm -f conftest*
4168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4171 cat >> confdefs.h <<EOF
4172 #define $ac_tr_func 1
4175 cat >> confdefs.h <<\EOF
4176 #define HAVE_GETHOSTBYNAME_R 1
4179 # There are two different kinds of gethostbyname_r.
4180 # We look for the one that returns `int'.
4181 # Hopefully this check is robust enough.
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <netdb.h>
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
4189 rm -rf conftest*
4191 cat >> confdefs.h <<\EOF
4192 #define GETHOSTBYNAME_R_RETURNS_INT 1
4196 rm -f conftest*
4199 case " $GCINCS " in
4200 *" -D_REENTRANT "*) ;;
4202 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4203 echo "configure:4204: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4204 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4206 else
4208 ac_ext=C
4209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4210 ac_cpp='$CXXCPP $CPPFLAGS'
4211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4213 cross_compiling=$ac_cv_prog_cxx_cross
4215 cat > conftest.$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4218 #include <netdb.h>
4219 int main() {
4220 gethostbyname_r("", 0, 0);
4221 ; return 0; }
4223 if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4224 rm -rf conftest*
4225 libjava_cv_gethostbyname_r_needs_reentrant=no
4226 else
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4229 rm -rf conftest*
4230 CPPFLAGS_SAVE="$CPPFLAGS"
4231 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4235 #include <netdb.h>
4236 int main() {
4237 gethostbyname_r("", 0, 0);
4238 ; return 0; }
4240 if { (eval echo configure:4241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4241 rm -rf conftest*
4242 libjava_cv_gethostbyname_r_needs_reentrant=yes
4243 else
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4246 rm -rf conftest*
4247 libjava_cv_gethostbyname_r_needs_reentrant=fail
4249 rm -f conftest*
4250 CPPFLAGS="$CPPFLAGS_SAVE"
4253 rm -f conftest*
4254 ac_ext=c
4255 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4258 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4259 cross_compiling=$ac_cv_prog_cc_cross
4264 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4265 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4266 cat >> confdefs.h <<\EOF
4267 #define _REENTRANT 1
4272 esac
4274 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4275 echo "configure:4276: checking for struct hostent_data" >&5
4276 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4278 else
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4283 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4284 # define _REENTRANT 1
4285 #endif
4286 #include <netdb.h>
4287 int main() {
4288 struct hostent_data data;
4289 ; return 0; }
4291 if { (eval echo configure:4292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4292 rm -rf conftest*
4293 libjava_cv_struct_hostent_data=yes
4294 else
4295 echo "configure: failed program was:" >&5
4296 cat conftest.$ac_ext >&5
4297 rm -rf conftest*
4298 libjava_cv_struct_hostent_data=no
4300 rm -f conftest*
4303 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4304 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4305 cat >> confdefs.h <<\EOF
4306 #define HAVE_STRUCT_HOSTENT_DATA 1
4311 else
4312 echo "$ac_t""no" 1>&6
4314 done
4317 # FIXME: libjava source code expects to find a prototype for
4318 # gethostbyaddr_r in netdb.h. The outer check ensures that
4319 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4320 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4321 # linkage check is enough, yet C++ code requires proper prototypes.)
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 #include <netdb.h>
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
4329 rm -rf conftest*
4331 for ac_func in gethostbyaddr_r
4333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4334 echo "configure:4335: checking for $ac_func" >&5
4335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4337 else
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 /* System header to define __stub macros and hopefully few prototypes,
4342 which can conflict with char $ac_func(); below. */
4343 #include <assert.h>
4344 /* Override any gcc2 internal prototype to avoid an error. */
4345 /* We use char because int might match the return type of a gcc2
4346 builtin and then its argument prototype would still apply. */
4347 char $ac_func();
4349 int main() {
4351 /* The GNU C library defines this for functions which it implements
4352 to always fail with ENOSYS. Some functions are actually named
4353 something starting with __ and the normal name is an alias. */
4354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4355 choke me
4356 #else
4357 $ac_func();
4358 #endif
4360 ; return 0; }
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4363 rm -rf conftest*
4364 eval "ac_cv_func_$ac_func=yes"
4365 else
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4368 rm -rf conftest*
4369 eval "ac_cv_func_$ac_func=no"
4371 rm -f conftest*
4374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4375 echo "$ac_t""yes" 1>&6
4376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4377 cat >> confdefs.h <<EOF
4378 #define $ac_tr_func 1
4381 cat >> confdefs.h <<\EOF
4382 #define HAVE_GETHOSTBYADDR_R 1
4385 # There are two different kinds of gethostbyaddr_r.
4386 # We look for the one that returns `int'.
4387 # Hopefully this check is robust enough.
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 #include <netdb.h>
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4395 rm -rf conftest*
4397 cat >> confdefs.h <<\EOF
4398 #define GETHOSTBYADDR_R_RETURNS_INT 1
4402 rm -f conftest*
4404 else
4405 echo "$ac_t""no" 1>&6
4407 done
4410 rm -f conftest*
4413 for ac_func in gethostname
4415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4416 echo "configure:4417: checking for $ac_func" >&5
4417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4419 else
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 /* System header to define __stub macros and hopefully few prototypes,
4424 which can conflict with char $ac_func(); below. */
4425 #include <assert.h>
4426 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4429 char $ac_func();
4431 int main() {
4433 /* The GNU C library defines this for functions which it implements
4434 to always fail with ENOSYS. Some functions are actually named
4435 something starting with __ and the normal name is an alias. */
4436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4437 choke me
4438 #else
4439 $ac_func();
4440 #endif
4442 ; return 0; }
4444 if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4445 rm -rf conftest*
4446 eval "ac_cv_func_$ac_func=yes"
4447 else
4448 echo "configure: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4450 rm -rf conftest*
4451 eval "ac_cv_func_$ac_func=no"
4453 rm -f conftest*
4456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4457 echo "$ac_t""yes" 1>&6
4458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4459 cat >> confdefs.h <<EOF
4460 #define $ac_tr_func 1
4463 cat >> confdefs.h <<\EOF
4464 #define HAVE_GETHOSTNAME 1
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4470 #include <unistd.h>
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 egrep "gethostname" >/dev/null 2>&1; then
4474 rm -rf conftest*
4476 cat >> confdefs.h <<\EOF
4477 #define HAVE_GETHOSTNAME_DECL 1
4481 rm -f conftest*
4483 else
4484 echo "$ac_t""no" 1>&6
4486 done
4489 # Look for these functions in the thread library, but only bother
4490 # if using POSIX threads.
4491 if test "$THREADS" = posix; then
4492 save_LIBS="$LIBS"
4493 LIBS="$LIBS $THREADLIBS"
4494 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4495 # E.g., Solaris.
4496 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4499 echo "configure:4500: checking for $ac_func" >&5
4500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4502 else
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506 /* System header to define __stub macros and hopefully few prototypes,
4507 which can conflict with char $ac_func(); below. */
4508 #include <assert.h>
4509 /* Override any gcc2 internal prototype to avoid an error. */
4510 /* We use char because int might match the return type of a gcc2
4511 builtin and then its argument prototype would still apply. */
4512 char $ac_func();
4514 int main() {
4516 /* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4520 choke me
4521 #else
4522 $ac_func();
4523 #endif
4525 ; return 0; }
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 rm -rf conftest*
4529 eval "ac_cv_func_$ac_func=yes"
4530 else
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 rm -rf conftest*
4534 eval "ac_cv_func_$ac_func=no"
4536 rm -f conftest*
4539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_func 1
4546 else
4547 echo "$ac_t""no" 1>&6
4549 done
4552 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4553 # Solaris 7 the name librt is preferred.
4554 for ac_func in sched_yield
4556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_func" >&5
4558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4560 else
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 /* System header to define __stub macros and hopefully few prototypes,
4565 which can conflict with char $ac_func(); below. */
4566 #include <assert.h>
4567 /* Override any gcc2 internal prototype to avoid an error. */
4568 /* We use char because int might match the return type of a gcc2
4569 builtin and then its argument prototype would still apply. */
4570 char $ac_func();
4572 int main() {
4574 /* The GNU C library defines this for functions which it implements
4575 to always fail with ENOSYS. Some functions are actually named
4576 something starting with __ and the normal name is an alias. */
4577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4578 choke me
4579 #else
4580 $ac_func();
4581 #endif
4583 ; return 0; }
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4586 rm -rf conftest*
4587 eval "ac_cv_func_$ac_func=yes"
4588 else
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 rm -rf conftest*
4592 eval "ac_cv_func_$ac_func=no"
4594 rm -f conftest*
4597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4600 cat >> confdefs.h <<EOF
4601 #define $ac_tr_func 1
4604 else
4605 echo "$ac_t""no" 1>&6
4606 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4607 echo "configure:4608: checking for sched_yield in -lrt" >&5
4608 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4611 else
4612 ac_save_LIBS="$LIBS"
4613 LIBS="-lrt $LIBS"
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 /* Override any gcc2 internal prototype to avoid an error. */
4618 /* We use char because int might match the return type of a gcc2
4619 builtin and then its argument prototype would still apply. */
4620 char sched_yield();
4622 int main() {
4623 sched_yield()
4624 ; return 0; }
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4627 rm -rf conftest*
4628 eval "ac_cv_lib_$ac_lib_var=yes"
4629 else
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4632 rm -rf conftest*
4633 eval "ac_cv_lib_$ac_lib_var=no"
4635 rm -f conftest*
4636 LIBS="$ac_save_LIBS"
4639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4640 echo "$ac_t""yes" 1>&6
4642 cat >> confdefs.h <<\EOF
4643 #define HAVE_SCHED_YIELD 1
4646 THREADLIBS="$THREADLIBS -lrt"
4647 THREADSPEC="$THREADSPEC -lrt"
4648 else
4649 echo "$ac_t""no" 1>&6
4651 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4652 echo "configure:4653: checking for sched_yield in -lposix4" >&5
4653 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4656 else
4657 ac_save_LIBS="$LIBS"
4658 LIBS="-lposix4 $LIBS"
4659 cat > conftest.$ac_ext <<EOF
4660 #line 4661 "configure"
4661 #include "confdefs.h"
4662 /* Override any gcc2 internal prototype to avoid an error. */
4663 /* We use char because int might match the return type of a gcc2
4664 builtin and then its argument prototype would still apply. */
4665 char sched_yield();
4667 int main() {
4668 sched_yield()
4669 ; return 0; }
4671 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4672 rm -rf conftest*
4673 eval "ac_cv_lib_$ac_lib_var=yes"
4674 else
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4677 rm -rf conftest*
4678 eval "ac_cv_lib_$ac_lib_var=no"
4680 rm -f conftest*
4681 LIBS="$ac_save_LIBS"
4684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4685 echo "$ac_t""yes" 1>&6
4687 cat >> confdefs.h <<\EOF
4688 #define HAVE_SCHED_YIELD 1
4691 THREADLIBS="$THREADLIBS -lposix4"
4692 THREADSPEC="$THREADSPEC -lposix4"
4693 else
4694 echo "$ac_t""no" 1>&6
4700 done
4702 LIBS="$save_LIBS"
4704 # We can save a little space at runtime if the mutex has m_count
4705 # or __m_count. This is a nice hack for Linux.
4706 cat > conftest.$ac_ext <<EOF
4707 #line 4708 "configure"
4708 #include "confdefs.h"
4709 #include <pthread.h>
4710 int main() {
4712 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4714 ; return 0; }
4716 if { (eval echo configure:4717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4717 rm -rf conftest*
4718 cat >> confdefs.h <<\EOF
4719 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4722 else
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 rm -rf conftest*
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <pthread.h>
4731 int main() {
4733 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4735 ; return 0; }
4737 if { (eval echo configure:4738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4738 rm -rf conftest*
4739 cat >> confdefs.h <<\EOF
4740 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4743 else
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4747 rm -f conftest*
4749 rm -f conftest*
4752 # We require a way to get the time.
4753 time_found=no
4754 for ac_func in gettimeofday time ftime
4756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_func" >&5
4758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4760 else
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* System header to define __stub macros and hopefully few prototypes,
4765 which can conflict with char $ac_func(); below. */
4766 #include <assert.h>
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770 char $ac_func();
4772 int main() {
4774 /* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4778 choke me
4779 #else
4780 $ac_func();
4781 #endif
4783 ; return 0; }
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4786 rm -rf conftest*
4787 eval "ac_cv_func_$ac_func=yes"
4788 else
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 rm -rf conftest*
4792 eval "ac_cv_func_$ac_func=no"
4794 rm -f conftest*
4797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_func 1
4803 time_found=yes
4804 else
4805 echo "$ac_t""no" 1>&6
4807 done
4809 if test "$time_found" = no; then
4810 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4813 for ac_func in memmove
4815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4816 echo "configure:4817: checking for $ac_func" >&5
4817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4819 else
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4823 /* System header to define __stub macros and hopefully few prototypes,
4824 which can conflict with char $ac_func(); below. */
4825 #include <assert.h>
4826 /* Override any gcc2 internal prototype to avoid an error. */
4827 /* We use char because int might match the return type of a gcc2
4828 builtin and then its argument prototype would still apply. */
4829 char $ac_func();
4831 int main() {
4833 /* The GNU C library defines this for functions which it implements
4834 to always fail with ENOSYS. Some functions are actually named
4835 something starting with __ and the normal name is an alias. */
4836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4837 choke me
4838 #else
4839 $ac_func();
4840 #endif
4842 ; return 0; }
4844 if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4845 rm -rf conftest*
4846 eval "ac_cv_func_$ac_func=yes"
4847 else
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4850 rm -rf conftest*
4851 eval "ac_cv_func_$ac_func=no"
4853 rm -f conftest*
4856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4857 echo "$ac_t""yes" 1>&6
4858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4859 cat >> confdefs.h <<EOF
4860 #define $ac_tr_func 1
4863 else
4864 echo "$ac_t""no" 1>&6
4866 done
4869 # We require memcpy.
4870 memcpy_found=no
4871 for ac_func in memcpy
4873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4874 echo "configure:4875: checking for $ac_func" >&5
4875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4877 else
4878 cat > conftest.$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4881 /* System header to define __stub macros and hopefully few prototypes,
4882 which can conflict with char $ac_func(); below. */
4883 #include <assert.h>
4884 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4887 char $ac_func();
4889 int main() {
4891 /* The GNU C library defines this for functions which it implements
4892 to always fail with ENOSYS. Some functions are actually named
4893 something starting with __ and the normal name is an alias. */
4894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4895 choke me
4896 #else
4897 $ac_func();
4898 #endif
4900 ; return 0; }
4902 if { (eval echo configure:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4903 rm -rf conftest*
4904 eval "ac_cv_func_$ac_func=yes"
4905 else
4906 echo "configure: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 rm -rf conftest*
4909 eval "ac_cv_func_$ac_func=no"
4911 rm -f conftest*
4914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4917 cat >> confdefs.h <<EOF
4918 #define $ac_tr_func 1
4920 memcpy_found=yes
4921 else
4922 echo "$ac_t""no" 1>&6
4924 done
4926 if test "$memcpy_found" = no; then
4927 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4930 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4931 echo "configure:4932: checking for dlopen in -ldl" >&5
4932 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4934 echo $ac_n "(cached) $ac_c" 1>&6
4935 else
4936 ac_save_LIBS="$LIBS"
4937 LIBS="-ldl $LIBS"
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4941 /* Override any gcc2 internal prototype to avoid an error. */
4942 /* We use char because int might match the return type of a gcc2
4943 builtin and then its argument prototype would still apply. */
4944 char dlopen();
4946 int main() {
4947 dlopen()
4948 ; return 0; }
4950 if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951 rm -rf conftest*
4952 eval "ac_cv_lib_$ac_lib_var=yes"
4953 else
4954 echo "configure: failed program was:" >&5
4955 cat conftest.$ac_ext >&5
4956 rm -rf conftest*
4957 eval "ac_cv_lib_$ac_lib_var=no"
4959 rm -f conftest*
4960 LIBS="$ac_save_LIBS"
4963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4966 cat >> confdefs.h <<\EOF
4967 #define HAVE_DLOPEN 1
4970 else
4971 echo "$ac_t""no" 1>&6
4975 # Some library-finding code we stole from Tcl.
4976 #--------------------------------------------------------------------
4977 # Check for the existence of the -lsocket and -lnsl libraries.
4978 # The order here is important, so that they end up in the right
4979 # order in the command line generated by make. Here are some
4980 # special considerations:
4981 # 1. Use "connect" and "accept" to check for -lsocket, and
4982 # "gethostbyname" to check for -lnsl.
4983 # 2. Use each function name only once: can't redo a check because
4984 # autoconf caches the results of the last check and won't redo it.
4985 # 3. Use -lnsl and -lsocket only if they supply procedures that
4986 # aren't already present in the normal libraries. This is because
4987 # IRIX 5.2 has libraries, but they aren't needed and they're
4988 # bogus: they goof up name resolution if used.
4989 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4990 # To get around this problem, check for both libraries together
4991 # if -lsocket doesn't work by itself.
4992 #--------------------------------------------------------------------
4994 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4995 echo "configure:4996: checking for socket libraries" >&5
4996 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4998 else
4999 gcj_cv_lib_sockets=
5000 gcj_checkBoth=0
5001 unset ac_cv_func_connect
5002 echo $ac_n "checking for connect""... $ac_c" 1>&6
5003 echo "configure:5004: checking for connect" >&5
5004 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5006 else
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5010 /* System header to define __stub macros and hopefully few prototypes,
5011 which can conflict with char connect(); below. */
5012 #include <assert.h>
5013 /* Override any gcc2 internal prototype to avoid an error. */
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5016 char connect();
5018 int main() {
5020 /* The GNU C library defines this for functions which it implements
5021 to always fail with ENOSYS. Some functions are actually named
5022 something starting with __ and the normal name is an alias. */
5023 #if defined (__stub_connect) || defined (__stub___connect)
5024 choke me
5025 #else
5026 connect();
5027 #endif
5029 ; return 0; }
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5032 rm -rf conftest*
5033 eval "ac_cv_func_connect=yes"
5034 else
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5037 rm -rf conftest*
5038 eval "ac_cv_func_connect=no"
5040 rm -f conftest*
5043 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5044 echo "$ac_t""yes" 1>&6
5045 gcj_checkSocket=0
5046 else
5047 echo "$ac_t""no" 1>&6
5048 gcj_checkSocket=1
5051 if test "$gcj_checkSocket" = 1; then
5052 unset ac_cv_func_connect
5053 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5054 echo "configure:5055: checking for main in -lsocket" >&5
5055 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5058 else
5059 ac_save_LIBS="$LIBS"
5060 LIBS="-lsocket $LIBS"
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5065 int main() {
5066 main()
5067 ; return 0; }
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 rm -rf conftest*
5071 eval "ac_cv_lib_$ac_lib_var=yes"
5072 else
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5075 rm -rf conftest*
5076 eval "ac_cv_lib_$ac_lib_var=no"
5078 rm -f conftest*
5079 LIBS="$ac_save_LIBS"
5082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 gcj_cv_lib_sockets="-lsocket"
5085 else
5086 echo "$ac_t""no" 1>&6
5087 gcj_checkBoth=1
5091 if test "$gcj_checkBoth" = 1; then
5092 gcj_oldLibs=$LIBS
5093 LIBS="$LIBS -lsocket -lnsl"
5094 unset ac_cv_func_accept
5095 echo $ac_n "checking for accept""... $ac_c" 1>&6
5096 echo "configure:5097: checking for accept" >&5
5097 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 /* System header to define __stub macros and hopefully few prototypes,
5104 which can conflict with char accept(); below. */
5105 #include <assert.h>
5106 /* Override any gcc2 internal prototype to avoid an error. */
5107 /* We use char because int might match the return type of a gcc2
5108 builtin and then its argument prototype would still apply. */
5109 char accept();
5111 int main() {
5113 /* The GNU C library defines this for functions which it implements
5114 to always fail with ENOSYS. Some functions are actually named
5115 something starting with __ and the normal name is an alias. */
5116 #if defined (__stub_accept) || defined (__stub___accept)
5117 choke me
5118 #else
5119 accept();
5120 #endif
5122 ; return 0; }
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5125 rm -rf conftest*
5126 eval "ac_cv_func_accept=yes"
5127 else
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5130 rm -rf conftest*
5131 eval "ac_cv_func_accept=no"
5133 rm -f conftest*
5136 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5138 gcj_checkNsl=0
5139 gcj_cv_lib_sockets="-lsocket -lnsl"
5140 else
5141 echo "$ac_t""no" 1>&6
5144 unset ac_cv_func_accept
5145 LIBS=$gcj_oldLibs
5147 unset ac_cv_func_gethostbyname
5148 gcj_oldLibs=$LIBS
5149 LIBS="$LIBS $gcj_cv_lib_sockets"
5150 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5151 echo "configure:5152: checking for gethostbyname" >&5
5152 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5153 echo $ac_n "(cached) $ac_c" 1>&6
5154 else
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5158 /* System header to define __stub macros and hopefully few prototypes,
5159 which can conflict with char gethostbyname(); below. */
5160 #include <assert.h>
5161 /* Override any gcc2 internal prototype to avoid an error. */
5162 /* We use char because int might match the return type of a gcc2
5163 builtin and then its argument prototype would still apply. */
5164 char gethostbyname();
5166 int main() {
5168 /* The GNU C library defines this for functions which it implements
5169 to always fail with ENOSYS. Some functions are actually named
5170 something starting with __ and the normal name is an alias. */
5171 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5172 choke me
5173 #else
5174 gethostbyname();
5175 #endif
5177 ; return 0; }
5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5180 rm -rf conftest*
5181 eval "ac_cv_func_gethostbyname=yes"
5182 else
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5185 rm -rf conftest*
5186 eval "ac_cv_func_gethostbyname=no"
5188 rm -f conftest*
5191 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5192 echo "$ac_t""yes" 1>&6
5194 else
5195 echo "$ac_t""no" 1>&6
5196 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5197 echo "configure:5198: checking for main in -lnsl" >&5
5198 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5201 else
5202 ac_save_LIBS="$LIBS"
5203 LIBS="-lnsl $LIBS"
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5208 int main() {
5209 main()
5210 ; return 0; }
5212 if { (eval echo configure:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5213 rm -rf conftest*
5214 eval "ac_cv_lib_$ac_lib_var=yes"
5215 else
5216 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5218 rm -rf conftest*
5219 eval "ac_cv_lib_$ac_lib_var=no"
5221 rm -f conftest*
5222 LIBS="$ac_save_LIBS"
5225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5226 echo "$ac_t""yes" 1>&6
5227 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5228 else
5229 echo "$ac_t""no" 1>&6
5234 unset ac_cv_func_gethostbyname
5235 LIBS=$gcj_oldLIBS
5239 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5240 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5242 if test "$with_system_zlib" = yes; then
5243 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5244 echo "configure:5245: checking for deflate in -lz" >&5
5245 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6
5248 else
5249 ac_save_LIBS="$LIBS"
5250 LIBS="-lz $LIBS"
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5254 /* Override any gcc2 internal prototype to avoid an error. */
5255 /* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */
5257 char deflate();
5259 int main() {
5260 deflate()
5261 ; return 0; }
5263 if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5264 rm -rf conftest*
5265 eval "ac_cv_lib_$ac_lib_var=yes"
5266 else
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5269 rm -rf conftest*
5270 eval "ac_cv_lib_$ac_lib_var=no"
5272 rm -f conftest*
5273 LIBS="$ac_save_LIBS"
5276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5277 echo "$ac_t""yes" 1>&6
5278 ZLIBSPEC=-lz
5279 else
5280 echo "$ac_t""no" 1>&6
5281 ZLIBSPEC=-lzgcj
5284 else
5285 ZLIBSPEC=-lzgcj
5286 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
5289 # On Solaris, and maybe other architectures, the Boehm collector
5290 # requires -ldl.
5291 if test "$GC" = boehm; then
5292 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5293 echo "configure:5294: checking for main in -ldl" >&5
5294 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5297 else
5298 ac_save_LIBS="$LIBS"
5299 LIBS="-ldl $LIBS"
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5304 int main() {
5305 main()
5306 ; return 0; }
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5309 rm -rf conftest*
5310 eval "ac_cv_lib_$ac_lib_var=yes"
5311 else
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5314 rm -rf conftest*
5315 eval "ac_cv_lib_$ac_lib_var=no"
5317 rm -f conftest*
5318 LIBS="$ac_save_LIBS"
5321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5322 echo "$ac_t""yes" 1>&6
5323 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5324 else
5325 echo "$ac_t""no" 1>&6
5330 if test -z "${with_multisubdir}"; then
5331 builddotdot=.
5332 else
5334 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5337 if test -x "${builddotdot}/../../gcc/gcj"; then
5338 dir="`cd ${builddotdot}/../../gcc && pwd`"
5339 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
5340 else
5341 CANADIAN=yes
5342 NULL_TARGET=yes
5343 GCJ="gcj -B`pwd`/"
5347 # Create it, so that compile/link tests don't fail
5348 test -f libgcj.spec || touch libgcj.spec
5350 # We must search the source tree for java.lang, since we still don't
5351 # have libgcj.jar nor java/lang/*.class
5352 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5353 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5355 # Since some classes depend on this one, we need its source available
5356 # before we can do any GCJ compilation test :-(
5357 if test ! -f gnu/classpath/Configuration.java; then
5358 test -d gnu || mkdir gnu
5359 test -d gnu/classpath || mkdir gnu/classpath
5360 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5361 < $srcdir/gnu/classpath/Configuration.java.in \
5362 > gnu/classpath/Configuration.java
5363 # We do not want to redirect the output of the grep below to /dev/null,
5364 # but we add /dev/null to the input list so that grep will print the
5365 # filename of Configuration.java in case it finds any matches.
5366 if grep @ gnu/classpath/Configuration.java /dev/null; then
5367 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5371 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5372 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5374 echo "configure:5375: checking for $ac_word" >&5
5375 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5376 echo $ac_n "(cached) $ac_c" 1>&6
5377 else
5378 if test -n "$GCJ"; then
5379 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5380 else
5381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5382 ac_dummy="$PATH"
5383 for ac_dir in $ac_dummy; do
5384 test -z "$ac_dir" && ac_dir=.
5385 if test -f $ac_dir/$ac_word; then
5386 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5387 break
5389 done
5390 IFS="$ac_save_ifs"
5393 GCJ="$ac_cv_prog_GCJ"
5394 if test -n "$GCJ"; then
5395 echo "$ac_t""$GCJ" 1>&6
5396 else
5397 echo "$ac_t""no" 1>&6
5401 if test -z "$ac_cv_prog_GCJ"; then
5402 if test -n "$ac_tool_prefix"; then
5403 # Extract the first word of "gcj", so it can be a program name with args.
5404 set dummy gcj; ac_word=$2
5405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5406 echo "configure:5407: checking for $ac_word" >&5
5407 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5409 else
5410 if test -n "$GCJ"; then
5411 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5412 else
5413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5414 ac_dummy="$PATH"
5415 for ac_dir in $ac_dummy; do
5416 test -z "$ac_dir" && ac_dir=.
5417 if test -f $ac_dir/$ac_word; then
5418 ac_cv_prog_GCJ="gcj"
5419 break
5421 done
5422 IFS="$ac_save_ifs"
5423 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5426 GCJ="$ac_cv_prog_GCJ"
5427 if test -n "$GCJ"; then
5428 echo "$ac_t""$GCJ" 1>&6
5429 else
5430 echo "$ac_t""no" 1>&6
5433 else
5434 GCJ="no"
5438 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5442 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5443 lt_save_CC="$CC"
5444 lt_save_CFLAGS="$CFLAGS"
5445 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5446 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5447 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5448 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5449 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5450 deplibs_check_method="$deplibs_check_method" \
5451 file_magic_cmd="$file_magic_cmd" \
5452 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5453 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5454 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5455 CC="$lt_save_CC"
5456 CFLAGS="$lt_save_CFLAGS"
5458 # Redirect the config.log output again, so that the ltconfig log is not
5459 # clobbered by the next message.
5460 exec 5>>./config.log
5465 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5467 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5468 echo "configure:5469: checking size of void *" >&5
5469 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5471 else
5472 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 #include "confdefs.h"
5477 #include <sys/types.h>
5480 int main() {
5481 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5482 ; return 0; }
5484 if { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5485 rm -rf conftest*
5486 ac_cv_sizeof_void_p=$ac_size
5487 else
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5491 rm -f conftest*
5492 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5493 done
5497 if test x$ac_cv_sizeof_void_p = x ; then
5498 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
5500 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5501 cat >> confdefs.h <<EOF
5502 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5507 ZLIBS=
5508 ZDEPS=
5509 ZINCS=
5510 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5511 # We include the path to the zlib build directory.
5512 # See Makefile.am to understand why.
5513 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5514 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5515 ZINCS='-I$(top_srcdir)/../zlib'
5516 else
5517 ZLIBS="$ZLIBSPEC"
5527 if test "$CANADIAN" = yes; then
5528 CANADIAN_TRUE=
5529 CANADIAN_FALSE='#'
5530 else
5531 CANADIAN_TRUE='#'
5532 CANADIAN_FALSE=
5536 if test "$NULL_TARGET" = yes; then
5537 NULL_TARGET_TRUE=
5538 NULL_TARGET_FALSE='#'
5539 else
5540 NULL_TARGET_TRUE='#'
5541 NULL_TARGET_FALSE=
5545 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5546 NATIVE_TRUE=
5547 NATIVE_FALSE='#'
5548 else
5549 NATIVE_TRUE='#'
5550 NATIVE_FALSE=
5554 if test -z "$with_cross_host"; then
5555 USE_LIBDIR_TRUE=
5556 USE_LIBDIR_FALSE='#'
5557 else
5558 USE_LIBDIR_TRUE='#'
5559 USE_LIBDIR_FALSE=
5563 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5564 NEEDS_DATA_START_TRUE=
5565 NEEDS_DATA_START_FALSE='#'
5566 else
5567 NEEDS_DATA_START_TRUE='#'
5568 NEEDS_DATA_START_FALSE=
5574 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5575 echo "configure:5576: checking for g++ -ffloat-store bug" >&5
5576 save_CFLAGS="$CFLAGS"
5577 CFLAGS="-x c++ -O2 -ffloat-store"
5578 cat > conftest.$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5581 #include <math.h>
5582 int main() {
5584 ; return 0; }
5586 if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5587 rm -rf conftest*
5588 echo "$ac_t""no" 1>&6
5589 else
5590 echo "configure: failed program was:" >&5
5591 cat conftest.$ac_ext >&5
5592 rm -rf conftest*
5593 cat >> confdefs.h <<\EOF
5594 #define __NO_MATH_INLINES 1
5597 echo "$ac_t""yes" 1>&6
5599 rm -f conftest*
5600 CFLAGS="$save_CFLAGS"
5602 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h stdint.h langinfo.h locale.h
5604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5606 echo "configure:5607: checking for $ac_hdr" >&5
5607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5609 else
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 #include <$ac_hdr>
5615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5616 { (eval echo configure:5617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5618 if test -z "$ac_err"; then
5619 rm -rf conftest*
5620 eval "ac_cv_header_$ac_safe=yes"
5621 else
5622 echo "$ac_err" >&5
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 rm -rf conftest*
5626 eval "ac_cv_header_$ac_safe=no"
5628 rm -f conftest*
5630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5633 cat >> confdefs.h <<EOF
5634 #define $ac_tr_hdr 1
5637 else
5638 echo "$ac_t""no" 1>&6
5640 done
5642 for ac_hdr in dirent.h
5644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5646 echo "configure:5647: checking for $ac_hdr" >&5
5647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5649 else
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 #include <$ac_hdr>
5655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5656 { (eval echo configure:5657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5658 if test -z "$ac_err"; then
5659 rm -rf conftest*
5660 eval "ac_cv_header_$ac_safe=yes"
5661 else
5662 echo "$ac_err" >&5
5663 echo "configure: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 rm -rf conftest*
5666 eval "ac_cv_header_$ac_safe=no"
5668 rm -f conftest*
5670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5671 echo "$ac_t""yes" 1>&6
5672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5673 cat >> confdefs.h <<EOF
5674 #define $ac_tr_hdr 1
5677 else
5678 echo "$ac_t""no" 1>&6
5680 done
5682 for ac_hdr in inttypes.h
5684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5686 echo "configure:5687: checking for $ac_hdr" >&5
5687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5689 else
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5693 #include <$ac_hdr>
5695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5696 { (eval echo configure:5697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5698 if test -z "$ac_err"; then
5699 rm -rf conftest*
5700 eval "ac_cv_header_$ac_safe=yes"
5701 else
5702 echo "$ac_err" >&5
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5705 rm -rf conftest*
5706 eval "ac_cv_header_$ac_safe=no"
5708 rm -f conftest*
5710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5711 echo "$ac_t""yes" 1>&6
5712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5713 cat >> confdefs.h <<EOF
5714 #define $ac_tr_hdr 1
5717 cat >> confdefs.h <<\EOF
5718 #define HAVE_INTTYPES_H 1
5721 cat >> confdefs.h <<\EOF
5722 #define JV_HAVE_INTTYPES_H 1
5726 else
5727 echo "$ac_t""no" 1>&6
5729 done
5731 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5732 echo "configure:5733: checking for sys/wait.h that is POSIX.1 compatible" >&5
5733 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5735 else
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 #include <sys/types.h>
5740 #include <sys/wait.h>
5741 #ifndef WEXITSTATUS
5742 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5743 #endif
5744 #ifndef WIFEXITED
5745 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5746 #endif
5747 int main() {
5748 int s;
5749 wait (&s);
5750 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5751 ; return 0; }
5753 if { (eval echo configure:5754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5754 rm -rf conftest*
5755 ac_cv_header_sys_wait_h=yes
5756 else
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5759 rm -rf conftest*
5760 ac_cv_header_sys_wait_h=no
5762 rm -f conftest*
5765 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5766 if test $ac_cv_header_sys_wait_h = yes; then
5767 cat >> confdefs.h <<\EOF
5768 #define HAVE_SYS_WAIT_H 1
5774 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5775 echo "configure:5776: checking for ANSI C header files" >&5
5776 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5778 else
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782 #include <stdlib.h>
5783 #include <stdarg.h>
5784 #include <string.h>
5785 #include <float.h>
5787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5788 { (eval echo configure:5789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5790 if test -z "$ac_err"; then
5791 rm -rf conftest*
5792 ac_cv_header_stdc=yes
5793 else
5794 echo "$ac_err" >&5
5795 echo "configure: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 rm -rf conftest*
5798 ac_cv_header_stdc=no
5800 rm -f conftest*
5802 if test $ac_cv_header_stdc = yes; then
5803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5807 #include <string.h>
5809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5810 egrep "memchr" >/dev/null 2>&1; then
5812 else
5813 rm -rf conftest*
5814 ac_cv_header_stdc=no
5816 rm -f conftest*
5820 if test $ac_cv_header_stdc = yes; then
5821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 #include <stdlib.h>
5827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5828 egrep "free" >/dev/null 2>&1; then
5830 else
5831 rm -rf conftest*
5832 ac_cv_header_stdc=no
5834 rm -f conftest*
5838 if test $ac_cv_header_stdc = yes; then
5839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5840 if test "$cross_compiling" = yes; then
5842 else
5843 cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5846 #include <ctype.h>
5847 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5848 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5850 int main () { int i; for (i = 0; i < 256; i++)
5851 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5852 exit (0); }
5855 if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5856 then
5858 else
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 rm -fr conftest*
5862 ac_cv_header_stdc=no
5864 rm -fr conftest*
5870 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5871 if test $ac_cv_header_stdc = yes; then
5872 cat >> confdefs.h <<\EOF
5873 #define STDC_HEADERS 1
5878 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5879 echo "configure:5880: checking for ssize_t" >&5
5880 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5882 else
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 #include <sys/types.h>
5887 #if STDC_HEADERS
5888 #include <stdlib.h>
5889 #include <stddef.h>
5890 #endif
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5894 rm -rf conftest*
5895 ac_cv_type_ssize_t=yes
5896 else
5897 rm -rf conftest*
5898 ac_cv_type_ssize_t=no
5900 rm -f conftest*
5903 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5904 if test $ac_cv_type_ssize_t = no; then
5905 cat >> confdefs.h <<\EOF
5906 #define ssize_t int
5912 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5913 echo "configure:5914: checking for in_addr_t" >&5
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5917 #include <sys/types.h>
5918 #if STDC_HEADERS
5919 #include <stdlib.h>
5920 #include <stddef.h>
5921 #endif
5922 #if HAVE_NETINET_IN_H
5923 #include <netinet/in.h>
5924 #endif
5925 int main() {
5926 in_addr_t foo;
5927 ; return 0; }
5929 if { (eval echo configure:5930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5930 rm -rf conftest*
5931 cat >> confdefs.h <<\EOF
5932 #define HAVE_IN_ADDR_T 1
5935 echo "$ac_t""yes" 1>&6
5936 else
5937 echo "configure: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5939 rm -rf conftest*
5940 echo "$ac_t""no" 1>&6
5942 rm -f conftest*
5944 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5945 echo "configure:5946: checking whether struct ip_mreq is in netinet/in.h" >&5
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 #include <netinet/in.h>
5950 int main() {
5951 struct ip_mreq mreq;
5952 ; return 0; }
5954 if { (eval echo configure:5955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5955 rm -rf conftest*
5956 cat >> confdefs.h <<\EOF
5957 #define HAVE_STRUCT_IP_MREQ 1
5960 echo "$ac_t""yes" 1>&6
5961 else
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 rm -rf conftest*
5965 echo "$ac_t""no" 1>&6
5967 rm -f conftest*
5969 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
5970 echo "configure:5971: checking whether struct ipv6_mreq is in netinet/in.h" >&5
5971 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 #include <netinet/in.h>
5975 int main() {
5976 struct ipv6_mreq mreq6;
5977 ; return 0; }
5979 if { (eval echo configure:5980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5980 rm -rf conftest*
5981 cat >> confdefs.h <<\EOF
5982 #define HAVE_STRUCT_IPV6_MREQ 1
5985 echo "$ac_t""yes" 1>&6
5986 else
5987 echo "configure: failed program was:" >&5
5988 cat conftest.$ac_ext >&5
5989 rm -rf conftest*
5990 echo "$ac_t""no" 1>&6
5992 rm -f conftest*
5994 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5995 echo "configure:5996: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
5999 #include <netinet/in.h>
6000 int main() {
6001 struct sockaddr_in6 addr6;
6002 ; return 0; }
6004 if { (eval echo configure:6005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6005 rm -rf conftest*
6006 cat >> confdefs.h <<\EOF
6007 #define HAVE_INET6 1
6010 echo "$ac_t""yes" 1>&6
6011 else
6012 echo "configure: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6014 rm -rf conftest*
6015 echo "$ac_t""no" 1>&6
6017 rm -f conftest*
6019 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
6020 echo "configure:6021: checking for socklen_t in sys/socket.h" >&5
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 #define _POSIX_PII_SOCKET
6025 #include <sys/types.h>
6026 #include <sys/socket.h>
6027 int main() {
6028 socklen_t x = 5;
6029 ; return 0; }
6031 if { (eval echo configure:6032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6032 rm -rf conftest*
6033 cat >> confdefs.h <<\EOF
6034 #define HAVE_SOCKLEN_T 1
6037 echo "$ac_t""yes" 1>&6
6038 else
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6041 rm -rf conftest*
6042 echo "$ac_t""no" 1>&6
6044 rm -f conftest*
6046 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6047 echo "configure:6048: checking for tm_gmtoff in struct tm" >&5
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051 #include <time.h>
6052 int main() {
6053 struct tm tim; tim.tm_gmtoff = 0;
6054 ; return 0; }
6056 if { (eval echo configure:6057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6057 rm -rf conftest*
6058 cat >> confdefs.h <<\EOF
6059 #define STRUCT_TM_HAS_GMTOFF 1
6062 echo "$ac_t""yes" 1>&6
6063 else
6064 echo "configure: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6066 rm -rf conftest*
6067 echo "$ac_t""no" 1>&6
6068 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
6069 echo "configure:6070: checking for global timezone variable" >&5
6070 cat > conftest.$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6073 #include <time.h>
6074 int main() {
6075 long z2 = timezone;
6076 ; return 0; }
6078 if { (eval echo configure:6079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6079 rm -rf conftest*
6080 cat >> confdefs.h <<\EOF
6081 #define HAVE_TIMEZONE 1
6084 echo "$ac_t""yes" 1>&6
6085 else
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6088 rm -rf conftest*
6089 echo "$ac_t""no" 1>&6
6091 rm -f conftest*
6093 rm -f conftest*
6095 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6096 # for constant arguments. Useless!
6097 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6098 echo "configure:6099: checking for working alloca.h" >&5
6099 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6100 echo $ac_n "(cached) $ac_c" 1>&6
6101 else
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 #include <alloca.h>
6106 int main() {
6107 char *p = alloca(2 * sizeof(int));
6108 ; return 0; }
6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 rm -rf conftest*
6112 ac_cv_header_alloca_h=yes
6113 else
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116 rm -rf conftest*
6117 ac_cv_header_alloca_h=no
6119 rm -f conftest*
6122 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6123 if test $ac_cv_header_alloca_h = yes; then
6124 cat >> confdefs.h <<\EOF
6125 #define HAVE_ALLOCA_H 1
6130 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6131 echo "configure:6132: checking for alloca" >&5
6132 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6133 echo $ac_n "(cached) $ac_c" 1>&6
6134 else
6135 cat > conftest.$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6139 #ifdef __GNUC__
6140 # define alloca __builtin_alloca
6141 #else
6142 # ifdef _MSC_VER
6143 # include <malloc.h>
6144 # define alloca _alloca
6145 # else
6146 # if HAVE_ALLOCA_H
6147 # include <alloca.h>
6148 # else
6149 # ifdef _AIX
6150 #pragma alloca
6151 # else
6152 # ifndef alloca /* predefined by HP cc +Olibcalls */
6153 char *alloca ();
6154 # endif
6155 # endif
6156 # endif
6157 # endif
6158 #endif
6160 int main() {
6161 char *p = (char *) alloca(1);
6162 ; return 0; }
6164 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6165 rm -rf conftest*
6166 ac_cv_func_alloca_works=yes
6167 else
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6170 rm -rf conftest*
6171 ac_cv_func_alloca_works=no
6173 rm -f conftest*
6176 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6177 if test $ac_cv_func_alloca_works = yes; then
6178 cat >> confdefs.h <<\EOF
6179 #define HAVE_ALLOCA 1
6184 if test $ac_cv_func_alloca_works = no; then
6185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6186 # that cause trouble. Some versions do not even contain alloca or
6187 # contain a buggy version. If you still want to use their alloca,
6188 # use ar to extract alloca.o from them instead of compiling alloca.c.
6189 ALLOCA=alloca.${ac_objext}
6190 cat >> confdefs.h <<\EOF
6191 #define C_ALLOCA 1
6195 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6196 echo "configure:6197: checking whether alloca needs Cray hooks" >&5
6197 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6199 else
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 #if defined(CRAY) && ! defined(CRAY2)
6204 webecray
6205 #else
6206 wenotbecray
6207 #endif
6210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6211 egrep "webecray" >/dev/null 2>&1; then
6212 rm -rf conftest*
6213 ac_cv_os_cray=yes
6214 else
6215 rm -rf conftest*
6216 ac_cv_os_cray=no
6218 rm -f conftest*
6222 echo "$ac_t""$ac_cv_os_cray" 1>&6
6223 if test $ac_cv_os_cray = yes; then
6224 for ac_func in _getb67 GETB67 getb67; do
6225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6226 echo "configure:6227: checking for $ac_func" >&5
6227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6
6229 else
6230 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6233 /* System header to define __stub macros and hopefully few prototypes,
6234 which can conflict with char $ac_func(); below. */
6235 #include <assert.h>
6236 /* Override any gcc2 internal prototype to avoid an error. */
6237 /* We use char because int might match the return type of a gcc2
6238 builtin and then its argument prototype would still apply. */
6239 char $ac_func();
6241 int main() {
6243 /* The GNU C library defines this for functions which it implements
6244 to always fail with ENOSYS. Some functions are actually named
6245 something starting with __ and the normal name is an alias. */
6246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6247 choke me
6248 #else
6249 $ac_func();
6250 #endif
6252 ; return 0; }
6254 if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6255 rm -rf conftest*
6256 eval "ac_cv_func_$ac_func=yes"
6257 else
6258 echo "configure: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 rm -rf conftest*
6261 eval "ac_cv_func_$ac_func=no"
6263 rm -f conftest*
6266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6267 echo "$ac_t""yes" 1>&6
6268 cat >> confdefs.h <<EOF
6269 #define CRAY_STACKSEG_END $ac_func
6272 break
6273 else
6274 echo "$ac_t""no" 1>&6
6277 done
6280 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6281 echo "configure:6282: checking stack direction for C alloca" >&5
6282 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6284 else
6285 if test "$cross_compiling" = yes; then
6286 ac_cv_c_stack_direction=0
6287 else
6288 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6291 find_stack_direction ()
6293 static char *addr = 0;
6294 auto char dummy;
6295 if (addr == 0)
6297 addr = &dummy;
6298 return find_stack_direction ();
6300 else
6301 return (&dummy > addr) ? 1 : -1;
6303 main ()
6305 exit (find_stack_direction() < 0);
6308 if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6309 then
6310 ac_cv_c_stack_direction=1
6311 else
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 rm -fr conftest*
6315 ac_cv_c_stack_direction=-1
6317 rm -fr conftest*
6322 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6323 cat >> confdefs.h <<EOF
6324 #define STACK_DIRECTION $ac_cv_c_stack_direction
6330 for ac_prog in perl
6332 # Extract the first word of "$ac_prog", so it can be a program name with args.
6333 set dummy $ac_prog; ac_word=$2
6334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6335 echo "configure:6336: checking for $ac_word" >&5
6336 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6337 echo $ac_n "(cached) $ac_c" 1>&6
6338 else
6339 if test -n "$PERL"; then
6340 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6341 else
6342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6343 ac_dummy="$PATH"
6344 for ac_dir in $ac_dummy; do
6345 test -z "$ac_dir" && ac_dir=.
6346 if test -f $ac_dir/$ac_word; then
6347 ac_cv_prog_PERL="$ac_prog"
6348 break
6350 done
6351 IFS="$ac_save_ifs"
6354 PERL="$ac_cv_prog_PERL"
6355 if test -n "$PERL"; then
6356 echo "$ac_t""$PERL" 1>&6
6357 else
6358 echo "$ac_t""no" 1>&6
6361 test -n "$PERL" && break
6362 done
6363 test -n "$PERL" || PERL="false"
6366 SYSDEP_SOURCES=
6368 case "${host}" in
6369 i?86-*-linux*)
6370 SIGNAL_HANDLER=include/i386-signal.h
6372 sparc-sun-solaris*)
6373 SIGNAL_HANDLER=include/sparc-signal.h
6375 # ia64-*)
6376 # SYSDEP_SOURCES=sysdep/ia64.c
6377 # test -d sysdep || mkdir sysdep
6378 # ;;
6379 powerpc-*-linux*)
6380 SIGNAL_HANDLER=include/dwarf2-signal.h
6382 alpha*-*-linux*)
6383 SIGNAL_HANDLER=include/dwarf2-signal.h
6385 *mingw*)
6386 SIGNAL_HANDLER=include/win32-signal.h
6389 SIGNAL_HANDLER=include/default-signal.h
6391 esac
6393 # If we're using sjlj exceptions, forget what we just learned.
6394 if test "$enable_sjlj_exceptions" = yes; then
6395 SIGNAL_HANDLER=include/default-signal.h
6402 if test "${multilib}" = "yes"; then
6403 multilib_arg="--enable-multilib"
6404 else
6405 multilib_arg=
6408 # If we find X, set shell vars x_includes and x_libraries to the
6409 # paths, otherwise set no_x=yes.
6410 # Uses ac_ vars as temps to allow command line to override cache and checks.
6411 # --without-x overrides everything else, but does not touch the cache.
6412 echo $ac_n "checking for X""... $ac_c" 1>&6
6413 echo "configure:6414: checking for X" >&5
6415 # Check whether --with-x or --without-x was given.
6416 if test "${with_x+set}" = set; then
6417 withval="$with_x"
6421 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6422 if test "x$with_x" = xno; then
6423 # The user explicitly disabled X.
6424 have_x=disabled
6425 else
6426 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6427 # Both variables are already set.
6428 have_x=yes
6429 else
6430 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433 # One or both of the vars are not set, and there is no cached value.
6434 ac_x_includes=NO ac_x_libraries=NO
6435 rm -fr conftestdir
6436 if mkdir conftestdir; then
6437 cd conftestdir
6438 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6439 cat > Imakefile <<'EOF'
6440 acfindx:
6441 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6443 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6445 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6446 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6447 for ac_extension in a so sl; do
6448 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6449 test -f $ac_im_libdir/libX11.$ac_extension; then
6450 ac_im_usrlibdir=$ac_im_libdir; break
6452 done
6453 # Screen out bogus values from the imake configuration. They are
6454 # bogus both because they are the default anyway, and because
6455 # using them would break gcc on systems where it needs fixed includes.
6456 case "$ac_im_incroot" in
6457 /usr/include) ;;
6458 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6459 esac
6460 case "$ac_im_usrlibdir" in
6461 /usr/lib | /lib) ;;
6462 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6463 esac
6465 cd ..
6466 rm -fr conftestdir
6469 if test "$ac_x_includes" = NO; then
6470 # Guess where to find include files, by looking for this one X11 .h file.
6471 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6473 # First, try using that file with no special directory specified.
6474 cat > conftest.$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6477 #include <$x_direct_test_include>
6479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6480 { (eval echo configure:6481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6482 if test -z "$ac_err"; then
6483 rm -rf conftest*
6484 # We can compile using X headers with no special include directory.
6485 ac_x_includes=
6486 else
6487 echo "$ac_err" >&5
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6490 rm -rf conftest*
6491 # Look for the header file in a standard set of common directories.
6492 # Check X11 before X11Rn because it is often a symlink to the current release.
6493 for ac_dir in \
6494 /usr/X11/include \
6495 /usr/X11R6/include \
6496 /usr/X11R5/include \
6497 /usr/X11R4/include \
6499 /usr/include/X11 \
6500 /usr/include/X11R6 \
6501 /usr/include/X11R5 \
6502 /usr/include/X11R4 \
6504 /usr/local/X11/include \
6505 /usr/local/X11R6/include \
6506 /usr/local/X11R5/include \
6507 /usr/local/X11R4/include \
6509 /usr/local/include/X11 \
6510 /usr/local/include/X11R6 \
6511 /usr/local/include/X11R5 \
6512 /usr/local/include/X11R4 \
6514 /usr/X386/include \
6515 /usr/x386/include \
6516 /usr/XFree86/include/X11 \
6518 /usr/include \
6519 /usr/local/include \
6520 /usr/unsupported/include \
6521 /usr/athena/include \
6522 /usr/local/x11r5/include \
6523 /usr/lpp/Xamples/include \
6525 /usr/openwin/include \
6526 /usr/openwin/share/include \
6529 if test -r "$ac_dir/$x_direct_test_include"; then
6530 ac_x_includes=$ac_dir
6531 break
6533 done
6535 rm -f conftest*
6536 fi # $ac_x_includes = NO
6538 if test "$ac_x_libraries" = NO; then
6539 # Check for the libraries.
6541 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6542 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6544 # See if we find them without any special options.
6545 # Don't add to $LIBS permanently.
6546 ac_save_LIBS="$LIBS"
6547 LIBS="-l$x_direct_test_library $LIBS"
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6552 int main() {
6553 ${x_direct_test_function}()
6554 ; return 0; }
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6557 rm -rf conftest*
6558 LIBS="$ac_save_LIBS"
6559 # We can link X programs with no special library path.
6560 ac_x_libraries=
6561 else
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6564 rm -rf conftest*
6565 LIBS="$ac_save_LIBS"
6566 # First see if replacing the include by lib works.
6567 # Check X11 before X11Rn because it is often a symlink to the current release.
6568 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6569 /usr/X11/lib \
6570 /usr/X11R6/lib \
6571 /usr/X11R5/lib \
6572 /usr/X11R4/lib \
6574 /usr/lib/X11 \
6575 /usr/lib/X11R6 \
6576 /usr/lib/X11R5 \
6577 /usr/lib/X11R4 \
6579 /usr/local/X11/lib \
6580 /usr/local/X11R6/lib \
6581 /usr/local/X11R5/lib \
6582 /usr/local/X11R4/lib \
6584 /usr/local/lib/X11 \
6585 /usr/local/lib/X11R6 \
6586 /usr/local/lib/X11R5 \
6587 /usr/local/lib/X11R4 \
6589 /usr/X386/lib \
6590 /usr/x386/lib \
6591 /usr/XFree86/lib/X11 \
6593 /usr/lib \
6594 /usr/local/lib \
6595 /usr/unsupported/lib \
6596 /usr/athena/lib \
6597 /usr/local/x11r5/lib \
6598 /usr/lpp/Xamples/lib \
6599 /lib/usr/lib/X11 \
6601 /usr/openwin/lib \
6602 /usr/openwin/share/lib \
6605 for ac_extension in a so sl; do
6606 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6607 ac_x_libraries=$ac_dir
6608 break 2
6610 done
6611 done
6613 rm -f conftest*
6614 fi # $ac_x_libraries = NO
6616 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6617 # Didn't find X anywhere. Cache the known absence of X.
6618 ac_cv_have_x="have_x=no"
6619 else
6620 # Record where we found X for the cache.
6621 ac_cv_have_x="have_x=yes \
6622 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6626 eval "$ac_cv_have_x"
6627 fi # $with_x != no
6629 if test "$have_x" != yes; then
6630 echo "$ac_t""$have_x" 1>&6
6631 no_x=yes
6632 else
6633 # If each of the values was on the command line, it overrides each guess.
6634 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6635 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6636 # Update the cache value to reflect the command line values.
6637 ac_cv_have_x="have_x=yes \
6638 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6639 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6642 if test "$no_x" = yes; then
6643 # Not all programs may use this symbol, but it does not hurt to define it.
6644 cat >> confdefs.h <<\EOF
6645 #define X_DISPLAY_MISSING 1
6648 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6649 else
6650 if test -n "$x_includes"; then
6651 X_CFLAGS="$X_CFLAGS -I$x_includes"
6654 # It would also be nice to do this for all -L options, not just this one.
6655 if test -n "$x_libraries"; then
6656 X_LIBS="$X_LIBS -L$x_libraries"
6657 # For Solaris; some versions of Sun CC require a space after -R and
6658 # others require no space. Words are not sufficient . . . .
6659 case "`(uname -sr) 2>/dev/null`" in
6660 "SunOS 5"*)
6661 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6662 echo "configure:6663: checking whether -R must be followed by a space" >&5
6663 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6668 int main() {
6670 ; return 0; }
6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673 rm -rf conftest*
6674 ac_R_nospace=yes
6675 else
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6678 rm -rf conftest*
6679 ac_R_nospace=no
6681 rm -f conftest*
6682 if test $ac_R_nospace = yes; then
6683 echo "$ac_t""no" 1>&6
6684 X_LIBS="$X_LIBS -R$x_libraries"
6685 else
6686 LIBS="$ac_xsave_LIBS -R $x_libraries"
6687 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6691 int main() {
6693 ; return 0; }
6695 if { (eval echo configure:6696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696 rm -rf conftest*
6697 ac_R_space=yes
6698 else
6699 echo "configure: failed program was:" >&5
6700 cat conftest.$ac_ext >&5
6701 rm -rf conftest*
6702 ac_R_space=no
6704 rm -f conftest*
6705 if test $ac_R_space = yes; then
6706 echo "$ac_t""yes" 1>&6
6707 X_LIBS="$X_LIBS -R $x_libraries"
6708 else
6709 echo "$ac_t""neither works" 1>&6
6712 LIBS="$ac_xsave_LIBS"
6713 esac
6716 # Check for system-dependent libraries X programs must link with.
6717 # Do this before checking for the system-independent R6 libraries
6718 # (-lICE), since we may need -lsocket or whatever for X linking.
6720 if test "$ISC" = yes; then
6721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6722 else
6723 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6724 # libraries were built with DECnet support. And karl@cs.umb.edu says
6725 # the Alpha needs dnet_stub (dnet does not exist).
6726 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6727 echo "configure:6728: checking for dnet_ntoa in -ldnet" >&5
6728 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6731 else
6732 ac_save_LIBS="$LIBS"
6733 LIBS="-ldnet $LIBS"
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740 char dnet_ntoa();
6742 int main() {
6743 dnet_ntoa()
6744 ; return 0; }
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6747 rm -rf conftest*
6748 eval "ac_cv_lib_$ac_lib_var=yes"
6749 else
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 rm -rf conftest*
6753 eval "ac_cv_lib_$ac_lib_var=no"
6755 rm -f conftest*
6756 LIBS="$ac_save_LIBS"
6759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6761 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6762 else
6763 echo "$ac_t""no" 1>&6
6766 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6767 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6768 echo "configure:6769: checking for dnet_ntoa in -ldnet_stub" >&5
6769 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6772 else
6773 ac_save_LIBS="$LIBS"
6774 LIBS="-ldnet_stub $LIBS"
6775 cat > conftest.$ac_ext <<EOF
6776 #line 6777 "configure"
6777 #include "confdefs.h"
6778 /* Override any gcc2 internal prototype to avoid an error. */
6779 /* We use char because int might match the return type of a gcc2
6780 builtin and then its argument prototype would still apply. */
6781 char dnet_ntoa();
6783 int main() {
6784 dnet_ntoa()
6785 ; return 0; }
6787 if { (eval echo configure:6788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6788 rm -rf conftest*
6789 eval "ac_cv_lib_$ac_lib_var=yes"
6790 else
6791 echo "configure: failed program was:" >&5
6792 cat conftest.$ac_ext >&5
6793 rm -rf conftest*
6794 eval "ac_cv_lib_$ac_lib_var=no"
6796 rm -f conftest*
6797 LIBS="$ac_save_LIBS"
6800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6801 echo "$ac_t""yes" 1>&6
6802 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6803 else
6804 echo "$ac_t""no" 1>&6
6809 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6810 # to get the SysV transport functions.
6811 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6812 # needs -lnsl.
6813 # The nsl library prevents programs from opening the X display
6814 # on Irix 5.2, according to dickey@clark.net.
6815 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6816 echo "configure:6817: checking for gethostbyname" >&5
6817 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6819 else
6820 cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6823 /* System header to define __stub macros and hopefully few prototypes,
6824 which can conflict with char gethostbyname(); below. */
6825 #include <assert.h>
6826 /* Override any gcc2 internal prototype to avoid an error. */
6827 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */
6829 char gethostbyname();
6831 int main() {
6833 /* The GNU C library defines this for functions which it implements
6834 to always fail with ENOSYS. Some functions are actually named
6835 something starting with __ and the normal name is an alias. */
6836 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6837 choke me
6838 #else
6839 gethostbyname();
6840 #endif
6842 ; return 0; }
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6845 rm -rf conftest*
6846 eval "ac_cv_func_gethostbyname=yes"
6847 else
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6850 rm -rf conftest*
6851 eval "ac_cv_func_gethostbyname=no"
6853 rm -f conftest*
6856 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6857 echo "$ac_t""yes" 1>&6
6859 else
6860 echo "$ac_t""no" 1>&6
6863 if test $ac_cv_func_gethostbyname = no; then
6864 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6865 echo "configure:6866: checking for gethostbyname in -lnsl" >&5
6866 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6869 else
6870 ac_save_LIBS="$LIBS"
6871 LIBS="-lnsl $LIBS"
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6878 char gethostbyname();
6880 int main() {
6881 gethostbyname()
6882 ; return 0; }
6884 if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6885 rm -rf conftest*
6886 eval "ac_cv_lib_$ac_lib_var=yes"
6887 else
6888 echo "configure: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6890 rm -rf conftest*
6891 eval "ac_cv_lib_$ac_lib_var=no"
6893 rm -f conftest*
6894 LIBS="$ac_save_LIBS"
6897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6900 else
6901 echo "$ac_t""no" 1>&6
6906 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6907 # socket/setsockopt and other routines are undefined under SCO ODT
6908 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6909 # on later versions), says simon@lia.di.epfl.ch: it contains
6910 # gethostby* variants that don't use the nameserver (or something).
6911 # -lsocket must be given before -lnsl if both are needed.
6912 # We assume that if connect needs -lnsl, so does gethostbyname.
6913 echo $ac_n "checking for connect""... $ac_c" 1>&6
6914 echo "configure:6915: checking for connect" >&5
6915 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6917 else
6918 cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6921 /* System header to define __stub macros and hopefully few prototypes,
6922 which can conflict with char connect(); below. */
6923 #include <assert.h>
6924 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6927 char connect();
6929 int main() {
6931 /* The GNU C library defines this for functions which it implements
6932 to always fail with ENOSYS. Some functions are actually named
6933 something starting with __ and the normal name is an alias. */
6934 #if defined (__stub_connect) || defined (__stub___connect)
6935 choke me
6936 #else
6937 connect();
6938 #endif
6940 ; return 0; }
6942 if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6943 rm -rf conftest*
6944 eval "ac_cv_func_connect=yes"
6945 else
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6948 rm -rf conftest*
6949 eval "ac_cv_func_connect=no"
6951 rm -f conftest*
6954 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6955 echo "$ac_t""yes" 1>&6
6957 else
6958 echo "$ac_t""no" 1>&6
6961 if test $ac_cv_func_connect = no; then
6962 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6963 echo "configure:6964: checking for connect in -lsocket" >&5
6964 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6967 else
6968 ac_save_LIBS="$LIBS"
6969 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6976 char connect();
6978 int main() {
6979 connect()
6980 ; return 0; }
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6983 rm -rf conftest*
6984 eval "ac_cv_lib_$ac_lib_var=yes"
6985 else
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 rm -rf conftest*
6989 eval "ac_cv_lib_$ac_lib_var=no"
6991 rm -f conftest*
6992 LIBS="$ac_save_LIBS"
6995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6998 else
6999 echo "$ac_t""no" 1>&6
7004 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7005 echo $ac_n "checking for remove""... $ac_c" 1>&6
7006 echo "configure:7007: checking for remove" >&5
7007 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7009 else
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7013 /* System header to define __stub macros and hopefully few prototypes,
7014 which can conflict with char remove(); below. */
7015 #include <assert.h>
7016 /* Override any gcc2 internal prototype to avoid an error. */
7017 /* We use char because int might match the return type of a gcc2
7018 builtin and then its argument prototype would still apply. */
7019 char remove();
7021 int main() {
7023 /* The GNU C library defines this for functions which it implements
7024 to always fail with ENOSYS. Some functions are actually named
7025 something starting with __ and the normal name is an alias. */
7026 #if defined (__stub_remove) || defined (__stub___remove)
7027 choke me
7028 #else
7029 remove();
7030 #endif
7032 ; return 0; }
7034 if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7035 rm -rf conftest*
7036 eval "ac_cv_func_remove=yes"
7037 else
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7040 rm -rf conftest*
7041 eval "ac_cv_func_remove=no"
7043 rm -f conftest*
7046 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7047 echo "$ac_t""yes" 1>&6
7049 else
7050 echo "$ac_t""no" 1>&6
7053 if test $ac_cv_func_remove = no; then
7054 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7055 echo "configure:7056: checking for remove in -lposix" >&5
7056 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7058 echo $ac_n "(cached) $ac_c" 1>&6
7059 else
7060 ac_save_LIBS="$LIBS"
7061 LIBS="-lposix $LIBS"
7062 cat > conftest.$ac_ext <<EOF
7063 #line 7064 "configure"
7064 #include "confdefs.h"
7065 /* Override any gcc2 internal prototype to avoid an error. */
7066 /* We use char because int might match the return type of a gcc2
7067 builtin and then its argument prototype would still apply. */
7068 char remove();
7070 int main() {
7071 remove()
7072 ; return 0; }
7074 if { (eval echo configure:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7075 rm -rf conftest*
7076 eval "ac_cv_lib_$ac_lib_var=yes"
7077 else
7078 echo "configure: failed program was:" >&5
7079 cat conftest.$ac_ext >&5
7080 rm -rf conftest*
7081 eval "ac_cv_lib_$ac_lib_var=no"
7083 rm -f conftest*
7084 LIBS="$ac_save_LIBS"
7087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7088 echo "$ac_t""yes" 1>&6
7089 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7090 else
7091 echo "$ac_t""no" 1>&6
7096 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7097 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7098 echo "configure:7099: checking for shmat" >&5
7099 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7101 else
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 /* System header to define __stub macros and hopefully few prototypes,
7106 which can conflict with char shmat(); below. */
7107 #include <assert.h>
7108 /* Override any gcc2 internal prototype to avoid an error. */
7109 /* We use char because int might match the return type of a gcc2
7110 builtin and then its argument prototype would still apply. */
7111 char shmat();
7113 int main() {
7115 /* The GNU C library defines this for functions which it implements
7116 to always fail with ENOSYS. Some functions are actually named
7117 something starting with __ and the normal name is an alias. */
7118 #if defined (__stub_shmat) || defined (__stub___shmat)
7119 choke me
7120 #else
7121 shmat();
7122 #endif
7124 ; return 0; }
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7127 rm -rf conftest*
7128 eval "ac_cv_func_shmat=yes"
7129 else
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 rm -rf conftest*
7133 eval "ac_cv_func_shmat=no"
7135 rm -f conftest*
7138 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7139 echo "$ac_t""yes" 1>&6
7141 else
7142 echo "$ac_t""no" 1>&6
7145 if test $ac_cv_func_shmat = no; then
7146 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7147 echo "configure:7148: checking for shmat in -lipc" >&5
7148 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7150 echo $ac_n "(cached) $ac_c" 1>&6
7151 else
7152 ac_save_LIBS="$LIBS"
7153 LIBS="-lipc $LIBS"
7154 cat > conftest.$ac_ext <<EOF
7155 #line 7156 "configure"
7156 #include "confdefs.h"
7157 /* Override any gcc2 internal prototype to avoid an error. */
7158 /* We use char because int might match the return type of a gcc2
7159 builtin and then its argument prototype would still apply. */
7160 char shmat();
7162 int main() {
7163 shmat()
7164 ; return 0; }
7166 if { (eval echo configure:7167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7167 rm -rf conftest*
7168 eval "ac_cv_lib_$ac_lib_var=yes"
7169 else
7170 echo "configure: failed program was:" >&5
7171 cat conftest.$ac_ext >&5
7172 rm -rf conftest*
7173 eval "ac_cv_lib_$ac_lib_var=no"
7175 rm -f conftest*
7176 LIBS="$ac_save_LIBS"
7179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7180 echo "$ac_t""yes" 1>&6
7181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7182 else
7183 echo "$ac_t""no" 1>&6
7189 # Check for libraries that X11R6 Xt/Xaw programs need.
7190 ac_save_LDFLAGS="$LDFLAGS"
7191 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7192 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7193 # check for ICE first), but we must link in the order -lSM -lICE or
7194 # we get undefined symbols. So assume we have SM if we have ICE.
7195 # These have to be linked with before -lX11, unlike the other
7196 # libraries we check for below, so use a different variable.
7197 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7198 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7199 echo "configure:7200: checking for IceConnectionNumber in -lICE" >&5
7200 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7203 else
7204 ac_save_LIBS="$LIBS"
7205 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7206 cat > conftest.$ac_ext <<EOF
7207 #line 7208 "configure"
7208 #include "confdefs.h"
7209 /* Override any gcc2 internal prototype to avoid an error. */
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
7212 char IceConnectionNumber();
7214 int main() {
7215 IceConnectionNumber()
7216 ; return 0; }
7218 if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7219 rm -rf conftest*
7220 eval "ac_cv_lib_$ac_lib_var=yes"
7221 else
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7224 rm -rf conftest*
7225 eval "ac_cv_lib_$ac_lib_var=no"
7227 rm -f conftest*
7228 LIBS="$ac_save_LIBS"
7231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7232 echo "$ac_t""yes" 1>&6
7233 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7234 else
7235 echo "$ac_t""no" 1>&6
7238 LDFLAGS="$ac_save_LDFLAGS"
7243 # Check whether --enable-java-awt or --disable-java-awt was given.
7244 if test "${enable_java_awt+set}" = set; then
7245 enableval="$enable_java_awt"
7250 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7251 use_xlib_awt=""
7252 use_gtk_awt=""
7254 for peer in $peerlibs ; do
7255 case $peer in
7256 xlib)
7257 if test "$no_x" = yes; then
7258 echo "*** xlib peers requested but no X library available" 1>&2
7259 exit 1
7260 else
7261 use_xlib_awt="yes"
7264 gtk)
7265 # Nothing, yet...
7268 use_xlib_awt=
7269 use_gtk_awt=
7270 break
7273 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7274 exit 1
7275 esac
7276 done
7280 if test "$use_xlib_awt" = yes; then
7281 XLIB_AWT_TRUE=
7282 XLIB_AWT_FALSE='#'
7283 else
7284 XLIB_AWT_TRUE='#'
7285 XLIB_AWT_FALSE=
7289 if test "$use_gtk_awt" = yes; then
7290 GTK_AWT_TRUE=
7291 GTK_AWT_FALSE='#'
7292 else
7293 GTK_AWT_TRUE='#'
7294 GTK_AWT_FALSE=
7298 here=`pwd`
7301 # We get this from the environment.
7304 trap '' 1 2 15
7305 cat > confcache <<\EOF
7306 # This file is a shell script that caches the results of configure
7307 # tests run on this system so they can be shared between configure
7308 # scripts and configure runs. It is not useful on other systems.
7309 # If it contains results you don't want to keep, you may remove or edit it.
7311 # By default, configure uses ./config.cache as the cache file,
7312 # creating it if it does not exist already. You can give configure
7313 # the --cache-file=FILE option to use a different cache file; that is
7314 # what configure does when it calls configure scripts in
7315 # subdirectories, so they share the cache.
7316 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7317 # config.status only pays attention to the cache file if you give it the
7318 # --recheck option to rerun configure.
7321 # The following way of writing the cache mishandles newlines in values,
7322 # but we know of no workaround that is simple, portable, and efficient.
7323 # So, don't put newlines in cache variables' values.
7324 # Ultrix sh set writes to stderr and can't be redirected directly,
7325 # and sets the high bit in the cache file unless we assign to the vars.
7326 (set) 2>&1 |
7327 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7328 *ac_space=\ *)
7329 # `set' does not quote correctly, so add quotes (double-quote substitution
7330 # turns \\\\ into \\, and sed turns \\ into \).
7331 sed -n \
7332 -e "s/'/'\\\\''/g" \
7333 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7336 # `set' quotes correctly as required by POSIX, so do not add quotes.
7337 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7339 esac >> confcache
7340 if cmp -s $cache_file confcache; then
7342 else
7343 if test -w $cache_file; then
7344 echo "updating cache $cache_file"
7345 cat confcache > $cache_file
7346 else
7347 echo "not updating unwritable cache $cache_file"
7350 rm -f confcache
7352 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7354 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7355 # Let make expand exec_prefix.
7356 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7358 # Any assignment to VPATH causes Sun make to only execute
7359 # the first set of double-colon rules, so remove it if not needed.
7360 # If there is a colon in the path, we need to keep it.
7361 if test "x$srcdir" = x.; then
7362 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7365 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7367 DEFS=-DHAVE_CONFIG_H
7369 # Without the "./", some shells look in PATH for config.status.
7370 : ${CONFIG_STATUS=./config.status}
7372 echo creating $CONFIG_STATUS
7373 rm -f $CONFIG_STATUS
7374 cat > $CONFIG_STATUS <<EOF
7375 #! /bin/sh
7376 # Generated automatically by configure.
7377 # Run this file to recreate the current configuration.
7378 # This directory was configured as follows,
7379 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7381 # $0 $ac_configure_args
7383 # Compiler output produced by configure, useful for debugging
7384 # configure, is in ./config.log if it exists.
7386 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7387 for ac_option
7389 case "\$ac_option" in
7390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7391 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7392 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7393 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7394 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7395 exit 0 ;;
7396 -help | --help | --hel | --he | --h)
7397 echo "\$ac_cs_usage"; exit 0 ;;
7398 *) echo "\$ac_cs_usage"; exit 1 ;;
7399 esac
7400 done
7402 ac_given_srcdir=$srcdir
7403 ac_given_INSTALL="$INSTALL"
7405 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
7407 cat >> $CONFIG_STATUS <<EOF
7409 # Protect against being on the right side of a sed subst in config.status.
7410 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7411 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7412 $ac_vpsub
7413 $extrasub
7414 s%@SHELL@%$SHELL%g
7415 s%@CFLAGS@%$CFLAGS%g
7416 s%@CPPFLAGS@%$CPPFLAGS%g
7417 s%@CXXFLAGS@%$CXXFLAGS%g
7418 s%@FFLAGS@%$FFLAGS%g
7419 s%@DEFS@%$DEFS%g
7420 s%@LDFLAGS@%$LDFLAGS%g
7421 s%@LIBS@%$LIBS%g
7422 s%@exec_prefix@%$exec_prefix%g
7423 s%@prefix@%$prefix%g
7424 s%@program_transform_name@%$program_transform_name%g
7425 s%@bindir@%$bindir%g
7426 s%@sbindir@%$sbindir%g
7427 s%@libexecdir@%$libexecdir%g
7428 s%@datadir@%$datadir%g
7429 s%@sysconfdir@%$sysconfdir%g
7430 s%@sharedstatedir@%$sharedstatedir%g
7431 s%@localstatedir@%$localstatedir%g
7432 s%@libdir@%$libdir%g
7433 s%@includedir@%$includedir%g
7434 s%@oldincludedir@%$oldincludedir%g
7435 s%@infodir@%$infodir%g
7436 s%@mandir@%$mandir%g
7437 s%@LN_S@%$LN_S%g
7438 s%@libgcj_basedir@%$libgcj_basedir%g
7439 s%@mkinstalldirs@%$mkinstalldirs%g
7440 s%@host@%$host%g
7441 s%@host_alias@%$host_alias%g
7442 s%@host_cpu@%$host_cpu%g
7443 s%@host_vendor@%$host_vendor%g
7444 s%@host_os@%$host_os%g
7445 s%@target@%$target%g
7446 s%@target_alias@%$target_alias%g
7447 s%@target_cpu@%$target_cpu%g
7448 s%@target_vendor@%$target_vendor%g
7449 s%@target_os@%$target_os%g
7450 s%@build@%$build%g
7451 s%@build_alias@%$build_alias%g
7452 s%@build_cpu@%$build_cpu%g
7453 s%@build_vendor@%$build_vendor%g
7454 s%@build_os@%$build_os%g
7455 s%@CC@%$CC%g
7456 s%@glibjava_CXX@%$glibjava_CXX%g
7457 s%@CXX@%$CXX%g
7458 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7459 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7460 s%@INSTALL_DATA@%$INSTALL_DATA%g
7461 s%@PACKAGE@%$PACKAGE%g
7462 s%@VERSION@%$VERSION%g
7463 s%@ACLOCAL@%$ACLOCAL%g
7464 s%@AUTOCONF@%$AUTOCONF%g
7465 s%@AUTOMAKE@%$AUTOMAKE%g
7466 s%@AUTOHEADER@%$AUTOHEADER%g
7467 s%@MAKEINFO@%$MAKEINFO%g
7468 s%@SET_MAKE@%$SET_MAKE%g
7469 s%@AS@%$AS%g
7470 s%@AR@%$AR%g
7471 s%@RANLIB@%$RANLIB%g
7472 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7473 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7474 s%@MAINT@%$MAINT%g
7475 s%@EXEEXT@%$EXEEXT%g
7476 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7477 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7478 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7479 s%@INCLTDL@%$INCLTDL%g
7480 s%@LIBLTDL@%$LIBLTDL%g
7481 s%@DIRLTDL@%$DIRLTDL%g
7482 s%@OBJEXT@%$OBJEXT%g
7483 s%@STRIP@%$STRIP%g
7484 s%@LIBTOOL@%$LIBTOOL%g
7485 s%@CXXCPP@%$CXXCPP%g
7486 s%@subdirs@%$subdirs%g
7487 s%@COMPPATH@%$COMPPATH%g
7488 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7489 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7490 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7491 s%@LIBFFI@%$LIBFFI%g
7492 s%@LIBFFIINCS@%$LIBFFIINCS%g
7493 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7494 s%@CPP@%$CPP%g
7495 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7496 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7497 s%@ZLIBSPEC@%$ZLIBSPEC%g
7498 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7499 s%@GCLIBS@%$GCLIBS%g
7500 s%@GCINCS@%$GCINCS%g
7501 s%@GCDEPS@%$GCDEPS%g
7502 s%@GCOBJS@%$GCOBJS%g
7503 s%@GCSPEC@%$GCSPEC%g
7504 s%@JC1GCSPEC@%$JC1GCSPEC%g
7505 s%@GCTESTSPEC@%$GCTESTSPEC%g
7506 s%@THREADLIBS@%$THREADLIBS%g
7507 s%@THREADINCS@%$THREADINCS%g
7508 s%@THREADDEPS@%$THREADDEPS%g
7509 s%@THREADOBJS@%$THREADOBJS%g
7510 s%@THREADSPEC@%$THREADSPEC%g
7511 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7512 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7513 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7514 s%@LIBICONV@%$LIBICONV%g
7515 s%@GCJ@%$GCJ%g
7516 s%@GCJFLAGS@%$GCJFLAGS%g
7517 s%@ZLIBS@%$ZLIBS%g
7518 s%@ZDEPS@%$ZDEPS%g
7519 s%@ZINCS@%$ZINCS%g
7520 s%@DIVIDESPEC@%$DIVIDESPEC%g
7521 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7522 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7523 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7524 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7525 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7526 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7527 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7528 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7529 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7530 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7531 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7532 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7533 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7534 s%@ALLOCA@%$ALLOCA%g
7535 s%@PERL@%$PERL%g
7536 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7537 s%@X_CFLAGS@%$X_CFLAGS%g
7538 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7539 s%@X_LIBS@%$X_LIBS%g
7540 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7541 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7542 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7543 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7544 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7545 s%@here@%$here%g
7547 CEOF
7550 cat >> $CONFIG_STATUS <<\EOF
7552 # Split the substitutions into bite-sized pieces for seds with
7553 # small command number limits, like on Digital OSF/1 and HP-UX.
7554 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7555 ac_file=1 # Number of current file.
7556 ac_beg=1 # First line for current file.
7557 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7558 ac_more_lines=:
7559 ac_sed_cmds=""
7560 while $ac_more_lines; do
7561 if test $ac_beg -gt 1; then
7562 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7563 else
7564 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7566 if test ! -s conftest.s$ac_file; then
7567 ac_more_lines=false
7568 rm -f conftest.s$ac_file
7569 else
7570 if test -z "$ac_sed_cmds"; then
7571 ac_sed_cmds="sed -f conftest.s$ac_file"
7572 else
7573 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7575 ac_file=`expr $ac_file + 1`
7576 ac_beg=$ac_end
7577 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7579 done
7580 if test -z "$ac_sed_cmds"; then
7581 ac_sed_cmds=cat
7585 cat >> $CONFIG_STATUS <<EOF
7587 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7589 cat >> $CONFIG_STATUS <<\EOF
7590 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7591 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7592 case "$ac_file" in
7593 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7594 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7595 *) ac_file_in="${ac_file}.in" ;;
7596 esac
7598 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7600 # Remove last slash and all that follows it. Not all systems have dirname.
7601 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7602 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7603 # The file is in a subdirectory.
7604 test ! -d "$ac_dir" && mkdir "$ac_dir"
7605 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7606 # A "../" for each directory in $ac_dir_suffix.
7607 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7608 else
7609 ac_dir_suffix= ac_dots=
7612 case "$ac_given_srcdir" in
7613 .) srcdir=.
7614 if test -z "$ac_dots"; then top_srcdir=.
7615 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7616 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7617 *) # Relative path.
7618 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7619 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7620 esac
7622 case "$ac_given_INSTALL" in
7623 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7624 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7625 esac
7627 echo creating "$ac_file"
7628 rm -f "$ac_file"
7629 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7630 case "$ac_file" in
7631 *Makefile*) ac_comsub="1i\\
7632 # $configure_input" ;;
7633 *) ac_comsub= ;;
7634 esac
7636 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7637 sed -e "$ac_comsub
7638 s%@configure_input@%$configure_input%g
7639 s%@srcdir@%$srcdir%g
7640 s%@top_srcdir@%$top_srcdir%g
7641 s%@INSTALL@%$INSTALL%g
7642 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7643 fi; done
7644 rm -f conftest.s*
7646 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7647 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7649 # ac_d sets the value in "#define NAME VALUE" lines.
7650 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7651 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7652 ac_dC='\3'
7653 ac_dD='%g'
7654 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7655 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7656 ac_uB='\([ ]\)%\1#\2define\3'
7657 ac_uC=' '
7658 ac_uD='\4%g'
7659 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7660 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7661 ac_eB='$%\1#\2define\3'
7662 ac_eC=' '
7663 ac_eD='%g'
7665 if test "${CONFIG_HEADERS+set}" != set; then
7667 cat >> $CONFIG_STATUS <<EOF
7668 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7670 cat >> $CONFIG_STATUS <<\EOF
7672 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7674 case "$ac_file" in
7675 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7676 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7677 *) ac_file_in="${ac_file}.in" ;;
7678 esac
7680 echo creating $ac_file
7682 rm -f conftest.frag conftest.in conftest.out
7683 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7684 cat $ac_file_inputs > conftest.in
7688 # Transform confdefs.h into a sed script conftest.vals that substitutes
7689 # the proper values into config.h.in to produce config.h. And first:
7690 # Protect against being on the right side of a sed subst in config.status.
7691 # Protect against being in an unquoted here document in config.status.
7692 rm -f conftest.vals
7693 cat > conftest.hdr <<\EOF
7694 s/[\\&%]/\\&/g
7695 s%[\\$`]%\\&%g
7696 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7697 s%ac_d%ac_u%gp
7698 s%ac_u%ac_e%gp
7700 sed -n -f conftest.hdr confdefs.h > conftest.vals
7701 rm -f conftest.hdr
7703 # This sed command replaces #undef with comments. This is necessary, for
7704 # example, in the case of _POSIX_SOURCE, which is predefined and required
7705 # on some systems where configure will not decide to define it.
7706 cat >> conftest.vals <<\EOF
7707 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7710 # Break up conftest.vals because some shells have a limit on
7711 # the size of here documents, and old seds have small limits too.
7713 rm -f conftest.tail
7714 while :
7716 ac_lines=`grep -c . conftest.vals`
7717 # grep -c gives empty output for an empty file on some AIX systems.
7718 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7719 # Write a limited-size here document to conftest.frag.
7720 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7721 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7722 echo 'CEOF
7723 sed -f conftest.frag conftest.in > conftest.out
7724 rm -f conftest.in
7725 mv conftest.out conftest.in
7726 ' >> $CONFIG_STATUS
7727 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7728 rm -f conftest.vals
7729 mv conftest.tail conftest.vals
7730 done
7731 rm -f conftest.vals
7733 cat >> $CONFIG_STATUS <<\EOF
7734 rm -f conftest.frag conftest.h
7735 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7736 cat conftest.in >> conftest.h
7737 rm -f conftest.in
7738 if cmp -s $ac_file conftest.h 2>/dev/null; then
7739 echo "$ac_file is unchanged"
7740 rm -f conftest.h
7741 else
7742 # Remove last slash and all that follows it. Not all systems have dirname.
7743 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7744 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7745 # The file is in a subdirectory.
7746 test ! -d "$ac_dir" && mkdir "$ac_dir"
7748 rm -f $ac_file
7749 mv conftest.h $ac_file
7751 fi; done
7755 cat >> $CONFIG_STATUS <<EOF
7756 ac_sources="include/$PLATFORMH java/io/natFile${PLATFORM}.cc java/io/natFileDescriptor${PLATFORM}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7757 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7760 cat >> $CONFIG_STATUS <<\EOF
7761 srcdir=$ac_given_srcdir
7762 while test -n "$ac_sources"; do
7763 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7764 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7766 echo "linking $srcdir/$ac_source to $ac_dest"
7768 if test ! -r $srcdir/$ac_source; then
7769 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7771 rm -f $ac_dest
7773 # Make relative symlinks.
7774 # Remove last slash and all that follows it. Not all systems have dirname.
7775 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7776 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7777 # The dest file is in a subdirectory.
7778 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7779 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7780 # A "../" for each directory in $ac_dest_dir_suffix.
7781 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7782 else
7783 ac_dest_dir_suffix= ac_dots=
7786 case "$srcdir" in
7787 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7788 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7789 esac
7791 # Make a symlink if possible; otherwise try a hard link.
7792 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7793 ln $srcdir/$ac_source $ac_dest; then :
7794 else
7795 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7797 done
7799 cat >> $CONFIG_STATUS <<EOF
7801 srcdir=${srcdir}
7802 host=${host}
7803 target=${target}
7804 with_multisubdir=${with_multisubdir}
7805 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7806 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7807 libgcj_basedir=${libgcj_basedir}
7808 CC="${CC}"
7809 CXX="${CXX}"
7812 cat >> $CONFIG_STATUS <<\EOF
7813 am_indx=1
7814 for am_file in include/config.h gcj/libgcj-config.h; do
7815 case " $CONFIG_HEADERS " in
7816 *" $am_file "*)
7817 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7819 esac
7820 am_indx=`expr "$am_indx" + 1`
7821 done
7822 # Only add multilib support code if we just rebuilt top-level Makefile.
7823 case " $CONFIG_FILES " in
7824 *" Makefile "*)
7825 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7827 esac
7829 # Make subdirectories and `.d' files. Look in both srcdir and
7830 # builddir for the .java files.
7831 h=`pwd`
7832 : > deps.mk
7833 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
7834 find . \( -name '*.java' -o -name '*.cc' \) -print) | \
7835 fgrep -v testsuite | \
7836 sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
7837 while read f; do
7838 echo "include $f" >> deps.mk
7839 test -f $f || {
7841 d=`echo $f | sed -e 's,/[^/]*$,,'`
7843 if test ! -d $d; then
7844 $libgcj_basedir/../mkinstalldirs $d
7846 echo > $f
7848 done
7850 exit 0
7852 chmod +x $CONFIG_STATUS
7853 rm -fr confdefs* $ac_clean_files
7854 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7856 if test "$no_recursion" != yes; then
7858 # Remove --cache-file and --srcdir arguments so they do not pile up.
7859 ac_sub_configure_args=
7860 ac_prev=
7861 for ac_arg in $ac_configure_args; do
7862 if test -n "$ac_prev"; then
7863 ac_prev=
7864 continue
7866 case "$ac_arg" in
7867 -cache-file | --cache-file | --cache-fil | --cache-fi \
7868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7869 ac_prev=cache_file ;;
7870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7873 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7874 ac_prev=srcdir ;;
7875 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7877 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7878 esac
7879 done
7881 for ac_config_dir in $DIRLTDL; do
7883 # Do not complain, so a configure script can configure whichever
7884 # parts of a large source tree are present.
7885 if test ! -d $srcdir/$ac_config_dir; then
7886 continue
7889 echo configuring in $ac_config_dir
7891 case "$srcdir" in
7892 .) ;;
7894 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7895 else
7896 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7899 esac
7901 ac_popdir=`pwd`
7902 cd $ac_config_dir
7904 # A "../" for each directory in /$ac_config_dir.
7905 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7907 case "$srcdir" in
7908 .) # No --srcdir option. We are building in place.
7909 ac_sub_srcdir=$srcdir ;;
7910 /*) # Absolute path.
7911 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7912 *) # Relative path.
7913 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7914 esac
7916 # Check for guested configure; otherwise get Cygnus style configure.
7917 if test -f $ac_sub_srcdir/configure; then
7918 ac_sub_configure=$ac_sub_srcdir/configure
7919 elif test -f $ac_sub_srcdir/configure.in; then
7920 ac_sub_configure=$ac_configure
7921 else
7922 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7923 ac_sub_configure=
7926 # The recursion is here.
7927 if test -n "$ac_sub_configure"; then
7929 # Make the cache file name correct relative to the subdirectory.
7930 case "$cache_file" in
7931 /*) ac_sub_cache_file=$cache_file ;;
7932 *) # Relative path.
7933 ac_sub_cache_file="$ac_dots$cache_file" ;;
7934 esac
7935 case "$ac_given_INSTALL" in
7936 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7937 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7938 esac
7940 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7941 # The eval makes quoting arguments work.
7942 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7943 then :
7944 else
7945 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
7949 cd $ac_popdir
7950 done