source: trunk/src/gcc/libjava/configure@ 1738

Last change on this file since 1738 was 1479, checked in by bird, 21 years ago

Joined gcc 3.3.4 with head.

  • Property cvs2svn:cvs-rev set to 1.6
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 235.5 KB
Line 
1#! /bin/sh
2
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.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19ac_help="$ac_help
20 --with-newlib Configuring with newlib"
21ac_help="$ac_help
22 --enable-multilib build many library versions (default)"
23ac_help="$ac_help
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34ac_help="$ac_help
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
38ac_help="$ac_help
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
41ac_help="$ac_help
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
44ac_help="$ac_help
45 --enable-libgcj-debug enable runtime debugging code"
46ac_help="$ac_help
47 --enable-interpreter enable interpreter"
48ac_help="$ac_help
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
50ac_help="$ac_help
51 --disable-java-net disable java.net"
52ac_help="$ac_help
53 --without-libffi don't use libffi"
54ac_help="$ac_help
55 --disable-jvmpi disable JVMPI support"
56ac_help="$ac_help
57 --with-ecos enable runtime eCos target support"
58ac_help="$ac_help
59 --with-system-zlib use installed libz"
60ac_help="$ac_help
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
62ac_help="$ac_help
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64ac_help="$ac_help
65 --with-x use the X Window System"
66ac_help="$ac_help
67 --enable-java-awt list of AWT peer implementations to be built"
68
69# Initialize some variables set by options.
70# The variables have the same names as the options, with
71# dashes changed to underlines.
72build=NONE
73cache_file=./config.cache
74exec_prefix=NONE
75host=NONE
76no_create=
77nonopt=NONE
78no_recursion=
79prefix=NONE
80program_prefix=NONE
81program_suffix=NONE
82program_transform_name=s,x,x,
83silent=
84site=
85srcdir=
86target=NONE
87verbose=
88x_includes=NONE
89x_libraries=NONE
90bindir='${exec_prefix}/bin'
91sbindir='${exec_prefix}/sbin'
92libexecdir='${exec_prefix}/libexec'
93datadir='${prefix}/share'
94sysconfdir='${prefix}/etc'
95sharedstatedir='${prefix}/com'
96localstatedir='${prefix}/var'
97libdir='${exec_prefix}/lib'
98includedir='${prefix}/include'
99oldincludedir='/usr/include'
100infodir='${prefix}/info'
101mandir='${prefix}/man'
102
103# Initialize some other variables.
104subdirs=
105MFLAGS= MAKEFLAGS=
106SHELL=${CONFIG_SHELL-/bin/sh}
107# Maximum number of lines to put in a shell here document.
108ac_max_here_lines=12
109
110ac_prev=
111for ac_option
112do
113
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
119 fi
120
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
125
126 # Accept the important Cygnus configure options, so we can diagnose typos.
127
128 case "$ac_option" in
129
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
134
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
139
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
146
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
152
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 fi
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
161
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 fi
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
174
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
183
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
187
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192Usage: configure [options] [host]
193Options: [defaults in brackets after descriptions]
194Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200Directory 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
224EOF
225 cat << EOF
226Host 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]
230Features 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
237EOF
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
240 fi
241 exit 0 ;;
242
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
247
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" ;;
254
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
259
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
264
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" ;;
271
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" ;;
280
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
285
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
289
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
293
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 ;;
297
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" ;;
306
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
311
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" ;;
318
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" ;;
325
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" ;;
342
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
346
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" ;;
352
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" ;;
363
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
368
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
373
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
380
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
385
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
388
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
391 exit 0 ;;
392
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 fi
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
405
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 fi
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
414
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
418
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
425
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
432
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 ;;
435
436 *)
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 fi
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 fi
443 nonopt="$ac_option"
444 ;;
445
446 esac
447done
448
449if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451fi
452
453trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454
455# File descriptor usage:
456# 0 standard input
457# 1 file creation
458# 2 errors and warnings
459# 3 some systems may open it to /dev/tty
460# 4 used on the Kubota Titan
461# 6 checking for... messages and results
462# 5 compiler messages saved in config.log
463if test "$silent" = yes; then
464 exec 6>/dev/null
465else
466 exec 6>&1
467fi
468exec 5>./config.log
469
470echo "\
471This file contains any messages produced by compilers while
472running configure, to aid debugging if configure makes a mistake.
473" 1>&5
474
475# Strip out --no-create and --no-recursion so they do not pile up.
476# Also quote any args containing shell metacharacters.
477ac_configure_args=
478for ac_arg
479do
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489done
490
491# NLS nuisances.
492# Only set these to C if already set. These must not be set unconditionally
493# because not all systems understand e.g. LANG=C (notably SCO).
494# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495# Non-C LC_CTYPE values break the ctype check.
496if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
500
501# confdefs.h avoids OS command line length limits that DEFS can exceed.
502rm -rf conftest* confdefs.h
503# AIX cpp loses on an empty file, so make sure it contains at least a newline.
504echo > confdefs.h
505
506# A filename unique to this package, relative to the directory that
507# configure is in, which we can look for to find out if srcdir is correct.
508ac_unique_file=java/lang/System.java
509
510# Find the source files, if location was not specified.
511if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
520 fi
521else
522 ac_srcdir_defaulted=no
523fi
524if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 fi
530fi
531srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532
533# Prefer explicitly selected file to automatically selected ones.
534if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 fi
540fi
541for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
545 fi
546done
547
548if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551else
552 echo "creating cache $cache_file"
553 > $cache_file
554fi
555
556ac_ext=c
557# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558ac_cpp='$CPP $CPPFLAGS'
559ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561cross_compiling=$ac_cv_prog_cc_cross
562
563ac_exeext=
564ac_objext=o
565if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
572 fi
573else
574 ac_n= ac_c='\c' ac_t=
575fi
576
577echo $ac_n "checking for path separator""... $ac_c" 1>&6
578echo "configure:579: checking for path separator" >&5
579# Filter path to get backslahes into forwardslashes
580case "`uname -s 2> /dev/null`" in
581OS/2)
582 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
583 PATH_IFS=';'
584 ;;
585*)
586 PATH_IFS=':'
587 ;;
588esac
589echo "$ac_t""${PATH_IFS}" 1>&6
590
591echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
592echo "configure:593: checking for Cygwin environment" >&5
593if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
595else
596 cat > conftest.$ac_ext <<EOF
597#line 598 "configure"
598#include "confdefs.h"
599
600int main() {
601
602#ifndef __CYGWIN__
603#define __CYGWIN__ __CYGWIN32__
604#endif
605return __CYGWIN__;
606; return 0; }
607EOF
608if { (eval echo configure:609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
609 rm -rf conftest*
610 ac_cv_cygwin=yes
611else
612 echo "configure: failed program was:" >&5
613 cat conftest.$ac_ext >&5
614 rm -rf conftest*
615 ac_cv_cygwin=no
616fi
617rm -f conftest*
618rm -f conftest*
619fi
620
621echo "$ac_t""$ac_cv_cygwin" 1>&6
622CYGWIN=
623test "$ac_cv_cygwin" = yes && CYGWIN=yes
624echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
625echo "configure:626: checking for mingw32 environment" >&5
626if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
628else
629 cat > conftest.$ac_ext <<EOF
630#line 631 "configure"
631#include "confdefs.h"
632
633int main() {
634return __MINGW32__;
635; return 0; }
636EOF
637if { (eval echo configure:638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
638 rm -rf conftest*
639 ac_cv_mingw32=yes
640else
641 echo "configure: failed program was:" >&5
642 cat conftest.$ac_ext >&5
643 rm -rf conftest*
644 ac_cv_mingw32=no
645fi
646rm -f conftest*
647rm -f conftest*
648fi
649
650echo "$ac_t""$ac_cv_mingw32" 1>&6
651MINGW32=
652test "$ac_cv_mingw32" = yes && MINGW32=yes
653echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
654echo "configure:655: checking for EMX/OS2 environment" >&5
655if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
656 echo $ac_n "(cached) $ac_c" 1>&6
657else
658 : ${CC=gcc.exe}
659cat > conftest.$ac_ext <<EOF
660#line 661 "configure"
661#include "confdefs.h"
662
663int main() {
664return __EMX__;
665; return 0; }
666EOF
667if { (eval echo configure:668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
668 rm -rf conftest*
669 ac_cv_emxos2=yes
670else
671 echo "configure: failed program was:" >&5
672 cat conftest.$ac_ext >&5
673 rm -rf conftest*
674 ac_cv_emxos2=no
675fi
676rm -f conftest*
677rm -f conftest*
678fi
679
680echo "$ac_t""$ac_cv_emxos2" 1>&6
681if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
683else
684 if test "$ac_cv_emxos2" = yes ; then
685 ac_cv_libpre=
686else
687 ac_cv_libpre=lib
688fi
689
690fi
691
692EMXOS2=
693test "$ac_cv_emxos2" = yes && EMXOS2=yes
694
695
696
697echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
698echo "configure:699: checking for executable suffix" >&5
699if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
701else
702 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
703 ac_cv_exeext=.exe
704else
705 rm -f conftest*
706 echo 'int main () { return 0; }' > conftest.$ac_ext
707 ac_cv_exeext=
708 if { (eval echo configure:709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
709 for file in conftest.*; do
710 case $file in
711 *.c | *.o | *.obj) ;;
712 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
713 esac
714 done
715 else
716 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
717 fi
718 rm -f conftest*
719 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
720fi
721fi
722
723EXEEXT=""
724test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
725echo "$ac_t""${ac_cv_exeext}" 1>&6
726ac_exeext=$EXEEXT
727
728
729
730# This works around the fact that libtool configuration may change LD
731# for this particular configuration, but some shells, instead of
732# keeping the changes in LD private, export them just because LD is
733# exported.
734ORIGINAL_LD_FOR_MULTILIBS=$LD
735
736echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
737echo "configure:738: checking whether ln -s works" >&5
738if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
740else
741 rm -f conftestdata
742if ln -s X conftestdata 2>/dev/null
743then
744 rm -f conftestdata
745 ac_cv_prog_LN_S="ln -s"
746else
747 echo A > conftestdata;
748 if ln conftestdata conftestdata2 2>/dev/null; then
749 ac_cv_prog_LN_S=ln
750 else
751 ac_cv_prog_LN_S=cp
752 fi
753fi
754rm -f conftestdata*
755fi
756LN_S="$ac_cv_prog_LN_S"
757if test "$ac_cv_prog_LN_S" = "ln -s"; then
758 echo "$ac_t""yes" 1>&6
759else
760 echo "$ac_t""no" 1>&6
761fi
762
763
764# Check whether --with-target-subdir or --without-target-subdir was given.
765if test "${with_target_subdir+set}" = set; then
766 withval="$with_target_subdir"
767 :
768fi
769
770# Check whether --with-cross-host or --without-cross-host was given.
771if test "${with_cross_host+set}" = set; then
772 withval="$with_cross_host"
773 :
774fi
775
776
777# Check whether --with-newlib or --without-newlib was given.
778if test "${with_newlib+set}" = set; then
779 withval="$with_newlib"
780 :
781fi
782
783
784# Find a good install program. We prefer a C program (faster),
785# so one script is as good as another. But avoid the broken or
786# incompatible versions:
787# SysV /etc/install, /usr/sbin/install
788# SunOS /usr/etc/install
789# IRIX /sbin/install
790# AIX /bin/install
791# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
792# AFS /usr/afsws/bin/install, which mishandles nonexistent args
793# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
794# ./install, which can be erroneously created by make from ./install.sh.
795echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
796echo "configure:797: checking for a BSD compatible install" >&5
797if test -z "$INSTALL"; then
798if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800else
801 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
802 for ac_dir in $PATH; do
803 # Account for people who put trailing slashes in PATH elements.
804 case "$ac_dir/" in
805 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
806 # We reject the install program from OS/2 or W3.1
807 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
808 *)
809 # OSF1 and SCO ODT 3.0 have their own names for install.
810 # Don't use installbsd from OSF since it installs stuff as root
811 # by default.
812 for ac_prog in ginstall scoinst install; do
813 if test -f $ac_dir/$ac_prog$ac_exeext; then
814 if test $ac_prog = install &&
815 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
816 # AIX install. It has an incompatible calling convention.
817 :
818 else
819 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
820 break 2
821 fi
822 fi
823 done
824 ;;
825 esac
826 done
827 IFS="$ac_save_IFS"
828
829fi
830 if test "${ac_cv_path_install+set}" = set; then
831 INSTALL="$ac_cv_path_install"
832 else
833 # As a last resort, use the slow shell script. We don't cache a
834 # path for INSTALL within a source directory, because that will
835 # break other packages using the cache if that directory is
836 # removed, or if the path is relative.
837 INSTALL="$ac_install_sh"
838 fi
839fi
840echo "$ac_t""$INSTALL" 1>&6
841
842# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
843# It thinks the first close brace ends the variable substitution.
844test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
845
846test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
847
848test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
849
850echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
851echo "configure:852: checking whether build environment is sane" >&5
852# Just in case
853sleep 1
854echo timestamp > conftestfile
855# Do `set' in a subshell so we don't clobber the current shell's
856# arguments. Must try -L first in case configure is actually a
857# symlink; some systems play weird games with the mod time of symlinks
858# (eg FreeBSD returns the mod time of the symlink's containing
859# directory).
860if (
861 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
862 if test "$*" = "X"; then
863 # -L didn't work.
864 set X `ls -t $srcdir/configure conftestfile`
865 fi
866 if test "$*" != "X $srcdir/configure conftestfile" \
867 && test "$*" != "X conftestfile $srcdir/configure"; then
868
869 # If neither matched, then we have a broken ls. This can happen
870 # if, for instance, CONFIG_SHELL is bash and it inherits a
871 # broken ls alias from the environment. This has actually
872 # happened. Such a system could not be considered "sane".
873 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
874alias in your environment" 1>&2; exit 1; }
875 fi
876
877 test "$2" = conftestfile
878 )
879then
880 # Ok.
881 :
882else
883 { echo "configure: error: newly created file is older than distributed files!
884Check your system clock" 1>&2; exit 1; }
885fi
886rm -f conftest*
887echo "$ac_t""yes" 1>&6
888if test "$program_transform_name" = s,x,x,; then
889 program_transform_name=
890else
891 # Double any \ or $. echo might interpret backslashes.
892 cat <<\EOF_SED > conftestsed
893s,\\,\\\\,g; s,\$,$$,g
894EOF_SED
895 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
896 rm -f conftestsed
897fi
898test "$program_prefix" != NONE &&
899 program_transform_name="s,^,${program_prefix},; $program_transform_name"
900# Use a double $ so make ignores it.
901test "$program_suffix" != NONE &&
902 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
903
904# sed with no file args requires a program.
905test "$program_transform_name" = "" && program_transform_name="s,x,x,"
906
907echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
908echo "configure:909: checking whether ${MAKE-make} sets \${MAKE}" >&5
909set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
910if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
912else
913 cat > conftestmake <<\EOF
914all:
915 @echo 'ac_maketemp="${MAKE}"'
916EOF
917# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
918eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
919if test -n "$ac_maketemp"; then
920 eval ac_cv_prog_make_${ac_make}_set=yes
921else
922 eval ac_cv_prog_make_${ac_make}_set=no
923fi
924rm -f conftestmake
925fi
926if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
927 echo "$ac_t""yes" 1>&6
928 SET_MAKE=
929else
930 echo "$ac_t""no" 1>&6
931 SET_MAKE="MAKE=${MAKE-make}"
932fi
933
934if test $host != $build; then
935 ac_tool_prefix=${host_alias}-
936else
937 ac_tool_prefix=
938fi
939
940
941# Check whether --enable-multilib or --disable-multilib was given.
942if test "${enable_multilib+set}" = set; then
943 enableval="$enable_multilib"
944 case "${enableval}" in
945 yes) multilib=yes ;;
946 no) multilib=no ;;
947 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
948 esac
949else
950 multilib=yes
951fi
952
953
954# When building with srcdir == objdir, links to the source files will
955# be created in directories within the target_subdir. We have to
956# adjust toplevel_srcdir accordingly, so that configure finds
957# install-sh and other auxiliary files that live in the top-level
958# source directory.
959if test "${srcdir}" = "."; then
960 if test -z "${with_target_subdir}"; then
961 toprel=".."
962 else
963 if test "${with_target_subdir}" != "."; then
964 toprel="${with_multisrctop}../.."
965 else
966 toprel="${with_multisrctop}.."
967 fi
968 fi
969else
970 toprel=".."
971fi
972
973libgcj_basedir=$srcdir/$toprel/./libjava
974
975
976ac_aux_dir=
977for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
978 if test -f $ac_dir/install-sh; then
979 ac_aux_dir=$ac_dir
980 ac_install_sh="$ac_aux_dir/install-sh -c"
981 break
982 elif test -f $ac_dir/install.sh; then
983 ac_aux_dir=$ac_dir
984 ac_install_sh="$ac_aux_dir/install.sh -c"
985 break
986 fi
987done
988if test -z "$ac_aux_dir"; then
989 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
990fi
991ac_config_guess=$ac_aux_dir/config.guess
992ac_config_sub=$ac_aux_dir/config.sub
993ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
994
995if :; then :; else
996 # This overrides the previous occurrence for automake, but not for
997 # autoconf, which is exactly what we want.
998 ac_aux_dir=
999for ac_dir in .. $srcdir/..; do
1000 if test -f $ac_dir/install-sh; then
1001 ac_aux_dir=$ac_dir
1002 ac_install_sh="$ac_aux_dir/install-sh -c"
1003 break
1004 elif test -f $ac_dir/install.sh; then
1005 ac_aux_dir=$ac_dir
1006 ac_install_sh="$ac_aux_dir/install.sh -c"
1007 break
1008 fi
1009done
1010if test -z "$ac_aux_dir"; then
1011 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
1012fi
1013ac_config_guess=$ac_aux_dir/config.guess
1014ac_config_sub=$ac_aux_dir/config.sub
1015ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1016
1017fi
1018
1019# This works around an automake problem.
1020mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1021
1022
1023
1024# Do some error checking and defaulting for the host and target type.
1025# The inputs are:
1026# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1027#
1028# The rules are:
1029# 1. You are not allowed to specify --host, --target, and nonopt at the
1030# same time.
1031# 2. Host defaults to nonopt.
1032# 3. If nonopt is not specified, then host defaults to the current host,
1033# as determined by config.guess.
1034# 4. Target and build default to nonopt.
1035# 5. If nonopt is not specified, then target and build default to host.
1036
1037# The aliases save the names the user supplied, while $host etc.
1038# will get canonicalized.
1039case $host---$target---$nonopt in
1040NONE---*---* | *---NONE---* | *---*---NONE) ;;
1041*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1042esac
1043
1044
1045# Make sure we can run config.sub.
1046if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1047else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1048fi
1049
1050echo $ac_n "checking host system type""... $ac_c" 1>&6
1051echo "configure:1052: checking host system type" >&5
1052
1053host_alias=$host
1054case "$host_alias" in
1055NONE)
1056 case $nonopt in
1057 NONE)
1058 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1059 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1060 fi ;;
1061 *) host_alias=$nonopt ;;
1062 esac ;;
1063esac
1064
1065host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1066host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1067host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1068host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1069echo "$ac_t""$host" 1>&6
1070
1071echo $ac_n "checking target system type""... $ac_c" 1>&6
1072echo "configure:1073: checking target system type" >&5
1073
1074target_alias=$target
1075case "$target_alias" in
1076NONE)
1077 case $nonopt in
1078 NONE) target_alias=$host_alias ;;
1079 *) target_alias=$nonopt ;;
1080 esac ;;
1081esac
1082
1083target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1084target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1085target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1086target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1087echo "$ac_t""$target" 1>&6
1088
1089echo $ac_n "checking build system type""... $ac_c" 1>&6
1090echo "configure:1091: checking build system type" >&5
1091
1092build_alias=$build
1093case "$build_alias" in
1094NONE)
1095 case $nonopt in
1096 NONE) build_alias=$host_alias ;;
1097 *) build_alias=$nonopt ;;
1098 esac ;;
1099esac
1100
1101build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1102build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1103build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1104build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1105echo "$ac_t""$build" 1>&6
1106
1107test "$host_alias" != "$target_alias" &&
1108 test "$program_prefix$program_suffix$program_transform_name" = \
1109 NONENONEs,x,x, &&
1110 program_prefix=${target_alias}-
1111
1112
1113
1114
1115
1116# Extract the first word of "gcc", so it can be a program name with args.
1117set dummy gcc; ac_word=$2
1118echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1119echo "configure:1120: checking for $ac_word" >&5
1120if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122else
1123 if test -n "$CC"; then
1124 ac_cv_prog_CC="$CC" # Let the user override the test.
1125else
1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1127 ac_dummy="$PATH"
1128 for ac_dir in $ac_dummy; do
1129 test -z "$ac_dir" && ac_dir=.
1130 if test -f $ac_dir/$ac_word -o \
1131 -f $ac_dir/$ac_word$ac_exeext ; then
1132 ac_cv_prog_CC="gcc"
1133 break
1134 fi
1135 done
1136 IFS="$ac_save_ifs"
1137fi
1138fi
1139CC="$ac_cv_prog_CC"
1140if test -n "$CC"; then
1141 echo "$ac_t""$CC" 1>&6
1142else
1143 echo "$ac_t""no" 1>&6
1144fi
1145
1146if test -z "$CC"; then
1147 # Extract the first word of "cc", so it can be a program name with args.
1148set dummy cc; ac_word=$2
1149echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150echo "configure:1151: checking for $ac_word" >&5
1151if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1153else
1154 if test -n "$CC"; then
1155 ac_cv_prog_CC="$CC" # Let the user override the test.
1156else
1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1158 ac_prog_rejected=no
1159 ac_dummy="$PATH"
1160 for ac_dir in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir=.
1162 if test -f $ac_dir/$ac_word -o \
1163 -f $ac_dir/$ac_word$ac_exeext ; then
1164 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
1165 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
1166 ac_prog_rejected=yes
1167 continue
1168 fi
1169 ac_cv_prog_CC="cc"
1170 break
1171 fi
1172 done
1173 IFS="$ac_save_ifs"
1174if test $ac_prog_rejected = yes; then
1175 # We found a bogon in the path, so make sure we never use it.
1176 set dummy $ac_cv_prog_CC
1177 shift
1178 if test $# -gt 0; then
1179 # We chose a different compiler from the bogus one.
1180 # However, it has the same basename, so the bogon will be chosen
1181 # first if we set CC to just the basename; use the full file name.
1182 shift
1183 set dummy "$ac_dir/$ac_word" "$@"
1184 shift
1185 ac_cv_prog_CC="$@"
1186 fi
1187fi
1188fi
1189fi
1190CC="$ac_cv_prog_CC"
1191if test -n "$CC"; then
1192 echo "$ac_t""$CC" 1>&6
1193else
1194 echo "$ac_t""no" 1>&6
1195fi
1196
1197 if test -z "$CC"; then
1198 case "`uname -s`" in
1199 *win32* | *WIN32*)
1200 # Extract the first word of "cl", so it can be a program name with args.
1201set dummy cl; ac_word=$2
1202echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203echo "configure:1204: checking for $ac_word" >&5
1204if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1206else
1207 if test -n "$CC"; then
1208 ac_cv_prog_CC="$CC" # Let the user override the test.
1209else
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1211 ac_dummy="$PATH"
1212 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 if test -f $ac_dir/$ac_word -o \
1215 -f $ac_dir/$ac_word$ac_exeext ; then
1216 ac_cv_prog_CC="cl"
1217 break
1218 fi
1219 done
1220 IFS="$ac_save_ifs"
1221fi
1222fi
1223CC="$ac_cv_prog_CC"
1224if test -n "$CC"; then
1225 echo "$ac_t""$CC" 1>&6
1226else
1227 echo "$ac_t""no" 1>&6
1228fi
1229 ;;
1230 esac
1231 fi
1232 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1233fi
1234
1235
1236echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1237echo "configure:1238: checking whether we are using GNU C" >&5
1238if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1240else
1241 cat > conftest.c <<EOF
1242#ifdef __GNUC__
1243 yes;
1244#endif
1245EOF
1246if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1247 ac_cv_prog_gcc=yes
1248else
1249 ac_cv_prog_gcc=no
1250fi
1251fi
1252
1253echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1254
1255if test $ac_cv_prog_gcc = yes; then
1256 GCC=yes
1257else
1258 GCC=
1259fi
1260
1261ac_test_CFLAGS="${CFLAGS+set}"
1262ac_save_CFLAGS="$CFLAGS"
1263CFLAGS=
1264echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1265echo "configure:1266: checking whether ${CC-cc} accepts -g" >&5
1266if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268else
1269 echo 'void f(){}' > conftest.c
1270if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1271 ac_cv_prog_cc_g=yes
1272else
1273 ac_cv_prog_cc_g=no
1274fi
1275rm -f conftest*
1276
1277fi
1278
1279echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1280if test "$ac_test_CFLAGS" = set; then
1281 CFLAGS="$ac_save_CFLAGS"
1282elif test $ac_cv_prog_cc_g = yes; then
1283 if test "$GCC" = yes; then
1284 CFLAGS="-g -O2"
1285 else
1286 CFLAGS="-g"
1287 fi
1288else
1289 if test "$GCC" = yes; then
1290 CFLAGS="-O2"
1291 else
1292 CFLAGS=
1293 fi
1294fi
1295
1296
1297# We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1298# glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1299# different definition of CXX than other directories, since we don't
1300# depend on libstdc++-v3 having already been built.
1301
1302
1303
1304# Use glibjava_CXX so that we do not cause CXX to be cached with the
1305# flags that come in CXX while configuring libjava. They're different
1306# from those used for all other target libraries. If CXX is set in
1307# the environment, respect that here.
1308glibjava_CXX=$CXX
1309for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1310do
1311# Extract the first word of "$ac_prog", so it can be a program name with args.
1312set dummy $ac_prog; ac_word=$2
1313echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1314echo "configure:1315: checking for $ac_word" >&5
1315if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317else
1318 if test -n "$glibjava_CXX"; then
1319 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1320else
1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1322 ac_dummy="$PATH"
1323 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 if test -f $ac_dir/$ac_word -o \
1326 -f $ac_dir/$ac_word$ac_exeext ; then
1327 ac_cv_prog_glibjava_CXX="$ac_prog"
1328 break
1329 fi
1330 done
1331 IFS="$ac_save_ifs"
1332fi
1333fi
1334glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1335if test -n "$glibjava_CXX"; then
1336 echo "$ac_t""$glibjava_CXX" 1>&6
1337else
1338 echo "$ac_t""no" 1>&6
1339fi
1340
1341test -n "$glibjava_CXX" && break
1342done
1343test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1344
1345
1346CXX=$glibjava_CXX
1347test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1348
1349echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1350echo "configure:1351: checking whether we are using GNU C++" >&5
1351if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353else
1354 cat > conftest.C <<EOF
1355#ifdef __GNUC__
1356 yes;
1357#endif
1358EOF
1359if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1360 ac_cv_prog_gxx=yes
1361else
1362 ac_cv_prog_gxx=no
1363fi
1364fi
1365
1366echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1367
1368if test $ac_cv_prog_gxx = yes; then
1369 GXX=yes
1370 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1371 ac_save_CXXFLAGS="$CXXFLAGS"
1372 CXXFLAGS=
1373 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1374echo "configure:1375: checking whether ${CXX-g++} accepts -g" >&5
1375if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377else
1378 echo 'void f(){}' > conftest.cc
1379if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1380 ac_cv_prog_cxx_g=yes
1381else
1382 ac_cv_prog_cxx_g=no
1383fi
1384rm -f conftest*
1385
1386fi
1387
1388echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1389 if test "$ac_test_CXXFLAGS" = set; then
1390 CXXFLAGS="$ac_save_CXXFLAGS"
1391 elif test $ac_cv_prog_cxx_g = yes; then
1392 CXXFLAGS="-g -O2"
1393 else
1394 CXXFLAGS="-O2"
1395 fi
1396else
1397 GXX=
1398 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1399fi
1400
1401
1402version=0.0.7
1403
1404PACKAGE=libjava
1405
1406VERSION=$version
1407
1408if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1409 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1410fi
1411cat >> confdefs.h <<EOF
1412#define PACKAGE "$PACKAGE"
1413EOF
1414
1415cat >> confdefs.h <<EOF
1416#define VERSION "$VERSION"
1417EOF
1418
1419
1420
1421missing_dir=`cd $ac_aux_dir && pwd`
1422echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1423echo "configure:1424: checking for working aclocal" >&5
1424# Run test in a subshell; some versions of sh will print an error if
1425# an executable is not found, even if stderr is redirected.
1426# Redirect stdin to placate older versions of autoconf. Sigh.
1427if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1428 ACLOCAL=aclocal
1429 echo "$ac_t""found" 1>&6
1430else
1431 ACLOCAL="$missing_dir/missing aclocal"
1432 echo "$ac_t""missing" 1>&6
1433fi
1434
1435echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1436echo "configure:1437: checking for working autoconf" >&5
1437# Run test in a subshell; some versions of sh will print an error if
1438# an executable is not found, even if stderr is redirected.
1439# Redirect stdin to placate older versions of autoconf. Sigh.
1440if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1441 AUTOCONF=autoconf
1442 echo "$ac_t""found" 1>&6
1443else
1444 AUTOCONF="$missing_dir/missing autoconf"
1445 echo "$ac_t""missing" 1>&6
1446fi
1447
1448echo $ac_n "checking for working automake""... $ac_c" 1>&6
1449echo "configure:1450: checking for working automake" >&5
1450# Run test in a subshell; some versions of sh will print an error if
1451# an executable is not found, even if stderr is redirected.
1452# Redirect stdin to placate older versions of autoconf. Sigh.
1453if (automake --version) < /dev/null > /dev/null 2>&1; then
1454 AUTOMAKE=automake
1455 echo "$ac_t""found" 1>&6
1456else
1457 AUTOMAKE="$missing_dir/missing automake"
1458 echo "$ac_t""missing" 1>&6
1459fi
1460
1461echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1462echo "configure:1463: checking for working autoheader" >&5
1463# Run test in a subshell; some versions of sh will print an error if
1464# an executable is not found, even if stderr is redirected.
1465# Redirect stdin to placate older versions of autoconf. Sigh.
1466if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1467 AUTOHEADER=autoheader
1468 echo "$ac_t""found" 1>&6
1469else
1470 AUTOHEADER="$missing_dir/missing autoheader"
1471 echo "$ac_t""missing" 1>&6
1472fi
1473
1474echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1475echo "configure:1476: checking for working makeinfo" >&5
1476# Run test in a subshell; some versions of sh will print an error if
1477# an executable is not found, even if stderr is redirected.
1478# Redirect stdin to placate older versions of autoconf. Sigh.
1479if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1480 MAKEINFO=makeinfo
1481 echo "$ac_t""found" 1>&6
1482else
1483 MAKEINFO="$missing_dir/missing makeinfo"
1484 echo "$ac_t""missing" 1>&6
1485fi
1486
1487
1488
1489# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1490# run it explicitly here, it will be run implicitly before
1491# LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1492# be run before AC_CANONICAL_HOST.
1493echo $ac_n "checking build system type""... $ac_c" 1>&6
1494echo "configure:1495: checking build system type" >&5
1495
1496build_alias=$build
1497case "$build_alias" in
1498NONE)
1499 case $nonopt in
1500 NONE) build_alias=$host_alias ;;
1501 *) build_alias=$nonopt ;;
1502 esac ;;
1503esac
1504
1505build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1506build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1507build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1508build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1509echo "$ac_t""$build" 1>&6
1510
1511
1512# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1513set dummy ${ac_tool_prefix}as; ac_word=$2
1514echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515echo "configure:1516: checking for $ac_word" >&5
1516if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1518else
1519 if test -n "$AS"; then
1520 ac_cv_prog_AS="$AS" # Let the user override the test.
1521else
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1523 ac_dummy="$PATH"
1524 for ac_dir in $ac_dummy; do
1525 test -z "$ac_dir" && ac_dir=.
1526 if test -f $ac_dir/$ac_word -o \
1527 -f $ac_dir/$ac_word$ac_exeext ; then
1528 ac_cv_prog_AS="${ac_tool_prefix}as"
1529 break
1530 fi
1531 done
1532 IFS="$ac_save_ifs"
1533 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1534fi
1535fi
1536AS="$ac_cv_prog_AS"
1537if test -n "$AS"; then
1538 echo "$ac_t""$AS" 1>&6
1539else
1540 echo "$ac_t""no" 1>&6
1541fi
1542
1543
1544
1545# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1546set dummy ${ac_tool_prefix}ar; ac_word=$2
1547echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1548echo "configure:1549: checking for $ac_word" >&5
1549if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1551else
1552 if test -n "$AR"; then
1553 ac_cv_prog_AR="$AR" # Let the user override the test.
1554else
1555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1556 ac_dummy="$PATH"
1557 for ac_dir in $ac_dummy; do
1558 test -z "$ac_dir" && ac_dir=.
1559 if test -f $ac_dir/$ac_word -o \
1560 -f $ac_dir/$ac_word$ac_exeext ; then
1561 ac_cv_prog_AR="${ac_tool_prefix}ar"
1562 break
1563 fi
1564 done
1565 IFS="$ac_save_ifs"
1566 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1567fi
1568fi
1569AR="$ac_cv_prog_AR"
1570if test -n "$AR"; then
1571 echo "$ac_t""$AR" 1>&6
1572else
1573 echo "$ac_t""no" 1>&6
1574fi
1575
1576
1577
1578# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1579set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1580echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1581echo "configure:1582: checking for $ac_word" >&5
1582if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1584else
1585 if test -n "$RANLIB"; then
1586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1587else
1588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1589 ac_dummy="$PATH"
1590 for ac_dir in $ac_dummy; do
1591 test -z "$ac_dir" && ac_dir=.
1592 if test -f $ac_dir/$ac_word -o \
1593 -f $ac_dir/$ac_word$ac_exeext ; then
1594 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1595 break
1596 fi
1597 done
1598 IFS="$ac_save_ifs"
1599fi
1600fi
1601RANLIB="$ac_cv_prog_RANLIB"
1602if test -n "$RANLIB"; then
1603 echo "$ac_t""$RANLIB" 1>&6
1604else
1605 echo "$ac_t""no" 1>&6
1606fi
1607
1608
1609if test -z "$ac_cv_prog_RANLIB"; then
1610if test -n "$ac_tool_prefix"; then
1611 # Extract the first word of "ranlib", so it can be a program name with args.
1612set dummy ranlib; ac_word=$2
1613echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1614echo "configure:1615: checking for $ac_word" >&5
1615if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1617else
1618 if test -n "$RANLIB"; then
1619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1620else
1621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1622 ac_dummy="$PATH"
1623 for ac_dir in $ac_dummy; do
1624 test -z "$ac_dir" && ac_dir=.
1625 if test -f $ac_dir/$ac_word -o \
1626 -f $ac_dir/$ac_word$ac_exeext ; then
1627 ac_cv_prog_RANLIB="ranlib"
1628 break
1629 fi
1630 done
1631 IFS="$ac_save_ifs"
1632 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1633fi
1634fi
1635RANLIB="$ac_cv_prog_RANLIB"
1636if test -n "$RANLIB"; then
1637 echo "$ac_t""$RANLIB" 1>&6
1638else
1639 echo "$ac_t""no" 1>&6
1640fi
1641
1642else
1643 RANLIB=":"
1644fi
1645fi
1646
1647
1648# Find a good install program. We prefer a C program (faster),
1649# so one script is as good as another. But avoid the broken or
1650# incompatible versions:
1651# SysV /etc/install, /usr/sbin/install
1652# SunOS /usr/etc/install
1653# IRIX /sbin/install
1654# AIX /bin/install
1655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1658# ./install, which can be erroneously created by make from ./install.sh.
1659echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1660echo "configure:1661: checking for a BSD compatible install" >&5
1661if test -z "$INSTALL"; then
1662if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1664else
1665 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1666 for ac_dir in $PATH; do
1667 # Account for people who put trailing slashes in PATH elements.
1668 case "$ac_dir/" in
1669 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1670 # We reject the install program from OS/2 or W3.1
1671 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1672 *)
1673 # OSF1 and SCO ODT 3.0 have their own names for install.
1674 # Don't use installbsd from OSF since it installs stuff as root
1675 # by default.
1676 for ac_prog in ginstall scoinst install; do
1677 if test -f $ac_dir/$ac_prog$ac_exeext; then
1678 if test $ac_prog = install &&
1679 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1680 # AIX install. It has an incompatible calling convention.
1681 :
1682 else
1683 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1684 break 2
1685 fi
1686 fi
1687 done
1688 ;;
1689 esac
1690 done
1691 IFS="$ac_save_IFS"
1692
1693fi
1694 if test "${ac_cv_path_install+set}" = set; then
1695 INSTALL="$ac_cv_path_install"
1696 else
1697 # As a last resort, use the slow shell script. We don't cache a
1698 # path for INSTALL within a source directory, because that will
1699 # break other packages using the cache if that directory is
1700 # removed, or if the path is relative.
1701 INSTALL="$ac_install_sh"
1702 fi
1703fi
1704echo "$ac_t""$INSTALL" 1>&6
1705
1706# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1707# It thinks the first close brace ends the variable substitution.
1708test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1709
1710test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1711
1712test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1713
1714
1715echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1716echo "configure:1717: checking whether to enable maintainer-specific portions of Makefiles" >&5
1717 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1718if test "${enable_maintainer_mode+set}" = set; then
1719 enableval="$enable_maintainer_mode"
1720 USE_MAINTAINER_MODE=$enableval
1721else
1722 USE_MAINTAINER_MODE=no
1723fi
1724
1725 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1726
1727
1728if test $USE_MAINTAINER_MODE = yes; then
1729 MAINTAINER_MODE_TRUE=
1730 MAINTAINER_MODE_FALSE='#'
1731else
1732 MAINTAINER_MODE_TRUE='#'
1733 MAINTAINER_MODE_FALSE=
1734fi
1735 MAINT=$MAINTAINER_MODE_TRUE
1736
1737
1738
1739
1740
1741
1742echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1743echo "configure:1744: checking for executable suffix" >&5
1744if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1746else
1747 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
1748 ac_cv_exeext=.exe
1749else
1750 rm -f conftest*
1751 echo 'int main () { return 0; }' > conftest.$ac_ext
1752 ac_cv_exeext=
1753 if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1754 for file in conftest.*; do
1755 case $file in
1756 *.c | *.o | *.obj) ;;
1757 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1758 esac
1759 done
1760 else
1761 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1762 fi
1763 rm -f conftest*
1764 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1765fi
1766fi
1767
1768EXEEXT=""
1769test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1770echo "$ac_t""${ac_cv_exeext}" 1>&6
1771ac_exeext=$EXEEXT
1772
1773
1774# configure.host sets the following important variables
1775# libgcj_cflags - host specific C compiler flags
1776# libgcj_cxxflags - host specific C++ compiler flags
1777# libgcj_javaflags - host specific Java compiler flags
1778
1779libgcj_cflags=
1780libgcj_cxxflags=
1781libgcj_javaflags=
1782
1783. ${srcdir}/configure.host
1784
1785LIBGCJ_CFLAGS="${libgcj_cflags}"
1786LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1787LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797# Only use libltdl for native builds.
1798if test -z "${with_cross_host}"; then
1799 case $enable_ltdl_convenience in
1800 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1801 "") enable_ltdl_convenience=yes
1802 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1803 esac
1804 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1805 INCLTDL='-I${top_srcdir}/''libltdl'
1806
1807
1808 DIRLTDL=libltdl
1809 cat >> confdefs.h <<\EOF
1810#define USE_LTDL 1
1811EOF
1812
1813 # Sigh. Libtool's macro doesn't do the right thing.
1814 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1815 # FIXME: this is a hack.
1816 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1817 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1818fi
1819
1820
1821
1822# Check whether --enable-shared or --disable-shared was given.
1823if test "${enable_shared+set}" = set; then
1824 enableval="$enable_shared"
1825 p=${PACKAGE-default}
1826case $enableval in
1827yes) enable_shared=yes ;;
1828no) enable_shared=no ;;
1829*)
1830 enable_shared=no
1831 # Look at the argument we got. We use all the common list separators.
1832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1833 for pkg in $enableval; do
1834 if test "X$pkg" = "X$p"; then
1835 enable_shared=yes
1836 fi
1837 done
1838 IFS="$ac_save_ifs"
1839 ;;
1840esac
1841else
1842 enable_shared=yes
1843fi
1844
1845# Check whether --enable-static or --disable-static was given.
1846if test "${enable_static+set}" = set; then
1847 enableval="$enable_static"
1848 p=${PACKAGE-default}
1849case $enableval in
1850yes) enable_static=yes ;;
1851no) enable_static=no ;;
1852*)
1853 enable_static=no
1854 # Look at the argument we got. We use all the common list separators.
1855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1856 for pkg in $enableval; do
1857 if test "X$pkg" = "X$p"; then
1858 enable_static=yes
1859 fi
1860 done
1861 IFS="$ac_save_ifs"
1862 ;;
1863esac
1864else
1865 enable_static=yes
1866fi
1867
1868# Check whether --enable-fast-install or --disable-fast-install was given.
1869if test "${enable_fast_install+set}" = set; then
1870 enableval="$enable_fast_install"
1871 p=${PACKAGE-default}
1872case $enableval in
1873yes) enable_fast_install=yes ;;
1874no) enable_fast_install=no ;;
1875*)
1876 enable_fast_install=no
1877 # Look at the argument we got. We use all the common list separators.
1878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1879 for pkg in $enableval; do
1880 if test "X$pkg" = "X$p"; then
1881 enable_fast_install=yes
1882 fi
1883 done
1884 IFS="$ac_save_ifs"
1885 ;;
1886esac
1887else
1888 enable_fast_install=yes
1889fi
1890
1891# Check whether --with-gnu-ld or --without-gnu-ld was given.
1892if test "${with_gnu_ld+set}" = set; then
1893 withval="$with_gnu_ld"
1894 test "$withval" = no || with_gnu_ld=yes
1895else
1896 with_gnu_ld=no
1897fi
1898
1899ac_prog=ld
1900if test "$GCC" = yes; then
1901 # Check if gcc -print-prog-name=ld gives a path.
1902 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1903echo "configure:1904: checking for ld used by GCC" >&5
1904 case $host in
1905 *-*-mingw*)
1906 # gcc leaves a trailing carriage return which upsets mingw
1907 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1908 *)
1909 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1910 esac
1911 case $ac_prog in
1912 # Accept absolute paths.
1913 [\\/]* | [A-Za-z]:[\\/]*)
1914 re_direlt='/[^/][^/]*/\.\./'
1915 # Canonicalize the path of ld
1916 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1917 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1918 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1919 done
1920 test -z "$LD" && LD="$ac_prog"
1921 ;;
1922 "")
1923 # If it fails, then pretend we aren't using GCC.
1924 ac_prog=ld
1925 ;;
1926 *)
1927 # If it is relative, then search for the first ld in PATH.
1928 with_gnu_ld=unknown
1929 ;;
1930 esac
1931elif test "$with_gnu_ld" = yes; then
1932 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1933echo "configure:1934: checking for GNU ld" >&5
1934else
1935 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1936echo "configure:1937: checking for non-GNU ld" >&5
1937fi
1938if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1940else
1941 if test -z "$LD"; then
1942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1943 for ac_dir in $PATH; do
1944 test -z "$ac_dir" && ac_dir=.
1945 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1946 lt_cv_path_LD="$ac_dir/$ac_prog"
1947 # Check to see if the program is GNU ld. I'd rather use --version,
1948 # but apparently some GNU ld's only accept -v.
1949 # Break only if it was the GNU/non-GNU ld that we prefer.
1950 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1951 test "$with_gnu_ld" != no && break
1952 else
1953 test "$with_gnu_ld" != yes && break
1954 fi
1955 fi
1956 done
1957 IFS="$ac_save_ifs"
1958else
1959 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1960fi
1961fi
1962
1963LD="$lt_cv_path_LD"
1964if test -n "$LD"; then
1965 echo "$ac_t""$LD" 1>&6
1966else
1967 echo "$ac_t""no" 1>&6
1968fi
1969test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1970echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1971echo "configure:1972: checking if the linker ($LD) is GNU ld" >&5
1972if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1974else
1975 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1976if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1977 lt_cv_prog_gnu_ld=yes
1978else
1979 lt_cv_prog_gnu_ld=no
1980fi
1981fi
1982
1983echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1984with_gnu_ld=$lt_cv_prog_gnu_ld
1985
1986
1987echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1988echo "configure:1989: checking for $LD option to reload object files" >&5
1989if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1991else
1992 lt_cv_ld_reload_flag='-r'
1993fi
1994
1995echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1996reload_flag=$lt_cv_ld_reload_flag
1997test -n "$reload_flag" && reload_flag=" $reload_flag"
1998
1999echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2000echo "configure:2001: checking for BSD-compatible nm" >&5
2001if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2003else
2004 if test -n "$NM"; then
2005 # Let the user override the test.
2006 lt_cv_path_NM="$NM"
2007else
2008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2009 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2010 test -z "$ac_dir" && ac_dir=.
2011 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2012 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2013 # Check to see if the nm accepts a BSD-compat flag.
2014 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2015 # nm: unknown option "B" ignored
2016 # Tru64's nm complains that /dev/null is an invalid object file
2017 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2018 lt_cv_path_NM="$tmp_nm -B"
2019 break
2020 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2021 lt_cv_path_NM="$tmp_nm -p"
2022 break
2023 else
2024 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2025 continue # so that we can try to find one that supports BSD flags
2026 fi
2027 fi
2028 done
2029 IFS="$ac_save_ifs"
2030 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2031fi
2032fi
2033
2034NM="$lt_cv_path_NM"
2035echo "$ac_t""$NM" 1>&6
2036
2037echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2038echo "configure:2039: checking how to recognise dependant libraries" >&5
2039if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2041else
2042 lt_cv_file_magic_cmd='$MAGIC_CMD'
2043lt_cv_file_magic_test_file=
2044lt_cv_deplibs_check_method='unknown'
2045# Need to set the preceding variable on all platforms that support
2046# interlibrary dependencies.
2047# 'none' -- dependencies not supported.
2048# `unknown' -- same as none, but documents that we really don't know.
2049# 'pass_all' -- all dependencies passed with no checks.
2050# 'test_compile' -- check by making test program.
2051# 'file_magic [regex]' -- check by looking for files in library path
2052# which responds to the $file_magic_cmd with a given egrep regex.
2053# If you have `file' or equivalent on your system and you're not sure
2054# whether `pass_all' will *always* work, you probably want this one.
2055
2056case $host_os in
2057aix*)
2058 lt_cv_deplibs_check_method=pass_all
2059 ;;
2060
2061beos*)
2062 lt_cv_deplibs_check_method=pass_all
2063 ;;
2064
2065bsdi4*)
2066 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2067 lt_cv_file_magic_cmd='/usr/bin/file -L'
2068 lt_cv_file_magic_test_file=/shlib/libc.so
2069 ;;
2070
2071cygwin* | mingw* |pw32*)
2072 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2073 lt_cv_file_magic_cmd='$OBJDUMP -f'
2074 ;;
2075
2076darwin* | rhapsody*)
2077 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2078 lt_cv_file_magic_cmd='/usr/bin/file -L'
2079 case "$host_os" in
2080 rhapsody* | darwin1.012)
2081 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2082 ;;
2083 *) # Darwin 1.3 on
2084 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2085 ;;
2086 esac
2087 ;;
2088
2089freebsd* )
2090 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2091 case $host_cpu in
2092 i*86 )
2093 # Not sure whether the presence of OpenBSD here was a mistake.
2094 # Let's accept both of them until this is cleared up.
2095 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2096 lt_cv_file_magic_cmd=/usr/bin/file
2097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2098 ;;
2099 esac
2100 else
2101 lt_cv_deplibs_check_method=pass_all
2102 fi
2103 ;;
2104
2105gnu*)
2106 lt_cv_deplibs_check_method=pass_all
2107 ;;
2108
2109hpux10.20*|hpux11*)
2110 case $host_cpu in
2111 hppa*)
2112 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2113 lt_cv_file_magic_cmd=/usr/bin/file
2114 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2115 ;;
2116 ia64*)
2117 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2118 lt_cv_file_magic_cmd=/usr/bin/file
2119 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2120 ;;
2121 esac
2122 ;;
2123
2124irix5* | irix6*)
2125 case $host_os in
2126 irix5*)
2127 # this will be overridden with pass_all, but let us keep it just in case
2128 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2129 ;;
2130 *)
2131 case $LD in
2132 *-32|*"-32 ") libmagic=32-bit;;
2133 *-n32|*"-n32 ") libmagic=N32;;
2134 *-64|*"-64 ") libmagic=64-bit;;
2135 *) libmagic=never-match;;
2136 esac
2137 # this will be overridden with pass_all, but let us keep it just in case
2138 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2139 ;;
2140 esac
2141 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2142 lt_cv_deplibs_check_method=pass_all
2143 ;;
2144
2145# This must be Linux ELF.
2146linux-gnu*)
2147 case $host_cpu in
2148 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2149 lt_cv_deplibs_check_method=pass_all ;;
2150 *)
2151 # glibc up to 2.1.1 does not perform some relocations on ARM
2152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2153 esac
2154 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2155 ;;
2156
2157netbsd*)
2158 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2159 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2160 else
2161 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2162 fi
2163 ;;
2164
2165newsos6)
2166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2167 lt_cv_file_magic_cmd=/usr/bin/file
2168 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2169 ;;
2170
2171os2*)
2172 lt_cv_deplibs_check_method=pass_all
2173 ;;
2174
2175osf3* | osf4* | osf5*)
2176 # this will be overridden with pass_all, but let us keep it just in case
2177 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2178 lt_cv_file_magic_test_file=/shlib/libc.so
2179 lt_cv_deplibs_check_method=pass_all
2180 ;;
2181
2182sco3.2v5*)
2183 lt_cv_deplibs_check_method=pass_all
2184 ;;
2185
2186solaris*)
2187 lt_cv_deplibs_check_method=pass_all
2188 lt_cv_file_magic_test_file=/lib/libc.so
2189 ;;
2190
2191sysv5uw[78]* | sysv4*uw2*)
2192 lt_cv_deplibs_check_method=pass_all
2193 ;;
2194
2195sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2196 case $host_vendor in
2197 ncr)
2198 lt_cv_deplibs_check_method=pass_all
2199 ;;
2200 motorola)
2201 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]'
2202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2203 ;;
2204 esac
2205 ;;
2206esac
2207
2208fi
2209
2210echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2211file_magic_cmd=$lt_cv_file_magic_cmd
2212deplibs_check_method=$lt_cv_deplibs_check_method
2213
2214echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2215echo "configure:2216: checking for object suffix" >&5
2216if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2218else
2219 rm -f conftest*
2220echo 'int i = 1;' > conftest.$ac_ext
2221if { (eval echo configure:2222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2222 for ac_file in conftest.*; do
2223 case $ac_file in
2224 *.c) ;;
2225 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2226 esac
2227 done
2228else
2229 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2230fi
2231rm -f conftest*
2232fi
2233
2234echo "$ac_t""$ac_cv_objext" 1>&6
2235OBJEXT=$ac_cv_objext
2236ac_objext=$ac_cv_objext
2237
2238# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2239
2240# Only perform the check for file, if the check method requires it
2241case $deplibs_check_method in
2242file_magic*)
2243 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2244 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2245echo "configure:2246: checking for ${ac_tool_prefix}file" >&5
2246if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2248else
2249 case $MAGIC_CMD in
2250 /*)
2251 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2252 ;;
2253 ?:/*)
2254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2255 ;;
2256 *)
2257 ac_save_MAGIC_CMD="$MAGIC_CMD"
2258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2259 ac_dummy="/usr/bin:$PATH"
2260 for ac_dir in $ac_dummy; do
2261 test -z "$ac_dir" && ac_dir=.
2262 if test -f $ac_dir/${ac_tool_prefix}file; then
2263 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2264 if test -n "$file_magic_test_file"; then
2265 case $deplibs_check_method in
2266 "file_magic "*)
2267 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2268 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2269 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2270 egrep "$file_magic_regex" > /dev/null; then
2271 :
2272 else
2273 cat <<EOF 1>&2
2274
2275*** Warning: the command libtool uses to detect shared libraries,
2276*** $file_magic_cmd, produces output that libtool cannot recognize.
2277*** The result is that libtool may fail to recognize shared libraries
2278*** as such. This will affect the creation of libtool libraries that
2279*** depend on shared libraries, but programs linked with such libtool
2280*** libraries will work regardless of this problem. Nevertheless, you
2281*** may want to report the problem to your system manager and/or to
2282*** bug-libtool@gnu.org
2283
2284EOF
2285 fi ;;
2286 esac
2287 fi
2288 break
2289 fi
2290 done
2291 IFS="$ac_save_ifs"
2292 MAGIC_CMD="$ac_save_MAGIC_CMD"
2293 ;;
2294esac
2295fi
2296
2297MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2298if test -n "$MAGIC_CMD"; then
2299 echo "$ac_t""$MAGIC_CMD" 1>&6
2300else
2301 echo "$ac_t""no" 1>&6
2302fi
2303
2304if test -z "$lt_cv_path_MAGIC_CMD"; then
2305 if test -n "$ac_tool_prefix"; then
2306 echo $ac_n "checking for file""... $ac_c" 1>&6
2307echo "configure:2308: checking for file" >&5
2308if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2310else
2311 case $MAGIC_CMD in
2312 /*)
2313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2314 ;;
2315 ?:/*)
2316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2317 ;;
2318 *)
2319 ac_save_MAGIC_CMD="$MAGIC_CMD"
2320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2321 ac_dummy="/usr/bin:$PATH"
2322 for ac_dir in $ac_dummy; do
2323 test -z "$ac_dir" && ac_dir=.
2324 if test -f $ac_dir/file; then
2325 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2326 if test -n "$file_magic_test_file"; then
2327 case $deplibs_check_method in
2328 "file_magic "*)
2329 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2332 egrep "$file_magic_regex" > /dev/null; then
2333 :
2334 else
2335 cat <<EOF 1>&2
2336
2337*** Warning: the command libtool uses to detect shared libraries,
2338*** $file_magic_cmd, produces output that libtool cannot recognize.
2339*** The result is that libtool may fail to recognize shared libraries
2340*** as such. This will affect the creation of libtool libraries that
2341*** depend on shared libraries, but programs linked with such libtool
2342*** libraries will work regardless of this problem. Nevertheless, you
2343*** may want to report the problem to your system manager and/or to
2344*** bug-libtool@gnu.org
2345
2346EOF
2347 fi ;;
2348 esac
2349 fi
2350 break
2351 fi
2352 done
2353 IFS="$ac_save_ifs"
2354 MAGIC_CMD="$ac_save_MAGIC_CMD"
2355 ;;
2356esac
2357fi
2358
2359MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2360if test -n "$MAGIC_CMD"; then
2361 echo "$ac_t""$MAGIC_CMD" 1>&6
2362else
2363 echo "$ac_t""no" 1>&6
2364fi
2365
2366 else
2367 MAGIC_CMD=:
2368 fi
2369fi
2370
2371 fi
2372 ;;
2373esac
2374
2375# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2376set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2377echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378echo "configure:2379: checking for $ac_word" >&5
2379if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2381else
2382 if test -n "$RANLIB"; then
2383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2384else
2385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2386 ac_dummy="$PATH"
2387 for ac_dir in $ac_dummy; do
2388 test -z "$ac_dir" && ac_dir=.
2389 if test -f $ac_dir/$ac_word -o \
2390 -f $ac_dir/$ac_word$ac_exeext ; then
2391 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2392 break
2393 fi
2394 done
2395 IFS="$ac_save_ifs"
2396fi
2397fi
2398RANLIB="$ac_cv_prog_RANLIB"
2399if test -n "$RANLIB"; then
2400 echo "$ac_t""$RANLIB" 1>&6
2401else
2402 echo "$ac_t""no" 1>&6
2403fi
2404
2405
2406if test -z "$ac_cv_prog_RANLIB"; then
2407if test -n "$ac_tool_prefix"; then
2408 # Extract the first word of "ranlib", so it can be a program name with args.
2409set dummy ranlib; ac_word=$2
2410echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2411echo "configure:2412: checking for $ac_word" >&5
2412if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2414else
2415 if test -n "$RANLIB"; then
2416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2417else
2418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2419 ac_dummy="$PATH"
2420 for ac_dir in $ac_dummy; do
2421 test -z "$ac_dir" && ac_dir=.
2422 if test -f $ac_dir/$ac_word -o \
2423 -f $ac_dir/$ac_word$ac_exeext ; then
2424 ac_cv_prog_RANLIB="ranlib"
2425 break
2426 fi
2427 done
2428 IFS="$ac_save_ifs"
2429 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2430fi
2431fi
2432RANLIB="$ac_cv_prog_RANLIB"
2433if test -n "$RANLIB"; then
2434 echo "$ac_t""$RANLIB" 1>&6
2435else
2436 echo "$ac_t""no" 1>&6
2437fi
2438
2439else
2440 RANLIB=":"
2441fi
2442fi
2443
2444# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2445set dummy ${ac_tool_prefix}strip; ac_word=$2
2446echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2447echo "configure:2448: checking for $ac_word" >&5
2448if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2450else
2451 if test -n "$STRIP"; then
2452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2453else
2454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2455 ac_dummy="$PATH"
2456 for ac_dir in $ac_dummy; do
2457 test -z "$ac_dir" && ac_dir=.
2458 if test -f $ac_dir/$ac_word -o \
2459 -f $ac_dir/$ac_word$ac_exeext ; then
2460 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2461 break
2462 fi
2463 done
2464 IFS="$ac_save_ifs"
2465fi
2466fi
2467STRIP="$ac_cv_prog_STRIP"
2468if test -n "$STRIP"; then
2469 echo "$ac_t""$STRIP" 1>&6
2470else
2471 echo "$ac_t""no" 1>&6
2472fi
2473
2474
2475if test -z "$ac_cv_prog_STRIP"; then
2476if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "strip", so it can be a program name with args.
2478set dummy strip; ac_word=$2
2479echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2480echo "configure:2481: checking for $ac_word" >&5
2481if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2483else
2484 if test -n "$STRIP"; then
2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486else
2487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2488 ac_dummy="$PATH"
2489 for ac_dir in $ac_dummy; do
2490 test -z "$ac_dir" && ac_dir=.
2491 if test -f $ac_dir/$ac_word -o \
2492 -f $ac_dir/$ac_word$ac_exeext ; then
2493 ac_cv_prog_STRIP="strip"
2494 break
2495 fi
2496 done
2497 IFS="$ac_save_ifs"
2498 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2499fi
2500fi
2501STRIP="$ac_cv_prog_STRIP"
2502if test -n "$STRIP"; then
2503 echo "$ac_t""$STRIP" 1>&6
2504else
2505 echo "$ac_t""no" 1>&6
2506fi
2507
2508else
2509 STRIP=":"
2510fi
2511fi
2512
2513
2514# Check for any special flags to pass to ltconfig.
2515libtool_flags="--cache-file=$cache_file"
2516test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2517test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2518test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2519test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2520test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2521libtool_flags="$libtool_flags --enable-dlopen"
2522
2523# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2524if test "${enable_libtool_lock+set}" = set; then
2525 enableval="$enable_libtool_lock"
2526 :
2527fi
2528
2529test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2530test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2531
2532# Check whether --with-pic or --without-pic was given.
2533if test "${with_pic+set}" = set; then
2534 withval="$with_pic"
2535 pic_mode="$withval"
2536else
2537 pic_mode=default
2538fi
2539
2540test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2541test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2542
2543# Some flags need to be propagated to the compiler or linker for good
2544# libtool support.
2545case $host in
2546*-*-irix6*)
2547 # Find out which ABI we are using.
2548 echo '#line 2549 "configure"' > conftest.$ac_ext
2549 if { (eval echo configure:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2550 if test "$lt_cv_prog_gnu_ld" = yes; then
2551 case `/usr/bin/file conftest.$ac_objext` in
2552 *32-bit*)
2553 LD="${LD-ld} -melf32bsmip"
2554 ;;
2555 *N32*)
2556 LD="${LD-ld} -melf32bmipn32"
2557 ;;
2558 *64-bit*)
2559 LD="${LD-ld} -melf64bmip"
2560 ;;
2561 esac
2562 else
2563 case `/usr/bin/file conftest.$ac_objext` in
2564 *32-bit*)
2565 LD="${LD-ld} -32"
2566 ;;
2567 *N32*)
2568 LD="${LD-ld} -n32"
2569 ;;
2570 *64-bit*)
2571 LD="${LD-ld} -64"
2572 ;;
2573 esac
2574 fi
2575 fi
2576 rm -rf conftest*
2577 ;;
2578
2579ia64-*-hpux*)
2580 # Find out which ABI we are using.
2581 echo 'int i;' > conftest.$ac_ext
2582 if { (eval echo configure:2583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2583 case "`/usr/bin/file conftest.o`" in
2584 *ELF-32*)
2585 HPUX_IA64_MODE="32"
2586 ;;
2587 *ELF-64*)
2588 HPUX_IA64_MODE="64"
2589 ;;
2590 esac
2591 fi
2592 rm -rf conftest*
2593 ;;
2594
2595x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2596 # Find out which ABI we are using.
2597 echo 'int i;' > conftest.$ac_ext
2598 if { (eval echo configure:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2599 case "`/usr/bin/file conftest.o`" in
2600 *32-bit*)
2601 case $host in
2602 x86_64-*linux*)
2603 LD="${LD-ld} -m elf_i386"
2604 ;;
2605 ppc64-*linux*|powerpc64-*linux*)
2606 LD="${LD-ld} -m elf32ppclinux"
2607 ;;
2608 s390x-*linux*)
2609 LD="${LD-ld} -m elf_s390"
2610 ;;
2611 sparc64-*linux*)
2612 LD="${LD-ld} -m elf32_sparc"
2613 ;;
2614 esac
2615 ;;
2616 *64-bit*)
2617 case $host in
2618 x86_64-*linux*)
2619 LD="${LD-ld} -m elf_x86_64"
2620 ;;
2621 ppc*-*linux*|powerpc*-*linux*)
2622 LD="${LD-ld} -m elf64ppc"
2623 ;;
2624 s390*-*linux*)
2625 LD="${LD-ld} -m elf64_s390"
2626 ;;
2627 sparc*-*linux*)
2628 LD="${LD-ld} -m elf64_sparc"
2629 ;;
2630 esac
2631 ;;
2632 esac
2633 fi
2634 rm -rf conftest*
2635 ;;
2636
2637*-*-sco3.2v5*)
2638 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2639 SAVE_CFLAGS="$CFLAGS"
2640 CFLAGS="$CFLAGS -belf"
2641 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2642echo "configure:2643: checking whether the C compiler needs -belf" >&5
2643if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2645else
2646
2647 ac_ext=c
2648# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2649ac_cpp='$CPP $CPPFLAGS'
2650ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2651ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2652cross_compiling=$ac_cv_prog_cc_cross
2653
2654 cat > conftest.$ac_ext <<EOF
2655#line 2656 "configure"
2656#include "confdefs.h"
2657
2658int main() {
2659
2660; return 0; }
2661EOF
2662if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2663 rm -rf conftest*
2664 lt_cv_cc_needs_belf=yes
2665else
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 rm -rf conftest*
2669 lt_cv_cc_needs_belf=no
2670fi
2671rm -f conftest*
2672 ac_ext=c
2673# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2676ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2677cross_compiling=$ac_cv_prog_cc_cross
2678
2679fi
2680
2681echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2682 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2683 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2684 CFLAGS="$SAVE_CFLAGS"
2685 fi
2686 ;;
2687
2688
2689esac
2690
2691echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2692echo "configure:2693: checking how to run the C++ preprocessor" >&5
2693if test -z "$CXXCPP"; then
2694if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2696else
2697 ac_ext=C
2698# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2699ac_cpp='$CXXCPP $CPPFLAGS'
2700ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2701ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2702cross_compiling=$ac_cv_prog_cxx_cross
2703 CXXCPP="${CXX-g++} -E"
2704 cat > conftest.$ac_ext <<EOF
2705#include <sys/types.h>
2706#line 2707 "configure"
2707#include "confdefs.h"
2708#include <stdlib.h>
2709EOF
2710ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2711{ (eval echo configure:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2712ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2713if test -z "$ac_err"; then
2714 :
2715else
2716 echo "$ac_err" >&5
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2719 rm -rf conftest*
2720 CXXCPP=/lib/cpp
2721fi
2722rm -f conftest*
2723 ac_cv_prog_CXXCPP="$CXXCPP"
2724ac_ext=c
2725# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2726ac_cpp='$CPP $CPPFLAGS'
2727ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2728ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2729cross_compiling=$ac_cv_prog_cc_cross
2730fi
2731fi
2732CXXCPP="$ac_cv_prog_CXXCPP"
2733echo "$ac_t""$CXXCPP" 1>&6
2734
2735
2736# Save cache, so that ltconfig can load it
2737cat > confcache <<\EOF
2738# This file is a shell script that caches the results of configure
2739# tests run on this system so they can be shared between configure
2740# scripts and configure runs. It is not useful on other systems.
2741# If it contains results you don't want to keep, you may remove or edit it.
2742#
2743# By default, configure uses ./config.cache as the cache file,
2744# creating it if it does not exist already. You can give configure
2745# the --cache-file=FILE option to use a different cache file; that is
2746# what configure does when it calls configure scripts in
2747# subdirectories, so they share the cache.
2748# Giving --cache-file=/dev/null disables caching, for debugging configure.
2749# config.status only pays attention to the cache file if you give it the
2750# --recheck option to rerun configure.
2751#
2752EOF
2753# The following way of writing the cache mishandles newlines in values,
2754# but we know of no workaround that is simple, portable, and efficient.
2755# So, don't put newlines in cache variables' values.
2756# Ultrix sh set writes to stderr and can't be redirected directly,
2757# and sets the high bit in the cache file unless we assign to the vars.
2758(set) 2>&1 |
2759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2760 *ac_space=\ *)
2761 # `set' does not quote correctly, so add quotes (double-quote substitution
2762 # turns \\\\ into \\, and sed turns \\ into \).
2763 sed -n \
2764 -e "s/'/'\\\\''/g" \
2765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2766 ;;
2767 *)
2768 # `set' quotes correctly as required by POSIX, so do not add quotes.
2769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2770 ;;
2771 esac >> confcache
2772if cmp -s $cache_file confcache; then
2773 :
2774else
2775 if test -w $cache_file; then
2776 echo "updating cache $cache_file"
2777 cat confcache > $cache_file
2778 else
2779 echo "not updating unwritable cache $cache_file"
2780 fi
2781fi
2782rm -f confcache
2783
2784
2785# Actually configure libtool. ac_aux_dir is where install-sh is found.
2786AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2787MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2788LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2789AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2790objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2791deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2792${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2793$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2794|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2795
2796# Reload cache, that may have been modified by ltconfig
2797if test -r "$cache_file"; then
2798 echo "loading cache $cache_file"
2799 . $cache_file
2800else
2801 echo "creating cache $cache_file"
2802 > $cache_file
2803fi
2804
2805
2806# This can be used to rebuild libtool when needed
2807LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2808
2809# Always use our own libtool.
2810LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2811
2812# Redirect the config.log output again, so that the ltconfig log is not
2813# clobbered by the next message.
2814exec 5>>./config.log
2815
2816
2817
2818LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2819lt_save_CC="$CC"
2820lt_save_CFLAGS="$CFLAGS"
2821AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2822MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2823LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2824AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2825objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2826deplibs_check_method="$deplibs_check_method" \
2827file_magic_cmd="$file_magic_cmd" \
2828${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2829--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2830|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2831CC="$lt_save_CC"
2832CFLAGS="$lt_save_CFLAGS"
2833
2834# Redirect the config.log output again, so that the ltconfig log is not
2835# clobbered by the next message.
2836exec 5>>./config.log
2837
2838
2839
2840
2841
2842
2843subdirs="$DIRLTDL"
2844
2845
2846if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2847 COMPPATH=.
2848else
2849 COMPPATH=..
2850fi
2851
2852
2853
2854
2855if test -d $srcdir/testsuite; then
2856 TESTSUBDIR_TRUE=
2857 TESTSUBDIR_FALSE='#'
2858else
2859 TESTSUBDIR_TRUE='#'
2860 TESTSUBDIR_FALSE=
2861fi
2862
2863# Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2864if test "${enable_getenv_properties+set}" = set; then
2865 enableval="$enable_getenv_properties"
2866 :
2867fi
2868
2869
2870if test -z "$enable_getenv_properties"; then
2871 enable_getenv_properties=${enable_getenv_properties_default-yes}
2872fi
2873if test "$enable_getenv_properties" = no; then
2874 cat >> confdefs.h <<\EOF
2875#define DISABLE_GETENV_PROPERTIES 1
2876EOF
2877
2878fi
2879
2880if test -z "$enable_main_args"; then
2881 enable_main_args=${enable_main_args_default-yes}
2882fi
2883if test "$enable_main_args" = no; then
2884 cat >> confdefs.h <<\EOF
2885#define DISABLE_MAIN_ARGS 1
2886EOF
2887
2888fi
2889
2890
2891# Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2892if test "${enable_hash_synchronization+set}" = set; then
2893 enableval="$enable_hash_synchronization"
2894 :
2895fi
2896
2897
2898if test -z "$enable_hash_synchronization"; then
2899 enable_hash_synchronization=$enable_hash_synchronization_default
2900fi
2901
2902if test "${slow_pthread_self}" = "yes"; then
2903 cat >> confdefs.h <<\EOF
2904#define SLOW_PTHREAD_SELF 1
2905EOF
2906
2907fi
2908
2909
2910LIBGCJDEBUG="false"
2911
2912# Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2913if test "${enable_libgcj_debug+set}" = set; then
2914 enableval="$enable_libgcj_debug"
2915 if test "$enable_libgcj_debug" = yes; then
2916 cat >> confdefs.h <<\EOF
2917#define DEBUG 1
2918EOF
2919
2920 LIBGCJDEBUG="true"
2921 fi
2922fi
2923
2924
2925# Check whether --enable-interpreter or --disable-interpreter was given.
2926if test "${enable_interpreter+set}" = set; then
2927 enableval="$enable_interpreter"
2928 if test "$enable_interpreter" = yes; then
2929 # This can also be set in configure.host.
2930 libgcj_interpreter=yes
2931 elif test "$enable_interpreter" = no; then
2932 libgcj_interpreter=no
2933 fi
2934fi
2935
2936
2937if test "$libgcj_interpreter" = yes; then
2938 cat >> confdefs.h <<\EOF
2939#define INTERPRETER 1
2940EOF
2941
2942fi
2943INTERPRETER="$libgcj_interpreter"
2944
2945
2946echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2947echo "configure:2948: checking for exception model to use" >&5
2948
2949ac_ext=C
2950# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2951ac_cpp='$CXXCPP $CPPFLAGS'
2952ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2953ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2954cross_compiling=$ac_cv_prog_cxx_cross
2955
2956# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2957if test "${enable_sjlj_exceptions+set}" = set; then
2958 enableval="$enable_sjlj_exceptions"
2959 :
2960else
2961 cat > conftest.$ac_ext << EOF
2962#line 2963 "configure"
2963struct S { ~S(); };
2964void bar();
2965void foo()
2966{
2967 S s;
2968 bar();
2969}
2970EOF
2971old_CXXFLAGS="$CXXFLAGS"
2972CXXFLAGS=-S
2973if { (eval echo configure:2974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2974 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2975 enable_sjlj_exceptions=yes
2976 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2977 enable_sjlj_exceptions=no
2978 fi
2979fi
2980CXXFLAGS="$old_CXXFLAGS"
2981rm -f conftest*
2982fi
2983
2984if test x$enable_sjlj_exceptions = xyes; then
2985 cat >> confdefs.h <<\EOF
2986#define SJLJ_EXCEPTIONS 1
2987EOF
2988
2989 ac_exception_model_name=sjlj
2990elif test x$enable_sjlj_exceptions = xno; then
2991 ac_exception_model_name="call frame"
2992else
2993 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2994fi
2995ac_ext=c
2996# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2997ac_cpp='$CPP $CPPFLAGS'
2998ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2999ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3000cross_compiling=$ac_cv_prog_cc_cross
3001
3002echo "$ac_t""$ac_exception_model_name" 1>&6
3003
3004# If we are non using SJLJ exceptions, and this host does not have support
3005# for unwinding from a signal handler, enable checked dereferences and divides.
3006if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
3007 CHECKREFSPEC=-fcheck-references
3008 DIVIDESPEC=-fuse-divide-subroutine
3009 EXCEPTIONSPEC=
3010fi
3011
3012# Check whether --enable-java-net or --disable-java-net was given.
3013if test "${enable_java_net+set}" = set; then
3014 enableval="$enable_java_net"
3015 :
3016fi
3017
3018
3019if test -z "$enable_java_net"; then
3020 enable_java_net=${enable_java_net_default-yes}
3021fi
3022if test "$enable_java_net" = no; then
3023 cat >> confdefs.h <<\EOF
3024#define DISABLE_JAVA_NET 1
3025EOF
3026
3027fi
3028
3029# Check whether --with-libffi or --without-libffi was given.
3030if test "${with_libffi+set}" = set; then
3031 withval="$with_libffi"
3032 :
3033else
3034 with_libffi=${with_libffi_default-yes}
3035fi
3036
3037
3038LIBFFI=
3039LIBFFIINCS=
3040if test "$with_libffi" != no; then
3041 cat >> confdefs.h <<\EOF
3042#define USE_LIBFFI 1
3043EOF
3044
3045 LIBFFI=../libffi/libffi_convenience.la
3046 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
3047fi
3048
3049
3050
3051# Check whether --enable-jvmpi or --disable-jvmpi was given.
3052if test "${enable_jvmpi+set}" = set; then
3053 enableval="$enable_jvmpi"
3054 :
3055fi
3056
3057
3058if test "$enable_jvmpi" != no; then
3059 cat >> confdefs.h <<\EOF
3060#define ENABLE_JVMPI 1
3061EOF
3062
3063fi
3064
3065TARGET_ECOS=${PROCESS-"no"}
3066# Check whether --with-ecos or --without-ecos was given.
3067if test "${with_ecos+set}" = set; then
3068 withval="$with_ecos"
3069 TARGET_ECOS="$with_ecos"
3070
3071fi
3072
3073
3074PLATFORMOBJS=
3075case "$TARGET_ECOS" in
3076 no) case "$host" in
3077 *mingw*)
3078 PLATFORM=Win32
3079 PLATFORMOBJS=win32.lo
3080 PLATFORMH=win32.h
3081
3082echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
3083echo "configure:3084: checking whether 'ld' is at least 2.13" >&5
3084LD_PROG=`$CC --print-prog-name=ld`
3085LD_VERSION=`$LD_PROG --version`
3086LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3087LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3088if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3089 LD_OK="ok"
3090else
3091 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3092 LD_OK="ok"
3093 fi
3094fi
3095if test "x$LD_OK" != x; then
3096 echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3097else
3098 echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3099 echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
3100 cat >> confdefs.h <<\EOF
3101#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3102EOF
3103
3104fi
3105 ;;
3106 *)
3107 PLATFORM=Posix
3108 PLATFORMOBJS=posix.lo
3109 PLATFORMH=posix.h
3110 ;;
3111 esac
3112 ;;
3113 *)
3114 PLATFORM=Ecos
3115 cat >> confdefs.h <<\EOF
3116#define ECOS 1
3117EOF
3118
3119 PLATFORMOBJS=posix.lo
3120 PLATFORMH=posix.h
3121 ;;
3122esac
3123
3124
3125
3126echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3127echo "configure:3128: checking how to run the C preprocessor" >&5
3128# On Suns, sometimes $CPP names a directory.
3129if test -n "$CPP" && test -d "$CPP"; then
3130 CPP=
3131fi
3132if test -z "$CPP"; then
3133if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3135else
3136 # This must be in double quotes, not single quotes, because CPP may get
3137 # substituted into the Makefile and "${CC-cc}" will confuse make.
3138 CPP="${CC-cc} -E"
3139 # On the NeXT, cc -E runs the code through the compiler's parser,
3140 # not just through cpp.
3141 cat > conftest.$ac_ext <<EOF
3142#include <sys/types.h>
3143#line 3144 "configure"
3144#include "confdefs.h"
3145#include <assert.h>
3146Syntax Error
3147EOF
3148ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3149{ (eval echo configure:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3150ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3151if test -z "$ac_err"; then
3152 :
3153else
3154 echo "$ac_err" >&5
3155 echo "configure: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3157 rm -rf conftest*
3158 CPP="${CC-cc} -E -traditional-cpp"
3159 cat > conftest.$ac_ext <<EOF
3160#include <sys/types.h>
3161#line 3162 "configure"
3162#include "confdefs.h"
3163#include <assert.h>
3164Syntax Error
3165EOF
3166ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3167{ (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3168ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3169if test -z "$ac_err"; then
3170 :
3171else
3172 echo "$ac_err" >&5
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 CPP="${CC-cc} -nologo -E"
3177 cat > conftest.$ac_ext <<EOF
3178#include <sys/types.h>
3179#line 3180 "configure"
3180#include "confdefs.h"
3181#include <assert.h>
3182Syntax Error
3183EOF
3184ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3185{ (eval echo configure:3186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3186ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3187if test -z "$ac_err"; then
3188 :
3189else
3190 echo "$ac_err" >&5
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3193 rm -rf conftest*
3194 CPP=/lib/cpp
3195fi
3196rm -f conftest*
3197fi
3198rm -f conftest*
3199fi
3200rm -f conftest*
3201 ac_cv_prog_CPP="$CPP"
3202fi
3203 CPP="$ac_cv_prog_CPP"
3204else
3205 ac_cv_prog_CPP="$CPP"
3206fi
3207echo "$ac_t""$CPP" 1>&6
3208
3209cat > conftest.$ac_ext <<EOF
3210#line 3211 "configure"
3211#include "confdefs.h"
3212#include <stdint.h>
3213EOF
3214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3215 egrep "uint32_t" >/dev/null 2>&1; then
3216 rm -rf conftest*
3217 cat >> confdefs.h <<\EOF
3218#define HAVE_INT32_DEFINED 1
3219EOF
3220
3221fi
3222rm -f conftest*
3223
3224cat > conftest.$ac_ext <<EOF
3225#line 3226 "configure"
3226#include "confdefs.h"
3227#include <inttypes.h>
3228EOF
3229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3230 egrep "uint32_t" >/dev/null 2>&1; then
3231 rm -rf conftest*
3232 cat >> confdefs.h <<\EOF
3233#define HAVE_INT32_DEFINED 1
3234EOF
3235
3236fi
3237rm -f conftest*
3238
3239cat > conftest.$ac_ext <<EOF
3240#line 3241 "configure"
3241#include "confdefs.h"
3242#include <sys/types.h>
3243EOF
3244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3245 egrep "u_int32_t" >/dev/null 2>&1; then
3246 rm -rf conftest*
3247 cat >> confdefs.h <<\EOF
3248#define HAVE_BSD_INT32_DEFINED 1
3249EOF
3250
3251fi
3252rm -f conftest*
3253
3254cat > conftest.$ac_ext <<EOF
3255#line 3256 "configure"
3256#include "confdefs.h"
3257#include <sys/config.h>
3258EOF
3259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3260 egrep "u_int32_t" >/dev/null 2>&1; then
3261 rm -rf conftest*
3262 cat >> confdefs.h <<\EOF
3263#define HAVE_BSD_INT32_DEFINED 1
3264EOF
3265
3266fi
3267rm -f conftest*
3268
3269
3270
3271cat > conftest.$ac_ext <<EOF
3272#line 3273 "configure"
3273#include "confdefs.h"
3274#include <time.h>
3275EOF
3276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3277 egrep "mktime" >/dev/null 2>&1; then
3278 rm -rf conftest*
3279 cat >> confdefs.h <<\EOF
3280#define HAVE_MKTIME 1
3281EOF
3282
3283fi
3284rm -f conftest*
3285
3286cat > conftest.$ac_ext <<EOF
3287#line 3288 "configure"
3288#include "confdefs.h"
3289#include <time.h>
3290EOF
3291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3292 egrep "localtime" >/dev/null 2>&1; then
3293 rm -rf conftest*
3294 cat >> confdefs.h <<\EOF
3295#define HAVE_LOCALTIME 1
3296EOF
3297
3298fi
3299rm -f conftest*
3300
3301
3302test -d java || mkdir java
3303test -d java/io || mkdir java/io
3304test -d gnu || mkdir gnu
3305
3306
3307
3308test -d java/lang || mkdir java/lang
3309
3310
3311
3312case "${host}" in
3313 *mingw*)
3314 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3315 ;;
3316 *)
3317 SYSTEMSPEC=
3318 ;;
3319esac
3320
3321
3322LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3323
3324
3325# Check whether --with-system-zlib or --without-system-zlib was given.
3326if test "${with_system_zlib+set}" = set; then
3327 withval="$with_system_zlib"
3328 :
3329fi
3330
3331ZLIBSPEC=
3332
3333ZLIBTESTSPEC=
3334
3335
3336libsubdir=.libs
3337
3338echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3339echo "configure:3340: checking for garbage collector to use" >&5
3340# Check whether --enable-java-gc or --disable-java-gc was given.
3341if test "${enable_java_gc+set}" = set; then
3342 enableval="$enable_java_gc"
3343
3344 GC=$enableval
3345else
3346 GC=boehm
3347fi
3348
3349GCLIBS=
3350GCINCS=
3351GCDEPS=
3352GCOBJS=
3353GCSPEC=
3354JC1GCSPEC=
3355GCTESTSPEC=
3356case "$GC" in
3357 boehm)
3358 echo "$ac_t""boehm" 1>&6
3359 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3360 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3361 JC1GCSPEC='-fuse-boehm-gc'
3362 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
3363
3364 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3365 GCOBJS=boehm.lo
3366 GCHDR=boehm-gc.h
3367 cat >> confdefs.h <<\EOF
3368#define HAVE_BOEHM_GC 1
3369EOF
3370
3371 ;;
3372 no)
3373 echo "$ac_t""none" 1>&6
3374 GCOBJS=nogc.lo
3375 GCHDR=no-gc.h
3376 ;;
3377 *)
3378 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3379 ;;
3380esac
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3392echo "configure:3393: checking for thread model used by GCC" >&5
3393THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3394echo "$ac_t""$THREADS" 1>&6
3395
3396case "$THREADS" in
3397 no | none | single)
3398 THREADS=none
3399 ;;
3400 posix | pthreads)
3401 THREADS=posix
3402 case "$host" in
3403 *-*-linux*)
3404 cat >> confdefs.h <<\EOF
3405#define LINUX_THREADS 1
3406EOF
3407
3408 ;;
3409 esac
3410 ;;
3411 win32)
3412 ;;
3413 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3414 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3415 ;;
3416 *)
3417 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3418 ;;
3419esac
3420
3421THREADLDFLAGS=
3422THREADLIBS=
3423THREADINCS=
3424THREADDEPS=
3425THREADOBJS=
3426THREADH=
3427THREADSPEC=
3428case "$THREADS" in
3429 posix)
3430 case "$host" in
3431 *-*-cygwin*)
3432 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3433 ;;
3434
3435 *-*-freebsd[1234]*)
3436
3437 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3438 # merely adds pthread_* functions) but it does have a -pthread switch
3439 # which is required at link-time to select -lc_r *instead* of -lc.
3440 THREADLDFLAGS=-pthread
3441 # Don't set THREADSPEC here as might be expected since -pthread is
3442 # not processed when found within a spec file, it must come from
3443 # the command line. For now, the user must provide the -pthread
3444 # switch to link code compiled with gcj. In future, consider adding
3445 # support for weak references to pthread_* functions ala gthr.h API.
3446 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3447 ;;
3448 *-*-freebsd*)
3449 # FreeBSD 5 implements a model much closer to other modern UNIX
3450 # which support threads. However, it still does not support
3451 # -lpthread.
3452 THREADLDFLAGS=-pthread
3453 THREADSPEC=-lc_r
3454 ;;
3455 *)
3456 THREADLIBS=-lpthread
3457 THREADSPEC=-lpthread
3458 ;;
3459 esac
3460 THREADOBJS=posix-threads.lo
3461 THREADH=posix-threads.h
3462 # MIT pthreads doesn't seem to have the mutexattr functions.
3463 # But for now we don't check for it. We just assume you aren't
3464 # using MIT pthreads.
3465 cat >> confdefs.h <<\EOF
3466#define HAVE_PTHREAD_MUTEXATTR_INIT 1
3467EOF
3468
3469
3470 # If we're using the Boehm GC, then we happen to know that it
3471 # defines _REENTRANT, so we don't bother. Eww.
3472 if test "$GC" != boehm; then
3473 cat >> confdefs.h <<\EOF
3474#define _REENTRANT 1
3475EOF
3476
3477 fi
3478 cat >> confdefs.h <<\EOF
3479#define _POSIX_PTHREAD_SEMANTICS 1
3480EOF
3481
3482 ;;
3483
3484 win32)
3485 THREADOBJS=win32-threads.lo
3486 THREADH=win32-threads.h
3487 ;;
3488
3489 none)
3490 THREADOBJS=no-threads.lo
3491 THREADH=no-threads.h
3492 ;;
3493esac
3494
3495
3496
3497
3498
3499
3500
3501
3502if test -d sysdep; then true; else mkdir sysdep; fi
3503
3504
3505HASH_SYNC_SPEC=
3506# Hash synchronization is only useful with posix threads right now.
3507if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
3508 HASH_SYNC_SPEC=-fhash-synchronization
3509 cat >> confdefs.h <<\EOF
3510#define JV_HASH_SYNCHRONIZATION 1
3511EOF
3512
3513fi
3514
3515
3516
3517
3518
3519if test "$GCC" = yes; then
3520 USING_GCC_TRUE=
3521 USING_GCC_FALSE='#'
3522else
3523 USING_GCC_TRUE='#'
3524 USING_GCC_FALSE=
3525fi
3526
3527CANADIAN=no
3528NULL_TARGET=no
3529NATIVE=yes
3530
3531# We're in the tree with gcc, and need to include some of its headers.
3532GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3533
3534# Figure out where generated headers like libgcj-config.h get installed.
3535gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3536gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3537gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3538tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3539
3540
3541
3542if test "x${with_newlib}" = "xyes"; then
3543 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3544 # may not work correctly, because the compiler may not be able to
3545 # link executables.
3546
3547 # We assume newlib. This lets us hard-code the functions we know
3548 # we'll have.
3549 cat >> confdefs.h <<\EOF
3550#define HAVE_MEMMOVE 1
3551EOF
3552
3553 cat >> confdefs.h <<\EOF
3554#define HAVE_MEMCPY 1
3555EOF
3556
3557 cat >> confdefs.h <<\EOF
3558#define HAVE_STRERROR 1
3559EOF
3560
3561 cat >> confdefs.h <<\EOF
3562#define HAVE_TIME 1
3563EOF
3564
3565 cat >> confdefs.h <<\EOF
3566#define HAVE_GMTIME_R 1
3567EOF
3568
3569 cat >> confdefs.h <<\EOF
3570#define HAVE_LOCALTIME_R 1
3571EOF
3572
3573 cat >> confdefs.h <<\EOF
3574#define HAVE_PTHREAD_MUTEXATTR_INIT 1
3575EOF
3576
3577 cat >> confdefs.h <<\EOF
3578#define HAVE_ALLOCA 1
3579EOF
3580
3581
3582 cat >> confdefs.h <<\EOF
3583#define NO_GETUID 1
3584EOF
3585
3586
3587 # If Canadian cross, then don't pick up tools from the build
3588 # directory.
3589 if test x"$build" != x"$with_cross_host" \
3590 && test x"$build" != x"$target"; then
3591 CANADIAN=yes
3592 GCC_UNWIND_INCLUDE=
3593 GCJ="${target_alias}-gcj"
3594 fi
3595 NATIVE=no
3596else
3597 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3598do
3599echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3600echo "configure:3601: checking for $ac_func" >&5
3601if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3603else
3604 cat > conftest.$ac_ext <<EOF
3605#line 3606 "configure"
3606#include "confdefs.h"
3607/* System header to define __stub macros and hopefully few prototypes,
3608 which can conflict with char $ac_func(); below. */
3609#include <assert.h>
3610/* Override any gcc2 internal prototype to avoid an error. */
3611/* We use char because int might match the return type of a gcc2
3612 builtin and then its argument prototype would still apply. */
3613char $ac_func();
3614
3615int main() {
3616
3617/* The GNU C library defines this for functions which it implements
3618 to always fail with ENOSYS. Some functions are actually named
3619 something starting with __ and the normal name is an alias. */
3620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3621choke me
3622#else
3623$ac_func();
3624#endif
3625
3626; return 0; }
3627EOF
3628if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3629 rm -rf conftest*
3630 eval "ac_cv_func_$ac_func=yes"
3631else
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3634 rm -rf conftest*
3635 eval "ac_cv_func_$ac_func=no"
3636fi
3637rm -f conftest*
3638fi
3639
3640if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3643 cat >> confdefs.h <<EOF
3644#define $ac_tr_func 1
3645EOF
3646
3647else
3648 echo "$ac_t""no" 1>&6
3649fi
3650done
3651
3652 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3653do
3654echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3655echo "configure:3656: checking for $ac_func" >&5
3656if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3658else
3659 cat > conftest.$ac_ext <<EOF
3660#line 3661 "configure"
3661#include "confdefs.h"
3662/* System header to define __stub macros and hopefully few prototypes,
3663 which can conflict with char $ac_func(); below. */
3664#include <assert.h>
3665/* Override any gcc2 internal prototype to avoid an error. */
3666/* We use char because int might match the return type of a gcc2
3667 builtin and then its argument prototype would still apply. */
3668char $ac_func();
3669
3670int main() {
3671
3672/* The GNU C library defines this for functions which it implements
3673 to always fail with ENOSYS. Some functions are actually named
3674 something starting with __ and the normal name is an alias. */
3675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3676choke me
3677#else
3678$ac_func();
3679#endif
3680
3681; return 0; }
3682EOF
3683if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3684 rm -rf conftest*
3685 eval "ac_cv_func_$ac_func=yes"
3686else
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3689 rm -rf conftest*
3690 eval "ac_cv_func_$ac_func=no"
3691fi
3692rm -f conftest*
3693fi
3694
3695if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3696 echo "$ac_t""yes" 1>&6
3697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3698 cat >> confdefs.h <<EOF
3699#define $ac_tr_func 1
3700EOF
3701
3702else
3703 echo "$ac_t""no" 1>&6
3704fi
3705done
3706
3707 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3708do
3709echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3710echo "configure:3711: checking for $ac_func" >&5
3711if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3713else
3714 cat > conftest.$ac_ext <<EOF
3715#line 3716 "configure"
3716#include "confdefs.h"
3717/* System header to define __stub macros and hopefully few prototypes,
3718 which can conflict with char $ac_func(); below. */
3719#include <assert.h>
3720/* Override any gcc2 internal prototype to avoid an error. */
3721/* We use char because int might match the return type of a gcc2
3722 builtin and then its argument prototype would still apply. */
3723char $ac_func();
3724
3725int main() {
3726
3727/* The GNU C library defines this for functions which it implements
3728 to always fail with ENOSYS. Some functions are actually named
3729 something starting with __ and the normal name is an alias. */
3730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3731choke me
3732#else
3733$ac_func();
3734#endif
3735
3736; return 0; }
3737EOF
3738if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3739 rm -rf conftest*
3740 eval "ac_cv_func_$ac_func=yes"
3741else
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3744 rm -rf conftest*
3745 eval "ac_cv_func_$ac_func=no"
3746fi
3747rm -f conftest*
3748fi
3749
3750if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3753 cat >> confdefs.h <<EOF
3754#define $ac_tr_func 1
3755EOF
3756
3757else
3758 echo "$ac_t""no" 1>&6
3759fi
3760done
3761
3762 for ac_func in nl_langinfo setlocale
3763do
3764echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3765echo "configure:3766: checking for $ac_func" >&5
3766if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3768else
3769 cat > conftest.$ac_ext <<EOF
3770#line 3771 "configure"
3771#include "confdefs.h"
3772/* System header to define __stub macros and hopefully few prototypes,
3773 which can conflict with char $ac_func(); below. */
3774#include <assert.h>
3775/* Override any gcc2 internal prototype to avoid an error. */
3776/* We use char because int might match the return type of a gcc2
3777 builtin and then its argument prototype would still apply. */
3778char $ac_func();
3779
3780int main() {
3781
3782/* The GNU C library defines this for functions which it implements
3783 to always fail with ENOSYS. Some functions are actually named
3784 something starting with __ and the normal name is an alias. */
3785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3786choke me
3787#else
3788$ac_func();
3789#endif
3790
3791; return 0; }
3792EOF
3793if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3794 rm -rf conftest*
3795 eval "ac_cv_func_$ac_func=yes"
3796else
3797 echo "configure: failed program was:" >&5
3798 cat conftest.$ac_ext >&5
3799 rm -rf conftest*
3800 eval "ac_cv_func_$ac_func=no"
3801fi
3802rm -f conftest*
3803fi
3804
3805if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3808 cat >> confdefs.h <<EOF
3809#define $ac_tr_func 1
3810EOF
3811
3812else
3813 echo "$ac_t""no" 1>&6
3814fi
3815done
3816
3817 for ac_func in inet_aton inet_addr
3818do
3819echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3820echo "configure:3821: checking for $ac_func" >&5
3821if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3823else
3824 cat > conftest.$ac_ext <<EOF
3825#line 3826 "configure"
3826#include "confdefs.h"
3827/* System header to define __stub macros and hopefully few prototypes,
3828 which can conflict with char $ac_func(); below. */
3829#include <assert.h>
3830/* Override any gcc2 internal prototype to avoid an error. */
3831/* We use char because int might match the return type of a gcc2
3832 builtin and then its argument prototype would still apply. */
3833char $ac_func();
3834
3835int main() {
3836
3837/* The GNU C library defines this for functions which it implements
3838 to always fail with ENOSYS. Some functions are actually named
3839 something starting with __ and the normal name is an alias. */
3840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3841choke me
3842#else
3843$ac_func();
3844#endif
3845
3846; return 0; }
3847EOF
3848if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3849 rm -rf conftest*
3850 eval "ac_cv_func_$ac_func=yes"
3851else
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3854 rm -rf conftest*
3855 eval "ac_cv_func_$ac_func=no"
3856fi
3857rm -f conftest*
3858fi
3859
3860if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3861 echo "$ac_t""yes" 1>&6
3862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3863 cat >> confdefs.h <<EOF
3864#define $ac_tr_func 1
3865EOF
3866 break
3867else
3868 echo "$ac_t""no" 1>&6
3869fi
3870done
3871
3872 for ac_func in inet_pton uname inet_ntoa
3873do
3874echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3875echo "configure:3876: checking for $ac_func" >&5
3876if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3878else
3879 cat > conftest.$ac_ext <<EOF
3880#line 3881 "configure"
3881#include "confdefs.h"
3882/* System header to define __stub macros and hopefully few prototypes,
3883 which can conflict with char $ac_func(); below. */
3884#include <assert.h>
3885/* Override any gcc2 internal prototype to avoid an error. */
3886/* We use char because int might match the return type of a gcc2
3887 builtin and then its argument prototype would still apply. */
3888char $ac_func();
3889
3890int main() {
3891
3892/* The GNU C library defines this for functions which it implements
3893 to always fail with ENOSYS. Some functions are actually named
3894 something starting with __ and the normal name is an alias. */
3895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3896choke me
3897#else
3898$ac_func();
3899#endif
3900
3901; return 0; }
3902EOF
3903if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3904 rm -rf conftest*
3905 eval "ac_cv_func_$ac_func=yes"
3906else
3907 echo "configure: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3909 rm -rf conftest*
3910 eval "ac_cv_func_$ac_func=no"
3911fi
3912rm -f conftest*
3913fi
3914
3915if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3916 echo "$ac_t""yes" 1>&6
3917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3918 cat >> confdefs.h <<EOF
3919#define $ac_tr_func 1
3920EOF
3921
3922else
3923 echo "$ac_t""no" 1>&6
3924fi
3925done
3926
3927 for ac_func in fork execvp pipe sigaction ftruncate
3928do
3929echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3930echo "configure:3931: checking for $ac_func" >&5
3931if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3933else
3934 cat > conftest.$ac_ext <<EOF
3935#line 3936 "configure"
3936#include "confdefs.h"
3937/* System header to define __stub macros and hopefully few prototypes,
3938 which can conflict with char $ac_func(); below. */
3939#include <assert.h>
3940/* Override any gcc2 internal prototype to avoid an error. */
3941/* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3943char $ac_func();
3944
3945int main() {
3946
3947/* The GNU C library defines this for functions which it implements
3948 to always fail with ENOSYS. Some functions are actually named
3949 something starting with __ and the normal name is an alias. */
3950#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3951choke me
3952#else
3953$ac_func();
3954#endif
3955
3956; return 0; }
3957EOF
3958if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3959 rm -rf conftest*
3960 eval "ac_cv_func_$ac_func=yes"
3961else
3962 echo "configure: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3964 rm -rf conftest*
3965 eval "ac_cv_func_$ac_func=no"
3966fi
3967rm -f conftest*
3968fi
3969
3970if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3971 echo "$ac_t""yes" 1>&6
3972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3973 cat >> confdefs.h <<EOF
3974#define $ac_tr_func 1
3975EOF
3976
3977else
3978 echo "$ac_t""no" 1>&6
3979fi
3980done
3981
3982 for ac_hdr in execinfo.h unistd.h dlfcn.h
3983do
3984ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3985echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3986echo "configure:3987: checking for $ac_hdr" >&5
3987if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3989else
3990 cat > conftest.$ac_ext <<EOF
3991#include <sys/types.h>
3992#line 3993 "configure"
3993#include "confdefs.h"
3994#include <$ac_hdr>
3995EOF
3996ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3997{ (eval echo configure:3998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3998ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3999if test -z "$ac_err"; then
4000 rm -rf conftest*
4001 eval "ac_cv_header_$ac_safe=yes"
4002else
4003 echo "$ac_err" >&5
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 rm -rf conftest*
4007 eval "ac_cv_header_$ac_safe=no"
4008fi
4009rm -f conftest*
4010fi
4011if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4012 echo "$ac_t""yes" 1>&6
4013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4014 cat >> confdefs.h <<EOF
4015#define $ac_tr_hdr 1
4016EOF
4017
4018else
4019 echo "$ac_t""no" 1>&6
4020fi
4021done
4022
4023 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
4024echo "configure:4025: checking for backtrace" >&5
4025if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4027else
4028 cat > conftest.$ac_ext <<EOF
4029#line 4030 "configure"
4030#include "confdefs.h"
4031/* System header to define __stub macros and hopefully few prototypes,
4032 which can conflict with char backtrace(); below. */
4033#include <assert.h>
4034/* Override any gcc2 internal prototype to avoid an error. */
4035/* We use char because int might match the return type of a gcc2
4036 builtin and then its argument prototype would still apply. */
4037char backtrace();
4038
4039int main() {
4040
4041/* The GNU C library defines this for functions which it implements
4042 to always fail with ENOSYS. Some functions are actually named
4043 something starting with __ and the normal name is an alias. */
4044#if defined (__stub_backtrace) || defined (__stub___backtrace)
4045choke me
4046#else
4047backtrace();
4048#endif
4049
4050; return 0; }
4051EOF
4052if { (eval echo configure:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4053 rm -rf conftest*
4054 eval "ac_cv_func_backtrace=yes"
4055else
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4058 rm -rf conftest*
4059 eval "ac_cv_func_backtrace=no"
4060fi
4061rm -f conftest*
4062fi
4063
4064if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
4065 echo "$ac_t""yes" 1>&6
4066
4067 case "$host" in
4068 ia64-*-linux*)
4069 # Has broken backtrace()
4070 ;;
4071 *)
4072 cat >> confdefs.h <<\EOF
4073#define HAVE_BACKTRACE 1
4074EOF
4075
4076 ;;
4077 esac
4078
4079else
4080 echo "$ac_t""no" 1>&6
4081
4082 case "$host" in
4083 *mingw*)
4084 # Has backtrace() defined in libgcj itself
4085 cat >> confdefs.h <<\EOF
4086#define HAVE_BACKTRACE 1
4087EOF
4088
4089 ;;
4090 esac
4091
4092fi
4093
4094
4095 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
4096echo "configure:4097: checking for dladdr in -ldl" >&5
4097ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
4098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4100else
4101 ac_save_LIBS="$LIBS"
4102LIBS="-ldl $LIBS"
4103cat > conftest.$ac_ext <<EOF
4104#line 4105 "configure"
4105#include "confdefs.h"
4106/* Override any gcc2 internal prototype to avoid an error. */
4107/* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109char dladdr();
4110
4111int main() {
4112dladdr()
4113; return 0; }
4114EOF
4115if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 rm -rf conftest*
4117 eval "ac_cv_lib_$ac_lib_var=yes"
4118else
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 rm -rf conftest*
4122 eval "ac_cv_lib_$ac_lib_var=no"
4123fi
4124rm -f conftest*
4125LIBS="$ac_save_LIBS"
4126
4127fi
4128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130
4131 cat >> confdefs.h <<\EOF
4132#define HAVE_DLADDR 1
4133EOF
4134
4135else
4136 echo "$ac_t""no" 1>&6
4137fi
4138
4139 if test x"$build" = x"$host"; then
4140 for ac_file in /proc/self/exe
4141do
4142
4143ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
4144echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
4145echo "configure:4146: checking for $ac_file" >&5
4146if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4148else
4149 if test "$cross_compiling" = yes; then
4150 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
4151else
4152 if test -r $ac_file; then
4153 eval "ac_cv_file_$ac_safe=yes"
4154 else
4155 eval "ac_cv_file_$ac_safe=no"
4156 fi
4157fi
4158fi
4159if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4161 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4162 cat >> confdefs.h <<EOF
4163#define $ac_tr_file 1
4164EOF
4165
4166 cat >> confdefs.h <<\EOF
4167#define HAVE_PROC_SELF_EXE 1
4168EOF
4169
4170else
4171 echo "$ac_t""no" 1>&6
4172
4173fi
4174done
4175
4176 else
4177 case $host in
4178 *-linux*)
4179 cat >> confdefs.h <<\EOF
4180#define HAVE_PROC_SELF_EXE 1
4181EOF
4182
4183 ;;
4184 esac
4185 fi
4186
4187
4188
4189 am_cv_lib_iconv_ldpath=
4190 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4191if test "${with_libiconv_prefix+set}" = set; then
4192 withval="$with_libiconv_prefix"
4193
4194 for dir in `echo "$withval" | tr : ' '`; do
4195 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4196 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
4197 done
4198
4199fi
4200
4201
4202 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4203echo "configure:4204: checking for iconv" >&5
4204if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4206else
4207
4208 am_cv_func_iconv="no, consider installing GNU libiconv"
4209 am_cv_lib_iconv=no
4210 cat > conftest.$ac_ext <<EOF
4211#line 4212 "configure"
4212#include "confdefs.h"
4213#include <stdlib.h>
4214#include <iconv.h>
4215int main() {
4216iconv_t cd = iconv_open("","");
4217 iconv(cd,NULL,NULL,NULL,NULL);
4218 iconv_close(cd);
4219; return 0; }
4220EOF
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4222 rm -rf conftest*
4223 am_cv_func_iconv=yes
4224else
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227fi
4228rm -f conftest*
4229 if test "$am_cv_func_iconv" != yes; then
4230 am_save_LIBS="$LIBS"
4231 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
4232 cat > conftest.$ac_ext <<EOF
4233#line 4234 "configure"
4234#include "confdefs.h"
4235#include <stdlib.h>
4236#include <iconv.h>
4237int main() {
4238iconv_t cd = iconv_open("","");
4239 iconv(cd,NULL,NULL,NULL,NULL);
4240 iconv_close(cd);
4241; return 0; }
4242EOF
4243if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4244 rm -rf conftest*
4245 am_cv_lib_iconv=yes
4246 am_cv_func_iconv=yes
4247else
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250fi
4251rm -f conftest*
4252 LIBS="$am_save_LIBS"
4253 fi
4254
4255fi
4256
4257echo "$ac_t""$am_cv_func_iconv" 1>&6
4258 if test "$am_cv_func_iconv" = yes; then
4259 cat >> confdefs.h <<\EOF
4260#define HAVE_ICONV 1
4261EOF
4262
4263 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4264echo "configure:4265: checking for iconv declaration" >&5
4265 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4267else
4268
4269 cat > conftest.$ac_ext <<EOF
4270#line 4271 "configure"
4271#include "confdefs.h"
4272
4273#include <stdlib.h>
4274#include <iconv.h>
4275extern
4276#ifdef __cplusplus
4277"C"
4278#endif
4279#if defined(__STDC__) || defined(__cplusplus)
4280size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4281#else
4282size_t iconv();
4283#endif
4284
4285int main() {
4286
4287; return 0; }
4288EOF
4289if { (eval echo configure:4290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4290 rm -rf conftest*
4291 am_cv_proto_iconv_arg1=""
4292else
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4295 rm -rf conftest*
4296 am_cv_proto_iconv_arg1="const"
4297fi
4298rm -f conftest*
4299 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);"
4300fi
4301
4302 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4303 echo "$ac_t""${ac_t:-
4304 }$am_cv_proto_iconv" 1>&6
4305 cat >> confdefs.h <<EOF
4306#define ICONV_CONST $am_cv_proto_iconv_arg1
4307EOF
4308
4309 fi
4310 LIBICONV=
4311 if test "$am_cv_lib_iconv" = yes; then
4312 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
4313 fi
4314
4315
4316 if test $ac_cv_header_locale_h = yes; then
4317 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4318echo "configure:4319: checking for LC_MESSAGES" >&5
4319if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4321else
4322 cat > conftest.$ac_ext <<EOF
4323#line 4324 "configure"
4324#include "confdefs.h"
4325#include <locale.h>
4326int main() {
4327return LC_MESSAGES
4328; return 0; }
4329EOF
4330if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4331 rm -rf conftest*
4332 am_cv_val_LC_MESSAGES=yes
4333else
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 rm -rf conftest*
4337 am_cv_val_LC_MESSAGES=no
4338fi
4339rm -f conftest*
4340fi
4341
4342echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4343 if test $am_cv_val_LC_MESSAGES = yes; then
4344 cat >> confdefs.h <<\EOF
4345#define HAVE_LC_MESSAGES 1
4346EOF
4347
4348 fi
4349 fi
4350 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4351echo "configure:4352: checking whether struct tm is in sys/time.h or time.h" >&5
4352if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4354else
4355 cat > conftest.$ac_ext <<EOF
4356#line 4357 "configure"
4357#include "confdefs.h"
4358#include <sys/types.h>
4359#include <time.h>
4360int main() {
4361struct tm *tp; tp->tm_sec;
4362; return 0; }
4363EOF
4364if { (eval echo configure:4365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4365 rm -rf conftest*
4366 ac_cv_struct_tm=time.h
4367else
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4370 rm -rf conftest*
4371 ac_cv_struct_tm=sys/time.h
4372fi
4373rm -f conftest*
4374fi
4375
4376echo "$ac_t""$ac_cv_struct_tm" 1>&6
4377if test $ac_cv_struct_tm = sys/time.h; then
4378 cat >> confdefs.h <<\EOF
4379#define TM_IN_SYS_TIME 1
4380EOF
4381
4382fi
4383
4384echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4385echo "configure:4386: checking for tm_zone in struct tm" >&5
4386if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4388else
4389 cat > conftest.$ac_ext <<EOF
4390#line 4391 "configure"
4391#include "confdefs.h"
4392#include <sys/types.h>
4393#include <$ac_cv_struct_tm>
4394int main() {
4395struct tm tm; tm.tm_zone;
4396; return 0; }
4397EOF
4398if { (eval echo configure:4399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4399 rm -rf conftest*
4400 ac_cv_struct_tm_zone=yes
4401else
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 rm -rf conftest*
4405 ac_cv_struct_tm_zone=no
4406fi
4407rm -f conftest*
4408fi
4409
4410echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4411if test "$ac_cv_struct_tm_zone" = yes; then
4412 cat >> confdefs.h <<\EOF
4413#define HAVE_TM_ZONE 1
4414EOF
4415
4416else
4417 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4418echo "configure:4419: checking for tzname" >&5
4419if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4421else
4422 cat > conftest.$ac_ext <<EOF
4423#line 4424 "configure"
4424#include "confdefs.h"
4425#include <time.h>
4426#ifndef tzname /* For SGI. */
4427extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4428#endif
4429int main() {
4430atoi(*tzname);
4431; return 0; }
4432EOF
4433if { (eval echo configure:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4434 rm -rf conftest*
4435 ac_cv_var_tzname=yes
4436else
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 rm -rf conftest*
4440 ac_cv_var_tzname=no
4441fi
4442rm -f conftest*
4443fi
4444
4445echo "$ac_t""$ac_cv_var_tzname" 1>&6
4446 if test $ac_cv_var_tzname = yes; then
4447 cat >> confdefs.h <<\EOF
4448#define HAVE_TZNAME 1
4449EOF
4450
4451 fi
4452fi
4453
4454
4455 for ac_func in gethostbyname_r
4456do
4457echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4458echo "configure:4459: checking for $ac_func" >&5
4459if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4461else
4462 cat > conftest.$ac_ext <<EOF
4463#line 4464 "configure"
4464#include "confdefs.h"
4465/* System header to define __stub macros and hopefully few prototypes,
4466 which can conflict with char $ac_func(); below. */
4467#include <assert.h>
4468/* Override any gcc2 internal prototype to avoid an error. */
4469/* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4471char $ac_func();
4472
4473int main() {
4474
4475/* The GNU C library defines this for functions which it implements
4476 to always fail with ENOSYS. Some functions are actually named
4477 something starting with __ and the normal name is an alias. */
4478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4479choke me
4480#else
4481$ac_func();
4482#endif
4483
4484; return 0; }
4485EOF
4486if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4487 rm -rf conftest*
4488 eval "ac_cv_func_$ac_func=yes"
4489else
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 rm -rf conftest*
4493 eval "ac_cv_func_$ac_func=no"
4494fi
4495rm -f conftest*
4496fi
4497
4498if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4501 cat >> confdefs.h <<EOF
4502#define $ac_tr_func 1
4503EOF
4504
4505 cat >> confdefs.h <<\EOF
4506#define HAVE_GETHOSTBYNAME_R 1
4507EOF
4508
4509 # There are two different kinds of gethostbyname_r.
4510 # We look for the one that returns `int'.
4511 # Hopefully this check is robust enough.
4512 cat > conftest.$ac_ext <<EOF
4513#line 4514 "configure"
4514#include "confdefs.h"
4515#include <netdb.h>
4516EOF
4517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4518 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
4519 rm -rf conftest*
4520
4521 cat >> confdefs.h <<\EOF
4522#define GETHOSTBYNAME_R_RETURNS_INT 1
4523EOF
4524
4525fi
4526rm -f conftest*
4527
4528
4529 case " $GCINCS " in
4530 *" -D_REENTRANT "*) ;;
4531 *)
4532 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4533echo "configure:4534: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4534if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4536else
4537
4538 ac_ext=C
4539# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4540ac_cpp='$CXXCPP $CPPFLAGS'
4541ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4542ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4543cross_compiling=$ac_cv_prog_cxx_cross
4544
4545 cat > conftest.$ac_ext <<EOF
4546#line 4547 "configure"
4547#include "confdefs.h"
4548#include <netdb.h>
4549int main() {
4550gethostbyname_r("", 0, 0);
4551; return 0; }
4552EOF
4553if { (eval echo configure:4554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4554 rm -rf conftest*
4555 libjava_cv_gethostbyname_r_needs_reentrant=no
4556else
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4559 rm -rf conftest*
4560 CPPFLAGS_SAVE="$CPPFLAGS"
4561 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4562 cat > conftest.$ac_ext <<EOF
4563#line 4564 "configure"
4564#include "confdefs.h"
4565#include <netdb.h>
4566int main() {
4567gethostbyname_r("", 0, 0);
4568; return 0; }
4569EOF
4570if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4571 rm -rf conftest*
4572 libjava_cv_gethostbyname_r_needs_reentrant=yes
4573else
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4576 rm -rf conftest*
4577 libjava_cv_gethostbyname_r_needs_reentrant=fail
4578fi
4579rm -f conftest*
4580 CPPFLAGS="$CPPFLAGS_SAVE"
4581
4582fi
4583rm -f conftest*
4584 ac_ext=c
4585# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4586ac_cpp='$CPP $CPPFLAGS'
4587ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4588ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4589cross_compiling=$ac_cv_prog_cc_cross
4590
4591
4592fi
4593
4594echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4595 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4596 cat >> confdefs.h <<\EOF
4597#define _REENTRANT 1
4598EOF
4599
4600 fi
4601 ;;
4602 esac
4603
4604 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4605echo "configure:4606: checking for struct hostent_data" >&5
4606if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4608else
4609 cat > conftest.$ac_ext <<EOF
4610#line 4611 "configure"
4611#include "confdefs.h"
4612
4613#if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4614# define _REENTRANT 1
4615#endif
4616#include <netdb.h>
4617int main() {
4618struct hostent_data data;
4619; return 0; }
4620EOF
4621if { (eval echo configure:4622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4622 rm -rf conftest*
4623 libjava_cv_struct_hostent_data=yes
4624else
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 rm -rf conftest*
4628 libjava_cv_struct_hostent_data=no
4629fi
4630rm -f conftest*
4631fi
4632
4633echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4634 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4635 cat >> confdefs.h <<\EOF
4636#define HAVE_STRUCT_HOSTENT_DATA 1
4637EOF
4638
4639 fi
4640
4641else
4642 echo "$ac_t""no" 1>&6
4643fi
4644done
4645
4646
4647 # FIXME: libjava source code expects to find a prototype for
4648 # gethostbyaddr_r in netdb.h. The outer check ensures that
4649 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4650 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4651 # linkage check is enough, yet C++ code requires proper prototypes.)
4652 cat > conftest.$ac_ext <<EOF
4653#line 4654 "configure"
4654#include "confdefs.h"
4655#include <netdb.h>
4656EOF
4657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
4659 rm -rf conftest*
4660
4661 for ac_func in gethostbyaddr_r
4662do
4663echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4664echo "configure:4665: checking for $ac_func" >&5
4665if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4667else
4668 cat > conftest.$ac_ext <<EOF
4669#line 4670 "configure"
4670#include "confdefs.h"
4671/* System header to define __stub macros and hopefully few prototypes,
4672 which can conflict with char $ac_func(); below. */
4673#include <assert.h>
4674/* Override any gcc2 internal prototype to avoid an error. */
4675/* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677char $ac_func();
4678
4679int main() {
4680
4681/* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4685choke me
4686#else
4687$ac_func();
4688#endif
4689
4690; return 0; }
4691EOF
4692if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 rm -rf conftest*
4694 eval "ac_cv_func_$ac_func=yes"
4695else
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 rm -rf conftest*
4699 eval "ac_cv_func_$ac_func=no"
4700fi
4701rm -f conftest*
4702fi
4703
4704if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4707 cat >> confdefs.h <<EOF
4708#define $ac_tr_func 1
4709EOF
4710
4711 cat >> confdefs.h <<\EOF
4712#define HAVE_GETHOSTBYADDR_R 1
4713EOF
4714
4715 # There are two different kinds of gethostbyaddr_r.
4716 # We look for the one that returns `int'.
4717 # Hopefully this check is robust enough.
4718 cat > conftest.$ac_ext <<EOF
4719#line 4720 "configure"
4720#include "confdefs.h"
4721#include <netdb.h>
4722EOF
4723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4725 rm -rf conftest*
4726
4727 cat >> confdefs.h <<\EOF
4728#define GETHOSTBYADDR_R_RETURNS_INT 1
4729EOF
4730
4731fi
4732rm -f conftest*
4733
4734else
4735 echo "$ac_t""no" 1>&6
4736fi
4737done
4738
4739fi
4740rm -f conftest*
4741
4742
4743 for ac_func in gethostname
4744do
4745echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4746echo "configure:4747: checking for $ac_func" >&5
4747if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749else
4750 cat > conftest.$ac_ext <<EOF
4751#line 4752 "configure"
4752#include "confdefs.h"
4753/* System header to define __stub macros and hopefully few prototypes,
4754 which can conflict with char $ac_func(); below. */
4755#include <assert.h>
4756/* Override any gcc2 internal prototype to avoid an error. */
4757/* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4759char $ac_func();
4760
4761int main() {
4762
4763/* The GNU C library defines this for functions which it implements
4764 to always fail with ENOSYS. Some functions are actually named
4765 something starting with __ and the normal name is an alias. */
4766#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4767choke me
4768#else
4769$ac_func();
4770#endif
4771
4772; return 0; }
4773EOF
4774if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4775 rm -rf conftest*
4776 eval "ac_cv_func_$ac_func=yes"
4777else
4778 echo "configure: failed program was:" >&5
4779 cat conftest.$ac_ext >&5
4780 rm -rf conftest*
4781 eval "ac_cv_func_$ac_func=no"
4782fi
4783rm -f conftest*
4784fi
4785
4786if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4787 echo "$ac_t""yes" 1>&6
4788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4789 cat >> confdefs.h <<EOF
4790#define $ac_tr_func 1
4791EOF
4792
4793 cat >> confdefs.h <<\EOF
4794#define HAVE_GETHOSTNAME 1
4795EOF
4796
4797 cat > conftest.$ac_ext <<EOF
4798#line 4799 "configure"
4799#include "confdefs.h"
4800#include <unistd.h>
4801EOF
4802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4803 egrep "gethostname" >/dev/null 2>&1; then
4804 rm -rf conftest*
4805
4806 cat >> confdefs.h <<\EOF
4807#define HAVE_GETHOSTNAME_DECL 1
4808EOF
4809
4810fi
4811rm -f conftest*
4812
4813else
4814 echo "$ac_t""no" 1>&6
4815fi
4816done
4817
4818
4819 # Look for these functions in the thread library, but only bother
4820 # if using POSIX threads.
4821 if test "$THREADS" = posix; then
4822 save_LIBS="$LIBS"
4823 LIBS="$LIBS $THREADLIBS"
4824 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4825 # E.g., Solaris.
4826 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4827do
4828echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4829echo "configure:4830: checking for $ac_func" >&5
4830if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4832else
4833 cat > conftest.$ac_ext <<EOF
4834#line 4835 "configure"
4835#include "confdefs.h"
4836/* System header to define __stub macros and hopefully few prototypes,
4837 which can conflict with char $ac_func(); below. */
4838#include <assert.h>
4839/* Override any gcc2 internal prototype to avoid an error. */
4840/* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4842char $ac_func();
4843
4844int main() {
4845
4846/* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4850choke me
4851#else
4852$ac_func();
4853#endif
4854
4855; return 0; }
4856EOF
4857if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4858 rm -rf conftest*
4859 eval "ac_cv_func_$ac_func=yes"
4860else
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 rm -rf conftest*
4864 eval "ac_cv_func_$ac_func=no"
4865fi
4866rm -f conftest*
4867fi
4868
4869if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4872 cat >> confdefs.h <<EOF
4873#define $ac_tr_func 1
4874EOF
4875
4876else
4877 echo "$ac_t""no" 1>&6
4878fi
4879done
4880
4881
4882 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4883 # Solaris 7 the name librt is preferred.
4884 for ac_func in sched_yield
4885do
4886echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4887echo "configure:4888: checking for $ac_func" >&5
4888if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4890else
4891 cat > conftest.$ac_ext <<EOF
4892#line 4893 "configure"
4893#include "confdefs.h"
4894/* System header to define __stub macros and hopefully few prototypes,
4895 which can conflict with char $ac_func(); below. */
4896#include <assert.h>
4897/* Override any gcc2 internal prototype to avoid an error. */
4898/* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4900char $ac_func();
4901
4902int main() {
4903
4904/* The GNU C library defines this for functions which it implements
4905 to always fail with ENOSYS. Some functions are actually named
4906 something starting with __ and the normal name is an alias. */
4907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4908choke me
4909#else
4910$ac_func();
4911#endif
4912
4913; return 0; }
4914EOF
4915if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4916 rm -rf conftest*
4917 eval "ac_cv_func_$ac_func=yes"
4918else
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4921 rm -rf conftest*
4922 eval "ac_cv_func_$ac_func=no"
4923fi
4924rm -f conftest*
4925fi
4926
4927if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4928 echo "$ac_t""yes" 1>&6
4929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4930 cat >> confdefs.h <<EOF
4931#define $ac_tr_func 1
4932EOF
4933
4934else
4935 echo "$ac_t""no" 1>&6
4936echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4937echo "configure:4938: checking for sched_yield in -lrt" >&5
4938ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4939if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4941else
4942 ac_save_LIBS="$LIBS"
4943LIBS="-lrt $LIBS"
4944cat > conftest.$ac_ext <<EOF
4945#line 4946 "configure"
4946#include "confdefs.h"
4947/* Override any gcc2 internal prototype to avoid an error. */
4948/* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4950char sched_yield();
4951
4952int main() {
4953sched_yield()
4954; return 0; }
4955EOF
4956if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 rm -rf conftest*
4958 eval "ac_cv_lib_$ac_lib_var=yes"
4959else
4960 echo "configure: failed program was:" >&5
4961 cat conftest.$ac_ext >&5
4962 rm -rf conftest*
4963 eval "ac_cv_lib_$ac_lib_var=no"
4964fi
4965rm -f conftest*
4966LIBS="$ac_save_LIBS"
4967
4968fi
4969if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4971
4972 cat >> confdefs.h <<\EOF
4973#define HAVE_SCHED_YIELD 1
4974EOF
4975
4976 THREADLIBS="$THREADLIBS -lrt"
4977 THREADSPEC="$THREADSPEC -lrt"
4978else
4979 echo "$ac_t""no" 1>&6
4980
4981 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4982echo "configure:4983: checking for sched_yield in -lposix4" >&5
4983ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4984if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4986else
4987 ac_save_LIBS="$LIBS"
4988LIBS="-lposix4 $LIBS"
4989cat > conftest.$ac_ext <<EOF
4990#line 4991 "configure"
4991#include "confdefs.h"
4992/* Override any gcc2 internal prototype to avoid an error. */
4993/* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
4995char sched_yield();
4996
4997int main() {
4998sched_yield()
4999; return 0; }
5000EOF
5001if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5002 rm -rf conftest*
5003 eval "ac_cv_lib_$ac_lib_var=yes"
5004else
5005 echo "configure: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 rm -rf conftest*
5008 eval "ac_cv_lib_$ac_lib_var=no"
5009fi
5010rm -f conftest*
5011LIBS="$ac_save_LIBS"
5012
5013fi
5014if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016
5017 cat >> confdefs.h <<\EOF
5018#define HAVE_SCHED_YIELD 1
5019EOF
5020
5021 THREADLIBS="$THREADLIBS -lposix4"
5022 THREADSPEC="$THREADSPEC -lposix4"
5023else
5024 echo "$ac_t""no" 1>&6
5025fi
5026
5027fi
5028
5029fi
5030done
5031
5032 LIBS="$save_LIBS"
5033
5034 # We can save a little space at runtime if the mutex has m_count
5035 # or __m_count. This is a nice hack for Linux.
5036 cat > conftest.$ac_ext <<EOF
5037#line 5038 "configure"
5038#include "confdefs.h"
5039#include <pthread.h>
5040int main() {
5041
5042 extern pthread_mutex_t *mutex; int q = mutex->m_count;
5043
5044; return 0; }
5045EOF
5046if { (eval echo configure:5047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5047 rm -rf conftest*
5048 cat >> confdefs.h <<\EOF
5049#define PTHREAD_MUTEX_HAVE_M_COUNT 1
5050EOF
5051
5052else
5053 echo "configure: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5055 rm -rf conftest*
5056
5057 cat > conftest.$ac_ext <<EOF
5058#line 5059 "configure"
5059#include "confdefs.h"
5060#include <pthread.h>
5061int main() {
5062
5063 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
5064
5065; return 0; }
5066EOF
5067if { (eval echo configure:5068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5068 rm -rf conftest*
5069 cat >> confdefs.h <<\EOF
5070#define PTHREAD_MUTEX_HAVE___M_COUNT 1
5071EOF
5072
5073else
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5076fi
5077rm -f conftest*
5078fi
5079rm -f conftest*
5080 fi
5081
5082 # We require a way to get the time.
5083 time_found=no
5084 for ac_func in gettimeofday time ftime
5085do
5086echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5087echo "configure:5088: checking for $ac_func" >&5
5088if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5090else
5091 cat > conftest.$ac_ext <<EOF
5092#line 5093 "configure"
5093#include "confdefs.h"
5094/* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char $ac_func(); below. */
5096#include <assert.h>
5097/* Override any gcc2 internal prototype to avoid an error. */
5098/* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5100char $ac_func();
5101
5102int main() {
5103
5104/* The GNU C library defines this for functions which it implements
5105 to always fail with ENOSYS. Some functions are actually named
5106 something starting with __ and the normal name is an alias. */
5107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5108choke me
5109#else
5110$ac_func();
5111#endif
5112
5113; return 0; }
5114EOF
5115if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5116 rm -rf conftest*
5117 eval "ac_cv_func_$ac_func=yes"
5118else
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5121 rm -rf conftest*
5122 eval "ac_cv_func_$ac_func=no"
5123fi
5124rm -f conftest*
5125fi
5126
5127if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5130 cat >> confdefs.h <<EOF
5131#define $ac_tr_func 1
5132EOF
5133 time_found=yes
5134else
5135 echo "$ac_t""no" 1>&6
5136fi
5137done
5138
5139 if test "$time_found" = no; then
5140 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
5141 fi
5142
5143 for ac_func in memmove
5144do
5145echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5146echo "configure:5147: checking for $ac_func" >&5
5147if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5148 echo $ac_n "(cached) $ac_c" 1>&6
5149else
5150 cat > conftest.$ac_ext <<EOF
5151#line 5152 "configure"
5152#include "confdefs.h"
5153/* System header to define __stub macros and hopefully few prototypes,
5154 which can conflict with char $ac_func(); below. */
5155#include <assert.h>
5156/* Override any gcc2 internal prototype to avoid an error. */
5157/* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5159char $ac_func();
5160
5161int main() {
5162
5163/* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5167choke me
5168#else
5169$ac_func();
5170#endif
5171
5172; return 0; }
5173EOF
5174if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 rm -rf conftest*
5176 eval "ac_cv_func_$ac_func=yes"
5177else
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5180 rm -rf conftest*
5181 eval "ac_cv_func_$ac_func=no"
5182fi
5183rm -f conftest*
5184fi
5185
5186if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5187 echo "$ac_t""yes" 1>&6
5188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5189 cat >> confdefs.h <<EOF
5190#define $ac_tr_func 1
5191EOF
5192
5193else
5194 echo "$ac_t""no" 1>&6
5195fi
5196done
5197
5198
5199 # We require memcpy.
5200 memcpy_found=no
5201 for ac_func in memcpy
5202do
5203echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5204echo "configure:5205: checking for $ac_func" >&5
5205if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5207else
5208 cat > conftest.$ac_ext <<EOF
5209#line 5210 "configure"
5210#include "confdefs.h"
5211/* System header to define __stub macros and hopefully few prototypes,
5212 which can conflict with char $ac_func(); below. */
5213#include <assert.h>
5214/* Override any gcc2 internal prototype to avoid an error. */
5215/* We use char because int might match the return type of a gcc2
5216 builtin and then its argument prototype would still apply. */
5217char $ac_func();
5218
5219int main() {
5220
5221/* The GNU C library defines this for functions which it implements
5222 to always fail with ENOSYS. Some functions are actually named
5223 something starting with __ and the normal name is an alias. */
5224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5225choke me
5226#else
5227$ac_func();
5228#endif
5229
5230; return 0; }
5231EOF
5232if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 rm -rf conftest*
5234 eval "ac_cv_func_$ac_func=yes"
5235else
5236 echo "configure: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5238 rm -rf conftest*
5239 eval "ac_cv_func_$ac_func=no"
5240fi
5241rm -f conftest*
5242fi
5243
5244if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5247 cat >> confdefs.h <<EOF
5248#define $ac_tr_func 1
5249EOF
5250 memcpy_found=yes
5251else
5252 echo "$ac_t""no" 1>&6
5253fi
5254done
5255
5256 if test "$memcpy_found" = no; then
5257 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
5258 fi
5259
5260 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5261echo "configure:5262: checking for dlopen in -ldl" >&5
5262ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5263if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5265else
5266 ac_save_LIBS="$LIBS"
5267LIBS="-ldl $LIBS"
5268cat > conftest.$ac_ext <<EOF
5269#line 5270 "configure"
5270#include "confdefs.h"
5271/* Override any gcc2 internal prototype to avoid an error. */
5272/* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5274char dlopen();
5275
5276int main() {
5277dlopen()
5278; return 0; }
5279EOF
5280if { (eval echo configure:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5281 rm -rf conftest*
5282 eval "ac_cv_lib_$ac_lib_var=yes"
5283else
5284 echo "configure: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
5286 rm -rf conftest*
5287 eval "ac_cv_lib_$ac_lib_var=no"
5288fi
5289rm -f conftest*
5290LIBS="$ac_save_LIBS"
5291
5292fi
5293if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5294 echo "$ac_t""yes" 1>&6
5295
5296 cat >> confdefs.h <<\EOF
5297#define HAVE_DLOPEN 1
5298EOF
5299
5300else
5301 echo "$ac_t""no" 1>&6
5302fi
5303
5304
5305 # Some library-finding code we stole from Tcl.
5306 #--------------------------------------------------------------------
5307 # Check for the existence of the -lsocket and -lnsl libraries.
5308 # The order here is important, so that they end up in the right
5309 # order in the command line generated by make. Here are some
5310 # special considerations:
5311 # 1. Use "connect" and "accept" to check for -lsocket, and
5312 # "gethostbyname" to check for -lnsl.
5313 # 2. Use each function name only once: can't redo a check because
5314 # autoconf caches the results of the last check and won't redo it.
5315 # 3. Use -lnsl and -lsocket only if they supply procedures that
5316 # aren't already present in the normal libraries. This is because
5317 # IRIX 5.2 has libraries, but they aren't needed and they're
5318 # bogus: they goof up name resolution if used.
5319 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5320 # To get around this problem, check for both libraries together
5321 # if -lsocket doesn't work by itself.
5322 #--------------------------------------------------------------------
5323
5324 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
5325echo "configure:5326: checking for socket libraries" >&5
5326if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5328else
5329 gcj_cv_lib_sockets=
5330 gcj_checkBoth=0
5331 unset ac_cv_func_connect
5332 echo $ac_n "checking for connect""... $ac_c" 1>&6
5333echo "configure:5334: checking for connect" >&5
5334if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5336else
5337 cat > conftest.$ac_ext <<EOF
5338#line 5339 "configure"
5339#include "confdefs.h"
5340/* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char connect(); below. */
5342#include <assert.h>
5343/* Override any gcc2 internal prototype to avoid an error. */
5344/* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5346char connect();
5347
5348int main() {
5349
5350/* The GNU C library defines this for functions which it implements
5351 to always fail with ENOSYS. Some functions are actually named
5352 something starting with __ and the normal name is an alias. */
5353#if defined (__stub_connect) || defined (__stub___connect)
5354choke me
5355#else
5356connect();
5357#endif
5358
5359; return 0; }
5360EOF
5361if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 rm -rf conftest*
5363 eval "ac_cv_func_connect=yes"
5364else
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5367 rm -rf conftest*
5368 eval "ac_cv_func_connect=no"
5369fi
5370rm -f conftest*
5371fi
5372
5373if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 gcj_checkSocket=0
5376else
5377 echo "$ac_t""no" 1>&6
5378gcj_checkSocket=1
5379fi
5380
5381 if test "$gcj_checkSocket" = 1; then
5382 unset ac_cv_func_connect
5383 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5384echo "configure:5385: checking for main in -lsocket" >&5
5385ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5386if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5388else
5389 ac_save_LIBS="$LIBS"
5390LIBS="-lsocket $LIBS"
5391cat > conftest.$ac_ext <<EOF
5392#line 5393 "configure"
5393#include "confdefs.h"
5394
5395int main() {
5396main()
5397; return 0; }
5398EOF
5399if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5400 rm -rf conftest*
5401 eval "ac_cv_lib_$ac_lib_var=yes"
5402else
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5405 rm -rf conftest*
5406 eval "ac_cv_lib_$ac_lib_var=no"
5407fi
5408rm -f conftest*
5409LIBS="$ac_save_LIBS"
5410
5411fi
5412if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5413 echo "$ac_t""yes" 1>&6
5414 gcj_cv_lib_sockets="-lsocket"
5415else
5416 echo "$ac_t""no" 1>&6
5417gcj_checkBoth=1
5418fi
5419
5420 fi
5421 if test "$gcj_checkBoth" = 1; then
5422 gcj_oldLibs=$LIBS
5423 LIBS="$LIBS -lsocket -lnsl"
5424 unset ac_cv_func_accept
5425 echo $ac_n "checking for accept""... $ac_c" 1>&6
5426echo "configure:5427: checking for accept" >&5
5427if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5429else
5430 cat > conftest.$ac_ext <<EOF
5431#line 5432 "configure"
5432#include "confdefs.h"
5433/* System header to define __stub macros and hopefully few prototypes,
5434 which can conflict with char accept(); below. */
5435#include <assert.h>
5436/* Override any gcc2 internal prototype to avoid an error. */
5437/* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */
5439char accept();
5440
5441int main() {
5442
5443/* The GNU C library defines this for functions which it implements
5444 to always fail with ENOSYS. Some functions are actually named
5445 something starting with __ and the normal name is an alias. */
5446#if defined (__stub_accept) || defined (__stub___accept)
5447choke me
5448#else
5449accept();
5450#endif
5451
5452; return 0; }
5453EOF
5454if { (eval echo configure:5455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5455 rm -rf conftest*
5456 eval "ac_cv_func_accept=yes"
5457else
5458 echo "configure: failed program was:" >&5
5459 cat conftest.$ac_ext >&5
5460 rm -rf conftest*
5461 eval "ac_cv_func_accept=no"
5462fi
5463rm -f conftest*
5464fi
5465
5466if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5467 echo "$ac_t""yes" 1>&6
5468 gcj_checkNsl=0
5469 gcj_cv_lib_sockets="-lsocket -lnsl"
5470else
5471 echo "$ac_t""no" 1>&6
5472fi
5473
5474 unset ac_cv_func_accept
5475 LIBS=$gcj_oldLibs
5476 fi
5477 unset ac_cv_func_gethostbyname
5478 gcj_oldLibs=$LIBS
5479 LIBS="$LIBS $gcj_cv_lib_sockets"
5480 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5481echo "configure:5482: checking for gethostbyname" >&5
5482if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5484else
5485 cat > conftest.$ac_ext <<EOF
5486#line 5487 "configure"
5487#include "confdefs.h"
5488/* System header to define __stub macros and hopefully few prototypes,
5489 which can conflict with char gethostbyname(); below. */
5490#include <assert.h>
5491/* Override any gcc2 internal prototype to avoid an error. */
5492/* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5494char gethostbyname();
5495
5496int main() {
5497
5498/* The GNU C library defines this for functions which it implements
5499 to always fail with ENOSYS. Some functions are actually named
5500 something starting with __ and the normal name is an alias. */
5501#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5502choke me
5503#else
5504gethostbyname();
5505#endif
5506
5507; return 0; }
5508EOF
5509if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5510 rm -rf conftest*
5511 eval "ac_cv_func_gethostbyname=yes"
5512else
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5515 rm -rf conftest*
5516 eval "ac_cv_func_gethostbyname=no"
5517fi
5518rm -f conftest*
5519fi
5520
5521if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 :
5524else
5525 echo "$ac_t""no" 1>&6
5526echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5527echo "configure:5528: checking for main in -lnsl" >&5
5528ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5529if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5530 echo $ac_n "(cached) $ac_c" 1>&6
5531else
5532 ac_save_LIBS="$LIBS"
5533LIBS="-lnsl $LIBS"
5534cat > conftest.$ac_ext <<EOF
5535#line 5536 "configure"
5536#include "confdefs.h"
5537
5538int main() {
5539main()
5540; return 0; }
5541EOF
5542if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5543 rm -rf conftest*
5544 eval "ac_cv_lib_$ac_lib_var=yes"
5545else
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5548 rm -rf conftest*
5549 eval "ac_cv_lib_$ac_lib_var=no"
5550fi
5551rm -f conftest*
5552LIBS="$ac_save_LIBS"
5553
5554fi
5555if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5556 echo "$ac_t""yes" 1>&6
5557 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5558else
5559 echo "$ac_t""no" 1>&6
5560fi
5561
5562fi
5563
5564 unset ac_cv_func_gethostbyname
5565 LIBS=$gcj_oldLIBS
5566
5567fi
5568
5569echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5570 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5571
5572 if test "$with_system_zlib" = yes; then
5573 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5574echo "configure:5575: checking for deflate in -lz" >&5
5575ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5576if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5577 echo $ac_n "(cached) $ac_c" 1>&6
5578else
5579 ac_save_LIBS="$LIBS"
5580LIBS="-lz $LIBS"
5581cat > conftest.$ac_ext <<EOF
5582#line 5583 "configure"
5583#include "confdefs.h"
5584/* Override any gcc2 internal prototype to avoid an error. */
5585/* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5587char deflate();
5588
5589int main() {
5590deflate()
5591; return 0; }
5592EOF
5593if { (eval echo configure:5594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594 rm -rf conftest*
5595 eval "ac_cv_lib_$ac_lib_var=yes"
5596else
5597 echo "configure: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5599 rm -rf conftest*
5600 eval "ac_cv_lib_$ac_lib_var=no"
5601fi
5602rm -f conftest*
5603LIBS="$ac_save_LIBS"
5604
5605fi
5606if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5607 echo "$ac_t""yes" 1>&6
5608 ZLIBSPEC=-lz
5609else
5610 echo "$ac_t""no" 1>&6
5611ZLIBSPEC=
5612fi
5613
5614 fi
5615
5616 # On Solaris, and maybe other architectures, the Boehm collector
5617 # requires -ldl.
5618 if test "$GC" = boehm; then
5619 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5620echo "configure:5621: checking for main in -ldl" >&5
5621ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5622if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5624else
5625 ac_save_LIBS="$LIBS"
5626LIBS="-ldl $LIBS"
5627cat > conftest.$ac_ext <<EOF
5628#line 5629 "configure"
5629#include "confdefs.h"
5630
5631int main() {
5632main()
5633; return 0; }
5634EOF
5635if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5636 rm -rf conftest*
5637 eval "ac_cv_lib_$ac_lib_var=yes"
5638else
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5641 rm -rf conftest*
5642 eval "ac_cv_lib_$ac_lib_var=no"
5643fi
5644rm -f conftest*
5645LIBS="$ac_save_LIBS"
5646
5647fi
5648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5650 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5651else
5652 echo "$ac_t""no" 1>&6
5653fi
5654
5655 fi
5656
5657 if test -z "${with_multisubdir}"; then
5658 builddotdot=.
5659 else
5660
5661 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5662
5663 fi
5664 if test -x "${builddotdot}/../../gcc/gcj"; then
5665 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
5666 GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
5667 else
5668 CANADIAN=yes
5669 NULL_TARGET=yes
5670 GCJ="gcj -B`${PWDCMD-pwd}`/"
5671 fi
5672fi
5673
5674# Create it, so that compile/link tests don't fail
5675test -f libgcj.spec || touch libgcj.spec
5676
5677# We must search the source tree for java.lang, since we still don't
5678# have libgcj.jar nor java/lang/*.class
5679GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5680CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
5681
5682# Since some classes depend on this one, we need its source available
5683# before we can do any GCJ compilation test :-(
5684if test ! -f gnu/classpath/Configuration.java; then
5685 test -d gnu || mkdir gnu
5686 test -d gnu/classpath || mkdir gnu/classpath
5687 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5688 < $srcdir/gnu/classpath/Configuration.java.in \
5689 > gnu/classpath/Configuration.java
5690 # We do not want to redirect the output of the grep below to /dev/null,
5691 # but we add /dev/null to the input list so that grep will print the
5692 # filename of Configuration.java in case it finds any matches.
5693 if grep @ gnu/classpath/Configuration.java /dev/null; then
5694 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5695 fi
5696fi
5697
5698# Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5699set dummy ${ac_tool_prefix}gcj; ac_word=$2
5700echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5701echo "configure:5702: checking for $ac_word" >&5
5702if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5704else
5705 if test -n "$GCJ"; then
5706 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5707else
5708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
5709 ac_dummy="$PATH"
5710 for ac_dir in $ac_dummy; do
5711 test -z "$ac_dir" && ac_dir=.
5712 if test -f $ac_dir/$ac_word -o \
5713 -f $ac_dir/$ac_word$ac_exeext ; then
5714 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5715 break
5716 fi
5717 done
5718 IFS="$ac_save_ifs"
5719fi
5720fi
5721GCJ="$ac_cv_prog_GCJ"
5722if test -n "$GCJ"; then
5723 echo "$ac_t""$GCJ" 1>&6
5724else
5725 echo "$ac_t""no" 1>&6
5726fi
5727
5728
5729if test -z "$ac_cv_prog_GCJ"; then
5730if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "gcj", so it can be a program name with args.
5732set dummy gcj; ac_word=$2
5733echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5734echo "configure:5735: checking for $ac_word" >&5
5735if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5737else
5738 if test -n "$GCJ"; then
5739 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5740else
5741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
5742 ac_dummy="$PATH"
5743 for ac_dir in $ac_dummy; do
5744 test -z "$ac_dir" && ac_dir=.
5745 if test -f $ac_dir/$ac_word -o \
5746 -f $ac_dir/$ac_word$ac_exeext ; then
5747 ac_cv_prog_GCJ="gcj"
5748 break
5749 fi
5750 done
5751 IFS="$ac_save_ifs"
5752 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5753fi
5754fi
5755GCJ="$ac_cv_prog_GCJ"
5756if test -n "$GCJ"; then
5757 echo "$ac_t""$GCJ" 1>&6
5758else
5759 echo "$ac_t""no" 1>&6
5760fi
5761
5762else
5763 GCJ="no"
5764fi
5765fi
5766
5767 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5768
5769
5770
5771LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5772lt_save_CC="$CC"
5773lt_save_CFLAGS="$CFLAGS"
5774AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5775MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5776LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5777AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5778objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5779deplibs_check_method="$deplibs_check_method" \
5780file_magic_cmd="$file_magic_cmd" \
5781${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5782--build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5783|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5784CC="$lt_save_CC"
5785CFLAGS="$lt_save_CFLAGS"
5786
5787# Redirect the config.log output again, so that the ltconfig log is not
5788# clobbered by the next message.
5789exec 5>>./config.log
5790
5791
5792
5793
5794CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5795
5796echo $ac_n "checking size of void *""... $ac_c" 1>&6
5797echo "configure:5798: checking size of void *" >&5
5798if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5800else
5801 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5802 cat > conftest.$ac_ext <<EOF
5803#line 5804 "configure"
5804#include "confdefs.h"
5805#include "confdefs.h"
5806#include <sys/types.h>
5807
5808
5809int main() {
5810switch (0) case 0: case (sizeof (void *) == $ac_size):;
5811; return 0; }
5812EOF
5813if { (eval echo configure:5814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5814 rm -rf conftest*
5815 ac_cv_sizeof_void_p=$ac_size
5816else
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819fi
5820rm -f conftest*
5821 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5822done
5823
5824fi
5825
5826if test x$ac_cv_sizeof_void_p = x ; then
5827 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
5828fi
5829echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5830cat >> confdefs.h <<EOF
5831#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5832EOF
5833
5834
5835
5836ZLIBS=
5837SYS_ZLIBS=
5838ZINCS=
5839
5840if test -z "$ZLIBSPEC"; then
5841 # Use zlib from the GCC tree.
5842 ZINCS='-I$(top_srcdir)/../zlib'
5843 ZLIBS=../zlib/libzgcj_convenience.la
5844else
5845 # System's zlib.
5846 SYS_ZLIBS="$ZLIBSPEC"
5847fi
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858if test "$CANADIAN" = yes; then
5859 CANADIAN_TRUE=
5860 CANADIAN_FALSE='#'
5861else
5862 CANADIAN_TRUE='#'
5863 CANADIAN_FALSE=
5864fi
5865
5866
5867if test "$NULL_TARGET" = yes; then
5868 NULL_TARGET_TRUE=
5869 NULL_TARGET_FALSE='#'
5870else
5871 NULL_TARGET_TRUE='#'
5872 NULL_TARGET_FALSE=
5873fi
5874
5875
5876if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5877 NATIVE_TRUE=
5878 NATIVE_FALSE='#'
5879else
5880 NATIVE_TRUE='#'
5881 NATIVE_FALSE=
5882fi
5883
5884
5885if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5886 NEEDS_DATA_START_TRUE=
5887 NEEDS_DATA_START_FALSE='#'
5888else
5889 NEEDS_DATA_START_TRUE='#'
5890 NEEDS_DATA_START_FALSE=
5891fi
5892
5893
5894if test -n "$with_cross_host" &&
5895 test x"$with_cross_host" != x"no"; then
5896 toolexecdir='$(exec_prefix)/$(target_alias)'
5897 toolexecmainlibdir='$(toolexecdir)/lib'
5898else
5899 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5900 toolexecmainlibdir='$(libdir)'
5901fi
5902toolexeclibdir=$toolexecmainlibdir/`$CC -print-multi-os-directory`
5903
5904
5905
5906
5907# Determine gcj version number.
5908
5909gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5910
5911GCJVERSION=$gcjversion
5912
5913cat >> confdefs.h <<EOF
5914#define GCJVERSION "$GCJVERSION"
5915EOF
5916
5917
5918echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5919echo "configure:5920: checking for g++ -ffloat-store bug" >&5
5920save_CFLAGS="$CFLAGS"
5921CFLAGS="-x c++ -O2 -ffloat-store"
5922cat > conftest.$ac_ext <<EOF
5923#line 5924 "configure"
5924#include "confdefs.h"
5925#include <math.h>
5926int main() {
5927
5928; return 0; }
5929EOF
5930if { (eval echo configure:5931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5931 rm -rf conftest*
5932 echo "$ac_t""no" 1>&6
5933else
5934 echo "configure: failed program was:" >&5
5935 cat conftest.$ac_ext >&5
5936 rm -rf conftest*
5937 cat >> confdefs.h <<\EOF
5938#define __NO_MATH_INLINES 1
5939EOF
5940
5941 echo "$ac_t""yes" 1>&6
5942fi
5943rm -f conftest*
5944CFLAGS="$save_CFLAGS"
5945
5946for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
5947do
5948ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5949echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5950echo "configure:5951: checking for $ac_hdr" >&5
5951if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5952 echo $ac_n "(cached) $ac_c" 1>&6
5953else
5954 cat > conftest.$ac_ext <<EOF
5955#include <sys/types.h>
5956#line 5957 "configure"
5957#include "confdefs.h"
5958#include <$ac_hdr>
5959EOF
5960ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5961{ (eval echo configure:5962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5962ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5963if test -z "$ac_err"; then
5964 rm -rf conftest*
5965 eval "ac_cv_header_$ac_safe=yes"
5966else
5967 echo "$ac_err" >&5
5968 echo "configure: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5970 rm -rf conftest*
5971 eval "ac_cv_header_$ac_safe=no"
5972fi
5973rm -f conftest*
5974fi
5975if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5976 echo "$ac_t""yes" 1>&6
5977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5978 cat >> confdefs.h <<EOF
5979#define $ac_tr_hdr 1
5980EOF
5981
5982else
5983 echo "$ac_t""no" 1>&6
5984fi
5985done
5986
5987for ac_hdr in dirent.h
5988do
5989ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5990echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5991echo "configure:5992: checking for $ac_hdr" >&5
5992if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5993 echo $ac_n "(cached) $ac_c" 1>&6
5994else
5995 cat > conftest.$ac_ext <<EOF
5996#include <sys/types.h>
5997#line 5998 "configure"
5998#include "confdefs.h"
5999#include <$ac_hdr>
6000EOF
6001ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6002{ (eval echo configure:6003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6003ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6004if test -z "$ac_err"; then
6005 rm -rf conftest*
6006 eval "ac_cv_header_$ac_safe=yes"
6007else
6008 echo "$ac_err" >&5
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6011 rm -rf conftest*
6012 eval "ac_cv_header_$ac_safe=no"
6013fi
6014rm -f conftest*
6015fi
6016if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6019 cat >> confdefs.h <<EOF
6020#define $ac_tr_hdr 1
6021EOF
6022
6023else
6024 echo "$ac_t""no" 1>&6
6025fi
6026done
6027
6028for ac_hdr in inttypes.h
6029do
6030ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6031echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6032echo "configure:6033: checking for $ac_hdr" >&5
6033if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6035else
6036 cat > conftest.$ac_ext <<EOF
6037#include <sys/types.h>
6038#line 6039 "configure"
6039#include "confdefs.h"
6040#include <$ac_hdr>
6041EOF
6042ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6043{ (eval echo configure:6044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6044ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6045if test -z "$ac_err"; then
6046 rm -rf conftest*
6047 eval "ac_cv_header_$ac_safe=yes"
6048else
6049 echo "$ac_err" >&5
6050 echo "configure: failed program was:" >&5
6051 cat conftest.$ac_ext >&5
6052 rm -rf conftest*
6053 eval "ac_cv_header_$ac_safe=no"
6054fi
6055rm -f conftest*
6056fi
6057if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6058 echo "$ac_t""yes" 1>&6
6059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6060 cat >> confdefs.h <<EOF
6061#define $ac_tr_hdr 1
6062EOF
6063
6064 cat >> confdefs.h <<\EOF
6065#define HAVE_INTTYPES_H 1
6066EOF
6067
6068 cat >> confdefs.h <<\EOF
6069#define JV_HAVE_INTTYPES_H 1
6070EOF
6071
6072
6073else
6074 echo "$ac_t""no" 1>&6
6075fi
6076done
6077
6078echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6079echo "configure:6080: checking for sys/wait.h that is POSIX.1 compatible" >&5
6080if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6082else
6083 cat > conftest.$ac_ext <<EOF
6084#line 6085 "configure"
6085#include "confdefs.h"
6086#include <sys/types.h>
6087#include <sys/wait.h>
6088#ifndef WEXITSTATUS
6089#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6090#endif
6091#ifndef WIFEXITED
6092#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6093#endif
6094int main() {
6095int s;
6096wait (&s);
6097s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6098; return 0; }
6099EOF
6100if { (eval echo configure:6101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6101 rm -rf conftest*
6102 ac_cv_header_sys_wait_h=yes
6103else
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 rm -rf conftest*
6107 ac_cv_header_sys_wait_h=no
6108fi
6109rm -f conftest*
6110fi
6111
6112echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6113if test $ac_cv_header_sys_wait_h = yes; then
6114 cat >> confdefs.h <<\EOF
6115#define HAVE_SYS_WAIT_H 1
6116EOF
6117
6118fi
6119
6120
6121echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6122echo "configure:6123: checking for ANSI C header files" >&5
6123if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6125else
6126 cat > conftest.$ac_ext <<EOF
6127#include <sys/types.h>
6128#line 6129 "configure"
6129#include "confdefs.h"
6130#include <stdlib.h>
6131#include <stdarg.h>
6132#include <string.h>
6133#include <float.h>
6134EOF
6135ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6136{ (eval echo configure:6137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6137ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6138if test -z "$ac_err"; then
6139 rm -rf conftest*
6140 ac_cv_header_stdc=yes
6141else
6142 echo "$ac_err" >&5
6143 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6145 rm -rf conftest*
6146 ac_cv_header_stdc=no
6147fi
6148rm -f conftest*
6149
6150if test $ac_cv_header_stdc = yes; then
6151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6152cat > conftest.$ac_ext <<EOF
6153#line 6154 "configure"
6154#include "confdefs.h"
6155#include <string.h>
6156EOF
6157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6158 egrep "memchr" >/dev/null 2>&1; then
6159 :
6160else
6161 rm -rf conftest*
6162 ac_cv_header_stdc=no
6163fi
6164rm -f conftest*
6165
6166fi
6167
6168if test $ac_cv_header_stdc = yes; then
6169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6170cat > conftest.$ac_ext <<EOF
6171#line 6172 "configure"
6172#include "confdefs.h"
6173#include <stdlib.h>
6174EOF
6175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6176 egrep "free" >/dev/null 2>&1; then
6177 :
6178else
6179 rm -rf conftest*
6180 ac_cv_header_stdc=no
6181fi
6182rm -f conftest*
6183
6184fi
6185
6186if test $ac_cv_header_stdc = yes; then
6187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6188if test "$cross_compiling" = yes; then
6189 :
6190else
6191 cat > conftest.$ac_ext <<EOF
6192#line 6193 "configure"
6193#include "confdefs.h"
6194#include <ctype.h>
6195#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6196#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6197#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6198int main () { int i; for (i = 0; i < 256; i++)
6199if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6200exit (0); }
6201
6202EOF
6203if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6204then
6205 :
6206else
6207 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6209 rm -fr conftest*
6210 ac_cv_header_stdc=no
6211fi
6212rm -fr conftest*
6213fi
6214
6215fi
6216fi
6217
6218echo "$ac_t""$ac_cv_header_stdc" 1>&6
6219if test $ac_cv_header_stdc = yes; then
6220 cat >> confdefs.h <<\EOF
6221#define STDC_HEADERS 1
6222EOF
6223
6224fi
6225
6226echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6227echo "configure:6228: checking for ssize_t" >&5
6228if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6229 echo $ac_n "(cached) $ac_c" 1>&6
6230else
6231 cat > conftest.$ac_ext <<EOF
6232#line 6233 "configure"
6233#include "confdefs.h"
6234#include <sys/types.h>
6235#if STDC_HEADERS
6236#include <stdlib.h>
6237#include <stddef.h>
6238#endif
6239EOF
6240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6242 rm -rf conftest*
6243 ac_cv_type_ssize_t=yes
6244else
6245 rm -rf conftest*
6246 ac_cv_type_ssize_t=no
6247fi
6248rm -f conftest*
6249
6250fi
6251echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6252if test $ac_cv_type_ssize_t = no; then
6253 cat >> confdefs.h <<\EOF
6254#define ssize_t int
6255EOF
6256
6257fi
6258
6259
6260echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
6261echo "configure:6262: checking for in_addr_t" >&5
6262cat > conftest.$ac_ext <<EOF
6263#line 6264 "configure"
6264#include "confdefs.h"
6265#include <sys/types.h>
6266#if STDC_HEADERS
6267#include <stdlib.h>
6268#include <stddef.h>
6269#endif
6270#if HAVE_NETINET_IN_H
6271#include <netinet/in.h>
6272#endif
6273int main() {
6274in_addr_t foo;
6275; return 0; }
6276EOF
6277if { (eval echo configure:6278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6278 rm -rf conftest*
6279 cat >> confdefs.h <<\EOF
6280#define HAVE_IN_ADDR_T 1
6281EOF
6282
6283 echo "$ac_t""yes" 1>&6
6284else
6285 echo "configure: failed program was:" >&5
6286 cat conftest.$ac_ext >&5
6287 rm -rf conftest*
6288 echo "$ac_t""no" 1>&6
6289fi
6290rm -f conftest*
6291
6292echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
6293echo "configure:6294: checking whether struct ip_mreq is in netinet/in.h" >&5
6294cat > conftest.$ac_ext <<EOF
6295#line 6296 "configure"
6296#include "confdefs.h"
6297#include <netinet/in.h>
6298int main() {
6299struct ip_mreq mreq;
6300; return 0; }
6301EOF
6302if { (eval echo configure:6303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6303 rm -rf conftest*
6304 cat >> confdefs.h <<\EOF
6305#define HAVE_STRUCT_IP_MREQ 1
6306EOF
6307
6308 echo "$ac_t""yes" 1>&6
6309else
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6312 rm -rf conftest*
6313 echo "$ac_t""no" 1>&6
6314fi
6315rm -f conftest*
6316
6317echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
6318echo "configure:6319: checking whether struct ipv6_mreq is in netinet/in.h" >&5
6319cat > conftest.$ac_ext <<EOF
6320#line 6321 "configure"
6321#include "confdefs.h"
6322#include <netinet/in.h>
6323int main() {
6324struct ipv6_mreq mreq6;
6325; return 0; }
6326EOF
6327if { (eval echo configure:6328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6328 rm -rf conftest*
6329 cat >> confdefs.h <<\EOF
6330#define HAVE_STRUCT_IPV6_MREQ 1
6331EOF
6332
6333 echo "$ac_t""yes" 1>&6
6334else
6335 echo "configure: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6337 rm -rf conftest*
6338 echo "$ac_t""no" 1>&6
6339fi
6340rm -f conftest*
6341
6342echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
6343echo "configure:6344: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
6344cat > conftest.$ac_ext <<EOF
6345#line 6346 "configure"
6346#include "confdefs.h"
6347#include <netinet/in.h>
6348int main() {
6349struct sockaddr_in6 addr6;
6350; return 0; }
6351EOF
6352if { (eval echo configure:6353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6353 rm -rf conftest*
6354 cat >> confdefs.h <<\EOF
6355#define HAVE_INET6 1
6356EOF
6357
6358 echo "$ac_t""yes" 1>&6
6359else
6360 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 rm -rf conftest*
6363 echo "$ac_t""no" 1>&6
6364fi
6365rm -f conftest*
6366
6367echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
6368echo "configure:6369: checking for socklen_t in sys/socket.h" >&5
6369cat > conftest.$ac_ext <<EOF
6370#line 6371 "configure"
6371#include "confdefs.h"
6372#define _POSIX_PII_SOCKET
6373#include <sys/types.h>
6374#include <sys/socket.h>
6375int main() {
6376socklen_t x = 5;
6377; return 0; }
6378EOF
6379if { (eval echo configure:6380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6380 rm -rf conftest*
6381 cat >> confdefs.h <<\EOF
6382#define HAVE_SOCKLEN_T 1
6383EOF
6384
6385 echo "$ac_t""yes" 1>&6
6386else
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6389 rm -rf conftest*
6390 echo "$ac_t""no" 1>&6
6391fi
6392rm -f conftest*
6393
6394echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6395echo "configure:6396: checking for tm_gmtoff in struct tm" >&5
6396cat > conftest.$ac_ext <<EOF
6397#line 6398 "configure"
6398#include "confdefs.h"
6399#include <time.h>
6400int main() {
6401struct tm tim; tim.tm_gmtoff = 0;
6402; return 0; }
6403EOF
6404if { (eval echo configure:6405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6405 rm -rf conftest*
6406 cat >> confdefs.h <<\EOF
6407#define STRUCT_TM_HAS_GMTOFF 1
6408EOF
6409
6410 echo "$ac_t""yes" 1>&6
6411else
6412 echo "configure: failed program was:" >&5
6413 cat conftest.$ac_ext >&5
6414 rm -rf conftest*
6415 echo "$ac_t""no" 1>&6
6416 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
6417echo "configure:6418: checking for global timezone variable" >&5
6418 cat > conftest.$ac_ext <<EOF
6419#line 6420 "configure"
6420#include "confdefs.h"
6421#include <time.h>
6422int main() {
6423void i(){long z2 = 2*timezone;}
6424; return 0; }
6425EOF
6426if { (eval echo configure:6427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6427 rm -rf conftest*
6428 cat >> confdefs.h <<\EOF
6429#define HAVE_TIMEZONE 1
6430EOF
6431
6432 echo "$ac_t""yes" 1>&6
6433else
6434 echo "configure: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 rm -rf conftest*
6437 echo "$ac_t""no" 1>&6
6438 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
6439echo "configure:6440: checking for global _timezone variable" >&5
6440 cat > conftest.$ac_ext <<EOF
6441#line 6442 "configure"
6442#include "confdefs.h"
6443#include <time.h>
6444int main() {
6445long z2 = _timezone;
6446; return 0; }
6447EOF
6448if { (eval echo configure:6449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6449 rm -rf conftest*
6450 cat >> confdefs.h <<\EOF
6451#define HAVE_UNDERSCORE_TIMEZONE 1
6452EOF
6453
6454 echo "$ac_t""yes" 1>&6
6455else
6456 echo "configure: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6458 rm -rf conftest*
6459 echo "$ac_t""no" 1>&6
6460fi
6461rm -f conftest*
6462fi
6463rm -f conftest*
6464fi
6465rm -f conftest*
6466
6467# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6468# for constant arguments. Useless!
6469echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6470echo "configure:6471: checking for working alloca.h" >&5
6471if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6473else
6474 cat > conftest.$ac_ext <<EOF
6475#line 6476 "configure"
6476#include "confdefs.h"
6477#include <alloca.h>
6478int main() {
6479char *p = alloca(2 * sizeof(int));
6480; return 0; }
6481EOF
6482if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6483 rm -rf conftest*
6484 ac_cv_header_alloca_h=yes
6485else
6486 echo "configure: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6488 rm -rf conftest*
6489 ac_cv_header_alloca_h=no
6490fi
6491rm -f conftest*
6492fi
6493
6494echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6495if test $ac_cv_header_alloca_h = yes; then
6496 cat >> confdefs.h <<\EOF
6497#define HAVE_ALLOCA_H 1
6498EOF
6499
6500fi
6501
6502echo $ac_n "checking for alloca""... $ac_c" 1>&6
6503echo "configure:6504: checking for alloca" >&5
6504if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6506else
6507 cat > conftest.$ac_ext <<EOF
6508#line 6509 "configure"
6509#include "confdefs.h"
6510
6511#ifdef __GNUC__
6512# define alloca __builtin_alloca
6513#else
6514# ifdef _MSC_VER
6515# include <malloc.h>
6516# define alloca _alloca
6517# else
6518# if HAVE_ALLOCA_H
6519# include <alloca.h>
6520# else
6521# ifdef _AIX
6522 #pragma alloca
6523# else
6524# ifndef alloca /* predefined by HP cc +Olibcalls */
6525char *alloca ();
6526# endif
6527# endif
6528# endif
6529# endif
6530#endif
6531
6532int main() {
6533char *p = (char *) alloca(1);
6534; return 0; }
6535EOF
6536if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6537 rm -rf conftest*
6538 ac_cv_func_alloca_works=yes
6539else
6540 echo "configure: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6542 rm -rf conftest*
6543 ac_cv_func_alloca_works=no
6544fi
6545rm -f conftest*
6546fi
6547
6548echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6549if test $ac_cv_func_alloca_works = yes; then
6550 cat >> confdefs.h <<\EOF
6551#define HAVE_ALLOCA 1
6552EOF
6553
6554fi
6555
6556if test $ac_cv_func_alloca_works = no; then
6557 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6558 # that cause trouble. Some versions do not even contain alloca or
6559 # contain a buggy version. If you still want to use their alloca,
6560 # use ar to extract alloca.o from them instead of compiling alloca.c.
6561 ALLOCA=alloca.${ac_objext}
6562 cat >> confdefs.h <<\EOF
6563#define C_ALLOCA 1
6564EOF
6565
6566
6567echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6568echo "configure:6569: checking whether alloca needs Cray hooks" >&5
6569if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6571else
6572 cat > conftest.$ac_ext <<EOF
6573#line 6574 "configure"
6574#include "confdefs.h"
6575#if defined(CRAY) && ! defined(CRAY2)
6576webecray
6577#else
6578wenotbecray
6579#endif
6580
6581EOF
6582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583 egrep "webecray" >/dev/null 2>&1; then
6584 rm -rf conftest*
6585 ac_cv_os_cray=yes
6586else
6587 rm -rf conftest*
6588 ac_cv_os_cray=no
6589fi
6590rm -f conftest*
6591
6592fi
6593
6594echo "$ac_t""$ac_cv_os_cray" 1>&6
6595if test $ac_cv_os_cray = yes; then
6596for ac_func in _getb67 GETB67 getb67; do
6597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6598echo "configure:6599: checking for $ac_func" >&5
6599if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6601else
6602 cat > conftest.$ac_ext <<EOF
6603#line 6604 "configure"
6604#include "confdefs.h"
6605/* System header to define __stub macros and hopefully few prototypes,
6606 which can conflict with char $ac_func(); below. */
6607#include <assert.h>
6608/* Override any gcc2 internal prototype to avoid an error. */
6609/* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */
6611char $ac_func();
6612
6613int main() {
6614
6615/* The GNU C library defines this for functions which it implements
6616 to always fail with ENOSYS. Some functions are actually named
6617 something starting with __ and the normal name is an alias. */
6618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6619choke me
6620#else
6621$ac_func();
6622#endif
6623
6624; return 0; }
6625EOF
6626if { (eval echo configure:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6627 rm -rf conftest*
6628 eval "ac_cv_func_$ac_func=yes"
6629else
6630 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6632 rm -rf conftest*
6633 eval "ac_cv_func_$ac_func=no"
6634fi
6635rm -f conftest*
6636fi
6637
6638if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6639 echo "$ac_t""yes" 1>&6
6640 cat >> confdefs.h <<EOF
6641#define CRAY_STACKSEG_END $ac_func
6642EOF
6643
6644 break
6645else
6646 echo "$ac_t""no" 1>&6
6647fi
6648
6649done
6650fi
6651
6652echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6653echo "configure:6654: checking stack direction for C alloca" >&5
6654if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6655 echo $ac_n "(cached) $ac_c" 1>&6
6656else
6657 if test "$cross_compiling" = yes; then
6658 ac_cv_c_stack_direction=0
6659else
6660 cat > conftest.$ac_ext <<EOF
6661#line 6662 "configure"
6662#include "confdefs.h"
6663find_stack_direction ()
6664{
6665 static char *addr = 0;
6666 auto char dummy;
6667 if (addr == 0)
6668 {
6669 addr = &dummy;
6670 return find_stack_direction ();
6671 }
6672 else
6673 return (&dummy > addr) ? 1 : -1;
6674}
6675main ()
6676{
6677 exit (find_stack_direction() < 0);
6678}
6679EOF
6680if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6681then
6682 ac_cv_c_stack_direction=1
6683else
6684 echo "configure: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6686 rm -fr conftest*
6687 ac_cv_c_stack_direction=-1
6688fi
6689rm -fr conftest*
6690fi
6691
6692fi
6693
6694echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6695cat >> confdefs.h <<EOF
6696#define STACK_DIRECTION $ac_cv_c_stack_direction
6697EOF
6698
6699fi
6700
6701
6702for ac_prog in perl
6703do
6704# Extract the first word of "$ac_prog", so it can be a program name with args.
6705set dummy $ac_prog; ac_word=$2
6706echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6707echo "configure:6708: checking for $ac_word" >&5
6708if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6710else
6711 if test -n "$PERL"; then
6712 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6713else
6714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
6715 ac_dummy="$PATH"
6716 for ac_dir in $ac_dummy; do
6717 test -z "$ac_dir" && ac_dir=.
6718 if test -f $ac_dir/$ac_word -o \
6719 -f $ac_dir/$ac_word$ac_exeext ; then
6720 ac_cv_prog_PERL="$ac_prog"
6721 break
6722 fi
6723 done
6724 IFS="$ac_save_ifs"
6725fi
6726fi
6727PERL="$ac_cv_prog_PERL"
6728if test -n "$PERL"; then
6729 echo "$ac_t""$PERL" 1>&6
6730else
6731 echo "$ac_t""no" 1>&6
6732fi
6733
6734test -n "$PERL" && break
6735done
6736test -n "$PERL" || PERL="false"
6737
6738
6739SYSDEP_SOURCES=
6740
6741case "${host}" in
6742 i?86-*-linux*)
6743 SIGNAL_HANDLER=include/i386-signal.h
6744 ;;
6745 sparc*-sun-solaris*)
6746 SIGNAL_HANDLER=include/sparc-signal.h
6747 ;;
6748# ia64-*)
6749# SYSDEP_SOURCES=sysdep/ia64.c
6750# test -d sysdep || mkdir sysdep
6751# ;;
6752 ia64-*-linux*)
6753 SIGNAL_HANDLER=include/dwarf2-signal.h
6754 ;;
6755 powerpc-*-linux*)
6756 SIGNAL_HANDLER=include/powerpc-signal.h
6757 ;;
6758 alpha*-*-linux*)
6759 SIGNAL_HANDLER=include/dwarf2-signal.h
6760 ;;
6761 s390*-*-linux*)
6762 SIGNAL_HANDLER=include/s390-signal.h
6763 ;;
6764 x86_64*-*-linux*)
6765 SIGNAL_HANDLER=include/x86_64-signal.h
6766 ;;
6767 sparc*-*-linux*)
6768 SIGNAL_HANDLER=include/dwarf2-signal.h
6769 ;;
6770 *mingw*)
6771 SIGNAL_HANDLER=include/win32-signal.h
6772 ;;
6773 *)
6774 SIGNAL_HANDLER=include/default-signal.h
6775 ;;
6776esac
6777
6778# If we're using sjlj exceptions, forget what we just learned.
6779if test "$enable_sjlj_exceptions" = yes; then
6780 SIGNAL_HANDLER=include/default-signal.h
6781fi
6782
6783# Define here any compiler flags that you need in order to make backtrace() work.
6784BACKTRACESPEC=
6785case "${host}" in
6786 x86_64*-*-linux*)
6787 BACKTRACESPEC=-fno-omit-frame-pointer
6788 ;;
6789esac
6790
6791
6792
6793
6794
6795
6796if test "${multilib}" = "yes"; then
6797 multilib_arg="--enable-multilib"
6798else
6799 multilib_arg=
6800fi
6801
6802# If we find X, set shell vars x_includes and x_libraries to the
6803# paths, otherwise set no_x=yes.
6804# Uses ac_ vars as temps to allow command line to override cache and checks.
6805# --without-x overrides everything else, but does not touch the cache.
6806echo $ac_n "checking for X""... $ac_c" 1>&6
6807echo "configure:6808: checking for X" >&5
6808
6809# Check whether --with-x or --without-x was given.
6810if test "${with_x+set}" = set; then
6811 withval="$with_x"
6812 :
6813fi
6814
6815# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6816if test "x$with_x" = xno; then
6817 # The user explicitly disabled X.
6818 have_x=disabled
6819else
6820 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6821 # Both variables are already set.
6822 have_x=yes
6823 else
6824if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6826else
6827 # One or both of the vars are not set, and there is no cached value.
6828ac_x_includes=NO ac_x_libraries=NO
6829rm -fr conftestdir
6830if mkdir conftestdir; then
6831 cd conftestdir
6832 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6833 cat > Imakefile <<'EOF'
6834acfindx:
6835 @sh -c 'echo \'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${DESTDIR}${USRLIBDIR}"; ac_im_libdir="${DESTDIR}${LIBDIR}"\''
6836EOF
6837 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6839 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6840 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6841 for ac_extension in a so sl; do
6842 if test ! -f $ac_im_usrlibdir/${ac_cv_libpre}X11.$ac_extension &&
6843 test -f $ac_im_libdir/${ac_cv_libpre}X11.$ac_extension; then
6844 ac_im_usrlibdir=$ac_im_libdir; break
6845 fi
6846 done
6847 # Screen out bogus values from the imake configuration. They are
6848 # bogus both because they are the default anyway, and because
6849 # using them would break gcc on systems where it needs fixed includes.
6850 case "$ac_im_incroot" in
6851 /usr/include) ;;
6852 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6853 esac
6854 case "$ac_im_usrlibdir" in
6855 /usr/lib | /lib) ;;
6856 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6857 esac
6858 fi
6859 cd ..
6860 rm -fr conftestdir
6861fi
6862
6863if test "$ac_x_includes" = NO; then
6864 # Guess where to find include files, by looking for this one X11 .h file.
6865 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6866
6867 # First, try using that file with no special directory specified.
6868cat > conftest.$ac_ext <<EOF
6869#include <sys/types.h>
6870#line 6871 "configure"
6871#include "confdefs.h"
6872#include <$x_direct_test_include>
6873EOF
6874ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6875{ (eval echo configure:6876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6876ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6877if test -z "$ac_err"; then
6878 rm -rf conftest*
6879 # We can compile using X headers with no special include directory.
6880ac_x_includes=
6881else
6882 echo "$ac_err" >&5
6883 echo "configure: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6885 rm -rf conftest*
6886 # Look for the header file in a standard set of common directories.
6887# Check X11 before X11Rn because it is often a symlink to the current release.
6888 for ac_dir in \
6889 /usr/X11/include \
6890 /usr/X11R6/include \
6891 /usr/X11R5/include \
6892 /usr/X11R4/include \
6893 \
6894 /usr/include/X11 \
6895 /usr/include/X11R6 \
6896 /usr/include/X11R5 \
6897 /usr/include/X11R4 \
6898 \
6899 /usr/local/X11/include \
6900 /usr/local/X11R6/include \
6901 /usr/local/X11R5/include \
6902 /usr/local/X11R4/include \
6903 \
6904 /usr/local/include/X11 \
6905 /usr/local/include/X11R6 \
6906 /usr/local/include/X11R5 \
6907 /usr/local/include/X11R4 \
6908 \
6909 /usr/X386/include \
6910 /usr/x386/include \
6911 /usr/XFree86/include/X11 \
6912 \
6913 /usr/include \
6914 /usr/local/include \
6915 /usr/unsupported/include \
6916 /usr/athena/include \
6917 /usr/local/x11r5/include \
6918 /usr/lpp/Xamples/include \
6919 \
6920 /usr/openwin/include \
6921 /usr/openwin/share/include \
6922 ; \
6923 do
6924 if test -r "$ac_dir/$x_direct_test_include"; then
6925 ac_x_includes=$ac_dir
6926 break
6927 fi
6928 done
6929fi
6930rm -f conftest*
6931fi # $ac_x_includes = NO
6932
6933if test "$ac_x_libraries" = NO; then
6934 # Check for the libraries.
6935
6936 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6937 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6938
6939 # See if we find them without any special options.
6940 # Don't add to $LIBS permanently.
6941 ac_save_LIBS="$LIBS"
6942 LIBS="-l$x_direct_test_library $LIBS"
6943cat > conftest.$ac_ext <<EOF
6944#line 6945 "configure"
6945#include "confdefs.h"
6946
6947int main() {
6948${x_direct_test_function}()
6949; return 0; }
6950EOF
6951if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6952 rm -rf conftest*
6953 LIBS="$ac_save_LIBS"
6954# We can link X programs with no special library path.
6955ac_x_libraries=
6956else
6957 echo "configure: failed program was:" >&5
6958 cat conftest.$ac_ext >&5
6959 rm -rf conftest*
6960 LIBS="$ac_save_LIBS"
6961# First see if replacing the include by lib works.
6962# Check X11 before X11Rn because it is often a symlink to the current release.
6963for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6964 /usr/X11/lib \
6965 /usr/X11R6/lib \
6966 /usr/X11R5/lib \
6967 /usr/X11R4/lib \
6968 \
6969 /usr/lib/X11 \
6970 /usr/lib/X11R6 \
6971 /usr/lib/X11R5 \
6972 /usr/lib/X11R4 \
6973 \
6974 /usr/local/X11/lib \
6975 /usr/local/X11R6/lib \
6976 /usr/local/X11R5/lib \
6977 /usr/local/X11R4/lib \
6978 \
6979 /usr/local/lib/X11 \
6980 /usr/local/lib/X11R6 \
6981 /usr/local/lib/X11R5 \
6982 /usr/local/lib/X11R4 \
6983 \
6984 /usr/X386/lib \
6985 /usr/x386/lib \
6986 /usr/XFree86/lib/X11 \
6987 \
6988 /usr/lib \
6989 /usr/local/lib \
6990 /usr/unsupported/lib \
6991 /usr/athena/lib \
6992 /usr/local/x11r5/lib \
6993 /usr/lpp/Xamples/lib \
6994 /lib/usr/lib/X11 \
6995 \
6996 /usr/openwin/lib \
6997 /usr/openwin/share/lib \
6998 ; \
6999do
7000 for ac_extension in a so sl; do
7001 if test -r $ac_dir/${ac_cv_libpre}${x_direct_test_library}.$ac_extension; then
7002 ac_x_libraries=$ac_dir
7003 break 2
7004 fi
7005 done
7006done
7007fi
7008rm -f conftest*
7009fi # $ac_x_libraries = NO
7010
7011if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7012 # Didn't find X anywhere. Cache the known absence of X.
7013 ac_cv_have_x="have_x=no"
7014else
7015 # Record where we found X for the cache.
7016 ac_cv_have_x="have_x=yes \
7017 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7018fi
7019fi
7020 fi
7021 eval "$ac_cv_have_x"
7022fi # $with_x != no
7023
7024if test "$have_x" != yes; then
7025 echo "$ac_t""$have_x" 1>&6
7026 no_x=yes
7027else
7028 # If each of the values was on the command line, it overrides each guess.
7029 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7030 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7031 # Update the cache value to reflect the command line values.
7032 ac_cv_have_x="have_x=yes \
7033 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7034 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7035fi
7036
7037if test "$no_x" = yes; then
7038 # Not all programs may use this symbol, but it does not hurt to define it.
7039 cat >> confdefs.h <<\EOF
7040#define X_DISPLAY_MISSING 1
7041EOF
7042
7043 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7044else
7045 if test -n "$x_includes"; then
7046 X_CFLAGS="$X_CFLAGS -I$x_includes"
7047 fi
7048 test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes"
7049
7050 # It would also be nice to do this for all -L options, not just this one.
7051 if test -n "$x_libraries"; then
7052 X_LIBS="$X_LIBS -L$x_libraries"
7053 # For Solaris; some versions of Sun CC require a space after -R and
7054 # others require no space. Words are not sufficient . . . .
7055 case "`(uname -sr) 2>/dev/null`" in
7056 "SunOS 5"*)
7057 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7058echo "configure:7059: checking whether -R must be followed by a space" >&5
7059 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7060 cat > conftest.$ac_ext <<EOF
7061#line 7062 "configure"
7062#include "confdefs.h"
7063
7064int main() {
7065
7066; return 0; }
7067EOF
7068if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7069 rm -rf conftest*
7070 ac_R_nospace=yes
7071else
7072 echo "configure: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7074 rm -rf conftest*
7075 ac_R_nospace=no
7076fi
7077rm -f conftest*
7078 if test $ac_R_nospace = yes; then
7079 echo "$ac_t""no" 1>&6
7080 X_LIBS="$X_LIBS -R$x_libraries"
7081 else
7082 LIBS="$ac_xsave_LIBS -R $x_libraries"
7083 cat > conftest.$ac_ext <<EOF
7084#line 7085 "configure"
7085#include "confdefs.h"
7086
7087int main() {
7088
7089; return 0; }
7090EOF
7091if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7092 rm -rf conftest*
7093 ac_R_space=yes
7094else
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 rm -rf conftest*
7098 ac_R_space=no
7099fi
7100rm -f conftest*
7101 if test $ac_R_space = yes; then
7102 echo "$ac_t""yes" 1>&6
7103 X_LIBS="$X_LIBS -R $x_libraries"
7104 else
7105 echo "$ac_t""neither works" 1>&6
7106 fi
7107 fi
7108 LIBS="$ac_xsave_LIBS"
7109 esac
7110 fi
7111
7112 # Check for system-dependent libraries X programs must link with.
7113 # Do this before checking for the system-independent R6 libraries
7114 # (-lICE), since we may need -lsocket or whatever for X linking.
7115
7116 if test "$ISC" = yes; then
7117 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7118 else
7119 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7120 # libraries were built with DECnet support. And karl@cs.umb.edu says
7121 # the Alpha needs dnet_stub (dnet does not exist).
7122 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7123echo "configure:7124: checking for dnet_ntoa in -ldnet" >&5
7124ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7125if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7127else
7128 ac_save_LIBS="$LIBS"
7129LIBS="-ldnet $LIBS"
7130cat > conftest.$ac_ext <<EOF
7131#line 7132 "configure"
7132#include "confdefs.h"
7133/* Override any gcc2 internal prototype to avoid an error. */
7134/* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7136char dnet_ntoa();
7137
7138int main() {
7139dnet_ntoa()
7140; return 0; }
7141EOF
7142if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7143 rm -rf conftest*
7144 eval "ac_cv_lib_$ac_lib_var=yes"
7145else
7146 echo "configure: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 rm -rf conftest*
7149 eval "ac_cv_lib_$ac_lib_var=no"
7150fi
7151rm -f conftest*
7152LIBS="$ac_save_LIBS"
7153
7154fi
7155if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7156 echo "$ac_t""yes" 1>&6
7157 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7158else
7159 echo "$ac_t""no" 1>&6
7160fi
7161
7162 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7163 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7164echo "configure:7165: checking for dnet_ntoa in -ldnet_stub" >&5
7165ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7166if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7167 echo $ac_n "(cached) $ac_c" 1>&6
7168else
7169 ac_save_LIBS="$LIBS"
7170LIBS="-ldnet_stub $LIBS"
7171cat > conftest.$ac_ext <<EOF
7172#line 7173 "configure"
7173#include "confdefs.h"
7174/* Override any gcc2 internal prototype to avoid an error. */
7175/* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7177char dnet_ntoa();
7178
7179int main() {
7180dnet_ntoa()
7181; return 0; }
7182EOF
7183if { (eval echo configure:7184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7184 rm -rf conftest*
7185 eval "ac_cv_lib_$ac_lib_var=yes"
7186else
7187 echo "configure: failed program was:" >&5
7188 cat conftest.$ac_ext >&5
7189 rm -rf conftest*
7190 eval "ac_cv_lib_$ac_lib_var=no"
7191fi
7192rm -f conftest*
7193LIBS="$ac_save_LIBS"
7194
7195fi
7196if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7197 echo "$ac_t""yes" 1>&6
7198 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7199else
7200 echo "$ac_t""no" 1>&6
7201fi
7202
7203 fi
7204
7205 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7206 # to get the SysV transport functions.
7207 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7208 # needs -lnsl.
7209 # The nsl library prevents programs from opening the X display
7210 # on Irix 5.2, according to dickey@clark.net.
7211 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7212echo "configure:7213: checking for gethostbyname" >&5
7213if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7214 echo $ac_n "(cached) $ac_c" 1>&6
7215else
7216 cat > conftest.$ac_ext <<EOF
7217#line 7218 "configure"
7218#include "confdefs.h"
7219/* System header to define __stub macros and hopefully few prototypes,
7220 which can conflict with char gethostbyname(); below. */
7221#include <assert.h>
7222/* Override any gcc2 internal prototype to avoid an error. */
7223/* We use char because int might match the return type of a gcc2
7224 builtin and then its argument prototype would still apply. */
7225char gethostbyname();
7226
7227int main() {
7228
7229/* The GNU C library defines this for functions which it implements
7230 to always fail with ENOSYS. Some functions are actually named
7231 something starting with __ and the normal name is an alias. */
7232#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7233choke me
7234#else
7235gethostbyname();
7236#endif
7237
7238; return 0; }
7239EOF
7240if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7241 rm -rf conftest*
7242 eval "ac_cv_func_gethostbyname=yes"
7243else
7244 echo "configure: failed program was:" >&5
7245 cat conftest.$ac_ext >&5
7246 rm -rf conftest*
7247 eval "ac_cv_func_gethostbyname=no"
7248fi
7249rm -f conftest*
7250fi
7251
7252if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7253 echo "$ac_t""yes" 1>&6
7254 :
7255else
7256 echo "$ac_t""no" 1>&6
7257fi
7258
7259 if test $ac_cv_func_gethostbyname = no; then
7260 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7261echo "configure:7262: checking for gethostbyname in -lnsl" >&5
7262ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7263if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7264 echo $ac_n "(cached) $ac_c" 1>&6
7265else
7266 ac_save_LIBS="$LIBS"
7267LIBS="-lnsl $LIBS"
7268cat > conftest.$ac_ext <<EOF
7269#line 7270 "configure"
7270#include "confdefs.h"
7271/* Override any gcc2 internal prototype to avoid an error. */
7272/* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274char gethostbyname();
7275
7276int main() {
7277gethostbyname()
7278; return 0; }
7279EOF
7280if { (eval echo configure:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7281 rm -rf conftest*
7282 eval "ac_cv_lib_$ac_lib_var=yes"
7283else
7284 echo "configure: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7286 rm -rf conftest*
7287 eval "ac_cv_lib_$ac_lib_var=no"
7288fi
7289rm -f conftest*
7290LIBS="$ac_save_LIBS"
7291
7292fi
7293if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7294 echo "$ac_t""yes" 1>&6
7295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7296else
7297 echo "$ac_t""no" 1>&6
7298fi
7299
7300 fi
7301
7302 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7303 # socket/setsockopt and other routines are undefined under SCO ODT
7304 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7305 # on later versions), says simon@lia.di.epfl.ch: it contains
7306 # gethostby* variants that don't use the nameserver (or something).
7307 # -lsocket must be given before -lnsl if both are needed.
7308 # We assume that if connect needs -lnsl, so does gethostbyname.
7309 echo $ac_n "checking for connect""... $ac_c" 1>&6
7310echo "configure:7311: checking for connect" >&5
7311if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7312 echo $ac_n "(cached) $ac_c" 1>&6
7313else
7314 cat > conftest.$ac_ext <<EOF
7315#line 7316 "configure"
7316#include "confdefs.h"
7317/* System header to define __stub macros and hopefully few prototypes,
7318 which can conflict with char connect(); below. */
7319#include <assert.h>
7320/* Override any gcc2 internal prototype to avoid an error. */
7321/* We use char because int might match the return type of a gcc2
7322 builtin and then its argument prototype would still apply. */
7323char connect();
7324
7325int main() {
7326
7327/* The GNU C library defines this for functions which it implements
7328 to always fail with ENOSYS. Some functions are actually named
7329 something starting with __ and the normal name is an alias. */
7330#if defined (__stub_connect) || defined (__stub___connect)
7331choke me
7332#else
7333connect();
7334#endif
7335
7336; return 0; }
7337EOF
7338if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7339 rm -rf conftest*
7340 eval "ac_cv_func_connect=yes"
7341else
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7344 rm -rf conftest*
7345 eval "ac_cv_func_connect=no"
7346fi
7347rm -f conftest*
7348fi
7349
7350if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7351 echo "$ac_t""yes" 1>&6
7352 :
7353else
7354 echo "$ac_t""no" 1>&6
7355fi
7356
7357 if test $ac_cv_func_connect = no; then
7358 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7359echo "configure:7360: checking for connect in -lsocket" >&5
7360ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7361if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7363else
7364 ac_save_LIBS="$LIBS"
7365LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7366cat > conftest.$ac_ext <<EOF
7367#line 7368 "configure"
7368#include "confdefs.h"
7369/* Override any gcc2 internal prototype to avoid an error. */
7370/* We use char because int might match the return type of a gcc2
7371 builtin and then its argument prototype would still apply. */
7372char connect();
7373
7374int main() {
7375connect()
7376; return 0; }
7377EOF
7378if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7379 rm -rf conftest*
7380 eval "ac_cv_lib_$ac_lib_var=yes"
7381else
7382 echo "configure: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7384 rm -rf conftest*
7385 eval "ac_cv_lib_$ac_lib_var=no"
7386fi
7387rm -f conftest*
7388LIBS="$ac_save_LIBS"
7389
7390fi
7391if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7392 echo "$ac_t""yes" 1>&6
7393 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7394else
7395 echo "$ac_t""no" 1>&6
7396fi
7397
7398 fi
7399
7400 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7401 echo $ac_n "checking for remove""... $ac_c" 1>&6
7402echo "configure:7403: checking for remove" >&5
7403if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7405else
7406 cat > conftest.$ac_ext <<EOF
7407#line 7408 "configure"
7408#include "confdefs.h"
7409/* System header to define __stub macros and hopefully few prototypes,
7410 which can conflict with char remove(); below. */
7411#include <assert.h>
7412/* Override any gcc2 internal prototype to avoid an error. */
7413/* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7415char remove();
7416
7417int main() {
7418
7419/* The GNU C library defines this for functions which it implements
7420 to always fail with ENOSYS. Some functions are actually named
7421 something starting with __ and the normal name is an alias. */
7422#if defined (__stub_remove) || defined (__stub___remove)
7423choke me
7424#else
7425remove();
7426#endif
7427
7428; return 0; }
7429EOF
7430if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7431 rm -rf conftest*
7432 eval "ac_cv_func_remove=yes"
7433else
7434 echo "configure: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 rm -rf conftest*
7437 eval "ac_cv_func_remove=no"
7438fi
7439rm -f conftest*
7440fi
7441
7442if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7444 :
7445else
7446 echo "$ac_t""no" 1>&6
7447fi
7448
7449 if test $ac_cv_func_remove = no; then
7450 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7451echo "configure:7452: checking for remove in -lposix" >&5
7452ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7453if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7455else
7456 ac_save_LIBS="$LIBS"
7457LIBS="-lposix $LIBS"
7458cat > conftest.$ac_ext <<EOF
7459#line 7460 "configure"
7460#include "confdefs.h"
7461/* Override any gcc2 internal prototype to avoid an error. */
7462/* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7464char remove();
7465
7466int main() {
7467remove()
7468; return 0; }
7469EOF
7470if { (eval echo configure:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7471 rm -rf conftest*
7472 eval "ac_cv_lib_$ac_lib_var=yes"
7473else
7474 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7476 rm -rf conftest*
7477 eval "ac_cv_lib_$ac_lib_var=no"
7478fi
7479rm -f conftest*
7480LIBS="$ac_save_LIBS"
7481
7482fi
7483if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7484 echo "$ac_t""yes" 1>&6
7485 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7486else
7487 echo "$ac_t""no" 1>&6
7488fi
7489
7490 fi
7491
7492 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7493 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7494echo "configure:7495: checking for shmat" >&5
7495if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7497else
7498 cat > conftest.$ac_ext <<EOF
7499#line 7500 "configure"
7500#include "confdefs.h"
7501/* System header to define __stub macros and hopefully few prototypes,
7502 which can conflict with char shmat(); below. */
7503#include <assert.h>
7504/* Override any gcc2 internal prototype to avoid an error. */
7505/* We use char because int might match the return type of a gcc2
7506 builtin and then its argument prototype would still apply. */
7507char shmat();
7508
7509int main() {
7510
7511/* The GNU C library defines this for functions which it implements
7512 to always fail with ENOSYS. Some functions are actually named
7513 something starting with __ and the normal name is an alias. */
7514#if defined (__stub_shmat) || defined (__stub___shmat)
7515choke me
7516#else
7517shmat();
7518#endif
7519
7520; return 0; }
7521EOF
7522if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7523 rm -rf conftest*
7524 eval "ac_cv_func_shmat=yes"
7525else
7526 echo "configure: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7528 rm -rf conftest*
7529 eval "ac_cv_func_shmat=no"
7530fi
7531rm -f conftest*
7532fi
7533
7534if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7535 echo "$ac_t""yes" 1>&6
7536 :
7537else
7538 echo "$ac_t""no" 1>&6
7539fi
7540
7541 if test $ac_cv_func_shmat = no; then
7542 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7543echo "configure:7544: checking for shmat in -lipc" >&5
7544ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7545if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7547else
7548 ac_save_LIBS="$LIBS"
7549LIBS="-lipc $LIBS"
7550cat > conftest.$ac_ext <<EOF
7551#line 7552 "configure"
7552#include "confdefs.h"
7553/* Override any gcc2 internal prototype to avoid an error. */
7554/* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7556char shmat();
7557
7558int main() {
7559shmat()
7560; return 0; }
7561EOF
7562if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7563 rm -rf conftest*
7564 eval "ac_cv_lib_$ac_lib_var=yes"
7565else
7566 echo "configure: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7568 rm -rf conftest*
7569 eval "ac_cv_lib_$ac_lib_var=no"
7570fi
7571rm -f conftest*
7572LIBS="$ac_save_LIBS"
7573
7574fi
7575if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7576 echo "$ac_t""yes" 1>&6
7577 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7578else
7579 echo "$ac_t""no" 1>&6
7580fi
7581
7582 fi
7583 # XFree86/OS2
7584 if test $ac_cv_func_shmat = no; then
7585 echo $ac_n "checking for shmat in -lshm""... $ac_c" 1>&6
7586echo "configure:7587: checking for shmat in -lshm" >&5
7587ac_lib_var=`echo shm'_'shmat | sed 'y%./+-%__p_%'`
7588if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7589 echo $ac_n "(cached) $ac_c" 1>&6
7590else
7591 ac_save_LIBS="$LIBS"
7592LIBS="-lshm $LIBS"
7593cat > conftest.$ac_ext <<EOF
7594#line 7595 "configure"
7595#include "confdefs.h"
7596/* Override any gcc2 internal prototype to avoid an error. */
7597/* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7599char shmat();
7600
7601int main() {
7602shmat()
7603; return 0; }
7604EOF
7605if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7606 rm -rf conftest*
7607 eval "ac_cv_lib_$ac_lib_var=yes"
7608else
7609 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7611 rm -rf conftest*
7612 eval "ac_cv_lib_$ac_lib_var=no"
7613fi
7614rm -f conftest*
7615LIBS="$ac_save_LIBS"
7616
7617fi
7618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7619 echo "$ac_t""yes" 1>&6
7620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lshm"
7621else
7622 echo "$ac_t""no" 1>&6
7623fi
7624
7625 fi
7626 fi
7627
7628 # Check for libraries that X11R6 Xt/Xaw programs need.
7629 ac_save_LDFLAGS="$LDFLAGS"
7630 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7631 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7632 # check for ICE first), but we must link in the order -lSM -lICE or
7633 # we get undefined symbols. So assume we have SM if we have ICE.
7634 # These have to be linked with before -lX11, unlike the other
7635 # libraries we check for below, so use a different variable.
7636 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7637 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7638echo "configure:7639: checking for IceConnectionNumber in -lICE" >&5
7639ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7642else
7643 ac_save_LIBS="$LIBS"
7644LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7645cat > conftest.$ac_ext <<EOF
7646#line 7647 "configure"
7647#include "confdefs.h"
7648/* Override any gcc2 internal prototype to avoid an error. */
7649/* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651char IceConnectionNumber();
7652
7653int main() {
7654IceConnectionNumber()
7655; return 0; }
7656EOF
7657if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7658 rm -rf conftest*
7659 eval "ac_cv_lib_$ac_lib_var=yes"
7660else
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7663 rm -rf conftest*
7664 eval "ac_cv_lib_$ac_lib_var=no"
7665fi
7666rm -f conftest*
7667LIBS="$ac_save_LIBS"
7668
7669fi
7670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7671 echo "$ac_t""yes" 1>&6
7672 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7673else
7674 echo "$ac_t""no" 1>&6
7675fi
7676
7677 LDFLAGS="$ac_save_LDFLAGS"
7678
7679fi
7680
7681
7682# Check whether --enable-java-awt or --disable-java-awt was given.
7683if test "${enable_java_awt+set}" = set; then
7684 enableval="$enable_java_awt"
7685 :
7686fi
7687
7688
7689peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7690use_xlib_awt=""
7691use_gtk_awt=""
7692
7693for peer in $peerlibs ; do
7694 case $peer in
7695 xlib)
7696 if test "$no_x" = yes; then
7697 echo "*** xlib peers requested but no X library available" 1>&2
7698 exit 1
7699 else
7700 use_xlib_awt="yes"
7701 fi
7702 ;;
7703 gtk)
7704 # Nothing, yet...
7705 ;;
7706 no)
7707 use_xlib_awt=
7708 use_gtk_awt=
7709 break
7710 ;;
7711 *)
7712 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7713 exit 1
7714 esac
7715done
7716
7717
7718
7719if test "$use_xlib_awt" = yes; then
7720 XLIB_AWT_TRUE=
7721 XLIB_AWT_FALSE='#'
7722else
7723 XLIB_AWT_TRUE='#'
7724 XLIB_AWT_FALSE=
7725fi
7726
7727
7728if test "$use_gtk_awt" = yes; then
7729 GTK_AWT_TRUE=
7730 GTK_AWT_FALSE='#'
7731else
7732 GTK_AWT_TRUE='#'
7733 GTK_AWT_FALSE=
7734fi
7735
7736
7737here=`${PWDCMD-pwd}`
7738
7739
7740# We get this from the environment.
7741
7742
7743trap '' 1 2 15
7744cat > confcache <<\EOF
7745# This file is a shell script that caches the results of configure
7746# tests run on this system so they can be shared between configure
7747# scripts and configure runs. It is not useful on other systems.
7748# If it contains results you don't want to keep, you may remove or edit it.
7749#
7750# By default, configure uses ./config.cache as the cache file,
7751# creating it if it does not exist already. You can give configure
7752# the --cache-file=FILE option to use a different cache file; that is
7753# what configure does when it calls configure scripts in
7754# subdirectories, so they share the cache.
7755# Giving --cache-file=/dev/null disables caching, for debugging configure.
7756# config.status only pays attention to the cache file if you give it the
7757# --recheck option to rerun configure.
7758#
7759EOF
7760# The following way of writing the cache mishandles newlines in values,
7761# but we know of no workaround that is simple, portable, and efficient.
7762# So, don't put newlines in cache variables' values.
7763# Ultrix sh set writes to stderr and can't be redirected directly,
7764# and sets the high bit in the cache file unless we assign to the vars.
7765(set) 2>&1 |
7766 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7767 *ac_space=\ *)
7768 # `set' does not quote correctly, so add quotes (double-quote substitution
7769 # turns \\\\ into \\, and sed turns \\ into \).
7770 sed -n \
7771 -e "s/'/'\\\\''/g" \
7772 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7773 ;;
7774 *)
7775 # `set' quotes correctly as required by POSIX, so do not add quotes.
7776 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7777 ;;
7778 esac >> confcache
7779if cmp -s $cache_file confcache; then
7780 :
7781else
7782 if test -w $cache_file; then
7783 echo "updating cache $cache_file"
7784 cat confcache > $cache_file
7785 else
7786 echo "not updating unwritable cache $cache_file"
7787 fi
7788fi
7789rm -f confcache
7790
7791trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7792
7793test "x$prefix" = xNONE && prefix=$ac_default_prefix
7794# Let make expand exec_prefix.
7795test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7796
7797# Any assignment to VPATH causes Sun make to only execute
7798# the first set of double-colon rules, so remove it if not needed.
7799# If there is a colon in the path, we need to keep it.
7800if test "x$srcdir" = x.; then
7801 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7802fi
7803
7804trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7805
7806DEFS=-DHAVE_CONFIG_H
7807
7808# Without the "./", some shells look in PATH for config.status.
7809: ${CONFIG_STATUS=./config.status}
7810
7811echo creating $CONFIG_STATUS
7812rm -f $CONFIG_STATUS
7813cat > $CONFIG_STATUS <<EOF
7814#! /bin/sh
7815# Generated automatically by configure.
7816# Run this file to recreate the current configuration.
7817# This directory was configured as follows,
7818EOF
7819echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
7820cat >> $CONFIG_STATUS <<EOF
7821# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7822#
7823# $0 $ac_configure_args
7824#
7825# Compiler output produced by configure, useful for debugging
7826# configure, is in ./config.log if it exists.
7827
7828ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7829for ac_option
7830do
7831 case "\$ac_option" in
7832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7833 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7834 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7835 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7836 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7837 exit 0 ;;
7838 -help | --help | --hel | --he | --h)
7839 echo "\$ac_cs_usage"; exit 0 ;;
7840 *) echo "\$ac_cs_usage"; exit 1 ;;
7841 esac
7842done
7843
7844ac_given_srcdir=$srcdir
7845ac_given_INSTALL="$INSTALL"
7846PATHIFS="$PATH_IFS"
7847
7848trap '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
7849EOF
7850cat >> $CONFIG_STATUS <<EOF
7851
7852# Protect against being on the right side of a sed subst in config.status.
7853sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7854 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7855$ac_vpsub
7856$extrasub
7857s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
7858s%@SHELL@%$SHELL%g
7859s%@CFLAGS@%$CFLAGS%g
7860s%@CPPFLAGS@%$CPPFLAGS%g
7861s%@CXXFLAGS@%$CXXFLAGS%g
7862s%@FFLAGS@%$FFLAGS%g
7863s%@DEFS@%$DEFS%g
7864s%@LDFLAGS@%$LDFLAGS%g
7865s%@LIBS@%$LIBS%g
7866s%@exec_prefix@%$exec_prefix%g
7867s%@prefix@%$prefix%g
7868s%@program_transform_name@%$program_transform_name%g
7869s%@bindir@%$bindir%g
7870s%@sbindir@%$sbindir%g
7871s%@libexecdir@%$libexecdir%g
7872s%@datadir@%$datadir%g
7873s%@sysconfdir@%$sysconfdir%g
7874s%@sharedstatedir@%$sharedstatedir%g
7875s%@localstatedir@%$localstatedir%g
7876s%@libdir@%$libdir%g
7877s%@includedir@%$includedir%g
7878s%@oldincludedir@%$oldincludedir%g
7879s%@infodir@%$infodir%g
7880s%@mandir@%$mandir%g
7881s%@PATH_IFS@%$PATH_IFS%g
7882s%@EXEEXT@%$EXEEXT%g
7883s%@LN_S@%$LN_S%g
7884s%@libgcj_basedir@%$libgcj_basedir%g
7885s%@mkinstalldirs@%$mkinstalldirs%g
7886s%@host@%$host%g
7887s%@host_alias@%$host_alias%g
7888s%@host_cpu@%$host_cpu%g
7889s%@host_vendor@%$host_vendor%g
7890s%@host_os@%$host_os%g
7891s%@target@%$target%g
7892s%@target_alias@%$target_alias%g
7893s%@target_cpu@%$target_cpu%g
7894s%@target_vendor@%$target_vendor%g
7895s%@target_os@%$target_os%g
7896s%@build@%$build%g
7897s%@build_alias@%$build_alias%g
7898s%@build_cpu@%$build_cpu%g
7899s%@build_vendor@%$build_vendor%g
7900s%@build_os@%$build_os%g
7901s%@CC@%$CC%g
7902s%@glibjava_CXX@%$glibjava_CXX%g
7903s%@CXX@%$CXX%g
7904s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7905s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7906s%@INSTALL_DATA@%$INSTALL_DATA%g
7907s%@PACKAGE@%$PACKAGE%g
7908s%@VERSION@%$VERSION%g
7909s%@ACLOCAL@%$ACLOCAL%g
7910s%@AUTOCONF@%$AUTOCONF%g
7911s%@AUTOMAKE@%$AUTOMAKE%g
7912s%@AUTOHEADER@%$AUTOHEADER%g
7913s%@MAKEINFO@%$MAKEINFO%g
7914s%@SET_MAKE@%$SET_MAKE%g
7915s%@AS@%$AS%g
7916s%@AR@%$AR%g
7917s%@RANLIB@%$RANLIB%g
7918s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7919s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7920s%@MAINT@%$MAINT%g
7921s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7922s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7923s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7924s%@INCLTDL@%$INCLTDL%g
7925s%@LIBLTDL@%$LIBLTDL%g
7926s%@DIRLTDL@%$DIRLTDL%g
7927s%@OBJEXT@%$OBJEXT%g
7928s%@STRIP@%$STRIP%g
7929s%@LIBTOOL@%$LIBTOOL%g
7930s%@CXXCPP@%$CXXCPP%g
7931s%@subdirs@%$subdirs%g
7932s%@COMPPATH@%$COMPPATH%g
7933s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7934s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7935s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7936s%@INTERPRETER@%$INTERPRETER%g
7937s%@LIBFFI@%$LIBFFI%g
7938s%@LIBFFIINCS@%$LIBFFIINCS%g
7939s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7940s%@CPP@%$CPP%g
7941s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7942s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7943s%@ZLIBSPEC@%$ZLIBSPEC%g
7944s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7945s%@GCLIBS@%$GCLIBS%g
7946s%@GCINCS@%$GCINCS%g
7947s%@GCDEPS@%$GCDEPS%g
7948s%@GCOBJS@%$GCOBJS%g
7949s%@GCSPEC@%$GCSPEC%g
7950s%@JC1GCSPEC@%$JC1GCSPEC%g
7951s%@GCTESTSPEC@%$GCTESTSPEC%g
7952s%@THREADLIBS@%$THREADLIBS%g
7953s%@THREADINCS@%$THREADINCS%g
7954s%@THREADDEPS@%$THREADDEPS%g
7955s%@THREADOBJS@%$THREADOBJS%g
7956s%@THREADSPEC@%$THREADSPEC%g
7957s%@THREADLDFLAGS@%$THREADLDFLAGS%g
7958s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7959s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7960s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7961s%@tool_include_dir@%$tool_include_dir%g
7962s%@gcc_version@%$gcc_version%g
7963s%@LIBICONV@%$LIBICONV%g
7964s%@GCJ@%$GCJ%g
7965s%@GCJFLAGS@%$GCJFLAGS%g
7966s%@ZLIBS@%$ZLIBS%g
7967s%@SYS_ZLIBS@%$SYS_ZLIBS%g
7968s%@ZINCS@%$ZINCS%g
7969s%@DIVIDESPEC@%$DIVIDESPEC%g
7970s%@CHECKREFSPEC@%$CHECKREFSPEC%g
7971s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7972s%@IEEESPEC@%$IEEESPEC%g
7973s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7974s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7975s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7976s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7977s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7978s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7979s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7980s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7981s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7982s%@toolexecdir@%$toolexecdir%g
7983s%@toolexecmainlibdir@%$toolexecmainlibdir%g
7984s%@toolexeclibdir@%$toolexeclibdir%g
7985s%@GCJVERSION@%$GCJVERSION%g
7986s%@ALLOCA@%$ALLOCA%g
7987s%@PERL@%$PERL%g
7988s%@BACKTRACESPEC@%$BACKTRACESPEC%g
7989s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7990s%@X_CFLAGS@%$X_CFLAGS%g
7991s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7992s%@X_LIBS@%$X_LIBS%g
7993s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7994s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7995s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7996s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7997s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7998s%@here@%$here%g
7999
8000CEOF
8001EOF
8002
8003cat >> $CONFIG_STATUS <<\EOF
8004
8005# Split the substitutions into bite-sized pieces for seds with
8006# small command number limits, like on Digital OSF/1 and HP-UX.
8007ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8008ac_file=1 # Number of current file.
8009ac_beg=1 # First line for current file.
8010ac_end=$ac_max_sed_cmds # Line after last line for current file.
8011ac_more_lines=:
8012ac_sed_cmds=""
8013while $ac_more_lines; do
8014 if test $ac_beg -gt 1; then
8015 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8016 else
8017 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8018 fi
8019 if test ! -s conftest.s$ac_file; then
8020 ac_more_lines=false
8021 rm -f conftest.s$ac_file
8022 else
8023 if test -z "$ac_sed_cmds"; then
8024 ac_sed_cmds="sed -f conftest.s$ac_file"
8025 else
8026 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8027 fi
8028 ac_file=`expr $ac_file + 1`
8029 ac_beg=$ac_end
8030 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8031 fi
8032done
8033if test -z "$ac_sed_cmds"; then
8034 ac_sed_cmds=cat
8035fi
8036EOF
8037
8038cat >> $CONFIG_STATUS <<EOF
8039
8040CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
8041EOF
8042cat >> $CONFIG_STATUS <<\EOF
8043for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8044 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8045 case "$ac_file" in
8046 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8047 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8048 *) ac_file_in="${ac_file}.in" ;;
8049 esac
8050
8051 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8052
8053 # Remove last slash and all that follows it. Not all systems have dirname.
8054 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8055 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8056 # The file is in a subdirectory.
8057 test ! -d "$ac_dir" && mkdir "$ac_dir"
8058 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8059 # A "../" for each directory in $ac_dir_suffix.
8060 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8061 else
8062 ac_dir_suffix= ac_dots=
8063 fi
8064
8065 case "$ac_given_srcdir" in
8066 .) srcdir=.
8067 if test -z "$ac_dots"; then top_srcdir=.
8068 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8069 [/\\]* | [a-zA-Z]:*)
8070 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8071 *) # Relative path.
8072 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8073 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8074 esac
8075
8076 case "$ac_given_INSTALL" in
8077 [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
8078 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8079 esac
8080
8081 echo creating "$ac_file"
8082 rm -f "$ac_file"
8083 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8084 case "$ac_file" in
8085 *Makefile*) ac_comsub="1i\\
8086# $configure_input" ;;
8087 *) ac_comsub= ;;
8088 esac
8089
8090 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
8091 sed -e "$ac_comsub
8092s%@configure_input@%$configure_input%g
8093s%@srcdir@%$srcdir%g
8094s%@top_srcdir@%$top_srcdir%g
8095s%@INSTALL@%$INSTALL%g
8096" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8097fi; done
8098rm -f conftest.s*
8099
8100# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8101# NAME is the cpp macro being defined and VALUE is the value it is being given.
8102#
8103# ac_d sets the value in "#define NAME VALUE" lines.
8104ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8105ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8106ac_dC='\3'
8107ac_dD='%g'
8108# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8109ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8110ac_uB='\([ ]\)%\1#\2define\3'
8111ac_uC=' '
8112ac_uD='\4%g'
8113# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8114ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8115ac_eB='$%\1#\2define\3'
8116ac_eC=' '
8117ac_eD='%g'
8118
8119if test "${CONFIG_HEADERS+set}" != set; then
8120EOF
8121cat >> $CONFIG_STATUS <<EOF
8122 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
8123EOF
8124cat >> $CONFIG_STATUS <<\EOF
8125fi
8126for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8127 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8128 case "$ac_file" in
8129 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8130 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8131 *) ac_file_in="${ac_file}.in" ;;
8132 esac
8133
8134 echo creating $ac_file
8135
8136 rm -f conftest.frag conftest.in conftest.out
8137# kso the other way around might work better with drive letters and such.
8138# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8139 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
8140 cat $ac_file_inputs > conftest.in
8141
8142EOF
8143
8144# Transform confdefs.h into a sed script conftest.vals that substitutes
8145# the proper values into config.h.in to produce config.h. And first:
8146# Protect against being on the right side of a sed subst in config.status.
8147# Protect against being in an unquoted here document in config.status.
8148rm -f conftest.vals
8149cat > conftest.hdr <<\EOF
8150s/[\\&%]/\\&/g
8151s%[\\$`]%\\&%g
8152s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8153s%ac_d%ac_u%gp
8154s%ac_u%ac_e%gp
8155EOF
8156sed -n -f conftest.hdr confdefs.h > conftest.vals
8157rm -f conftest.hdr
8158
8159# This sed command replaces #undef with comments. This is necessary, for
8160# example, in the case of _POSIX_SOURCE, which is predefined and required
8161# on some systems where configure will not decide to define it.
8162cat >> conftest.vals <<\EOF
8163s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8164EOF
8165
8166# Break up conftest.vals because some shells have a limit on
8167# the size of here documents, and old seds have small limits too.
8168
8169rm -f conftest.tail
8170while :
8171do
8172 ac_lines=`grep -c . conftest.vals`
8173 # grep -c gives empty output for an empty file on some AIX systems.
8174 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8175 # Write a limited-size here document to conftest.frag.
8176 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8177 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8178 echo 'CEOF
8179 sed -f conftest.frag conftest.in > conftest.out
8180 rm -f conftest.in
8181 mv conftest.out conftest.in
8182' >> $CONFIG_STATUS
8183 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8184 rm -f conftest.vals
8185 mv conftest.tail conftest.vals
8186done
8187rm -f conftest.vals
8188
8189cat >> $CONFIG_STATUS <<\EOF
8190 rm -f conftest.frag conftest.h
8191 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8192 cat conftest.in >> conftest.h
8193 rm -f conftest.in
8194 if cmp -s $ac_file conftest.h 2>/dev/null; then
8195 echo "$ac_file is unchanged"
8196 rm -f conftest.h
8197 else
8198 # Remove last slash and all that follows it. Not all systems have dirname.
8199 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8200 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8201 # The file is in a subdirectory.
8202 test ! -d "$ac_dir" && mkdir "$ac_dir"
8203 fi
8204 rm -f $ac_file
8205 mv conftest.h $ac_file
8206 fi
8207fi; done
8208
8209EOF
8210
8211cat >> $CONFIG_STATUS <<EOF
8212ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
8213ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
8214EOF
8215
8216cat >> $CONFIG_STATUS <<\EOF
8217srcdir=$ac_given_srcdir
8218while test -n "$ac_sources"; do
8219 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8220 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8221
8222 echo "linking $srcdir/$ac_source to $ac_dest"
8223
8224 if test ! -r $srcdir/$ac_source; then
8225 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8226 fi
8227 rm -f $ac_dest
8228
8229 # Make relative symlinks.
8230 # Remove last slash and all that follows it. Not all systems have dirname.
8231 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8232 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8233 # The dest file is in a subdirectory.
8234 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8235 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8236 # A "../" for each directory in $ac_dest_dir_suffix.
8237 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8238 else
8239 ac_dest_dir_suffix= ac_dots=
8240 fi
8241
8242 case "$srcdir" in
8243 [/$\\]* | [A-Za-z]:*) ac_rel_source="$srcdir/$ac_source" ;;
8244 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8245 esac
8246
8247 # Make a symlink if possible; otherwise try a hard link.
8248 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8249 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8250 cp $srcdir/$ac_source $ac_dest; then :
8251 else
8252 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8253 fi
8254done
8255EOF
8256cat >> $CONFIG_STATUS <<EOF
8257
8258srcdir=${srcdir}
8259host=${host}
8260target=${target}
8261with_multisubdir=${with_multisubdir}
8262ac_configure_args="${multilib_arg} ${ac_configure_args}"
8263CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8264libgcj_basedir=${libgcj_basedir}
8265CC="${CC}"
8266CXX="${CXX}"
8267ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
8268
8269EOF
8270cat >> $CONFIG_STATUS <<\EOF
8271am_indx=1
8272for am_file in include/config.h gcj/libgcj-config.h; do
8273 case " $CONFIG_HEADERS " in
8274 *" $am_file "*)
8275 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
8276 ;;
8277 esac
8278 am_indx=`expr "$am_indx" + 1`
8279done
8280# Only add multilib support code if we just rebuilt top-level Makefile.
8281case " $CONFIG_FILES " in
8282 *" Makefile "*)
8283 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
8284 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
8285 ;;
8286esac
8287
8288# Make subdirectories and `.d' files. Look in both srcdir and
8289# builddir for the .java files.
8290h=`${PWDCMD-pwd}`
8291: > deps.mk
8292( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
8293 find . \( -name '*.java' -o -name '*.cc' \) -print) | \
8294 fgrep -v testsuite | \
8295 sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
8296 while read f; do
8297 echo "include $f" >> deps.mk
8298 test -f $f || {
8299
8300 d=`echo $f | sed -e 's,/[^/]*$,,'`
8301
8302 if test ! -d $d; then
8303 $libgcj_basedir/../mkinstalldirs $d
8304 fi;
8305 echo > $f
8306 }
8307 done
8308
8309exit 0
8310EOF
8311chmod +x $CONFIG_STATUS
8312rm -fr confdefs* $ac_clean_files
8313test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8314
8315if test "$no_recursion" != yes; then
8316
8317 # Remove --cache-file and --srcdir arguments so they do not pile up.
8318 ac_sub_configure_args=
8319 ac_prev=
8320 for ac_arg in $ac_configure_args; do
8321 if test -n "$ac_prev"; then
8322 ac_prev=
8323 continue
8324 fi
8325 case "$ac_arg" in
8326 -cache-file | --cache-file | --cache-fil | --cache-fi \
8327 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8328 ac_prev=cache_file ;;
8329 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8330 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8331 ;;
8332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8333 ac_prev=srcdir ;;
8334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8335 ;;
8336 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8337 esac
8338 done
8339
8340 for ac_config_dir in $DIRLTDL; do
8341
8342 # Do not complain, so a configure script can configure whichever
8343 # parts of a large source tree are present.
8344 if test ! -d $srcdir/$ac_config_dir; then
8345 continue
8346 fi
8347
8348 echo configuring in $ac_config_dir
8349
8350 case "$srcdir" in
8351 .) ;;
8352 *)
8353 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8354 else
8355 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8356 fi
8357 ;;
8358 esac
8359
8360 ac_popdir=`pwd`
8361 cd $ac_config_dir
8362
8363 # A "../" for each directory in /$ac_config_dir.
8364 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8365
8366 case "$srcdir" in
8367 .) # No --srcdir option. We are building in place.
8368 ac_sub_srcdir=$srcdir ;;
8369 [/\\]* | [a-zA-Z]:*) # Absolute path.
8370 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8371 *) # Relative path.
8372 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8373 esac
8374
8375 # Check for guested configure; otherwise get Cygnus style configure.
8376 if test -f $ac_sub_srcdir/configure; then
8377 ac_sub_configure=$ac_sub_srcdir/configure
8378 elif test -f $ac_sub_srcdir/configure.in; then
8379 ac_current_dir=`pwd`
8380 cd $ac_sub_srcdir
8381 autoconf
8382 cd $ac_current_dir
8383 ac_sub_configure=$ac_sub_srcdir/configure
8384 else
8385 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8386 ac_sub_configure=
8387 fi
8388
8389 # The recursion is here.
8390 if test -n "$ac_sub_configure"; then
8391
8392 # Make the cache file name correct relative to the subdirectory.
8393 case "$cache_file" in
8394 [/\\]* | [a-zA-Z]:*) ac_sub_cache_file=$cache_file ;;
8395 *) # Relative path.
8396 ac_sub_cache_file="$ac_dots$cache_file" ;;
8397 esac
8398 case "$ac_given_INSTALL" in
8399 [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
8400 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8401 esac
8402
8403 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8404 # The eval makes quoting arguments work.
8405 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8406 then :
8407 else
8408 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
8409 fi
8410 fi
8411
8412 cd $ac_popdir
8413 done
8414fi
8415
Note: See TracBrowser for help on using the repository browser.