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

Last change on this file since 811 was 80, checked in by bird, 23 years ago

Regenerated configure on OS/2.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 231.4 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 --enable-multilib build many library versions (default)"
21ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36ac_help="$ac_help
37 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
39ac_help="$ac_help
40 --enable-hash-synchronization
41 Use global hash table for monitor locks"
42ac_help="$ac_help
43 --enable-libgcj-debug enable runtime debugging code"
44ac_help="$ac_help
45 --enable-interpreter enable interpreter"
46ac_help="$ac_help
47 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
48ac_help="$ac_help
49 --disable-java-net disable java.net"
50ac_help="$ac_help
51 --without-libffi don't use libffi"
52ac_help="$ac_help
53 --disable-jvmpi disable JVMPI support"
54ac_help="$ac_help
55 --with-ecos enable runtime eCos target support"
56ac_help="$ac_help
57 --with-system-zlib use installed libz"
58ac_help="$ac_help
59 --enable-java-gc=TYPE choose garbage collector [boehm]"
60ac_help="$ac_help
61 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
62ac_help="$ac_help
63 --with-x use the X Window System"
64ac_help="$ac_help
65 --enable-java-awt list of AWT peer implementations to be built"
66
67# Initialize some variables set by options.
68# The variables have the same names as the options, with
69# dashes changed to underlines.
70build=NONE
71cache_file=./config.cache
72exec_prefix=NONE
73host=NONE
74no_create=
75nonopt=NONE
76no_recursion=
77prefix=NONE
78program_prefix=NONE
79program_suffix=NONE
80program_transform_name=s,x,x,
81silent=
82site=
83srcdir=
84target=NONE
85verbose=
86x_includes=NONE
87x_libraries=NONE
88bindir='${exec_prefix}/bin'
89sbindir='${exec_prefix}/sbin'
90libexecdir='${exec_prefix}/libexec'
91datadir='${prefix}/share'
92sysconfdir='${prefix}/etc'
93sharedstatedir='${prefix}/com'
94localstatedir='${prefix}/var'
95libdir='${exec_prefix}/lib'
96includedir='${prefix}/include'
97oldincludedir='/usr/include'
98infodir='${prefix}/info'
99mandir='${prefix}/man'
100
101# Initialize some other variables.
102subdirs=
103MFLAGS= MAKEFLAGS=
104SHELL=${CONFIG_SHELL-/bin/sh}
105# Maximum number of lines to put in a shell here document.
106ac_max_here_lines=12
107
108ac_prev=
109for ac_option
110do
111
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
115 ac_prev=
116 continue
117 fi
118
119 case "$ac_option" in
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 *) ac_optarg= ;;
122 esac
123
124 # Accept the important Cygnus configure options, so we can diagnose typos.
125
126 case "$ac_option" in
127
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 ac_prev=bindir ;;
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
132
133 -build | --build | --buil | --bui | --bu)
134 ac_prev=build ;;
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
137
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
144
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 ac_prev=datadir ;;
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 | --da=*)
149 datadir="$ac_optarg" ;;
150
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 fi
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
159
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 fi
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 case "$ac_option" in
168 *=*) ;;
169 *) ac_optarg=yes ;;
170 esac
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
172
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
181
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
184 with_gas=yes ;;
185
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
189 cat << EOF
190Usage: configure [options] [host]
191Options: [defaults in brackets after descriptions]
192Configuration:
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
200 [$ac_default_prefix]
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 [same as prefix]
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
207 [PREFIX/share]
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 [PREFIX/com]
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
222EOF
223 cat << EOF
224Host type:
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
235EOF
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
238 fi
239 exit 0 ;;
240
241 -host | --host | --hos | --ho)
242 ac_prev=host ;;
243 -host=* | --host=* | --hos=* | --ho=*)
244 host="$ac_optarg" ;;
245
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
252
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
254 ac_prev=infodir ;;
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
257
258 -libdir | --libdir | --libdi | --libd)
259 ac_prev=libdir ;;
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
262
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
269
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
278
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280 ac_prev=mandir ;;
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
283
284 -nfp | --nfp | --nf)
285 # Obsolete; use --without-fp.
286 with_fp=no ;;
287
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 | --no-cr | --no-c)
290 no_create=yes ;;
291
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 no_recursion=yes ;;
295
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
304
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306 ac_prev=prefix ;;
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
309
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
316
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
323
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
340
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
343 silent=yes ;;
344
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346 ac_prev=sbindir ;;
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348 | --sbi=* | --sb=*)
349 sbindir="$ac_optarg" ;;
350
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
354 | --sha | --sh)
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359 | --sha=* | --sh=*)
360 sharedstatedir="$ac_optarg" ;;
361
362 -site | --site | --sit)
363 ac_prev=site ;;
364 -site=* | --site=* | --sit=*)
365 site="$ac_optarg" ;;
366
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368 ac_prev=srcdir ;;
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
371
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
378
379 -target | --target | --targe | --targ | --tar | --ta | --t)
380 ac_prev=target ;;
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
383
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 verbose=yes ;;
386
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.13"
389 exit 0 ;;
390
391 -with-* | --with-*)
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 fi
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 case "$ac_option" in
399 *=*) ;;
400 *) ac_optarg=yes ;;
401 esac
402 eval "with_${ac_package}='$ac_optarg'" ;;
403
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 fi
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
412
413 --x)
414 # Obsolete; use --with-x.
415 with_x=yes ;;
416
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
423
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
430
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 ;;
433
434 *)
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 fi
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 fi
441 nonopt="$ac_option"
442 ;;
443
444 esac
445done
446
447if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449fi
450
451trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452
453# File descriptor usage:
454# 0 standard input
455# 1 file creation
456# 2 errors and warnings
457# 3 some systems may open it to /dev/tty
458# 4 used on the Kubota Titan
459# 6 checking for... messages and results
460# 5 compiler messages saved in config.log
461if test "$silent" = yes; then
462 exec 6>/dev/null
463else
464 exec 6>&1
465fi
466exec 5>./config.log
467
468echo "\
469This file contains any messages produced by compilers while
470running configure, to aid debugging if configure makes a mistake.
471" 1>&5
472
473# Strip out --no-create and --no-recursion so they do not pile up.
474# Also quote any args containing shell metacharacters.
475ac_configure_args=
476for ac_arg
477do
478 case "$ac_arg" in
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 esac
487done
488
489# NLS nuisances.
490# Only set these to C if already set. These must not be set unconditionally
491# because not all systems understand e.g. LANG=C (notably SCO).
492# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493# Non-C LC_CTYPE values break the ctype check.
494if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
498
499# confdefs.h avoids OS command line length limits that DEFS can exceed.
500rm -rf conftest* confdefs.h
501# AIX cpp loses on an empty file, so make sure it contains at least a newline.
502echo > confdefs.h
503
504# A filename unique to this package, relative to the directory that
505# configure is in, which we can look for to find out if srcdir is correct.
506ac_unique_file=java/lang/System.java
507
508# Find the source files, if location was not specified.
509if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
512 ac_prog=$0
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515 srcdir=$ac_confdir
516 if test ! -r $srcdir/$ac_unique_file; then
517 srcdir=..
518 fi
519else
520 ac_srcdir_defaulted=no
521fi
522if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 else
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 fi
528fi
529srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530
531# Prefer explicitly selected file to automatically selected ones.
532if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535 else
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 fi
538fi
539for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
542 . "$ac_site_file"
543 fi
544done
545
546if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
548 . $cache_file
549else
550 echo "creating cache $cache_file"
551 > $cache_file
552fi
553
554ac_ext=c
555# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556ac_cpp='$CPP $CPPFLAGS'
557ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559cross_compiling=$ac_cv_prog_cc_cross
560
561ac_exeext=
562ac_objext=o
563if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='
567' ac_t=' '
568 else
569 ac_n=-n ac_c= ac_t=
570 fi
571else
572 ac_n= ac_c='\c' ac_t=
573fi
574
575echo $ac_n "checking for path separator""... $ac_c" 1>&6
576echo "configure:577: checking for path separator" >&5
577# Filter path to get backslahes into forwardslashes
578case "`uname -s 2> /dev/null`" in
579OS/2)
580 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
581 PATH_IFS=';'
582 ;;
583*)
584 PATH_IFS=':'
585 ;;
586esac
587echo "$ac_t""${PATH_IFS}" 1>&6
588
589echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
590echo "configure:591: checking for Cygwin environment" >&5
591if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
593else
594 cat > conftest.$ac_ext <<EOF
595#line 596 "configure"
596#include "confdefs.h"
597
598int main() {
599
600#ifndef __CYGWIN__
601#define __CYGWIN__ __CYGWIN32__
602#endif
603return __CYGWIN__;
604; return 0; }
605EOF
606if { (eval echo configure:607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
607 rm -rf conftest*
608 ac_cv_cygwin=yes
609else
610 echo "configure: failed program was:" >&5
611 cat conftest.$ac_ext >&5
612 rm -rf conftest*
613 ac_cv_cygwin=no
614fi
615rm -f conftest*
616rm -f conftest*
617fi
618
619echo "$ac_t""$ac_cv_cygwin" 1>&6
620CYGWIN=
621test "$ac_cv_cygwin" = yes && CYGWIN=yes
622echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
623echo "configure:624: checking for mingw32 environment" >&5
624if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
625 echo $ac_n "(cached) $ac_c" 1>&6
626else
627 cat > conftest.$ac_ext <<EOF
628#line 629 "configure"
629#include "confdefs.h"
630
631int main() {
632return __MINGW32__;
633; return 0; }
634EOF
635if { (eval echo configure:636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
636 rm -rf conftest*
637 ac_cv_mingw32=yes
638else
639 echo "configure: failed program was:" >&5
640 cat conftest.$ac_ext >&5
641 rm -rf conftest*
642 ac_cv_mingw32=no
643fi
644rm -f conftest*
645rm -f conftest*
646fi
647
648echo "$ac_t""$ac_cv_mingw32" 1>&6
649MINGW32=
650test "$ac_cv_mingw32" = yes && MINGW32=yes
651echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
652echo "configure:653: checking for EMX/OS2 environment" >&5
653if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
655else
656 : ${CC=gcc.exe}
657cat > conftest.$ac_ext <<EOF
658#line 659 "configure"
659#include "confdefs.h"
660
661int main() {
662return __EMX__;
663; return 0; }
664EOF
665if { (eval echo configure:666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
666 rm -rf conftest*
667 ac_cv_emxos2=yes
668else
669 echo "configure: failed program was:" >&5
670 cat conftest.$ac_ext >&5
671 rm -rf conftest*
672 ac_cv_emxos2=no
673fi
674rm -f conftest*
675rm -f conftest*
676fi
677
678echo "$ac_t""$ac_cv_emxos2" 1>&6
679if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
681else
682 if test "$ac_cv_emxos2" = yes ; then
683 ac_cv_libpre=
684else
685 ac_cv_libpre=lib
686fi
687
688fi
689
690EMXOS2=
691test "$ac_cv_emxos2" = yes && EMXOS2=yes
692
693
694
695echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
696echo "configure:697: checking for executable suffix" >&5
697if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699else
700 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
701 ac_cv_exeext=.exe
702else
703 rm -f conftest*
704 echo 'int main () { return 0; }' > conftest.$ac_ext
705 ac_cv_exeext=
706 if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
707 for file in conftest.*; do
708 case $file in
709 *.c | *.o | *.obj) ;;
710 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
711 esac
712 done
713 else
714 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
715 fi
716 rm -f conftest*
717 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
718fi
719fi
720
721EXEEXT=""
722test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
723echo "$ac_t""${ac_cv_exeext}" 1>&6
724ac_exeext=$EXEEXT
725
726
727
728# This works around the fact that libtool configuration may change LD
729# for this particular configuration, but some shells, instead of
730# keeping the changes in LD private, export them just because LD is
731# exported.
732ORIGINAL_LD_FOR_MULTILIBS=$LD
733
734echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
735echo "configure:736: checking whether ln -s works" >&5
736if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
738else
739 rm -f conftestdata
740if ln -s X conftestdata 2>/dev/null
741then
742 rm -f conftestdata
743 ac_cv_prog_LN_S="ln -s"
744else
745 echo A > conftestdata;
746 if ln conftestdata conftestdata2 2>/dev/null; then
747 ac_cv_prog_LN_S=ln
748 else
749 ac_cv_prog_LN_S=cp
750 fi
751fi
752rm -f conftestdata*
753fi
754LN_S="$ac_cv_prog_LN_S"
755if test "$ac_cv_prog_LN_S" = "ln -s"; then
756 echo "$ac_t""yes" 1>&6
757else
758 echo "$ac_t""no" 1>&6
759fi
760
761
762# Check whether --with-target-subdir or --without-target-subdir was given.
763if test "${with_target_subdir+set}" = set; then
764 withval="$with_target_subdir"
765 :
766fi
767
768# Check whether --with-cross-host or --without-cross-host was given.
769if test "${with_cross_host+set}" = set; then
770 withval="$with_cross_host"
771 :
772fi
773
774
775# Find a good install program. We prefer a C program (faster),
776# so one script is as good as another. But avoid the broken or
777# incompatible versions:
778# SysV /etc/install, /usr/sbin/install
779# SunOS /usr/etc/install
780# IRIX /sbin/install
781# AIX /bin/install
782# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
783# AFS /usr/afsws/bin/install, which mishandles nonexistent args
784# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
785# ./install, which can be erroneously created by make from ./install.sh.
786echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
787echo "configure:788: checking for a BSD compatible install" >&5
788if test -z "$INSTALL"; then
789if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
791else
792 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
793 for ac_dir in $PATH; do
794 # Account for people who put trailing slashes in PATH elements.
795 case "$ac_dir/" in
796 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
797 # We reject the install program from OS/2 or W3.1
798 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
799 *)
800 # OSF1 and SCO ODT 3.0 have their own names for install.
801 # Don't use installbsd from OSF since it installs stuff as root
802 # by default.
803 for ac_prog in ginstall scoinst install; do
804 if test -f $ac_dir/$ac_prog$ac_exeext; then
805 if test $ac_prog = install &&
806 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
807 # AIX install. It has an incompatible calling convention.
808 :
809 else
810 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
811 break 2
812 fi
813 fi
814 done
815 ;;
816 esac
817 done
818 IFS="$ac_save_IFS"
819
820fi
821 if test "${ac_cv_path_install+set}" = set; then
822 INSTALL="$ac_cv_path_install"
823 else
824 # As a last resort, use the slow shell script. We don't cache a
825 # path for INSTALL within a source directory, because that will
826 # break other packages using the cache if that directory is
827 # removed, or if the path is relative.
828 INSTALL="$ac_install_sh"
829 fi
830fi
831echo "$ac_t""$INSTALL" 1>&6
832
833# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
834# It thinks the first close brace ends the variable substitution.
835test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
836
837test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
838
839test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
840
841echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
842echo "configure:843: checking whether build environment is sane" >&5
843# Just in case
844sleep 1
845echo timestamp > conftestfile
846# Do `set' in a subshell so we don't clobber the current shell's
847# arguments. Must try -L first in case configure is actually a
848# symlink; some systems play weird games with the mod time of symlinks
849# (eg FreeBSD returns the mod time of the symlink's containing
850# directory).
851if (
852 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
853 if test "$*" = "X"; then
854 # -L didn't work.
855 set X `ls -t $srcdir/configure conftestfile`
856 fi
857 if test "$*" != "X $srcdir/configure conftestfile" \
858 && test "$*" != "X conftestfile $srcdir/configure"; then
859
860 # If neither matched, then we have a broken ls. This can happen
861 # if, for instance, CONFIG_SHELL is bash and it inherits a
862 # broken ls alias from the environment. This has actually
863 # happened. Such a system could not be considered "sane".
864 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
865alias in your environment" 1>&2; exit 1; }
866 fi
867
868 test "$2" = conftestfile
869 )
870then
871 # Ok.
872 :
873else
874 { echo "configure: error: newly created file is older than distributed files!
875Check your system clock" 1>&2; exit 1; }
876fi
877rm -f conftest*
878echo "$ac_t""yes" 1>&6
879if test "$program_transform_name" = s,x,x,; then
880 program_transform_name=
881else
882 # Double any \ or $. echo might interpret backslashes.
883 cat <<\EOF_SED > conftestsed
884s,\\,\\\\,g; s,\$,$$,g
885EOF_SED
886 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
887 rm -f conftestsed
888fi
889test "$program_prefix" != NONE &&
890 program_transform_name="s,^,${program_prefix},; $program_transform_name"
891# Use a double $ so make ignores it.
892test "$program_suffix" != NONE &&
893 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
894
895# sed with no file args requires a program.
896test "$program_transform_name" = "" && program_transform_name="s,x,x,"
897
898echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
899echo "configure:900: checking whether ${MAKE-make} sets \${MAKE}" >&5
900set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
901if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
903else
904 cat > conftestmake <<\EOF
905all:
906 @echo 'ac_maketemp="${MAKE}"'
907EOF
908# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
909eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
910if test -n "$ac_maketemp"; then
911 eval ac_cv_prog_make_${ac_make}_set=yes
912else
913 eval ac_cv_prog_make_${ac_make}_set=no
914fi
915rm -f conftestmake
916fi
917if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
918 echo "$ac_t""yes" 1>&6
919 SET_MAKE=
920else
921 echo "$ac_t""no" 1>&6
922 SET_MAKE="MAKE=${MAKE-make}"
923fi
924
925if test $host != $build; then
926 ac_tool_prefix=${host_alias}-
927else
928 ac_tool_prefix=
929fi
930
931
932# Check whether --enable-multilib or --disable-multilib was given.
933if test "${enable_multilib+set}" = set; then
934 enableval="$enable_multilib"
935 case "${enableval}" in
936 yes) multilib=yes ;;
937 no) multilib=no ;;
938 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
939 esac
940else
941 multilib=yes
942fi
943
944
945# When building with srcdir == objdir, links to the source files will
946# be created in directories within the target_subdir. We have to
947# adjust toplevel_srcdir accordingly, so that configure finds
948# install-sh and other auxiliary files that live in the top-level
949# source directory.
950if test "${srcdir}" = "."; then
951 if test -z "${with_target_subdir}"; then
952 toprel=".."
953 else
954 if test "${with_target_subdir}" != "."; then
955 toprel="${with_multisrctop}../.."
956 else
957 toprel="${with_multisrctop}.."
958 fi
959 fi
960else
961 toprel=".."
962fi
963
964libgcj_basedir=$srcdir/$toprel/./libjava
965
966
967ac_aux_dir=
968for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
969 if test -f $ac_dir/install-sh; then
970 ac_aux_dir=$ac_dir
971 ac_install_sh="$ac_aux_dir/install-sh -c"
972 break
973 elif test -f $ac_dir/install.sh; then
974 ac_aux_dir=$ac_dir
975 ac_install_sh="$ac_aux_dir/install.sh -c"
976 break
977 fi
978done
979if test -z "$ac_aux_dir"; then
980 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
981fi
982ac_config_guess=$ac_aux_dir/config.guess
983ac_config_sub=$ac_aux_dir/config.sub
984ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
985
986if :; then :; else
987 # This overrides the previous occurrence for automake, but not for
988 # autoconf, which is exactly what we want.
989 ac_aux_dir=
990for ac_dir in .. $srcdir/..; do
991 if test -f $ac_dir/install-sh; then
992 ac_aux_dir=$ac_dir
993 ac_install_sh="$ac_aux_dir/install-sh -c"
994 break
995 elif test -f $ac_dir/install.sh; then
996 ac_aux_dir=$ac_dir
997 ac_install_sh="$ac_aux_dir/install.sh -c"
998 break
999 fi
1000done
1001if test -z "$ac_aux_dir"; then
1002 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
1003fi
1004ac_config_guess=$ac_aux_dir/config.guess
1005ac_config_sub=$ac_aux_dir/config.sub
1006ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1007
1008fi
1009
1010# This works around an automake problem.
1011mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
1012
1013
1014
1015# Do some error checking and defaulting for the host and target type.
1016# The inputs are:
1017# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1018#
1019# The rules are:
1020# 1. You are not allowed to specify --host, --target, and nonopt at the
1021# same time.
1022# 2. Host defaults to nonopt.
1023# 3. If nonopt is not specified, then host defaults to the current host,
1024# as determined by config.guess.
1025# 4. Target and build default to nonopt.
1026# 5. If nonopt is not specified, then target and build default to host.
1027
1028# The aliases save the names the user supplied, while $host etc.
1029# will get canonicalized.
1030case $host---$target---$nonopt in
1031NONE---*---* | *---NONE---* | *---*---NONE) ;;
1032*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1033esac
1034
1035
1036# Make sure we can run config.sub.
1037if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1038else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1039fi
1040
1041echo $ac_n "checking host system type""... $ac_c" 1>&6
1042echo "configure:1043: checking host system type" >&5
1043
1044host_alias=$host
1045case "$host_alias" in
1046NONE)
1047 case $nonopt in
1048 NONE)
1049 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1050 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1051 fi ;;
1052 *) host_alias=$nonopt ;;
1053 esac ;;
1054esac
1055
1056host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1057host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060echo "$ac_t""$host" 1>&6
1061
1062echo $ac_n "checking target system type""... $ac_c" 1>&6
1063echo "configure:1064: checking target system type" >&5
1064
1065target_alias=$target
1066case "$target_alias" in
1067NONE)
1068 case $nonopt in
1069 NONE) target_alias=$host_alias ;;
1070 *) target_alias=$nonopt ;;
1071 esac ;;
1072esac
1073
1074target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1075target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1078echo "$ac_t""$target" 1>&6
1079
1080echo $ac_n "checking build system type""... $ac_c" 1>&6
1081echo "configure:1082: checking build system type" >&5
1082
1083build_alias=$build
1084case "$build_alias" in
1085NONE)
1086 case $nonopt in
1087 NONE) build_alias=$host_alias ;;
1088 *) build_alias=$nonopt ;;
1089 esac ;;
1090esac
1091
1092build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1093build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1094build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1095build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1096echo "$ac_t""$build" 1>&6
1097
1098test "$host_alias" != "$target_alias" &&
1099 test "$program_prefix$program_suffix$program_transform_name" = \
1100 NONENONEs,x,x, &&
1101 program_prefix=${target_alias}-
1102
1103
1104
1105
1106
1107# Extract the first word of "gcc", so it can be a program name with args.
1108set dummy gcc; ac_word=$2
1109echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1110echo "configure:1111: checking for $ac_word" >&5
1111if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1113else
1114 if test -n "$CC"; then
1115 ac_cv_prog_CC="$CC" # Let the user override the test.
1116else
1117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1118 ac_dummy="$PATH"
1119 for ac_dir in $ac_dummy; do
1120 test -z "$ac_dir" && ac_dir=.
1121 if test -f $ac_dir/$ac_word -o \
1122 -f $ac_dir/$ac_word$ac_exeext ; then
1123 ac_cv_prog_CC="gcc"
1124 break
1125 fi
1126 done
1127 IFS="$ac_save_ifs"
1128fi
1129fi
1130CC="$ac_cv_prog_CC"
1131if test -n "$CC"; then
1132 echo "$ac_t""$CC" 1>&6
1133else
1134 echo "$ac_t""no" 1>&6
1135fi
1136
1137if test -z "$CC"; then
1138 # Extract the first word of "cc", so it can be a program name with args.
1139set dummy cc; ac_word=$2
1140echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1141echo "configure:1142: checking for $ac_word" >&5
1142if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144else
1145 if test -n "$CC"; then
1146 ac_cv_prog_CC="$CC" # Let the user override the test.
1147else
1148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1149 ac_prog_rejected=no
1150 ac_dummy="$PATH"
1151 for ac_dir in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir=.
1153 if test -f $ac_dir/$ac_word -o \
1154 -f $ac_dir/$ac_word$ac_exeext ; then
1155 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
1156 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
1157 ac_prog_rejected=yes
1158 continue
1159 fi
1160 ac_cv_prog_CC="cc"
1161 break
1162 fi
1163 done
1164 IFS="$ac_save_ifs"
1165if test $ac_prog_rejected = yes; then
1166 # We found a bogon in the path, so make sure we never use it.
1167 set dummy $ac_cv_prog_CC
1168 shift
1169 if test $# -gt 0; then
1170 # We chose a different compiler from the bogus one.
1171 # However, it has the same basename, so the bogon will be chosen
1172 # first if we set CC to just the basename; use the full file name.
1173 shift
1174 set dummy "$ac_dir/$ac_word" "$@"
1175 shift
1176 ac_cv_prog_CC="$@"
1177 fi
1178fi
1179fi
1180fi
1181CC="$ac_cv_prog_CC"
1182if test -n "$CC"; then
1183 echo "$ac_t""$CC" 1>&6
1184else
1185 echo "$ac_t""no" 1>&6
1186fi
1187
1188 if test -z "$CC"; then
1189 case "`uname -s`" in
1190 *win32* | *WIN32*)
1191 # Extract the first word of "cl", so it can be a program name with args.
1192set dummy cl; ac_word=$2
1193echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194echo "configure:1195: checking for $ac_word" >&5
1195if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1197else
1198 if test -n "$CC"; then
1199 ac_cv_prog_CC="$CC" # Let the user override the test.
1200else
1201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1202 ac_dummy="$PATH"
1203 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f $ac_dir/$ac_word -o \
1206 -f $ac_dir/$ac_word$ac_exeext ; then
1207 ac_cv_prog_CC="cl"
1208 break
1209 fi
1210 done
1211 IFS="$ac_save_ifs"
1212fi
1213fi
1214CC="$ac_cv_prog_CC"
1215if test -n "$CC"; then
1216 echo "$ac_t""$CC" 1>&6
1217else
1218 echo "$ac_t""no" 1>&6
1219fi
1220 ;;
1221 esac
1222 fi
1223 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1224fi
1225
1226
1227echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1228echo "configure:1229: checking whether we are using GNU C" >&5
1229if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1231else
1232 cat > conftest.c <<EOF
1233#ifdef __GNUC__
1234 yes;
1235#endif
1236EOF
1237if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1238 ac_cv_prog_gcc=yes
1239else
1240 ac_cv_prog_gcc=no
1241fi
1242fi
1243
1244echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1245
1246if test $ac_cv_prog_gcc = yes; then
1247 GCC=yes
1248else
1249 GCC=
1250fi
1251
1252ac_test_CFLAGS="${CFLAGS+set}"
1253ac_save_CFLAGS="$CFLAGS"
1254CFLAGS=
1255echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1256echo "configure:1257: checking whether ${CC-cc} accepts -g" >&5
1257if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1259else
1260 echo 'void f(){}' > conftest.c
1261if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1262 ac_cv_prog_cc_g=yes
1263else
1264 ac_cv_prog_cc_g=no
1265fi
1266rm -f conftest*
1267
1268fi
1269
1270echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1271if test "$ac_test_CFLAGS" = set; then
1272 CFLAGS="$ac_save_CFLAGS"
1273elif test $ac_cv_prog_cc_g = yes; then
1274 if test "$GCC" = yes; then
1275 CFLAGS="-g -O2"
1276 else
1277 CFLAGS="-g"
1278 fi
1279else
1280 if test "$GCC" = yes; then
1281 CFLAGS="-O2"
1282 else
1283 CFLAGS=
1284 fi
1285fi
1286
1287
1288# We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1289# glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1290# different definition of CXX than other directories, since we don't
1291# depend on libstdc++-v3 having already been built.
1292
1293
1294
1295# Use glibjava_CXX so that we do not cause CXX to be cached with the
1296# flags that come in CXX while configuring libjava. They're different
1297# from those used for all other target libraries. If CXX is set in
1298# the environment, respect that here.
1299glibjava_CXX=$CXX
1300for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1301do
1302# Extract the first word of "$ac_prog", so it can be a program name with args.
1303set dummy $ac_prog; ac_word=$2
1304echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305echo "configure:1306: checking for $ac_word" >&5
1306if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1308else
1309 if test -n "$glibjava_CXX"; then
1310 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1311else
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1313 ac_dummy="$PATH"
1314 for ac_dir in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word -o \
1317 -f $ac_dir/$ac_word$ac_exeext ; then
1318 ac_cv_prog_glibjava_CXX="$ac_prog"
1319 break
1320 fi
1321 done
1322 IFS="$ac_save_ifs"
1323fi
1324fi
1325glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1326if test -n "$glibjava_CXX"; then
1327 echo "$ac_t""$glibjava_CXX" 1>&6
1328else
1329 echo "$ac_t""no" 1>&6
1330fi
1331
1332test -n "$glibjava_CXX" && break
1333done
1334test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1335
1336
1337CXX=$glibjava_CXX
1338test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1339
1340echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1341echo "configure:1342: checking whether we are using GNU C++" >&5
1342if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1344else
1345 cat > conftest.C <<EOF
1346#ifdef __GNUC__
1347 yes;
1348#endif
1349EOF
1350if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1351 ac_cv_prog_gxx=yes
1352else
1353 ac_cv_prog_gxx=no
1354fi
1355fi
1356
1357echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1358
1359if test $ac_cv_prog_gxx = yes; then
1360 GXX=yes
1361 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1362 ac_save_CXXFLAGS="$CXXFLAGS"
1363 CXXFLAGS=
1364 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1365echo "configure:1366: checking whether ${CXX-g++} accepts -g" >&5
1366if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1368else
1369 echo 'void f(){}' > conftest.cc
1370if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1371 ac_cv_prog_cxx_g=yes
1372else
1373 ac_cv_prog_cxx_g=no
1374fi
1375rm -f conftest*
1376
1377fi
1378
1379echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1380 if test "$ac_test_CXXFLAGS" = set; then
1381 CXXFLAGS="$ac_save_CXXFLAGS"
1382 elif test $ac_cv_prog_cxx_g = yes; then
1383 CXXFLAGS="-g -O2"
1384 else
1385 CXXFLAGS="-O2"
1386 fi
1387else
1388 GXX=
1389 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1390fi
1391
1392
1393version=0.0.7
1394
1395PACKAGE=libjava
1396
1397VERSION=$version
1398
1399if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1400 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1401fi
1402cat >> confdefs.h <<EOF
1403#define PACKAGE "$PACKAGE"
1404EOF
1405
1406cat >> confdefs.h <<EOF
1407#define VERSION "$VERSION"
1408EOF
1409
1410
1411
1412missing_dir=`cd $ac_aux_dir && pwd`
1413echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1414echo "configure:1415: checking for working aclocal" >&5
1415# Run test in a subshell; some versions of sh will print an error if
1416# an executable is not found, even if stderr is redirected.
1417# Redirect stdin to placate older versions of autoconf. Sigh.
1418if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1419 ACLOCAL=aclocal
1420 echo "$ac_t""found" 1>&6
1421else
1422 ACLOCAL="$missing_dir/missing aclocal"
1423 echo "$ac_t""missing" 1>&6
1424fi
1425
1426echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1427echo "configure:1428: checking for working autoconf" >&5
1428# Run test in a subshell; some versions of sh will print an error if
1429# an executable is not found, even if stderr is redirected.
1430# Redirect stdin to placate older versions of autoconf. Sigh.
1431if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1432 AUTOCONF=autoconf
1433 echo "$ac_t""found" 1>&6
1434else
1435 AUTOCONF="$missing_dir/missing autoconf"
1436 echo "$ac_t""missing" 1>&6
1437fi
1438
1439echo $ac_n "checking for working automake""... $ac_c" 1>&6
1440echo "configure:1441: checking for working automake" >&5
1441# Run test in a subshell; some versions of sh will print an error if
1442# an executable is not found, even if stderr is redirected.
1443# Redirect stdin to placate older versions of autoconf. Sigh.
1444if (automake --version) < /dev/null > /dev/null 2>&1; then
1445 AUTOMAKE=automake
1446 echo "$ac_t""found" 1>&6
1447else
1448 AUTOMAKE="$missing_dir/missing automake"
1449 echo "$ac_t""missing" 1>&6
1450fi
1451
1452echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1453echo "configure:1454: checking for working autoheader" >&5
1454# Run test in a subshell; some versions of sh will print an error if
1455# an executable is not found, even if stderr is redirected.
1456# Redirect stdin to placate older versions of autoconf. Sigh.
1457if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1458 AUTOHEADER=autoheader
1459 echo "$ac_t""found" 1>&6
1460else
1461 AUTOHEADER="$missing_dir/missing autoheader"
1462 echo "$ac_t""missing" 1>&6
1463fi
1464
1465echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1466echo "configure:1467: checking for working makeinfo" >&5
1467# Run test in a subshell; some versions of sh will print an error if
1468# an executable is not found, even if stderr is redirected.
1469# Redirect stdin to placate older versions of autoconf. Sigh.
1470if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1471 MAKEINFO=makeinfo
1472 echo "$ac_t""found" 1>&6
1473else
1474 MAKEINFO="$missing_dir/missing makeinfo"
1475 echo "$ac_t""missing" 1>&6
1476fi
1477
1478
1479
1480# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1481# run it explicitly here, it will be run implicitly before
1482# LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1483# be run before AC_CANONICAL_HOST.
1484echo $ac_n "checking build system type""... $ac_c" 1>&6
1485echo "configure:1486: checking build system type" >&5
1486
1487build_alias=$build
1488case "$build_alias" in
1489NONE)
1490 case $nonopt in
1491 NONE) build_alias=$host_alias ;;
1492 *) build_alias=$nonopt ;;
1493 esac ;;
1494esac
1495
1496build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1497build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1498build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1499build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1500echo "$ac_t""$build" 1>&6
1501
1502
1503# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1504set dummy ${ac_tool_prefix}as; ac_word=$2
1505echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506echo "configure:1507: checking for $ac_word" >&5
1507if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1509else
1510 if test -n "$AS"; then
1511 ac_cv_prog_AS="$AS" # Let the user override the test.
1512else
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1514 ac_dummy="$PATH"
1515 for ac_dir in $ac_dummy; do
1516 test -z "$ac_dir" && ac_dir=.
1517 if test -f $ac_dir/$ac_word -o \
1518 -f $ac_dir/$ac_word$ac_exeext ; then
1519 ac_cv_prog_AS="${ac_tool_prefix}as"
1520 break
1521 fi
1522 done
1523 IFS="$ac_save_ifs"
1524 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1525fi
1526fi
1527AS="$ac_cv_prog_AS"
1528if test -n "$AS"; then
1529 echo "$ac_t""$AS" 1>&6
1530else
1531 echo "$ac_t""no" 1>&6
1532fi
1533
1534
1535
1536# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1537set dummy ${ac_tool_prefix}ar; ac_word=$2
1538echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1539echo "configure:1540: checking for $ac_word" >&5
1540if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1542else
1543 if test -n "$AR"; then
1544 ac_cv_prog_AR="$AR" # Let the user override the test.
1545else
1546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1547 ac_dummy="$PATH"
1548 for ac_dir in $ac_dummy; do
1549 test -z "$ac_dir" && ac_dir=.
1550 if test -f $ac_dir/$ac_word -o \
1551 -f $ac_dir/$ac_word$ac_exeext ; then
1552 ac_cv_prog_AR="${ac_tool_prefix}ar"
1553 break
1554 fi
1555 done
1556 IFS="$ac_save_ifs"
1557 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1558fi
1559fi
1560AR="$ac_cv_prog_AR"
1561if test -n "$AR"; then
1562 echo "$ac_t""$AR" 1>&6
1563else
1564 echo "$ac_t""no" 1>&6
1565fi
1566
1567
1568
1569# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1570set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1571echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572echo "configure:1573: checking for $ac_word" >&5
1573if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1575else
1576 if test -n "$RANLIB"; then
1577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1578else
1579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1580 ac_dummy="$PATH"
1581 for ac_dir in $ac_dummy; do
1582 test -z "$ac_dir" && ac_dir=.
1583 if test -f $ac_dir/$ac_word -o \
1584 -f $ac_dir/$ac_word$ac_exeext ; then
1585 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1586 break
1587 fi
1588 done
1589 IFS="$ac_save_ifs"
1590fi
1591fi
1592RANLIB="$ac_cv_prog_RANLIB"
1593if test -n "$RANLIB"; then
1594 echo "$ac_t""$RANLIB" 1>&6
1595else
1596 echo "$ac_t""no" 1>&6
1597fi
1598
1599
1600if test -z "$ac_cv_prog_RANLIB"; then
1601if test -n "$ac_tool_prefix"; then
1602 # Extract the first word of "ranlib", so it can be a program name with args.
1603set dummy ranlib; ac_word=$2
1604echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1605echo "configure:1606: checking for $ac_word" >&5
1606if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1608else
1609 if test -n "$RANLIB"; then
1610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1611else
1612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1613 ac_dummy="$PATH"
1614 for ac_dir in $ac_dummy; do
1615 test -z "$ac_dir" && ac_dir=.
1616 if test -f $ac_dir/$ac_word -o \
1617 -f $ac_dir/$ac_word$ac_exeext ; then
1618 ac_cv_prog_RANLIB="ranlib"
1619 break
1620 fi
1621 done
1622 IFS="$ac_save_ifs"
1623 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1624fi
1625fi
1626RANLIB="$ac_cv_prog_RANLIB"
1627if test -n "$RANLIB"; then
1628 echo "$ac_t""$RANLIB" 1>&6
1629else
1630 echo "$ac_t""no" 1>&6
1631fi
1632
1633else
1634 RANLIB=":"
1635fi
1636fi
1637
1638
1639# Find a good install program. We prefer a C program (faster),
1640# so one script is as good as another. But avoid the broken or
1641# incompatible versions:
1642# SysV /etc/install, /usr/sbin/install
1643# SunOS /usr/etc/install
1644# IRIX /sbin/install
1645# AIX /bin/install
1646# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1647# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1648# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1649# ./install, which can be erroneously created by make from ./install.sh.
1650echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1651echo "configure:1652: checking for a BSD compatible install" >&5
1652if test -z "$INSTALL"; then
1653if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1655else
1656 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1657 for ac_dir in $PATH; do
1658 # Account for people who put trailing slashes in PATH elements.
1659 case "$ac_dir/" in
1660 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1661 # We reject the install program from OS/2 or W3.1
1662 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1663 *)
1664 # OSF1 and SCO ODT 3.0 have their own names for install.
1665 # Don't use installbsd from OSF since it installs stuff as root
1666 # by default.
1667 for ac_prog in ginstall scoinst install; do
1668 if test -f $ac_dir/$ac_prog$ac_exeext; then
1669 if test $ac_prog = install &&
1670 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1671 # AIX install. It has an incompatible calling convention.
1672 :
1673 else
1674 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1675 break 2
1676 fi
1677 fi
1678 done
1679 ;;
1680 esac
1681 done
1682 IFS="$ac_save_IFS"
1683
1684fi
1685 if test "${ac_cv_path_install+set}" = set; then
1686 INSTALL="$ac_cv_path_install"
1687 else
1688 # As a last resort, use the slow shell script. We don't cache a
1689 # path for INSTALL within a source directory, because that will
1690 # break other packages using the cache if that directory is
1691 # removed, or if the path is relative.
1692 INSTALL="$ac_install_sh"
1693 fi
1694fi
1695echo "$ac_t""$INSTALL" 1>&6
1696
1697# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1698# It thinks the first close brace ends the variable substitution.
1699test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1700
1701test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1702
1703test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1704
1705
1706echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1707echo "configure:1708: checking whether to enable maintainer-specific portions of Makefiles" >&5
1708 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1709if test "${enable_maintainer_mode+set}" = set; then
1710 enableval="$enable_maintainer_mode"
1711 USE_MAINTAINER_MODE=$enableval
1712else
1713 USE_MAINTAINER_MODE=no
1714fi
1715
1716 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1717
1718
1719if test $USE_MAINTAINER_MODE = yes; then
1720 MAINTAINER_MODE_TRUE=
1721 MAINTAINER_MODE_FALSE='#'
1722else
1723 MAINTAINER_MODE_TRUE='#'
1724 MAINTAINER_MODE_FALSE=
1725fi
1726 MAINT=$MAINTAINER_MODE_TRUE
1727
1728
1729
1730# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1731# at least currently, we never actually build a program, so we never
1732# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1733# fails, because we are probably configuring with a cross compiler
1734# which cant create executables. So we include AC_EXEEXT to keep
1735# automake happy, but we don't execute it, since we don't care about
1736# the result.
1737if false; then
1738 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1739 # to nothing, so nothing would remain between `then' and `fi' if it
1740 # were not for the `:' below.
1741 :
1742
1743
1744
1745echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1746echo "configure:1747: checking for executable suffix" >&5
1747if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1749else
1750 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
1751 ac_cv_exeext=.exe
1752else
1753 rm -f conftest*
1754 echo 'int main () { return 0; }' > conftest.$ac_ext
1755 ac_cv_exeext=
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1757 for file in conftest.*; do
1758 case $file in
1759 *.c | *.o | *.obj) ;;
1760 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1761 esac
1762 done
1763 else
1764 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1765 fi
1766 rm -f conftest*
1767 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1768fi
1769fi
1770
1771EXEEXT=""
1772test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1773echo "$ac_t""${ac_cv_exeext}" 1>&6
1774ac_exeext=$EXEEXT
1775
1776fi
1777
1778# configure.host sets the following important variables
1779# libgcj_cflags - host specific C compiler flags
1780# libgcj_cxxflags - host specific C++ compiler flags
1781# libgcj_javaflags - host specific Java compiler flags
1782
1783libgcj_cflags=
1784libgcj_cxxflags=
1785libgcj_javaflags=
1786
1787. ${srcdir}/configure.host
1788
1789LIBGCJ_CFLAGS="${libgcj_cflags}"
1790LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1791LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801# Only use libltdl for native builds.
1802if test -z "${with_cross_host}"; then
1803 case $enable_ltdl_convenience in
1804 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1805 "") enable_ltdl_convenience=yes
1806 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1807 esac
1808 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1809 INCLTDL='-I${top_srcdir}/''libltdl'
1810
1811
1812 DIRLTDL=libltdl
1813 cat >> confdefs.h <<\EOF
1814#define USE_LTDL 1
1815EOF
1816
1817 # Sigh. Libtool's macro doesn't do the right thing.
1818 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1819 # FIXME: this is a hack.
1820 sub_auxdir="`cd $ac_aux_dir && pwd`"
1821 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1822fi
1823
1824
1825
1826# Check whether --enable-shared or --disable-shared was given.
1827if test "${enable_shared+set}" = set; then
1828 enableval="$enable_shared"
1829 p=${PACKAGE-default}
1830case $enableval in
1831yes) enable_shared=yes ;;
1832no) enable_shared=no ;;
1833*)
1834 enable_shared=no
1835 # Look at the argument we got. We use all the common list separators.
1836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1837 for pkg in $enableval; do
1838 if test "X$pkg" = "X$p"; then
1839 enable_shared=yes
1840 fi
1841 done
1842 IFS="$ac_save_ifs"
1843 ;;
1844esac
1845else
1846 enable_shared=yes
1847fi
1848
1849# Check whether --enable-static or --disable-static was given.
1850if test "${enable_static+set}" = set; then
1851 enableval="$enable_static"
1852 p=${PACKAGE-default}
1853case $enableval in
1854yes) enable_static=yes ;;
1855no) enable_static=no ;;
1856*)
1857 enable_static=no
1858 # Look at the argument we got. We use all the common list separators.
1859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1860 for pkg in $enableval; do
1861 if test "X$pkg" = "X$p"; then
1862 enable_static=yes
1863 fi
1864 done
1865 IFS="$ac_save_ifs"
1866 ;;
1867esac
1868else
1869 enable_static=yes
1870fi
1871
1872# Check whether --enable-fast-install or --disable-fast-install was given.
1873if test "${enable_fast_install+set}" = set; then
1874 enableval="$enable_fast_install"
1875 p=${PACKAGE-default}
1876case $enableval in
1877yes) enable_fast_install=yes ;;
1878no) enable_fast_install=no ;;
1879*)
1880 enable_fast_install=no
1881 # Look at the argument we got. We use all the common list separators.
1882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1883 for pkg in $enableval; do
1884 if test "X$pkg" = "X$p"; then
1885 enable_fast_install=yes
1886 fi
1887 done
1888 IFS="$ac_save_ifs"
1889 ;;
1890esac
1891else
1892 enable_fast_install=yes
1893fi
1894
1895# Check whether --with-gnu-ld or --without-gnu-ld was given.
1896if test "${with_gnu_ld+set}" = set; then
1897 withval="$with_gnu_ld"
1898 test "$withval" = no || with_gnu_ld=yes
1899else
1900 with_gnu_ld=no
1901fi
1902
1903ac_prog=ld
1904if test "$GCC" = yes; then
1905 # Check if gcc -print-prog-name=ld gives a path.
1906 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1907echo "configure:1908: checking for ld used by GCC" >&5
1908 case $host in
1909 *-*-mingw*)
1910 # gcc leaves a trailing carriage return which upsets mingw
1911 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1912 *)
1913 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1914 esac
1915 case $ac_prog in
1916 # Accept absolute paths.
1917 [\\/]* | [A-Za-z]:[\\/]*)
1918 re_direlt='/[^/][^/]*/\.\./'
1919 # Canonicalize the path of ld
1920 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1921 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1922 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1923 done
1924 test -z "$LD" && LD="$ac_prog"
1925 ;;
1926 "")
1927 # If it fails, then pretend we aren't using GCC.
1928 ac_prog=ld
1929 ;;
1930 *)
1931 # If it is relative, then search for the first ld in PATH.
1932 with_gnu_ld=unknown
1933 ;;
1934 esac
1935elif test "$with_gnu_ld" = yes; then
1936 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1937echo "configure:1938: checking for GNU ld" >&5
1938else
1939 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1940echo "configure:1941: checking for non-GNU ld" >&5
1941fi
1942if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944else
1945 if test -z "$LD"; then
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1947 for ac_dir in $PATH; do
1948 test -z "$ac_dir" && ac_dir=.
1949 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1950 lt_cv_path_LD="$ac_dir/$ac_prog"
1951 # Check to see if the program is GNU ld. I'd rather use --version,
1952 # but apparently some GNU ld's only accept -v.
1953 # Break only if it was the GNU/non-GNU ld that we prefer.
1954 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1955 test "$with_gnu_ld" != no && break
1956 else
1957 test "$with_gnu_ld" != yes && break
1958 fi
1959 fi
1960 done
1961 IFS="$ac_save_ifs"
1962else
1963 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1964fi
1965fi
1966
1967LD="$lt_cv_path_LD"
1968if test -n "$LD"; then
1969 echo "$ac_t""$LD" 1>&6
1970else
1971 echo "$ac_t""no" 1>&6
1972fi
1973test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1974echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1975echo "configure:1976: checking if the linker ($LD) is GNU ld" >&5
1976if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1978else
1979 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1980if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1981 lt_cv_prog_gnu_ld=yes
1982else
1983 lt_cv_prog_gnu_ld=no
1984fi
1985fi
1986
1987echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1988with_gnu_ld=$lt_cv_prog_gnu_ld
1989
1990
1991echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1992echo "configure:1993: checking for $LD option to reload object files" >&5
1993if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1995else
1996 lt_cv_ld_reload_flag='-r'
1997fi
1998
1999echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2000reload_flag=$lt_cv_ld_reload_flag
2001test -n "$reload_flag" && reload_flag=" $reload_flag"
2002
2003echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2004echo "configure:2005: checking for BSD-compatible nm" >&5
2005if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2007else
2008 if test -n "$NM"; then
2009 # Let the user override the test.
2010 lt_cv_path_NM="$NM"
2011else
2012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2013 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2014 test -z "$ac_dir" && ac_dir=.
2015 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2016 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2017 # Check to see if the nm accepts a BSD-compat flag.
2018 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2019 # nm: unknown option "B" ignored
2020 # Tru64's nm complains that /dev/null is an invalid object file
2021 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2022 lt_cv_path_NM="$tmp_nm -B"
2023 break
2024 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2025 lt_cv_path_NM="$tmp_nm -p"
2026 break
2027 else
2028 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2029 continue # so that we can try to find one that supports BSD flags
2030 fi
2031 fi
2032 done
2033 IFS="$ac_save_ifs"
2034 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2035fi
2036fi
2037
2038NM="$lt_cv_path_NM"
2039echo "$ac_t""$NM" 1>&6
2040
2041echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2042echo "configure:2043: checking how to recognise dependant libraries" >&5
2043if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045else
2046 lt_cv_file_magic_cmd='$MAGIC_CMD'
2047lt_cv_file_magic_test_file=
2048lt_cv_deplibs_check_method='unknown'
2049# Need to set the preceding variable on all platforms that support
2050# interlibrary dependencies.
2051# 'none' -- dependencies not supported.
2052# `unknown' -- same as none, but documents that we really don't know.
2053# 'pass_all' -- all dependencies passed with no checks.
2054# 'test_compile' -- check by making test program.
2055# 'file_magic [regex]' -- check by looking for files in library path
2056# which responds to the $file_magic_cmd with a given egrep regex.
2057# If you have `file' or equivalent on your system and you're not sure
2058# whether `pass_all' will *always* work, you probably want this one.
2059
2060case $host_os in
2061aix*)
2062 lt_cv_deplibs_check_method=pass_all
2063 ;;
2064
2065beos*)
2066 lt_cv_deplibs_check_method=pass_all
2067 ;;
2068
2069bsdi4*)
2070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2071 lt_cv_file_magic_cmd='/usr/bin/file -L'
2072 lt_cv_file_magic_test_file=/shlib/libc.so
2073 ;;
2074
2075cygwin* | mingw* |pw32*)
2076 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2077 lt_cv_file_magic_cmd='$OBJDUMP -f'
2078 ;;
2079
2080darwin* | rhapsody*)
2081 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2082 lt_cv_file_magic_cmd='/usr/bin/file -L'
2083 case "$host_os" in
2084 rhapsody* | darwin1.012)
2085 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2086 ;;
2087 *) # Darwin 1.3 on
2088 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2089 ;;
2090 esac
2091 ;;
2092
2093freebsd* )
2094 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2095 case $host_cpu in
2096 i*86 )
2097 # Not sure whether the presence of OpenBSD here was a mistake.
2098 # Let's accept both of them until this is cleared up.
2099 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2100 lt_cv_file_magic_cmd=/usr/bin/file
2101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2102 ;;
2103 esac
2104 else
2105 lt_cv_deplibs_check_method=pass_all
2106 fi
2107 ;;
2108
2109gnu*)
2110 lt_cv_deplibs_check_method=pass_all
2111 ;;
2112
2113hpux10.20*|hpux11*)
2114 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2115 lt_cv_file_magic_cmd=/usr/bin/file
2116 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2117 ;;
2118
2119irix5* | irix6*)
2120 case $host_os in
2121 irix5*)
2122 # this will be overridden with pass_all, but let us keep it just in case
2123 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2124 ;;
2125 *)
2126 case $LD in
2127 *-32|*"-32 ") libmagic=32-bit;;
2128 *-n32|*"-n32 ") libmagic=N32;;
2129 *-64|*"-64 ") libmagic=64-bit;;
2130 *) libmagic=never-match;;
2131 esac
2132 # this will be overridden with pass_all, but let us keep it just in case
2133 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2134 ;;
2135 esac
2136 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2137 lt_cv_deplibs_check_method=pass_all
2138 ;;
2139
2140# This must be Linux ELF.
2141linux-gnu*)
2142 case $host_cpu in
2143 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2144 lt_cv_deplibs_check_method=pass_all ;;
2145 *)
2146 # glibc up to 2.1.1 does not perform some relocations on ARM
2147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2148 esac
2149 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2150 ;;
2151
2152netbsd*)
2153 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2154 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2155 else
2156 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2157 fi
2158 ;;
2159
2160newsos6)
2161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2162 lt_cv_file_magic_cmd=/usr/bin/file
2163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2164 ;;
2165
2166osf3* | osf4* | osf5*)
2167 # this will be overridden with pass_all, but let us keep it just in case
2168 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2169 lt_cv_file_magic_test_file=/shlib/libc.so
2170 lt_cv_deplibs_check_method=pass_all
2171 ;;
2172
2173sco3.2v5*)
2174 lt_cv_deplibs_check_method=pass_all
2175 ;;
2176
2177solaris*)
2178 lt_cv_deplibs_check_method=pass_all
2179 lt_cv_file_magic_test_file=/lib/libc.so
2180 ;;
2181
2182sysv5uw[78]* | sysv4*uw2*)
2183 lt_cv_deplibs_check_method=pass_all
2184 ;;
2185
2186sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2187 case $host_vendor in
2188 ncr)
2189 lt_cv_deplibs_check_method=pass_all
2190 ;;
2191 motorola)
2192 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]'
2193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2194 ;;
2195 esac
2196 ;;
2197esac
2198
2199fi
2200
2201echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2202file_magic_cmd=$lt_cv_file_magic_cmd
2203deplibs_check_method=$lt_cv_deplibs_check_method
2204
2205echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2206echo "configure:2207: checking for object suffix" >&5
2207if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209else
2210 rm -f conftest*
2211echo 'int i = 1;' > conftest.$ac_ext
2212if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2213 for ac_file in conftest.*; do
2214 case $ac_file in
2215 *.c) ;;
2216 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2217 esac
2218 done
2219else
2220 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2221fi
2222rm -f conftest*
2223fi
2224
2225echo "$ac_t""$ac_cv_objext" 1>&6
2226OBJEXT=$ac_cv_objext
2227ac_objext=$ac_cv_objext
2228
2229# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2230
2231# Only perform the check for file, if the check method requires it
2232case $deplibs_check_method in
2233file_magic*)
2234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2235 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2236echo "configure:2237: checking for ${ac_tool_prefix}file" >&5
2237if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239else
2240 case $MAGIC_CMD in
2241 /*)
2242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2243 ;;
2244 ?:/*)
2245 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2246 ;;
2247 *)
2248 ac_save_MAGIC_CMD="$MAGIC_CMD"
2249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2250 ac_dummy="/usr/bin:$PATH"
2251 for ac_dir in $ac_dummy; do
2252 test -z "$ac_dir" && ac_dir=.
2253 if test -f $ac_dir/${ac_tool_prefix}file; then
2254 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2255 if test -n "$file_magic_test_file"; then
2256 case $deplibs_check_method in
2257 "file_magic "*)
2258 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2261 egrep "$file_magic_regex" > /dev/null; then
2262 :
2263 else
2264 cat <<EOF 1>&2
2265
2266*** Warning: the command libtool uses to detect shared libraries,
2267*** $file_magic_cmd, produces output that libtool cannot recognize.
2268*** The result is that libtool may fail to recognize shared libraries
2269*** as such. This will affect the creation of libtool libraries that
2270*** depend on shared libraries, but programs linked with such libtool
2271*** libraries will work regardless of this problem. Nevertheless, you
2272*** may want to report the problem to your system manager and/or to
2273*** [email protected]
2274
2275EOF
2276 fi ;;
2277 esac
2278 fi
2279 break
2280 fi
2281 done
2282 IFS="$ac_save_ifs"
2283 MAGIC_CMD="$ac_save_MAGIC_CMD"
2284 ;;
2285esac
2286fi
2287
2288MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2289if test -n "$MAGIC_CMD"; then
2290 echo "$ac_t""$MAGIC_CMD" 1>&6
2291else
2292 echo "$ac_t""no" 1>&6
2293fi
2294
2295if test -z "$lt_cv_path_MAGIC_CMD"; then
2296 if test -n "$ac_tool_prefix"; then
2297 echo $ac_n "checking for file""... $ac_c" 1>&6
2298echo "configure:2299: checking for file" >&5
2299if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301else
2302 case $MAGIC_CMD in
2303 /*)
2304 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2305 ;;
2306 ?:/*)
2307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2308 ;;
2309 *)
2310 ac_save_MAGIC_CMD="$MAGIC_CMD"
2311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2312 ac_dummy="/usr/bin:$PATH"
2313 for ac_dir in $ac_dummy; do
2314 test -z "$ac_dir" && ac_dir=.
2315 if test -f $ac_dir/file; then
2316 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2317 if test -n "$file_magic_test_file"; then
2318 case $deplibs_check_method in
2319 "file_magic "*)
2320 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2323 egrep "$file_magic_regex" > /dev/null; then
2324 :
2325 else
2326 cat <<EOF 1>&2
2327
2328*** Warning: the command libtool uses to detect shared libraries,
2329*** $file_magic_cmd, produces output that libtool cannot recognize.
2330*** The result is that libtool may fail to recognize shared libraries
2331*** as such. This will affect the creation of libtool libraries that
2332*** depend on shared libraries, but programs linked with such libtool
2333*** libraries will work regardless of this problem. Nevertheless, you
2334*** may want to report the problem to your system manager and/or to
2335*** [email protected]
2336
2337EOF
2338 fi ;;
2339 esac
2340 fi
2341 break
2342 fi
2343 done
2344 IFS="$ac_save_ifs"
2345 MAGIC_CMD="$ac_save_MAGIC_CMD"
2346 ;;
2347esac
2348fi
2349
2350MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2351if test -n "$MAGIC_CMD"; then
2352 echo "$ac_t""$MAGIC_CMD" 1>&6
2353else
2354 echo "$ac_t""no" 1>&6
2355fi
2356
2357 else
2358 MAGIC_CMD=:
2359 fi
2360fi
2361
2362 fi
2363 ;;
2364esac
2365
2366# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2367set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2368echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2369echo "configure:2370: checking for $ac_word" >&5
2370if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2372else
2373 if test -n "$RANLIB"; then
2374 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2375else
2376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2377 ac_dummy="$PATH"
2378 for ac_dir in $ac_dummy; do
2379 test -z "$ac_dir" && ac_dir=.
2380 if test -f $ac_dir/$ac_word -o \
2381 -f $ac_dir/$ac_word$ac_exeext ; then
2382 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2383 break
2384 fi
2385 done
2386 IFS="$ac_save_ifs"
2387fi
2388fi
2389RANLIB="$ac_cv_prog_RANLIB"
2390if test -n "$RANLIB"; then
2391 echo "$ac_t""$RANLIB" 1>&6
2392else
2393 echo "$ac_t""no" 1>&6
2394fi
2395
2396
2397if test -z "$ac_cv_prog_RANLIB"; then
2398if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "ranlib", so it can be a program name with args.
2400set dummy ranlib; ac_word=$2
2401echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2402echo "configure:2403: checking for $ac_word" >&5
2403if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2405else
2406 if test -n "$RANLIB"; then
2407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2408else
2409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2410 ac_dummy="$PATH"
2411 for ac_dir in $ac_dummy; do
2412 test -z "$ac_dir" && ac_dir=.
2413 if test -f $ac_dir/$ac_word -o \
2414 -f $ac_dir/$ac_word$ac_exeext ; then
2415 ac_cv_prog_RANLIB="ranlib"
2416 break
2417 fi
2418 done
2419 IFS="$ac_save_ifs"
2420 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2421fi
2422fi
2423RANLIB="$ac_cv_prog_RANLIB"
2424if test -n "$RANLIB"; then
2425 echo "$ac_t""$RANLIB" 1>&6
2426else
2427 echo "$ac_t""no" 1>&6
2428fi
2429
2430else
2431 RANLIB=":"
2432fi
2433fi
2434
2435# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436set dummy ${ac_tool_prefix}strip; ac_word=$2
2437echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2438echo "configure:2439: checking for $ac_word" >&5
2439if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2441else
2442 if test -n "$STRIP"; then
2443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444else
2445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2446 ac_dummy="$PATH"
2447 for ac_dir in $ac_dummy; do
2448 test -z "$ac_dir" && ac_dir=.
2449 if test -f $ac_dir/$ac_word -o \
2450 -f $ac_dir/$ac_word$ac_exeext ; then
2451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2452 break
2453 fi
2454 done
2455 IFS="$ac_save_ifs"
2456fi
2457fi
2458STRIP="$ac_cv_prog_STRIP"
2459if test -n "$STRIP"; then
2460 echo "$ac_t""$STRIP" 1>&6
2461else
2462 echo "$ac_t""no" 1>&6
2463fi
2464
2465
2466if test -z "$ac_cv_prog_STRIP"; then
2467if test -n "$ac_tool_prefix"; then
2468 # Extract the first word of "strip", so it can be a program name with args.
2469set dummy strip; ac_word=$2
2470echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2471echo "configure:2472: checking for $ac_word" >&5
2472if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2474else
2475 if test -n "$STRIP"; then
2476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477else
2478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2479 ac_dummy="$PATH"
2480 for ac_dir in $ac_dummy; do
2481 test -z "$ac_dir" && ac_dir=.
2482 if test -f $ac_dir/$ac_word -o \
2483 -f $ac_dir/$ac_word$ac_exeext ; then
2484 ac_cv_prog_STRIP="strip"
2485 break
2486 fi
2487 done
2488 IFS="$ac_save_ifs"
2489 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2490fi
2491fi
2492STRIP="$ac_cv_prog_STRIP"
2493if test -n "$STRIP"; then
2494 echo "$ac_t""$STRIP" 1>&6
2495else
2496 echo "$ac_t""no" 1>&6
2497fi
2498
2499else
2500 STRIP=":"
2501fi
2502fi
2503
2504
2505# Check for any special flags to pass to ltconfig.
2506libtool_flags="--cache-file=$cache_file"
2507test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2508test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2509test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2510test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2511test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2512libtool_flags="$libtool_flags --enable-dlopen"
2513
2514# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2515if test "${enable_libtool_lock+set}" = set; then
2516 enableval="$enable_libtool_lock"
2517 :
2518fi
2519
2520test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2521test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2522
2523# Check whether --with-pic or --without-pic was given.
2524if test "${with_pic+set}" = set; then
2525 withval="$with_pic"
2526 pic_mode="$withval"
2527else
2528 pic_mode=default
2529fi
2530
2531test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2532test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2533
2534# Some flags need to be propagated to the compiler or linker for good
2535# libtool support.
2536case $host in
2537*-*-irix6*)
2538 # Find out which ABI we are using.
2539 echo '#line 2540 "configure"' > conftest.$ac_ext
2540 if { (eval echo configure:2541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2541 case `/usr/bin/file conftest.$ac_objext` in
2542 *32-bit*)
2543 LD="${LD-ld} -32"
2544 ;;
2545 *N32*)
2546 LD="${LD-ld} -n32"
2547 ;;
2548 *64-bit*)
2549 LD="${LD-ld} -64"
2550 ;;
2551 esac
2552 fi
2553 rm -rf conftest*
2554 ;;
2555
2556*-*-sco3.2v5*)
2557 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2558 SAVE_CFLAGS="$CFLAGS"
2559 CFLAGS="$CFLAGS -belf"
2560 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2561echo "configure:2562: checking whether the C compiler needs -belf" >&5
2562if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564else
2565
2566 ac_ext=c
2567# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2568ac_cpp='$CPP $CPPFLAGS'
2569ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2570ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2571cross_compiling=$ac_cv_prog_cc_cross
2572
2573 cat > conftest.$ac_ext <<EOF
2574#line 2575 "configure"
2575#include "confdefs.h"
2576
2577int main() {
2578
2579; return 0; }
2580EOF
2581if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2582 rm -rf conftest*
2583 lt_cv_cc_needs_belf=yes
2584else
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2587 rm -rf conftest*
2588 lt_cv_cc_needs_belf=no
2589fi
2590rm -f conftest*
2591 ac_ext=c
2592# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2593ac_cpp='$CPP $CPPFLAGS'
2594ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2595ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2596cross_compiling=$ac_cv_prog_cc_cross
2597
2598fi
2599
2600echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2601 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2602 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2603 CFLAGS="$SAVE_CFLAGS"
2604 fi
2605 ;;
2606
2607
2608esac
2609
2610echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2611echo "configure:2612: checking how to run the C++ preprocessor" >&5
2612if test -z "$CXXCPP"; then
2613if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2615else
2616 ac_ext=C
2617# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2618ac_cpp='$CXXCPP $CPPFLAGS'
2619ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2620ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2621cross_compiling=$ac_cv_prog_cxx_cross
2622 CXXCPP="${CXX-g++} -E"
2623 cat > conftest.$ac_ext <<EOF
2624#include <sys/types.h>
2625#line 2626 "configure"
2626#include "confdefs.h"
2627#include <stdlib.h>
2628EOF
2629ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630{ (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2632if test -z "$ac_err"; then
2633 :
2634else
2635 echo "$ac_err" >&5
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 rm -rf conftest*
2639 CXXCPP=/lib/cpp
2640fi
2641rm -f conftest*
2642 ac_cv_prog_CXXCPP="$CXXCPP"
2643ac_ext=c
2644# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2645ac_cpp='$CPP $CPPFLAGS'
2646ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2647ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2648cross_compiling=$ac_cv_prog_cc_cross
2649fi
2650fi
2651CXXCPP="$ac_cv_prog_CXXCPP"
2652echo "$ac_t""$CXXCPP" 1>&6
2653
2654
2655# Save cache, so that ltconfig can load it
2656cat > confcache <<\EOF
2657# This file is a shell script that caches the results of configure
2658# tests run on this system so they can be shared between configure
2659# scripts and configure runs. It is not useful on other systems.
2660# If it contains results you don't want to keep, you may remove or edit it.
2661#
2662# By default, configure uses ./config.cache as the cache file,
2663# creating it if it does not exist already. You can give configure
2664# the --cache-file=FILE option to use a different cache file; that is
2665# what configure does when it calls configure scripts in
2666# subdirectories, so they share the cache.
2667# Giving --cache-file=/dev/null disables caching, for debugging configure.
2668# config.status only pays attention to the cache file if you give it the
2669# --recheck option to rerun configure.
2670#
2671EOF
2672# The following way of writing the cache mishandles newlines in values,
2673# but we know of no workaround that is simple, portable, and efficient.
2674# So, don't put newlines in cache variables' values.
2675# Ultrix sh set writes to stderr and can't be redirected directly,
2676# and sets the high bit in the cache file unless we assign to the vars.
2677(set) 2>&1 |
2678 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2679 *ac_space=\ *)
2680 # `set' does not quote correctly, so add quotes (double-quote substitution
2681 # turns \\\\ into \\, and sed turns \\ into \).
2682 sed -n \
2683 -e "s/'/'\\\\''/g" \
2684 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2685 ;;
2686 *)
2687 # `set' quotes correctly as required by POSIX, so do not add quotes.
2688 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2689 ;;
2690 esac >> confcache
2691if cmp -s $cache_file confcache; then
2692 :
2693else
2694 if test -w $cache_file; then
2695 echo "updating cache $cache_file"
2696 cat confcache > $cache_file
2697 else
2698 echo "not updating unwritable cache $cache_file"
2699 fi
2700fi
2701rm -f confcache
2702
2703
2704# Actually configure libtool. ac_aux_dir is where install-sh is found.
2705AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2706MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2707LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2708AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2709objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2710deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2711${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2712$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2713|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2714
2715# Reload cache, that may have been modified by ltconfig
2716if test -r "$cache_file"; then
2717 echo "loading cache $cache_file"
2718 . $cache_file
2719else
2720 echo "creating cache $cache_file"
2721 > $cache_file
2722fi
2723
2724
2725# This can be used to rebuild libtool when needed
2726LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2727
2728# Always use our own libtool.
2729LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2730
2731# Redirect the config.log output again, so that the ltconfig log is not
2732# clobbered by the next message.
2733exec 5>>./config.log
2734
2735
2736
2737LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2738lt_save_CC="$CC"
2739lt_save_CFLAGS="$CFLAGS"
2740AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2741MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2742LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2743AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2744objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2745deplibs_check_method="$deplibs_check_method" \
2746file_magic_cmd="$file_magic_cmd" \
2747${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2748--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2749|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2750CC="$lt_save_CC"
2751CFLAGS="$lt_save_CFLAGS"
2752
2753# Redirect the config.log output again, so that the ltconfig log is not
2754# clobbered by the next message.
2755exec 5>>./config.log
2756
2757
2758
2759
2760
2761
2762subdirs="$DIRLTDL"
2763
2764
2765if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2766 COMPPATH=.
2767else
2768 COMPPATH=..
2769fi
2770
2771
2772
2773
2774if test -d $srcdir/testsuite; then
2775 TESTSUBDIR_TRUE=
2776 TESTSUBDIR_FALSE='#'
2777else
2778 TESTSUBDIR_TRUE='#'
2779 TESTSUBDIR_FALSE=
2780fi
2781
2782# Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2783if test "${enable_getenv_properties+set}" = set; then
2784 enableval="$enable_getenv_properties"
2785 :
2786fi
2787
2788
2789if test -z "$enable_getenv_properties"; then
2790 enable_getenv_properties=${enable_getenv_properties_default-yes}
2791fi
2792if test "$enable_getenv_properties" = no; then
2793 cat >> confdefs.h <<\EOF
2794#define DISABLE_GETENV_PROPERTIES 1
2795EOF
2796
2797fi
2798
2799if test -z "$enable_main_args"; then
2800 enable_main_args=${enable_main_args_default-yes}
2801fi
2802if test "$enable_main_args" = no; then
2803 cat >> confdefs.h <<\EOF
2804#define DISABLE_MAIN_ARGS 1
2805EOF
2806
2807fi
2808
2809
2810# Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2811if test "${enable_hash_synchronization+set}" = set; then
2812 enableval="$enable_hash_synchronization"
2813 :
2814fi
2815
2816
2817if test -z "$enable_hash_synchronization"; then
2818 enable_hash_synchronization=$enable_hash_synchronization_default
2819fi
2820
2821if test "${slow_pthread_self}" = "yes"; then
2822 cat >> confdefs.h <<\EOF
2823#define SLOW_PTHREAD_SELF 1
2824EOF
2825
2826fi
2827
2828
2829LIBGCJDEBUG="false"
2830
2831# Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2832if test "${enable_libgcj_debug+set}" = set; then
2833 enableval="$enable_libgcj_debug"
2834 if test "$enable_libgcj_debug" = yes; then
2835 cat >> confdefs.h <<\EOF
2836#define DEBUG 1
2837EOF
2838
2839 LIBGCJDEBUG="true"
2840 fi
2841fi
2842
2843
2844# Check whether --enable-interpreter or --disable-interpreter was given.
2845if test "${enable_interpreter+set}" = set; then
2846 enableval="$enable_interpreter"
2847 if test "$enable_interpreter" = yes; then
2848 # This can also be set in configure.host.
2849 libgcj_interpreter=yes
2850 elif test "$enable_interpreter" = no; then
2851 libgcj_interpreter=no
2852 fi
2853fi
2854
2855
2856if test "$libgcj_interpreter" = yes; then
2857 cat >> confdefs.h <<\EOF
2858#define INTERPRETER 1
2859EOF
2860
2861fi
2862
2863echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2864echo "configure:2865: checking for exception model to use" >&5
2865
2866ac_ext=C
2867# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2868ac_cpp='$CXXCPP $CPPFLAGS'
2869ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2870ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2871cross_compiling=$ac_cv_prog_cxx_cross
2872
2873# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2874if test "${enable_sjlj_exceptions+set}" = set; then
2875 enableval="$enable_sjlj_exceptions"
2876 :
2877else
2878 cat > conftest.$ac_ext << EOF
2879#line 2880 "configure"
2880struct S { ~S(); };
2881void bar();
2882void foo()
2883{
2884 S s;
2885 bar();
2886}
2887EOF
2888old_CXXFLAGS="$CXXFLAGS"
2889CXXFLAGS=-S
2890if { (eval echo configure:2891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2891 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2892 enable_sjlj_exceptions=yes
2893 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2894 enable_sjlj_exceptions=no
2895 fi
2896fi
2897CXXFLAGS="$old_CXXFLAGS"
2898rm -f conftest*
2899fi
2900
2901if test x$enable_sjlj_exceptions = xyes; then
2902 cat >> confdefs.h <<\EOF
2903#define SJLJ_EXCEPTIONS 1
2904EOF
2905
2906 ac_exception_model_name=sjlj
2907elif test x$enable_sjlj_exceptions = xno; then
2908 ac_exception_model_name="call frame"
2909else
2910 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2911fi
2912ac_ext=c
2913# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2914ac_cpp='$CPP $CPPFLAGS'
2915ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2916ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2917cross_compiling=$ac_cv_prog_cc_cross
2918
2919echo "$ac_t""$ac_exception_model_name" 1>&6
2920
2921# If we are non using SJLJ exceptions, and this host does not have support
2922# for unwinding from a signal handler, enable checked dereferences and divides.
2923if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2924 CHECKREFSPEC=-fcheck-references
2925 DIVIDESPEC=-fuse-divide-subroutine
2926 EXCEPTIONSPEC=
2927fi
2928
2929# Check whether --enable-java-net or --disable-java-net was given.
2930if test "${enable_java_net+set}" = set; then
2931 enableval="$enable_java_net"
2932 :
2933fi
2934
2935
2936if test -z "$enable_java_net"; then
2937 enable_java_net=${enable_java_net_default-yes}
2938fi
2939if test "$enable_java_net" = no; then
2940 cat >> confdefs.h <<\EOF
2941#define DISABLE_JAVA_NET 1
2942EOF
2943
2944fi
2945
2946# Check whether --with-libffi or --without-libffi was given.
2947if test "${with_libffi+set}" = set; then
2948 withval="$with_libffi"
2949 :
2950else
2951 with_libffi=${with_libffi_default-yes}
2952fi
2953
2954
2955LIBFFI=
2956LIBFFIINCS=
2957if test "$with_libffi" != no; then
2958 cat >> confdefs.h <<\EOF
2959#define USE_LIBFFI 1
2960EOF
2961
2962 LIBFFI=../libffi/libffi_convenience.la
2963 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2964fi
2965
2966
2967
2968# Check whether --enable-jvmpi or --disable-jvmpi was given.
2969if test "${enable_jvmpi+set}" = set; then
2970 enableval="$enable_jvmpi"
2971 :
2972fi
2973
2974
2975if test "$enable_jvmpi" != no; then
2976 cat >> confdefs.h <<\EOF
2977#define ENABLE_JVMPI 1
2978EOF
2979
2980fi
2981
2982TARGET_ECOS=${PROCESS-"no"}
2983# Check whether --with-ecos or --without-ecos was given.
2984if test "${with_ecos+set}" = set; then
2985 withval="$with_ecos"
2986 TARGET_ECOS="$with_ecos"
2987
2988fi
2989
2990
2991PLATFORMOBJS=
2992case "$TARGET_ECOS" in
2993 no) case "$host" in
2994 *mingw*)
2995 PLATFORM=Win32
2996 PLATFORMOBJS=win32.lo
2997 PLATFORMH=win32.h
2998 ;;
2999 *)
3000 PLATFORM=Posix
3001 PLATFORMOBJS=posix.lo
3002 PLATFORMH=posix.h
3003 ;;
3004 esac
3005 ;;
3006 *)
3007 PLATFORM=Ecos
3008 cat >> confdefs.h <<\EOF
3009#define ECOS 1
3010EOF
3011
3012 PLATFORMOBJS=posix.lo
3013 PLATFORMH=posix.h
3014 ;;
3015esac
3016
3017
3018
3019echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3020echo "configure:3021: checking how to run the C preprocessor" >&5
3021# On Suns, sometimes $CPP names a directory.
3022if test -n "$CPP" && test -d "$CPP"; then
3023 CPP=
3024fi
3025if test -z "$CPP"; then
3026if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3028else
3029 # This must be in double quotes, not single quotes, because CPP may get
3030 # substituted into the Makefile and "${CC-cc}" will confuse make.
3031 CPP="${CC-cc} -E"
3032 # On the NeXT, cc -E runs the code through the compiler's parser,
3033 # not just through cpp.
3034 cat > conftest.$ac_ext <<EOF
3035#include <sys/types.h>
3036#line 3037 "configure"
3037#include "confdefs.h"
3038#include <assert.h>
3039Syntax Error
3040EOF
3041ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3042{ (eval echo configure:3043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3043ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3044if test -z "$ac_err"; then
3045 :
3046else
3047 echo "$ac_err" >&5
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3050 rm -rf conftest*
3051 CPP="${CC-cc} -E -traditional-cpp"
3052 cat > conftest.$ac_ext <<EOF
3053#include <sys/types.h>
3054#line 3055 "configure"
3055#include "confdefs.h"
3056#include <assert.h>
3057Syntax Error
3058EOF
3059ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3060{ (eval echo configure:3061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3061ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3062if test -z "$ac_err"; then
3063 :
3064else
3065 echo "$ac_err" >&5
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3068 rm -rf conftest*
3069 CPP="${CC-cc} -nologo -E"
3070 cat > conftest.$ac_ext <<EOF
3071#include <sys/types.h>
3072#line 3073 "configure"
3073#include "confdefs.h"
3074#include <assert.h>
3075Syntax Error
3076EOF
3077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3078{ (eval echo configure:3079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3080if test -z "$ac_err"; then
3081 :
3082else
3083 echo "$ac_err" >&5
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3086 rm -rf conftest*
3087 CPP=/lib/cpp
3088fi
3089rm -f conftest*
3090fi
3091rm -f conftest*
3092fi
3093rm -f conftest*
3094 ac_cv_prog_CPP="$CPP"
3095fi
3096 CPP="$ac_cv_prog_CPP"
3097else
3098 ac_cv_prog_CPP="$CPP"
3099fi
3100echo "$ac_t""$CPP" 1>&6
3101
3102cat > conftest.$ac_ext <<EOF
3103#line 3104 "configure"
3104#include "confdefs.h"
3105#include <stdint.h>
3106EOF
3107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 egrep "uint32_t" >/dev/null 2>&1; then
3109 rm -rf conftest*
3110 cat >> confdefs.h <<\EOF
3111#define HAVE_INT32_DEFINED 1
3112EOF
3113
3114fi
3115rm -f conftest*
3116
3117cat > conftest.$ac_ext <<EOF
3118#line 3119 "configure"
3119#include "confdefs.h"
3120#include <inttypes.h>
3121EOF
3122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3123 egrep "uint32_t" >/dev/null 2>&1; then
3124 rm -rf conftest*
3125 cat >> confdefs.h <<\EOF
3126#define HAVE_INT32_DEFINED 1
3127EOF
3128
3129fi
3130rm -f conftest*
3131
3132cat > conftest.$ac_ext <<EOF
3133#line 3134 "configure"
3134#include "confdefs.h"
3135#include <sys/types.h>
3136EOF
3137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3138 egrep "u_int32_t" >/dev/null 2>&1; then
3139 rm -rf conftest*
3140 cat >> confdefs.h <<\EOF
3141#define HAVE_BSD_INT32_DEFINED 1
3142EOF
3143
3144fi
3145rm -f conftest*
3146
3147cat > conftest.$ac_ext <<EOF
3148#line 3149 "configure"
3149#include "confdefs.h"
3150#include <sys/config.h>
3151EOF
3152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 egrep "u_int32_t" >/dev/null 2>&1; then
3154 rm -rf conftest*
3155 cat >> confdefs.h <<\EOF
3156#define HAVE_BSD_INT32_DEFINED 1
3157EOF
3158
3159fi
3160rm -f conftest*
3161
3162
3163
3164cat > conftest.$ac_ext <<EOF
3165#line 3166 "configure"
3166#include "confdefs.h"
3167#include <time.h>
3168EOF
3169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3170 egrep "mktime" >/dev/null 2>&1; then
3171 rm -rf conftest*
3172 cat >> confdefs.h <<\EOF
3173#define HAVE_MKTIME 1
3174EOF
3175
3176fi
3177rm -f conftest*
3178
3179cat > conftest.$ac_ext <<EOF
3180#line 3181 "configure"
3181#include "confdefs.h"
3182#include <time.h>
3183EOF
3184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3185 egrep "localtime" >/dev/null 2>&1; then
3186 rm -rf conftest*
3187 cat >> confdefs.h <<\EOF
3188#define HAVE_LOCALTIME 1
3189EOF
3190
3191fi
3192rm -f conftest*
3193
3194
3195test -d java || mkdir java
3196test -d java/io || mkdir java/io
3197test -d gnu || mkdir gnu
3198
3199
3200
3201test -d java/lang || mkdir java/lang
3202
3203
3204
3205case "${host}" in
3206 *mingw*)
3207 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3208 ;;
3209 *)
3210 SYSTEMSPEC=
3211 ;;
3212esac
3213
3214
3215LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3216
3217
3218# Check whether --with-system-zlib or --without-system-zlib was given.
3219if test "${with_system_zlib+set}" = set; then
3220 withval="$with_system_zlib"
3221 :
3222fi
3223
3224ZLIBSPEC=
3225
3226ZLIBTESTSPEC=
3227
3228
3229libsubdir=.libs
3230
3231echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3232echo "configure:3233: checking for garbage collector to use" >&5
3233# Check whether --enable-java-gc or --disable-java-gc was given.
3234if test "${enable_java_gc+set}" = set; then
3235 enableval="$enable_java_gc"
3236
3237 GC=$enableval
3238else
3239 GC=boehm
3240fi
3241
3242GCLIBS=
3243GCINCS=
3244GCDEPS=
3245GCOBJS=
3246GCSPEC=
3247JC1GCSPEC=
3248GCTESTSPEC=
3249case "$GC" in
3250 boehm)
3251 echo "$ac_t""boehm" 1>&6
3252 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3253 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3254 JC1GCSPEC='-fuse-boehm-gc'
3255 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3256
3257 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3258 GCOBJS=boehm.lo
3259 GCHDR=boehm-gc.h
3260 cat >> confdefs.h <<\EOF
3261#define HAVE_BOEHM_GC 1
3262EOF
3263
3264 ;;
3265 no)
3266 echo "$ac_t""none" 1>&6
3267 GCOBJS=nogc.lo
3268 GCHDR=no-gc.h
3269 ;;
3270 *)
3271 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3272 ;;
3273esac
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3285echo "configure:3286: checking for thread model used by GCC" >&5
3286THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3287echo "$ac_t""$THREADS" 1>&6
3288
3289case "$THREADS" in
3290 no | none | single)
3291 THREADS=none
3292 ;;
3293 posix | pthreads)
3294 THREADS=posix
3295 case "$host" in
3296 *-*-linux*)
3297 cat >> confdefs.h <<\EOF
3298#define LINUX_THREADS 1
3299EOF
3300
3301 ;;
3302 esac
3303 ;;
3304 win32)
3305 ;;
3306 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3307 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3308 ;;
3309 *)
3310 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3311 ;;
3312esac
3313
3314THREADLDFLAGS=
3315THREADLIBS=
3316THREADINCS=
3317THREADDEPS=
3318THREADOBJS=
3319THREADH=
3320THREADSPEC=
3321case "$THREADS" in
3322 posix)
3323 case "$host" in
3324 *-*-cygwin*)
3325 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3326 ;;
3327
3328 *-*-freebsd[1234]*)
3329
3330 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3331 # merely adds pthread_* functions) but it does have a -pthread switch
3332 # which is required at link-time to select -lc_r *instead* of -lc.
3333 THREADLDFLAGS=-pthread
3334 # Don't set THREADSPEC here as might be expected since -pthread is
3335 # not processed when found within a spec file, it must come from
3336 # the command line. For now, the user must provide the -pthread
3337 # switch to link code compiled with gcj. In future, consider adding
3338 # support for weak references to pthread_* functions ala gthr.h API.
3339 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3340 ;;
3341 *-*-freebsd*)
3342 # FreeBSD 5 implements a model much closer to other modern UNIX
3343 # which support threads. However, it still does not support
3344 # -lpthread.
3345 THREADLDFLAGS=-pthread
3346 THREADSPEC=-lc_r
3347 ;;
3348 *)
3349 THREADLIBS=-lpthread
3350 THREADSPEC=-lpthread
3351 ;;
3352 esac
3353 THREADOBJS=posix-threads.lo
3354 THREADH=posix-threads.h
3355 # MIT pthreads doesn't seem to have the mutexattr functions.
3356 # But for now we don't check for it. We just assume you aren't
3357 # using MIT pthreads.
3358 cat >> confdefs.h <<\EOF
3359#define HAVE_PTHREAD_MUTEXATTR_INIT 1
3360EOF
3361
3362
3363 # If we're using the Boehm GC, then we happen to know that it
3364 # defines _REENTRANT, so we don't bother. Eww.
3365 if test "$GC" != boehm; then
3366 cat >> confdefs.h <<\EOF
3367#define _REENTRANT 1
3368EOF
3369
3370 fi
3371 cat >> confdefs.h <<\EOF
3372#define _POSIX_PTHREAD_SEMANTICS 1
3373EOF
3374
3375 ;;
3376
3377 win32)
3378 THREADOBJS=win32-threads.lo
3379 THREADH=win32-threads.h
3380 ;;
3381
3382 none)
3383 THREADOBJS=no-threads.lo
3384 THREADH=no-threads.h
3385 ;;
3386esac
3387
3388
3389
3390
3391
3392
3393
3394
3395if test -d sysdep; then true; else mkdir sysdep; fi
3396
3397
3398HASH_SYNC_SPEC=
3399# Hash synchronization is only useful with posix threads right now.
3400if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3401 HASH_SYNC_SPEC=-fhash-synchronization
3402 cat >> confdefs.h <<\EOF
3403#define JV_HASH_SYNCHRONIZATION 1
3404EOF
3405
3406fi
3407
3408
3409
3410
3411
3412if test "$GCC" = yes; then
3413 USING_GCC_TRUE=
3414 USING_GCC_FALSE='#'
3415else
3416 USING_GCC_TRUE='#'
3417 USING_GCC_FALSE=
3418fi
3419
3420CANADIAN=no
3421NULL_TARGET=no
3422NATIVE=yes
3423
3424# We're in the tree with gcc, and need to include some of its headers.
3425GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3426
3427# Figure out where generated headers like libgcj-config.h get installed.
3428gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3429gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3430gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3431tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3432
3433
3434
3435if test -n "${with_cross_host}"; then
3436 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3437 # may not work correctly, because the compiler may not be able to
3438 # link executables.
3439
3440 # We assume newlib. This lets us hard-code the functions we know
3441 # we'll have.
3442 cat >> confdefs.h <<\EOF
3443#define HAVE_MEMMOVE 1
3444EOF
3445
3446 cat >> confdefs.h <<\EOF
3447#define HAVE_MEMCPY 1
3448EOF
3449
3450 cat >> confdefs.h <<\EOF
3451#define HAVE_STRERROR 1
3452EOF
3453
3454 cat >> confdefs.h <<\EOF
3455#define HAVE_TIME 1
3456EOF
3457
3458 cat >> confdefs.h <<\EOF
3459#define HAVE_GMTIME_R 1
3460EOF
3461
3462 cat >> confdefs.h <<\EOF
3463#define HAVE_LOCALTIME_R 1
3464EOF
3465
3466 cat >> confdefs.h <<\EOF
3467#define HAVE_PTHREAD_MUTEXATTR_INIT 1
3468EOF
3469
3470 cat >> confdefs.h <<\EOF
3471#define HAVE_ALLOCA 1
3472EOF
3473
3474
3475 cat >> confdefs.h <<\EOF
3476#define NO_GETUID 1
3477EOF
3478
3479
3480 # If Canadian cross, then don't pick up tools from the build
3481 # directory.
3482 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3483 CANADIAN=yes
3484 GCC_UNWIND_INCLUDE=
3485 GCJ="${target_alias}-gcj"
3486 fi
3487 NATIVE=no
3488else
3489 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3490do
3491echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3492echo "configure:3493: checking for $ac_func" >&5
3493if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3495else
3496 cat > conftest.$ac_ext <<EOF
3497#line 3498 "configure"
3498#include "confdefs.h"
3499/* System header to define __stub macros and hopefully few prototypes,
3500 which can conflict with char $ac_func(); below. */
3501#include <assert.h>
3502/* Override any gcc2 internal prototype to avoid an error. */
3503/* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3505char $ac_func();
3506
3507int main() {
3508
3509/* The GNU C library defines this for functions which it implements
3510 to always fail with ENOSYS. Some functions are actually named
3511 something starting with __ and the normal name is an alias. */
3512#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3513choke me
3514#else
3515$ac_func();
3516#endif
3517
3518; return 0; }
3519EOF
3520if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3521 rm -rf conftest*
3522 eval "ac_cv_func_$ac_func=yes"
3523else
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3526 rm -rf conftest*
3527 eval "ac_cv_func_$ac_func=no"
3528fi
3529rm -f conftest*
3530fi
3531
3532if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3535 cat >> confdefs.h <<EOF
3536#define $ac_tr_func 1
3537EOF
3538
3539else
3540 echo "$ac_t""no" 1>&6
3541fi
3542done
3543
3544 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3545do
3546echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3547echo "configure:3548: checking for $ac_func" >&5
3548if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3550else
3551 cat > conftest.$ac_ext <<EOF
3552#line 3553 "configure"
3553#include "confdefs.h"
3554/* System header to define __stub macros and hopefully few prototypes,
3555 which can conflict with char $ac_func(); below. */
3556#include <assert.h>
3557/* Override any gcc2 internal prototype to avoid an error. */
3558/* We use char because int might match the return type of a gcc2
3559 builtin and then its argument prototype would still apply. */
3560char $ac_func();
3561
3562int main() {
3563
3564/* The GNU C library defines this for functions which it implements
3565 to always fail with ENOSYS. Some functions are actually named
3566 something starting with __ and the normal name is an alias. */
3567#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3568choke me
3569#else
3570$ac_func();
3571#endif
3572
3573; return 0; }
3574EOF
3575if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3576 rm -rf conftest*
3577 eval "ac_cv_func_$ac_func=yes"
3578else
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3581 rm -rf conftest*
3582 eval "ac_cv_func_$ac_func=no"
3583fi
3584rm -f conftest*
3585fi
3586
3587if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3588 echo "$ac_t""yes" 1>&6
3589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3590 cat >> confdefs.h <<EOF
3591#define $ac_tr_func 1
3592EOF
3593
3594else
3595 echo "$ac_t""no" 1>&6
3596fi
3597done
3598
3599 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3600do
3601echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3602echo "configure:3603: checking for $ac_func" >&5
3603if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3605else
3606 cat > conftest.$ac_ext <<EOF
3607#line 3608 "configure"
3608#include "confdefs.h"
3609/* System header to define __stub macros and hopefully few prototypes,
3610 which can conflict with char $ac_func(); below. */
3611#include <assert.h>
3612/* Override any gcc2 internal prototype to avoid an error. */
3613/* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3615char $ac_func();
3616
3617int main() {
3618
3619/* The GNU C library defines this for functions which it implements
3620 to always fail with ENOSYS. Some functions are actually named
3621 something starting with __ and the normal name is an alias. */
3622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3623choke me
3624#else
3625$ac_func();
3626#endif
3627
3628; return 0; }
3629EOF
3630if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 rm -rf conftest*
3632 eval "ac_cv_func_$ac_func=yes"
3633else
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 rm -rf conftest*
3637 eval "ac_cv_func_$ac_func=no"
3638fi
3639rm -f conftest*
3640fi
3641
3642if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3643 echo "$ac_t""yes" 1>&6
3644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3645 cat >> confdefs.h <<EOF
3646#define $ac_tr_func 1
3647EOF
3648
3649else
3650 echo "$ac_t""no" 1>&6
3651fi
3652done
3653
3654 for ac_func in nl_langinfo setlocale
3655do
3656echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3657echo "configure:3658: checking for $ac_func" >&5
3658if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3660else
3661 cat > conftest.$ac_ext <<EOF
3662#line 3663 "configure"
3663#include "confdefs.h"
3664/* System header to define __stub macros and hopefully few prototypes,
3665 which can conflict with char $ac_func(); below. */
3666#include <assert.h>
3667/* Override any gcc2 internal prototype to avoid an error. */
3668/* We use char because int might match the return type of a gcc2
3669 builtin and then its argument prototype would still apply. */
3670char $ac_func();
3671
3672int main() {
3673
3674/* The GNU C library defines this for functions which it implements
3675 to always fail with ENOSYS. Some functions are actually named
3676 something starting with __ and the normal name is an alias. */
3677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3678choke me
3679#else
3680$ac_func();
3681#endif
3682
3683; return 0; }
3684EOF
3685if { (eval echo configure:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3686 rm -rf conftest*
3687 eval "ac_cv_func_$ac_func=yes"
3688else
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3691 rm -rf conftest*
3692 eval "ac_cv_func_$ac_func=no"
3693fi
3694rm -f conftest*
3695fi
3696
3697if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3700 cat >> confdefs.h <<EOF
3701#define $ac_tr_func 1
3702EOF
3703
3704else
3705 echo "$ac_t""no" 1>&6
3706fi
3707done
3708
3709 for ac_func in inet_aton inet_addr
3710do
3711echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3712echo "configure:3713: checking for $ac_func" >&5
3713if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3715else
3716 cat > conftest.$ac_ext <<EOF
3717#line 3718 "configure"
3718#include "confdefs.h"
3719/* System header to define __stub macros and hopefully few prototypes,
3720 which can conflict with char $ac_func(); below. */
3721#include <assert.h>
3722/* Override any gcc2 internal prototype to avoid an error. */
3723/* We use char because int might match the return type of a gcc2
3724 builtin and then its argument prototype would still apply. */
3725char $ac_func();
3726
3727int main() {
3728
3729/* The GNU C library defines this for functions which it implements
3730 to always fail with ENOSYS. Some functions are actually named
3731 something starting with __ and the normal name is an alias. */
3732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3733choke me
3734#else
3735$ac_func();
3736#endif
3737
3738; return 0; }
3739EOF
3740if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3741 rm -rf conftest*
3742 eval "ac_cv_func_$ac_func=yes"
3743else
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3746 rm -rf conftest*
3747 eval "ac_cv_func_$ac_func=no"
3748fi
3749rm -f conftest*
3750fi
3751
3752if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3753 echo "$ac_t""yes" 1>&6
3754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3755 cat >> confdefs.h <<EOF
3756#define $ac_tr_func 1
3757EOF
3758 break
3759else
3760 echo "$ac_t""no" 1>&6
3761fi
3762done
3763
3764 for ac_func in inet_pton uname inet_ntoa
3765do
3766echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3767echo "configure:3768: checking for $ac_func" >&5
3768if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3770else
3771 cat > conftest.$ac_ext <<EOF
3772#line 3773 "configure"
3773#include "confdefs.h"
3774/* System header to define __stub macros and hopefully few prototypes,
3775 which can conflict with char $ac_func(); below. */
3776#include <assert.h>
3777/* Override any gcc2 internal prototype to avoid an error. */
3778/* We use char because int might match the return type of a gcc2
3779 builtin and then its argument prototype would still apply. */
3780char $ac_func();
3781
3782int main() {
3783
3784/* The GNU C library defines this for functions which it implements
3785 to always fail with ENOSYS. Some functions are actually named
3786 something starting with __ and the normal name is an alias. */
3787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3788choke me
3789#else
3790$ac_func();
3791#endif
3792
3793; return 0; }
3794EOF
3795if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796 rm -rf conftest*
3797 eval "ac_cv_func_$ac_func=yes"
3798else
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3801 rm -rf conftest*
3802 eval "ac_cv_func_$ac_func=no"
3803fi
3804rm -f conftest*
3805fi
3806
3807if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3810 cat >> confdefs.h <<EOF
3811#define $ac_tr_func 1
3812EOF
3813
3814else
3815 echo "$ac_t""no" 1>&6
3816fi
3817done
3818
3819 for ac_func in fork execvp pipe sigaction
3820do
3821echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3822echo "configure:3823: checking for $ac_func" >&5
3823if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825else
3826 cat > conftest.$ac_ext <<EOF
3827#line 3828 "configure"
3828#include "confdefs.h"
3829/* System header to define __stub macros and hopefully few prototypes,
3830 which can conflict with char $ac_func(); below. */
3831#include <assert.h>
3832/* Override any gcc2 internal prototype to avoid an error. */
3833/* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3835char $ac_func();
3836
3837int main() {
3838
3839/* The GNU C library defines this for functions which it implements
3840 to always fail with ENOSYS. Some functions are actually named
3841 something starting with __ and the normal name is an alias. */
3842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3843choke me
3844#else
3845$ac_func();
3846#endif
3847
3848; return 0; }
3849EOF
3850if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3851 rm -rf conftest*
3852 eval "ac_cv_func_$ac_func=yes"
3853else
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3856 rm -rf conftest*
3857 eval "ac_cv_func_$ac_func=no"
3858fi
3859rm -f conftest*
3860fi
3861
3862if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3863 echo "$ac_t""yes" 1>&6
3864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3865 cat >> confdefs.h <<EOF
3866#define $ac_tr_func 1
3867EOF
3868
3869else
3870 echo "$ac_t""no" 1>&6
3871fi
3872done
3873
3874 for ac_hdr in execinfo.h unistd.h dlfcn.h
3875do
3876ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3877echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3878echo "configure:3879: checking for $ac_hdr" >&5
3879if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3881else
3882 cat > conftest.$ac_ext <<EOF
3883#include <sys/types.h>
3884#line 3885 "configure"
3885#include "confdefs.h"
3886#include <$ac_hdr>
3887EOF
3888ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3889{ (eval echo configure:3890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3890ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3891if test -z "$ac_err"; then
3892 rm -rf conftest*
3893 eval "ac_cv_header_$ac_safe=yes"
3894else
3895 echo "$ac_err" >&5
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3898 rm -rf conftest*
3899 eval "ac_cv_header_$ac_safe=no"
3900fi
3901rm -f conftest*
3902fi
3903if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3904 echo "$ac_t""yes" 1>&6
3905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3906 cat >> confdefs.h <<EOF
3907#define $ac_tr_hdr 1
3908EOF
3909
3910else
3911 echo "$ac_t""no" 1>&6
3912fi
3913done
3914
3915 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
3916echo "configure:3917: checking for backtrace" >&5
3917if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3919else
3920 cat > conftest.$ac_ext <<EOF
3921#line 3922 "configure"
3922#include "confdefs.h"
3923/* System header to define __stub macros and hopefully few prototypes,
3924 which can conflict with char backtrace(); below. */
3925#include <assert.h>
3926/* Override any gcc2 internal prototype to avoid an error. */
3927/* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3929char backtrace();
3930
3931int main() {
3932
3933/* The GNU C library defines this for functions which it implements
3934 to always fail with ENOSYS. Some functions are actually named
3935 something starting with __ and the normal name is an alias. */
3936#if defined (__stub_backtrace) || defined (__stub___backtrace)
3937choke me
3938#else
3939backtrace();
3940#endif
3941
3942; return 0; }
3943EOF
3944if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3945 rm -rf conftest*
3946 eval "ac_cv_func_backtrace=yes"
3947else
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3950 rm -rf conftest*
3951 eval "ac_cv_func_backtrace=no"
3952fi
3953rm -f conftest*
3954fi
3955
3956if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
3958
3959 case "$host" in
3960 ia64-*-linux*)
3961 # Has broken backtrace()
3962 ;;
3963 *)
3964 cat >> confdefs.h <<\EOF
3965#define HAVE_BACKTRACE 1
3966EOF
3967
3968 ;;
3969 esac
3970
3971else
3972 echo "$ac_t""no" 1>&6
3973fi
3974
3975
3976 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3977echo "configure:3978: checking for dladdr in -ldl" >&5
3978ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3979if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3981else
3982 ac_save_LIBS="$LIBS"
3983LIBS="-ldl $LIBS"
3984cat > conftest.$ac_ext <<EOF
3985#line 3986 "configure"
3986#include "confdefs.h"
3987/* Override any gcc2 internal prototype to avoid an error. */
3988/* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3990char dladdr();
3991
3992int main() {
3993dladdr()
3994; return 0; }
3995EOF
3996if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3997 rm -rf conftest*
3998 eval "ac_cv_lib_$ac_lib_var=yes"
3999else
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4002 rm -rf conftest*
4003 eval "ac_cv_lib_$ac_lib_var=no"
4004fi
4005rm -f conftest*
4006LIBS="$ac_save_LIBS"
4007
4008fi
4009if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011
4012 cat >> confdefs.h <<\EOF
4013#define HAVE_DLADDR 1
4014EOF
4015
4016else
4017 echo "$ac_t""no" 1>&6
4018fi
4019
4020 for ac_file in /proc/self/exe
4021do
4022
4023ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
4024echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
4025echo "configure:4026: checking for $ac_file" >&5
4026if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4028else