source: vendor/gcc/3.3.4/libjava/configure

Last change on this file was 1474, checked in by bird, 21 years ago

GCC v3.3.4 - official sources.

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