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