Update version
[official-gcc.git] / libjava / configure
blob52f03503e78c46755992cfd9b9890b0f0cca9077
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build many library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-fast-character prefer speed over size for Character"
38 ac_help="$ac_help
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
41 ac_help="$ac_help
42 --enable-libgcj-debug enable runtime debugging code"
43 ac_help="$ac_help
44 --enable-interpreter enable interpreter"
45 ac_help="$ac_help
46 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
47 ac_help="$ac_help
48 --disable-java-net disable java.net"
49 ac_help="$ac_help
50 --disable-jvmpi disable JVMPI support"
51 ac_help="$ac_help
52 --with-ecos enable runtime eCos target support"
53 ac_help="$ac_help
54 --with-system-zlib use installed libz"
55 ac_help="$ac_help
56 --enable-java-gc=TYPE choose garbage collector [boehm]"
57 ac_help="$ac_help
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
59 ac_help="$ac_help
60 --with-x use the X Window System"
61 ac_help="$ac_help
62 --enable-java-awt list of AWT peer implementations to be built"
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 srcdir=
81 target=NONE
82 verbose=
83 x_includes=NONE
84 x_libraries=NONE
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
98 # Initialize some other variables.
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 ac_max_here_lines=12
105 ac_prev=
106 for ac_option
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
112 ac_prev=
113 continue
116 case "$ac_option" in
117 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 *) ac_optarg= ;;
119 esac
121 # Accept the important Cygnus configure options, so we can diagnose typos.
123 case "$ac_option" in
125 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 ac_prev=bindir ;;
127 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128 bindir="$ac_optarg" ;;
130 -build | --build | --buil | --bui | --bu)
131 ac_prev=build ;;
132 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133 build="$ac_optarg" ;;
135 -cache-file | --cache-file | --cache-fil | --cache-fi \
136 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
137 ac_prev=cache_file ;;
138 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
139 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140 cache_file="$ac_optarg" ;;
142 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 ac_prev=datadir ;;
144 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 | --da=*)
146 datadir="$ac_optarg" ;;
148 -disable-* | --disable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* | --enable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 case "$ac_option" in
165 *=*) ;;
166 *) ac_optarg=yes ;;
167 esac
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
172 | --exec | --exe | --ex)
173 ac_prev=exec_prefix ;;
174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
176 | --exec=* | --exe=* | --ex=*)
177 exec_prefix="$ac_optarg" ;;
179 -gas | --gas | --ga | --g)
180 # Obsolete; use --with-gas.
181 with_gas=yes ;;
183 -help | --help | --hel | --he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
186 cat << EOF
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
189 Configuration:
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
197 [$ac_default_prefix]
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 [same as prefix]
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
204 [PREFIX/share]
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 [PREFIX/com]
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
220 cat << EOF
221 Host type:
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
236 exit 0 ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host="$ac_optarg" ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir="$ac_optarg" ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir="$ac_optarg" ;;
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir="$ac_optarg" ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir="$ac_optarg" ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir="$ac_optarg" ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir="$ac_optarg" ;;
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir="$ac_optarg" ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix="$ac_optarg" ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix="$ac_optarg" ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix="$ac_optarg" ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name="$ac_optarg" ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir="$ac_optarg" ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir="$ac_optarg" ;;
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site="$ac_optarg" ;;
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir="$ac_optarg" ;;
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir="$ac_optarg" ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target="$ac_optarg" ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
384 -version | --version | --versio | --versi | --vers)
385 echo "configure generated by autoconf version 2.13"
386 exit 0 ;;
388 -with-* | --with-*)
389 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 case "$ac_option" in
396 *=*) ;;
397 *) ac_optarg=yes ;;
398 esac
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
410 --x)
411 # Obsolete; use --with-x.
412 with_x=yes ;;
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes="$ac_optarg" ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 nonopt="$ac_option"
441 esac
442 done
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
451 # 0 standard input
452 # 1 file creation
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
459 exec 6>/dev/null
460 else
461 exec 6>&1
463 exec 5>./config.log
465 echo "\
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
468 " 1>&5
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
472 ac_configure_args=
473 for ac_arg
475 case "$ac_arg" in
476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477 | --no-cr | --no-c) ;;
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 esac
484 done
486 # NLS nuisances.
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 echo > confdefs.h
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file=java/lang/System.java
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
509 ac_prog=$0
510 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 srcdir=$ac_confdir
513 if test ! -r $srcdir/$ac_unique_file; then
514 srcdir=..
516 else
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 else
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE; then
531 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 else
533 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 for ac_site_file in $CONFIG_SITE; do
537 if test -r "$ac_site_file"; then
538 echo "loading site script $ac_site_file"
539 . "$ac_site_file"
541 done
543 if test -r "$cache_file"; then
544 echo "loading cache $cache_file"
545 . $cache_file
546 else
547 echo "creating cache $cache_file"
548 > $cache_file
551 ac_ext=c
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp='$CPP $CPPFLAGS'
554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling=$ac_cv_prog_cc_cross
558 ac_exeext=
559 ac_objext=o
560 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
561 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
562 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
563 ac_n= ac_c='
564 ' ac_t=' '
565 else
566 ac_n=-n ac_c= ac_t=
568 else
569 ac_n= ac_c='\c' ac_t=
574 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
575 echo "configure:576: checking whether ln -s works" >&5
576 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
577 echo $ac_n "(cached) $ac_c" 1>&6
578 else
579 rm -f conftestdata
580 if ln -s X conftestdata 2>/dev/null
581 then
582 rm -f conftestdata
583 ac_cv_prog_LN_S="ln -s"
584 else
585 ac_cv_prog_LN_S=ln
588 LN_S="$ac_cv_prog_LN_S"
589 if test "$ac_cv_prog_LN_S" = "ln -s"; then
590 echo "$ac_t""yes" 1>&6
591 else
592 echo "$ac_t""no" 1>&6
596 # Check whether --with-target-subdir or --without-target-subdir was given.
597 if test "${with_target_subdir+set}" = set; then
598 withval="$with_target_subdir"
602 # Check whether --with-cross-host or --without-cross-host was given.
603 if test "${with_cross_host+set}" = set; then
604 withval="$with_cross_host"
609 # Find a good install program. We prefer a C program (faster),
610 # so one script is as good as another. But avoid the broken or
611 # incompatible versions:
612 # SysV /etc/install, /usr/sbin/install
613 # SunOS /usr/etc/install
614 # IRIX /sbin/install
615 # AIX /bin/install
616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
619 # ./install, which can be erroneously created by make from ./install.sh.
620 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
621 echo "configure:622: checking for a BSD compatible install" >&5
622 if test -z "$INSTALL"; then
623 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
625 else
626 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
627 for ac_dir in $PATH; do
628 # Account for people who put trailing slashes in PATH elements.
629 case "$ac_dir/" in
630 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
632 # OSF1 and SCO ODT 3.0 have their own names for install.
633 # Don't use installbsd from OSF since it installs stuff as root
634 # by default.
635 for ac_prog in ginstall scoinst install; do
636 if test -f $ac_dir/$ac_prog; then
637 if test $ac_prog = install &&
638 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
639 # AIX install. It has an incompatible calling convention.
641 else
642 ac_cv_path_install="$ac_dir/$ac_prog -c"
643 break 2
646 done
648 esac
649 done
650 IFS="$ac_save_IFS"
653 if test "${ac_cv_path_install+set}" = set; then
654 INSTALL="$ac_cv_path_install"
655 else
656 # As a last resort, use the slow shell script. We don't cache a
657 # path for INSTALL within a source directory, because that will
658 # break other packages using the cache if that directory is
659 # removed, or if the path is relative.
660 INSTALL="$ac_install_sh"
663 echo "$ac_t""$INSTALL" 1>&6
665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
666 # It thinks the first close brace ends the variable substitution.
667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
673 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
674 echo "configure:675: checking whether build environment is sane" >&5
675 # Just in case
676 sleep 1
677 echo timestamp > conftestfile
678 # Do `set' in a subshell so we don't clobber the current shell's
679 # arguments. Must try -L first in case configure is actually a
680 # symlink; some systems play weird games with the mod time of symlinks
681 # (eg FreeBSD returns the mod time of the symlink's containing
682 # directory).
683 if (
684 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
685 if test "$*" = "X"; then
686 # -L didn't work.
687 set X `ls -t $srcdir/configure conftestfile`
689 if test "$*" != "X $srcdir/configure conftestfile" \
690 && test "$*" != "X conftestfile $srcdir/configure"; then
692 # If neither matched, then we have a broken ls. This can happen
693 # if, for instance, CONFIG_SHELL is bash and it inherits a
694 # broken ls alias from the environment. This has actually
695 # happened. Such a system could not be considered "sane".
696 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
697 alias in your environment" 1>&2; exit 1; }
700 test "$2" = conftestfile
702 then
703 # Ok.
705 else
706 { echo "configure: error: newly created file is older than distributed files!
707 Check your system clock" 1>&2; exit 1; }
709 rm -f conftest*
710 echo "$ac_t""yes" 1>&6
711 if test "$program_transform_name" = s,x,x,; then
712 program_transform_name=
713 else
714 # Double any \ or $. echo might interpret backslashes.
715 cat <<\EOF_SED > conftestsed
716 s,\\,\\\\,g; s,\$,$$,g
717 EOF_SED
718 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
719 rm -f conftestsed
721 test "$program_prefix" != NONE &&
722 program_transform_name="s,^,${program_prefix},; $program_transform_name"
723 # Use a double $ so make ignores it.
724 test "$program_suffix" != NONE &&
725 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
727 # sed with no file args requires a program.
728 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
730 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
731 echo "configure:732: checking whether ${MAKE-make} sets \${MAKE}" >&5
732 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
733 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
735 else
736 cat > conftestmake <<\EOF
737 all:
738 @echo 'ac_maketemp="${MAKE}"'
740 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
741 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
742 if test -n "$ac_maketemp"; then
743 eval ac_cv_prog_make_${ac_make}_set=yes
744 else
745 eval ac_cv_prog_make_${ac_make}_set=no
747 rm -f conftestmake
749 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
750 echo "$ac_t""yes" 1>&6
751 SET_MAKE=
752 else
753 echo "$ac_t""no" 1>&6
754 SET_MAKE="MAKE=${MAKE-make}"
757 if test $host != $build; then
758 ac_tool_prefix=${host_alias}-
759 else
760 ac_tool_prefix=
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
767 else
768 cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
772 int main() {
774 #ifndef __CYGWIN__
775 #define __CYGWIN__ __CYGWIN32__
776 #endif
777 return __CYGWIN__;
778 ; return 0; }
780 if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781 rm -rf conftest*
782 ac_cv_cygwin=yes
783 else
784 echo "configure: failed program was:" >&5
785 cat conftest.$ac_ext >&5
786 rm -rf conftest*
787 ac_cv_cygwin=no
789 rm -f conftest*
790 rm -f conftest*
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
794 CYGWIN=
795 test "$ac_cv_cygwin" = yes && CYGWIN=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
805 int main() {
806 return __MINGW32__;
807 ; return 0; }
809 if { (eval echo configure:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810 rm -rf conftest*
811 ac_cv_mingw32=yes
812 else
813 echo "configure: failed program was:" >&5
814 cat conftest.$ac_ext >&5
815 rm -rf conftest*
816 ac_cv_mingw32=no
818 rm -f conftest*
819 rm -f conftest*
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
823 MINGW32=
824 test "$ac_cv_mingw32" = yes && MINGW32=yes
826 # Check whether --enable-multilib or --disable-multilib was given.
827 if test "${enable_multilib+set}" = set; then
828 enableval="$enable_multilib"
829 case "${enableval}" in
830 yes) multilib=yes ;;
831 no) multilib=no ;;
832 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
833 esac
834 else
835 multilib=yes
839 # When building with srcdir == objdir, links to the source files will
840 # be created in directories within the target_subdir. We have to
841 # adjust toplevel_srcdir accordingly, so that configure finds
842 # install-sh and other auxiliary files that live in the top-level
843 # source directory.
844 if test "${srcdir}" = "."; then
845 if test -z "${with_target_subdir}"; then
846 toprel=".."
847 else
848 if test "${with_target_subdir}" != "."; then
849 toprel="${with_multisrctop}../.."
850 else
851 toprel="${with_multisrctop}.."
854 else
855 toprel=".."
858 libgcj_basedir=$srcdir/$toprel/./libjava
861 ac_aux_dir=
862 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
863 if test -f $ac_dir/install-sh; then
864 ac_aux_dir=$ac_dir
865 ac_install_sh="$ac_aux_dir/install-sh -c"
866 break
867 elif test -f $ac_dir/install.sh; then
868 ac_aux_dir=$ac_dir
869 ac_install_sh="$ac_aux_dir/install.sh -c"
870 break
872 done
873 if test -z "$ac_aux_dir"; then
874 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
876 ac_config_guess=$ac_aux_dir/config.guess
877 ac_config_sub=$ac_aux_dir/config.sub
878 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
880 if :; then :; else
881 # This overrides the previous occurrence for automake, but not for
882 # autoconf, which is exactly what we want.
883 ac_aux_dir=
884 for ac_dir in .. $srcdir/..; do
885 if 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 elif test -f $ac_dir/install.sh; then
890 ac_aux_dir=$ac_dir
891 ac_install_sh="$ac_aux_dir/install.sh -c"
892 break
894 done
895 if test -z "$ac_aux_dir"; then
896 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
898 ac_config_guess=$ac_aux_dir/config.guess
899 ac_config_sub=$ac_aux_dir/config.sub
900 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
904 # This works around an automake problem.
905 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
909 # Do some error checking and defaulting for the host and target type.
910 # The inputs are:
911 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
913 # The rules are:
914 # 1. You are not allowed to specify --host, --target, and nonopt at the
915 # same time.
916 # 2. Host defaults to nonopt.
917 # 3. If nonopt is not specified, then host defaults to the current host,
918 # as determined by config.guess.
919 # 4. Target and build default to nonopt.
920 # 5. If nonopt is not specified, then target and build default to host.
922 # The aliases save the names the user supplied, while $host etc.
923 # will get canonicalized.
924 case $host---$target---$nonopt in
925 NONE---*---* | *---NONE---* | *---*---NONE) ;;
926 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
927 esac
930 # Make sure we can run config.sub.
931 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
932 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935 echo $ac_n "checking host system type""... $ac_c" 1>&6
936 echo "configure:937: checking host system type" >&5
938 host_alias=$host
939 case "$host_alias" in
940 NONE)
941 case $nonopt in
942 NONE)
943 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
944 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
945 fi ;;
946 *) host_alias=$nonopt ;;
947 esac ;;
948 esac
950 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
951 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954 echo "$ac_t""$host" 1>&6
956 echo $ac_n "checking target system type""... $ac_c" 1>&6
957 echo "configure:958: checking target system type" >&5
959 target_alias=$target
960 case "$target_alias" in
961 NONE)
962 case $nonopt in
963 NONE) target_alias=$host_alias ;;
964 *) target_alias=$nonopt ;;
965 esac ;;
966 esac
968 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
969 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$target" 1>&6
974 echo $ac_n "checking build system type""... $ac_c" 1>&6
975 echo "configure:976: checking build system type" >&5
977 build_alias=$build
978 case "$build_alias" in
979 NONE)
980 case $nonopt in
981 NONE) build_alias=$host_alias ;;
982 *) build_alias=$nonopt ;;
983 esac ;;
984 esac
986 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
987 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$build" 1>&6
992 test "$host_alias" != "$target_alias" &&
993 test "$program_prefix$program_suffix$program_transform_name" = \
994 NONENONEs,x,x, &&
995 program_prefix=${target_alias}-
1001 # Extract the first word of "gcc", so it can be a program name with args.
1002 set dummy gcc; ac_word=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1007 else
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC="$CC" # Let the user override the test.
1010 else
1011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1012 ac_dummy="$PATH"
1013 for ac_dir in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir=.
1015 if test -f $ac_dir/$ac_word; then
1016 ac_cv_prog_CC="gcc"
1017 break
1019 done
1020 IFS="$ac_save_ifs"
1023 CC="$ac_cv_prog_CC"
1024 if test -n "$CC"; then
1025 echo "$ac_t""$CC" 1>&6
1026 else
1027 echo "$ac_t""no" 1>&6
1030 if test -z "$CC"; then
1031 # Extract the first word of "cc", so it can be a program name with args.
1032 set dummy cc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC="$CC" # Let the user override the test.
1040 else
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 ac_prog_rejected=no
1043 ac_dummy="$PATH"
1044 for ac_dir in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir=.
1046 if test -f $ac_dir/$ac_word; then
1047 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1048 ac_prog_rejected=yes
1049 continue
1051 ac_cv_prog_CC="cc"
1052 break
1054 done
1055 IFS="$ac_save_ifs"
1056 if test $ac_prog_rejected = yes; then
1057 # We found a bogon in the path, so make sure we never use it.
1058 set dummy $ac_cv_prog_CC
1059 shift
1060 if test $# -gt 0; then
1061 # We chose a different compiler from the bogus one.
1062 # However, it has the same basename, so the bogon will be chosen
1063 # first if we set CC to just the basename; use the full file name.
1064 shift
1065 set dummy "$ac_dir/$ac_word" "$@"
1066 shift
1067 ac_cv_prog_CC="$@"
1072 CC="$ac_cv_prog_CC"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1075 else
1076 echo "$ac_t""no" 1>&6
1079 if test -z "$CC"; then
1080 case "`uname -s`" in
1081 *win32* | *WIN32*)
1082 # Extract the first word of "cl", so it can be a program name with args.
1083 set dummy cl; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC="$CC" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_CC="cl"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1104 CC="$ac_cv_prog_CC"
1105 if test -n "$CC"; then
1106 echo "$ac_t""$CC" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1111 esac
1113 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1117 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1118 echo "configure:1119: checking whether we are using GNU C" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1121 else
1122 cat > conftest.c <<EOF
1123 #ifdef __GNUC__
1124 yes;
1125 #endif
1127 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1128 ac_cv_prog_gcc=yes
1129 else
1130 ac_cv_prog_gcc=no
1134 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1136 if test $ac_cv_prog_gcc = yes; then
1137 GCC=yes
1138 else
1139 GCC=
1142 ac_test_CFLAGS="${CFLAGS+set}"
1143 ac_save_CFLAGS="$CFLAGS"
1144 CFLAGS=
1145 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1146 echo "configure:1147: checking whether ${CC-cc} accepts -g" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150 echo 'void f(){}' > conftest.c
1151 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1152 ac_cv_prog_cc_g=yes
1153 else
1154 ac_cv_prog_cc_g=no
1156 rm -f conftest*
1160 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1161 if test "$ac_test_CFLAGS" = set; then
1162 CFLAGS="$ac_save_CFLAGS"
1163 elif test $ac_cv_prog_cc_g = yes; then
1164 if test "$GCC" = yes; then
1165 CFLAGS="-g -O2"
1166 else
1167 CFLAGS="-g"
1169 else
1170 if test "$GCC" = yes; then
1171 CFLAGS="-O2"
1172 else
1173 CFLAGS=
1177 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1179 # Extract the first word of "$ac_prog", so it can be a program name with args.
1180 set dummy $ac_prog; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 if test -n "$CXX"; then
1187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1188 else
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1190 ac_dummy="$PATH"
1191 for ac_dir in $ac_dummy; do
1192 test -z "$ac_dir" && ac_dir=.
1193 if test -f $ac_dir/$ac_word; then
1194 ac_cv_prog_CXX="$ac_prog"
1195 break
1197 done
1198 IFS="$ac_save_ifs"
1201 CXX="$ac_cv_prog_CXX"
1202 if test -n "$CXX"; then
1203 echo "$ac_t""$CXX" 1>&6
1204 else
1205 echo "$ac_t""no" 1>&6
1208 test -n "$CXX" && break
1209 done
1210 test -n "$CXX" || CXX="gcc"
1214 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether we are using GNU C++" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 cat > conftest.C <<EOF
1220 #ifdef __GNUC__
1221 yes;
1222 #endif
1224 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1225 ac_cv_prog_gxx=yes
1226 else
1227 ac_cv_prog_gxx=no
1231 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1233 if test $ac_cv_prog_gxx = yes; then
1234 GXX=yes
1235 else
1236 GXX=
1239 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1240 ac_save_CXXFLAGS="$CXXFLAGS"
1241 CXXFLAGS=
1242 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1243 echo "configure:1244: checking whether ${CXX-g++} accepts -g" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247 echo 'void f(){}' > conftest.cc
1248 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1249 ac_cv_prog_cxx_g=yes
1250 else
1251 ac_cv_prog_cxx_g=no
1253 rm -f conftest*
1257 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1258 if test "$ac_test_CXXFLAGS" = set; then
1259 CXXFLAGS="$ac_save_CXXFLAGS"
1260 elif test $ac_cv_prog_cxx_g = yes; then
1261 if test "$GXX" = yes; then
1262 CXXFLAGS="-g -O2"
1263 else
1264 CXXFLAGS="-g"
1266 else
1267 if test "$GXX" = yes; then
1268 CXXFLAGS="-O2"
1269 else
1270 CXXFLAGS=
1275 version=0.0.7
1277 PACKAGE=libjava
1279 VERSION=$version
1281 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1282 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1284 cat >> confdefs.h <<EOF
1285 #define PACKAGE "$PACKAGE"
1288 cat >> confdefs.h <<EOF
1289 #define VERSION "$VERSION"
1294 missing_dir=`cd $ac_aux_dir && pwd`
1295 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1296 echo "configure:1297: checking for working aclocal" >&5
1297 # Run test in a subshell; some versions of sh will print an error if
1298 # an executable is not found, even if stderr is redirected.
1299 # Redirect stdin to placate older versions of autoconf. Sigh.
1300 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1301 ACLOCAL=aclocal
1302 echo "$ac_t""found" 1>&6
1303 else
1304 ACLOCAL="$missing_dir/missing aclocal"
1305 echo "$ac_t""missing" 1>&6
1308 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1309 echo "configure:1310: checking for working autoconf" >&5
1310 # Run test in a subshell; some versions of sh will print an error if
1311 # an executable is not found, even if stderr is redirected.
1312 # Redirect stdin to placate older versions of autoconf. Sigh.
1313 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1314 AUTOCONF=autoconf
1315 echo "$ac_t""found" 1>&6
1316 else
1317 AUTOCONF="$missing_dir/missing autoconf"
1318 echo "$ac_t""missing" 1>&6
1321 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1322 echo "configure:1323: checking for working automake" >&5
1323 # Run test in a subshell; some versions of sh will print an error if
1324 # an executable is not found, even if stderr is redirected.
1325 # Redirect stdin to placate older versions of autoconf. Sigh.
1326 if (automake --version) < /dev/null > /dev/null 2>&1; then
1327 AUTOMAKE=automake
1328 echo "$ac_t""found" 1>&6
1329 else
1330 AUTOMAKE="$missing_dir/missing automake"
1331 echo "$ac_t""missing" 1>&6
1334 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1335 echo "configure:1336: checking for working autoheader" >&5
1336 # Run test in a subshell; some versions of sh will print an error if
1337 # an executable is not found, even if stderr is redirected.
1338 # Redirect stdin to placate older versions of autoconf. Sigh.
1339 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1340 AUTOHEADER=autoheader
1341 echo "$ac_t""found" 1>&6
1342 else
1343 AUTOHEADER="$missing_dir/missing autoheader"
1344 echo "$ac_t""missing" 1>&6
1347 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1348 echo "configure:1349: checking for working makeinfo" >&5
1349 # Run test in a subshell; some versions of sh will print an error if
1350 # an executable is not found, even if stderr is redirected.
1351 # Redirect stdin to placate older versions of autoconf. Sigh.
1352 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1353 MAKEINFO=makeinfo
1354 echo "$ac_t""found" 1>&6
1355 else
1356 MAKEINFO="$missing_dir/missing makeinfo"
1357 echo "$ac_t""missing" 1>&6
1362 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1363 # run it explicitly here, it will be run implicitly before
1364 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1365 # be run before AC_CANONICAL_HOST.
1366 echo $ac_n "checking build system type""... $ac_c" 1>&6
1367 echo "configure:1368: checking build system type" >&5
1369 build_alias=$build
1370 case "$build_alias" in
1371 NONE)
1372 case $nonopt in
1373 NONE) build_alias=$host_alias ;;
1374 *) build_alias=$nonopt ;;
1375 esac ;;
1376 esac
1378 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1379 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382 echo "$ac_t""$build" 1>&6
1385 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1386 set dummy ${ac_tool_prefix}as; ac_word=$2
1387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1388 echo "configure:1389: checking for $ac_word" >&5
1389 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1391 else
1392 if test -n "$AS"; then
1393 ac_cv_prog_AS="$AS" # Let the user override the test.
1394 else
1395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1396 ac_dummy="$PATH"
1397 for ac_dir in $ac_dummy; do
1398 test -z "$ac_dir" && ac_dir=.
1399 if test -f $ac_dir/$ac_word; then
1400 ac_cv_prog_AS="${ac_tool_prefix}as"
1401 break
1403 done
1404 IFS="$ac_save_ifs"
1405 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1408 AS="$ac_cv_prog_AS"
1409 if test -n "$AS"; then
1410 echo "$ac_t""$AS" 1>&6
1411 else
1412 echo "$ac_t""no" 1>&6
1417 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1418 set dummy ${ac_tool_prefix}ar; ac_word=$2
1419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_word" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424 if test -n "$AR"; then
1425 ac_cv_prog_AR="$AR" # Let the user override the test.
1426 else
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1428 ac_dummy="$PATH"
1429 for ac_dir in $ac_dummy; do
1430 test -z "$ac_dir" && ac_dir=.
1431 if test -f $ac_dir/$ac_word; then
1432 ac_cv_prog_AR="${ac_tool_prefix}ar"
1433 break
1435 done
1436 IFS="$ac_save_ifs"
1437 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1440 AR="$ac_cv_prog_AR"
1441 if test -n "$AR"; then
1442 echo "$ac_t""$AR" 1>&6
1443 else
1444 echo "$ac_t""no" 1>&6
1449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452 echo "configure:1453: checking for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456 if test -n "$RANLIB"; then
1457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1458 else
1459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1460 ac_dummy="$PATH"
1461 for ac_dir in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir=.
1463 if test -f $ac_dir/$ac_word; then
1464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1465 break
1467 done
1468 IFS="$ac_save_ifs"
1471 RANLIB="$ac_cv_prog_RANLIB"
1472 if test -n "$RANLIB"; then
1473 echo "$ac_t""$RANLIB" 1>&6
1474 else
1475 echo "$ac_t""no" 1>&6
1479 if test -z "$ac_cv_prog_RANLIB"; then
1480 if test -n "$ac_tool_prefix"; then
1481 # Extract the first word of "ranlib", so it can be a program name with args.
1482 set dummy ranlib; ac_word=$2
1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_word" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1487 else
1488 if test -n "$RANLIB"; then
1489 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1490 else
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1492 ac_dummy="$PATH"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_prog_RANLIB="ranlib"
1497 break
1499 done
1500 IFS="$ac_save_ifs"
1501 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1504 RANLIB="$ac_cv_prog_RANLIB"
1505 if test -n "$RANLIB"; then
1506 echo "$ac_t""$RANLIB" 1>&6
1507 else
1508 echo "$ac_t""no" 1>&6
1511 else
1512 RANLIB=":"
1517 # Find a good install program. We prefer a C program (faster),
1518 # so one script is as good as another. But avoid the broken or
1519 # incompatible versions:
1520 # SysV /etc/install, /usr/sbin/install
1521 # SunOS /usr/etc/install
1522 # IRIX /sbin/install
1523 # AIX /bin/install
1524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1527 # ./install, which can be erroneously created by make from ./install.sh.
1528 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1529 echo "configure:1530: checking for a BSD compatible install" >&5
1530 if test -z "$INSTALL"; then
1531 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1533 else
1534 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1535 for ac_dir in $PATH; do
1536 # Account for people who put trailing slashes in PATH elements.
1537 case "$ac_dir/" in
1538 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1540 # OSF1 and SCO ODT 3.0 have their own names for install.
1541 # Don't use installbsd from OSF since it installs stuff as root
1542 # by default.
1543 for ac_prog in ginstall scoinst install; do
1544 if test -f $ac_dir/$ac_prog; then
1545 if test $ac_prog = install &&
1546 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1547 # AIX install. It has an incompatible calling convention.
1549 else
1550 ac_cv_path_install="$ac_dir/$ac_prog -c"
1551 break 2
1554 done
1556 esac
1557 done
1558 IFS="$ac_save_IFS"
1561 if test "${ac_cv_path_install+set}" = set; then
1562 INSTALL="$ac_cv_path_install"
1563 else
1564 # As a last resort, use the slow shell script. We don't cache a
1565 # path for INSTALL within a source directory, because that will
1566 # break other packages using the cache if that directory is
1567 # removed, or if the path is relative.
1568 INSTALL="$ac_install_sh"
1571 echo "$ac_t""$INSTALL" 1>&6
1573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1574 # It thinks the first close brace ends the variable substitution.
1575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1582 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1583 echo "configure:1584: checking whether to enable maintainer-specific portions of Makefiles" >&5
1584 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1585 if test "${enable_maintainer_mode+set}" = set; then
1586 enableval="$enable_maintainer_mode"
1587 USE_MAINTAINER_MODE=$enableval
1588 else
1589 USE_MAINTAINER_MODE=no
1592 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1595 if test $USE_MAINTAINER_MODE = yes; then
1596 MAINTAINER_MODE_TRUE=
1597 MAINTAINER_MODE_FALSE='#'
1598 else
1599 MAINTAINER_MODE_TRUE='#'
1600 MAINTAINER_MODE_FALSE=
1602 MAINT=$MAINTAINER_MODE_TRUE
1606 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1607 # at least currently, we never actually build a program, so we never
1608 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1609 # fails, because we are probably configuring with a cross compiler
1610 # which cant create executables. So we include AC_EXEEXT to keep
1611 # automake happy, but we dont execute it, since we dont care about
1612 # the result.
1613 if false; then
1616 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1617 echo "configure:1618: checking for executable suffix" >&5
1618 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1622 ac_cv_exeext=.exe
1623 else
1624 rm -f conftest*
1625 echo 'int main () { return 0; }' > conftest.$ac_ext
1626 ac_cv_exeext=
1627 if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1628 for file in conftest.*; do
1629 case $file in
1630 *.c | *.o | *.obj) ;;
1631 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1632 esac
1633 done
1634 else
1635 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1637 rm -f conftest*
1638 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1642 EXEEXT=""
1643 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1644 echo "$ac_t""${ac_cv_exeext}" 1>&6
1645 ac_exeext=$EXEEXT
1649 # configure.host sets the following important variables
1650 # libgcj_cflags - host specific C compiler flags
1651 # libgcj_cxxflags - host specific C++ compiler flags
1652 # libgcj_javaflags - host specific Java compiler flags
1654 libgcj_cflags=
1655 libgcj_cxxflags=
1656 libgcj_javaflags=
1658 . ${srcdir}/configure.host
1660 LIBGCJ_CFLAGS="${libgcj_cflags}"
1661 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1662 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1672 # Only use libltdl for native builds.
1673 if test -z "${with_cross_host}"; then
1674 case $enable_ltdl_convenience in
1675 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1676 "") enable_ltdl_convenience=yes
1677 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1678 esac
1679 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1680 INCLTDL='-I${top_srcdir}/''libltdl'
1683 DIRLTDL=libltdl
1684 cat >> confdefs.h <<\EOF
1685 #define USE_LTDL 1
1688 # Sigh. Libtool's macro doesn't do the right thing.
1689 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1690 # FIXME: this is a hack.
1691 sub_auxdir="`cd $ac_aux_dir && pwd`"
1692 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1697 # Check whether --enable-shared or --disable-shared was given.
1698 if test "${enable_shared+set}" = set; then
1699 enableval="$enable_shared"
1700 p=${PACKAGE-default}
1701 case $enableval in
1702 yes) enable_shared=yes ;;
1703 no) enable_shared=no ;;
1705 enable_shared=no
1706 # Look at the argument we got. We use all the common list separators.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1708 for pkg in $enableval; do
1709 if test "X$pkg" = "X$p"; then
1710 enable_shared=yes
1712 done
1713 IFS="$ac_save_ifs"
1715 esac
1716 else
1717 enable_shared=yes
1720 # Check whether --enable-static or --disable-static was given.
1721 if test "${enable_static+set}" = set; then
1722 enableval="$enable_static"
1723 p=${PACKAGE-default}
1724 case $enableval in
1725 yes) enable_static=yes ;;
1726 no) enable_static=no ;;
1728 enable_static=no
1729 # Look at the argument we got. We use all the common list separators.
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1731 for pkg in $enableval; do
1732 if test "X$pkg" = "X$p"; then
1733 enable_static=yes
1735 done
1736 IFS="$ac_save_ifs"
1738 esac
1739 else
1740 enable_static=yes
1743 # Check whether --enable-fast-install or --disable-fast-install was given.
1744 if test "${enable_fast_install+set}" = set; then
1745 enableval="$enable_fast_install"
1746 p=${PACKAGE-default}
1747 case $enableval in
1748 yes) enable_fast_install=yes ;;
1749 no) enable_fast_install=no ;;
1751 enable_fast_install=no
1752 # Look at the argument we got. We use all the common list separators.
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1754 for pkg in $enableval; do
1755 if test "X$pkg" = "X$p"; then
1756 enable_fast_install=yes
1758 done
1759 IFS="$ac_save_ifs"
1761 esac
1762 else
1763 enable_fast_install=yes
1766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1767 if test "${with_gnu_ld+set}" = set; then
1768 withval="$with_gnu_ld"
1769 test "$withval" = no || with_gnu_ld=yes
1770 else
1771 with_gnu_ld=no
1774 ac_prog=ld
1775 if test "$GCC" = yes; then
1776 # Check if gcc -print-prog-name=ld gives a path.
1777 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1778 echo "configure:1779: checking for ld used by GCC" >&5
1779 case $host in
1780 *-*-mingw*)
1781 # gcc leaves a trailing carriage return which upsets mingw
1782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1785 esac
1786 case $ac_prog in
1787 # Accept absolute paths.
1788 [\\/]* | [A-Za-z]:[\\/]*)
1789 re_direlt='/[^/][^/]*/\.\./'
1790 # Canonicalize the path of ld
1791 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1793 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1794 done
1795 test -z "$LD" && LD="$ac_prog"
1798 # If it fails, then pretend we aren't using GCC.
1799 ac_prog=ld
1802 # If it is relative, then search for the first ld in PATH.
1803 with_gnu_ld=unknown
1805 esac
1806 elif test "$with_gnu_ld" = yes; then
1807 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1808 echo "configure:1809: checking for GNU ld" >&5
1809 else
1810 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1811 echo "configure:1812: checking for non-GNU ld" >&5
1813 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816 if test -z "$LD"; then
1817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1818 for ac_dir in $PATH; do
1819 test -z "$ac_dir" && ac_dir=.
1820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1821 lt_cv_path_LD="$ac_dir/$ac_prog"
1822 # Check to see if the program is GNU ld. I'd rather use --version,
1823 # but apparently some GNU ld's only accept -v.
1824 # Break only if it was the GNU/non-GNU ld that we prefer.
1825 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1826 test "$with_gnu_ld" != no && break
1827 else
1828 test "$with_gnu_ld" != yes && break
1831 done
1832 IFS="$ac_save_ifs"
1833 else
1834 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1838 LD="$lt_cv_path_LD"
1839 if test -n "$LD"; then
1840 echo "$ac_t""$LD" 1>&6
1841 else
1842 echo "$ac_t""no" 1>&6
1844 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1845 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1846 echo "configure:1847: checking if the linker ($LD) is GNU ld" >&5
1847 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1849 else
1850 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1851 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1852 lt_cv_prog_gnu_ld=yes
1853 else
1854 lt_cv_prog_gnu_ld=no
1858 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1859 with_gnu_ld=$lt_cv_prog_gnu_ld
1862 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $LD option to reload object files" >&5
1864 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 lt_cv_ld_reload_flag='-r'
1870 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1871 reload_flag=$lt_cv_ld_reload_flag
1872 test -n "$reload_flag" && reload_flag=" $reload_flag"
1874 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1875 echo "configure:1876: checking for BSD-compatible nm" >&5
1876 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 if test -n "$NM"; then
1880 # Let the user override the test.
1881 lt_cv_path_NM="$NM"
1882 else
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1884 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1885 test -z "$ac_dir" && ac_dir=.
1886 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1887 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1888 # Check to see if the nm accepts a BSD-compat flag.
1889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1890 # nm: unknown option "B" ignored
1891 # Tru64's nm complains that /dev/null is an invalid object file
1892 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1893 lt_cv_path_NM="$tmp_nm -B"
1894 break
1895 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1896 lt_cv_path_NM="$tmp_nm -p"
1897 break
1898 else
1899 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1900 continue # so that we can try to find one that supports BSD flags
1903 done
1904 IFS="$ac_save_ifs"
1905 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1909 NM="$lt_cv_path_NM"
1910 echo "$ac_t""$NM" 1>&6
1912 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1913 echo "configure:1914: checking how to recognise dependant libraries" >&5
1914 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1916 else
1917 lt_cv_file_magic_cmd='$MAGIC_CMD'
1918 lt_cv_file_magic_test_file=
1919 lt_cv_deplibs_check_method='unknown'
1920 # Need to set the preceding variable on all platforms that support
1921 # interlibrary dependencies.
1922 # 'none' -- dependencies not supported.
1923 # `unknown' -- same as none, but documents that we really don't know.
1924 # 'pass_all' -- all dependencies passed with no checks.
1925 # 'test_compile' -- check by making test program.
1926 # 'file_magic [regex]' -- check by looking for files in library path
1927 # which responds to the $file_magic_cmd with a given egrep regex.
1928 # If you have `file' or equivalent on your system and you're not sure
1929 # whether `pass_all' will *always* work, you probably want this one.
1931 case $host_os in
1932 aix*)
1933 lt_cv_deplibs_check_method=pass_all
1936 beos*)
1937 lt_cv_deplibs_check_method=pass_all
1940 bsdi4*)
1941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1942 lt_cv_file_magic_cmd='/usr/bin/file -L'
1943 lt_cv_file_magic_test_file=/shlib/libc.so
1946 cygwin* | mingw* |pw32*)
1947 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1948 lt_cv_file_magic_cmd='$OBJDUMP -f'
1951 darwin* | rhapsody*)
1952 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1953 lt_cv_file_magic_cmd='/usr/bin/file -L'
1954 case "$host_os" in
1955 rhapsody* | darwin1.012)
1956 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1958 *) # Darwin 1.3 on
1959 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1961 esac
1964 freebsd* )
1965 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1966 case $host_cpu in
1967 i*86 )
1968 # Not sure whether the presence of OpenBSD here was a mistake.
1969 # Let's accept both of them until this is cleared up.
1970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1971 lt_cv_file_magic_cmd=/usr/bin/file
1972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1974 esac
1975 else
1976 lt_cv_deplibs_check_method=pass_all
1980 gnu*)
1981 lt_cv_deplibs_check_method=pass_all
1984 hpux10.20*|hpux11*)
1985 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1986 lt_cv_file_magic_cmd=/usr/bin/file
1987 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1990 irix5* | irix6*)
1991 case $host_os in
1992 irix5*)
1993 # this will be overridden with pass_all, but let us keep it just in case
1994 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1997 case $LD in
1998 *-32|*"-32 ") libmagic=32-bit;;
1999 *-n32|*"-n32 ") libmagic=N32;;
2000 *-64|*"-64 ") libmagic=64-bit;;
2001 *) libmagic=never-match;;
2002 esac
2003 # this will be overridden with pass_all, but let us keep it just in case
2004 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2006 esac
2007 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2008 lt_cv_deplibs_check_method=pass_all
2011 # This must be Linux ELF.
2012 linux-gnu*)
2013 case $host_cpu in
2014 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2015 lt_cv_deplibs_check_method=pass_all ;;
2017 # glibc up to 2.1.1 does not perform some relocations on ARM
2018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2019 esac
2020 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2023 netbsd*)
2024 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2025 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2026 else
2027 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2031 newsos6)
2032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2033 lt_cv_file_magic_cmd=/usr/bin/file
2034 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2037 osf3* | osf4* | osf5*)
2038 # this will be overridden with pass_all, but let us keep it just in case
2039 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2040 lt_cv_file_magic_test_file=/shlib/libc.so
2041 lt_cv_deplibs_check_method=pass_all
2044 sco3.2v5*)
2045 lt_cv_deplibs_check_method=pass_all
2048 solaris*)
2049 lt_cv_deplibs_check_method=pass_all
2050 lt_cv_file_magic_test_file=/lib/libc.so
2053 sysv5uw[78]* | sysv4*uw2*)
2054 lt_cv_deplibs_check_method=pass_all
2057 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2058 case $host_vendor in
2059 ncr)
2060 lt_cv_deplibs_check_method=pass_all
2062 motorola)
2063 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]'
2064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2066 esac
2068 esac
2072 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2073 file_magic_cmd=$lt_cv_file_magic_cmd
2074 deplibs_check_method=$lt_cv_deplibs_check_method
2076 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2077 echo "configure:2078: checking for object suffix" >&5
2078 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2081 rm -f conftest*
2082 echo 'int i = 1;' > conftest.$ac_ext
2083 if { (eval echo configure:2084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2084 for ac_file in conftest.*; do
2085 case $ac_file in
2086 *.c) ;;
2087 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2088 esac
2089 done
2090 else
2091 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2093 rm -f conftest*
2096 echo "$ac_t""$ac_cv_objext" 1>&6
2097 OBJEXT=$ac_cv_objext
2098 ac_objext=$ac_cv_objext
2100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2102 # Only perform the check for file, if the check method requires it
2103 case $deplibs_check_method in
2104 file_magic*)
2105 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2106 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2107 echo "configure:2108: checking for ${ac_tool_prefix}file" >&5
2108 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2110 else
2111 case $MAGIC_CMD in
2113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2115 ?:/*)
2116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2119 ac_save_MAGIC_CMD="$MAGIC_CMD"
2120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2121 ac_dummy="/usr/bin:$PATH"
2122 for ac_dir in $ac_dummy; do
2123 test -z "$ac_dir" && ac_dir=.
2124 if test -f $ac_dir/${ac_tool_prefix}file; then
2125 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2126 if test -n "$file_magic_test_file"; then
2127 case $deplibs_check_method in
2128 "file_magic "*)
2129 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2132 egrep "$file_magic_regex" > /dev/null; then
2134 else
2135 cat <<EOF 1>&2
2137 *** Warning: the command libtool uses to detect shared libraries,
2138 *** $file_magic_cmd, produces output that libtool cannot recognize.
2139 *** The result is that libtool may fail to recognize shared libraries
2140 *** as such. This will affect the creation of libtool libraries that
2141 *** depend on shared libraries, but programs linked with such libtool
2142 *** libraries will work regardless of this problem. Nevertheless, you
2143 *** may want to report the problem to your system manager and/or to
2144 *** bug-libtool@gnu.org
2147 fi ;;
2148 esac
2150 break
2152 done
2153 IFS="$ac_save_ifs"
2154 MAGIC_CMD="$ac_save_MAGIC_CMD"
2156 esac
2159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2160 if test -n "$MAGIC_CMD"; then
2161 echo "$ac_t""$MAGIC_CMD" 1>&6
2162 else
2163 echo "$ac_t""no" 1>&6
2166 if test -z "$lt_cv_path_MAGIC_CMD"; then
2167 if test -n "$ac_tool_prefix"; then
2168 echo $ac_n "checking for file""... $ac_c" 1>&6
2169 echo "configure:2170: checking for file" >&5
2170 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173 case $MAGIC_CMD in
2175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2177 ?:/*)
2178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2181 ac_save_MAGIC_CMD="$MAGIC_CMD"
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2183 ac_dummy="/usr/bin:$PATH"
2184 for ac_dir in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir=.
2186 if test -f $ac_dir/file; then
2187 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2188 if test -n "$file_magic_test_file"; then
2189 case $deplibs_check_method in
2190 "file_magic "*)
2191 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2194 egrep "$file_magic_regex" > /dev/null; then
2196 else
2197 cat <<EOF 1>&2
2199 *** Warning: the command libtool uses to detect shared libraries,
2200 *** $file_magic_cmd, produces output that libtool cannot recognize.
2201 *** The result is that libtool may fail to recognize shared libraries
2202 *** as such. This will affect the creation of libtool libraries that
2203 *** depend on shared libraries, but programs linked with such libtool
2204 *** libraries will work regardless of this problem. Nevertheless, you
2205 *** may want to report the problem to your system manager and/or to
2206 *** bug-libtool@gnu.org
2209 fi ;;
2210 esac
2212 break
2214 done
2215 IFS="$ac_save_ifs"
2216 MAGIC_CMD="$ac_save_MAGIC_CMD"
2218 esac
2221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2222 if test -n "$MAGIC_CMD"; then
2223 echo "$ac_t""$MAGIC_CMD" 1>&6
2224 else
2225 echo "$ac_t""no" 1>&6
2228 else
2229 MAGIC_CMD=:
2235 esac
2237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_word" >&5
2241 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2243 else
2244 if test -n "$RANLIB"; then
2245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2246 else
2247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2248 ac_dummy="$PATH"
2249 for ac_dir in $ac_dummy; do
2250 test -z "$ac_dir" && ac_dir=.
2251 if test -f $ac_dir/$ac_word; then
2252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2253 break
2255 done
2256 IFS="$ac_save_ifs"
2259 RANLIB="$ac_cv_prog_RANLIB"
2260 if test -n "$RANLIB"; then
2261 echo "$ac_t""$RANLIB" 1>&6
2262 else
2263 echo "$ac_t""no" 1>&6
2267 if test -z "$ac_cv_prog_RANLIB"; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "ranlib", so it can be a program name with args.
2270 set dummy ranlib; ac_word=$2
2271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_word" >&5
2273 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2275 else
2276 if test -n "$RANLIB"; then
2277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2278 else
2279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2280 ac_dummy="$PATH"
2281 for ac_dir in $ac_dummy; do
2282 test -z "$ac_dir" && ac_dir=.
2283 if test -f $ac_dir/$ac_word; then
2284 ac_cv_prog_RANLIB="ranlib"
2285 break
2287 done
2288 IFS="$ac_save_ifs"
2289 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2292 RANLIB="$ac_cv_prog_RANLIB"
2293 if test -n "$RANLIB"; then
2294 echo "$ac_t""$RANLIB" 1>&6
2295 else
2296 echo "$ac_t""no" 1>&6
2299 else
2300 RANLIB=":"
2304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}strip; ac_word=$2
2306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2307 echo "configure:2308: checking for $ac_word" >&5
2308 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2310 else
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 else
2314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2315 ac_dummy="$PATH"
2316 for ac_dir in $ac_dummy; do
2317 test -z "$ac_dir" && ac_dir=.
2318 if test -f $ac_dir/$ac_word; then
2319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2320 break
2322 done
2323 IFS="$ac_save_ifs"
2326 STRIP="$ac_cv_prog_STRIP"
2327 if test -n "$STRIP"; then
2328 echo "$ac_t""$STRIP" 1>&6
2329 else
2330 echo "$ac_t""no" 1>&6
2334 if test -z "$ac_cv_prog_STRIP"; then
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "strip", so it can be a program name with args.
2337 set dummy strip; ac_word=$2
2338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2339 echo "configure:2340: checking for $ac_word" >&5
2340 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2342 else
2343 if test -n "$STRIP"; then
2344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2345 else
2346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2347 ac_dummy="$PATH"
2348 for ac_dir in $ac_dummy; do
2349 test -z "$ac_dir" && ac_dir=.
2350 if test -f $ac_dir/$ac_word; then
2351 ac_cv_prog_STRIP="strip"
2352 break
2354 done
2355 IFS="$ac_save_ifs"
2356 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2359 STRIP="$ac_cv_prog_STRIP"
2360 if test -n "$STRIP"; then
2361 echo "$ac_t""$STRIP" 1>&6
2362 else
2363 echo "$ac_t""no" 1>&6
2366 else
2367 STRIP=":"
2372 # Check for any special flags to pass to ltconfig.
2373 libtool_flags="--cache-file=$cache_file"
2374 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2375 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2376 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2377 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2378 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2379 libtool_flags="$libtool_flags --enable-dlopen"
2381 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2382 if test "${enable_libtool_lock+set}" = set; then
2383 enableval="$enable_libtool_lock"
2387 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2388 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2390 # Check whether --with-pic or --without-pic was given.
2391 if test "${with_pic+set}" = set; then
2392 withval="$with_pic"
2393 pic_mode="$withval"
2394 else
2395 pic_mode=default
2398 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2399 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2401 # Some flags need to be propagated to the compiler or linker for good
2402 # libtool support.
2403 case $host in
2404 *-*-irix6*)
2405 # Find out which ABI we are using.
2406 echo '#line 2407 "configure"' > conftest.$ac_ext
2407 if { (eval echo configure:2408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2408 case `/usr/bin/file conftest.$ac_objext` in
2409 *32-bit*)
2410 LD="${LD-ld} -32"
2412 *N32*)
2413 LD="${LD-ld} -n32"
2415 *64-bit*)
2416 LD="${LD-ld} -64"
2418 esac
2420 rm -rf conftest*
2423 *-*-sco3.2v5*)
2424 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2425 SAVE_CFLAGS="$CFLAGS"
2426 CFLAGS="$CFLAGS -belf"
2427 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2428 echo "configure:2429: checking whether the C compiler needs -belf" >&5
2429 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2431 else
2433 ac_ext=c
2434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2438 cross_compiling=$ac_cv_prog_cc_cross
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2444 int main() {
2446 ; return 0; }
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2449 rm -rf conftest*
2450 lt_cv_cc_needs_belf=yes
2451 else
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 rm -rf conftest*
2455 lt_cv_cc_needs_belf=no
2457 rm -f conftest*
2458 ac_ext=c
2459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2463 cross_compiling=$ac_cv_prog_cc_cross
2467 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2468 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2469 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2470 CFLAGS="$SAVE_CFLAGS"
2475 esac
2477 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2478 echo "configure:2479: checking how to run the C++ preprocessor" >&5
2479 if test -z "$CXXCPP"; then
2480 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2482 else
2483 ac_ext=C
2484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2485 ac_cpp='$CXXCPP $CPPFLAGS'
2486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2488 cross_compiling=$ac_cv_prog_cxx_cross
2489 CXXCPP="${CXX-g++} -E"
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 #include <stdlib.h>
2495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2496 { (eval echo configure:2497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2498 if test -z "$ac_err"; then
2500 else
2501 echo "$ac_err" >&5
2502 echo "configure: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2504 rm -rf conftest*
2505 CXXCPP=/lib/cpp
2507 rm -f conftest*
2508 ac_cv_prog_CXXCPP="$CXXCPP"
2509 ac_ext=c
2510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2514 cross_compiling=$ac_cv_prog_cc_cross
2517 CXXCPP="$ac_cv_prog_CXXCPP"
2518 echo "$ac_t""$CXXCPP" 1>&6
2521 # Save cache, so that ltconfig can load it
2522 cat > confcache <<\EOF
2523 # This file is a shell script that caches the results of configure
2524 # tests run on this system so they can be shared between configure
2525 # scripts and configure runs. It is not useful on other systems.
2526 # If it contains results you don't want to keep, you may remove or edit it.
2528 # By default, configure uses ./config.cache as the cache file,
2529 # creating it if it does not exist already. You can give configure
2530 # the --cache-file=FILE option to use a different cache file; that is
2531 # what configure does when it calls configure scripts in
2532 # subdirectories, so they share the cache.
2533 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2534 # config.status only pays attention to the cache file if you give it the
2535 # --recheck option to rerun configure.
2538 # The following way of writing the cache mishandles newlines in values,
2539 # but we know of no workaround that is simple, portable, and efficient.
2540 # So, don't put newlines in cache variables' values.
2541 # Ultrix sh set writes to stderr and can't be redirected directly,
2542 # and sets the high bit in the cache file unless we assign to the vars.
2543 (set) 2>&1 |
2544 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2545 *ac_space=\ *)
2546 # `set' does not quote correctly, so add quotes (double-quote substitution
2547 # turns \\\\ into \\, and sed turns \\ into \).
2548 sed -n \
2549 -e "s/'/'\\\\''/g" \
2550 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2553 # `set' quotes correctly as required by POSIX, so do not add quotes.
2554 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2556 esac >> confcache
2557 if cmp -s $cache_file confcache; then
2559 else
2560 if test -w $cache_file; then
2561 echo "updating cache $cache_file"
2562 cat confcache > $cache_file
2563 else
2564 echo "not updating unwritable cache $cache_file"
2567 rm -f confcache
2570 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2571 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2572 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2573 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2574 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2575 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2576 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2577 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2578 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2579 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2581 # Reload cache, that may have been modified by ltconfig
2582 if test -r "$cache_file"; then
2583 echo "loading cache $cache_file"
2584 . $cache_file
2585 else
2586 echo "creating cache $cache_file"
2587 > $cache_file
2591 # This can be used to rebuild libtool when needed
2592 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2594 # Always use our own libtool.
2595 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2597 # Redirect the config.log output again, so that the ltconfig log is not
2598 # clobbered by the next message.
2599 exec 5>>./config.log
2603 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2604 lt_save_CC="$CC"
2605 lt_save_CFLAGS="$CFLAGS"
2606 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2607 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2608 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2609 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2610 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2611 deplibs_check_method="$deplibs_check_method" \
2612 file_magic_cmd="$file_magic_cmd" \
2613 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2614 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2615 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2616 CC="$lt_save_CC"
2617 CFLAGS="$lt_save_CFLAGS"
2619 # Redirect the config.log output again, so that the ltconfig log is not
2620 # clobbered by the next message.
2621 exec 5>>./config.log
2628 subdirs="$DIRLTDL"
2631 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2632 COMPPATH=.
2633 else
2634 COMPPATH=..
2640 if test -d $srcdir/testsuite; then
2641 TESTSUBDIR_TRUE=
2642 TESTSUBDIR_FALSE='#'
2643 else
2644 TESTSUBDIR_TRUE='#'
2645 TESTSUBDIR_FALSE=
2648 # Check whether --enable-fast-character or --disable-fast-character was given.
2649 if test "${enable_fast_character+set}" = set; then
2650 enableval="$enable_fast_character"
2651 # Nothing
2653 else
2654 cat >> confdefs.h <<\EOF
2655 #define COMPACT_CHARACTER 1
2661 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2662 if test "${enable_getenv_properties+set}" = set; then
2663 enableval="$enable_getenv_properties"
2668 if test -n "$enable_getenv_properties"; then
2669 enable_getenv_properties=${enable_getenv_properties_default-yes}
2671 if test "$enable_getenv_properties" = no; then
2672 cat >> confdefs.h <<\EOF
2673 #define DISABLE_GETENV_PROPERTIES 1
2678 LIBGCJDEBUG="false"
2680 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2681 if test "${enable_libgcj_debug+set}" = set; then
2682 enableval="$enable_libgcj_debug"
2683 if test "$enable_libgcj_debug" = yes; then
2684 cat >> confdefs.h <<\EOF
2685 #define DEBUG 1
2688 LIBGCJDEBUG="true"
2693 # Check whether --enable-interpreter or --disable-interpreter was given.
2694 if test "${enable_interpreter+set}" = set; then
2695 enableval="$enable_interpreter"
2696 if test "$enable_interpreter" = yes; then
2697 # This can also be set in configure.host.
2698 libgcj_interpreter=yes
2699 elif test "$enable_interpreter" = no; then
2700 libgcj_interpreter=no
2705 if test "$libgcj_interpreter" = yes; then
2706 cat >> confdefs.h <<\EOF
2707 #define INTERPRETER 1
2712 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2713 echo "configure:2714: checking for exception model to use" >&5
2715 ac_ext=C
2716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2717 ac_cpp='$CXXCPP $CPPFLAGS'
2718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2720 cross_compiling=$ac_cv_prog_cxx_cross
2722 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2723 if test "${enable_sjlj_exceptions+set}" = set; then
2724 enableval="$enable_sjlj_exceptions"
2726 else
2727 cat > conftest.$ac_ext << EOF
2728 #line 2729 "configure"
2729 struct S { ~S(); };
2730 void bar();
2731 void foo()
2733 S s;
2734 bar();
2737 old_CXXFLAGS="$CXXFLAGS"
2738 CXXFLAGS=-S
2739 if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2740 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2741 enable_sjlj_exceptions=yes
2742 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2743 enable_sjlj_exceptions=no
2746 CXXFLAGS="$old_CXXFLAGS"
2747 rm -f conftest*
2750 if test x$enable_sjlj_exceptions = xyes; then
2751 cat >> confdefs.h <<\EOF
2752 #define SJLJ_EXCEPTIONS 1
2755 ac_exception_model_name=sjlj
2756 elif test x$enable_sjlj_exceptions = xno; then
2757 ac_exception_model_name="call frame"
2758 else
2759 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2761 ac_ext=c
2762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2766 cross_compiling=$ac_cv_prog_cc_cross
2768 echo "$ac_t""$ac_exception_model_name" 1>&6
2770 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2771 echo "configure:2772: checking for data_start" >&5
2772 LIBDATASTARTSPEC=
2773 NEEDS_DATA_START=
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2777 extern int data_start;
2778 int main() {
2779 return ((int) &data_start);
2780 ; return 0; }
2782 if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2783 rm -rf conftest*
2784 echo "$ac_t""found it" 1>&6
2785 else
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2788 rm -rf conftest*
2789 LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
2790 NEEDS_DATA_START=yes
2791 echo "$ac_t""missing" 1>&6
2793 rm -f conftest*
2796 # Check whether --enable-java-net or --disable-java-net was given.
2797 if test "${enable_java_net+set}" = set; then
2798 enableval="$enable_java_net"
2803 if test -n "$enable_java_net"; then
2804 enable_java_net=${enable_java_net_default-yes}
2806 if test "$enable_java_net" = no; then
2807 cat >> confdefs.h <<\EOF
2808 #define DISABLE_JAVA_NET 1
2813 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2814 if test "${enable_jvmpi+set}" = set; then
2815 enableval="$enable_jvmpi"
2820 if test "$enable_jvmpi" != no; then
2821 cat >> confdefs.h <<\EOF
2822 #define ENABLE_JVMPI 1
2827 TARGET_ECOS="no"
2828 # Check whether --with-ecos or --without-ecos was given.
2829 if test "${with_ecos+set}" = set; then
2830 withval="$with_ecos"
2831 TARGET_ECOS="$with_ecos"
2836 case "$TARGET_ECOS" in
2838 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2839 PROCESS=${PROCESS-Posix}
2842 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2843 PROCESS=Ecos
2844 cat >> confdefs.h <<\EOF
2845 #define ECOS 1
2849 esac
2851 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2852 echo "configure:2853: checking how to run the C preprocessor" >&5
2853 # On Suns, sometimes $CPP names a directory.
2854 if test -n "$CPP" && test -d "$CPP"; then
2855 CPP=
2857 if test -z "$CPP"; then
2858 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2860 else
2861 # This must be in double quotes, not single quotes, because CPP may get
2862 # substituted into the Makefile and "${CC-cc}" will confuse make.
2863 CPP="${CC-cc} -E"
2864 # On the NeXT, cc -E runs the code through the compiler's parser,
2865 # not just through cpp.
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2869 #include <assert.h>
2870 Syntax Error
2872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2873 { (eval echo configure:2874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2875 if test -z "$ac_err"; then
2877 else
2878 echo "$ac_err" >&5
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2881 rm -rf conftest*
2882 CPP="${CC-cc} -E -traditional-cpp"
2883 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2886 #include <assert.h>
2887 Syntax Error
2889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2890 { (eval echo configure:2891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2892 if test -z "$ac_err"; then
2894 else
2895 echo "$ac_err" >&5
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2898 rm -rf conftest*
2899 CPP="${CC-cc} -nologo -E"
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2903 #include <assert.h>
2904 Syntax Error
2906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2907 { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2909 if test -z "$ac_err"; then
2911 else
2912 echo "$ac_err" >&5
2913 echo "configure: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2915 rm -rf conftest*
2916 CPP=/lib/cpp
2918 rm -f conftest*
2920 rm -f conftest*
2922 rm -f conftest*
2923 ac_cv_prog_CPP="$CPP"
2925 CPP="$ac_cv_prog_CPP"
2926 else
2927 ac_cv_prog_CPP="$CPP"
2929 echo "$ac_t""$CPP" 1>&6
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2934 #include <stdint.h>
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937 egrep "uint32_t" >/dev/null 2>&1; then
2938 rm -rf conftest*
2939 cat >> confdefs.h <<\EOF
2940 #define HAVE_INT32_DEFINED 1
2944 rm -f conftest*
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 #include <inttypes.h>
2951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2952 egrep "uint32_t" >/dev/null 2>&1; then
2953 rm -rf conftest*
2954 cat >> confdefs.h <<\EOF
2955 #define HAVE_INT32_DEFINED 1
2959 rm -f conftest*
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <sys/types.h>
2966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2967 egrep "u_int32_t" >/dev/null 2>&1; then
2968 rm -rf conftest*
2969 cat >> confdefs.h <<\EOF
2970 #define HAVE_BSD_INT32_DEFINED 1
2974 rm -f conftest*
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2979 #include <sys/config.h>
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 egrep "u_int32_t" >/dev/null 2>&1; then
2983 rm -rf conftest*
2984 cat >> confdefs.h <<\EOF
2985 #define HAVE_BSD_INT32_DEFINED 1
2989 rm -f conftest*
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2996 #include <time.h>
2998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2999 egrep "mktime" >/dev/null 2>&1; then
3000 rm -rf conftest*
3001 cat >> confdefs.h <<\EOF
3002 #define HAVE_MKTIME 1
3006 rm -f conftest*
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 #include <time.h>
3013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3014 egrep "localtime" >/dev/null 2>&1; then
3015 rm -rf conftest*
3016 cat >> confdefs.h <<\EOF
3017 #define HAVE_LOCALTIME 1
3021 rm -f conftest*
3024 test -d java || mkdir java
3025 test -d java/io || mkdir java/io
3026 test -d gnu || mkdir gnu
3029 test -d java/lang || mkdir java/lang
3033 SYSTEMSPEC=
3036 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3039 # Check whether --with-system-zlib or --without-system-zlib was given.
3040 if test "${with_system_zlib+set}" = set; then
3041 withval="$with_system_zlib"
3045 ZLIBSPEC=
3047 ZLIBTESTSPEC=
3050 libsubdir=.libs
3052 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3053 echo "configure:3054: checking for garbage collector to use" >&5
3054 # Check whether --enable-java-gc or --disable-java-gc was given.
3055 if test "${enable_java_gc+set}" = set; then
3056 enableval="$enable_java_gc"
3058 GC=$enableval
3059 else
3060 GC=boehm
3063 GCLIBS=
3064 GCINCS=
3065 GCDEPS=
3066 GCOBJS=
3067 GCSPEC=
3068 JC1GCSPEC=
3069 GCTESTSPEC=
3070 case "$GC" in
3071 boehm)
3072 echo "$ac_t""boehm" 1>&6
3073 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3074 # We include the path to the boehm-gc build directory.
3075 # See Makefile.am to understand why.
3076 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3077 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3078 GCSPEC='-lgcjgc'
3079 JC1GCSPEC='-fuse-boehm-gc'
3080 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3081 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3082 GCOBJS=boehm.lo
3083 GCHDR=boehm-gc.h
3084 cat >> confdefs.h <<\EOF
3085 #define HAVE_BOEHM_GC 1
3090 echo "$ac_t""none" 1>&6
3091 GCOBJS=nogc.lo
3092 GCHDR=no-gc.h
3095 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3097 esac
3108 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3109 echo "configure:3110: checking for thread model used by GCC" >&5
3110 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3111 echo "$ac_t""$THREADS" 1>&6
3113 case "$THREADS" in
3114 no | none | single)
3115 THREADS=none
3117 posix | pthreads)
3118 THREADS=posix
3119 case "$host" in
3120 *-*-linux*)
3121 cat >> confdefs.h <<\EOF
3122 #define LINUX_THREADS 1
3126 esac
3128 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3129 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3132 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3134 esac
3136 THREADLIBS=
3137 THREADINCS=
3138 THREADDEPS=
3139 THREADOBJS=
3140 THREADH=
3141 THREADSPEC=
3142 case "$THREADS" in
3143 posix)
3144 THREADLIBS=-lpthread
3145 THREADSPEC=-lpthread
3146 THREADOBJS=posix-threads.lo
3147 THREADH=posix-threads.h
3148 # MIT pthreads doesn't seem to have the mutexattr functions.
3149 # But for now we don't check for it. We just assume you aren't
3150 # using MIT pthreads.
3151 cat >> confdefs.h <<\EOF
3152 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3156 # If we're using the Boehm GC, then we happen to know that it
3157 # defines _REENTRANT, so we don't bother. Eww.
3158 if test "$GC" != boehm; then
3159 cat >> confdefs.h <<\EOF
3160 #define _REENTRANT 1
3164 cat >> confdefs.h <<\EOF
3165 #define _POSIX_PTHREAD_SEMANTICS 1
3170 none)
3171 THREADOBJS=no-threads.lo
3172 THREADH=no-threads.h
3174 esac
3184 if test "$GCC" = yes; then
3185 USING_GCC_TRUE=
3186 USING_GCC_FALSE='#'
3187 else
3188 USING_GCC_TRUE='#'
3189 USING_GCC_FALSE=
3192 CANADIAN=no
3193 NULL_TARGET=no
3194 NATIVE=yes
3196 # Find unwind.h and support headers. If we're in the tree with
3197 # gcc, then look there. Otherwise look in compat-include. If all else
3198 # fails, just hope the user has set things up somehow.
3199 echo "probing $srcdir/../gcc/unwind.h"
3200 if test -r $libgcj_basedir/../gcc/unwind.h; then
3201 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3202 else
3203 if test -d $srcdir/../compat-include; then
3204 GCC_UNWIND_INCLUDE='-I$(top_srcdir)/../compat-include'
3205 else
3206 GCC_UNWIND_INCLUDE=
3210 if test -n "${with_cross_host}"; then
3211 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3212 # may not work correctly, because the compiler may not be able to
3213 # link executables.
3215 # We assume newlib. This lets us hard-code the functions we know
3216 # we'll have.
3217 cat >> confdefs.h <<\EOF
3218 #define HAVE_MEMMOVE 1
3221 cat >> confdefs.h <<\EOF
3222 #define HAVE_MEMCPY 1
3225 cat >> confdefs.h <<\EOF
3226 #define HAVE_STRERROR 1
3229 cat >> confdefs.h <<\EOF
3230 #define HAVE_GMTIME_R 1
3233 cat >> confdefs.h <<\EOF
3234 #define HAVE_LOCALTIME_R 1
3237 cat >> confdefs.h <<\EOF
3238 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3241 cat >> confdefs.h <<\EOF
3242 #define HAVE_ALLOCA 1
3246 cat >> confdefs.h <<\EOF
3247 #define NO_GETUID 1
3251 ZLIBSPEC=-lzgcj
3252 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3254 # If Canadian cross, then don't pick up tools from the build
3255 # directory.
3256 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3257 CANADIAN=yes
3258 GCC_UNWIND_INCLUDE=
3259 GCJ="${target_alias}-gcj"
3261 NATIVE=no
3262 else
3263 for ac_func in strerror ioctl select fstat open fsync sleep
3265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_func" >&5
3267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269 else
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 /* System header to define __stub macros and hopefully few prototypes,
3274 which can conflict with char $ac_func(); below. */
3275 #include <assert.h>
3276 /* Override any gcc2 internal prototype to avoid an error. */
3277 /* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
3279 char $ac_func();
3281 int main() {
3283 /* The GNU C library defines this for functions which it implements
3284 to always fail with ENOSYS. Some functions are actually named
3285 something starting with __ and the normal name is an alias. */
3286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3287 choke me
3288 #else
3289 $ac_func();
3290 #endif
3292 ; return 0; }
3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3295 rm -rf conftest*
3296 eval "ac_cv_func_$ac_func=yes"
3297 else
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3300 rm -rf conftest*
3301 eval "ac_cv_func_$ac_func=no"
3303 rm -f conftest*
3306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3307 echo "$ac_t""yes" 1>&6
3308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3309 cat >> confdefs.h <<EOF
3310 #define $ac_tr_func 1
3313 else
3314 echo "$ac_t""no" 1>&6
3316 done
3318 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3321 echo "configure:3322: checking for $ac_func" >&5
3322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3324 else
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 /* System header to define __stub macros and hopefully few prototypes,
3329 which can conflict with char $ac_func(); below. */
3330 #include <assert.h>
3331 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3334 char $ac_func();
3336 int main() {
3338 /* The GNU C library defines this for functions which it implements
3339 to always fail with ENOSYS. Some functions are actually named
3340 something starting with __ and the normal name is an alias. */
3341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3342 choke me
3343 #else
3344 $ac_func();
3345 #endif
3347 ; return 0; }
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3350 rm -rf conftest*
3351 eval "ac_cv_func_$ac_func=yes"
3352 else
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3355 rm -rf conftest*
3356 eval "ac_cv_func_$ac_func=no"
3358 rm -f conftest*
3361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3364 cat >> confdefs.h <<EOF
3365 #define $ac_tr_func 1
3368 else
3369 echo "$ac_t""no" 1>&6
3371 done
3373 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3376 echo "configure:3377: checking for $ac_func" >&5
3377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3379 else
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 /* System header to define __stub macros and hopefully few prototypes,
3384 which can conflict with char $ac_func(); below. */
3385 #include <assert.h>
3386 /* Override any gcc2 internal prototype to avoid an error. */
3387 /* We use char because int might match the return type of a gcc2
3388 builtin and then its argument prototype would still apply. */
3389 char $ac_func();
3391 int main() {
3393 /* The GNU C library defines this for functions which it implements
3394 to always fail with ENOSYS. Some functions are actually named
3395 something starting with __ and the normal name is an alias. */
3396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3397 choke me
3398 #else
3399 $ac_func();
3400 #endif
3402 ; return 0; }
3404 if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405 rm -rf conftest*
3406 eval "ac_cv_func_$ac_func=yes"
3407 else
3408 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3410 rm -rf conftest*
3411 eval "ac_cv_func_$ac_func=no"
3413 rm -f conftest*
3416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3417 echo "$ac_t""yes" 1>&6
3418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3419 cat >> confdefs.h <<EOF
3420 #define $ac_tr_func 1
3423 else
3424 echo "$ac_t""no" 1>&6
3426 done
3428 for ac_func in nl_langinfo setlocale
3430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3431 echo "configure:3432: checking for $ac_func" >&5
3432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3434 else
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 /* System header to define __stub macros and hopefully few prototypes,
3439 which can conflict with char $ac_func(); below. */
3440 #include <assert.h>
3441 /* Override any gcc2 internal prototype to avoid an error. */
3442 /* We use char because int might match the return type of a gcc2
3443 builtin and then its argument prototype would still apply. */
3444 char $ac_func();
3446 int main() {
3448 /* The GNU C library defines this for functions which it implements
3449 to always fail with ENOSYS. Some functions are actually named
3450 something starting with __ and the normal name is an alias. */
3451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3452 choke me
3453 #else
3454 $ac_func();
3455 #endif
3457 ; return 0; }
3459 if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3460 rm -rf conftest*
3461 eval "ac_cv_func_$ac_func=yes"
3462 else
3463 echo "configure: failed program was:" >&5
3464 cat conftest.$ac_ext >&5
3465 rm -rf conftest*
3466 eval "ac_cv_func_$ac_func=no"
3468 rm -f conftest*
3471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3472 echo "$ac_t""yes" 1>&6
3473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3474 cat >> confdefs.h <<EOF
3475 #define $ac_tr_func 1
3478 else
3479 echo "$ac_t""no" 1>&6
3481 done
3483 for ac_func in inet_aton inet_addr
3485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3486 echo "configure:3487: checking for $ac_func" >&5
3487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3489 else
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 /* System header to define __stub macros and hopefully few prototypes,
3494 which can conflict with char $ac_func(); below. */
3495 #include <assert.h>
3496 /* Override any gcc2 internal prototype to avoid an error. */
3497 /* We use char because int might match the return type of a gcc2
3498 builtin and then its argument prototype would still apply. */
3499 char $ac_func();
3501 int main() {
3503 /* The GNU C library defines this for functions which it implements
3504 to always fail with ENOSYS. Some functions are actually named
3505 something starting with __ and the normal name is an alias. */
3506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3507 choke me
3508 #else
3509 $ac_func();
3510 #endif
3512 ; return 0; }
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3515 rm -rf conftest*
3516 eval "ac_cv_func_$ac_func=yes"
3517 else
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 rm -rf conftest*
3521 eval "ac_cv_func_$ac_func=no"
3523 rm -f conftest*
3526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3529 cat >> confdefs.h <<EOF
3530 #define $ac_tr_func 1
3532 break
3533 else
3534 echo "$ac_t""no" 1>&6
3536 done
3538 for ac_func in inet_pton uname inet_ntoa
3540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3541 echo "configure:3542: checking for $ac_func" >&5
3542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3544 else
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 /* System header to define __stub macros and hopefully few prototypes,
3549 which can conflict with char $ac_func(); below. */
3550 #include <assert.h>
3551 /* Override any gcc2 internal prototype to avoid an error. */
3552 /* We use char because int might match the return type of a gcc2
3553 builtin and then its argument prototype would still apply. */
3554 char $ac_func();
3556 int main() {
3558 /* The GNU C library defines this for functions which it implements
3559 to always fail with ENOSYS. Some functions are actually named
3560 something starting with __ and the normal name is an alias. */
3561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3562 choke me
3563 #else
3564 $ac_func();
3565 #endif
3567 ; return 0; }
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3570 rm -rf conftest*
3571 eval "ac_cv_func_$ac_func=yes"
3572 else
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3575 rm -rf conftest*
3576 eval "ac_cv_func_$ac_func=no"
3578 rm -f conftest*
3581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3582 echo "$ac_t""yes" 1>&6
3583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3584 cat >> confdefs.h <<EOF
3585 #define $ac_tr_func 1
3588 else
3589 echo "$ac_t""no" 1>&6
3591 done
3593 for ac_func in backtrace fork execvp pipe
3595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3596 echo "configure:3597: checking for $ac_func" >&5
3597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3599 else
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* System header to define __stub macros and hopefully few prototypes,
3604 which can conflict with char $ac_func(); below. */
3605 #include <assert.h>
3606 /* Override any gcc2 internal prototype to avoid an error. */
3607 /* We use char because int might match the return type of a gcc2
3608 builtin and then its argument prototype would still apply. */
3609 char $ac_func();
3611 int main() {
3613 /* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3617 choke me
3618 #else
3619 $ac_func();
3620 #endif
3622 ; return 0; }
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3625 rm -rf conftest*
3626 eval "ac_cv_func_$ac_func=yes"
3627 else
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 rm -rf conftest*
3631 eval "ac_cv_func_$ac_func=no"
3633 rm -f conftest*
3636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3637 echo "$ac_t""yes" 1>&6
3638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3639 cat >> confdefs.h <<EOF
3640 #define $ac_tr_func 1
3643 else
3644 echo "$ac_t""no" 1>&6
3646 done
3648 for ac_hdr in execinfo.h unistd.h dlfcn.h
3650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3652 echo "configure:3653: checking for $ac_hdr" >&5
3653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3655 else
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <$ac_hdr>
3661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3662 { (eval echo configure:3663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3664 if test -z "$ac_err"; then
3665 rm -rf conftest*
3666 eval "ac_cv_header_$ac_safe=yes"
3667 else
3668 echo "$ac_err" >&5
3669 echo "configure: failed program was:" >&5
3670 cat conftest.$ac_ext >&5
3671 rm -rf conftest*
3672 eval "ac_cv_header_$ac_safe=no"
3674 rm -f conftest*
3676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3679 cat >> confdefs.h <<EOF
3680 #define $ac_tr_hdr 1
3683 else
3684 echo "$ac_t""no" 1>&6
3686 done
3688 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3689 echo "configure:3690: checking for dladdr in -ldl" >&5
3690 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3693 else
3694 ac_save_LIBS="$LIBS"
3695 LIBS="-ldl $LIBS"
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 /* Override any gcc2 internal prototype to avoid an error. */
3700 /* We use char because int might match the return type of a gcc2
3701 builtin and then its argument prototype would still apply. */
3702 char dladdr();
3704 int main() {
3705 dladdr()
3706 ; return 0; }
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3709 rm -rf conftest*
3710 eval "ac_cv_lib_$ac_lib_var=yes"
3711 else
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3714 rm -rf conftest*
3715 eval "ac_cv_lib_$ac_lib_var=no"
3717 rm -f conftest*
3718 LIBS="$ac_save_LIBS"
3721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3724 cat >> confdefs.h <<\EOF
3725 #define HAVE_DLADDR 1
3728 else
3729 echo "$ac_t""no" 1>&6
3732 for ac_file in /proc/self/exe
3735 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3736 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3737 echo "configure:3738: checking for $ac_file" >&5
3738 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3740 else
3741 if test "$cross_compiling" = yes; then
3742 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3743 else
3744 if test -r $ac_file; then
3745 eval "ac_cv_file_$ac_safe=yes"
3746 else
3747 eval "ac_cv_file_$ac_safe=no"
3751 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3753 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3754 cat >> confdefs.h <<EOF
3755 #define $ac_tr_file 1
3758 cat >> confdefs.h <<\EOF
3759 #define HAVE_PROC_SELF_EXE 1
3762 else
3763 echo "$ac_t""no" 1>&6
3766 done
3771 ICONV_LDFLAGS=
3772 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3773 if test "${with_libiconv_prefix+set}" = set; then
3774 withval="$with_libiconv_prefix"
3776 for dir in `echo "$withval" | tr : ' '`; do
3777 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3778 if test -d $dir/lib; then
3779 LDFLAGS="$LDFLAGS -L$dir/lib"
3780 ICONV_LDFLAGS=-L$dir/lib
3782 done
3788 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3789 echo "configure:3790: checking for iconv" >&5
3790 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3792 else
3794 am_cv_func_iconv="no, consider installing GNU libiconv"
3795 am_cv_lib_iconv=no
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #include <stdlib.h>
3800 #include <iconv.h>
3801 int main() {
3802 iconv_t cd = iconv_open("","");
3803 iconv(cd,NULL,NULL,NULL,NULL);
3804 iconv_close(cd);
3805 ; return 0; }
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3808 rm -rf conftest*
3809 am_cv_func_iconv=yes
3810 else
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 rm -f conftest*
3815 if test "$am_cv_func_iconv" != yes; then
3816 am_save_LIBS="$LIBS"
3817 LIBS="$LIBS -liconv"
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 #include <stdlib.h>
3822 #include <iconv.h>
3823 int main() {
3824 iconv_t cd = iconv_open("","");
3825 iconv(cd,NULL,NULL,NULL,NULL);
3826 iconv_close(cd);
3827 ; return 0; }
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3830 rm -rf conftest*
3831 am_cv_lib_iconv=yes
3832 am_cv_func_iconv=yes
3833 else
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3837 rm -f conftest*
3838 LIBS="$am_save_LIBS"
3843 echo "$ac_t""$am_cv_func_iconv" 1>&6
3844 if test "$am_cv_func_iconv" = yes; then
3845 cat >> confdefs.h <<\EOF
3846 #define HAVE_ICONV 1
3849 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3850 echo "configure:3851: checking for iconv declaration" >&5
3851 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3853 else
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3859 #include <stdlib.h>
3860 #include <iconv.h>
3861 extern
3862 #ifdef __cplusplus
3864 #endif
3865 #if defined(__STDC__) || defined(__cplusplus)
3866 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3867 #else
3868 size_t iconv();
3869 #endif
3871 int main() {
3873 ; return 0; }
3875 if { (eval echo configure:3876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3876 rm -rf conftest*
3877 am_cv_proto_iconv_arg1=""
3878 else
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3881 rm -rf conftest*
3882 am_cv_proto_iconv_arg1="const"
3884 rm -f conftest*
3885 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);"
3888 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3889 echo "$ac_t""${ac_t:-
3890 }$am_cv_proto_iconv" 1>&6
3891 cat >> confdefs.h <<EOF
3892 #define ICONV_CONST $am_cv_proto_iconv_arg1
3896 LIBICONV=
3897 if test "$am_cv_lib_iconv" = yes; then
3898 LIBICONV="-liconv"
3903 for ac_func in gethostbyname_r
3905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3906 echo "configure:3907: checking for $ac_func" >&5
3907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3909 else
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 /* System header to define __stub macros and hopefully few prototypes,
3914 which can conflict with char $ac_func(); below. */
3915 #include <assert.h>
3916 /* Override any gcc2 internal prototype to avoid an error. */
3917 /* We use char because int might match the return type of a gcc2
3918 builtin and then its argument prototype would still apply. */
3919 char $ac_func();
3921 int main() {
3923 /* The GNU C library defines this for functions which it implements
3924 to always fail with ENOSYS. Some functions are actually named
3925 something starting with __ and the normal name is an alias. */
3926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3927 choke me
3928 #else
3929 $ac_func();
3930 #endif
3932 ; return 0; }
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935 rm -rf conftest*
3936 eval "ac_cv_func_$ac_func=yes"
3937 else
3938 echo "configure: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3940 rm -rf conftest*
3941 eval "ac_cv_func_$ac_func=no"
3943 rm -f conftest*
3946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3949 cat >> confdefs.h <<EOF
3950 #define $ac_tr_func 1
3953 cat >> confdefs.h <<\EOF
3954 #define HAVE_GETHOSTBYNAME_R 1
3957 # There are two different kinds of gethostbyname_r.
3958 # We look for the one that returns `int'.
3959 # Hopefully this check is robust enough.
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 #include <netdb.h>
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3967 rm -rf conftest*
3969 cat >> confdefs.h <<\EOF
3970 #define GETHOSTBYNAME_R_RETURNS_INT 1
3974 rm -f conftest*
3977 case " $GCINCS " in
3978 *" -D_REENTRANT "*) ;;
3980 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3981 echo "configure:3982: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3982 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3984 else
3986 ac_ext=C
3987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3988 ac_cpp='$CXXCPP $CPPFLAGS'
3989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3991 cross_compiling=$ac_cv_prog_cxx_cross
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 #include <netdb.h>
3997 int main() {
3998 gethostbyname_r("", 0, 0);
3999 ; return 0; }
4001 if { (eval echo configure:4002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4002 rm -rf conftest*
4003 libjava_cv_gethostbyname_r_needs_reentrant=no
4004 else
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 rm -rf conftest*
4008 CPPFLAGS_SAVE="$CPPFLAGS"
4009 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 #include <netdb.h>
4014 int main() {
4015 gethostbyname_r("", 0, 0);
4016 ; return 0; }
4018 if { (eval echo configure:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4019 rm -rf conftest*
4020 libjava_cv_gethostbyname_r_needs_reentrant=yes
4021 else
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 rm -rf conftest*
4025 libjava_cv_gethostbyname_r_needs_reentrant=fail
4027 rm -f conftest*
4028 CPPFLAGS="$CPPFLAGS_SAVE"
4031 rm -f conftest*
4032 ac_ext=c
4033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4037 cross_compiling=$ac_cv_prog_cc_cross
4042 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4043 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4044 cat >> confdefs.h <<\EOF
4045 #define _REENTRANT 1
4050 esac
4052 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4053 echo "configure:4054: checking for struct hostent_data" >&5
4054 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4056 else
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4061 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4062 # define _REENTRANT 1
4063 #endif
4064 #include <netdb.h>
4065 int main() {
4066 struct hostent_data data;
4067 ; return 0; }
4069 if { (eval echo configure:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4070 rm -rf conftest*
4071 libjava_cv_struct_hostent_data=yes
4072 else
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4075 rm -rf conftest*
4076 libjava_cv_struct_hostent_data=no
4078 rm -f conftest*
4081 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4082 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4083 cat >> confdefs.h <<\EOF
4084 #define HAVE_STRUCT_HOSTENT_DATA 1
4089 else
4090 echo "$ac_t""no" 1>&6
4092 done
4095 for ac_func in gethostbyaddr_r
4097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4098 echo "configure:4099: checking for $ac_func" >&5
4099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4101 else
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4105 /* System header to define __stub macros and hopefully few prototypes,
4106 which can conflict with char $ac_func(); below. */
4107 #include <assert.h>
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4111 char $ac_func();
4113 int main() {
4115 /* The GNU C library defines this for functions which it implements
4116 to always fail with ENOSYS. Some functions are actually named
4117 something starting with __ and the normal name is an alias. */
4118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4119 choke me
4120 #else
4121 $ac_func();
4122 #endif
4124 ; return 0; }
4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4127 rm -rf conftest*
4128 eval "ac_cv_func_$ac_func=yes"
4129 else
4130 echo "configure: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4132 rm -rf conftest*
4133 eval "ac_cv_func_$ac_func=no"
4135 rm -f conftest*
4138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4139 echo "$ac_t""yes" 1>&6
4140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4141 cat >> confdefs.h <<EOF
4142 #define $ac_tr_func 1
4145 cat >> confdefs.h <<\EOF
4146 #define HAVE_GETHOSTBYADDR_R 1
4149 # There are two different kinds of gethostbyaddr_r.
4150 # We look for the one that returns `int'.
4151 # Hopefully this check is robust enough.
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155 #include <netdb.h>
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4159 rm -rf conftest*
4161 cat >> confdefs.h <<\EOF
4162 #define GETHOSTBYADDR_R_RETURNS_INT 1
4166 rm -f conftest*
4168 else
4169 echo "$ac_t""no" 1>&6
4171 done
4174 for ac_func in gethostname
4176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4177 echo "configure:4178: checking for $ac_func" >&5
4178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4180 else
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 /* System header to define __stub macros and hopefully few prototypes,
4185 which can conflict with char $ac_func(); below. */
4186 #include <assert.h>
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4190 char $ac_func();
4192 int main() {
4194 /* The GNU C library defines this for functions which it implements
4195 to always fail with ENOSYS. Some functions are actually named
4196 something starting with __ and the normal name is an alias. */
4197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4198 choke me
4199 #else
4200 $ac_func();
4201 #endif
4203 ; return 0; }
4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4206 rm -rf conftest*
4207 eval "ac_cv_func_$ac_func=yes"
4208 else
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4211 rm -rf conftest*
4212 eval "ac_cv_func_$ac_func=no"
4214 rm -f conftest*
4217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4218 echo "$ac_t""yes" 1>&6
4219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4220 cat >> confdefs.h <<EOF
4221 #define $ac_tr_func 1
4224 cat >> confdefs.h <<\EOF
4225 #define HAVE_GETHOSTNAME 1
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 #include <unistd.h>
4233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4234 egrep "gethostname" >/dev/null 2>&1; then
4235 rm -rf conftest*
4237 cat >> confdefs.h <<\EOF
4238 #define HAVE_GETHOSTNAME_DECL 1
4242 rm -f conftest*
4244 else
4245 echo "$ac_t""no" 1>&6
4247 done
4250 # Look for these functions in the thread library, but only bother
4251 # if using POSIX threads.
4252 if test "$THREADS" = posix; then
4253 save_LIBS="$LIBS"
4254 LIBS="$LIBS $THREADLIBS"
4255 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4256 # E.g., Solaris.
4257 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4260 echo "configure:4261: checking for $ac_func" >&5
4261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4263 else
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 /* System header to define __stub macros and hopefully few prototypes,
4268 which can conflict with char $ac_func(); below. */
4269 #include <assert.h>
4270 /* Override any gcc2 internal prototype to avoid an error. */
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4273 char $ac_func();
4275 int main() {
4277 /* The GNU C library defines this for functions which it implements
4278 to always fail with ENOSYS. Some functions are actually named
4279 something starting with __ and the normal name is an alias. */
4280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4281 choke me
4282 #else
4283 $ac_func();
4284 #endif
4286 ; return 0; }
4288 if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4289 rm -rf conftest*
4290 eval "ac_cv_func_$ac_func=yes"
4291 else
4292 echo "configure: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4294 rm -rf conftest*
4295 eval "ac_cv_func_$ac_func=no"
4297 rm -f conftest*
4300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4301 echo "$ac_t""yes" 1>&6
4302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4303 cat >> confdefs.h <<EOF
4304 #define $ac_tr_func 1
4307 else
4308 echo "$ac_t""no" 1>&6
4310 done
4313 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4314 # Solaris 7 the name librt is preferred.
4315 for ac_func in sched_yield
4317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4318 echo "configure:4319: checking for $ac_func" >&5
4319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4321 else
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 /* System header to define __stub macros and hopefully few prototypes,
4326 which can conflict with char $ac_func(); below. */
4327 #include <assert.h>
4328 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4331 char $ac_func();
4333 int main() {
4335 /* The GNU C library defines this for functions which it implements
4336 to always fail with ENOSYS. Some functions are actually named
4337 something starting with __ and the normal name is an alias. */
4338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4339 choke me
4340 #else
4341 $ac_func();
4342 #endif
4344 ; return 0; }
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4347 rm -rf conftest*
4348 eval "ac_cv_func_$ac_func=yes"
4349 else
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4352 rm -rf conftest*
4353 eval "ac_cv_func_$ac_func=no"
4355 rm -f conftest*
4358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4361 cat >> confdefs.h <<EOF
4362 #define $ac_tr_func 1
4365 else
4366 echo "$ac_t""no" 1>&6
4367 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4368 echo "configure:4369: checking for sched_yield in -lrt" >&5
4369 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4372 else
4373 ac_save_LIBS="$LIBS"
4374 LIBS="-lrt $LIBS"
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4381 char sched_yield();
4383 int main() {
4384 sched_yield()
4385 ; return 0; }
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 rm -rf conftest*
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4390 else
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 rm -rf conftest*
4394 eval "ac_cv_lib_$ac_lib_var=no"
4396 rm -f conftest*
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4403 cat >> confdefs.h <<\EOF
4404 #define HAVE_SCHED_YIELD 1
4407 THREADLIBS="$THREADLIBS -lrt"
4408 THREADSPEC="$THREADSPEC -lrt"
4409 else
4410 echo "$ac_t""no" 1>&6
4412 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4413 echo "configure:4414: checking for sched_yield in -lposix4" >&5
4414 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4417 else
4418 ac_save_LIBS="$LIBS"
4419 LIBS="-lposix4 $LIBS"
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 /* Override any gcc2 internal prototype to avoid an error. */
4424 /* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */
4426 char sched_yield();
4428 int main() {
4429 sched_yield()
4430 ; return 0; }
4432 if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4433 rm -rf conftest*
4434 eval "ac_cv_lib_$ac_lib_var=yes"
4435 else
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 rm -rf conftest*
4439 eval "ac_cv_lib_$ac_lib_var=no"
4441 rm -f conftest*
4442 LIBS="$ac_save_LIBS"
4445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4446 echo "$ac_t""yes" 1>&6
4448 cat >> confdefs.h <<\EOF
4449 #define HAVE_SCHED_YIELD 1
4452 THREADLIBS="$THREADLIBS -lposix4"
4453 THREADSPEC="$THREADSPEC -lposix4"
4454 else
4455 echo "$ac_t""no" 1>&6
4461 done
4463 LIBS="$save_LIBS"
4465 # We can save a little space at runtime if the mutex has m_count
4466 # or __m_count. This is a nice hack for Linux.
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4470 #include <pthread.h>
4471 int main() {
4473 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4475 ; return 0; }
4477 if { (eval echo configure:4478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4478 rm -rf conftest*
4479 cat >> confdefs.h <<\EOF
4480 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4483 else
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4486 rm -rf conftest*
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4491 #include <pthread.h>
4492 int main() {
4494 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4496 ; return 0; }
4498 if { (eval echo configure:4499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4499 rm -rf conftest*
4500 cat >> confdefs.h <<\EOF
4501 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4504 else
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4508 rm -f conftest*
4510 rm -f conftest*
4513 # We require a way to get the time.
4514 time_found=no
4515 for ac_func in gettimeofday time ftime
4517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4518 echo "configure:4519: checking for $ac_func" >&5
4519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4521 else
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 /* System header to define __stub macros and hopefully few prototypes,
4526 which can conflict with char $ac_func(); below. */
4527 #include <assert.h>
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4531 char $ac_func();
4533 int main() {
4535 /* The GNU C library defines this for functions which it implements
4536 to always fail with ENOSYS. Some functions are actually named
4537 something starting with __ and the normal name is an alias. */
4538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4539 choke me
4540 #else
4541 $ac_func();
4542 #endif
4544 ; return 0; }
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4547 rm -rf conftest*
4548 eval "ac_cv_func_$ac_func=yes"
4549 else
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 rm -rf conftest*
4553 eval "ac_cv_func_$ac_func=no"
4555 rm -f conftest*
4558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4561 cat >> confdefs.h <<EOF
4562 #define $ac_tr_func 1
4564 time_found=yes
4565 else
4566 echo "$ac_t""no" 1>&6
4568 done
4570 if test "$time_found" = no; then
4571 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4574 for ac_func in memmove
4576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_func" >&5
4578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4580 else
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char $ac_func(); below. */
4586 #include <assert.h>
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4590 char $ac_func();
4592 int main() {
4594 /* The GNU C library defines this for functions which it implements
4595 to always fail with ENOSYS. Some functions are actually named
4596 something starting with __ and the normal name is an alias. */
4597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4598 choke me
4599 #else
4600 $ac_func();
4601 #endif
4603 ; return 0; }
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4606 rm -rf conftest*
4607 eval "ac_cv_func_$ac_func=yes"
4608 else
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 rm -rf conftest*
4612 eval "ac_cv_func_$ac_func=no"
4614 rm -f conftest*
4617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4618 echo "$ac_t""yes" 1>&6
4619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4620 cat >> confdefs.h <<EOF
4621 #define $ac_tr_func 1
4624 else
4625 echo "$ac_t""no" 1>&6
4627 done
4630 # We require memcpy.
4631 memcpy_found=no
4632 for ac_func in memcpy
4634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4635 echo "configure:4636: checking for $ac_func" >&5
4636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4638 else
4639 cat > conftest.$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 /* System header to define __stub macros and hopefully few prototypes,
4643 which can conflict with char $ac_func(); below. */
4644 #include <assert.h>
4645 /* Override any gcc2 internal prototype to avoid an error. */
4646 /* We use char because int might match the return type of a gcc2
4647 builtin and then its argument prototype would still apply. */
4648 char $ac_func();
4650 int main() {
4652 /* The GNU C library defines this for functions which it implements
4653 to always fail with ENOSYS. Some functions are actually named
4654 something starting with __ and the normal name is an alias. */
4655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4656 choke me
4657 #else
4658 $ac_func();
4659 #endif
4661 ; return 0; }
4663 if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4664 rm -rf conftest*
4665 eval "ac_cv_func_$ac_func=yes"
4666 else
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4669 rm -rf conftest*
4670 eval "ac_cv_func_$ac_func=no"
4672 rm -f conftest*
4675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4678 cat >> confdefs.h <<EOF
4679 #define $ac_tr_func 1
4681 memcpy_found=yes
4682 else
4683 echo "$ac_t""no" 1>&6
4685 done
4687 if test "$memcpy_found" = no; then
4688 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4691 # Some library-finding code we stole from Tcl.
4692 #--------------------------------------------------------------------
4693 # Check for the existence of the -lsocket and -lnsl libraries.
4694 # The order here is important, so that they end up in the right
4695 # order in the command line generated by make. Here are some
4696 # special considerations:
4697 # 1. Use "connect" and "accept" to check for -lsocket, and
4698 # "gethostbyname" to check for -lnsl.
4699 # 2. Use each function name only once: can't redo a check because
4700 # autoconf caches the results of the last check and won't redo it.
4701 # 3. Use -lnsl and -lsocket only if they supply procedures that
4702 # aren't already present in the normal libraries. This is because
4703 # IRIX 5.2 has libraries, but they aren't needed and they're
4704 # bogus: they goof up name resolution if used.
4705 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4706 # To get around this problem, check for both libraries together
4707 # if -lsocket doesn't work by itself.
4708 #--------------------------------------------------------------------
4710 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4711 echo "configure:4712: checking for socket libraries" >&5
4712 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4714 else
4715 gcj_cv_lib_sockets=
4716 gcj_checkBoth=0
4717 unset ac_cv_func_connect
4718 echo $ac_n "checking for connect""... $ac_c" 1>&6
4719 echo "configure:4720: checking for connect" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4722 else
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727 which can conflict with char connect(); below. */
4728 #include <assert.h>
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4732 char connect();
4734 int main() {
4736 /* The GNU C library defines this for functions which it implements
4737 to always fail with ENOSYS. Some functions are actually named
4738 something starting with __ and the normal name is an alias. */
4739 #if defined (__stub_connect) || defined (__stub___connect)
4740 choke me
4741 #else
4742 connect();
4743 #endif
4745 ; return 0; }
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748 rm -rf conftest*
4749 eval "ac_cv_func_connect=yes"
4750 else
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 rm -rf conftest*
4754 eval "ac_cv_func_connect=no"
4756 rm -f conftest*
4759 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4761 gcj_checkSocket=0
4762 else
4763 echo "$ac_t""no" 1>&6
4764 gcj_checkSocket=1
4767 if test "$gcj_checkSocket" = 1; then
4768 unset ac_cv_func_connect
4769 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4770 echo "configure:4771: checking for main in -lsocket" >&5
4771 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4774 else
4775 ac_save_LIBS="$LIBS"
4776 LIBS="-lsocket $LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4781 int main() {
4782 main()
4783 ; return 0; }
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4786 rm -rf conftest*
4787 eval "ac_cv_lib_$ac_lib_var=yes"
4788 else
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 rm -rf conftest*
4792 eval "ac_cv_lib_$ac_lib_var=no"
4794 rm -f conftest*
4795 LIBS="$ac_save_LIBS"
4798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4800 gcj_cv_lib_sockets="-lsocket"
4801 else
4802 echo "$ac_t""no" 1>&6
4803 gcj_checkBoth=1
4807 if test "$gcj_checkBoth" = 1; then
4808 gcj_oldLibs=$LIBS
4809 LIBS="$LIBS -lsocket -lnsl"
4810 unset ac_cv_func_accept
4811 echo $ac_n "checking for accept""... $ac_c" 1>&6
4812 echo "configure:4813: checking for accept" >&5
4813 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4815 else
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 /* System header to define __stub macros and hopefully few prototypes,
4820 which can conflict with char accept(); below. */
4821 #include <assert.h>
4822 /* Override any gcc2 internal prototype to avoid an error. */
4823 /* We use char because int might match the return type of a gcc2
4824 builtin and then its argument prototype would still apply. */
4825 char accept();
4827 int main() {
4829 /* The GNU C library defines this for functions which it implements
4830 to always fail with ENOSYS. Some functions are actually named
4831 something starting with __ and the normal name is an alias. */
4832 #if defined (__stub_accept) || defined (__stub___accept)
4833 choke me
4834 #else
4835 accept();
4836 #endif
4838 ; return 0; }
4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4841 rm -rf conftest*
4842 eval "ac_cv_func_accept=yes"
4843 else
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4846 rm -rf conftest*
4847 eval "ac_cv_func_accept=no"
4849 rm -f conftest*
4852 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 gcj_checkNsl=0
4855 gcj_cv_lib_sockets="-lsocket -lnsl"
4856 else
4857 echo "$ac_t""no" 1>&6
4860 unset ac_cv_func_accept
4861 LIBS=$gcj_oldLibs
4863 unset ac_cv_func_gethostbyname
4864 gcj_oldLibs=$LIBS
4865 LIBS="$LIBS $gcj_cv_lib_sockets"
4866 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4867 echo "configure:4868: checking for gethostbyname" >&5
4868 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4870 else
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 /* System header to define __stub macros and hopefully few prototypes,
4875 which can conflict with char gethostbyname(); below. */
4876 #include <assert.h>
4877 /* Override any gcc2 internal prototype to avoid an error. */
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4880 char gethostbyname();
4882 int main() {
4884 /* The GNU C library defines this for functions which it implements
4885 to always fail with ENOSYS. Some functions are actually named
4886 something starting with __ and the normal name is an alias. */
4887 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4888 choke me
4889 #else
4890 gethostbyname();
4891 #endif
4893 ; return 0; }
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4896 rm -rf conftest*
4897 eval "ac_cv_func_gethostbyname=yes"
4898 else
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 rm -rf conftest*
4902 eval "ac_cv_func_gethostbyname=no"
4904 rm -f conftest*
4907 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4908 echo "$ac_t""yes" 1>&6
4910 else
4911 echo "$ac_t""no" 1>&6
4912 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4913 echo "configure:4914: checking for main in -lnsl" >&5
4914 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4916 echo $ac_n "(cached) $ac_c" 1>&6
4917 else
4918 ac_save_LIBS="$LIBS"
4919 LIBS="-lnsl $LIBS"
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4924 int main() {
4925 main()
4926 ; return 0; }
4928 if { (eval echo configure:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4929 rm -rf conftest*
4930 eval "ac_cv_lib_$ac_lib_var=yes"
4931 else
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4934 rm -rf conftest*
4935 eval "ac_cv_lib_$ac_lib_var=no"
4937 rm -f conftest*
4938 LIBS="$ac_save_LIBS"
4941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4943 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4944 else
4945 echo "$ac_t""no" 1>&6
4950 unset ac_cv_func_gethostbyname
4951 LIBS=$gcj_oldLIBS
4955 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4956 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4958 if test "$with_system_zlib" = yes; then
4959 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4960 echo "configure:4961: checking for deflate in -lz" >&5
4961 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4964 else
4965 ac_save_LIBS="$LIBS"
4966 LIBS="-lz $LIBS"
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4973 char deflate();
4975 int main() {
4976 deflate()
4977 ; return 0; }
4979 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4980 rm -rf conftest*
4981 eval "ac_cv_lib_$ac_lib_var=yes"
4982 else
4983 echo "configure: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4985 rm -rf conftest*
4986 eval "ac_cv_lib_$ac_lib_var=no"
4988 rm -f conftest*
4989 LIBS="$ac_save_LIBS"
4992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4993 echo "$ac_t""yes" 1>&6
4994 ZLIBSPEC=-lz
4995 else
4996 echo "$ac_t""no" 1>&6
4997 ZLIBSPEC=-lzgcj
5000 else
5001 ZLIBSPEC=-lzgcj
5002 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
5005 # On Solaris, and maybe other architectures, the Boehm collector
5006 # requires -ldl.
5007 if test "$GC" = boehm; then
5008 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5009 echo "configure:5010: checking for main in -ldl" >&5
5010 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5013 else
5014 ac_save_LIBS="$LIBS"
5015 LIBS="-ldl $LIBS"
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5020 int main() {
5021 main()
5022 ; return 0; }
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5025 rm -rf conftest*
5026 eval "ac_cv_lib_$ac_lib_var=yes"
5027 else
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5030 rm -rf conftest*
5031 eval "ac_cv_lib_$ac_lib_var=no"
5033 rm -f conftest*
5034 LIBS="$ac_save_LIBS"
5037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5038 echo "$ac_t""yes" 1>&6
5039 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5040 else
5041 echo "$ac_t""no" 1>&6
5046 if test -z "${with_multisubdir}"; then
5047 builddotdot=.
5048 else
5050 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5053 if test -x "${builddotdot}/../../gcc/gcj"; then
5054 dir="`cd ${builddotdot}/../../gcc && pwd`"
5055 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
5056 else
5057 CANADIAN=yes
5058 NULL_TARGET=yes
5059 GCJ="gcj -B`pwd`/"
5063 # Create it, so that compile/link tests don't fail
5064 test -f libgcj.spec || touch libgcj.spec
5066 # We must search the source tree for java.lang, since we still don't
5067 # have libgcj.jar nor java/lang/*.class
5068 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5069 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5071 # Since some classes depend on this one, we need its source available
5072 # before we can do any GCJ compilation test :-(
5073 if test ! -f gnu/classpath/Configuration.java; then
5074 test -d gnu || mkdir gnu
5075 test -d gnu/classpath || mkdir gnu/classpath
5076 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5077 < $srcdir/gnu/classpath/Configuration.java.in \
5078 > gnu/classpath/Configuration.java
5079 # We do not want to redirect the output of the grep below to /dev/null,
5080 # but we add /dev/null to the input list so that grep will print the
5081 # filename of Configuration.java in case it finds any matches.
5082 if grep @ gnu/classpath/Configuration.java /dev/null; then
5083 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5087 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5090 echo "configure:5091: checking for $ac_word" >&5
5091 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5094 if test -n "$GCJ"; then
5095 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5096 else
5097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5098 ac_dummy="$PATH"
5099 for ac_dir in $ac_dummy; do
5100 test -z "$ac_dir" && ac_dir=.
5101 if test -f $ac_dir/$ac_word; then
5102 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5103 break
5105 done
5106 IFS="$ac_save_ifs"
5109 GCJ="$ac_cv_prog_GCJ"
5110 if test -n "$GCJ"; then
5111 echo "$ac_t""$GCJ" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5117 if test -z "$ac_cv_prog_GCJ"; then
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "gcj", so it can be a program name with args.
5120 set dummy gcj; ac_word=$2
5121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5122 echo "configure:5123: checking for $ac_word" >&5
5123 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5125 else
5126 if test -n "$GCJ"; then
5127 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5128 else
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5130 ac_dummy="$PATH"
5131 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_prog_GCJ="gcj"
5135 break
5137 done
5138 IFS="$ac_save_ifs"
5139 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5142 GCJ="$ac_cv_prog_GCJ"
5143 if test -n "$GCJ"; then
5144 echo "$ac_t""$GCJ" 1>&6
5145 else
5146 echo "$ac_t""no" 1>&6
5149 else
5150 GCJ="no"
5154 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5158 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5159 lt_save_CC="$CC"
5160 lt_save_CFLAGS="$CFLAGS"
5161 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5162 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5163 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5164 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5165 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5166 deplibs_check_method="$deplibs_check_method" \
5167 file_magic_cmd="$file_magic_cmd" \
5168 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5169 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5170 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5171 CC="$lt_save_CC"
5172 CFLAGS="$lt_save_CFLAGS"
5174 # Redirect the config.log output again, so that the ltconfig log is not
5175 # clobbered by the next message.
5176 exec 5>>./config.log
5181 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5183 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5184 echo "configure:5185: checking size of void *" >&5
5185 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5187 else
5188 if test "$cross_compiling" = yes; then
5189 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5190 else
5191 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5194 #include <stdio.h>
5195 main()
5197 FILE *f=fopen("conftestval", "w");
5198 if (!f) exit(1);
5199 fprintf(f, "%d\n", sizeof(void *));
5200 exit(0);
5203 if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5204 then
5205 ac_cv_sizeof_void_p=`cat conftestval`
5206 else
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5209 rm -fr conftest*
5210 ac_cv_sizeof_void_p=0
5212 rm -fr conftest*
5216 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5217 cat >> confdefs.h <<EOF
5218 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5223 ZLIBS=
5224 ZDEPS=
5225 ZINCS=
5226 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5227 # We include the path to the zlib build directory.
5228 # See Makefile.am to understand why.
5229 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5230 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5231 ZINCS='-I$(top_srcdir)/../zlib'
5232 else
5233 ZLIBS="$ZLIBSPEC"
5243 if test "$CANADIAN" = yes; then
5244 CANADIAN_TRUE=
5245 CANADIAN_FALSE='#'
5246 else
5247 CANADIAN_TRUE='#'
5248 CANADIAN_FALSE=
5252 if test "$NULL_TARGET" = yes; then
5253 NULL_TARGET_TRUE=
5254 NULL_TARGET_FALSE='#'
5255 else
5256 NULL_TARGET_TRUE='#'
5257 NULL_TARGET_FALSE=
5261 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5262 NATIVE_TRUE=
5263 NATIVE_FALSE='#'
5264 else
5265 NATIVE_TRUE='#'
5266 NATIVE_FALSE=
5270 if test -z "$with_cross_host"; then
5271 USE_LIBDIR_TRUE=
5272 USE_LIBDIR_FALSE='#'
5273 else
5274 USE_LIBDIR_TRUE='#'
5275 USE_LIBDIR_FALSE=
5279 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5280 NEEDS_DATA_START_TRUE=
5281 NEEDS_DATA_START_FALSE='#'
5282 else
5283 NEEDS_DATA_START_TRUE='#'
5284 NEEDS_DATA_START_FALSE=
5288 # Determine gcj version number.
5290 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5292 cat >> confdefs.h <<EOF
5293 #define GCJVERSION "$gcjvers"
5300 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5301 echo "configure:5302: checking for g++ -ffloat-store bug" >&5
5302 save_CFLAGS="$CFLAGS"
5303 CFLAGS="-x c++ -O2 -ffloat-store"
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5307 #include <math.h>
5308 int main() {
5310 ; return 0; }
5312 if { (eval echo configure:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5313 rm -rf conftest*
5314 echo "$ac_t""no" 1>&6
5315 else
5316 echo "configure: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5318 rm -rf conftest*
5319 cat >> confdefs.h <<\EOF
5320 #define __NO_MATH_INLINES 1
5323 echo "$ac_t""yes" 1>&6
5325 rm -f conftest*
5326 CFLAGS="$save_CFLAGS"
5328 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h langinfo.h locale.h
5330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5332 echo "configure:5333: checking for $ac_hdr" >&5
5333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5335 else
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <$ac_hdr>
5341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5342 { (eval echo configure:5343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5344 if test -z "$ac_err"; then
5345 rm -rf conftest*
5346 eval "ac_cv_header_$ac_safe=yes"
5347 else
5348 echo "$ac_err" >&5
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5351 rm -rf conftest*
5352 eval "ac_cv_header_$ac_safe=no"
5354 rm -f conftest*
5356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5357 echo "$ac_t""yes" 1>&6
5358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5359 cat >> confdefs.h <<EOF
5360 #define $ac_tr_hdr 1
5363 else
5364 echo "$ac_t""no" 1>&6
5366 done
5368 for ac_hdr in dirent.h
5370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5372 echo "configure:5373: checking for $ac_hdr" >&5
5373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5375 else
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5379 #include <$ac_hdr>
5381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5382 { (eval echo configure:5383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5384 if test -z "$ac_err"; then
5385 rm -rf conftest*
5386 eval "ac_cv_header_$ac_safe=yes"
5387 else
5388 echo "$ac_err" >&5
5389 echo "configure: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5391 rm -rf conftest*
5392 eval "ac_cv_header_$ac_safe=no"
5394 rm -f conftest*
5396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5399 cat >> confdefs.h <<EOF
5400 #define $ac_tr_hdr 1
5403 else
5404 echo "$ac_t""no" 1>&6
5406 done
5409 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5410 echo "configure:5411: checking for ANSI C header files" >&5
5411 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5413 else
5414 cat > conftest.$ac_ext <<EOF
5415 #line 5416 "configure"
5416 #include "confdefs.h"
5417 #include <stdlib.h>
5418 #include <stdarg.h>
5419 #include <string.h>
5420 #include <float.h>
5422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5423 { (eval echo configure:5424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5425 if test -z "$ac_err"; then
5426 rm -rf conftest*
5427 ac_cv_header_stdc=yes
5428 else
5429 echo "$ac_err" >&5
5430 echo "configure: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5432 rm -rf conftest*
5433 ac_cv_header_stdc=no
5435 rm -f conftest*
5437 if test $ac_cv_header_stdc = yes; then
5438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5439 cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5442 #include <string.h>
5444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5445 egrep "memchr" >/dev/null 2>&1; then
5447 else
5448 rm -rf conftest*
5449 ac_cv_header_stdc=no
5451 rm -f conftest*
5455 if test $ac_cv_header_stdc = yes; then
5456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5457 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure"
5459 #include "confdefs.h"
5460 #include <stdlib.h>
5462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5463 egrep "free" >/dev/null 2>&1; then
5465 else
5466 rm -rf conftest*
5467 ac_cv_header_stdc=no
5469 rm -f conftest*
5473 if test $ac_cv_header_stdc = yes; then
5474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5475 if test "$cross_compiling" = yes; then
5477 else
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5481 #include <ctype.h>
5482 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5483 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5485 int main () { int i; for (i = 0; i < 256; i++)
5486 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5487 exit (0); }
5490 if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5491 then
5493 else
5494 echo "configure: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 rm -fr conftest*
5497 ac_cv_header_stdc=no
5499 rm -fr conftest*
5505 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5506 if test $ac_cv_header_stdc = yes; then
5507 cat >> confdefs.h <<\EOF
5508 #define STDC_HEADERS 1
5513 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5514 echo "configure:5515: checking for ssize_t" >&5
5515 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5517 else
5518 cat > conftest.$ac_ext <<EOF
5519 #line 5520 "configure"
5520 #include "confdefs.h"
5521 #include <sys/types.h>
5522 #if STDC_HEADERS
5523 #include <stdlib.h>
5524 #include <stddef.h>
5525 #endif
5527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5528 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5529 rm -rf conftest*
5530 eval "ac_cv_type_ssize_t=yes"
5531 else
5532 rm -rf conftest*
5533 eval "ac_cv_type_ssize_t=no"
5535 rm -f conftest*
5538 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
5539 echo "$ac_t""yes" 1>&6
5540 else
5541 echo "$ac_t""no" 1>&6
5542 cat >> confdefs.h <<EOF
5543 #define ssize_t int
5549 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5550 echo "configure:5551: checking for in_addr_t" >&5
5551 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5554 #include <sys/types.h>
5555 #if STDC_HEADERS
5556 #include <stdlib.h>
5557 #include <stddef.h>
5558 #endif
5559 #if HAVE_NETINET_IN_H
5560 #include <netinet/in.h>
5561 #endif
5562 int main() {
5563 in_addr_t foo;
5564 ; return 0; }
5566 if { (eval echo configure:5567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5567 rm -rf conftest*
5568 cat >> confdefs.h <<\EOF
5569 #define HAVE_IN_ADDR_T 1
5572 echo "$ac_t""yes" 1>&6
5573 else
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5576 rm -rf conftest*
5577 echo "$ac_t""no" 1>&6
5579 rm -f conftest*
5581 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5582 echo "configure:5583: checking whether struct ip_mreq is in netinet/in.h" >&5
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5586 #include <netinet/in.h>
5587 int main() {
5588 struct ip_mreq mreq;
5589 ; return 0; }
5591 if { (eval echo configure:5592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5592 rm -rf conftest*
5593 cat >> confdefs.h <<\EOF
5594 #define HAVE_STRUCT_IP_MREQ 1
5597 echo "$ac_t""yes" 1>&6
5598 else
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5601 rm -rf conftest*
5602 echo "$ac_t""no" 1>&6
5604 rm -f conftest*
5606 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
5607 echo "configure:5608: checking whether struct ipv6_mreq is in netinet/in.h" >&5
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 #include <netinet/in.h>
5612 int main() {
5613 struct ipv6_mreq mreq6;
5614 ; return 0; }
5616 if { (eval echo configure:5617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5617 rm -rf conftest*
5618 cat >> confdefs.h <<\EOF
5619 #define HAVE_STRUCT_IPV6_MREQ 1
5622 echo "$ac_t""yes" 1>&6
5623 else
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5626 rm -rf conftest*
5627 echo "$ac_t""no" 1>&6
5629 rm -f conftest*
5631 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5632 echo "configure:5633: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5636 #include <netinet/in.h>
5637 int main() {
5638 struct sockaddr_in6 addr6;
5639 ; return 0; }
5641 if { (eval echo configure:5642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5642 rm -rf conftest*
5643 cat >> confdefs.h <<\EOF
5644 #define HAVE_INET6 1
5647 echo "$ac_t""yes" 1>&6
5648 else
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 rm -rf conftest*
5652 echo "$ac_t""no" 1>&6
5654 rm -f conftest*
5656 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5657 echo "configure:5658: checking for socklen_t in sys/socket.h" >&5
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 #define _POSIX_PII_SOCKET
5662 #include <sys/types.h>
5663 #include <sys/socket.h>
5664 int main() {
5665 socklen_t x = 5;
5666 ; return 0; }
5668 if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5669 rm -rf conftest*
5670 cat >> confdefs.h <<\EOF
5671 #define HAVE_SOCKLEN_T 1
5674 echo "$ac_t""yes" 1>&6
5675 else
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 rm -rf conftest*
5679 echo "$ac_t""no" 1>&6
5681 rm -f conftest*
5683 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5684 echo "configure:5685: checking for tm_gmtoff in struct tm" >&5
5685 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5688 #include <time.h>
5689 int main() {
5690 struct tm tim; tim.tm_gmtoff = 0;
5691 ; return 0; }
5693 if { (eval echo configure:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5694 rm -rf conftest*
5695 cat >> confdefs.h <<\EOF
5696 #define STRUCT_TM_HAS_GMTOFF 1
5699 echo "$ac_t""yes" 1>&6
5700 else
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5703 rm -rf conftest*
5704 echo "$ac_t""no" 1>&6
5705 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5706 echo "configure:5707: checking for global timezone variable" >&5
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 #include <time.h>
5711 int main() {
5712 long z2 = timezone;
5713 ; return 0; }
5715 if { (eval echo configure:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5716 rm -rf conftest*
5717 cat >> confdefs.h <<\EOF
5718 #define HAVE_TIMEZONE 1
5721 echo "$ac_t""yes" 1>&6
5722 else
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5725 rm -rf conftest*
5726 echo "$ac_t""no" 1>&6
5728 rm -f conftest*
5730 rm -f conftest*
5732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5733 # for constant arguments. Useless!
5734 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5735 echo "configure:5736: checking for working alloca.h" >&5
5736 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5738 else
5739 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5742 #include <alloca.h>
5743 int main() {
5744 char *p = alloca(2 * sizeof(int));
5745 ; return 0; }
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5748 rm -rf conftest*
5749 ac_cv_header_alloca_h=yes
5750 else
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5753 rm -rf conftest*
5754 ac_cv_header_alloca_h=no
5756 rm -f conftest*
5759 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5760 if test $ac_cv_header_alloca_h = yes; then
5761 cat >> confdefs.h <<\EOF
5762 #define HAVE_ALLOCA_H 1
5767 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5768 echo "configure:5769: checking for alloca" >&5
5769 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5770 echo $ac_n "(cached) $ac_c" 1>&6
5771 else
5772 cat > conftest.$ac_ext <<EOF
5773 #line 5774 "configure"
5774 #include "confdefs.h"
5776 #ifdef __GNUC__
5777 # define alloca __builtin_alloca
5778 #else
5779 # ifdef _MSC_VER
5780 # include <malloc.h>
5781 # define alloca _alloca
5782 # else
5783 # if HAVE_ALLOCA_H
5784 # include <alloca.h>
5785 # else
5786 # ifdef _AIX
5787 #pragma alloca
5788 # else
5789 # ifndef alloca /* predefined by HP cc +Olibcalls */
5790 char *alloca ();
5791 # endif
5792 # endif
5793 # endif
5794 # endif
5795 #endif
5797 int main() {
5798 char *p = (char *) alloca(1);
5799 ; return 0; }
5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802 rm -rf conftest*
5803 ac_cv_func_alloca_works=yes
5804 else
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5807 rm -rf conftest*
5808 ac_cv_func_alloca_works=no
5810 rm -f conftest*
5813 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5814 if test $ac_cv_func_alloca_works = yes; then
5815 cat >> confdefs.h <<\EOF
5816 #define HAVE_ALLOCA 1
5821 if test $ac_cv_func_alloca_works = no; then
5822 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5823 # that cause trouble. Some versions do not even contain alloca or
5824 # contain a buggy version. If you still want to use their alloca,
5825 # use ar to extract alloca.o from them instead of compiling alloca.c.
5826 ALLOCA=alloca.${ac_objext}
5827 cat >> confdefs.h <<\EOF
5828 #define C_ALLOCA 1
5832 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5833 echo "configure:5834: checking whether alloca needs Cray hooks" >&5
5834 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5836 else
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 #if defined(CRAY) && ! defined(CRAY2)
5841 webecray
5842 #else
5843 wenotbecray
5844 #endif
5847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5848 egrep "webecray" >/dev/null 2>&1; then
5849 rm -rf conftest*
5850 ac_cv_os_cray=yes
5851 else
5852 rm -rf conftest*
5853 ac_cv_os_cray=no
5855 rm -f conftest*
5859 echo "$ac_t""$ac_cv_os_cray" 1>&6
5860 if test $ac_cv_os_cray = yes; then
5861 for ac_func in _getb67 GETB67 getb67; do
5862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5863 echo "configure:5864: checking for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5866 else
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5872 #include <assert.h>
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5876 char $ac_func();
5878 int main() {
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5884 choke me
5885 #else
5886 $ac_func();
5887 #endif
5889 ; return 0; }
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 rm -rf conftest*
5893 eval "ac_cv_func_$ac_func=yes"
5894 else
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5897 rm -rf conftest*
5898 eval "ac_cv_func_$ac_func=no"
5900 rm -f conftest*
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 cat >> confdefs.h <<EOF
5906 #define CRAY_STACKSEG_END $ac_func
5909 break
5910 else
5911 echo "$ac_t""no" 1>&6
5914 done
5917 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5918 echo "configure:5919: checking stack direction for C alloca" >&5
5919 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5921 else
5922 if test "$cross_compiling" = yes; then
5923 ac_cv_c_stack_direction=0
5924 else
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 find_stack_direction ()
5930 static char *addr = 0;
5931 auto char dummy;
5932 if (addr == 0)
5934 addr = &dummy;
5935 return find_stack_direction ();
5937 else
5938 return (&dummy > addr) ? 1 : -1;
5940 main ()
5942 exit (find_stack_direction() < 0);
5945 if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5946 then
5947 ac_cv_c_stack_direction=1
5948 else
5949 echo "configure: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5951 rm -fr conftest*
5952 ac_cv_c_stack_direction=-1
5954 rm -fr conftest*
5959 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5960 cat >> confdefs.h <<EOF
5961 #define STACK_DIRECTION $ac_cv_c_stack_direction
5967 for ac_prog in perl
5969 # Extract the first word of "$ac_prog", so it can be a program name with args.
5970 set dummy $ac_prog; ac_word=$2
5971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5972 echo "configure:5973: checking for $ac_word" >&5
5973 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5975 else
5976 if test -n "$PERL"; then
5977 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5978 else
5979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5980 ac_dummy="$PATH"
5981 for ac_dir in $ac_dummy; do
5982 test -z "$ac_dir" && ac_dir=.
5983 if test -f $ac_dir/$ac_word; then
5984 ac_cv_prog_PERL="$ac_prog"
5985 break
5987 done
5988 IFS="$ac_save_ifs"
5991 PERL="$ac_cv_prog_PERL"
5992 if test -n "$PERL"; then
5993 echo "$ac_t""$PERL" 1>&6
5994 else
5995 echo "$ac_t""no" 1>&6
5998 test -n "$PERL" && break
5999 done
6000 test -n "$PERL" || PERL="false"
6003 SYSDEP_SOURCES=
6005 case "${host}" in
6006 i?86-*-linux*)
6007 SIGNAL_HANDLER=include/i386-signal.h
6009 sparc-sun-solaris*)
6010 SIGNAL_HANDLER=include/sparc-signal.h
6012 # ia64-*)
6013 # SYSDEP_SOURCES=sysdep/ia64.c
6014 # test -d sysdep || mkdir sysdep
6015 # ;;
6016 powerpc-*-linux*)
6017 SIGNAL_HANDLER=include/dwarf2-signal.h
6019 alpha*-*-linux*)
6020 SIGNAL_HANDLER=include/dwarf2-signal.h
6023 SIGNAL_HANDLER=include/default-signal.h
6025 esac
6027 # If we're using sjlj exceptions, forget what we just learned.
6028 if test "$enable_sjlj_exceptions" = yes; then
6029 SIGNAL_HANDLER=include/default-signal.h
6036 if test "${multilib}" = "yes"; then
6037 multilib_arg="--enable-multilib"
6038 else
6039 multilib_arg=
6042 # If we find X, set shell vars x_includes and x_libraries to the
6043 # paths, otherwise set no_x=yes.
6044 # Uses ac_ vars as temps to allow command line to override cache and checks.
6045 # --without-x overrides everything else, but does not touch the cache.
6046 echo $ac_n "checking for X""... $ac_c" 1>&6
6047 echo "configure:6048: checking for X" >&5
6049 # Check whether --with-x or --without-x was given.
6050 if test "${with_x+set}" = set; then
6051 withval="$with_x"
6055 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6056 if test "x$with_x" = xno; then
6057 # The user explicitly disabled X.
6058 have_x=disabled
6059 else
6060 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6061 # Both variables are already set.
6062 have_x=yes
6063 else
6064 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6066 else
6067 # One or both of the vars are not set, and there is no cached value.
6068 ac_x_includes=NO ac_x_libraries=NO
6069 rm -fr conftestdir
6070 if mkdir conftestdir; then
6071 cd conftestdir
6072 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6073 cat > Imakefile <<'EOF'
6074 acfindx:
6075 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6077 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6078 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6079 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6080 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6081 for ac_extension in a so sl; do
6082 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6083 test -f $ac_im_libdir/libX11.$ac_extension; then
6084 ac_im_usrlibdir=$ac_im_libdir; break
6086 done
6087 # Screen out bogus values from the imake configuration. They are
6088 # bogus both because they are the default anyway, and because
6089 # using them would break gcc on systems where it needs fixed includes.
6090 case "$ac_im_incroot" in
6091 /usr/include) ;;
6092 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6093 esac
6094 case "$ac_im_usrlibdir" in
6095 /usr/lib | /lib) ;;
6096 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6097 esac
6099 cd ..
6100 rm -fr conftestdir
6103 if test "$ac_x_includes" = NO; then
6104 # Guess where to find include files, by looking for this one X11 .h file.
6105 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6107 # First, try using that file with no special directory specified.
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 #include <$x_direct_test_include>
6113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6114 { (eval echo configure:6115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6116 if test -z "$ac_err"; then
6117 rm -rf conftest*
6118 # We can compile using X headers with no special include directory.
6119 ac_x_includes=
6120 else
6121 echo "$ac_err" >&5
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6124 rm -rf conftest*
6125 # Look for the header file in a standard set of common directories.
6126 # Check X11 before X11Rn because it is often a symlink to the current release.
6127 for ac_dir in \
6128 /usr/X11/include \
6129 /usr/X11R6/include \
6130 /usr/X11R5/include \
6131 /usr/X11R4/include \
6133 /usr/include/X11 \
6134 /usr/include/X11R6 \
6135 /usr/include/X11R5 \
6136 /usr/include/X11R4 \
6138 /usr/local/X11/include \
6139 /usr/local/X11R6/include \
6140 /usr/local/X11R5/include \
6141 /usr/local/X11R4/include \
6143 /usr/local/include/X11 \
6144 /usr/local/include/X11R6 \
6145 /usr/local/include/X11R5 \
6146 /usr/local/include/X11R4 \
6148 /usr/X386/include \
6149 /usr/x386/include \
6150 /usr/XFree86/include/X11 \
6152 /usr/include \
6153 /usr/local/include \
6154 /usr/unsupported/include \
6155 /usr/athena/include \
6156 /usr/local/x11r5/include \
6157 /usr/lpp/Xamples/include \
6159 /usr/openwin/include \
6160 /usr/openwin/share/include \
6163 if test -r "$ac_dir/$x_direct_test_include"; then
6164 ac_x_includes=$ac_dir
6165 break
6167 done
6169 rm -f conftest*
6170 fi # $ac_x_includes = NO
6172 if test "$ac_x_libraries" = NO; then
6173 # Check for the libraries.
6175 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6176 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6178 # See if we find them without any special options.
6179 # Don't add to $LIBS permanently.
6180 ac_save_LIBS="$LIBS"
6181 LIBS="-l$x_direct_test_library $LIBS"
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6186 int main() {
6187 ${x_direct_test_function}()
6188 ; return 0; }
6190 if { (eval echo configure:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6191 rm -rf conftest*
6192 LIBS="$ac_save_LIBS"
6193 # We can link X programs with no special library path.
6194 ac_x_libraries=
6195 else
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6198 rm -rf conftest*
6199 LIBS="$ac_save_LIBS"
6200 # First see if replacing the include by lib works.
6201 # Check X11 before X11Rn because it is often a symlink to the current release.
6202 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6203 /usr/X11/lib \
6204 /usr/X11R6/lib \
6205 /usr/X11R5/lib \
6206 /usr/X11R4/lib \
6208 /usr/lib/X11 \
6209 /usr/lib/X11R6 \
6210 /usr/lib/X11R5 \
6211 /usr/lib/X11R4 \
6213 /usr/local/X11/lib \
6214 /usr/local/X11R6/lib \
6215 /usr/local/X11R5/lib \
6216 /usr/local/X11R4/lib \
6218 /usr/local/lib/X11 \
6219 /usr/local/lib/X11R6 \
6220 /usr/local/lib/X11R5 \
6221 /usr/local/lib/X11R4 \
6223 /usr/X386/lib \
6224 /usr/x386/lib \
6225 /usr/XFree86/lib/X11 \
6227 /usr/lib \
6228 /usr/local/lib \
6229 /usr/unsupported/lib \
6230 /usr/athena/lib \
6231 /usr/local/x11r5/lib \
6232 /usr/lpp/Xamples/lib \
6233 /lib/usr/lib/X11 \
6235 /usr/openwin/lib \
6236 /usr/openwin/share/lib \
6239 for ac_extension in a so sl; do
6240 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6241 ac_x_libraries=$ac_dir
6242 break 2
6244 done
6245 done
6247 rm -f conftest*
6248 fi # $ac_x_libraries = NO
6250 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6251 # Didn't find X anywhere. Cache the known absence of X.
6252 ac_cv_have_x="have_x=no"
6253 else
6254 # Record where we found X for the cache.
6255 ac_cv_have_x="have_x=yes \
6256 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6260 eval "$ac_cv_have_x"
6261 fi # $with_x != no
6263 if test "$have_x" != yes; then
6264 echo "$ac_t""$have_x" 1>&6
6265 no_x=yes
6266 else
6267 # If each of the values was on the command line, it overrides each guess.
6268 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6269 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6270 # Update the cache value to reflect the command line values.
6271 ac_cv_have_x="have_x=yes \
6272 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6273 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6276 if test "$no_x" = yes; then
6277 # Not all programs may use this symbol, but it does not hurt to define it.
6278 cat >> confdefs.h <<\EOF
6279 #define X_DISPLAY_MISSING 1
6282 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6283 else
6284 if test -n "$x_includes"; then
6285 X_CFLAGS="$X_CFLAGS -I$x_includes"
6288 # It would also be nice to do this for all -L options, not just this one.
6289 if test -n "$x_libraries"; then
6290 X_LIBS="$X_LIBS -L$x_libraries"
6291 # For Solaris; some versions of Sun CC require a space after -R and
6292 # others require no space. Words are not sufficient . . . .
6293 case "`(uname -sr) 2>/dev/null`" in
6294 "SunOS 5"*)
6295 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6296 echo "configure:6297: checking whether -R must be followed by a space" >&5
6297 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6302 int main() {
6304 ; return 0; }
6306 if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6307 rm -rf conftest*
6308 ac_R_nospace=yes
6309 else
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6312 rm -rf conftest*
6313 ac_R_nospace=no
6315 rm -f conftest*
6316 if test $ac_R_nospace = yes; then
6317 echo "$ac_t""no" 1>&6
6318 X_LIBS="$X_LIBS -R$x_libraries"
6319 else
6320 LIBS="$ac_xsave_LIBS -R $x_libraries"
6321 cat > conftest.$ac_ext <<EOF
6322 #line 6323 "configure"
6323 #include "confdefs.h"
6325 int main() {
6327 ; return 0; }
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 rm -rf conftest*
6331 ac_R_space=yes
6332 else
6333 echo "configure: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6335 rm -rf conftest*
6336 ac_R_space=no
6338 rm -f conftest*
6339 if test $ac_R_space = yes; then
6340 echo "$ac_t""yes" 1>&6
6341 X_LIBS="$X_LIBS -R $x_libraries"
6342 else
6343 echo "$ac_t""neither works" 1>&6
6346 LIBS="$ac_xsave_LIBS"
6347 esac
6350 # Check for system-dependent libraries X programs must link with.
6351 # Do this before checking for the system-independent R6 libraries
6352 # (-lICE), since we may need -lsocket or whatever for X linking.
6354 if test "$ISC" = yes; then
6355 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6356 else
6357 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6358 # libraries were built with DECnet support. And karl@cs.umb.edu says
6359 # the Alpha needs dnet_stub (dnet does not exist).
6360 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6361 echo "configure:6362: checking for dnet_ntoa in -ldnet" >&5
6362 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6365 else
6366 ac_save_LIBS="$LIBS"
6367 LIBS="-ldnet $LIBS"
6368 cat > conftest.$ac_ext <<EOF
6369 #line 6370 "configure"
6370 #include "confdefs.h"
6371 /* Override any gcc2 internal prototype to avoid an error. */
6372 /* We use char because int might match the return type of a gcc2
6373 builtin and then its argument prototype would still apply. */
6374 char dnet_ntoa();
6376 int main() {
6377 dnet_ntoa()
6378 ; return 0; }
6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6381 rm -rf conftest*
6382 eval "ac_cv_lib_$ac_lib_var=yes"
6383 else
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6386 rm -rf conftest*
6387 eval "ac_cv_lib_$ac_lib_var=no"
6389 rm -f conftest*
6390 LIBS="$ac_save_LIBS"
6393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6396 else
6397 echo "$ac_t""no" 1>&6
6400 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6401 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6402 echo "configure:6403: checking for dnet_ntoa in -ldnet_stub" >&5
6403 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6405 echo $ac_n "(cached) $ac_c" 1>&6
6406 else
6407 ac_save_LIBS="$LIBS"
6408 LIBS="-ldnet_stub $LIBS"
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char dnet_ntoa();
6417 int main() {
6418 dnet_ntoa()
6419 ; return 0; }
6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6422 rm -rf conftest*
6423 eval "ac_cv_lib_$ac_lib_var=yes"
6424 else
6425 echo "configure: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 rm -rf conftest*
6428 eval "ac_cv_lib_$ac_lib_var=no"
6430 rm -f conftest*
6431 LIBS="$ac_save_LIBS"
6434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6435 echo "$ac_t""yes" 1>&6
6436 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6437 else
6438 echo "$ac_t""no" 1>&6
6443 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6444 # to get the SysV transport functions.
6445 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6446 # needs -lnsl.
6447 # The nsl library prevents programs from opening the X display
6448 # on Irix 5.2, according to dickey@clark.net.
6449 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6450 echo "configure:6451: checking for gethostbyname" >&5
6451 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6453 else
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6457 /* System header to define __stub macros and hopefully few prototypes,
6458 which can conflict with char gethostbyname(); below. */
6459 #include <assert.h>
6460 /* Override any gcc2 internal prototype to avoid an error. */
6461 /* We use char because int might match the return type of a gcc2
6462 builtin and then its argument prototype would still apply. */
6463 char gethostbyname();
6465 int main() {
6467 /* The GNU C library defines this for functions which it implements
6468 to always fail with ENOSYS. Some functions are actually named
6469 something starting with __ and the normal name is an alias. */
6470 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6471 choke me
6472 #else
6473 gethostbyname();
6474 #endif
6476 ; return 0; }
6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6479 rm -rf conftest*
6480 eval "ac_cv_func_gethostbyname=yes"
6481 else
6482 echo "configure: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6484 rm -rf conftest*
6485 eval "ac_cv_func_gethostbyname=no"
6487 rm -f conftest*
6490 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6491 echo "$ac_t""yes" 1>&6
6493 else
6494 echo "$ac_t""no" 1>&6
6497 if test $ac_cv_func_gethostbyname = no; then
6498 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6499 echo "configure:6500: checking for gethostbyname in -lnsl" >&5
6500 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6503 else
6504 ac_save_LIBS="$LIBS"
6505 LIBS="-lnsl $LIBS"
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6509 /* Override any gcc2 internal prototype to avoid an error. */
6510 /* We use char because int might match the return type of a gcc2
6511 builtin and then its argument prototype would still apply. */
6512 char gethostbyname();
6514 int main() {
6515 gethostbyname()
6516 ; return 0; }
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6519 rm -rf conftest*
6520 eval "ac_cv_lib_$ac_lib_var=yes"
6521 else
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6524 rm -rf conftest*
6525 eval "ac_cv_lib_$ac_lib_var=no"
6527 rm -f conftest*
6528 LIBS="$ac_save_LIBS"
6531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6532 echo "$ac_t""yes" 1>&6
6533 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6534 else
6535 echo "$ac_t""no" 1>&6
6540 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6541 # socket/setsockopt and other routines are undefined under SCO ODT
6542 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6543 # on later versions), says simon@lia.di.epfl.ch: it contains
6544 # gethostby* variants that don't use the nameserver (or something).
6545 # -lsocket must be given before -lnsl if both are needed.
6546 # We assume that if connect needs -lnsl, so does gethostbyname.
6547 echo $ac_n "checking for connect""... $ac_c" 1>&6
6548 echo "configure:6549: checking for connect" >&5
6549 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6551 else
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6555 /* System header to define __stub macros and hopefully few prototypes,
6556 which can conflict with char connect(); below. */
6557 #include <assert.h>
6558 /* Override any gcc2 internal prototype to avoid an error. */
6559 /* We use char because int might match the return type of a gcc2
6560 builtin and then its argument prototype would still apply. */
6561 char connect();
6563 int main() {
6565 /* The GNU C library defines this for functions which it implements
6566 to always fail with ENOSYS. Some functions are actually named
6567 something starting with __ and the normal name is an alias. */
6568 #if defined (__stub_connect) || defined (__stub___connect)
6569 choke me
6570 #else
6571 connect();
6572 #endif
6574 ; return 0; }
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577 rm -rf conftest*
6578 eval "ac_cv_func_connect=yes"
6579 else
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6582 rm -rf conftest*
6583 eval "ac_cv_func_connect=no"
6585 rm -f conftest*
6588 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6589 echo "$ac_t""yes" 1>&6
6591 else
6592 echo "$ac_t""no" 1>&6
6595 if test $ac_cv_func_connect = no; then
6596 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6597 echo "configure:6598: checking for connect in -lsocket" >&5
6598 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6601 else
6602 ac_save_LIBS="$LIBS"
6603 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6607 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6610 char connect();
6612 int main() {
6613 connect()
6614 ; return 0; }
6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 rm -rf conftest*
6618 eval "ac_cv_lib_$ac_lib_var=yes"
6619 else
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6622 rm -rf conftest*
6623 eval "ac_cv_lib_$ac_lib_var=no"
6625 rm -f conftest*
6626 LIBS="$ac_save_LIBS"
6629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6630 echo "$ac_t""yes" 1>&6
6631 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6632 else
6633 echo "$ac_t""no" 1>&6
6638 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6639 echo $ac_n "checking for remove""... $ac_c" 1>&6
6640 echo "configure:6641: checking for remove" >&5
6641 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6643 else
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char remove(); below. */
6649 #include <assert.h>
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6653 char remove();
6655 int main() {
6657 /* The GNU C library defines this for functions which it implements
6658 to always fail with ENOSYS. Some functions are actually named
6659 something starting with __ and the normal name is an alias. */
6660 #if defined (__stub_remove) || defined (__stub___remove)
6661 choke me
6662 #else
6663 remove();
6664 #endif
6666 ; return 0; }
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6669 rm -rf conftest*
6670 eval "ac_cv_func_remove=yes"
6671 else
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6674 rm -rf conftest*
6675 eval "ac_cv_func_remove=no"
6677 rm -f conftest*
6680 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6683 else
6684 echo "$ac_t""no" 1>&6
6687 if test $ac_cv_func_remove = no; then
6688 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6689 echo "configure:6690: checking for remove in -lposix" >&5
6690 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6693 else
6694 ac_save_LIBS="$LIBS"
6695 LIBS="-lposix $LIBS"
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6702 char remove();
6704 int main() {
6705 remove()
6706 ; return 0; }
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 rm -rf conftest*
6710 eval "ac_cv_lib_$ac_lib_var=yes"
6711 else
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 rm -rf conftest*
6715 eval "ac_cv_lib_$ac_lib_var=no"
6717 rm -f conftest*
6718 LIBS="$ac_save_LIBS"
6721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6724 else
6725 echo "$ac_t""no" 1>&6
6730 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6731 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6732 echo "configure:6733: checking for shmat" >&5
6733 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6734 echo $ac_n "(cached) $ac_c" 1>&6
6735 else
6736 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6739 /* System header to define __stub macros and hopefully few prototypes,
6740 which can conflict with char shmat(); below. */
6741 #include <assert.h>
6742 /* Override any gcc2 internal prototype to avoid an error. */
6743 /* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */
6745 char shmat();
6747 int main() {
6749 /* The GNU C library defines this for functions which it implements
6750 to always fail with ENOSYS. Some functions are actually named
6751 something starting with __ and the normal name is an alias. */
6752 #if defined (__stub_shmat) || defined (__stub___shmat)
6753 choke me
6754 #else
6755 shmat();
6756 #endif
6758 ; return 0; }
6760 if { (eval echo configure:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761 rm -rf conftest*
6762 eval "ac_cv_func_shmat=yes"
6763 else
6764 echo "configure: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6766 rm -rf conftest*
6767 eval "ac_cv_func_shmat=no"
6769 rm -f conftest*
6772 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6773 echo "$ac_t""yes" 1>&6
6775 else
6776 echo "$ac_t""no" 1>&6
6779 if test $ac_cv_func_shmat = no; then
6780 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6781 echo "configure:6782: checking for shmat in -lipc" >&5
6782 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6785 else
6786 ac_save_LIBS="$LIBS"
6787 LIBS="-lipc $LIBS"
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6794 char shmat();
6796 int main() {
6797 shmat()
6798 ; return 0; }
6800 if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 rm -rf conftest*
6802 eval "ac_cv_lib_$ac_lib_var=yes"
6803 else
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6806 rm -rf conftest*
6807 eval "ac_cv_lib_$ac_lib_var=no"
6809 rm -f conftest*
6810 LIBS="$ac_save_LIBS"
6813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6814 echo "$ac_t""yes" 1>&6
6815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6816 else
6817 echo "$ac_t""no" 1>&6
6823 # Check for libraries that X11R6 Xt/Xaw programs need.
6824 ac_save_LDFLAGS="$LDFLAGS"
6825 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6826 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6827 # check for ICE first), but we must link in the order -lSM -lICE or
6828 # we get undefined symbols. So assume we have SM if we have ICE.
6829 # These have to be linked with before -lX11, unlike the other
6830 # libraries we check for below, so use a different variable.
6831 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6832 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6833 echo "configure:6834: checking for IceConnectionNumber in -lICE" >&5
6834 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6836 echo $ac_n "(cached) $ac_c" 1>&6
6837 else
6838 ac_save_LIBS="$LIBS"
6839 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6843 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6846 char IceConnectionNumber();
6848 int main() {
6849 IceConnectionNumber()
6850 ; return 0; }
6852 if { (eval echo configure:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6853 rm -rf conftest*
6854 eval "ac_cv_lib_$ac_lib_var=yes"
6855 else
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6858 rm -rf conftest*
6859 eval "ac_cv_lib_$ac_lib_var=no"
6861 rm -f conftest*
6862 LIBS="$ac_save_LIBS"
6865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6868 else
6869 echo "$ac_t""no" 1>&6
6872 LDFLAGS="$ac_save_LDFLAGS"
6877 # Check whether --enable-java-awt or --disable-java-awt was given.
6878 if test "${enable_java_awt+set}" = set; then
6879 enableval="$enable_java_awt"
6884 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6885 use_xlib_awt=""
6886 use_gtk_awt=""
6888 for peer in $peerlibs ; do
6889 case $peer in
6890 xlib)
6891 if test "$no_x" = yes; then
6892 echo "*** xlib peers requested but no X library available" 1>&2
6893 exit 1
6894 else
6895 use_xlib_awt="yes"
6898 gtk)
6899 # Nothing, yet...
6902 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6903 exit 1
6904 esac
6905 done
6909 if test "$use_xlib_awt" = yes; then
6910 XLIB_AWT_TRUE=
6911 XLIB_AWT_FALSE='#'
6912 else
6913 XLIB_AWT_TRUE='#'
6914 XLIB_AWT_FALSE=
6918 if test "$use_gtk_awt" = yes; then
6919 GTK_AWT_TRUE=
6920 GTK_AWT_FALSE='#'
6921 else
6922 GTK_AWT_TRUE='#'
6923 GTK_AWT_FALSE=
6927 here=`pwd`
6930 # We get this from the environment.
6933 trap '' 1 2 15
6934 cat > confcache <<\EOF
6935 # This file is a shell script that caches the results of configure
6936 # tests run on this system so they can be shared between configure
6937 # scripts and configure runs. It is not useful on other systems.
6938 # If it contains results you don't want to keep, you may remove or edit it.
6940 # By default, configure uses ./config.cache as the cache file,
6941 # creating it if it does not exist already. You can give configure
6942 # the --cache-file=FILE option to use a different cache file; that is
6943 # what configure does when it calls configure scripts in
6944 # subdirectories, so they share the cache.
6945 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6946 # config.status only pays attention to the cache file if you give it the
6947 # --recheck option to rerun configure.
6950 # The following way of writing the cache mishandles newlines in values,
6951 # but we know of no workaround that is simple, portable, and efficient.
6952 # So, don't put newlines in cache variables' values.
6953 # Ultrix sh set writes to stderr and can't be redirected directly,
6954 # and sets the high bit in the cache file unless we assign to the vars.
6955 (set) 2>&1 |
6956 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6957 *ac_space=\ *)
6958 # `set' does not quote correctly, so add quotes (double-quote substitution
6959 # turns \\\\ into \\, and sed turns \\ into \).
6960 sed -n \
6961 -e "s/'/'\\\\''/g" \
6962 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6965 # `set' quotes correctly as required by POSIX, so do not add quotes.
6966 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6968 esac >> confcache
6969 if cmp -s $cache_file confcache; then
6971 else
6972 if test -w $cache_file; then
6973 echo "updating cache $cache_file"
6974 cat confcache > $cache_file
6975 else
6976 echo "not updating unwritable cache $cache_file"
6979 rm -f confcache
6981 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6983 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6984 # Let make expand exec_prefix.
6985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6987 # Any assignment to VPATH causes Sun make to only execute
6988 # the first set of double-colon rules, so remove it if not needed.
6989 # If there is a colon in the path, we need to keep it.
6990 if test "x$srcdir" = x.; then
6991 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6994 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6996 DEFS=-DHAVE_CONFIG_H
6998 # Without the "./", some shells look in PATH for config.status.
6999 : ${CONFIG_STATUS=./config.status}
7001 echo creating $CONFIG_STATUS
7002 rm -f $CONFIG_STATUS
7003 cat > $CONFIG_STATUS <<EOF
7004 #! /bin/sh
7005 # Generated automatically by configure.
7006 # Run this file to recreate the current configuration.
7007 # This directory was configured as follows,
7008 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7010 # $0 $ac_configure_args
7012 # Compiler output produced by configure, useful for debugging
7013 # configure, is in ./config.log if it exists.
7015 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7016 for ac_option
7018 case "\$ac_option" in
7019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7020 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7021 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7022 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7023 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7024 exit 0 ;;
7025 -help | --help | --hel | --he | --h)
7026 echo "\$ac_cs_usage"; exit 0 ;;
7027 *) echo "\$ac_cs_usage"; exit 1 ;;
7028 esac
7029 done
7031 ac_given_srcdir=$srcdir
7032 ac_given_INSTALL="$INSTALL"
7034 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7036 cat >> $CONFIG_STATUS <<EOF
7038 # Protect against being on the right side of a sed subst in config.status.
7039 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7040 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7041 $ac_vpsub
7042 $extrasub
7043 s%@SHELL@%$SHELL%g
7044 s%@CFLAGS@%$CFLAGS%g
7045 s%@CPPFLAGS@%$CPPFLAGS%g
7046 s%@CXXFLAGS@%$CXXFLAGS%g
7047 s%@FFLAGS@%$FFLAGS%g
7048 s%@DEFS@%$DEFS%g
7049 s%@LDFLAGS@%$LDFLAGS%g
7050 s%@LIBS@%$LIBS%g
7051 s%@exec_prefix@%$exec_prefix%g
7052 s%@prefix@%$prefix%g
7053 s%@program_transform_name@%$program_transform_name%g
7054 s%@bindir@%$bindir%g
7055 s%@sbindir@%$sbindir%g
7056 s%@libexecdir@%$libexecdir%g
7057 s%@datadir@%$datadir%g
7058 s%@sysconfdir@%$sysconfdir%g
7059 s%@sharedstatedir@%$sharedstatedir%g
7060 s%@localstatedir@%$localstatedir%g
7061 s%@libdir@%$libdir%g
7062 s%@includedir@%$includedir%g
7063 s%@oldincludedir@%$oldincludedir%g
7064 s%@infodir@%$infodir%g
7065 s%@mandir@%$mandir%g
7066 s%@LN_S@%$LN_S%g
7067 s%@libgcj_basedir@%$libgcj_basedir%g
7068 s%@mkinstalldirs@%$mkinstalldirs%g
7069 s%@host@%$host%g
7070 s%@host_alias@%$host_alias%g
7071 s%@host_cpu@%$host_cpu%g
7072 s%@host_vendor@%$host_vendor%g
7073 s%@host_os@%$host_os%g
7074 s%@target@%$target%g
7075 s%@target_alias@%$target_alias%g
7076 s%@target_cpu@%$target_cpu%g
7077 s%@target_vendor@%$target_vendor%g
7078 s%@target_os@%$target_os%g
7079 s%@build@%$build%g
7080 s%@build_alias@%$build_alias%g
7081 s%@build_cpu@%$build_cpu%g
7082 s%@build_vendor@%$build_vendor%g
7083 s%@build_os@%$build_os%g
7084 s%@CC@%$CC%g
7085 s%@CXX@%$CXX%g
7086 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7087 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7088 s%@INSTALL_DATA@%$INSTALL_DATA%g
7089 s%@PACKAGE@%$PACKAGE%g
7090 s%@VERSION@%$VERSION%g
7091 s%@ACLOCAL@%$ACLOCAL%g
7092 s%@AUTOCONF@%$AUTOCONF%g
7093 s%@AUTOMAKE@%$AUTOMAKE%g
7094 s%@AUTOHEADER@%$AUTOHEADER%g
7095 s%@MAKEINFO@%$MAKEINFO%g
7096 s%@SET_MAKE@%$SET_MAKE%g
7097 s%@AS@%$AS%g
7098 s%@AR@%$AR%g
7099 s%@RANLIB@%$RANLIB%g
7100 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7101 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7102 s%@MAINT@%$MAINT%g
7103 s%@EXEEXT@%$EXEEXT%g
7104 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7105 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7106 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7107 s%@INCLTDL@%$INCLTDL%g
7108 s%@LIBLTDL@%$LIBLTDL%g
7109 s%@DIRLTDL@%$DIRLTDL%g
7110 s%@OBJEXT@%$OBJEXT%g
7111 s%@STRIP@%$STRIP%g
7112 s%@LIBTOOL@%$LIBTOOL%g
7113 s%@CXXCPP@%$CXXCPP%g
7114 s%@subdirs@%$subdirs%g
7115 s%@COMPPATH@%$COMPPATH%g
7116 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7117 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7118 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7119 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
7120 s%@CPP@%$CPP%g
7121 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7122 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7123 s%@ZLIBSPEC@%$ZLIBSPEC%g
7124 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7125 s%@GCLIBS@%$GCLIBS%g
7126 s%@GCINCS@%$GCINCS%g
7127 s%@GCDEPS@%$GCDEPS%g
7128 s%@GCOBJS@%$GCOBJS%g
7129 s%@GCSPEC@%$GCSPEC%g
7130 s%@JC1GCSPEC@%$JC1GCSPEC%g
7131 s%@GCTESTSPEC@%$GCTESTSPEC%g
7132 s%@THREADLIBS@%$THREADLIBS%g
7133 s%@THREADINCS@%$THREADINCS%g
7134 s%@THREADDEPS@%$THREADDEPS%g
7135 s%@THREADOBJS@%$THREADOBJS%g
7136 s%@THREADSPEC@%$THREADSPEC%g
7137 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7138 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7139 s%@ICONV_LDFLAGS@%$ICONV_LDFLAGS%g
7140 s%@LIBICONV@%$LIBICONV%g
7141 s%@GCJ@%$GCJ%g
7142 s%@GCJFLAGS@%$GCJFLAGS%g
7143 s%@ZLIBS@%$ZLIBS%g
7144 s%@ZDEPS@%$ZDEPS%g
7145 s%@ZINCS@%$ZINCS%g
7146 s%@DIVIDESPEC@%$DIVIDESPEC%g
7147 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7148 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7149 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7150 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7151 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7152 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7153 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7154 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7155 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7156 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7157 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7158 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7159 s%@GCJVERSION@%$GCJVERSION%g
7160 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7161 s%@ALLOCA@%$ALLOCA%g
7162 s%@PERL@%$PERL%g
7163 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7164 s%@X_CFLAGS@%$X_CFLAGS%g
7165 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7166 s%@X_LIBS@%$X_LIBS%g
7167 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7168 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7169 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7170 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7171 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7172 s%@here@%$here%g
7174 CEOF
7177 cat >> $CONFIG_STATUS <<\EOF
7179 # Split the substitutions into bite-sized pieces for seds with
7180 # small command number limits, like on Digital OSF/1 and HP-UX.
7181 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7182 ac_file=1 # Number of current file.
7183 ac_beg=1 # First line for current file.
7184 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7185 ac_more_lines=:
7186 ac_sed_cmds=""
7187 while $ac_more_lines; do
7188 if test $ac_beg -gt 1; then
7189 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7190 else
7191 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7193 if test ! -s conftest.s$ac_file; then
7194 ac_more_lines=false
7195 rm -f conftest.s$ac_file
7196 else
7197 if test -z "$ac_sed_cmds"; then
7198 ac_sed_cmds="sed -f conftest.s$ac_file"
7199 else
7200 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7202 ac_file=`expr $ac_file + 1`
7203 ac_beg=$ac_end
7204 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7206 done
7207 if test -z "$ac_sed_cmds"; then
7208 ac_sed_cmds=cat
7212 cat >> $CONFIG_STATUS <<EOF
7214 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7216 cat >> $CONFIG_STATUS <<\EOF
7217 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7218 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7219 case "$ac_file" in
7220 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7221 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7222 *) ac_file_in="${ac_file}.in" ;;
7223 esac
7225 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7227 # Remove last slash and all that follows it. Not all systems have dirname.
7228 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7229 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7230 # The file is in a subdirectory.
7231 test ! -d "$ac_dir" && mkdir "$ac_dir"
7232 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7233 # A "../" for each directory in $ac_dir_suffix.
7234 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7235 else
7236 ac_dir_suffix= ac_dots=
7239 case "$ac_given_srcdir" in
7240 .) srcdir=.
7241 if test -z "$ac_dots"; then top_srcdir=.
7242 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7243 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7244 *) # Relative path.
7245 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7246 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7247 esac
7249 case "$ac_given_INSTALL" in
7250 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7251 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7252 esac
7254 echo creating "$ac_file"
7255 rm -f "$ac_file"
7256 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7257 case "$ac_file" in
7258 *Makefile*) ac_comsub="1i\\
7259 # $configure_input" ;;
7260 *) ac_comsub= ;;
7261 esac
7263 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7264 sed -e "$ac_comsub
7265 s%@configure_input@%$configure_input%g
7266 s%@srcdir@%$srcdir%g
7267 s%@top_srcdir@%$top_srcdir%g
7268 s%@INSTALL@%$INSTALL%g
7269 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7270 fi; done
7271 rm -f conftest.s*
7273 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7274 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7276 # ac_d sets the value in "#define NAME VALUE" lines.
7277 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7278 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7279 ac_dC='\3'
7280 ac_dD='%g'
7281 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7282 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7283 ac_uB='\([ ]\)%\1#\2define\3'
7284 ac_uC=' '
7285 ac_uD='\4%g'
7286 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7287 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7288 ac_eB='$%\1#\2define\3'
7289 ac_eC=' '
7290 ac_eD='%g'
7292 if test "${CONFIG_HEADERS+set}" != set; then
7294 cat >> $CONFIG_STATUS <<EOF
7295 CONFIG_HEADERS="include/config.h"
7297 cat >> $CONFIG_STATUS <<\EOF
7299 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7300 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7301 case "$ac_file" in
7302 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7303 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7304 *) ac_file_in="${ac_file}.in" ;;
7305 esac
7307 echo creating $ac_file
7309 rm -f conftest.frag conftest.in conftest.out
7310 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7311 cat $ac_file_inputs > conftest.in
7315 # Transform confdefs.h into a sed script conftest.vals that substitutes
7316 # the proper values into config.h.in to produce config.h. And first:
7317 # Protect against being on the right side of a sed subst in config.status.
7318 # Protect against being in an unquoted here document in config.status.
7319 rm -f conftest.vals
7320 cat > conftest.hdr <<\EOF
7321 s/[\\&%]/\\&/g
7322 s%[\\$`]%\\&%g
7323 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7324 s%ac_d%ac_u%gp
7325 s%ac_u%ac_e%gp
7327 sed -n -f conftest.hdr confdefs.h > conftest.vals
7328 rm -f conftest.hdr
7330 # This sed command replaces #undef with comments. This is necessary, for
7331 # example, in the case of _POSIX_SOURCE, which is predefined and required
7332 # on some systems where configure will not decide to define it.
7333 cat >> conftest.vals <<\EOF
7334 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7337 # Break up conftest.vals because some shells have a limit on
7338 # the size of here documents, and old seds have small limits too.
7340 rm -f conftest.tail
7341 while :
7343 ac_lines=`grep -c . conftest.vals`
7344 # grep -c gives empty output for an empty file on some AIX systems.
7345 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7346 # Write a limited-size here document to conftest.frag.
7347 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7348 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7349 echo 'CEOF
7350 sed -f conftest.frag conftest.in > conftest.out
7351 rm -f conftest.in
7352 mv conftest.out conftest.in
7353 ' >> $CONFIG_STATUS
7354 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7355 rm -f conftest.vals
7356 mv conftest.tail conftest.vals
7357 done
7358 rm -f conftest.vals
7360 cat >> $CONFIG_STATUS <<\EOF
7361 rm -f conftest.frag conftest.h
7362 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7363 cat conftest.in >> conftest.h
7364 rm -f conftest.in
7365 if cmp -s $ac_file conftest.h 2>/dev/null; then
7366 echo "$ac_file is unchanged"
7367 rm -f conftest.h
7368 else
7369 # Remove last slash and all that follows it. Not all systems have dirname.
7370 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7371 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7372 # The file is in a subdirectory.
7373 test ! -d "$ac_dir" && mkdir "$ac_dir"
7375 rm -f $ac_file
7376 mv conftest.h $ac_file
7378 fi; done
7382 cat >> $CONFIG_STATUS <<EOF
7383 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7384 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7387 cat >> $CONFIG_STATUS <<\EOF
7388 srcdir=$ac_given_srcdir
7389 while test -n "$ac_sources"; do
7390 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7391 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7393 echo "linking $srcdir/$ac_source to $ac_dest"
7395 if test ! -r $srcdir/$ac_source; then
7396 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7398 rm -f $ac_dest
7400 # Make relative symlinks.
7401 # Remove last slash and all that follows it. Not all systems have dirname.
7402 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7403 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7404 # The dest file is in a subdirectory.
7405 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7406 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7407 # A "../" for each directory in $ac_dest_dir_suffix.
7408 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7409 else
7410 ac_dest_dir_suffix= ac_dots=
7413 case "$srcdir" in
7414 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7415 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7416 esac
7418 # Make a symlink if possible; otherwise try a hard link.
7419 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7420 ln $srcdir/$ac_source $ac_dest; then :
7421 else
7422 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7424 done
7426 cat >> $CONFIG_STATUS <<EOF
7428 srcdir=${srcdir}
7429 host=${host}
7430 target=${target}
7431 with_multisubdir=${with_multisubdir}
7432 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7433 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7434 libgcj_basedir=${libgcj_basedir}
7435 CC="${CC}"
7436 CXX="${CXX}"
7439 cat >> $CONFIG_STATUS <<\EOF
7440 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
7441 if test -n "$CONFIG_FILES"; then
7442 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7445 # Make subdirectories and `.d' files. Look in both srcdir and
7446 # builddir for the .java files.
7447 h=`pwd`
7448 : > deps.mk
7449 ( (cd $srcdir && find . -name '*.java' -print) ;
7450 find . -name '*.java' -print) | \
7451 fgrep -v testsuite | \
7452 sed -e 's/\.java/.d/' | \
7453 while read f; do
7454 echo "include $f" >> deps.mk
7455 test -f $f || {
7457 d=`echo $f | sed -e 's,/[^/]*$,,'`
7459 $libgcj_basedir/../mkinstalldirs $d
7460 echo > $f
7462 done
7464 exit 0
7466 chmod +x $CONFIG_STATUS
7467 rm -fr confdefs* $ac_clean_files
7468 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7470 if test "$no_recursion" != yes; then
7472 # Remove --cache-file and --srcdir arguments so they do not pile up.
7473 ac_sub_configure_args=
7474 ac_prev=
7475 for ac_arg in $ac_configure_args; do
7476 if test -n "$ac_prev"; then
7477 ac_prev=
7478 continue
7480 case "$ac_arg" in
7481 -cache-file | --cache-file | --cache-fil | --cache-fi \
7482 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7483 ac_prev=cache_file ;;
7484 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7485 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7487 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7488 ac_prev=srcdir ;;
7489 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7491 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7492 esac
7493 done
7495 for ac_config_dir in $DIRLTDL; do
7497 # Do not complain, so a configure script can configure whichever
7498 # parts of a large source tree are present.
7499 if test ! -d $srcdir/$ac_config_dir; then
7500 continue
7503 echo configuring in $ac_config_dir
7505 case "$srcdir" in
7506 .) ;;
7508 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7509 else
7510 { echo "configure: error: can not create `/vol/local/bin/pwd`/$ac_config_dir" 1>&2; exit 1; }
7513 esac
7515 ac_popdir=`/vol/local/bin/pwd`
7516 cd $ac_config_dir
7518 # A "../" for each directory in /$ac_config_dir.
7519 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7521 case "$srcdir" in
7522 .) # No --srcdir option. We are building in place.
7523 ac_sub_srcdir=$srcdir ;;
7524 /*) # Absolute path.
7525 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7526 *) # Relative path.
7527 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7528 esac
7530 # Check for guested configure; otherwise get Cygnus style configure.
7531 if test -f $ac_sub_srcdir/configure; then
7532 ac_sub_configure=$ac_sub_srcdir/configure
7533 elif test -f $ac_sub_srcdir/configure.in; then
7534 ac_sub_configure=$ac_configure
7535 else
7536 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7537 ac_sub_configure=
7540 # The recursion is here.
7541 if test -n "$ac_sub_configure"; then
7543 # Make the cache file name correct relative to the subdirectory.
7544 case "$cache_file" in
7545 /*) ac_sub_cache_file=$cache_file ;;
7546 *) # Relative path.
7547 ac_sub_cache_file="$ac_dots$cache_file" ;;
7548 esac
7549 case "$ac_given_INSTALL" in
7550 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7551 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7552 esac
7554 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7555 # The eval makes quoting arguments work.
7556 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7557 then :
7558 else
7559 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
7563 cd $ac_popdir
7564 done