[official-gcc.git] / libjava / configure
blob183a064e266a11b6cdde4ac7d15b0aa8f9e0af48
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR Configuring in a subdirectory"
16 ac_help="$ac_help
17 --with-cross-host=HOST Configuring with a cross compiler"
18 ac_help="$ac_help
19 --enable-multilib build many library versions (default)"
20 ac_help="$ac_help
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
23 ac_help="$ac_help
24 --enable-shared[=PKGS] build shared libraries [default=yes]"
25 ac_help="$ac_help
26 --enable-static[=PKGS] build static libraries [default=yes]"
27 ac_help="$ac_help
28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
29 ac_help="$ac_help
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31 ac_help="$ac_help
32 --disable-libtool-lock force libtool not to do file locking"
33 ac_help="$ac_help
34 --enable-fast-character Prefer speed over size for Character"
35 ac_help="$ac_help
36 --enable-libgcj-debug Enable runtime debugging code"
37 ac_help="$ac_help
38 --with-ecos Enable runtime eCos target support."
39 ac_help="$ac_help
40 --with-system-zlib Use installed libz"
41 ac_help="$ac_help
42 --enable-java-gc=TYPE choose garbage collector [boehm]"
43 ac_help="$ac_help
44 --enable-threads=TYPE choose threading package"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
49 build=NONE
50 cache_file=./config.cache
51 exec_prefix=NONE
52 host=NONE
53 no_create=
54 nonopt=NONE
55 no_recursion=
56 prefix=NONE
57 program_prefix=NONE
58 program_suffix=NONE
59 program_transform_name=s,x,x,
60 silent=
61 site=
62 srcdir=
63 target=NONE
64 verbose=
65 x_includes=NONE
66 x_libraries=NONE
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
81 subdirs=
82 MFLAGS= MAKEFLAGS=
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
85 ac_max_here_lines=12
87 ac_prev=
88 for ac_option
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
98 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
103 # Accept the important Cygnus configure options, so we can diagnose typos.
105 case "$ac_option" in
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
112 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
128 datadir="$ac_optarg" ;;
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
147 *=*) ;;
148 *) ac_optarg=yes ;;
149 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
168 cat << EOF
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
171 Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
202 cat << EOF
203 Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
218 exit 0 ;;
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 nonopt="$ac_option"
423 esac
424 done
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
433 # 0 standard input
434 # 1 file creation
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
441 exec 6>/dev/null
442 else
443 exec 6>&1
445 exec 5>./config.log
447 echo "\
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
450 " 1>&5
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
454 ac_configure_args=
455 for ac_arg
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466 done
468 # NLS nuisances.
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 echo > confdefs.h
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=java/lang/System.java
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
498 else
499 ac_srcdir_defaulted=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
521 . "$ac_site_file"
523 done
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
527 . $cache_file
528 else
529 echo "creating cache $cache_file"
530 > $cache_file
533 ac_ext=c
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
540 ac_exeext=
541 ac_objext=o
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='
546 ' ac_t=' '
547 else
548 ac_n=-n ac_c= ac_t=
550 else
551 ac_n= ac_c='\c' ac_t=
556 ac_aux_dir=
557 for ac_dir in .. $srcdir/..; do
558 if test -f $ac_dir/install-sh; then
559 ac_aux_dir=$ac_dir
560 ac_install_sh="$ac_aux_dir/install-sh -c"
561 break
562 elif test -f $ac_dir/install.sh; then
563 ac_aux_dir=$ac_dir
564 ac_install_sh="$ac_aux_dir/install.sh -c"
565 break
567 done
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
571 ac_config_guess=$ac_aux_dir/config.guess
572 ac_config_sub=$ac_aux_dir/config.sub
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
578 # The inputs are:
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
581 # The rules are:
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
583 # same time.
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
595 esac
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
606 host_alias=$host
607 case "$host_alias" in
608 NONE)
609 case $nonopt in
610 NONE)
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
613 fi ;;
614 *) host_alias=$nonopt ;;
615 esac ;;
616 esac
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
627 target_alias=$target
628 case "$target_alias" in
629 NONE)
630 case $nonopt in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
633 esac ;;
634 esac
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
645 build_alias=$build
646 case "$build_alias" in
647 NONE)
648 case $nonopt in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
651 esac ;;
652 esac
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
662 NONENONEs,x,x, &&
663 program_prefix=${target_alias}-
666 # Check whether --with-target-subdir or --without-target-subdir was given.
667 if test "${with_target_subdir+set}" = set; then
668 withval="$with_target_subdir"
672 # Check whether --with-cross-host or --without-cross-host was given.
673 if test "${with_cross_host+set}" = set; then
674 withval="$with_cross_host"
679 # Find a good install program. We prefer a C program (faster),
680 # so one script is as good as another. But avoid the broken or
681 # incompatible versions:
682 # SysV /etc/install, /usr/sbin/install
683 # SunOS /usr/etc/install
684 # IRIX /sbin/install
685 # AIX /bin/install
686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
689 # ./install, which can be erroneously created by make from ./install.sh.
690 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
691 echo "configure:692: checking for a BSD compatible install" >&5
692 if test -z "$INSTALL"; then
693 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695 else
696 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
697 for ac_dir in $PATH; do
698 # Account for people who put trailing slashes in PATH elements.
699 case "$ac_dir/" in
700 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
702 # OSF1 and SCO ODT 3.0 have their own names for install.
703 # Don't use installbsd from OSF since it installs stuff as root
704 # by default.
705 for ac_prog in ginstall scoinst install; do
706 if test -f $ac_dir/$ac_prog; then
707 if test $ac_prog = install &&
708 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
709 # AIX install. It has an incompatible calling convention.
711 else
712 ac_cv_path_install="$ac_dir/$ac_prog -c"
713 break 2
716 done
718 esac
719 done
720 IFS="$ac_save_IFS"
723 if test "${ac_cv_path_install+set}" = set; then
724 INSTALL="$ac_cv_path_install"
725 else
726 # As a last resort, use the slow shell script. We don't cache a
727 # path for INSTALL within a source directory, because that will
728 # break other packages using the cache if that directory is
729 # removed, or if the path is relative.
730 INSTALL="$ac_install_sh"
733 echo "$ac_t""$INSTALL" 1>&6
735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
736 # It thinks the first close brace ends the variable substitution.
737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
743 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
744 echo "configure:745: checking whether build environment is sane" >&5
745 # Just in case
746 sleep 1
747 echo timestamp > conftestfile
748 # Do `set' in a subshell so we don't clobber the current shell's
749 # arguments. Must try -L first in case configure is actually a
750 # symlink; some systems play weird games with the mod time of symlinks
751 # (eg FreeBSD returns the mod time of the symlink's containing
752 # directory).
753 if (
754 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
755 if test "$*" = "X"; then
756 # -L didn't work.
757 set X `ls -t $srcdir/configure conftestfile`
759 if test "$*" != "X $srcdir/configure conftestfile" \
760 && test "$*" != "X conftestfile $srcdir/configure"; then
762 # If neither matched, then we have a broken ls. This can happen
763 # if, for instance, CONFIG_SHELL is bash and it inherits a
764 # broken ls alias from the environment. This has actually
765 # happened. Such a system could not be considered "sane".
766 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
767 alias in your environment" 1>&2; exit 1; }
770 test "$2" = conftestfile
772 then
773 # Ok.
775 else
776 { echo "configure: error: newly created file is older than distributed files!
777 Check your system clock" 1>&2; exit 1; }
779 rm -f conftest*
780 echo "$ac_t""yes" 1>&6
781 if test "$program_transform_name" = s,x,x,; then
782 program_transform_name=
783 else
784 # Double any \ or $. echo might interpret backslashes.
785 cat <<\EOF_SED > conftestsed
786 s,\\,\\\\,g; s,\$,$$,g
787 EOF_SED
788 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
789 rm -f conftestsed
791 test "$program_prefix" != NONE &&
792 program_transform_name="s,^,${program_prefix},; $program_transform_name"
793 # Use a double $ so make ignores it.
794 test "$program_suffix" != NONE &&
795 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
797 # sed with no file args requires a program.
798 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
800 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
801 echo "configure:802: checking whether ${MAKE-make} sets \${MAKE}" >&5
802 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
803 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
805 else
806 cat > conftestmake <<\EOF
807 all:
808 @echo 'ac_maketemp="${MAKE}"'
810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
811 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
812 if test -n "$ac_maketemp"; then
813 eval ac_cv_prog_make_${ac_make}_set=yes
814 else
815 eval ac_cv_prog_make_${ac_make}_set=no
817 rm -f conftestmake
819 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
820 echo "$ac_t""yes" 1>&6
821 SET_MAKE=
822 else
823 echo "$ac_t""no" 1>&6
824 SET_MAKE="MAKE=${MAKE-make}"
827 if test $host != $build; then
828 ac_tool_prefix=${host_alias}-
829 else
830 ac_tool_prefix=
833 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
834 echo "configure:835: checking for Cygwin environment" >&5
835 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
837 else
838 cat > conftest.$ac_ext <<EOF
839 #line 840 "configure"
840 #include "confdefs.h"
842 int main() {
844 #ifndef __CYGWIN__
845 #define __CYGWIN__ __CYGWIN32__
846 #endif
847 return __CYGWIN__;
848 ; return 0; }
850 if { (eval echo configure:851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
851 rm -rf conftest*
852 ac_cv_cygwin=yes
853 else
854 echo "configure: failed program was:" >&5
855 cat conftest.$ac_ext >&5
856 rm -rf conftest*
857 ac_cv_cygwin=no
859 rm -f conftest*
860 rm -f conftest*
863 echo "$ac_t""$ac_cv_cygwin" 1>&6
864 CYGWIN=
865 test "$ac_cv_cygwin" = yes && CYGWIN=yes
866 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
867 echo "configure:868: checking for mingw32 environment" >&5
868 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
870 else
871 cat > conftest.$ac_ext <<EOF
872 #line 873 "configure"
873 #include "confdefs.h"
875 int main() {
876 return __MINGW32__;
877 ; return 0; }
879 if { (eval echo configure:880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
880 rm -rf conftest*
881 ac_cv_mingw32=yes
882 else
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
885 rm -rf conftest*
886 ac_cv_mingw32=no
888 rm -f conftest*
889 rm -f conftest*
892 echo "$ac_t""$ac_cv_mingw32" 1>&6
893 MINGW32=
894 test "$ac_cv_mingw32" = yes && MINGW32=yes
896 # Check whether --enable-multilib or --disable-multilib was given.
897 if test "${enable_multilib+set}" = set; then
898 enableval="$enable_multilib"
899 case "${enableval}" in
900 yes) multilib=yes ;;
901 no) multilib=no ;;
902 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
903 esac
904 else
905 multilib=yes
909 if test "${srcdir}" = "."; then
910 if test "${with_target_subdir}" != "."; then
911 libgcj_basedir="${srcdir}/${with_multisrctop}../."
912 else
913 libgcj_basedir="${srcdir}/${with_multisrctop}."
915 else
916 libgcj_basedir="${srcdir}/."
921 # Make sure we can run config.sub.
922 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
923 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
926 echo $ac_n "checking host system type""... $ac_c" 1>&6
927 echo "configure:928: checking host system type" >&5
929 host_alias=$host
930 case "$host_alias" in
931 NONE)
932 case $nonopt in
933 NONE)
934 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
935 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
936 fi ;;
937 *) host_alias=$nonopt ;;
938 esac ;;
939 esac
941 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
942 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
943 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
944 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
945 echo "$ac_t""$host" 1>&6
948 version=0.0.7
950 PACKAGE=libjava
952 VERSION=$version
954 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
955 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
957 cat >> confdefs.h <<EOF
958 #define PACKAGE "$PACKAGE"
961 cat >> confdefs.h <<EOF
962 #define VERSION "$VERSION"
967 missing_dir=`cd $ac_aux_dir && pwd`
968 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
969 echo "configure:970: checking for working aclocal" >&5
970 # Run test in a subshell; some versions of sh will print an error if
971 # an executable is not found, even if stderr is redirected.
972 # Redirect stdin to placate older versions of autoconf. Sigh.
973 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
974 ACLOCAL=aclocal
975 echo "$ac_t""found" 1>&6
976 else
977 ACLOCAL="$missing_dir/missing aclocal"
978 echo "$ac_t""missing" 1>&6
981 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
982 echo "configure:983: checking for working autoconf" >&5
983 # Run test in a subshell; some versions of sh will print an error if
984 # an executable is not found, even if stderr is redirected.
985 # Redirect stdin to placate older versions of autoconf. Sigh.
986 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
987 AUTOCONF=autoconf
988 echo "$ac_t""found" 1>&6
989 else
990 AUTOCONF="$missing_dir/missing autoconf"
991 echo "$ac_t""missing" 1>&6
994 echo $ac_n "checking for working automake""... $ac_c" 1>&6
995 echo "configure:996: checking for working automake" >&5
996 # Run test in a subshell; some versions of sh will print an error if
997 # an executable is not found, even if stderr is redirected.
998 # Redirect stdin to placate older versions of autoconf. Sigh.
999 if (automake --version) < /dev/null > /dev/null 2>&1; then
1000 AUTOMAKE=automake
1001 echo "$ac_t""found" 1>&6
1002 else
1003 AUTOMAKE="$missing_dir/missing automake"
1004 echo "$ac_t""missing" 1>&6
1007 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1008 echo "configure:1009: checking for working autoheader" >&5
1009 # Run test in a subshell; some versions of sh will print an error if
1010 # an executable is not found, even if stderr is redirected.
1011 # Redirect stdin to placate older versions of autoconf. Sigh.
1012 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1013 AUTOHEADER=autoheader
1014 echo "$ac_t""found" 1>&6
1015 else
1016 AUTOHEADER="$missing_dir/missing autoheader"
1017 echo "$ac_t""missing" 1>&6
1020 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working makeinfo" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1026 MAKEINFO=makeinfo
1027 echo "$ac_t""found" 1>&6
1028 else
1029 MAKEINFO="$missing_dir/missing makeinfo"
1030 echo "$ac_t""missing" 1>&6
1035 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1036 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1037 # are probably using a cross compiler, which will not be able to fully
1038 # link an executable. This should really be fixed in autoconf
1039 # itself.
1043 # Extract the first word of "gcc", so it can be a program name with args.
1044 set dummy gcc; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1049 else
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC="$CC" # Let the user override the test.
1052 else
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1054 ac_dummy="$PATH"
1055 for ac_dir in $ac_dummy; do
1056 test -z "$ac_dir" && ac_dir=.
1057 if test -f $ac_dir/$ac_word; then
1058 ac_cv_prog_CC="gcc"
1059 break
1061 done
1062 IFS="$ac_save_ifs"
1065 CC="$ac_cv_prog_CC"
1066 if test -n "$CC"; then
1067 echo "$ac_t""$CC" 1>&6
1068 else
1069 echo "$ac_t""no" 1>&6
1072 if test -z "$CC"; then
1073 # Extract the first word of "cc", so it can be a program name with args.
1074 set dummy cc; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080 if test -n "$CC"; then
1081 ac_cv_prog_CC="$CC" # Let the user override the test.
1082 else
1083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1084 ac_prog_rejected=no
1085 ac_dummy="$PATH"
1086 for ac_dir in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1090 ac_prog_rejected=yes
1091 continue
1093 ac_cv_prog_CC="cc"
1094 break
1096 done
1097 IFS="$ac_save_ifs"
1098 if test $ac_prog_rejected = yes; then
1099 # We found a bogon in the path, so make sure we never use it.
1100 set dummy $ac_cv_prog_CC
1101 shift
1102 if test $# -gt 0; then
1103 # We chose a different compiler from the bogus one.
1104 # However, it has the same basename, so the bogon will be chosen
1105 # first if we set CC to just the basename; use the full file name.
1106 shift
1107 set dummy "$ac_dir/$ac_word" "$@"
1108 shift
1109 ac_cv_prog_CC="$@"
1114 CC="$ac_cv_prog_CC"
1115 if test -n "$CC"; then
1116 echo "$ac_t""$CC" 1>&6
1117 else
1118 echo "$ac_t""no" 1>&6
1121 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129 cat > conftest.c <<EOF
1130 #ifdef __GNUC__
1131 yes;
1132 #endif
1134 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135 ac_cv_prog_gcc=yes
1136 else
1137 ac_cv_prog_gcc=no
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1143 if test $ac_cv_prog_gcc = yes; then
1144 GCC=yes
1145 ac_test_CFLAGS="${CFLAGS+set}"
1146 ac_save_CFLAGS="$CFLAGS"
1147 CFLAGS=
1148 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${CC-cc} accepts -g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 echo 'void f(){}' > conftest.c
1154 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1155 ac_cv_prog_cc_g=yes
1156 else
1157 ac_cv_prog_cc_g=no
1159 rm -f conftest*
1163 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1164 if test "$ac_test_CFLAGS" = set; then
1165 CFLAGS="$ac_save_CFLAGS"
1166 elif test $ac_cv_prog_cc_g = yes; then
1167 CFLAGS="-g -O2"
1168 else
1169 CFLAGS="-O2"
1171 else
1172 GCC=
1173 test "${CFLAGS+set}" = set || CFLAGS="-g"
1177 # Likewise for AC_PROG_CXX.
1180 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1182 # Extract the first word of "$ac_prog", so it can be a program name with args.
1183 set dummy $ac_prog; ac_word=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1188 else
1189 if test -n "$CXX"; then
1190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1191 else
1192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1193 ac_dummy="$PATH"
1194 for ac_dir in $ac_dummy; do
1195 test -z "$ac_dir" && ac_dir=.
1196 if test -f $ac_dir/$ac_word; then
1197 ac_cv_prog_CXX="$ac_prog"
1198 break
1200 done
1201 IFS="$ac_save_ifs"
1204 CXX="$ac_cv_prog_CXX"
1205 if test -n "$CXX"; then
1206 echo "$ac_t""$CXX" 1>&6
1207 else
1208 echo "$ac_t""no" 1>&6
1211 test -n "$CXX" && break
1212 done
1213 test -n "$CXX" || CXX="gcc"
1215 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1217 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether we are using GNU C++" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1221 else
1222 cat > conftest.C <<EOF
1223 #ifdef __GNUC__
1224 yes;
1225 #endif
1227 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1228 ac_cv_prog_gxx=yes
1229 else
1230 ac_cv_prog_gxx=no
1234 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1236 if test $ac_cv_prog_gxx = yes; then
1237 GXX=yes
1238 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1239 ac_save_CXXFLAGS="$CXXFLAGS"
1240 CXXFLAGS=
1241 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether ${CXX-g++} accepts -g" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1245 else
1246 echo 'void f(){}' > conftest.cc
1247 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1248 ac_cv_prog_cxx_g=yes
1249 else
1250 ac_cv_prog_cxx_g=no
1252 rm -f conftest*
1256 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1257 if test "$ac_test_CXXFLAGS" = set; then
1258 CXXFLAGS="$ac_save_CXXFLAGS"
1259 elif test $ac_cv_prog_cxx_g = yes; then
1260 CXXFLAGS="-g -O2"
1261 else
1262 CXXFLAGS="-O2"
1264 else
1265 GXX=
1266 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1270 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1271 # run it explicitly here, it will be run implicitly before
1272 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1273 # be run before AC_CANONICAL_HOST.
1274 echo $ac_n "checking build system type""... $ac_c" 1>&6
1275 echo "configure:1276: checking build system type" >&5
1277 build_alias=$build
1278 case "$build_alias" in
1279 NONE)
1280 case $nonopt in
1281 NONE) build_alias=$host_alias ;;
1282 *) build_alias=$nonopt ;;
1283 esac ;;
1284 esac
1286 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1287 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1288 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1289 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1290 echo "$ac_t""$build" 1>&6
1293 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1294 set dummy ${ac_tool_prefix}as; ac_word=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 if test -n "$AS"; then
1301 ac_cv_prog_AS="$AS" # Let the user override the test.
1302 else
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1304 ac_dummy="$PATH"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_prog_AS="${ac_tool_prefix}as"
1309 break
1311 done
1312 IFS="$ac_save_ifs"
1313 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1316 AS="$ac_cv_prog_AS"
1317 if test -n "$AS"; then
1318 echo "$ac_t""$AS" 1>&6
1319 else
1320 echo "$ac_t""no" 1>&6
1325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1326 set dummy ${ac_tool_prefix}ar; ac_word=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 if test -n "$AR"; then
1333 ac_cv_prog_AR="$AR" # Let the user override the test.
1334 else
1335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1336 ac_dummy="$PATH"
1337 for ac_dir in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_AR="${ac_tool_prefix}ar"
1341 break
1343 done
1344 IFS="$ac_save_ifs"
1345 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1348 AR="$ac_cv_prog_AR"
1349 if test -n "$AR"; then
1350 echo "$ac_t""$AR" 1>&6
1351 else
1352 echo "$ac_t""no" 1>&6
1357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1358 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 if test -n "$RANLIB"; then
1365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1366 else
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1368 ac_dummy="$PATH"
1369 for ac_dir in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1373 break
1375 done
1376 IFS="$ac_save_ifs"
1379 RANLIB="$ac_cv_prog_RANLIB"
1380 if test -n "$RANLIB"; then
1381 echo "$ac_t""$RANLIB" 1>&6
1382 else
1383 echo "$ac_t""no" 1>&6
1387 if test -z "$ac_cv_prog_RANLIB"; then
1388 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "ranlib", so it can be a program name with args.
1390 set dummy ranlib; ac_word=$2
1391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1392 echo "configure:1393: checking for $ac_word" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1395 else
1396 if test -n "$RANLIB"; then
1397 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1398 else
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 ac_dummy="$PATH"
1401 for ac_dir in $ac_dummy; do
1402 test -z "$ac_dir" && ac_dir=.
1403 if test -f $ac_dir/$ac_word; then
1404 ac_cv_prog_RANLIB="ranlib"
1405 break
1407 done
1408 IFS="$ac_save_ifs"
1409 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1412 RANLIB="$ac_cv_prog_RANLIB"
1413 if test -n "$RANLIB"; then
1414 echo "$ac_t""$RANLIB" 1>&6
1415 else
1416 echo "$ac_t""no" 1>&6
1419 else
1420 RANLIB=":"
1425 # Find a good install program. We prefer a C program (faster),
1426 # so one script is as good as another. But avoid the broken or
1427 # incompatible versions:
1428 # SysV /etc/install, /usr/sbin/install
1429 # SunOS /usr/etc/install
1430 # IRIX /sbin/install
1431 # AIX /bin/install
1432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1435 # ./install, which can be erroneously created by make from ./install.sh.
1436 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1437 echo "configure:1438: checking for a BSD compatible install" >&5
1438 if test -z "$INSTALL"; then
1439 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1441 else
1442 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1443 for ac_dir in $PATH; do
1444 # Account for people who put trailing slashes in PATH elements.
1445 case "$ac_dir/" in
1446 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1448 # OSF1 and SCO ODT 3.0 have their own names for install.
1449 # Don't use installbsd from OSF since it installs stuff as root
1450 # by default.
1451 for ac_prog in ginstall scoinst install; do
1452 if test -f $ac_dir/$ac_prog; then
1453 if test $ac_prog = install &&
1454 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1455 # AIX install. It has an incompatible calling convention.
1457 else
1458 ac_cv_path_install="$ac_dir/$ac_prog -c"
1459 break 2
1462 done
1464 esac
1465 done
1466 IFS="$ac_save_IFS"
1469 if test "${ac_cv_path_install+set}" = set; then
1470 INSTALL="$ac_cv_path_install"
1471 else
1472 # As a last resort, use the slow shell script. We don't cache a
1473 # path for INSTALL within a source directory, because that will
1474 # break other packages using the cache if that directory is
1475 # removed, or if the path is relative.
1476 INSTALL="$ac_install_sh"
1479 echo "$ac_t""$INSTALL" 1>&6
1481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1482 # It thinks the first close brace ends the variable substitution.
1483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1490 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1491 echo "configure:1492: checking whether to enable maintainer-specific portions of Makefiles" >&5
1492 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1493 if test "${enable_maintainer_mode+set}" = set; then
1494 enableval="$enable_maintainer_mode"
1495 USE_MAINTAINER_MODE=$enableval
1496 else
1497 USE_MAINTAINER_MODE=no
1500 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1503 if test $USE_MAINTAINER_MODE = yes; then
1504 MAINTAINER_MODE_TRUE=
1505 MAINTAINER_MODE_FALSE='#'
1506 else
1507 MAINTAINER_MODE_TRUE='#'
1508 MAINTAINER_MODE_FALSE=
1510 MAINT=$MAINTAINER_MODE_TRUE
1514 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1515 # at least currently, we never actually build a program, so we never
1516 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1517 # fails, because we are probably configuring with a cross compiler
1518 # which cant create executables. So we include AC_EXEEXT to keep
1519 # automake happy, but we dont execute it, since we dont care about
1520 # the result.
1521 if false; then
1524 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1525 echo "configure:1526: checking for executable suffix" >&5
1526 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1529 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1530 ac_cv_exeext=.exe
1531 else
1532 rm -f conftest*
1533 echo 'int main () { return 0; }' > conftest.$ac_ext
1534 ac_cv_exeext=
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1536 for file in conftest.*; do
1537 case $file in
1538 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1539 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1540 esac
1541 done
1542 else
1543 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1545 rm -f conftest*
1546 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1550 EXEEXT=""
1551 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1552 echo "$ac_t""${ac_cv_exeext}" 1>&6
1553 ac_exeext=$EXEEXT
1557 # configure.host sets the following important variables
1558 # libgcj_cflags - host specific C compiler flags
1559 # libgcj_cxxflags - host specific C++ compiler flags
1560 # libgcj_javaflags - host specific Java compiler flags
1562 libgcj_cflags=
1563 libgcj_cxxflags=
1564 libgcj_javaflags=
1566 . ${libgcj_basedir}/configure.host
1568 case ${libgcj_basedir} in
1569 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1570 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1571 esac
1573 LIBGCJ_CFLAGS="${libgcj_cflags}"
1574 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1575 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1585 # Check whether --enable-shared or --disable-shared was given.
1586 if test "${enable_shared+set}" = set; then
1587 enableval="$enable_shared"
1588 p=${PACKAGE-default}
1589 case "$enableval" in
1590 yes) enable_shared=yes ;;
1591 no) enable_shared=no ;;
1593 enable_shared=no
1594 # Look at the argument we got. We use all the common list separators.
1595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1596 for pkg in $enableval; do
1597 if test "X$pkg" = "X$p"; then
1598 enable_shared=yes
1600 done
1601 IFS="$ac_save_ifs"
1603 esac
1604 else
1605 enable_shared=yes
1608 # Check whether --enable-static or --disable-static was given.
1609 if test "${enable_static+set}" = set; then
1610 enableval="$enable_static"
1611 p=${PACKAGE-default}
1612 case "$enableval" in
1613 yes) enable_static=yes ;;
1614 no) enable_static=no ;;
1616 enable_static=no
1617 # Look at the argument we got. We use all the common list separators.
1618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1619 for pkg in $enableval; do
1620 if test "X$pkg" = "X$p"; then
1621 enable_static=yes
1623 done
1624 IFS="$ac_save_ifs"
1626 esac
1627 else
1628 enable_static=yes
1631 # Check whether --enable-fast-install or --disable-fast-install was given.
1632 if test "${enable_fast_install+set}" = set; then
1633 enableval="$enable_fast_install"
1634 p=${PACKAGE-default}
1635 case "$enableval" in
1636 yes) enable_fast_install=yes ;;
1637 no) enable_fast_install=no ;;
1639 enable_fast_install=no
1640 # Look at the argument we got. We use all the common list separators.
1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1642 for pkg in $enableval; do
1643 if test "X$pkg" = "X$p"; then
1644 enable_fast_install=yes
1646 done
1647 IFS="$ac_save_ifs"
1649 esac
1650 else
1651 enable_fast_install=yes
1654 # Extract the first word of "ranlib", so it can be a program name with args.
1655 set dummy ranlib; ac_word=$2
1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1657 echo "configure:1658: checking for $ac_word" >&5
1658 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1660 else
1661 if test -n "$RANLIB"; then
1662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1663 else
1664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1665 ac_dummy="$PATH"
1666 for ac_dir in $ac_dummy; do
1667 test -z "$ac_dir" && ac_dir=.
1668 if test -f $ac_dir/$ac_word; then
1669 ac_cv_prog_RANLIB="ranlib"
1670 break
1672 done
1673 IFS="$ac_save_ifs"
1674 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1677 RANLIB="$ac_cv_prog_RANLIB"
1678 if test -n "$RANLIB"; then
1679 echo "$ac_t""$RANLIB" 1>&6
1680 else
1681 echo "$ac_t""no" 1>&6
1684 # Extract the first word of "gcc", so it can be a program name with args.
1685 set dummy gcc; ac_word=$2
1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_word" >&5
1688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1695 ac_dummy="$PATH"
1696 for ac_dir in $ac_dummy; do
1697 test -z "$ac_dir" && ac_dir=.
1698 if test -f $ac_dir/$ac_word; then
1699 ac_cv_prog_CC="gcc"
1700 break
1702 done
1703 IFS="$ac_save_ifs"
1706 CC="$ac_cv_prog_CC"
1707 if test -n "$CC"; then
1708 echo "$ac_t""$CC" 1>&6
1709 else
1710 echo "$ac_t""no" 1>&6
1713 if test -z "$CC"; then
1714 # Extract the first word of "cc", so it can be a program name with args.
1715 set dummy cc; ac_word=$2
1716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1717 echo "configure:1718: checking for $ac_word" >&5
1718 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720 else
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1723 else
1724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1725 ac_prog_rejected=no
1726 ac_dummy="$PATH"
1727 for ac_dir in $ac_dummy; do
1728 test -z "$ac_dir" && ac_dir=.
1729 if test -f $ac_dir/$ac_word; then
1730 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1731 ac_prog_rejected=yes
1732 continue
1734 ac_cv_prog_CC="cc"
1735 break
1737 done
1738 IFS="$ac_save_ifs"
1739 if test $ac_prog_rejected = yes; then
1740 # We found a bogon in the path, so make sure we never use it.
1741 set dummy $ac_cv_prog_CC
1742 shift
1743 if test $# -gt 0; then
1744 # We chose a different compiler from the bogus one.
1745 # However, it has the same basename, so the bogon will be chosen
1746 # first if we set CC to just the basename; use the full file name.
1747 shift
1748 set dummy "$ac_dir/$ac_word" "$@"
1749 shift
1750 ac_cv_prog_CC="$@"
1755 CC="$ac_cv_prog_CC"
1756 if test -n "$CC"; then
1757 echo "$ac_t""$CC" 1>&6
1758 else
1759 echo "$ac_t""no" 1>&6
1762 if test -z "$CC"; then
1763 case "`uname -s`" in
1764 *win32* | *WIN32*)
1765 # Extract the first word of "cl", so it can be a program name with args.
1766 set dummy cl; ac_word=$2
1767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1768 echo "configure:1769: checking for $ac_word" >&5
1769 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 else
1775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1776 ac_dummy="$PATH"
1777 for ac_dir in $ac_dummy; do
1778 test -z "$ac_dir" && ac_dir=.
1779 if test -f $ac_dir/$ac_word; then
1780 ac_cv_prog_CC="cl"
1781 break
1783 done
1784 IFS="$ac_save_ifs"
1787 CC="$ac_cv_prog_CC"
1788 if test -n "$CC"; then
1789 echo "$ac_t""$CC" 1>&6
1790 else
1791 echo "$ac_t""no" 1>&6
1794 esac
1796 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1800 echo "configure:1801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1802 ac_ext=c
1803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1807 cross_compiling=$ac_cv_prog_cc_cross
1809 cat > conftest.$ac_ext << EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1814 main(){return(0);}
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1817 ac_cv_prog_cc_works=yes
1818 # If we can't run a trivial program, we are probably using a cross compiler.
1819 if (./conftest; exit) 2>/dev/null; then
1820 ac_cv_prog_cc_cross=no
1821 else
1822 ac_cv_prog_cc_cross=yes
1824 else
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1827 ac_cv_prog_cc_works=no
1829 rm -fr conftest*
1830 ac_ext=c
1831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1835 cross_compiling=$ac_cv_prog_cc_cross
1837 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1838 if test $ac_cv_prog_cc_works = no; then
1839 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1841 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1843 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1844 cross_compiling=$ac_cv_prog_cc_cross
1846 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1847 echo "configure:1848: checking whether we are using GNU C" >&5
1848 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1850 else
1851 cat > conftest.c <<EOF
1852 #ifdef __GNUC__
1853 yes;
1854 #endif
1856 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1857 ac_cv_prog_gcc=yes
1858 else
1859 ac_cv_prog_gcc=no
1863 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1865 if test $ac_cv_prog_gcc = yes; then
1866 GCC=yes
1867 else
1868 GCC=
1871 ac_test_CFLAGS="${CFLAGS+set}"
1872 ac_save_CFLAGS="$CFLAGS"
1873 CFLAGS=
1874 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1875 echo "configure:1876: checking whether ${CC-cc} accepts -g" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 echo 'void f(){}' > conftest.c
1880 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1881 ac_cv_prog_cc_g=yes
1882 else
1883 ac_cv_prog_cc_g=no
1885 rm -f conftest*
1889 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1890 if test "$ac_test_CFLAGS" = set; then
1891 CFLAGS="$ac_save_CFLAGS"
1892 elif test $ac_cv_prog_cc_g = yes; then
1893 if test "$GCC" = yes; then
1894 CFLAGS="-g -O2"
1895 else
1896 CFLAGS="-g"
1898 else
1899 if test "$GCC" = yes; then
1900 CFLAGS="-O2"
1901 else
1902 CFLAGS=
1906 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1907 if test "${with_gnu_ld+set}" = set; then
1908 withval="$with_gnu_ld"
1909 test "$withval" = no || with_gnu_ld=yes
1910 else
1911 with_gnu_ld=no
1914 ac_prog=ld
1915 if test "$ac_cv_prog_gcc" = yes; then
1916 # Check if gcc -print-prog-name=ld gives a path.
1917 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1918 echo "configure:1919: checking for ld used by GCC" >&5
1919 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1920 case "$ac_prog" in
1921 # Accept absolute paths.
1922 /* | [A-Za-z]:[\\/]*)
1923 re_direlt='/[^/][^/]*/\.\./'
1924 # Canonicalize the path of ld
1925 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1926 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1927 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1928 done
1929 test -z "$LD" && LD="$ac_prog"
1932 # If it fails, then pretend we aren't using GCC.
1933 ac_prog=ld
1936 # If it is relative, then search for the first ld in PATH.
1937 with_gnu_ld=unknown
1939 esac
1940 elif test "$with_gnu_ld" = yes; then
1941 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1942 echo "configure:1943: checking for GNU ld" >&5
1943 else
1944 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1945 echo "configure:1946: checking for non-GNU ld" >&5
1947 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1949 else
1950 if test -z "$LD"; then
1951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1952 for ac_dir in $PATH; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f "$ac_dir/$ac_prog"; then
1955 ac_cv_path_LD="$ac_dir/$ac_prog"
1956 # Check to see if the program is GNU ld. I'd rather use --version,
1957 # but apparently some GNU ld's only accept -v.
1958 # Break only if it was the GNU/non-GNU ld that we prefer.
1959 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1960 test "$with_gnu_ld" != no && break
1961 else
1962 test "$with_gnu_ld" != yes && break
1965 done
1966 IFS="$ac_save_ifs"
1967 else
1968 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1972 LD="$ac_cv_path_LD"
1973 if test -n "$LD"; then
1974 echo "$ac_t""$LD" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1978 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1980 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1981 echo "configure:1982: checking if the linker ($LD) is GNU ld" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1986 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1987 ac_cv_prog_gnu_ld=yes
1988 else
1989 ac_cv_prog_gnu_ld=no
1993 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1996 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1997 echo "configure:1998: checking for BSD-compatible nm" >&5
1998 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001 if test -n "$NM"; then
2002 # Let the user override the test.
2003 ac_cv_path_NM="$NM"
2004 else
2005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2006 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2007 test -z "$ac_dir" && ac_dir=.
2008 if test -f $ac_dir/nm; then
2009 # Check to see if the nm accepts a BSD-compat flag.
2010 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2011 # nm: unknown option "B" ignored
2012 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2013 ac_cv_path_NM="$ac_dir/nm -B"
2014 break
2015 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2016 ac_cv_path_NM="$ac_dir/nm -p"
2017 break
2018 else
2019 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2020 continue # so that we can try to find one that supports BSD flags
2023 done
2024 IFS="$ac_save_ifs"
2025 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2029 NM="$ac_cv_path_NM"
2030 echo "$ac_t""$NM" 1>&6
2033 # Check for command to grab the raw symbol name followed by C symbol from nm.
2034 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2035 echo "configure:2036: checking command to parse $NM output" >&5
2036 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039 # These are sane defaults that work on at least a few old systems.
2040 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
2042 # Character class describing NM global symbol codes.
2043 ac_symcode='[BCDEGRST]'
2045 # Regexp to match symbols that can be accessed directly from C.
2046 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2048 # Transform the above into a raw symbol and a C symbol.
2049 ac_symxfrm='\1 \2\3 \3'
2051 # Transform an extracted symbol line into a proper C declaration
2052 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2054 # Define system-specific variables.
2055 case "$host_os" in
2056 aix*)
2057 ac_symcode='[BCDT]'
2059 cygwin* | mingw*)
2060 ac_symcode='[ABCDGISTW]'
2062 hpux*)
2063 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2065 irix*)
2066 ac_symcode='[BCDEGRST]'
2068 solaris*)
2069 ac_symcode='[BDT]'
2071 esac
2073 # If we're using GNU nm, then use its standard symbol codes.
2074 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2075 ac_symcode='[ABCDGISTW]'
2078 # Try without a prefix undercore, then with it.
2079 for ac_symprfx in "" "_"; do
2081 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2083 # Check to see that the pipe works correctly.
2084 ac_pipe_works=no
2085 rm -f conftest.$ac_ext
2086 cat > conftest.$ac_ext <<EOF
2087 #ifdef __cplusplus
2088 extern "C" {
2089 #endif
2090 char nm_test_var;
2091 void nm_test_func(){}
2092 #ifdef __cplusplus
2094 #endif
2095 int main(){nm_test_var='a';nm_test_func;return 0;}
2098 if { (eval echo configure:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2099 # Now try to grab the symbols.
2100 ac_nlist=conftest.nm
2102 if { (eval echo configure:2103: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2104 # Try sorting and uniquifying the output.
2105 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
2106 mv -f "$ac_nlist"T "$ac_nlist"
2107 else
2108 rm -f "$ac_nlist"T
2111 # Make sure that we snagged all the symbols we need.
2112 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
2113 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
2114 cat <<EOF > conftest.c
2115 #ifdef __cplusplus
2116 extern "C" {
2117 #endif
2120 # Now generate the symbol file.
2121 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2123 cat <<EOF >> conftest.c
2124 #if defined (__STDC__) && __STDC__
2125 # define lt_ptr_t void *
2126 #else
2127 # define lt_ptr_t char *
2128 # define const
2129 #endif
2131 /* The mapping between symbol names and symbols. */
2132 const struct {
2133 const char *name;
2134 lt_ptr_t address;
2136 lt_preloaded_symbols[] =
2139 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2140 cat <<\EOF >> conftest.c
2141 {0, (lt_ptr_t) 0}
2144 #ifdef __cplusplus
2146 #endif
2148 # Now try linking the two files.
2149 mv conftest.$ac_objext conftestm.$ac_objext
2150 ac_save_LIBS="$LIBS"
2151 ac_save_CFLAGS="$CFLAGS"
2152 LIBS="conftestm.$ac_objext"
2153 CFLAGS="$CFLAGS$no_builtin_flag"
2154 if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2155 ac_pipe_works=yes
2156 else
2157 echo "configure: failed program was:" >&5
2158 cat conftest.c >&5
2160 LIBS="$ac_save_LIBS"
2161 CFLAGS="$ac_save_CFLAGS"
2162 else
2163 echo "cannot find nm_test_func in $ac_nlist" >&5
2165 else
2166 echo "cannot find nm_test_var in $ac_nlist" >&5
2168 else
2169 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2171 else
2172 echo "$progname: failed program was:" >&5
2173 cat conftest.c >&5
2175 rm -rf conftest*
2177 # Do not use the global_symbol_pipe unless it works.
2178 if test "$ac_pipe_works" = yes; then
2179 if test x"$ac_symprfx" = x"_"; then
2180 ac_cv_sys_symbol_underscore=yes
2181 else
2182 ac_cv_sys_symbol_underscore=no
2184 break
2185 else
2186 ac_cv_sys_global_symbol_pipe=
2188 done
2193 ac_result=yes
2194 if test -z "$ac_cv_sys_global_symbol_pipe"; then
2195 ac_result=no
2197 echo "$ac_t""$ac_result" 1>&6
2199 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
2200 echo "configure:2201: checking for _ prefix in compiled symbols" >&5
2201 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 ac_cv_sys_symbol_underscore=no
2205 cat > conftest.$ac_ext <<EOF
2206 void nm_test_func(){}
2207 int main(){nm_test_func;return 0;}
2209 if { (eval echo configure:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2210 # Now try to grab the symbols.
2211 ac_nlist=conftest.nm
2212 if { (eval echo configure:2213: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2213 # See whether the symbols have a leading underscore.
2214 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
2215 ac_cv_sys_symbol_underscore=yes
2216 else
2217 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
2219 else
2220 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2223 else
2224 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2226 else
2227 echo "configure: failed program was:" >&5
2228 cat conftest.c >&5
2230 rm -rf conftest*
2234 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2235 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
2237 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2238 echo "configure:2239: checking whether ln -s works" >&5
2239 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2241 else
2242 rm -f conftestdata
2243 if ln -s X conftestdata 2>/dev/null
2244 then
2245 rm -f conftestdata
2246 ac_cv_prog_LN_S="ln -s"
2247 else
2248 ac_cv_prog_LN_S=ln
2251 LN_S="$ac_cv_prog_LN_S"
2252 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2253 echo "$ac_t""yes" 1>&6
2254 else
2255 echo "$ac_t""no" 1>&6
2259 # Check for any special flags to pass to ltconfig.
2260 libtool_flags="--cache-file=$cache_file"
2261 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2262 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2263 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2264 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
2265 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2266 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2267 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2269 # Some flags need to be propagated to the compiler or linker for good
2270 # libtool support.
2271 case "$host" in
2272 *-*-irix6*)
2273 # Find out which ABI we are using.
2274 echo '#line 2275 "configure"' > conftest.$ac_ext
2275 if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2276 case "`/usr/bin/file conftest.o`" in
2277 *32-bit*)
2278 LD="${LD-ld} -32"
2280 *N32*)
2281 LD="${LD-ld} -n32"
2283 *64-bit*)
2284 LD="${LD-ld} -64"
2286 esac
2288 rm -rf conftest*
2291 *-*-sco3.2v5*)
2292 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2293 SAVE_CFLAGS="$CFLAGS"
2294 CFLAGS="$CFLAGS -belf"
2295 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2296 echo "configure:2297: checking whether the C compiler needs -belf" >&5
2297 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299 else
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2304 int main() {
2306 ; return 0; }
2308 if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309 rm -rf conftest*
2310 lt_cv_cc_needs_belf=yes
2311 else
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 rm -rf conftest*
2315 lt_cv_cc_needs_belf=no
2317 rm -f conftest*
2320 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2321 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2323 CFLAGS="$SAVE_CFLAGS"
2327 *-*-cygwin*)
2328 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2329 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335 if test -n "$DLLTOOL"; then
2336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2337 else
2338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2339 ac_dummy="$PATH"
2340 for ac_dir in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir=.
2342 if test -f $ac_dir/$ac_word; then
2343 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2344 break
2346 done
2347 IFS="$ac_save_ifs"
2350 DLLTOOL="$ac_cv_prog_DLLTOOL"
2351 if test -n "$DLLTOOL"; then
2352 echo "$ac_t""$DLLTOOL" 1>&6
2353 else
2354 echo "$ac_t""no" 1>&6
2358 if test -z "$ac_cv_prog_DLLTOOL"; then
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "dlltool", so it can be a program name with args.
2361 set dummy dlltool; ac_word=$2
2362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363 echo "configure:2364: checking for $ac_word" >&5
2364 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2366 else
2367 if test -n "$DLLTOOL"; then
2368 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2369 else
2370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2371 ac_dummy="$PATH"
2372 for ac_dir in $ac_dummy; do
2373 test -z "$ac_dir" && ac_dir=.
2374 if test -f $ac_dir/$ac_word; then
2375 ac_cv_prog_DLLTOOL="dlltool"
2376 break
2378 done
2379 IFS="$ac_save_ifs"
2380 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2383 DLLTOOL="$ac_cv_prog_DLLTOOL"
2384 if test -n "$DLLTOOL"; then
2385 echo "$ac_t""$DLLTOOL" 1>&6
2386 else
2387 echo "$ac_t""no" 1>&6
2390 else
2391 DLLTOOL="false"
2395 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}as; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402 if test -n "$AS"; then
2403 ac_cv_prog_AS="$AS" # Let the user override the test.
2404 else
2405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2406 ac_dummy="$PATH"
2407 for ac_dir in $ac_dummy; do
2408 test -z "$ac_dir" && ac_dir=.
2409 if test -f $ac_dir/$ac_word; then
2410 ac_cv_prog_AS="${ac_tool_prefix}as"
2411 break
2413 done
2414 IFS="$ac_save_ifs"
2417 AS="$ac_cv_prog_AS"
2418 if test -n "$AS"; then
2419 echo "$ac_t""$AS" 1>&6
2420 else
2421 echo "$ac_t""no" 1>&6
2425 if test -z "$ac_cv_prog_AS"; then
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "as", so it can be a program name with args.
2428 set dummy as; ac_word=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2433 else
2434 if test -n "$AS"; then
2435 ac_cv_prog_AS="$AS" # Let the user override the test.
2436 else
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2438 ac_dummy="$PATH"
2439 for ac_dir in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir=.
2441 if test -f $ac_dir/$ac_word; then
2442 ac_cv_prog_AS="as"
2443 break
2445 done
2446 IFS="$ac_save_ifs"
2447 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2450 AS="$ac_cv_prog_AS"
2451 if test -n "$AS"; then
2452 echo "$ac_t""$AS" 1>&6
2453 else
2454 echo "$ac_t""no" 1>&6
2457 else
2458 AS="false"
2465 esac
2467 # enable the --disable-libtool-lock switch
2469 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2470 if test "${enable_libtool_lock+set}" = set; then
2471 enableval="$enable_libtool_lock"
2472 need_locks=$enableval
2473 else
2474 need_locks=yes
2478 if test x"$need_locks" = xno; then
2479 libtool_flags="$libtool_flags --disable-lock"
2483 # Save cache, so that ltconfig can load it
2484 cat > confcache <<\EOF
2485 # This file is a shell script that caches the results of configure
2486 # tests run on this system so they can be shared between configure
2487 # scripts and configure runs. It is not useful on other systems.
2488 # If it contains results you don't want to keep, you may remove or edit it.
2490 # By default, configure uses ./config.cache as the cache file,
2491 # creating it if it does not exist already. You can give configure
2492 # the --cache-file=FILE option to use a different cache file; that is
2493 # what configure does when it calls configure scripts in
2494 # subdirectories, so they share the cache.
2495 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2496 # config.status only pays attention to the cache file if you give it the
2497 # --recheck option to rerun configure.
2500 # The following way of writing the cache mishandles newlines in values,
2501 # but we know of no workaround that is simple, portable, and efficient.
2502 # So, don't put newlines in cache variables' values.
2503 # Ultrix sh set writes to stderr and can't be redirected directly,
2504 # and sets the high bit in the cache file unless we assign to the vars.
2505 (set) 2>&1 |
2506 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2507 *ac_space=\ *)
2508 # `set' does not quote correctly, so add quotes (double-quote substitution
2509 # turns \\\\ into \\, and sed turns \\ into \).
2510 sed -n \
2511 -e "s/'/'\\\\''/g" \
2512 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2515 # `set' quotes correctly as required by POSIX, so do not add quotes.
2516 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2518 esac >> confcache
2519 if cmp -s $cache_file confcache; then
2521 else
2522 if test -w $cache_file; then
2523 echo "updating cache $cache_file"
2524 cat confcache > $cache_file
2525 else
2526 echo "not updating unwritable cache $cache_file"
2529 rm -f confcache
2532 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2533 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2534 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2535 DLLTOOL="$DLLTOOL" AS="$AS" \
2536 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2537 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2538 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2540 # Reload cache, that may have been modified by ltconfig
2541 if test -r "$cache_file"; then
2542 echo "loading cache $cache_file"
2543 . $cache_file
2544 else
2545 echo "creating cache $cache_file"
2546 > $cache_file
2550 # This can be used to rebuild libtool when needed
2551 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2553 # Always use our own libtool.
2554 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2556 # Redirect the config.log output again, so that the ltconfig log is not
2557 # clobbered by the next message.
2558 exec 5>>./config.log
2561 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2562 COMPPATH=.
2563 else
2564 COMPPATH=..
2570 if test -d $srcdir/testsuite; then
2571 TESTSUBDIR_TRUE=
2572 TESTSUBDIR_FALSE='#'
2573 else
2574 TESTSUBDIR_TRUE='#'
2575 TESTSUBDIR_FALSE=
2578 # Check whether --enable-fast-character or --disable-fast-character was given.
2579 if test "${enable_fast_character+set}" = set; then
2580 enableval="$enable_fast_character"
2581 # Nothing
2583 else
2584 cat >> confdefs.h <<\EOF
2585 #define COMPACT_CHARACTER 1
2591 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2592 if test "${enable_libgcj_debug+set}" = set; then
2593 enableval="$enable_libgcj_debug"
2594 if test "$enable_libgcj_debug" = yes; then
2595 cat >> confdefs.h <<\EOF
2596 #define DEBUG 1
2603 TARGET_ECOS="no"
2604 # Check whether --with-ecos or --without-ecos was given.
2605 if test "${with_ecos+set}" = set; then
2606 withval="$with_ecos"
2607 TARGET_ECOS="$with_ecos"
2612 case "$TARGET_ECOS" in
2614 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2615 PROCESS=Posix
2618 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2619 PROCESS=Ecos
2620 cat >> confdefs.h <<\EOF
2621 #define ECOS 1
2625 esac
2627 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2628 echo "configure:2629: checking how to run the C preprocessor" >&5
2629 # On Suns, sometimes $CPP names a directory.
2630 if test -n "$CPP" && test -d "$CPP"; then
2631 CPP=
2633 if test -z "$CPP"; then
2634 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2636 else
2637 # This must be in double quotes, not single quotes, because CPP may get
2638 # substituted into the Makefile and "${CC-cc}" will confuse make.
2639 CPP="${CC-cc} -E"
2640 # On the NeXT, cc -E runs the code through the compiler's parser,
2641 # not just through cpp.
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 #include <assert.h>
2646 Syntax Error
2648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2649 { (eval echo configure:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2651 if test -z "$ac_err"; then
2653 else
2654 echo "$ac_err" >&5
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2657 rm -rf conftest*
2658 CPP="${CC-cc} -E -traditional-cpp"
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <assert.h>
2663 Syntax Error
2665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2666 { (eval echo configure:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2668 if test -z "$ac_err"; then
2670 else
2671 echo "$ac_err" >&5
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 rm -rf conftest*
2675 CPP="${CC-cc} -nologo -E"
2676 cat > conftest.$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2679 #include <assert.h>
2680 Syntax Error
2682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2685 if test -z "$ac_err"; then
2687 else
2688 echo "$ac_err" >&5
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2691 rm -rf conftest*
2692 CPP=/lib/cpp
2694 rm -f conftest*
2696 rm -f conftest*
2698 rm -f conftest*
2699 ac_cv_prog_CPP="$CPP"
2701 CPP="$ac_cv_prog_CPP"
2702 else
2703 ac_cv_prog_CPP="$CPP"
2705 echo "$ac_t""$CPP" 1>&6
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 #include <sys/types.h>
2712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2713 egrep "__uint32_t" >/dev/null 2>&1; then
2714 rm -rf conftest*
2715 cat >> confdefs.h <<\EOF
2716 #define HAVE_INT32_DEFINED 1
2720 rm -f conftest*
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 #include <sys/config.h>
2727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2728 egrep "__uint32_t" >/dev/null 2>&1; then
2729 rm -rf conftest*
2730 cat >> confdefs.h <<\EOF
2731 #define HAVE_INT32_DEFINED 1
2735 rm -f conftest*
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <time.h>
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744 egrep "mktime" >/dev/null 2>&1; then
2745 rm -rf conftest*
2746 cat >> confdefs.h <<\EOF
2747 #define HAVE_MKTIME 1
2751 rm -f conftest*
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 #include <time.h>
2758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2759 egrep "localtime" >/dev/null 2>&1; then
2760 rm -rf conftest*
2761 cat >> confdefs.h <<\EOF
2762 #define HAVE_LOCALTIME 1
2766 rm -f conftest*
2769 test -d java || mkdir java
2770 test -d java/io || mkdir java/io
2773 test -d java/lang || mkdir java/lang
2777 SYSTEMSPEC=
2780 # Check whether --with-system-zlib or --without-system-zlib was given.
2781 if test "${with_system_zlib+set}" = set; then
2782 withval="$with_system_zlib"
2786 ZLIBSPEC=
2789 libsubdir=.libs
2791 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2792 echo "configure:2793: checking for garbage collector to use" >&5
2793 # Check whether --enable-java-gc or --disable-java-gc was given.
2794 if test "${enable_java_gc+set}" = set; then
2795 enableval="$enable_java_gc"
2797 GC=$enableval
2798 else
2799 GC=boehm
2802 GCLIBS=
2803 GCINCS=
2804 GCDEPS=
2805 GCOBJS=
2806 GCSPEC=
2807 case "$GC" in
2808 boehm)
2809 echo "$ac_t""boehm" 1>&6
2810 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2811 # We include the path to the boehm-gc build directory.
2812 # See Makefile.am to understand why.
2813 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2814 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2815 GCSPEC='-lgcjgc'
2816 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2817 GCOBJS=boehm.lo
2818 GCHDR=boehm-gc.h
2819 cat >> confdefs.h <<\EOF
2820 #define HAVE_BOEHM_GC 1
2825 echo "$ac_t""none" 1>&6
2826 GCOBJS=nogc.lo
2827 GCHDR=no-gc.h
2830 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2832 esac
2841 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2842 echo "configure:2843: checking for threads package to use" >&5
2843 # Check whether --enable-threads or --disable-threads was given.
2844 if test "${enable_threads+set}" = set; then
2845 enableval="$enable_threads"
2846 THREADS=$enableval
2847 else
2848 THREADS=no
2852 if test "$THREADS" = yes; then
2853 case "$host" in
2854 *-*-vxworks*)
2855 THREADS=vxworks
2857 *-*-linux*)
2858 # FIXME: this isn't correct in all cases.
2859 THREADS=posix
2861 *-*-win*)
2862 THREADS=win32
2864 *-*-irix*)
2865 # FIXME: for now, choose POSIX, because we implement that.
2866 # Later, choose irix threads.
2867 THREADS=posix
2869 *-*-solaris*)
2870 # FIXME: for now, choose POSIX, because we implement that.
2871 # Later, choose solaris threads.
2872 THREADS=posix
2875 # For now.
2876 THREADS=none
2878 esac
2881 case "$THREADS" in
2882 no | none | single)
2883 THREADS=none
2885 posix | pthreads)
2886 THREADS=posix
2887 case "$host" in
2888 *-*-linux*)
2889 cat >> confdefs.h <<\EOF
2890 #define LINUX_THREADS 1
2894 esac
2898 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2899 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2902 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2904 esac
2905 echo "$ac_t""$THREADS" 1>&6
2907 THREADLIBS=
2908 THREADINCS=
2909 THREADDEPS=
2910 THREADOBJS=
2911 THREADH=
2912 THREADSPEC=
2913 case "$THREADS" in
2914 posix)
2915 THREADLIBS=-lpthread
2916 THREADSPEC=-lpthread
2917 THREADOBJS=posix-threads.lo
2918 THREADH=posix-threads.h
2919 # MIT pthreads doesn't seem to have the mutexattr functions.
2920 # But for now we don't check for it. We just assume you aren't
2921 # using MIT pthreads.
2922 cat >> confdefs.h <<\EOF
2923 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2929 THREADDEPS='$(top_builddir)/../qthreads/libgcjcoop.la'
2930 # We include the path to the qthreads build directory.
2931 # See Makefile.am to understand why.
2932 THREADLIBS="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2933 THREADSPEC='-lgcjcoop'
2934 THREADOBJS=quick-threads.lo
2935 THREADINCS='-I$(top_srcdir)/../qthreads'
2936 THREADH=quick-threads.h
2939 none)
2940 THREADOBJS=no-threads.lo
2941 THREADH=no-threads.h
2943 esac
2953 if test "$GCC" = yes; then
2954 USING_GCC_TRUE=
2955 USING_GCC_FALSE='#'
2956 else
2957 USING_GCC_TRUE='#'
2958 USING_GCC_FALSE=
2961 CANADIAN=no
2962 NULL_TARGET=no
2964 # Find eh-common.h and support headers. If we're in the tree with
2965 # gcc, then look there. Otherwise look in compat-include. If all else
2966 # fails, just hope the user has set things up somehow.
2967 if test -r $srcdir/../gcc/eh-common.h; then
2968 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2969 else
2970 if test -d $srcdir/../compat-include; then
2971 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2972 else
2973 EH_COMMON_INCLUDE=
2977 if test -n "${with_cross_host}"; then
2978 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2979 # may not work correctly, because the compiler may not be able to
2980 # link executables.
2982 # We assume newlib. This lets us hard-code the functions we know
2983 # we'll have.
2984 cat >> confdefs.h <<\EOF
2985 #define HAVE_MEMMOVE 1
2988 cat >> confdefs.h <<\EOF
2989 #define HAVE_MEMCPY 1
2992 cat >> confdefs.h <<\EOF
2993 #define HAVE_STRERROR 1
2996 cat >> confdefs.h <<\EOF
2997 #define HAVE_CTIME_R 1
3000 cat >> confdefs.h <<\EOF
3001 #define HAVE_GMTIME_R 1
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_LOCALTIME_R 1
3008 cat >> confdefs.h <<\EOF
3009 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3012 cat >> confdefs.h <<\EOF
3013 #define HAVE_ALLOCA 1
3017 ZLIBSPEC=-lgcj
3019 # If Canadian cross, then don't pick up tools from the build
3020 # directory.
3021 if test "$build" != "$with_cross_host"; then
3022 CANADIAN=yes
3023 EH_COMMON_INCLUDE=
3024 GCJ="${target_alias}/gcj"
3025 else
3026 GCJ=
3028 else
3029 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3030 # E.g., Solaris.
3031 for ac_func in strerror ioctl select open fsync sleep
3033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3034 echo "configure:3035: checking for $ac_func" >&5
3035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3037 else
3038 cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 /* System header to define __stub macros and hopefully few prototypes,
3042 which can conflict with char $ac_func(); below. */
3043 #include <assert.h>
3044 /* Override any gcc2 internal prototype to avoid an error. */
3045 /* We use char because int might match the return type of a gcc2
3046 builtin and then its argument prototype would still apply. */
3047 char $ac_func();
3049 int main() {
3051 /* The GNU C library defines this for functions which it implements
3052 to always fail with ENOSYS. Some functions are actually named
3053 something starting with __ and the normal name is an alias. */
3054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3055 choke me
3056 #else
3057 $ac_func();
3058 #endif
3060 ; return 0; }
3062 if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3063 rm -rf conftest*
3064 eval "ac_cv_func_$ac_func=yes"
3065 else
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3068 rm -rf conftest*
3069 eval "ac_cv_func_$ac_func=no"
3071 rm -f conftest*
3074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3077 cat >> confdefs.h <<EOF
3078 #define $ac_tr_func 1
3081 else
3082 echo "$ac_t""no" 1>&6
3084 done
3086 for ac_func in ctime_r ctime
3088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_func" >&5
3090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3092 else
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 /* System header to define __stub macros and hopefully few prototypes,
3097 which can conflict with char $ac_func(); below. */
3098 #include <assert.h>
3099 /* Override any gcc2 internal prototype to avoid an error. */
3100 /* We use char because int might match the return type of a gcc2
3101 builtin and then its argument prototype would still apply. */
3102 char $ac_func();
3104 int main() {
3106 /* The GNU C library defines this for functions which it implements
3107 to always fail with ENOSYS. Some functions are actually named
3108 something starting with __ and the normal name is an alias. */
3109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3110 choke me
3111 #else
3112 $ac_func();
3113 #endif
3115 ; return 0; }
3117 if { (eval echo configure:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3118 rm -rf conftest*
3119 eval "ac_cv_func_$ac_func=yes"
3120 else
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3123 rm -rf conftest*
3124 eval "ac_cv_func_$ac_func=no"
3126 rm -f conftest*
3129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3132 cat >> confdefs.h <<EOF
3133 #define $ac_tr_func 1
3135 break
3136 else
3137 echo "$ac_t""no" 1>&6
3139 done
3141 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
3143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_func" >&5
3145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3147 else
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 /* System header to define __stub macros and hopefully few prototypes,
3152 which can conflict with char $ac_func(); below. */
3153 #include <assert.h>
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 /* We use char because int might match the return type of a gcc2
3156 builtin and then its argument prototype would still apply. */
3157 char $ac_func();
3159 int main() {
3161 /* The GNU C library defines this for functions which it implements
3162 to always fail with ENOSYS. Some functions are actually named
3163 something starting with __ and the normal name is an alias. */
3164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3165 choke me
3166 #else
3167 $ac_func();
3168 #endif
3170 ; return 0; }
3172 if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3173 rm -rf conftest*
3174 eval "ac_cv_func_$ac_func=yes"
3175 else
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3178 rm -rf conftest*
3179 eval "ac_cv_func_$ac_func=no"
3181 rm -f conftest*
3184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3187 cat >> confdefs.h <<EOF
3188 #define $ac_tr_func 1
3191 else
3192 echo "$ac_t""no" 1>&6
3194 done
3196 for ac_func in access stat mkdir rename rmdir unlink realpath
3198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_func" >&5
3200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3202 else
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 /* System header to define __stub macros and hopefully few prototypes,
3207 which can conflict with char $ac_func(); below. */
3208 #include <assert.h>
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3212 char $ac_func();
3214 int main() {
3216 /* The GNU C library defines this for functions which it implements
3217 to always fail with ENOSYS. Some functions are actually named
3218 something starting with __ and the normal name is an alias. */
3219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3220 choke me
3221 #else
3222 $ac_func();
3223 #endif
3225 ; return 0; }
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 rm -rf conftest*
3229 eval "ac_cv_func_$ac_func=yes"
3230 else
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3233 rm -rf conftest*
3234 eval "ac_cv_func_$ac_func=no"
3236 rm -f conftest*
3239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3240 echo "$ac_t""yes" 1>&6
3241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3242 cat >> confdefs.h <<EOF
3243 #define $ac_tr_func 1
3246 else
3247 echo "$ac_t""no" 1>&6
3249 done
3251 for ac_func in inet_aton inet_addr
3253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_func" >&5
3255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3257 else
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* System header to define __stub macros and hopefully few prototypes,
3262 which can conflict with char $ac_func(); below. */
3263 #include <assert.h>
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3267 char $ac_func();
3269 int main() {
3271 /* The GNU C library defines this for functions which it implements
3272 to always fail with ENOSYS. Some functions are actually named
3273 something starting with __ and the normal name is an alias. */
3274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3275 choke me
3276 #else
3277 $ac_func();
3278 #endif
3280 ; return 0; }
3282 if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3283 rm -rf conftest*
3284 eval "ac_cv_func_$ac_func=yes"
3285 else
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 rm -rf conftest*
3289 eval "ac_cv_func_$ac_func=no"
3291 rm -f conftest*
3294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3295 echo "$ac_t""yes" 1>&6
3296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3297 cat >> confdefs.h <<EOF
3298 #define $ac_tr_func 1
3300 break
3301 else
3302 echo "$ac_t""no" 1>&6
3304 done
3306 for ac_func in inet_pton uname
3308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3309 echo "configure:3310: checking for $ac_func" >&5
3310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3312 else
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 /* System header to define __stub macros and hopefully few prototypes,
3317 which can conflict with char $ac_func(); below. */
3318 #include <assert.h>
3319 /* Override any gcc2 internal prototype to avoid an error. */
3320 /* We use char because int might match the return type of a gcc2
3321 builtin and then its argument prototype would still apply. */
3322 char $ac_func();
3324 int main() {
3326 /* The GNU C library defines this for functions which it implements
3327 to always fail with ENOSYS. Some functions are actually named
3328 something starting with __ and the normal name is an alias. */
3329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3330 choke me
3331 #else
3332 $ac_func();
3333 #endif
3335 ; return 0; }
3337 if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3338 rm -rf conftest*
3339 eval "ac_cv_func_$ac_func=yes"
3340 else
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3343 rm -rf conftest*
3344 eval "ac_cv_func_$ac_func=no"
3346 rm -f conftest*
3349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3350 echo "$ac_t""yes" 1>&6
3351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3352 cat >> confdefs.h <<EOF
3353 #define $ac_tr_func 1
3356 else
3357 echo "$ac_t""no" 1>&6
3359 done
3362 for ac_func in gethostbyname_r
3364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3365 echo "configure:3366: checking for $ac_func" >&5
3366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3368 else
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 /* System header to define __stub macros and hopefully few prototypes,
3373 which can conflict with char $ac_func(); below. */
3374 #include <assert.h>
3375 /* Override any gcc2 internal prototype to avoid an error. */
3376 /* We use char because int might match the return type of a gcc2
3377 builtin and then its argument prototype would still apply. */
3378 char $ac_func();
3380 int main() {
3382 /* The GNU C library defines this for functions which it implements
3383 to always fail with ENOSYS. Some functions are actually named
3384 something starting with __ and the normal name is an alias. */
3385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3386 choke me
3387 #else
3388 $ac_func();
3389 #endif
3391 ; return 0; }
3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394 rm -rf conftest*
3395 eval "ac_cv_func_$ac_func=yes"
3396 else
3397 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3399 rm -rf conftest*
3400 eval "ac_cv_func_$ac_func=no"
3402 rm -f conftest*
3405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3406 echo "$ac_t""yes" 1>&6
3407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3408 cat >> confdefs.h <<EOF
3409 #define $ac_tr_func 1
3412 cat >> confdefs.h <<\EOF
3413 #define HAVE_GETHOSTBYNAME_R 1
3416 # There are two different kinds of gethostbyname_r.
3417 # We look for the one that returns `int'.
3418 # Hopefully this check is robust enough.
3419 cat > conftest.$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 #include <netdb.h>
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3426 rm -rf conftest*
3428 cat >> confdefs.h <<\EOF
3429 #define GETHOSTBYNAME_R_RETURNS_INT 1
3433 rm -f conftest*
3435 else
3436 echo "$ac_t""no" 1>&6
3438 done
3441 for ac_func in gethostbyaddr_r
3443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3444 echo "configure:3445: checking for $ac_func" >&5
3445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3447 else
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 /* System header to define __stub macros and hopefully few prototypes,
3452 which can conflict with char $ac_func(); below. */
3453 #include <assert.h>
3454 /* Override any gcc2 internal prototype to avoid an error. */
3455 /* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
3457 char $ac_func();
3459 int main() {
3461 /* The GNU C library defines this for functions which it implements
3462 to always fail with ENOSYS. Some functions are actually named
3463 something starting with __ and the normal name is an alias. */
3464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3465 choke me
3466 #else
3467 $ac_func();
3468 #endif
3470 ; return 0; }
3472 if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3473 rm -rf conftest*
3474 eval "ac_cv_func_$ac_func=yes"
3475 else
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3478 rm -rf conftest*
3479 eval "ac_cv_func_$ac_func=no"
3481 rm -f conftest*
3484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3485 echo "$ac_t""yes" 1>&6
3486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3487 cat >> confdefs.h <<EOF
3488 #define $ac_tr_func 1
3491 cat >> confdefs.h <<\EOF
3492 #define HAVE_GETHOSTBYADDR_R 1
3495 # There are two different kinds of gethostbyaddr_r.
3496 # We look for the one that returns `int'.
3497 # Hopefully this check is robust enough.
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <netdb.h>
3503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3504 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3505 rm -rf conftest*
3507 cat >> confdefs.h <<\EOF
3508 #define GETHOSTBYADDR_R_RETURNS_INT 1
3512 rm -f conftest*
3514 else
3515 echo "$ac_t""no" 1>&6
3517 done
3520 for ac_func in gethostname
3522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_func" >&5
3524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3526 else
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* System header to define __stub macros and hopefully few prototypes,
3531 which can conflict with char $ac_func(); below. */
3532 #include <assert.h>
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3536 char $ac_func();
3538 int main() {
3540 /* The GNU C library defines this for functions which it implements
3541 to always fail with ENOSYS. Some functions are actually named
3542 something starting with __ and the normal name is an alias. */
3543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3544 choke me
3545 #else
3546 $ac_func();
3547 #endif
3549 ; return 0; }
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3552 rm -rf conftest*
3553 eval "ac_cv_func_$ac_func=yes"
3554 else
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3557 rm -rf conftest*
3558 eval "ac_cv_func_$ac_func=no"
3560 rm -f conftest*
3563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3566 cat >> confdefs.h <<EOF
3567 #define $ac_tr_func 1
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_GETHOSTNAME 1
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 #include <unistd.h>
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 egrep "gethostname" >/dev/null 2>&1; then
3581 rm -rf conftest*
3583 cat >> confdefs.h <<\EOF
3584 #define HAVE_GETHOSTNAME_DECL 1
3588 rm -f conftest*
3590 else
3591 echo "$ac_t""no" 1>&6
3593 done
3596 # Look for these functions in the thread library.
3597 save_LIBS="$LIBS"
3598 LIBS="$LIBS $THREADLIBS"
3599 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np sched_yield
3601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3602 echo "configure:3603: checking for $ac_func" >&5
3603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3605 else
3606 cat > conftest.$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3609 /* System header to define __stub macros and hopefully few prototypes,
3610 which can conflict with char $ac_func(); below. */
3611 #include <assert.h>
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3615 char $ac_func();
3617 int main() {
3619 /* The GNU C library defines this for functions which it implements
3620 to always fail with ENOSYS. Some functions are actually named
3621 something starting with __ and the normal name is an alias. */
3622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3623 choke me
3624 #else
3625 $ac_func();
3626 #endif
3628 ; return 0; }
3630 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 rm -rf conftest*
3632 eval "ac_cv_func_$ac_func=yes"
3633 else
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 rm -rf conftest*
3637 eval "ac_cv_func_$ac_func=no"
3639 rm -f conftest*
3642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3643 echo "$ac_t""yes" 1>&6
3644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3645 cat >> confdefs.h <<EOF
3646 #define $ac_tr_func 1
3649 else
3650 echo "$ac_t""no" 1>&6
3652 done
3654 # Look for sched_yield. Sometimes it is in the posix4 library.
3655 for ac_func in sched_yield
3657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3658 echo "configure:3659: checking for $ac_func" >&5
3659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3661 else
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 /* System header to define __stub macros and hopefully few prototypes,
3666 which can conflict with char $ac_func(); below. */
3667 #include <assert.h>
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3671 char $ac_func();
3673 int main() {
3675 /* The GNU C library defines this for functions which it implements
3676 to always fail with ENOSYS. Some functions are actually named
3677 something starting with __ and the normal name is an alias. */
3678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3679 choke me
3680 #else
3681 $ac_func();
3682 #endif
3684 ; return 0; }
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3687 rm -rf conftest*
3688 eval "ac_cv_func_$ac_func=yes"
3689 else
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3692 rm -rf conftest*
3693 eval "ac_cv_func_$ac_func=no"
3695 rm -f conftest*
3698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3701 cat >> confdefs.h <<EOF
3702 #define $ac_tr_func 1
3705 else
3706 echo "$ac_t""no" 1>&6
3707 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3708 echo "configure:3709: checking for sched_yield in -lposix4" >&5
3709 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3712 else
3713 ac_save_LIBS="$LIBS"
3714 LIBS="-lposix4 $LIBS"
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3721 char sched_yield();
3723 int main() {
3724 sched_yield()
3725 ; return 0; }
3727 if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3728 rm -rf conftest*
3729 eval "ac_cv_lib_$ac_lib_var=yes"
3730 else
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 rm -rf conftest*
3734 eval "ac_cv_lib_$ac_lib_var=no"
3736 rm -f conftest*
3737 LIBS="$ac_save_LIBS"
3740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3741 echo "$ac_t""yes" 1>&6
3743 cat >> confdefs.h <<\EOF
3744 #define HAVE_SCHED_YIELD 1
3747 THREADLIBS="$THREADLIBS -lposix4"
3748 else
3749 echo "$ac_t""no" 1>&6
3753 done
3755 LIBS="$save_LIBS"
3757 # We require a way to get the time.
3758 time_found=no
3759 for ac_func in gettimeofday time ftime
3761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3762 echo "configure:3763: checking for $ac_func" >&5
3763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3765 else
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 /* System header to define __stub macros and hopefully few prototypes,
3770 which can conflict with char $ac_func(); below. */
3771 #include <assert.h>
3772 /* Override any gcc2 internal prototype to avoid an error. */
3773 /* We use char because int might match the return type of a gcc2
3774 builtin and then its argument prototype would still apply. */
3775 char $ac_func();
3777 int main() {
3779 /* The GNU C library defines this for functions which it implements
3780 to always fail with ENOSYS. Some functions are actually named
3781 something starting with __ and the normal name is an alias. */
3782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3783 choke me
3784 #else
3785 $ac_func();
3786 #endif
3788 ; return 0; }
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3791 rm -rf conftest*
3792 eval "ac_cv_func_$ac_func=yes"
3793 else
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3796 rm -rf conftest*
3797 eval "ac_cv_func_$ac_func=no"
3799 rm -f conftest*
3802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3803 echo "$ac_t""yes" 1>&6
3804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3805 cat >> confdefs.h <<EOF
3806 #define $ac_tr_func 1
3808 time_found=yes
3809 else
3810 echo "$ac_t""no" 1>&6
3812 done
3814 if test "$time_found" = no; then
3815 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3818 # We require memmove.
3819 memmove_found=no
3820 for ac_func in memmove
3822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3823 echo "configure:3824: checking for $ac_func" >&5
3824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3826 else
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3830 /* System header to define __stub macros and hopefully few prototypes,
3831 which can conflict with char $ac_func(); below. */
3832 #include <assert.h>
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char $ac_func();
3838 int main() {
3840 /* The GNU C library defines this for functions which it implements
3841 to always fail with ENOSYS. Some functions are actually named
3842 something starting with __ and the normal name is an alias. */
3843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3844 choke me
3845 #else
3846 $ac_func();
3847 #endif
3849 ; return 0; }
3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 rm -rf conftest*
3853 eval "ac_cv_func_$ac_func=yes"
3854 else
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3857 rm -rf conftest*
3858 eval "ac_cv_func_$ac_func=no"
3860 rm -f conftest*
3863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3864 echo "$ac_t""yes" 1>&6
3865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3866 cat >> confdefs.h <<EOF
3867 #define $ac_tr_func 1
3869 memmove_found=yes
3870 else
3871 echo "$ac_t""no" 1>&6
3873 done
3875 if test "$memmove_found" = no; then
3876 { echo "configure: error: memmove is required" 1>&2; exit 1; }
3879 # We require memcpy.
3880 memcpy_found=no
3881 for ac_func in memcpy
3883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3884 echo "configure:3885: checking for $ac_func" >&5
3885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3887 else
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 /* System header to define __stub macros and hopefully few prototypes,
3892 which can conflict with char $ac_func(); below. */
3893 #include <assert.h>
3894 /* Override any gcc2 internal prototype to avoid an error. */
3895 /* We use char because int might match the return type of a gcc2
3896 builtin and then its argument prototype would still apply. */
3897 char $ac_func();
3899 int main() {
3901 /* The GNU C library defines this for functions which it implements
3902 to always fail with ENOSYS. Some functions are actually named
3903 something starting with __ and the normal name is an alias. */
3904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3905 choke me
3906 #else
3907 $ac_func();
3908 #endif
3910 ; return 0; }
3912 if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3913 rm -rf conftest*
3914 eval "ac_cv_func_$ac_func=yes"
3915 else
3916 echo "configure: failed program was:" >&5
3917 cat conftest.$ac_ext >&5
3918 rm -rf conftest*
3919 eval "ac_cv_func_$ac_func=no"
3921 rm -f conftest*
3924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3927 cat >> confdefs.h <<EOF
3928 #define $ac_tr_func 1
3930 memcpy_found=yes
3931 else
3932 echo "$ac_t""no" 1>&6
3934 done
3936 if test "$memcpy_found" = no; then
3937 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3940 # Some library-finding code we stole from Tcl.
3941 #--------------------------------------------------------------------
3942 # Check for the existence of the -lsocket and -lnsl libraries.
3943 # The order here is important, so that they end up in the right
3944 # order in the command line generated by make. Here are some
3945 # special considerations:
3946 # 1. Use "connect" and "accept" to check for -lsocket, and
3947 # "gethostbyname" to check for -lnsl.
3948 # 2. Use each function name only once: can't redo a check because
3949 # autoconf caches the results of the last check and won't redo it.
3950 # 3. Use -lnsl and -lsocket only if they supply procedures that
3951 # aren't already present in the normal libraries. This is because
3952 # IRIX 5.2 has libraries, but they aren't needed and they're
3953 # bogus: they goof up name resolution if used.
3954 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3955 # To get around this problem, check for both libraries together
3956 # if -lsocket doesn't work by itself.
3957 #--------------------------------------------------------------------
3959 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3960 echo "configure:3961: checking for socket libraries" >&5
3961 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3963 else
3964 gcj_cv_lib_sockets=
3965 gcj_checkBoth=0
3966 unset ac_cv_func_connect
3967 echo $ac_n "checking for connect""... $ac_c" 1>&6
3968 echo "configure:3969: checking for connect" >&5
3969 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3971 else
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* System header to define __stub macros and hopefully few prototypes,
3976 which can conflict with char connect(); below. */
3977 #include <assert.h>
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 /* We use char because int might match the return type of a gcc2
3980 builtin and then its argument prototype would still apply. */
3981 char connect();
3983 int main() {
3985 /* The GNU C library defines this for functions which it implements
3986 to always fail with ENOSYS. Some functions are actually named
3987 something starting with __ and the normal name is an alias. */
3988 #if defined (__stub_connect) || defined (__stub___connect)
3989 choke me
3990 #else
3991 connect();
3992 #endif
3994 ; return 0; }
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 eval "ac_cv_func_connect=yes"
3999 else
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4002 rm -rf conftest*
4003 eval "ac_cv_func_connect=no"
4005 rm -f conftest*
4008 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4009 echo "$ac_t""yes" 1>&6
4010 gcj_checkSocket=0
4011 else
4012 echo "$ac_t""no" 1>&6
4013 gcj_checkSocket=1
4016 if test "$gcj_checkSocket" = 1; then
4017 unset ac_cv_func_connect
4018 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4019 echo "configure:4020: checking for main in -lsocket" >&5
4020 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4023 else
4024 ac_save_LIBS="$LIBS"
4025 LIBS="-lsocket $LIBS"
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4030 int main() {
4031 main()
4032 ; return 0; }
4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4035 rm -rf conftest*
4036 eval "ac_cv_lib_$ac_lib_var=yes"
4037 else
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 rm -rf conftest*
4041 eval "ac_cv_lib_$ac_lib_var=no"
4043 rm -f conftest*
4044 LIBS="$ac_save_LIBS"
4047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4048 echo "$ac_t""yes" 1>&6
4049 gcj_cv_lib_sockets="-lsocket"
4050 else
4051 echo "$ac_t""no" 1>&6
4052 gcj_checkBoth=1
4056 if test "$gcj_checkBoth" = 1; then
4057 gcj_oldLibs=$LIBS
4058 LIBS="$LIBS -lsocket -lnsl"
4059 unset ac_cv_func_accept
4060 echo $ac_n "checking for accept""... $ac_c" 1>&6
4061 echo "configure:4062: checking for accept" >&5
4062 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4064 else
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 /* System header to define __stub macros and hopefully few prototypes,
4069 which can conflict with char accept(); below. */
4070 #include <assert.h>
4071 /* Override any gcc2 internal prototype to avoid an error. */
4072 /* We use char because int might match the return type of a gcc2
4073 builtin and then its argument prototype would still apply. */
4074 char accept();
4076 int main() {
4078 /* The GNU C library defines this for functions which it implements
4079 to always fail with ENOSYS. Some functions are actually named
4080 something starting with __ and the normal name is an alias. */
4081 #if defined (__stub_accept) || defined (__stub___accept)
4082 choke me
4083 #else
4084 accept();
4085 #endif
4087 ; return 0; }
4089 if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 rm -rf conftest*
4091 eval "ac_cv_func_accept=yes"
4092 else
4093 echo "configure: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4095 rm -rf conftest*
4096 eval "ac_cv_func_accept=no"
4098 rm -f conftest*
4101 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4103 gcj_checkNsl=0
4104 gcj_cv_lib_sockets="-lsocket -lnsl"
4105 else
4106 echo "$ac_t""no" 1>&6
4109 unset ac_cv_func_accept
4110 LIBS=$gcj_oldLibs
4112 unset ac_cv_func_gethostbyname
4113 gcj_oldLibs=$LIBS
4114 LIBS="$LIBS $gcj_cv_lib_sockets"
4115 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4116 echo "configure:4117: checking for gethostbyname" >&5
4117 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4119 else
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4123 /* System header to define __stub macros and hopefully few prototypes,
4124 which can conflict with char gethostbyname(); below. */
4125 #include <assert.h>
4126 /* Override any gcc2 internal prototype to avoid an error. */
4127 /* We use char because int might match the return type of a gcc2
4128 builtin and then its argument prototype would still apply. */
4129 char gethostbyname();
4131 int main() {
4133 /* The GNU C library defines this for functions which it implements
4134 to always fail with ENOSYS. Some functions are actually named
4135 something starting with __ and the normal name is an alias. */
4136 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4137 choke me
4138 #else
4139 gethostbyname();
4140 #endif
4142 ; return 0; }
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4145 rm -rf conftest*
4146 eval "ac_cv_func_gethostbyname=yes"
4147 else
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4150 rm -rf conftest*
4151 eval "ac_cv_func_gethostbyname=no"
4153 rm -f conftest*
4156 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4159 else
4160 echo "$ac_t""no" 1>&6
4161 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4162 echo "configure:4163: checking for main in -lnsl" >&5
4163 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4165 echo $ac_n "(cached) $ac_c" 1>&6
4166 else
4167 ac_save_LIBS="$LIBS"
4168 LIBS="-lnsl $LIBS"
4169 cat > conftest.$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4173 int main() {
4174 main()
4175 ; return 0; }
4177 if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4178 rm -rf conftest*
4179 eval "ac_cv_lib_$ac_lib_var=yes"
4180 else
4181 echo "configure: failed program was:" >&5
4182 cat conftest.$ac_ext >&5
4183 rm -rf conftest*
4184 eval "ac_cv_lib_$ac_lib_var=no"
4186 rm -f conftest*
4187 LIBS="$ac_save_LIBS"
4190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4191 echo "$ac_t""yes" 1>&6
4192 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4193 else
4194 echo "$ac_t""no" 1>&6
4199 unset ac_cv_func_gethostbyname
4200 LIBS=$gcj_oldLIBS
4204 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4205 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4207 if test "$with_system_zlib" = yes; then
4208 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4209 echo "configure:4210: checking for deflate in -lz" >&5
4210 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4213 else
4214 ac_save_LIBS="$LIBS"
4215 LIBS="-lz $LIBS"
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char deflate();
4224 int main() {
4225 deflate()
4226 ; return 0; }
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4229 rm -rf conftest*
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4231 else
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 rm -rf conftest*
4235 eval "ac_cv_lib_$ac_lib_var=no"
4237 rm -f conftest*
4238 LIBS="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ZLIBSPEC=-lz
4244 else
4245 echo "$ac_t""no" 1>&6
4246 ZLIBSPEC=-lzgcj
4249 else
4250 ZLIBSPEC=-lzgcj
4253 # On Solaris, and maybe other architectures, the Boehm collector
4254 # requires -ldl.
4255 if test "$GC" = boehm; then
4256 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4257 echo "configure:4258: checking for main in -ldl" >&5
4258 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262 ac_save_LIBS="$LIBS"
4263 LIBS="-ldl $LIBS"
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4268 int main() {
4269 main()
4270 ; return 0; }
4272 if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4273 rm -rf conftest*
4274 eval "ac_cv_lib_$ac_lib_var=yes"
4275 else
4276 echo "configure: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4278 rm -rf conftest*
4279 eval "ac_cv_lib_$ac_lib_var=no"
4281 rm -f conftest*
4282 LIBS="$ac_save_LIBS"
4285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4288 else
4289 echo "$ac_t""no" 1>&6
4294 if test -d "$libgcj_basedir/../gcc/java"; then
4295 GCJ=
4296 else
4297 CANADIAN=yes
4298 NULL_TARGET=yes
4299 GCJ=gcj
4303 ZLIBS=
4304 ZDEPS=
4305 ZINCS=
4306 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4307 # We include the path to the zlib build directory.
4308 # See Makefile.am to understand why.
4309 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4310 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4311 ZINCS='-I$(top_srcdir)/../zlib'
4312 else
4313 ZLIBS="$ZLIBSPEC"
4321 if test "$CANADIAN" = yes; then
4322 CANADIAN_TRUE=
4323 CANADIAN_FALSE='#'
4324 else
4325 CANADIAN_TRUE='#'
4326 CANADIAN_FALSE=
4330 if test "$NULL_TARGET" = yes; then
4331 NULL_TARGET_TRUE=
4332 NULL_TARGET_FALSE='#'
4333 else
4334 NULL_TARGET_TRUE='#'
4335 NULL_TARGET_FALSE=
4339 if test "$CANADIAN" = no || test "$NULL_TARGET" = yes; then
4340 NATIVE_TRUE=
4341 NATIVE_FALSE='#'
4342 else
4343 NATIVE_TRUE='#'
4344 NATIVE_FALSE=
4348 # Determine gcj version number.
4349 if test "$GCJ" = ""; then
4350 if test -z "${with_multisubdir}"; then
4351 builddotdot=.
4352 else
4353 builddotdot=`echo ${with_multisubdir} | sed -e 's:^/^/*:..:g'`
4355 dir="`cd ${builddotdot}/../../gcc && pwd`"
4356 GCJ="$dir/gcj -B$dir/"
4359 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4361 cat >> confdefs.h <<EOF
4362 #define GCJVERSION "$gcjvers"
4368 for ac_hdr in unistd.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
4370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4372 echo "configure:4373: checking for $ac_hdr" >&5
4373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4375 else
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 #include <$ac_hdr>
4381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4382 { (eval echo configure:4383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4384 if test -z "$ac_err"; then
4385 rm -rf conftest*
4386 eval "ac_cv_header_$ac_safe=yes"
4387 else
4388 echo "$ac_err" >&5
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 rm -rf conftest*
4392 eval "ac_cv_header_$ac_safe=no"
4394 rm -f conftest*
4396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4399 cat >> confdefs.h <<EOF
4400 #define $ac_tr_hdr 1
4403 else
4404 echo "$ac_t""no" 1>&6
4406 done
4408 for ac_hdr in dirent.h
4410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4412 echo "configure:4413: checking for $ac_hdr" >&5
4413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4415 else
4416 cat > conftest.$ac_ext <<EOF
4417 #line 4418 "configure"
4418 #include "confdefs.h"
4419 #include <$ac_hdr>
4421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4422 { (eval echo configure:4423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4424 if test -z "$ac_err"; then
4425 rm -rf conftest*
4426 eval "ac_cv_header_$ac_safe=yes"
4427 else
4428 echo "$ac_err" >&5
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 rm -rf conftest*
4432 eval "ac_cv_header_$ac_safe=no"
4434 rm -f conftest*
4436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4439 cat >> confdefs.h <<EOF
4440 #define $ac_tr_hdr 1
4443 else
4444 echo "$ac_t""no" 1>&6
4446 done
4449 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4450 echo "configure:4451: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 #include <netinet/in.h>
4455 int main() {
4456 struct sockaddr_in6 addr6;
4457 ; return 0; }
4459 if { (eval echo configure:4460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4460 rm -rf conftest*
4461 cat >> confdefs.h <<\EOF
4462 #define HAVE_INET6 1
4465 echo "$ac_t""yes" 1>&6
4466 else
4467 echo "configure: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4469 rm -rf conftest*
4470 echo "$ac_t""no" 1>&6
4472 rm -f conftest*
4474 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4475 echo "configure:4476: checking for socklen_t in sys/socket.h" >&5
4476 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4479 #include <sys/socket.h>
4480 int main() {
4481 socklen_t x = 5;
4482 ; return 0; }
4484 if { (eval echo configure:4485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4485 rm -rf conftest*
4486 cat >> confdefs.h <<\EOF
4487 #define HAVE_SOCKLEN_T 1
4490 echo "$ac_t""yes" 1>&6
4491 else
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4494 rm -rf conftest*
4495 echo "$ac_t""no" 1>&6
4497 rm -f conftest*
4499 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4500 echo "configure:4501: checking for tm_gmtoff in struct tm" >&5
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 #include <time.h>
4505 int main() {
4506 struct tm tim; tim.tm_gmtoff = 0;
4507 ; return 0; }
4509 if { (eval echo configure:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 rm -rf conftest*
4511 cat >> confdefs.h <<\EOF
4512 #define STRUCT_TM_HAS_GMTOFF 1
4515 echo "$ac_t""yes" 1>&6
4516 else
4517 echo "configure: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4519 rm -rf conftest*
4520 echo "$ac_t""no" 1>&6
4521 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4522 echo "configure:4523: checking for global timezone variable" >&5
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 #include <time.h>
4527 int main() {
4528 long z2 = timezone;
4529 ; return 0; }
4531 if { (eval echo configure:4532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4532 rm -rf conftest*
4533 cat >> confdefs.h <<\EOF
4534 #define HAVE_TIMEZONE 1
4537 echo "$ac_t""yes" 1>&6
4538 else
4539 echo "configure: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4541 rm -rf conftest*
4542 echo "$ac_t""no" 1>&6
4544 rm -f conftest*
4546 rm -f conftest*
4548 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4549 # for constant arguments. Useless!
4550 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4551 echo "configure:4552: checking for working alloca.h" >&5
4552 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4554 else
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4558 #include <alloca.h>
4559 int main() {
4560 char *p = alloca(2 * sizeof(int));
4561 ; return 0; }
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4564 rm -rf conftest*
4565 ac_cv_header_alloca_h=yes
4566 else
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4569 rm -rf conftest*
4570 ac_cv_header_alloca_h=no
4572 rm -f conftest*
4575 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4576 if test $ac_cv_header_alloca_h = yes; then
4577 cat >> confdefs.h <<\EOF
4578 #define HAVE_ALLOCA_H 1
4583 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4584 echo "configure:4585: checking for alloca" >&5
4585 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4587 else
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4592 #ifdef __GNUC__
4593 # define alloca __builtin_alloca
4594 #else
4595 # ifdef _MSC_VER
4596 # include <malloc.h>
4597 # define alloca _alloca
4598 # else
4599 # if HAVE_ALLOCA_H
4600 # include <alloca.h>
4601 # else
4602 # ifdef _AIX
4603 #pragma alloca
4604 # else
4605 # ifndef alloca /* predefined by HP cc +Olibcalls */
4606 char *alloca ();
4607 # endif
4608 # endif
4609 # endif
4610 # endif
4611 #endif
4613 int main() {
4614 char *p = (char *) alloca(1);
4615 ; return 0; }
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4618 rm -rf conftest*
4619 ac_cv_func_alloca_works=yes
4620 else
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4623 rm -rf conftest*
4624 ac_cv_func_alloca_works=no
4626 rm -f conftest*
4629 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4630 if test $ac_cv_func_alloca_works = yes; then
4631 cat >> confdefs.h <<\EOF
4632 #define HAVE_ALLOCA 1
4637 if test $ac_cv_func_alloca_works = no; then
4638 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4639 # that cause trouble. Some versions do not even contain alloca or
4640 # contain a buggy version. If you still want to use their alloca,
4641 # use ar to extract alloca.o from them instead of compiling alloca.c.
4642 ALLOCA=alloca.${ac_objext}
4643 cat >> confdefs.h <<\EOF
4644 #define C_ALLOCA 1
4648 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4649 echo "configure:4650: checking whether alloca needs Cray hooks" >&5
4650 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4652 else
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #if defined(CRAY) && ! defined(CRAY2)
4657 webecray
4658 #else
4659 wenotbecray
4660 #endif
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 egrep "webecray" >/dev/null 2>&1; then
4665 rm -rf conftest*
4666 ac_cv_os_cray=yes
4667 else
4668 rm -rf conftest*
4669 ac_cv_os_cray=no
4671 rm -f conftest*
4675 echo "$ac_t""$ac_cv_os_cray" 1>&6
4676 if test $ac_cv_os_cray = yes; then
4677 for ac_func in _getb67 GETB67 getb67; do
4678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4679 echo "configure:4680: checking for $ac_func" >&5
4680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4682 else
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 /* System header to define __stub macros and hopefully few prototypes,
4687 which can conflict with char $ac_func(); below. */
4688 #include <assert.h>
4689 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char $ac_func();
4694 int main() {
4696 /* The GNU C library defines this for functions which it implements
4697 to always fail with ENOSYS. Some functions are actually named
4698 something starting with __ and the normal name is an alias. */
4699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4700 choke me
4701 #else
4702 $ac_func();
4703 #endif
4705 ; return 0; }
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4708 rm -rf conftest*
4709 eval "ac_cv_func_$ac_func=yes"
4710 else
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 rm -rf conftest*
4714 eval "ac_cv_func_$ac_func=no"
4716 rm -f conftest*
4719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4720 echo "$ac_t""yes" 1>&6
4721 cat >> confdefs.h <<EOF
4722 #define CRAY_STACKSEG_END $ac_func
4725 break
4726 else
4727 echo "$ac_t""no" 1>&6
4730 done
4733 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4734 echo "configure:4735: checking stack direction for C alloca" >&5
4735 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4737 else
4738 if test "$cross_compiling" = yes; then
4739 ac_cv_c_stack_direction=0
4740 else
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4744 find_stack_direction ()
4746 static char *addr = 0;
4747 auto char dummy;
4748 if (addr == 0)
4750 addr = &dummy;
4751 return find_stack_direction ();
4753 else
4754 return (&dummy > addr) ? 1 : -1;
4756 main ()
4758 exit (find_stack_direction() < 0);
4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4762 then
4763 ac_cv_c_stack_direction=1
4764 else
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4767 rm -fr conftest*
4768 ac_cv_c_stack_direction=-1
4770 rm -fr conftest*
4775 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4776 cat >> confdefs.h <<EOF
4777 #define STACK_DIRECTION $ac_cv_c_stack_direction
4783 for ac_prog in perl
4785 # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_word" >&5
4789 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792 if test -n "$PERL"; then
4793 ac_cv_prog_PERL="$PERL" # Let the user override the test.
4794 else
4795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4796 ac_dummy="$PATH"
4797 for ac_dir in $ac_dummy; do
4798 test -z "$ac_dir" && ac_dir=.
4799 if test -f $ac_dir/$ac_word; then
4800 ac_cv_prog_PERL="$ac_prog"
4801 break
4803 done
4804 IFS="$ac_save_ifs"
4807 PERL="$ac_cv_prog_PERL"
4808 if test -n "$PERL"; then
4809 echo "$ac_t""$PERL" 1>&6
4810 else
4811 echo "$ac_t""no" 1>&6
4814 test -n "$PERL" && break
4815 done
4816 test -n "$PERL" || PERL="false"
4819 case "${host}" in
4820 i?86-*-linux*)
4821 SIGNAL_HANDLER=include/i386-signal.h
4823 sparc-sun-solaris*)
4824 SIGNAL_HANDLER=include/sparc-signal.h
4827 SIGNAL_HANDLER=include/default-signal.h
4829 esac
4833 if test "${multilib}" = "yes"; then
4834 multilib_arg="--enable-multilib"
4835 else
4836 multilib_arg=
4839 here=`pwd`
4842 trap '' 1 2 15
4843 cat > confcache <<\EOF
4844 # This file is a shell script that caches the results of configure
4845 # tests run on this system so they can be shared between configure
4846 # scripts and configure runs. It is not useful on other systems.
4847 # If it contains results you don't want to keep, you may remove or edit it.
4849 # By default, configure uses ./config.cache as the cache file,
4850 # creating it if it does not exist already. You can give configure
4851 # the --cache-file=FILE option to use a different cache file; that is
4852 # what configure does when it calls configure scripts in
4853 # subdirectories, so they share the cache.
4854 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4855 # config.status only pays attention to the cache file if you give it the
4856 # --recheck option to rerun configure.
4859 # The following way of writing the cache mishandles newlines in values,
4860 # but we know of no workaround that is simple, portable, and efficient.
4861 # So, don't put newlines in cache variables' values.
4862 # Ultrix sh set writes to stderr and can't be redirected directly,
4863 # and sets the high bit in the cache file unless we assign to the vars.
4864 (set) 2>&1 |
4865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4866 *ac_space=\ *)
4867 # `set' does not quote correctly, so add quotes (double-quote substitution
4868 # turns \\\\ into \\, and sed turns \\ into \).
4869 sed -n \
4870 -e "s/'/'\\\\''/g" \
4871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4874 # `set' quotes correctly as required by POSIX, so do not add quotes.
4875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4877 esac >> confcache
4878 if cmp -s $cache_file confcache; then
4880 else
4881 if test -w $cache_file; then
4882 echo "updating cache $cache_file"
4883 cat confcache > $cache_file
4884 else
4885 echo "not updating unwritable cache $cache_file"
4888 rm -f confcache
4890 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4893 # Let make expand exec_prefix.
4894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4896 # Any assignment to VPATH causes Sun make to only execute
4897 # the first set of double-colon rules, so remove it if not needed.
4898 # If there is a colon in the path, we need to keep it.
4899 if test "x$srcdir" = x.; then
4900 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4903 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4905 DEFS=-DHAVE_CONFIG_H
4907 # Without the "./", some shells look in PATH for config.status.
4908 : ${CONFIG_STATUS=./config.status}
4910 echo creating $CONFIG_STATUS
4911 rm -f $CONFIG_STATUS
4912 cat > $CONFIG_STATUS <<EOF
4913 #! /bin/sh
4914 # Generated automatically by configure.
4915 # Run this file to recreate the current configuration.
4916 # This directory was configured as follows,
4917 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4919 # $0 $ac_configure_args
4921 # Compiler output produced by configure, useful for debugging
4922 # configure, is in ./config.log if it exists.
4924 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4925 for ac_option
4927 case "\$ac_option" in
4928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4929 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4930 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4931 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4932 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4933 exit 0 ;;
4934 -help | --help | --hel | --he | --h)
4935 echo "\$ac_cs_usage"; exit 0 ;;
4936 *) echo "\$ac_cs_usage"; exit 1 ;;
4937 esac
4938 done
4940 ac_given_srcdir=$srcdir
4941 ac_given_INSTALL="$INSTALL"
4943 trap 'rm -fr `echo "Makefile libgcj.spec testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4945 cat >> $CONFIG_STATUS <<EOF
4947 # Protect against being on the right side of a sed subst in config.status.
4948 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4949 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4950 $ac_vpsub
4951 $extrasub
4952 s%@SHELL@%$SHELL%g
4953 s%@CFLAGS@%$CFLAGS%g
4954 s%@CPPFLAGS@%$CPPFLAGS%g
4955 s%@CXXFLAGS@%$CXXFLAGS%g
4956 s%@FFLAGS@%$FFLAGS%g
4957 s%@DEFS@%$DEFS%g
4958 s%@LDFLAGS@%$LDFLAGS%g
4959 s%@LIBS@%$LIBS%g
4960 s%@exec_prefix@%$exec_prefix%g
4961 s%@prefix@%$prefix%g
4962 s%@program_transform_name@%$program_transform_name%g
4963 s%@bindir@%$bindir%g
4964 s%@sbindir@%$sbindir%g
4965 s%@libexecdir@%$libexecdir%g
4966 s%@datadir@%$datadir%g
4967 s%@sysconfdir@%$sysconfdir%g
4968 s%@sharedstatedir@%$sharedstatedir%g
4969 s%@localstatedir@%$localstatedir%g
4970 s%@libdir@%$libdir%g
4971 s%@includedir@%$includedir%g
4972 s%@oldincludedir@%$oldincludedir%g
4973 s%@infodir@%$infodir%g
4974 s%@mandir@%$mandir%g
4975 s%@host@%$host%g
4976 s%@host_alias@%$host_alias%g
4977 s%@host_cpu@%$host_cpu%g
4978 s%@host_vendor@%$host_vendor%g
4979 s%@host_os@%$host_os%g
4980 s%@target@%$target%g
4981 s%@target_alias@%$target_alias%g
4982 s%@target_cpu@%$target_cpu%g
4983 s%@target_vendor@%$target_vendor%g
4984 s%@target_os@%$target_os%g
4985 s%@build@%$build%g
4986 s%@build_alias@%$build_alias%g
4987 s%@build_cpu@%$build_cpu%g
4988 s%@build_vendor@%$build_vendor%g
4989 s%@build_os@%$build_os%g
4990 s%@libgcj_basedir@%$libgcj_basedir%g
4991 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4992 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4993 s%@INSTALL_DATA@%$INSTALL_DATA%g
4994 s%@PACKAGE@%$PACKAGE%g
4995 s%@VERSION@%$VERSION%g
4996 s%@ACLOCAL@%$ACLOCAL%g
4997 s%@AUTOCONF@%$AUTOCONF%g
4998 s%@AUTOMAKE@%$AUTOMAKE%g
4999 s%@AUTOHEADER@%$AUTOHEADER%g
5000 s%@MAKEINFO@%$MAKEINFO%g
5001 s%@SET_MAKE@%$SET_MAKE%g
5002 s%@CC@%$CC%g
5003 s%@CXX@%$CXX%g
5004 s%@AS@%$AS%g
5005 s%@AR@%$AR%g
5006 s%@RANLIB@%$RANLIB%g
5007 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5008 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5009 s%@MAINT@%$MAINT%g
5010 s%@EXEEXT@%$EXEEXT%g
5011 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5012 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5013 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5014 s%@LD@%$LD%g
5015 s%@NM@%$NM%g
5016 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5017 s%@LN_S@%$LN_S%g
5018 s%@DLLTOOL@%$DLLTOOL%g
5019 s%@LIBTOOL@%$LIBTOOL%g
5020 s%@COMPPATH@%$COMPPATH%g
5021 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5022 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5023 s%@CPP@%$CPP%g
5024 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5025 s%@ZLIBSPEC@%$ZLIBSPEC%g
5026 s%@GCLIBS@%$GCLIBS%g
5027 s%@GCINCS@%$GCINCS%g
5028 s%@GCDEPS@%$GCDEPS%g
5029 s%@GCOBJS@%$GCOBJS%g
5030 s%@GCSPEC@%$GCSPEC%g
5031 s%@THREADLIBS@%$THREADLIBS%g
5032 s%@THREADINCS@%$THREADINCS%g
5033 s%@THREADDEPS@%$THREADDEPS%g
5034 s%@THREADOBJS@%$THREADOBJS%g
5035 s%@THREADSPEC@%$THREADSPEC%g
5036 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5037 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5038 s%@ZLIBS@%$ZLIBS%g
5039 s%@ZDEPS@%$ZDEPS%g
5040 s%@ZINCS@%$ZINCS%g
5041 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5042 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5043 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5044 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5045 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5046 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5047 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5048 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5049 s%@ALLOCA@%$ALLOCA%g
5050 s%@PERL@%$PERL%g
5051 s%@here@%$here%g
5053 CEOF
5056 cat >> $CONFIG_STATUS <<\EOF
5058 # Split the substitutions into bite-sized pieces for seds with
5059 # small command number limits, like on Digital OSF/1 and HP-UX.
5060 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5061 ac_file=1 # Number of current file.
5062 ac_beg=1 # First line for current file.
5063 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5064 ac_more_lines=:
5065 ac_sed_cmds=""
5066 while $ac_more_lines; do
5067 if test $ac_beg -gt 1; then
5068 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5069 else
5070 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5072 if test ! -s conftest.s$ac_file; then
5073 ac_more_lines=false
5074 rm -f conftest.s$ac_file
5075 else
5076 if test -z "$ac_sed_cmds"; then
5077 ac_sed_cmds="sed -f conftest.s$ac_file"
5078 else
5079 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5081 ac_file=`expr $ac_file + 1`
5082 ac_beg=$ac_end
5083 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5085 done
5086 if test -z "$ac_sed_cmds"; then
5087 ac_sed_cmds=cat
5091 cat >> $CONFIG_STATUS <<EOF
5093 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec testsuite/Makefile"}
5095 cat >> $CONFIG_STATUS <<\EOF
5096 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5097 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5098 case "$ac_file" in
5099 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5100 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5101 *) ac_file_in="${ac_file}.in" ;;
5102 esac
5104 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5106 # Remove last slash and all that follows it. Not all systems have dirname.
5107 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5108 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5109 # The file is in a subdirectory.
5110 test ! -d "$ac_dir" && mkdir "$ac_dir"
5111 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5112 # A "../" for each directory in $ac_dir_suffix.
5113 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5114 else
5115 ac_dir_suffix= ac_dots=
5118 case "$ac_given_srcdir" in
5119 .) srcdir=.
5120 if test -z "$ac_dots"; then top_srcdir=.
5121 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5122 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5123 *) # Relative path.
5124 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5125 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5126 esac
5128 case "$ac_given_INSTALL" in
5129 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5130 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5131 esac
5133 echo creating "$ac_file"
5134 rm -f "$ac_file"
5135 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5136 case "$ac_file" in
5137 *Makefile*) ac_comsub="1i\\
5138 # $configure_input" ;;
5139 *) ac_comsub= ;;
5140 esac
5142 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5143 sed -e "$ac_comsub
5144 s%@configure_input@%$configure_input%g
5145 s%@srcdir@%$srcdir%g
5146 s%@top_srcdir@%$top_srcdir%g
5147 s%@INSTALL@%$INSTALL%g
5148 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5149 fi; done
5150 rm -f conftest.s*
5152 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5153 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5155 # ac_d sets the value in "#define NAME VALUE" lines.
5156 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5157 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5158 ac_dC='\3'
5159 ac_dD='%g'
5160 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5161 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5162 ac_uB='\([ ]\)%\1#\2define\3'
5163 ac_uC=' '
5164 ac_uD='\4%g'
5165 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5166 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5167 ac_eB='$%\1#\2define\3'
5168 ac_eC=' '
5169 ac_eD='%g'
5171 if test "${CONFIG_HEADERS+set}" != set; then
5173 cat >> $CONFIG_STATUS <<EOF
5174 CONFIG_HEADERS="include/config.h"
5176 cat >> $CONFIG_STATUS <<\EOF
5178 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5179 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5180 case "$ac_file" in
5181 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5182 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5183 *) ac_file_in="${ac_file}.in" ;;
5184 esac
5186 echo creating $ac_file
5188 rm -f conftest.frag conftest.in conftest.out
5189 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5190 cat $ac_file_inputs > conftest.in
5194 # Transform confdefs.h into a sed script conftest.vals that substitutes
5195 # the proper values into config.h.in to produce config.h. And first:
5196 # Protect against being on the right side of a sed subst in config.status.
5197 # Protect against being in an unquoted here document in config.status.
5198 rm -f conftest.vals
5199 cat > conftest.hdr <<\EOF
5200 s/[\\&%]/\\&/g
5201 s%[\\$`]%\\&%g
5202 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5203 s%ac_d%ac_u%gp
5204 s%ac_u%ac_e%gp
5206 sed -n -f conftest.hdr confdefs.h > conftest.vals
5207 rm -f conftest.hdr
5209 # This sed command replaces #undef with comments. This is necessary, for
5210 # example, in the case of _POSIX_SOURCE, which is predefined and required
5211 # on some systems where configure will not decide to define it.
5212 cat >> conftest.vals <<\EOF
5213 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5216 # Break up conftest.vals because some shells have a limit on
5217 # the size of here documents, and old seds have small limits too.
5219 rm -f conftest.tail
5220 while :
5222 ac_lines=`grep -c . conftest.vals`
5223 # grep -c gives empty output for an empty file on some AIX systems.
5224 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5225 # Write a limited-size here document to conftest.frag.
5226 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5227 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5228 echo 'CEOF
5229 sed -f conftest.frag conftest.in > conftest.out
5230 rm -f conftest.in
5231 mv conftest.out conftest.in
5232 ' >> $CONFIG_STATUS
5233 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5234 rm -f conftest.vals
5235 mv conftest.tail conftest.vals
5236 done
5237 rm -f conftest.vals
5239 cat >> $CONFIG_STATUS <<\EOF
5240 rm -f conftest.frag conftest.h
5241 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5242 cat conftest.in >> conftest.h
5243 rm -f conftest.in
5244 if cmp -s $ac_file conftest.h 2>/dev/null; then
5245 echo "$ac_file is unchanged"
5246 rm -f conftest.h
5247 else
5248 # Remove last slash and all that follows it. Not all systems have dirname.
5249 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5250 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5251 # The file is in a subdirectory.
5252 test ! -d "$ac_dir" && mkdir "$ac_dir"
5254 rm -f $ac_file
5255 mv conftest.h $ac_file
5257 fi; done
5261 cat >> $CONFIG_STATUS <<EOF
5262 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5263 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
5266 cat >> $CONFIG_STATUS <<\EOF
5267 srcdir=$ac_given_srcdir
5268 while test -n "$ac_sources"; do
5269 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5270 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5272 echo "linking $srcdir/$ac_source to $ac_dest"
5274 if test ! -r $srcdir/$ac_source; then
5275 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5277 rm -f $ac_dest
5279 # Make relative symlinks.
5280 # Remove last slash and all that follows it. Not all systems have dirname.
5281 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5282 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5283 # The dest file is in a subdirectory.
5284 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5285 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5286 # A "../" for each directory in $ac_dest_dir_suffix.
5287 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5288 else
5289 ac_dest_dir_suffix= ac_dots=
5292 case "$srcdir" in
5293 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5294 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5295 esac
5297 # Make a symlink if possible; otherwise try a hard link.
5298 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5299 ln $srcdir/$ac_source $ac_dest; then :
5300 else
5301 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5303 done
5305 cat >> $CONFIG_STATUS <<EOF
5307 srcdir=${srcdir}
5308 host=${host}
5309 target=${target}
5310 with_multisubdir=${with_multisubdir}
5311 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5312 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5313 libgcj_basedir=${libgcj_basedir}
5314 CC="${CC}"
5315 CXX="${CXX}"
5318 cat >> $CONFIG_STATUS <<\EOF
5319 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5320 if test -n "$CONFIG_FILES"; then
5321 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5323 exit 0
5325 chmod +x $CONFIG_STATUS
5326 rm -fr confdefs* $ac_clean_files
5327 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1