Makefile.am (extra_ldflags_libjava): New variable to substitute in.
[gcc.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GCJH ZIP INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
824
825 cat <<\_ACEOF
826
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
831
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
835
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
848
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-libgcj-debug enable runtime debugging code
861 --enable-java-awt list of AWT peer implementations to be built
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --disable-getenv-properties
867 don't set system properties from GCJ_PROPERTIES
868 --enable-hash-synchronization
869 use global hash table for monitor locks
870 --enable-gc-debug include full support for pointer backtracing etc.
871 --enable-interpreter enable interpreter
872 --enable-sjlj-exceptions
873 force use of builtin_setjmp for exceptions
874 --disable-java-net disable java.net
875 --disable-jvmpi disable JVMPI support
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
879
880 Optional Packages:
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-target-subdir=SUBDIR
884 configure in a subdirectory
885 --with-cross-host=HOST configure with a cross compiler from HOST
886 --with-newlib configure with newlib
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-pic try to use only PIC/non-PIC objects default=use both
889 --with-java-home=DIRECTORY
890 value of java.home system property
891 --with-win32-nlsapi=ansi or unicows or unicode
892 native MinGW libgcj Win32 OS API (default is ansi)
893 --without-libffi don't use libffi
894 --with-ecos enable runtime eCos target support
895 --with-system-zlib use installed libz
896 --with-x use the X Window System
897 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
898 --without-libiconv-prefix don't search for libiconv in includedir and libdir
899
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
907 CXX C++ compiler command
908 CXXFLAGS C++ compiler flags
909 CXXCPP C++ preprocessor
910 CPP C preprocessor
911
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
914
915 _ACEOF
916 fi
917
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930 ac_dir_suffix= ac_top_builddir=
931 fi
932
933 case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
948
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
953 *)
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *)
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
971 *)
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *)
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986 esac
987
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 fi
1003 cd $ac_popdir
1004 done
1005 fi
1006
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009 cat <<\_ACEOF
1010 libjava configure version-unused
1011 generated by GNU Autoconf 2.59
1012
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1016 _ACEOF
1017 exit 0
1018 fi
1019 exec 5>config.log
1020 cat >&5 <<_ACEOF
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1023
1024 It was created by libjava $as_me version-unused, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1026
1027 $ $0 $@
1028
1029 _ACEOF
1030 {
1031 cat <<_ASUNAME
1032 ## --------- ##
1033 ## Platform. ##
1034 ## --------- ##
1035
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1044
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052
1053 _ASUNAME
1054
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 for as_dir in $PATH
1057 do
1058 IFS=$as_save_IFS
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1061 done
1062
1063 } >&5
1064
1065 cat >&5 <<_ACEOF
1066
1067
1068 ## ----------- ##
1069 ## Core tests. ##
1070 ## ----------- ##
1071
1072 _ACEOF
1073
1074
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_configure_args=
1081 ac_configure_args0=
1082 ac_configure_args1=
1083 ac_sep=
1084 ac_must_keep_next=false
1085 for ac_pass in 1 2
1086 do
1087 for ac_arg
1088 do
1089 case $ac_arg in
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 continue ;;
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 esac
1097 case $ac_pass in
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099 2)
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1103 else
1104 case $ac_arg in
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 esac
1112 ;;
1113 -* ) ac_must_keep_next=true ;;
1114 esac
1115 fi
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1118 ac_sep=" "
1119 ;;
1120 esac
1121 done
1122 done
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1133 {
1134 echo
1135
1136 cat <<\_ASBOX
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1140 _ASBOX
1141 echo
1142 # The following way of writing the cache mishandles newlines in values,
1143 {
1144 (set) 2>&1 |
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 *ac_space=\ *)
1147 sed -n \
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150 ;;
1151 *)
1152 sed -n \
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154 ;;
1155 esac;
1156 }
1157 echo
1158
1159 cat <<\_ASBOX
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_vars
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171
1172 if test -n "$ac_subst_files"; then
1173 cat <<\_ASBOX
1174 ## ------------- ##
1175 ## Output files. ##
1176 ## ------------- ##
1177 _ASBOX
1178 echo
1179 for ac_var in $ac_subst_files
1180 do
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1183 done | sort
1184 echo
1185 fi
1186
1187 if test -s confdefs.h; then
1188 cat <<\_ASBOX
1189 ## ----------- ##
1190 ## confdefs.h. ##
1191 ## ----------- ##
1192 _ASBOX
1193 echo
1194 sed "/^$/d" confdefs.h | sort
1195 echo
1196 fi
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1200 } >&5
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 exit $exit_status
1204 ' 0
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 done
1208 ac_signal=0
1209
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 echo >confdefs.h
1214
1215 # Predefined preprocessor variables.
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 _ACEOF
1230
1231
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 _ACEOF
1235
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 _ACEOF
1240
1241
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247 else
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 fi
1250 fi
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1256 . "$ac_site_file"
1257 fi
1258 done
1259
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1266 case $cache_file in
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1269 esac
1270 fi
1271 else
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1274 >$cache_file
1275 fi
1276
1277 # Check that the precious variables saved in the cache have kept the same
1278 # value.
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1287 set,)
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1291 ,set)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,);;
1296 *)
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1305 fi;;
1306 esac
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1309 case $ac_new_val in
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1313 esac
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317 esac
1318 fi
1319 done
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1326 fi
1327
1328 ac_ext=c
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363 ac_aux_dir=
1364 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1365 if test -f $ac_dir/install-sh; then
1366 ac_aux_dir=$ac_dir
1367 ac_install_sh="$ac_aux_dir/install-sh -c"
1368 break
1369 elif test -f $ac_dir/install.sh; then
1370 ac_aux_dir=$ac_dir
1371 ac_install_sh="$ac_aux_dir/install.sh -c"
1372 break
1373 elif test -f $ac_dir/shtool; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/shtool install -c"
1376 break
1377 fi
1378 done
1379 if test -z "$ac_aux_dir"; then
1380 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1381 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1382 { (exit 1); exit 1; }; }
1383 fi
1384 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1385 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1386 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1387
1388 # Make sure we can run config.sub.
1389 $ac_config_sub sun4 >/dev/null 2>&1 ||
1390 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1391 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1392 { (exit 1); exit 1; }; }
1393
1394 echo "$as_me:$LINENO: checking build system type" >&5
1395 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1396 if test "${ac_cv_build+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 ac_cv_build_alias=$build_alias
1400 test -z "$ac_cv_build_alias" &&
1401 ac_cv_build_alias=`$ac_config_guess`
1402 test -z "$ac_cv_build_alias" &&
1403 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1404 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1405 { (exit 1); exit 1; }; }
1406 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1410
1411 fi
1412 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1413 echo "${ECHO_T}$ac_cv_build" >&6
1414 build=$ac_cv_build
1415 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418
1419
1420 case ${build_alias} in
1421 "") build_noncanonical=${build} ;;
1422 *) build_noncanonical=${build_alias} ;;
1423 esac
1424
1425 case ${host_alias} in
1426 "") host_noncanonical=${build_noncanonical} ;;
1427 *) host_noncanonical=${host_alias} ;;
1428 esac
1429
1430 case ${target_alias} in
1431 "") target_noncanonical=${host_noncanonical} ;;
1432 *) target_noncanonical=${target_alias} ;;
1433 esac
1434
1435 # Prefix 'build-' so this never conflicts with target_subdir.
1436 build_subdir="build-${build_noncanonical}"
1437 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1438 if ( test $srcdir = . && test -d gcc ) \
1439 || test -d $srcdir/../host-${host_noncanonical}; then
1440 host_subdir="host-${host_noncanonical}"
1441 else
1442 host_subdir=.
1443 fi
1444 # No prefix.
1445 target_subdir=${target_noncanonical}
1446
1447
1448 # We use these options to decide which functions to include.
1449
1450 # Check whether --with-target-subdir or --without-target-subdir was given.
1451 if test "${with_target_subdir+set}" = set; then
1452 withval="$with_target_subdir"
1453
1454 fi;
1455
1456 # We may get other options which we don't document:
1457 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1458
1459 # When building with srcdir == objdir, links to the source files will
1460 # be created in directories within the target_subdir. We have to
1461 # adjust toplevel_srcdir accordingly, so that configure finds
1462 # install-sh and other auxiliary files that live in the top-level
1463 # source directory.
1464 if test "${srcdir}" = "."; then
1465 if test -z "${with_target_subdir}"; then
1466 toprel=".."
1467 else
1468 if test "${with_target_subdir}" != "."; then
1469 toprel="${with_multisrctop}../.."
1470 else
1471 toprel="${with_multisrctop}.."
1472 fi
1473 fi
1474 else
1475 toprel=".."
1476 fi
1477
1478 libgcj_basedir=$srcdir/$toprel/./libjava
1479
1480
1481 echo "$as_me:$LINENO: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488 ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492 { (exit 1); exit 1; }; }
1493
1494 fi
1495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1497 host=$ac_cv_host
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1501
1502
1503 echo "$as_me:$LINENO: checking target system type" >&5
1504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1505 if test "${ac_cv_target+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_target_alias=$target_alias
1509 test "x$ac_cv_target_alias" = "x" &&
1510 ac_cv_target_alias=$ac_cv_host_alias
1511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1514 { (exit 1); exit 1; }; }
1515
1516 fi
1517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1518 echo "${ECHO_T}$ac_cv_target" >&6
1519 target=$ac_cv_target
1520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1523
1524
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 test -n "$target_alias" &&
1528 test "$program_prefix$program_suffix$program_transform_name" = \
1529 NONENONEs,x,x, &&
1530 program_prefix=${target_alias}-
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
1534 esac
1535
1536 case ${target_alias} in
1537 "") target_noncanonical=${host_noncanonical} ;;
1538 *) target_noncanonical=${target_alias} ;;
1539 esac
1540
1541
1542
1543
1544 # This works around the fact that libtool configuration may change LD
1545 # for this particular configuration, but some shells, instead of
1546 # keeping the changes in LD private, export them just because LD is
1547 # exported.
1548 ORIGINAL_LD_FOR_MULTILIBS=$LD
1549
1550 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1552 LN_S=$as_ln_s
1553 if test "$LN_S" = "ln -s"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1558 echo "${ECHO_T}no, using $LN_S" >&6
1559 fi
1560
1561
1562 # This works around an automake problem.
1563 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1564
1565
1566
1567 # Check whether --with-cross-host or --without-cross-host was given.
1568 if test "${with_cross_host+set}" = set; then
1569 withval="$with_cross_host"
1570
1571 fi;
1572
1573
1574 # Check whether --with-newlib or --without-newlib was given.
1575 if test "${with_newlib+set}" = set; then
1576 withval="$with_newlib"
1577
1578 fi;
1579
1580 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1581 if test "${enable_version_specific_runtime_libs+set}" = set; then
1582 enableval="$enable_version_specific_runtime_libs"
1583 case "$enableval" in
1584 yes) version_specific_libs=yes ;;
1585 no) version_specific_libs=no ;;
1586 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1587 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1588 { (exit 1); exit 1; }; };;
1589 esac
1590 else
1591 version_specific_libs=no
1592
1593 fi;
1594
1595 # Default to --enable-multilib
1596 # Check whether --enable-multilib or --disable-multilib was given.
1597 if test "${enable_multilib+set}" = set; then
1598 enableval="$enable_multilib"
1599 case "${enableval}" in
1600 yes) multilib=yes ;;
1601 no) multilib=no ;;
1602 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1603 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1604 { (exit 1); exit 1; }; } ;;
1605 esac
1606 else
1607 multilib=yes
1608 fi;
1609 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1610
1611
1612 # (1) We use an abnormal CXX (without library references), so we
1613 # must cache it under a different name.
1614 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1615 # the non-multilib-adjusted value will be used in multilibs.
1616 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1617 # (4) As another side effect, automake doesn't automatically include them
1618 # in Makefile.in.
1619 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1620 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1621 # used in later tests. This may not be necessary in libjava; I don't know.
1622
1623
1624
1625 save_CXXFLAGS="$CXXFLAGS"
1626 CXXFLAGS="$CXXFLAGS -fno-builtin"
1627 ac_ext=c
1628 ac_cpp='$CPP $CPPFLAGS'
1629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1632 if test -n "$ac_tool_prefix"; then
1633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
1653 fi
1654 done
1655 done
1656
1657 fi
1658 fi
1659 CC=$ac_cv_prog_CC
1660 if test -n "$CC"; then
1661 echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1663 else
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1666 fi
1667
1668 fi
1669 if test -z "$ac_cv_prog_CC"; then
1670 ac_ct_CC=$CC
1671 # Extract the first word of "gcc", so it can be a program name with args.
1672 set dummy gcc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678 if test -n "$ac_ct_CC"; then
1679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1683 do
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_ac_ct_CC="gcc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1691 fi
1692 done
1693 done
1694
1695 fi
1696 fi
1697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1698 if test -n "$ac_ct_CC"; then
1699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1700 echo "${ECHO_T}$ac_ct_CC" >&6
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 fi
1705
1706 CC=$ac_ct_CC
1707 else
1708 CC="$ac_cv_prog_CC"
1709 fi
1710
1711 if test -z "$CC"; then
1712 if test -n "$ac_tool_prefix"; then
1713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1714 set dummy ${ac_tool_prefix}cc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 if test -n "$CC"; then
1721 ac_cv_prog_CC="$CC" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1725 do
1726 IFS=$as_save_IFS
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_CC="${ac_tool_prefix}cc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 break 2
1733 fi
1734 done
1735 done
1736
1737 fi
1738 fi
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741 echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748 fi
1749 if test -z "$ac_cv_prog_CC"; then
1750 ac_ct_CC=$CC
1751 # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 if test -n "$ac_ct_CC"; then
1759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_ac_ct_CC="cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1771 fi
1772 done
1773 done
1774
1775 fi
1776 fi
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1781 else
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784 fi
1785
1786 CC=$ac_ct_CC
1787 else
1788 CC="$ac_cv_prog_CC"
1789 fi
1790
1791 fi
1792 if test -z "$CC"; then
1793 # Extract the first word of "cc", so it can be a program name with args.
1794 set dummy cc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803 ac_prog_rejected=no
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1806 do
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1812 ac_prog_rejected=yes
1813 continue
1814 fi
1815 ac_cv_prog_CC="cc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1818 fi
1819 done
1820 done
1821
1822 if test $ac_prog_rejected = yes; then
1823 # We found a bogon in the path, so make sure we never use it.
1824 set dummy $ac_cv_prog_CC
1825 shift
1826 if test $# != 0; then
1827 # We chose a different compiler from the bogus one.
1828 # However, it has the same basename, so the bogon will be chosen
1829 # first if we set CC to just the basename; use the full file name.
1830 shift
1831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1832 fi
1833 fi
1834 fi
1835 fi
1836 CC=$ac_cv_prog_CC
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845 fi
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 for ac_prog in cl
1849 do
1850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871 done
1872 done
1873
1874 fi
1875 fi
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885 test -n "$CC" && break
1886 done
1887 fi
1888 if test -z "$CC"; then
1889 ac_ct_CC=$CC
1890 for ac_prog in cl
1891 do
1892 # Extract the first word of "$ac_prog", so it can be a program name with args.
1893 set dummy $ac_prog; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$ac_ct_CC"; then
1900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1904 do
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_CC="$ac_prog"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1912 fi
1913 done
1914 done
1915
1916 fi
1917 fi
1918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919 if test -n "$ac_ct_CC"; then
1920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921 echo "${ECHO_T}$ac_ct_CC" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1925 fi
1926
1927 test -n "$ac_ct_CC" && break
1928 done
1929
1930 CC=$ac_ct_CC
1931 fi
1932
1933 fi
1934
1935
1936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1937 See \`config.log' for more details." >&5
1938 echo "$as_me: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&2;}
1940 { (exit 1); exit 1; }; }
1941
1942 # Provide some information about the compiler.
1943 echo "$as_me:$LINENO:" \
1944 "checking for C compiler version" >&5
1945 ac_compiler=`set X $ac_compile; echo $2`
1946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1947 (eval $ac_compiler --version </dev/null >&5) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }
1951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1952 (eval $ac_compiler -v </dev/null >&5) 2>&5
1953 ac_status=$?
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1957 (eval $ac_compiler -V </dev/null >&5) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1961
1962 cat >conftest.$ac_ext <<_ACEOF
1963 /* confdefs.h. */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1968
1969 int
1970 main ()
1971 {
1972
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 # FIXME: Cleanup?
1978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1979 (eval $ac_link) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; then
1983 gcc_no_link=no
1984 else
1985 gcc_no_link=yes
1986 fi
1987
1988 if test x$gcc_no_link = xyes; then
1989 # Setting cross_compile will disable run tests; it will
1990 # also disable AC_CHECK_FILE but that's generally
1991 # correct if we can't link.
1992 cross_compiling=yes
1993 EXEEXT=
1994 else
1995 cat >conftest.$ac_ext <<_ACEOF
1996 /* confdefs.h. */
1997 _ACEOF
1998 cat confdefs.h >>conftest.$ac_ext
1999 cat >>conftest.$ac_ext <<_ACEOF
2000 /* end confdefs.h. */
2001
2002 int
2003 main ()
2004 {
2005
2006 ;
2007 return 0;
2008 }
2009 _ACEOF
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2014 # of exeext.
2015 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2016 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019 (eval $ac_link_default) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; then
2023 # Find the output, starting from the most likely. This scheme is
2024 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025 # resort.
2026
2027 # Be careful to initialize this variable, since it used to be cached.
2028 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029 ac_cv_exeext=
2030 # b.out is created by i960 compilers.
2031 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2032 do
2033 test -f "$ac_file" || continue
2034 case $ac_file in
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2036 ;;
2037 conftest.$ac_ext )
2038 # This is the source file.
2039 ;;
2040 [ab].out )
2041 # We found the default executable, but exeext='' is most
2042 # certainly right.
2043 break;;
2044 *.* )
2045 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 # FIXME: I believe we export ac_cv_exeext for Libtool,
2047 # but it would be cool to find out if it's true. Does anybody
2048 # maintain Libtool? --akim.
2049 export ac_cv_exeext
2050 break;;
2051 * )
2052 break;;
2053 esac
2054 done
2055 else
2056 echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&2;}
2063 { (exit 77); exit 77; }; }
2064 fi
2065
2066 ac_exeext=$ac_cv_exeext
2067 echo "$as_me:$LINENO: result: $ac_file" >&5
2068 echo "${ECHO_T}$ac_file" >&6
2069
2070 # Check the compiler produces executables we can run. If not, either
2071 # the compiler is broken, or we cross compile.
2072 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2073 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2074 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2075 # If not cross compiling, check that we can run a simple program.
2076 if test "$cross_compiling" != yes; then
2077 if { ac_try='./$ac_file'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 (eval $ac_try) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2083 cross_compiling=no
2084 else
2085 if test "$cross_compiling" = maybe; then
2086 cross_compiling=yes
2087 else
2088 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2089 If you meant to cross compile, use \`--host'.
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&2;}
2094 { (exit 1); exit 1; }; }
2095 fi
2096 fi
2097 fi
2098 echo "$as_me:$LINENO: result: yes" >&5
2099 echo "${ECHO_T}yes" >&6
2100
2101 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2102 ac_clean_files=$ac_clean_files_save
2103 # Check the compiler produces executables we can run. If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108 echo "${ECHO_T}$cross_compiling" >&6
2109
2110 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2119 # work properly (i.e., refer to `conftest.exe'), while it won't with
2120 # `rm'.
2121 for ac_file in conftest.exe conftest conftest.*; do
2122 test -f "$ac_file" || continue
2123 case $ac_file in
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126 export ac_cv_exeext
2127 break;;
2128 * ) break;;
2129 esac
2130 done
2131 else
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2137 fi
2138
2139 rm -f conftest$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2141 echo "${ECHO_T}$ac_cv_exeext" >&6
2142
2143 rm -f conftest.$ac_ext
2144 EXEEXT=$ac_cv_exeext
2145 ac_exeext=$EXEEXT
2146 fi
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h. */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2158
2159 int
2160 main ()
2161 {
2162
2163 ;
2164 return 0;
2165 }
2166 _ACEOF
2167 rm -f conftest.o conftest.obj
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2174 case $ac_file in
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2177 break;;
2178 esac
2179 done
2180 else
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2189 fi
2190
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2192 fi
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2196 ac_objext=$OBJEXT
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 cat >conftest.$ac_ext <<_ACEOF
2203 /* confdefs.h. */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2208
2209 int
2210 main ()
2211 {
2212 #ifndef __GNUC__
2213 choke me
2214 #endif
2215
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 ac_compiler_gnu=yes
2243 else
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 ac_compiler_gnu=no
2248 fi
2249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2251
2252 fi
2253 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2254 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2255 GCC=`test $ac_compiler_gnu = yes && echo yes`
2256 ac_test_CFLAGS=${CFLAGS+set}
2257 ac_save_CFLAGS=$CFLAGS
2258 CFLAGS="-g"
2259 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_g+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 cat >conftest.$ac_ext <<_ACEOF
2265 /* confdefs.h. */
2266 _ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2270
2271 int
2272 main ()
2273 {
2274
2275 ;
2276 return 0;
2277 }
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2282 ac_status=$?
2283 grep -v '^ *+' conftest.er1 >conftest.err
2284 rm -f conftest.er1
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_c_werror_flag"
2289 || test ! -s conftest.err'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2301 ac_cv_prog_cc_g=yes
2302 else
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305
2306 ac_cv_prog_cc_g=no
2307 fi
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2312 if test "$ac_test_CFLAGS" = set; then
2313 CFLAGS=$ac_save_CFLAGS
2314 elif test $ac_cv_prog_cc_g = yes; then
2315 if test "$GCC" = yes; then
2316 CFLAGS="-g -O2"
2317 else
2318 CFLAGS="-g"
2319 fi
2320 else
2321 if test "$GCC" = yes; then
2322 CFLAGS="-O2"
2323 else
2324 CFLAGS=
2325 fi
2326 fi
2327 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2328 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2329 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 ac_cv_prog_cc_stdc=no
2333 ac_save_CC=$CC
2334 cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h. */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2340 #include <stdarg.h>
2341 #include <stdio.h>
2342 #include <sys/types.h>
2343 #include <sys/stat.h>
2344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2345 struct buf { int x; };
2346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347 static char *e (p, i)
2348 char **p;
2349 int i;
2350 {
2351 return p[i];
2352 }
2353 static char *f (char * (*g) (char **, int), char **p, ...)
2354 {
2355 char *s;
2356 va_list v;
2357 va_start (v,p);
2358 s = g (p, va_arg (v,int));
2359 va_end (v);
2360 return s;
2361 }
2362
2363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2364 function prototypes and stuff, but not '\xHH' hex character constants.
2365 These don't provoke an error unfortunately, instead are silently treated
2366 as 'x'. The following induces an error, until -std1 is added to get
2367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2368 array size at least. It's necessary to write '\x00'==0 to get something
2369 that's true only with -std1. */
2370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2371
2372 int test (int i, double x);
2373 struct s1 {int (*f) (int a);};
2374 struct s2 {int (*f) (double a);};
2375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2376 int argc;
2377 char **argv;
2378 int
2379 main ()
2380 {
2381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 # Don't try gcc -ansi; that turns off useful extensions and
2387 # breaks some systems' header files.
2388 # AIX -qlanglvl=ansi
2389 # Ultrix and OSF/1 -std1
2390 # HP-UX 10.20 and later -Ae
2391 # HP-UX older versions -Aa -D_HPUX_SOURCE
2392 # SVR4 -Xc -D__EXTENSIONS__
2393 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2394 do
2395 CC="$ac_save_CC $ac_arg"
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_prog_cc_stdc=$ac_arg
2419 break
2420 else
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 fi
2425 rm -f conftest.err conftest.$ac_objext
2426 done
2427 rm -f conftest.$ac_ext conftest.$ac_objext
2428 CC=$ac_save_CC
2429
2430 fi
2431
2432 case "x$ac_cv_prog_cc_stdc" in
2433 x|xno)
2434 echo "$as_me:$LINENO: result: none needed" >&5
2435 echo "${ECHO_T}none needed" >&6 ;;
2436 *)
2437 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2439 CC="$CC $ac_cv_prog_cc_stdc" ;;
2440 esac
2441
2442 # Some people use a C++ compiler to compile C. Since we use `exit',
2443 # in C++ we need to declare it. In case someone uses the same compiler
2444 # for both compiling C and C++ we need to have the C++ compiler decide
2445 # the declaration of exit, since it's the most demanding environment.
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #ifndef __cplusplus
2448 choke me
2449 #endif
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 for ac_declaration in \
2474 '' \
2475 'extern "C" void std::exit (int) throw (); using std::exit;' \
2476 'extern "C" void std::exit (int); using std::exit;' \
2477 'extern "C" void exit (int) throw ();' \
2478 'extern "C" void exit (int);' \
2479 'void exit (int);'
2480 do
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2487 $ac_declaration
2488 #include <stdlib.h>
2489 int
2490 main ()
2491 {
2492 exit (42);
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 :
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 continue
2525 fi
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h. */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533 $ac_declaration
2534 int
2535 main ()
2536 {
2537 exit (42);
2538 ;
2539 return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 break
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2568
2569 fi
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 done
2572 rm -f conftest*
2573 if test -n "$ac_declaration"; then
2574 echo '#ifdef __cplusplus' >>confdefs.h
2575 echo $ac_declaration >>confdefs.h
2576 echo '#endif' >>confdefs.h
2577 fi
2578
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 fi
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590
2591 ac_ext=cc
2592 ac_cpp='$CXXCPP $CPPFLAGS'
2593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2598 do
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 if test -n "$CXX"; then
2607 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620 done
2621 done
2622
2623 fi
2624 fi
2625 CXX=$glibcxx_cv_prog_CXX
2626 if test -n "$CXX"; then
2627 echo "$as_me:$LINENO: result: $CXX" >&5
2628 echo "${ECHO_T}$CXX" >&6
2629 else
2630 echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2632 fi
2633
2634 test -n "$CXX" && break
2635 done
2636 fi
2637 if test -z "$CXX"; then
2638 ac_ct_CXX=$CXX
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2640 do
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$ac_ct_CXX"; then
2649 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CXX="$ac_prog"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664
2665 fi
2666 fi
2667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2668 if test -n "$ac_ct_CXX"; then
2669 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2670 echo "${ECHO_T}$ac_ct_CXX" >&6
2671 else
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2674 fi
2675
2676 test -n "$ac_ct_CXX" && break
2677 done
2678 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2679
2680 CXX=$ac_ct_CXX
2681 fi
2682
2683
2684 # Provide some information about the compiler.
2685 echo "$as_me:$LINENO:" \
2686 "checking for C++ compiler version" >&5
2687 ac_compiler=`set X $ac_compile; echo $2`
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2689 (eval $ac_compiler --version </dev/null >&5) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2694 (eval $ac_compiler -v </dev/null >&5) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2699 (eval $ac_compiler -V </dev/null >&5) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
2703
2704 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2706 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2715
2716 int
2717 main ()
2718 {
2719 #ifndef __GNUC__
2720 choke me
2721 #endif
2722
2723 ;
2724 return 0;
2725 }
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_cxx_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 ac_compiler_gnu=yes
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 ac_compiler_gnu=no
2755 fi
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2758
2759 fi
2760 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2762 GXX=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CXXFLAGS=${CXXFLAGS+set}
2764 ac_save_CXXFLAGS=$CXXFLAGS
2765 CXXFLAGS="-g"
2766 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2767 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cxx_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777
2778 int
2779 main ()
2780 {
2781
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_cxx_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_prog_cxx_g=yes
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 ac_cv_prog_cxx_g=no
2814 fi
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 fi
2817 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2819 if test "$ac_test_CXXFLAGS" = set; then
2820 CXXFLAGS=$ac_save_CXXFLAGS
2821 elif test $ac_cv_prog_cxx_g = yes; then
2822 if test "$GXX" = yes; then
2823 CXXFLAGS="-g -O2"
2824 else
2825 CXXFLAGS="-g"
2826 fi
2827 else
2828 if test "$GXX" = yes; then
2829 CXXFLAGS="-O2"
2830 else
2831 CXXFLAGS=
2832 fi
2833 fi
2834 for ac_declaration in \
2835 '' \
2836 'extern "C" void std::exit (int) throw (); using std::exit;' \
2837 'extern "C" void std::exit (int); using std::exit;' \
2838 'extern "C" void exit (int) throw ();' \
2839 'extern "C" void exit (int);' \
2840 'void exit (int);'
2841 do
2842 cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h. */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 $ac_declaration
2849 #include <stdlib.h>
2850 int
2851 main ()
2852 {
2853 exit (42);
2854 ;
2855 return 0;
2856 }
2857 _ACEOF
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2861 ac_status=$?
2862 grep -v '^ *+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_cxx_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 (eval $ac_try) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2880 :
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2884
2885 continue
2886 fi
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 $ac_declaration
2895 int
2896 main ()
2897 {
2898 exit (42);
2899 ;
2900 return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_cxx_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 break
2926 else
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930 fi
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932 done
2933 rm -f conftest*
2934 if test -n "$ac_declaration"; then
2935 echo '#ifdef __cplusplus' >>confdefs.h
2936 echo $ac_declaration >>confdefs.h
2937 echo '#endif' >>confdefs.h
2938 fi
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
2946 CXXFLAGS="$save_CXXFLAGS"
2947
2948
2949
2950
2951
2952 am__api_version="1.9"
2953 # Find a good install program. We prefer a C program (faster),
2954 # so one script is as good as another. But avoid the broken or
2955 # incompatible versions:
2956 # SysV /etc/install, /usr/sbin/install
2957 # SunOS /usr/etc/install
2958 # IRIX /sbin/install
2959 # AIX /bin/install
2960 # AmigaOS /C/install, which installs bootblocks on floppy discs
2961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2964 # OS/2's system install, which has a completely different semantic
2965 # ./install, which can be erroneously created by make from ./install.sh.
2966 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2978 case $as_dir/ in
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2982 /usr/ucb/* ) ;;
2983 *)
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2986 # by default.
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2993 :
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2997 :
2998 else
2999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3000 break 3
3001 fi
3002 fi
3003 done
3004 done
3005 ;;
3006 esac
3007 done
3008
3009
3010 fi
3011 if test "${ac_cv_path_install+set}" = set; then
3012 INSTALL=$ac_cv_path_install
3013 else
3014 # As a last resort, use the slow shell script. We don't cache a
3015 # path for INSTALL within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the path is relative.
3018 INSTALL=$ac_install_sh
3019 fi
3020 fi
3021 echo "$as_me:$LINENO: result: $INSTALL" >&5
3022 echo "${ECHO_T}$INSTALL" >&6
3023
3024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3025 # It thinks the first close brace ends the variable substitution.
3026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3027
3028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3029
3030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3031
3032 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3033 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3034 # Just in case
3035 sleep 1
3036 echo timestamp > conftest.file
3037 # Do `set' in a subshell so we don't clobber the current shell's
3038 # arguments. Must try -L first in case configure is actually a
3039 # symlink; some systems play weird games with the mod time of symlinks
3040 # (eg FreeBSD returns the mod time of the symlink's containing
3041 # directory).
3042 if (
3043 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3044 if test "$*" = "X"; then
3045 # -L didn't work.
3046 set X `ls -t $srcdir/configure conftest.file`
3047 fi
3048 rm -f conftest.file
3049 if test "$*" != "X $srcdir/configure conftest.file" \
3050 && test "$*" != "X conftest.file $srcdir/configure"; then
3051
3052 # If neither matched, then we have a broken ls. This can happen
3053 # if, for instance, CONFIG_SHELL is bash and it inherits a
3054 # broken ls alias from the environment. This has actually
3055 # happened. Such a system could not be considered "sane".
3056 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3057 alias in your environment" >&5
3058 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&2;}
3060 { (exit 1); exit 1; }; }
3061 fi
3062
3063 test "$2" = conftest.file
3064 )
3065 then
3066 # Ok.
3067 :
3068 else
3069 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3070 Check your system clock" >&5
3071 echo "$as_me: error: newly created file is older than distributed files!
3072 Check your system clock" >&2;}
3073 { (exit 1); exit 1; }; }
3074 fi
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3082 # Double any \ or $. echo might interpret backslashes.
3083 # By default was `s,x,x', remove it if useless.
3084 cat <<\_ACEOF >conftest.sed
3085 s/[\\$]/&&/g;s/;s,x,x,$//
3086 _ACEOF
3087 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3088 rm conftest.sed
3089
3090 # expand $ac_aux_dir to an absolute path
3091 am_aux_dir=`cd $ac_aux_dir && pwd`
3092
3093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3094 # Use eval to expand $SHELL
3095 if eval "$MISSING --run true"; then
3096 am_missing_run="$MISSING --run "
3097 else
3098 am_missing_run=
3099 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3100 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3101 fi
3102
3103 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3104 # We used to keeping the `.' as first argument, in order to
3105 # allow $(mkdir_p) to be used without argument. As in
3106 # $(mkdir_p) $(somedir)
3107 # where $(somedir) is conditionally defined. However this is wrong
3108 # for two reasons:
3109 # 1. if the package is installed by a user who cannot write `.'
3110 # make install will fail,
3111 # 2. the above comment should most certainly read
3112 # $(mkdir_p) $(DESTDIR)$(somedir)
3113 # so it does not work when $(somedir) is undefined and
3114 # $(DESTDIR) is not.
3115 # To support the latter case, we have to write
3116 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3117 # so the `.' trick is pointless.
3118 mkdir_p='mkdir -p --'
3119 else
3120 # On NextStep and OpenStep, the `mkdir' command does not
3121 # recognize any option. It will interpret all options as
3122 # directories to create, and then abort because `.' already
3123 # exists.
3124 for d in ./-p ./--version;
3125 do
3126 test -d $d && rmdir $d
3127 done
3128 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3129 if test -f "$ac_aux_dir/mkinstalldirs"; then
3130 mkdir_p='$(mkinstalldirs)'
3131 else
3132 mkdir_p='$(install_sh) -d'
3133 fi
3134 fi
3135
3136 for ac_prog in gawk mawk nawk awk
3137 do
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_AWK+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 if test -n "$AWK"; then
3146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_AWK="$ac_prog"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161
3162 fi
3163 fi
3164 AWK=$ac_cv_prog_AWK
3165 if test -n "$AWK"; then
3166 echo "$as_me:$LINENO: result: $AWK" >&5
3167 echo "${ECHO_T}$AWK" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3171 fi
3172
3173 test -n "$AWK" && break
3174 done
3175
3176 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3178 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 cat >conftest.make <<\_ACEOF
3183 all:
3184 @echo 'ac_maketemp="$(MAKE)"'
3185 _ACEOF
3186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3187 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3188 if test -n "$ac_maketemp"; then
3189 eval ac_cv_prog_make_${ac_make}_set=yes
3190 else
3191 eval ac_cv_prog_make_${ac_make}_set=no
3192 fi
3193 rm -f conftest.make
3194 fi
3195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3198 SET_MAKE=
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 SET_MAKE="MAKE=${MAKE-make}"
3203 fi
3204
3205 rm -rf .tst 2>/dev/null
3206 mkdir .tst 2>/dev/null
3207 if test -d .tst; then
3208 am__leading_dot=.
3209 else
3210 am__leading_dot=_
3211 fi
3212 rmdir .tst 2>/dev/null
3213
3214 DEPDIR="${am__leading_dot}deps"
3215
3216 ac_config_commands="$ac_config_commands depfiles"
3217
3218
3219 am_make=${MAKE-make}
3220 cat > confinc << 'END'
3221 am__doit:
3222 @echo done
3223 .PHONY: am__doit
3224 END
3225 # If we don't find an include directive, just comment out the code.
3226 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3227 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3228 am__include="#"
3229 am__quote=
3230 _am_result=none
3231 # First try GNU make style include.
3232 echo "include confinc" > confmf
3233 # We grep out `Entering directory' and `Leaving directory'
3234 # messages which can occur if `w' ends up in MAKEFLAGS.
3235 # In particular we don't look at `^make:' because GNU make might
3236 # be invoked under some other name (usually "gmake"), in which
3237 # case it prints its new name instead of `make'.
3238 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3239 am__include=include
3240 am__quote=
3241 _am_result=GNU
3242 fi
3243 # Now try BSD make style include.
3244 if test "$am__include" = "#"; then
3245 echo '.include "confinc"' > confmf
3246 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3247 am__include=.include
3248 am__quote="\""
3249 _am_result=BSD
3250 fi
3251 fi
3252
3253
3254 echo "$as_me:$LINENO: result: $_am_result" >&5
3255 echo "${ECHO_T}$_am_result" >&6
3256 rm -f confinc confmf
3257
3258 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3259 if test "${enable_dependency_tracking+set}" = set; then
3260 enableval="$enable_dependency_tracking"
3261
3262 fi;
3263 if test "x$enable_dependency_tracking" != xno; then
3264 am_depcomp="$ac_aux_dir/depcomp"
3265 AMDEPBACKSLASH='\'
3266 fi
3267
3268
3269 if test "x$enable_dependency_tracking" != xno; then
3270 AMDEP_TRUE=
3271 AMDEP_FALSE='#'
3272 else
3273 AMDEP_TRUE='#'
3274 AMDEP_FALSE=
3275 fi
3276
3277
3278
3279 # test to see if srcdir already configured
3280 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3281 test -f $srcdir/config.status; then
3282 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3283 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3291 else
3292 CYGPATH_W=echo
3293 fi
3294 fi
3295
3296
3297 # Define the identity of the package.
3298 PACKAGE='libjava'
3299 VERSION='version-unused'
3300
3301
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3304 _ACEOF
3305
3306
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3309 _ACEOF
3310
3311 # Some tools Automake needs.
3312
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3314
3315
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3317
3318
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3320
3321
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3323
3324
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3326
3327 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3328
3329 # Installed binaries are usually stripped using `strip' when the user
3330 # run `make install-strip'. However `strip' might not be the right
3331 # tool to use in cross-compilation environments, therefore Automake
3332 # will honor the `STRIP' environment variable to overrule this program.
3333 if test "$cross_compiling" != no; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}strip; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_STRIP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 if test -n "$STRIP"; then
3343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358
3359 fi
3360 fi
3361 STRIP=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 echo "$as_me:$LINENO: result: $STRIP" >&5
3364 echo "${ECHO_T}$STRIP" >&6
3365 else
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3368 fi
3369
3370 fi
3371 if test -z "$ac_cv_prog_STRIP"; then
3372 ac_ct_STRIP=$STRIP
3373 # Extract the first word of "strip", so it can be a program name with args.
3374 set dummy strip; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 if test -n "$ac_ct_STRIP"; then
3381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_STRIP="strip"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394 done
3395 done
3396
3397 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3398 fi
3399 fi
3400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3401 if test -n "$ac_ct_STRIP"; then
3402 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3403 echo "${ECHO_T}$ac_ct_STRIP" >&6
3404 else
3405 echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3407 fi
3408
3409 STRIP=$ac_ct_STRIP
3410 else
3411 STRIP="$ac_cv_prog_STRIP"
3412 fi
3413
3414 fi
3415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3416
3417 # We need awk for the "check" target. The system "awk" is bad on
3418 # some platforms.
3419 # Always define AMTAR for backward compatibility.
3420
3421 AMTAR=${AMTAR-"${am_missing_run}tar"}
3422
3423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3424
3425
3426
3427
3428 depcc="$CC" am_compiler_list=
3429
3430 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3431 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3432 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3436 # We make a subdir and do the tests there. Otherwise we can end up
3437 # making bogus files that we don't know about and never remove. For
3438 # instance it was reported that on HP-UX the gcc test will end up
3439 # making a dummy file named `D' -- because `-MD' means `put the output
3440 # in D'.
3441 mkdir conftest.dir
3442 # Copy depcomp to subdir because otherwise we won't find it if we're
3443 # using a relative directory.
3444 cp "$am_depcomp" conftest.dir
3445 cd conftest.dir
3446 # We will build objects and dependencies in a subdirectory because
3447 # it helps to detect inapplicable dependency modes. For instance
3448 # both Tru64's cc and ICC support -MD to output dependencies as a
3449 # side effect of compilation, but ICC will put the dependencies in
3450 # the current directory while Tru64 will put them in the object
3451 # directory.
3452 mkdir sub
3453
3454 am_cv_CC_dependencies_compiler_type=none
3455 if test "$am_compiler_list" = ""; then
3456 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3457 fi
3458 for depmode in $am_compiler_list; do
3459 # Setup a source with many dependencies, because some compilers
3460 # like to wrap large dependency lists on column 80 (with \), and
3461 # we should not choose a depcomp mode which is confused by this.
3462 #
3463 # We need to recreate these files for each test, as the compiler may
3464 # overwrite some of them when testing with obscure command lines.
3465 # This happens at least with the AIX C compiler.
3466 : > sub/conftest.c
3467 for i in 1 2 3 4 5 6; do
3468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3470 # Solaris 8's {/usr,}/bin/sh.
3471 touch sub/conftst$i.h
3472 done
3473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3474
3475 case $depmode in
3476 nosideeffect)
3477 # after this tag, mechanisms are not by side-effect, so they'll
3478 # only be used when explicitly requested
3479 if test "x$enable_dependency_tracking" = xyes; then
3480 continue
3481 else
3482 break
3483 fi
3484 ;;
3485 none) break ;;
3486 esac
3487 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3488 # mode. It turns out that the SunPro C++ compiler does not properly
3489 # handle `-M -o', and we need to detect this.
3490 if depmode=$depmode \
3491 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3493 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3494 >/dev/null 2>conftest.err &&
3495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3496 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3498 # icc doesn't choke on unknown options, it will just issue warnings
3499 # or remarks (even with -Werror). So we grep stderr for any message
3500 # that says an option was ignored or not supported.
3501 # When given -MP, icc 7.0 and 7.1 complain thusly:
3502 # icc: Command line warning: ignoring option '-M'; no argument required
3503 # The diagnosis changed in icc 8.0:
3504 # icc: Command line remark: option '-MP' not supported
3505 if (grep 'ignoring option' conftest.err ||
3506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3507 am_cv_CC_dependencies_compiler_type=$depmode
3508 break
3509 fi
3510 fi
3511 done
3512
3513 cd ..
3514 rm -rf conftest.dir
3515 else
3516 am_cv_CC_dependencies_compiler_type=none
3517 fi
3518
3519 fi
3520 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3521 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3522 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3523
3524
3525
3526 if
3527 test "x$enable_dependency_tracking" != xno \
3528 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3529 am__fastdepCC_TRUE=
3530 am__fastdepCC_FALSE='#'
3531 else
3532 am__fastdepCC_TRUE='#'
3533 am__fastdepCC_FALSE=
3534 fi
3535
3536
3537 depcc="$CXX" am_compiler_list=
3538
3539 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3541 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545 # We make a subdir and do the tests there. Otherwise we can end up
3546 # making bogus files that we don't know about and never remove. For
3547 # instance it was reported that on HP-UX the gcc test will end up
3548 # making a dummy file named `D' -- because `-MD' means `put the output
3549 # in D'.
3550 mkdir conftest.dir
3551 # Copy depcomp to subdir because otherwise we won't find it if we're
3552 # using a relative directory.
3553 cp "$am_depcomp" conftest.dir
3554 cd conftest.dir
3555 # We will build objects and dependencies in a subdirectory because
3556 # it helps to detect inapplicable dependency modes. For instance
3557 # both Tru64's cc and ICC support -MD to output dependencies as a
3558 # side effect of compilation, but ICC will put the dependencies in
3559 # the current directory while Tru64 will put them in the object
3560 # directory.
3561 mkdir sub
3562
3563 am_cv_CXX_dependencies_compiler_type=none
3564 if test "$am_compiler_list" = ""; then
3565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3566 fi
3567 for depmode in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3571 #
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3575 : > sub/conftest.c
3576 for i in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579 # Solaris 8's {/usr,}/bin/sh.
3580 touch sub/conftst$i.h
3581 done
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3583
3584 case $depmode in
3585 nosideeffect)
3586 # after this tag, mechanisms are not by side-effect, so they'll
3587 # only be used when explicitly requested
3588 if test "x$enable_dependency_tracking" = xyes; then
3589 continue
3590 else
3591 break
3592 fi
3593 ;;
3594 none) break ;;
3595 esac
3596 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3597 # mode. It turns out that the SunPro C++ compiler does not properly
3598 # handle `-M -o', and we need to detect this.
3599 if depmode=$depmode \
3600 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3602 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3603 >/dev/null 2>conftest.err &&
3604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607 # icc doesn't choke on unknown options, it will just issue warnings
3608 # or remarks (even with -Werror). So we grep stderr for any message
3609 # that says an option was ignored or not supported.
3610 # When given -MP, icc 7.0 and 7.1 complain thusly:
3611 # icc: Command line warning: ignoring option '-M'; no argument required
3612 # The diagnosis changed in icc 8.0:
3613 # icc: Command line remark: option '-MP' not supported
3614 if (grep 'ignoring option' conftest.err ||
3615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616 am_cv_CXX_dependencies_compiler_type=$depmode
3617 break
3618 fi
3619 fi
3620 done
3621
3622 cd ..
3623 rm -rf conftest.dir
3624 else
3625 am_cv_CXX_dependencies_compiler_type=none
3626 fi
3627
3628 fi
3629 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3630 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3631 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3632
3633
3634
3635 if
3636 test "x$enable_dependency_tracking" != xno \
3637 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3638 am__fastdepCXX_TRUE=
3639 am__fastdepCXX_FALSE='#'
3640 else
3641 am__fastdepCXX_TRUE='#'
3642 am__fastdepCXX_FALSE=
3643 fi
3644
3645
3646
3647
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}as; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_AS+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 if test -n "$AS"; then
3657 ac_cv_prog_AS="$AS" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_AS="${ac_tool_prefix}as"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670 done
3671 done
3672
3673 fi
3674 fi
3675 AS=$ac_cv_prog_AS
3676 if test -n "$AS"; then
3677 echo "$as_me:$LINENO: result: $AS" >&5
3678 echo "${ECHO_T}$AS" >&6
3679 else
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3682 fi
3683
3684 fi
3685 if test -z "$ac_cv_prog_AS"; then
3686 ac_ct_AS=$AS
3687 # Extract the first word of "as", so it can be a program name with args.
3688 set dummy as; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 if test -n "$ac_ct_AS"; then
3695 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_AS="as"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708 done
3709 done
3710
3711 fi
3712 fi
3713 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3714 if test -n "$ac_ct_AS"; then
3715 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3716 echo "${ECHO_T}$ac_ct_AS" >&6
3717 else
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3720 fi
3721
3722 AS=$ac_ct_AS
3723 else
3724 AS="$ac_cv_prog_AS"
3725 fi
3726
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}ar; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_AR+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 if test -n "$AR"; then
3736 ac_cv_prog_AR="$AR" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_AR="${ac_tool_prefix}ar"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749 done
3750 done
3751
3752 fi
3753 fi
3754 AR=$ac_cv_prog_AR
3755 if test -n "$AR"; then
3756 echo "$as_me:$LINENO: result: $AR" >&5
3757 echo "${ECHO_T}$AR" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3761 fi
3762
3763 fi
3764 if test -z "$ac_cv_prog_AR"; then
3765 ac_ct_AR=$AR
3766 # Extract the first word of "ar", so it can be a program name with args.
3767 set dummy ar; ac_word=$2
3768 echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 if test -n "$ac_ct_AR"; then
3774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_ac_ct_AR="ar"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787 done
3788 done
3789
3790 fi
3791 fi
3792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3793 if test -n "$ac_ct_AR"; then
3794 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3795 echo "${ECHO_T}$ac_ct_AR" >&6
3796 else
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3799 fi
3800
3801 AR=$ac_ct_AR
3802 else
3803 AR="$ac_cv_prog_AR"
3804 fi
3805
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_RANLIB+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 if test -n "$RANLIB"; then
3815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828 done
3829 done
3830
3831 fi
3832 fi
3833 RANLIB=$ac_cv_prog_RANLIB
3834 if test -n "$RANLIB"; then
3835 echo "$as_me:$LINENO: result: $RANLIB" >&5
3836 echo "${ECHO_T}$RANLIB" >&6
3837 else
3838 echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3840 fi
3841
3842 fi
3843 if test -z "$ac_cv_prog_RANLIB"; then
3844 ac_ct_RANLIB=$RANLIB
3845 # Extract the first word of "ranlib", so it can be a program name with args.
3846 set dummy ranlib; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 if test -n "$ac_ct_RANLIB"; then
3853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_RANLIB="ranlib"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3865 fi
3866 done
3867 done
3868
3869 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3870 fi
3871 fi
3872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3873 if test -n "$ac_ct_RANLIB"; then
3874 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881 RANLIB=$ac_ct_RANLIB
3882 else
3883 RANLIB="$ac_cv_prog_RANLIB"
3884 fi
3885
3886
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3893 # AIX /bin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 # Account for people who put trailing slashes in PATH elements.
3912 case $as_dir/ in
3913 ./ | .// | /cC/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3916 /usr/ucb/* ) ;;
3917 *)
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3920 # by default.
3921 for ac_prog in ginstall scoinst install; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3924 if test $ac_prog = install &&
3925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3927 :
3928 elif test $ac_prog = install &&
3929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3931 :
3932 else
3933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3934 break 3
3935 fi
3936 fi
3937 done
3938 done
3939 ;;
3940 esac
3941 done
3942
3943
3944 fi
3945 if test "${ac_cv_path_install+set}" = set; then
3946 INSTALL=$ac_cv_path_install
3947 else
3948 # As a last resort, use the slow shell script. We don't cache a
3949 # path for INSTALL within a source directory, because that will
3950 # break other packages using the cache if that directory is
3951 # removed, or if the path is relative.
3952 INSTALL=$ac_install_sh
3953 fi
3954 fi
3955 echo "$as_me:$LINENO: result: $INSTALL" >&5
3956 echo "${ECHO_T}$INSTALL" >&6
3957
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3961
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3963
3964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3965
3966
3967 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3968 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3969 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3970 if test "${enable_maintainer_mode+set}" = set; then
3971 enableval="$enable_maintainer_mode"
3972 USE_MAINTAINER_MODE=$enableval
3973 else
3974 USE_MAINTAINER_MODE=no
3975 fi;
3976 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3977 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3978
3979
3980 if test $USE_MAINTAINER_MODE = yes; then
3981 MAINTAINER_MODE_TRUE=
3982 MAINTAINER_MODE_FALSE='#'
3983 else
3984 MAINTAINER_MODE_TRUE='#'
3985 MAINTAINER_MODE_FALSE=
3986 fi
3987
3988 MAINT=$MAINTAINER_MODE_TRUE
3989
3990
3991
3992
3993
3994 # configure.host sets the following important variables
3995 # libgcj_cflags - host specific C compiler flags
3996 # libgcj_cxxflags - host specific C++ compiler flags
3997 # libgcj_javaflags - host specific Java compiler flags
3998
3999 libgcj_cflags=
4000 libgcj_cxxflags=
4001 libgcj_javaflags=
4002
4003 . ${srcdir}/configure.host
4004
4005 LIBGCJ_CFLAGS="${libgcj_cflags}"
4006 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4007 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4008 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4009
4010
4011
4012
4013
4014 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4015
4016
4017
4018 # See if the user has requested runtime debugging.
4019 LIBGCJDEBUG="disable"
4020
4021 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4022 if test "${enable_libgcj_debug+set}" = set; then
4023 enableval="$enable_libgcj_debug"
4024 if test "$enable_libgcj_debug" = yes; then
4025
4026 cat >>confdefs.h <<\_ACEOF
4027 #define DEBUG 1
4028 _ACEOF
4029
4030 LIBGCJDEBUG="enable"
4031 fi
4032 fi;
4033
4034 # Determine which AWT peer libraries to build
4035 # Check whether --enable-java-awt or --disable-java-awt was given.
4036 if test "${enable_java_awt+set}" = set; then
4037 enableval="$enable_java_awt"
4038
4039 fi;
4040
4041 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4042 use_xlib_awt=""
4043 use_gtk_awt=""
4044 # The default toolkit to use is the first one specified.
4045 TOOLKIT=
4046
4047
4048 for peer in $peerlibs ; do
4049 case $peer in
4050 xlib)
4051 if test "$no_x" = yes; then
4052 echo "*** xlib peers requested but no X library available" 1>&2
4053 exit 1
4054 else
4055 use_xlib_awt="yes"
4056 if test -z "$TOOLKIT"; then
4057 TOOLKIT=gnu.awt.xlib.XToolkit
4058 fi
4059 fi
4060 ;;
4061 gtk)
4062 if test "$no_x" = yes; then
4063 echo "*** xlib peers requested but no X library available" 1>&2
4064 exit 1
4065 else
4066 use_gtk_awt=yes
4067 if test -z "$TOOLKIT"; then
4068 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4069 fi
4070 fi
4071 ;;
4072 no)
4073 use_xlib_awt=
4074 use_gtk_awt=
4075 break
4076 ;;
4077 *)
4078 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4079 exit 1
4080 esac
4081 done
4082
4083
4084
4085 if test "$use_xlib_awt" = yes; then
4086 XLIB_AWT_TRUE=
4087 XLIB_AWT_FALSE='#'
4088 else
4089 XLIB_AWT_TRUE='#'
4090 XLIB_AWT_FALSE=
4091 fi
4092
4093
4094
4095 if test "$use_gtk_awt" = yes; then
4096 GTK_AWT_TRUE=
4097 GTK_AWT_FALSE='#'
4098 else
4099 GTK_AWT_TRUE='#'
4100 GTK_AWT_FALSE=
4101 fi
4102
4103
4104 # Create standard.omit based on decisions we just made.
4105 cp $srcdir/standard.omit.in standard.omit
4106 if test "$use_xlib_awt" != yes; then
4107 echo gnu/awt/xlib >> standard.omit
4108 echo gnu/gcj/xlib >> standard.omit
4109 fi
4110 if test "$use_gtk_awt" != yes; then
4111 echo gnu/java/awt/peer/gtk >> standard.omit
4112 fi
4113
4114 if test -z "${with_multisubdir}"; then
4115 builddotdot=.
4116 else
4117 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4118 fi
4119
4120 NATIVE=yes
4121
4122 # Which gcj do we use?
4123 which_gcj=default
4124 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4125 if test -n "${with_cross_host}"; then
4126 # We are being configured with a cross compiler. We can't
4127 # use ac_exeext, because that is for the target platform.
4128 NATIVE=no
4129 cross_host_exeext=
4130 case "${with_cross_host}" in
4131 *mingw* | *cygwin*)
4132 cross_host_exeext=.exe
4133 ;;
4134 esac
4135 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4136 if test x"$build_noncanonical" = x"$with_cross_host"; then
4137 # Ordinary cross (host!=target and host=build)
4138 which_gcj=built
4139 else
4140 # Canadian cross (host!=target and host!=build)
4141 which_gcj=cross
4142 fi
4143 else
4144 which_gcj=cross
4145 fi
4146 else
4147 # We are being configured with a native or crossed-native compiler
4148 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4149 if test x"$build" = x"$host"; then
4150 # True native build (host=target and host=build)
4151 which_gcj=built
4152 else
4153 # Crossed-native build (host=target and host!=build)
4154 which_gcj=cross
4155 fi
4156 else
4157 which_gcj=path
4158 fi
4159 fi
4160 case "${which_gcj}" in
4161 built)
4162 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4163 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4164 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4165 ;;
4166 cross)
4167 if test "x${with_newlib}" = "xyes"; then
4168 # FIXME (comment): Why is this needed?
4169 GCC_UNWIND_INCLUDE=
4170 GCJ="${target_noncanonical}-gcj"
4171 else
4172 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4173 fi
4174 ZIP='$(target_noncanonical)-fastjar'
4175 GCJH='$(target_noncanonical)-gcjh'
4176 ;;
4177 path)
4178 GCJ="gcj -B`${PWDCMD-pwd}`/"
4179 ## In this case, gcj is found outside the build tree. However, zip is
4180 ## found in the build tree.
4181 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4182 GCJH=gcjh
4183 ;;
4184 esac
4185
4186
4187
4188
4189 # Create it, so that compile/link tests don't fail
4190 test -f libgcj.spec || touch libgcj.spec
4191
4192
4193
4194 # Set up to configure Classpath.
4195 # FIXME: no supported way to pass args in autoconf.
4196 ac_configure_args="$ac_configure_args --disable-load-library"
4197 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4198 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4199 dir1=`cd $srcdir && pwd`
4200 dir2=`pwd`
4201 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4202 ac_configure_args="$ac_configure_args --disable-core-jni"
4203 ac_configure_args="$ac_configure_args --disable-examples"
4204 ac_configure_args="$ac_configure_args --with-glibj=build"
4205 if test "$use_gtk_awt" != yes; then
4206 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4207 fi
4208
4209 # Only use libltdl for non-newlib builds.
4210 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4211 case $enable_ltdl_convenience in
4212 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4213 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4214 { (exit 1); exit 1; }; } ;;
4215 "") enable_ltdl_convenience=yes
4216 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4217 esac
4218 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4219 INCLTDL='-I${top_srcdir}/''libltdl'
4220
4221
4222 DIRLTDL=libltdl
4223
4224 cat >>confdefs.h <<\_ACEOF
4225 #define USE_LTDL 1
4226 _ACEOF
4227
4228 # Sigh. Libtool's macro doesn't do the right thing.
4229 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4230 # FIXME: this is a hack.
4231 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4232 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4233 fi
4234
4235
4236
4237 # Check whether --enable-shared or --disable-shared was given.
4238 if test "${enable_shared+set}" = set; then
4239 enableval="$enable_shared"
4240 p=${PACKAGE-default}
4241 case $enableval in
4242 yes) enable_shared=yes ;;
4243 no) enable_shared=no ;;
4244 *)
4245 enable_shared=no
4246 # Look at the argument we got. We use all the common list separators.
4247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4248 for pkg in $enableval; do
4249 if test "X$pkg" = "X$p"; then
4250 enable_shared=yes
4251 fi
4252 done
4253 IFS="$ac_save_ifs"
4254 ;;
4255 esac
4256 else
4257 enable_shared=yes
4258 fi;
4259 # Check whether --enable-static or --disable-static was given.
4260 if test "${enable_static+set}" = set; then
4261 enableval="$enable_static"
4262 p=${PACKAGE-default}
4263 case $enableval in
4264 yes) enable_static=yes ;;
4265 no) enable_static=no ;;
4266 *)
4267 enable_static=no
4268 # Look at the argument we got. We use all the common list separators.
4269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4270 for pkg in $enableval; do
4271 if test "X$pkg" = "X$p"; then
4272 enable_static=yes
4273 fi
4274 done
4275 IFS="$ac_save_ifs"
4276 ;;
4277 esac
4278 else
4279 enable_static=yes
4280 fi;
4281 # Check whether --enable-fast-install or --disable-fast-install was given.
4282 if test "${enable_fast_install+set}" = set; then
4283 enableval="$enable_fast_install"
4284 p=${PACKAGE-default}
4285 case $enableval in
4286 yes) enable_fast_install=yes ;;
4287 no) enable_fast_install=no ;;
4288 *)
4289 enable_fast_install=no
4290 # Look at the argument we got. We use all the common list separators.
4291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4292 for pkg in $enableval; do
4293 if test "X$pkg" = "X$p"; then
4294 enable_fast_install=yes
4295 fi
4296 done
4297 IFS="$ac_save_ifs"
4298 ;;
4299 esac
4300 else
4301 enable_fast_install=yes
4302 fi;
4303
4304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4305 if test "${with_gnu_ld+set}" = set; then
4306 withval="$with_gnu_ld"
4307 test "$withval" = no || with_gnu_ld=yes
4308 else
4309 with_gnu_ld=no
4310 fi;
4311 ac_prog=ld
4312 if test "$GCC" = yes; then
4313 # Check if gcc -print-prog-name=ld gives a path.
4314 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4315 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4316 case $host in
4317 *-*-mingw*)
4318 # gcc leaves a trailing carriage return which upsets mingw
4319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4320 *)
4321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4322 esac
4323 case $ac_prog in
4324 # Accept absolute paths.
4325 [\\/]* | [A-Za-z]:[\\/]*)
4326 re_direlt='/[^/][^/]*/\.\./'
4327 # Canonicalize the path of ld
4328 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4329 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4330 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4331 done
4332 test -z "$LD" && LD="$ac_prog"
4333 ;;
4334 "")
4335 # If it fails, then pretend we aren't using GCC.
4336 ac_prog=ld
4337 ;;
4338 *)
4339 # If it is relative, then search for the first ld in PATH.
4340 with_gnu_ld=unknown
4341 ;;
4342 esac
4343 elif test "$with_gnu_ld" = yes; then
4344 echo "$as_me:$LINENO: checking for GNU ld" >&5
4345 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4346 else
4347 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4348 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4349 fi
4350 if test "${lt_cv_path_LD+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 if test -z "$LD"; then
4354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4355 for ac_dir in $PATH; do
4356 test -z "$ac_dir" && ac_dir=.
4357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4358 lt_cv_path_LD="$ac_dir/$ac_prog"
4359 # Check to see if the program is GNU ld. I'd rather use --version,
4360 # but apparently some GNU ld's only accept -v.
4361 # Break only if it was the GNU/non-GNU ld that we prefer.
4362 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4363 test "$with_gnu_ld" != no && break
4364 else
4365 test "$with_gnu_ld" != yes && break
4366 fi
4367 fi
4368 done
4369 IFS="$ac_save_ifs"
4370 else
4371 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4372 fi
4373 fi
4374
4375 LD="$lt_cv_path_LD"
4376 if test -n "$LD"; then
4377 echo "$as_me:$LINENO: result: $LD" >&5
4378 echo "${ECHO_T}$LD" >&6
4379 else
4380 echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4382 fi
4383 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4384 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4385 { (exit 1); exit 1; }; }
4386 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4387 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4388 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4392 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4393 lt_cv_prog_gnu_ld=yes
4394 else
4395 lt_cv_prog_gnu_ld=no
4396 fi
4397 fi
4398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4400 with_gnu_ld=$lt_cv_prog_gnu_ld
4401
4402
4403 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4404 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4405 if test "${lt_cv_ld_reload_flag+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 lt_cv_ld_reload_flag='-r'
4409 fi
4410 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4411 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4412 reload_flag=$lt_cv_ld_reload_flag
4413 test -n "$reload_flag" && reload_flag=" $reload_flag"
4414
4415 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4416 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4417 if test "${lt_cv_path_NM+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 if test -n "$NM"; then
4421 # Let the user override the test.
4422 lt_cv_path_NM="$NM"
4423 else
4424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4425 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4426 test -z "$ac_dir" && ac_dir=.
4427 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4428 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4429 # Check to see if the nm accepts a BSD-compat flag.
4430 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4431 # nm: unknown option "B" ignored
4432 # Tru64's nm complains that /dev/null is an invalid object file
4433 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4434 lt_cv_path_NM="$tmp_nm -B"
4435 break
4436 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4437 lt_cv_path_NM="$tmp_nm -p"
4438 break
4439 else
4440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4441 continue # so that we can try to find one that supports BSD flags
4442 fi
4443 fi
4444 done
4445 IFS="$ac_save_ifs"
4446 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4447 fi
4448 fi
4449
4450 NM="$lt_cv_path_NM"
4451 echo "$as_me:$LINENO: result: $NM" >&5
4452 echo "${ECHO_T}$NM" >&6
4453
4454 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4455 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4456 if test "${lt_cv_deplibs_check_method+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 lt_cv_file_magic_cmd='$MAGIC_CMD'
4460 lt_cv_file_magic_test_file=
4461 lt_cv_deplibs_check_method='unknown'
4462 # Need to set the preceding variable on all platforms that support
4463 # interlibrary dependencies.
4464 # 'none' -- dependencies not supported.
4465 # `unknown' -- same as none, but documents that we really don't know.
4466 # 'pass_all' -- all dependencies passed with no checks.
4467 # 'test_compile' -- check by making test program.
4468 # 'file_magic [regex]' -- check by looking for files in library path
4469 # which responds to the $file_magic_cmd with a given egrep regex.
4470 # If you have `file' or equivalent on your system and you're not sure
4471 # whether `pass_all' will *always* work, you probably want this one.
4472
4473 case $host_os in
4474 aix*)
4475 lt_cv_deplibs_check_method=pass_all
4476 ;;
4477
4478 beos*)
4479 lt_cv_deplibs_check_method=pass_all
4480 ;;
4481
4482 bsdi4*)
4483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4484 lt_cv_file_magic_cmd='/usr/bin/file -L'
4485 lt_cv_file_magic_test_file=/shlib/libc.so
4486 ;;
4487
4488 cygwin* | mingw* |pw32*)
4489 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4490 lt_cv_file_magic_cmd='$OBJDUMP -f'
4491 ;;
4492
4493 darwin* | rhapsody*)
4494 # this will be overwritten by pass_all, but leave it in just in case
4495 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4496 lt_cv_file_magic_cmd='/usr/bin/file -L'
4497 case "$host_os" in
4498 rhapsody* | darwin1.012)
4499 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4500 ;;
4501 *) # Darwin 1.3 on
4502 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4503 ;;
4504 esac
4505 lt_cv_deplibs_check_method=pass_all
4506 ;;
4507
4508 freebsd* | kfreebsd*-gnu)
4509 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4510 case $host_cpu in
4511 i*86 )
4512 # Not sure whether the presence of OpenBSD here was a mistake.
4513 # Let's accept both of them until this is cleared up.
4514 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4515 lt_cv_file_magic_cmd=/usr/bin/file
4516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4517 ;;
4518 esac
4519 else
4520 lt_cv_deplibs_check_method=pass_all
4521 fi
4522 ;;
4523
4524 gnu*)
4525 lt_cv_deplibs_check_method=pass_all
4526 ;;
4527
4528 hpux10.20*|hpux11*)
4529 case $host_cpu in
4530 hppa*)
4531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4532 lt_cv_file_magic_cmd=/usr/bin/file
4533 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4534 ;;
4535 ia64*)
4536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4537 lt_cv_file_magic_cmd=/usr/bin/file
4538 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4539 ;;
4540 esac
4541 ;;
4542
4543 irix5* | irix6*)
4544 case $host_os in
4545 irix5*)
4546 # this will be overridden with pass_all, but let us keep it just in case
4547 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4548 ;;
4549 *)
4550 case $LD in
4551 *-32|*"-32 ") libmagic=32-bit;;
4552 *-n32|*"-n32 ") libmagic=N32;;
4553 *-64|*"-64 ") libmagic=64-bit;;
4554 *) libmagic=never-match;;
4555 esac
4556 # this will be overridden with pass_all, but let us keep it just in case
4557 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4558 ;;
4559 esac
4560 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4561 lt_cv_deplibs_check_method=pass_all
4562 ;;
4563
4564 # This must be Linux ELF.
4565 linux-gnu*)
4566 lt_cv_deplibs_check_method=pass_all
4567 ;;
4568
4569 netbsd* | knetbsd*-gnu)
4570 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4571 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4572 else
4573 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4574 fi
4575 ;;
4576
4577 newsos6)
4578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4579 lt_cv_file_magic_cmd=/usr/bin/file
4580 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4581 ;;
4582
4583 osf3* | osf4* | osf5*)
4584 # this will be overridden with pass_all, but let us keep it just in case
4585 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4586 lt_cv_file_magic_test_file=/shlib/libc.so
4587 lt_cv_deplibs_check_method=pass_all
4588 ;;
4589
4590 sco3.2v5*)
4591 lt_cv_deplibs_check_method=pass_all
4592 ;;
4593
4594 solaris*)
4595 lt_cv_deplibs_check_method=pass_all
4596 lt_cv_file_magic_test_file=/lib/libc.so
4597 ;;
4598
4599 sysv5uw[78]* | sysv4*uw2*)
4600 lt_cv_deplibs_check_method=pass_all
4601 ;;
4602
4603 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4604 case $host_vendor in
4605 ncr)
4606 lt_cv_deplibs_check_method=pass_all
4607 ;;
4608 motorola)
4609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4611 ;;
4612 esac
4613 ;;
4614 esac
4615
4616 fi
4617 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4618 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4619 file_magic_cmd=$lt_cv_file_magic_cmd
4620 deplibs_check_method=$lt_cv_deplibs_check_method
4621
4622
4623
4624
4625 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4626
4627 # find the maximum length of command line arguments
4628 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4629 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4630 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 i=0
4634 teststring="ABCD"
4635
4636 case $build_os in
4637 msdosdjgpp*)
4638 # On DJGPP, this test can blow up pretty badly due to problems in libc
4639 # (any single argument exceeding 2000 bytes causes a buffer overrun
4640 # during glob expansion). Even if it were fixed, the result of this
4641 # check would be larger than it should be.
4642 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4643 ;;
4644
4645 cygwin* | mingw*)
4646 # On Win9x/ME, this test blows up -- it succeeds, but takes
4647 # about 5 minutes as the teststring grows exponentially.
4648 # Worse, since 9x/ME are not pre-emptively multitasking,
4649 # you end up with a "frozen" computer, even though with patience
4650 # the test eventually succeeds (with a max line length of 256k).
4651 # Instead, let's just punt: use the minimum linelength reported by
4652 # all of the supported platforms: 8192 (on NT/2K/XP).
4653 lt_cv_sys_max_cmd_len=8192;
4654 ;;
4655
4656 amigaos*)
4657 # On AmigaOS with pdksh, this test takes hours, literally.
4658 # So we just punt and use a minimum line length of 8192.
4659 lt_cv_sys_max_cmd_len=8192;
4660 ;;
4661
4662 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4663 # This has been around since 386BSD, at least. Likely further.
4664 if test -x /sbin/sysctl; then
4665 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4666 elif test -x /usr/sbin/sysctl; then
4667 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4668 else
4669 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4670 fi
4671 # And add a safety zone
4672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4674 ;;
4675 esac
4676
4677 fi
4678
4679 if test -n "$lt_cv_sys_max_cmd_len" ; then
4680 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4681 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4682 else
4683 echo "$as_me:$LINENO: result: none" >&5
4684 echo "${ECHO_T}none" >&6
4685 fi
4686
4687
4688 # Only perform the check for file, if the check method requires it
4689 case $deplibs_check_method in
4690 file_magic*)
4691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4692 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4693 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 case $MAGIC_CMD in
4698 /*)
4699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4700 ;;
4701 ?:/*)
4702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4703 ;;
4704 *)
4705 ac_save_MAGIC_CMD="$MAGIC_CMD"
4706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4707 ac_dummy="/usr/bin:$PATH"
4708 for ac_dir in $ac_dummy; do
4709 test -z "$ac_dir" && ac_dir=.
4710 if test -f $ac_dir/${ac_tool_prefix}file; then
4711 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4712 if test -n "$file_magic_test_file"; then
4713 case $deplibs_check_method in
4714 "file_magic "*)
4715 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4718 egrep "$file_magic_regex" > /dev/null; then
4719 :
4720 else
4721 cat <<EOF 1>&2
4722
4723 *** Warning: the command libtool uses to detect shared libraries,
4724 *** $file_magic_cmd, produces output that libtool cannot recognize.
4725 *** The result is that libtool may fail to recognize shared libraries
4726 *** as such. This will affect the creation of libtool libraries that
4727 *** depend on shared libraries, but programs linked with such libtool
4728 *** libraries will work regardless of this problem. Nevertheless, you
4729 *** may want to report the problem to your system manager and/or to
4730 *** bug-libtool@gnu.org
4731
4732 EOF
4733 fi ;;
4734 esac
4735 fi
4736 break
4737 fi
4738 done
4739 IFS="$ac_save_ifs"
4740 MAGIC_CMD="$ac_save_MAGIC_CMD"
4741 ;;
4742 esac
4743 fi
4744
4745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4746 if test -n "$MAGIC_CMD"; then
4747 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4748 echo "${ECHO_T}$MAGIC_CMD" >&6
4749 else
4750 echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4752 fi
4753
4754 if test -z "$lt_cv_path_MAGIC_CMD"; then
4755 if test -n "$ac_tool_prefix"; then
4756 echo "$as_me:$LINENO: checking for file" >&5
4757 echo $ECHO_N "checking for file... $ECHO_C" >&6
4758 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 case $MAGIC_CMD in
4762 /*)
4763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4764 ;;
4765 ?:/*)
4766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4767 ;;
4768 *)
4769 ac_save_MAGIC_CMD="$MAGIC_CMD"
4770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4771 ac_dummy="/usr/bin:$PATH"
4772 for ac_dir in $ac_dummy; do
4773 test -z "$ac_dir" && ac_dir=.
4774 if test -f $ac_dir/file; then
4775 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4776 if test -n "$file_magic_test_file"; then
4777 case $deplibs_check_method in
4778 "file_magic "*)
4779 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4782 egrep "$file_magic_regex" > /dev/null; then
4783 :
4784 else
4785 cat <<EOF 1>&2
4786
4787 *** Warning: the command libtool uses to detect shared libraries,
4788 *** $file_magic_cmd, produces output that libtool cannot recognize.
4789 *** The result is that libtool may fail to recognize shared libraries
4790 *** as such. This will affect the creation of libtool libraries that
4791 *** depend on shared libraries, but programs linked with such libtool
4792 *** libraries will work regardless of this problem. Nevertheless, you
4793 *** may want to report the problem to your system manager and/or to
4794 *** bug-libtool@gnu.org
4795
4796 EOF
4797 fi ;;
4798 esac
4799 fi
4800 break
4801 fi
4802 done
4803 IFS="$ac_save_ifs"
4804 MAGIC_CMD="$ac_save_MAGIC_CMD"
4805 ;;
4806 esac
4807 fi
4808
4809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4810 if test -n "$MAGIC_CMD"; then
4811 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4812 echo "${ECHO_T}$MAGIC_CMD" >&6
4813 else
4814 echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6
4816 fi
4817
4818 else
4819 MAGIC_CMD=:
4820 fi
4821 fi
4822
4823 fi
4824 ;;
4825 esac
4826
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_RANLIB+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 if test -n "$RANLIB"; then
4836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849 done
4850 done
4851
4852 fi
4853 fi
4854 RANLIB=$ac_cv_prog_RANLIB
4855 if test -n "$RANLIB"; then
4856 echo "$as_me:$LINENO: result: $RANLIB" >&5
4857 echo "${ECHO_T}$RANLIB" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4861 fi
4862
4863 fi
4864 if test -z "$ac_cv_prog_RANLIB"; then
4865 ac_ct_RANLIB=$RANLIB
4866 # Extract the first word of "ranlib", so it can be a program name with args.
4867 set dummy ranlib; ac_word=$2
4868 echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873 if test -n "$ac_ct_RANLIB"; then
4874 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_RANLIB="ranlib"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887 done
4888 done
4889
4890 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4891 fi
4892 fi
4893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4894 if test -n "$ac_ct_RANLIB"; then
4895 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4896 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4897 else
4898 echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6
4900 fi
4901
4902 RANLIB=$ac_ct_RANLIB
4903 else
4904 RANLIB="$ac_cv_prog_RANLIB"
4905 fi
4906
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}strip; ac_word=$2
4910 echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4912 if test "${ac_cv_prog_STRIP+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 if test -n "$STRIP"; then
4916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929 done
4930 done
4931
4932 fi
4933 fi
4934 STRIP=$ac_cv_prog_STRIP
4935 if test -n "$STRIP"; then
4936 echo "$as_me:$LINENO: result: $STRIP" >&5
4937 echo "${ECHO_T}$STRIP" >&6
4938 else
4939 echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6
4941 fi
4942
4943 fi
4944 if test -z "$ac_cv_prog_STRIP"; then
4945 ac_ct_STRIP=$STRIP
4946 # Extract the first word of "strip", so it can be a program name with args.
4947 set dummy strip; ac_word=$2
4948 echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4950 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 if test -n "$ac_ct_STRIP"; then
4954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963 ac_cv_prog_ac_ct_STRIP="strip"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967 done
4968 done
4969
4970 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4971 fi
4972 fi
4973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4974 if test -n "$ac_ct_STRIP"; then
4975 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4976 echo "${ECHO_T}$ac_ct_STRIP" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6
4980 fi
4981
4982 STRIP=$ac_ct_STRIP
4983 else
4984 STRIP="$ac_cv_prog_STRIP"
4985 fi
4986
4987
4988 # Check for any special flags to pass to ltconfig.
4989 libtool_flags="--cache-file=$cache_file"
4990 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4991 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4992 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4993 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4994 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4995
4996
4997 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4998 if test "${enable_libtool_lock+set}" = set; then
4999 enableval="$enable_libtool_lock"
5000
5001 fi;
5002 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5003 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5004
5005
5006 # Check whether --with-pic or --without-pic was given.
5007 if test "${with_pic+set}" = set; then
5008 withval="$with_pic"
5009 pic_mode="$withval"
5010 else
5011 pic_mode=default
5012 fi;
5013 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5014 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5015
5016 # Some flags need to be propagated to the compiler or linker for good
5017 # libtool support.
5018 case $host in
5019 *-*-irix6*)
5020 # Find out which ABI we are using.
5021 echo '#line 5021 "configure"' > conftest.$ac_ext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; then
5027 if test "$lt_cv_prog_gnu_ld" = yes; then
5028 case `/usr/bin/file conftest.$ac_objext` in
5029 *32-bit*)
5030 LD="${LD-ld} -melf32bsmip"
5031 ;;
5032 *N32*)
5033 LD="${LD-ld} -melf32bmipn32"
5034 ;;
5035 *64-bit*)
5036 LD="${LD-ld} -melf64bmip"
5037 ;;
5038 esac
5039 else
5040 case `/usr/bin/file conftest.$ac_objext` in
5041 *32-bit*)
5042 LD="${LD-ld} -32"
5043 ;;
5044 *N32*)
5045 LD="${LD-ld} -n32"
5046 ;;
5047 *64-bit*)
5048 LD="${LD-ld} -64"
5049 ;;
5050 esac
5051 fi
5052 fi
5053 rm -rf conftest*
5054 ;;
5055
5056 ia64-*-hpux*)
5057 # Find out which ABI we are using.
5058 echo 'int i;' > conftest.$ac_ext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; then
5064 case "`/usr/bin/file conftest.o`" in
5065 *ELF-32*)
5066 HPUX_IA64_MODE="32"
5067 ;;
5068 *ELF-64*)
5069 HPUX_IA64_MODE="64"
5070 ;;
5071 esac
5072 fi
5073 rm -rf conftest*
5074 ;;
5075
5076 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5077 # Find out which ABI we are using.
5078 echo 'int i;' > conftest.$ac_ext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080 (eval $ac_compile) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; then
5084 case "`/usr/bin/file conftest.o`" in
5085 *32-bit*)
5086 case $host in
5087 x86_64-*linux*)
5088 LD="${LD-ld} -m elf_i386"
5089 ;;
5090 ppc64-*linux*|powerpc64-*linux*)
5091 LD="${LD-ld} -m elf32ppclinux"
5092 ;;
5093 s390x-*linux*)
5094 LD="${LD-ld} -m elf_s390"
5095 ;;
5096 sparc64-*linux*)
5097 LD="${LD-ld} -m elf32_sparc"
5098 ;;
5099 esac
5100 ;;
5101 *64-bit*)
5102 case $host in
5103 x86_64-*linux*)
5104 LD="${LD-ld} -m elf_x86_64"
5105 ;;
5106 ppc*-*linux*|powerpc*-*linux*)
5107 LD="${LD-ld} -m elf64ppc"
5108 ;;
5109 s390*-*linux*)
5110 LD="${LD-ld} -m elf64_s390"
5111 ;;
5112 sparc*-*linux*)
5113 LD="${LD-ld} -m elf64_sparc"
5114 ;;
5115 esac
5116 ;;
5117 esac
5118 fi
5119 rm -rf conftest*
5120 ;;
5121
5122 *-*-sco3.2v5*)
5123 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5124 SAVE_CFLAGS="$CFLAGS"
5125 CFLAGS="$CFLAGS -belf"
5126 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5127 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5128 if test "${lt_cv_cc_needs_belf+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131
5132
5133 ac_ext=c
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138
5139 if test x$gcc_no_link = xyes; then
5140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5142 { (exit 1); exit 1; }; }
5143 fi
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150
5151 int
5152 main ()
5153 {
5154
5155 ;
5156 return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -z "$ac_c_werror_flag"
5169 || test ! -s conftest.err'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; } &&
5175 { ac_try='test -s conftest$ac_exeext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 (eval $ac_try) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 lt_cv_cc_needs_belf=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 lt_cv_cc_needs_belf=no
5187 fi
5188 rm -f conftest.err conftest.$ac_objext \
5189 conftest$ac_exeext conftest.$ac_ext
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195
5196 fi
5197 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5198 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5199 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5200 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5201 CFLAGS="$SAVE_CFLAGS"
5202 fi
5203 ;;
5204
5205
5206 esac
5207
5208
5209 # Save cache, so that ltconfig can load it
5210 cat >confcache <<\_ACEOF
5211 # This file is a shell script that caches the results of configure
5212 # tests run on this system so they can be shared between configure
5213 # scripts and configure runs, see configure's option --config-cache.
5214 # It is not useful on other systems. If it contains results you don't
5215 # want to keep, you may remove or edit it.
5216 #
5217 # config.status only pays attention to the cache file if you give it
5218 # the --recheck option to rerun configure.
5219 #
5220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5222 # following values.
5223
5224 _ACEOF
5225
5226 # The following way of writing the cache mishandles newlines in values,
5227 # but we know of no workaround that is simple, portable, and efficient.
5228 # So, don't put newlines in cache variables' values.
5229 # Ultrix sh set writes to stderr and can't be redirected directly,
5230 # and sets the high bit in the cache file unless we assign to the vars.
5231 {
5232 (set) 2>&1 |
5233 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5234 *ac_space=\ *)
5235 # `set' does not quote correctly, so add quotes (double-quote
5236 # substitution turns \\\\ into \\, and sed turns \\ into \).
5237 sed -n \
5238 "s/'/'\\\\''/g;
5239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5240 ;;
5241 *)
5242 # `set' quotes correctly as required by POSIX, so do not add quotes.
5243 sed -n \
5244 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5245 ;;
5246 esac;
5247 } |
5248 sed '
5249 t clear
5250 : clear
5251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5252 t end
5253 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5254 : end' >>confcache
5255 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5256 if test -w $cache_file; then
5257 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5258 cat confcache >$cache_file
5259 else
5260 echo "not updating unwritable cache $cache_file"
5261 fi
5262 fi
5263 rm -f confcache
5264
5265 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5266 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5267 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5268 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5269 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5270 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5271 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5272 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5273 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5274 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5275 echo "$as_me: error: libtool configure failed" >&2;}
5276 { (exit 1); exit 1; }; }
5277
5278 # Reload cache, that may have been modified by ltconfig
5279 if test -r "$cache_file"; then
5280 # Some versions of bash will fail to source /dev/null (special
5281 # files actually), so we avoid doing that.
5282 if test -f "$cache_file"; then
5283 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5284 echo "$as_me: loading cache $cache_file" >&6;}
5285 case $cache_file in
5286 [\\/]* | ?:[\\/]* ) . $cache_file;;
5287 *) . ./$cache_file;;
5288 esac
5289 fi
5290 else
5291 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5292 echo "$as_me: creating cache $cache_file" >&6;}
5293 >$cache_file
5294 fi
5295
5296
5297 # This can be used to rebuild libtool when needed
5298 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5299
5300 # Always use our own libtool.
5301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5302
5303 # Redirect the config.log output again, so that the ltconfig log is not
5304 # clobbered by the next message.
5305 exec 5>>./config.log
5306
5307 ac_ext=cc
5308 ac_cpp='$CXXCPP $CPPFLAGS'
5309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5312 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5313 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5314 if test -z "$CXXCPP"; then
5315 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 # Double quotes because CXXCPP needs to be expanded
5319 for CXXCPP in "$CXX -E" "/lib/cpp"
5320 do
5321 ac_preproc_ok=false
5322 for ac_cxx_preproc_warn_flag in '' yes
5323 do
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 #ifdef __STDC__
5337 # include <limits.h>
5338 #else
5339 # include <assert.h>
5340 #endif
5341 Syntax error
5342 _ACEOF
5343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev/null; then
5351 if test -s conftest.err; then
5352 ac_cpp_err=$ac_cxx_preproc_warn_flag
5353 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5354 else
5355 ac_cpp_err=
5356 fi
5357 else
5358 ac_cpp_err=yes
5359 fi
5360 if test -z "$ac_cpp_err"; then
5361 :
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 # Broken: fails on valid input.
5367 continue
5368 fi
5369 rm -f conftest.err conftest.$ac_ext
5370
5371 # OK, works on sane cases. Now check whether non-existent headers
5372 # can be detected and how.
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <ac_nonexistent.h>
5380 _ACEOF
5381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_cxx_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5392 else
5393 ac_cpp_err=
5394 fi
5395 else
5396 ac_cpp_err=yes
5397 fi
5398 if test -z "$ac_cpp_err"; then
5399 # Broken: success on invalid input.
5400 continue
5401 else
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 # Passes both tests.
5406 ac_preproc_ok=:
5407 break
5408 fi
5409 rm -f conftest.err conftest.$ac_ext
5410
5411 done
5412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5413 rm -f conftest.err conftest.$ac_ext
5414 if $ac_preproc_ok; then
5415 break
5416 fi
5417
5418 done
5419 ac_cv_prog_CXXCPP=$CXXCPP
5420
5421 fi
5422 CXXCPP=$ac_cv_prog_CXXCPP
5423 else
5424 ac_cv_prog_CXXCPP=$CXXCPP
5425 fi
5426 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5427 echo "${ECHO_T}$CXXCPP" >&6
5428 ac_preproc_ok=false
5429 for ac_cxx_preproc_warn_flag in '' yes
5430 do
5431 # Use a header file that comes with gcc, so configuring glibc
5432 # with a fresh cross-compiler works.
5433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5434 # <limits.h> exists even on freestanding compilers.
5435 # On the NeXT, cc -E runs the code through the compiler's parser,
5436 # not just through cpp. "Syntax error" is here to catch this case.
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #ifdef __STDC__
5444 # include <limits.h>
5445 #else
5446 # include <assert.h>
5447 #endif
5448 Syntax error
5449 _ACEOF
5450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } >/dev/null; then
5458 if test -s conftest.err; then
5459 ac_cpp_err=$ac_cxx_preproc_warn_flag
5460 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5461 else
5462 ac_cpp_err=
5463 fi
5464 else
5465 ac_cpp_err=yes
5466 fi
5467 if test -z "$ac_cpp_err"; then
5468 :
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 # Broken: fails on valid input.
5474 continue
5475 fi
5476 rm -f conftest.err conftest.$ac_ext
5477
5478 # OK, works on sane cases. Now check whether non-existent headers
5479 # can be detected and how.
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #include <ac_nonexistent.h>
5487 _ACEOF
5488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_cxx_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5499 else
5500 ac_cpp_err=
5501 fi
5502 else
5503 ac_cpp_err=yes
5504 fi
5505 if test -z "$ac_cpp_err"; then
5506 # Broken: success on invalid input.
5507 continue
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512 # Passes both tests.
5513 ac_preproc_ok=:
5514 break
5515 fi
5516 rm -f conftest.err conftest.$ac_ext
5517
5518 done
5519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520 rm -f conftest.err conftest.$ac_ext
5521 if $ac_preproc_ok; then
5522 :
5523 else
5524 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5525 See \`config.log' for more details." >&5
5526 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5527 See \`config.log' for more details." >&2;}
5528 { (exit 1); exit 1; }; }
5529 fi
5530
5531 ac_ext=c
5532 ac_cpp='$CPP $CPPFLAGS'
5533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5536
5537
5538
5539 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5540 lt_save_CC="$CC"
5541 lt_save_CFLAGS="$CFLAGS"
5542 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5543 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5544 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5545 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5546 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5547 deplibs_check_method="$deplibs_check_method" \
5548 file_magic_cmd="$file_magic_cmd" \
5549 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5550 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5551 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5552 echo "$as_me: error: libtool tag configuration failed" >&2;}
5553 { (exit 1); exit 1; }; }
5554 CC="$lt_save_CC"
5555 CFLAGS="$lt_save_CFLAGS"
5556
5557 # Redirect the config.log output again, so that the ltconfig log is not
5558 # clobbered by the next message.
5559 exec 5>>./config.log
5560
5561
5562
5563
5564
5565
5566
5567 for ac_prog in gcj
5568 do
5569 # Extract the first word of "$ac_prog", so it can be a program name with args.
5570 set dummy $ac_prog; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_prog_GCJ+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 if test -n "$GCJ"; then
5577 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_GCJ="$ac_prog"
5587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592
5593 fi
5594 fi
5595 GCJ=$ac_cv_prog_GCJ
5596 if test -n "$GCJ"; then
5597 echo "$as_me:$LINENO: result: $GCJ" >&5
5598 echo "${ECHO_T}$GCJ" >&6
5599 else
5600 echo "$as_me:$LINENO: result: no" >&5
5601 echo "${ECHO_T}no" >&6
5602 fi
5603
5604 test -n "$GCJ" && break
5605 done
5606 test -n "$GCJ" || GCJ="gcj"
5607
5608 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5609 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5610 { (exit 1); exit 1; }; }
5611 if test "x${GCJFLAGS-unset}" = xunset; then
5612 GCJFLAGS="-g -O2"
5613 fi
5614
5615
5616 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5617
5618 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5619 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5620 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5624 # We make a subdir and do the tests there. Otherwise we can end up
5625 # making bogus files that we don't know about and never remove. For
5626 # instance it was reported that on HP-UX the gcc test will end up
5627 # making a dummy file named `D' -- because `-MD' means `put the output
5628 # in D'.
5629 mkdir conftest.dir
5630 # Copy depcomp to subdir because otherwise we won't find it if we're
5631 # using a relative directory.
5632 cp "$am_depcomp" conftest.dir
5633 cd conftest.dir
5634 # We will build objects and dependencies in a subdirectory because
5635 # it helps to detect inapplicable dependency modes. For instance
5636 # both Tru64's cc and ICC support -MD to output dependencies as a
5637 # side effect of compilation, but ICC will put the dependencies in
5638 # the current directory while Tru64 will put them in the object
5639 # directory.
5640 mkdir sub
5641
5642 am_cv_GCJ_dependencies_compiler_type=none
5643 if test "$am_compiler_list" = ""; then
5644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5645 fi
5646 for depmode in $am_compiler_list; do
5647 # Setup a source with many dependencies, because some compilers
5648 # like to wrap large dependency lists on column 80 (with \), and
5649 # we should not choose a depcomp mode which is confused by this.
5650 #
5651 # We need to recreate these files for each test, as the compiler may
5652 # overwrite some of them when testing with obscure command lines.
5653 # This happens at least with the AIX C compiler.
5654 : > sub/conftest.c
5655 for i in 1 2 3 4 5 6; do
5656 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5657 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5658 # Solaris 8's {/usr,}/bin/sh.
5659 touch sub/conftst$i.h
5660 done
5661 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5662
5663 case $depmode in
5664 nosideeffect)
5665 # after this tag, mechanisms are not by side-effect, so they'll
5666 # only be used when explicitly requested
5667 if test "x$enable_dependency_tracking" = xyes; then
5668 continue
5669 else
5670 break
5671 fi
5672 ;;
5673 none) break ;;
5674 esac
5675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5676 # mode. It turns out that the SunPro C++ compiler does not properly
5677 # handle `-M -o', and we need to detect this.
5678 if depmode=$depmode \
5679 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5681 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5682 >/dev/null 2>conftest.err &&
5683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5684 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5686 # icc doesn't choke on unknown options, it will just issue warnings
5687 # or remarks (even with -Werror). So we grep stderr for any message
5688 # that says an option was ignored or not supported.
5689 # When given -MP, icc 7.0 and 7.1 complain thusly:
5690 # icc: Command line warning: ignoring option '-M'; no argument required
5691 # The diagnosis changed in icc 8.0:
5692 # icc: Command line remark: option '-MP' not supported
5693 if (grep 'ignoring option' conftest.err ||
5694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5695 am_cv_GCJ_dependencies_compiler_type=$depmode
5696 break
5697 fi
5698 fi
5699 done
5700
5701 cd ..
5702 rm -rf conftest.dir
5703 else
5704 am_cv_GCJ_dependencies_compiler_type=none
5705 fi
5706
5707 fi
5708 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5709 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5710 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5711
5712
5713
5714 if
5715 test "x$enable_dependency_tracking" != xno \
5716 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5717 am__fastdepGCJ_TRUE=
5718 am__fastdepGCJ_FALSE='#'
5719 else
5720 am__fastdepGCJ_TRUE='#'
5721 am__fastdepGCJ_FALSE=
5722 fi
5723
5724
5725
5726
5727 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5728 lt_save_CC="$CC"
5729 lt_save_CFLAGS="$CFLAGS"
5730 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5731 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5732 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5733 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5734 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5735 deplibs_check_method="$deplibs_check_method" \
5736 file_magic_cmd="$file_magic_cmd" \
5737 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5738 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5739 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5740 echo "$as_me: error: libtool tag configuration failed" >&2;}
5741 { (exit 1); exit 1; }; }
5742 CC="$lt_save_CC"
5743 CFLAGS="$lt_save_CFLAGS"
5744
5745 # Redirect the config.log output again, so that the ltconfig log is not
5746 # clobbered by the next message.
5747 exec 5>>./config.log
5748
5749
5750
5751 if test "x$CC" != xcc; then
5752 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5753 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5754 else
5755 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5756 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5757 fi
5758 set dummy $CC; ac_cc=`echo $2 |
5759 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5760 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769
5770 int
5771 main ()
5772 {
5773
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 # Make sure it works both with $CC and with simple cc.
5779 # We do the test twice because some compilers refuse to overwrite an
5780 # existing .o file with -o, though they will create one.
5781 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); };
5792 then
5793 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5794 if test "x$CC" != xcc; then
5795 # Test first that cc exists at all.
5796 if { ac_try='cc -c conftest.$ac_ext >&5'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5803 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); };
5813 then
5814 # cc works too.
5815 :
5816 else
5817 # cc exists but doesn't like -o.
5818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5819 fi
5820 fi
5821 fi
5822 else
5823 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5824 fi
5825 rm -f conftest*
5826
5827 fi
5828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5829 echo "$as_me:$LINENO: result: yes" >&5
5830 echo "${ECHO_T}yes" >&6
5831 else
5832 echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6
5834
5835 cat >>confdefs.h <<\_ACEOF
5836 #define NO_MINUS_C_MINUS_O 1
5837 _ACEOF
5838
5839 fi
5840
5841 # FIXME: we rely on the cache variable name because
5842 # there is no other way.
5843 set dummy $CC
5844 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5845 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5846 # Losing compiler, so override with the script.
5847 # FIXME: It is wrong to rewrite CC.
5848 # But if we don't then we get into trouble of one sort or another.
5849 # A longer-term fix would be to have automake use am__CC in this case,
5850 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5851 CC="$am_aux_dir/compile $CC"
5852 fi
5853
5854
5855
5856
5857 subdirs="$subdirs classpath libltdl"
5858
5859
5860 # The -no-testsuite modules omit the test subdir.
5861
5862
5863 if test -d $srcdir/testsuite; then
5864 TESTSUBDIR_TRUE=
5865 TESTSUBDIR_FALSE='#'
5866 else
5867 TESTSUBDIR_TRUE='#'
5868 TESTSUBDIR_FALSE=
5869 fi
5870
5871
5872 # Should the runtime set system properties by examining the
5873 # environment variable GCJ_PROPERTIES?
5874 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5875 if test "${enable_getenv_properties+set}" = set; then
5876 enableval="$enable_getenv_properties"
5877
5878 fi;
5879
5880 # Whether GCJ_PROPERTIES is used depends on the target.
5881 if test -z "$enable_getenv_properties"; then
5882 enable_getenv_properties=${enable_getenv_properties_default-yes}
5883 fi
5884 if test "$enable_getenv_properties" = no; then
5885
5886 cat >>confdefs.h <<\_ACEOF
5887 #define DISABLE_GETENV_PROPERTIES 1
5888 _ACEOF
5889
5890 fi
5891
5892 # Whether we should use arguments to main()
5893 if test -z "$enable_main_args"; then
5894 enable_main_args=${enable_main_args_default-yes}
5895 fi
5896 if test "$enable_main_args" = no; then
5897
5898 cat >>confdefs.h <<\_ACEOF
5899 #define DISABLE_MAIN_ARGS 1
5900 _ACEOF
5901
5902 fi
5903
5904
5905 # Should we use hashtable-based synchronization?
5906 # Currently works only for Linux X86/ia64
5907 # Typically faster and more space-efficient
5908 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5909 if test "${enable_hash_synchronization+set}" = set; then
5910 enableval="$enable_hash_synchronization"
5911
5912 fi;
5913
5914 if test -z "$enable_hash_synchronization"; then
5915 enable_hash_synchronization=$enable_hash_synchronization_default
5916 fi
5917
5918
5919 # Check whether --with-java-home or --without-java-home was given.
5920 if test "${with_java_home+set}" = set; then
5921 withval="$with_java_home"
5922 JAVA_HOME="${withval}"
5923 else
5924 JAVA_HOME=""
5925 fi;
5926
5927
5928 if test ! -z "$JAVA_HOME"; then
5929 JAVA_HOME_SET_TRUE=
5930 JAVA_HOME_SET_FALSE='#'
5931 else
5932 JAVA_HOME_SET_TRUE='#'
5933 JAVA_HOME_SET_FALSE=
5934 fi
5935
5936
5937
5938 # What is the native OS API for MinGW?
5939
5940 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5941 if test "${with_win32_nlsapi+set}" = set; then
5942 withval="$with_win32_nlsapi"
5943 case "${withval}" in
5944 ansi) with_win32_nlsapi=ansi ;;
5945 unicows) with_win32_nlsapi=unicows ;;
5946 unicode) with_win32_nlsapi=unicode ;;
5947 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5948 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5949 { (exit 1); exit 1; }; } ;;
5950 esac
5951 else
5952 with_win32_nlsapi=ansi
5953 fi;
5954
5955 case "${with_win32_nlsapi}" in
5956 unicows | unicode)
5957
5958 cat >>confdefs.h <<\_ACEOF
5959 #define MINGW_LIBGCJ_UNICODE 1
5960 _ACEOF
5961
5962 ;;
5963 esac
5964
5965 # configure.host sets slow_pthread_self if the synchronization code should
5966 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5967 if test "${slow_pthread_self}" = "yes"; then
5968
5969 cat >>confdefs.h <<\_ACEOF
5970 #define SLOW_PTHREAD_SELF 1
5971 _ACEOF
5972
5973 fi
5974
5975 # Check for gc debugging. This option is handled both here and in the GC.
5976 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5977 if test "${enable_gc_debug+set}" = set; then
5978 enableval="$enable_gc_debug"
5979 if test "$enable_gc_debug" = "yes"; then
5980
5981 cat >>confdefs.h <<\_ACEOF
5982 #define LIBGCJ_GC_DEBUG 1
5983 _ACEOF
5984
5985 fi
5986 fi;
5987
5988 # See if the user has the interpreter included.
5989 # Check whether --enable-interpreter or --disable-interpreter was given.
5990 if test "${enable_interpreter+set}" = set; then
5991 enableval="$enable_interpreter"
5992 if test "$enable_interpreter" = yes; then
5993 # This can also be set in configure.host.
5994 libgcj_interpreter=yes
5995 elif test "$enable_interpreter" = no; then
5996 libgcj_interpreter=no
5997 fi
5998 fi;
5999
6000 if test "$libgcj_interpreter" = yes; then
6001
6002 cat >>confdefs.h <<\_ACEOF
6003 #define INTERPRETER 1
6004 _ACEOF
6005
6006 fi
6007 INTERPRETER="$libgcj_interpreter"
6008
6009
6010 echo "$as_me:$LINENO: checking for exception model to use" >&5
6011 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6012 ac_ext=cc
6013 ac_cpp='$CXXCPP $CPPFLAGS'
6014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6017
6018 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6019 if test "${enable_sjlj_exceptions+set}" = set; then
6020 enableval="$enable_sjlj_exceptions"
6021 :
6022 else
6023 cat > conftest.$ac_ext << EOF
6024 #line 6024 "configure"
6025 struct S { ~S(); };
6026 void bar();
6027 void foo()
6028 {
6029 S s;
6030 bar();
6031 }
6032 EOF
6033 old_CXXFLAGS="$CXXFLAGS"
6034 CXXFLAGS=-S
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036 (eval $ac_compile) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; then
6040 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6041 enable_sjlj_exceptions=yes
6042 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6043 enable_sjlj_exceptions=no
6044 fi
6045 fi
6046 CXXFLAGS="$old_CXXFLAGS"
6047 rm -f conftest*
6048 fi;
6049 if test x$enable_sjlj_exceptions = xyes; then
6050
6051 cat >>confdefs.h <<\_ACEOF
6052 #define SJLJ_EXCEPTIONS 1
6053 _ACEOF
6054
6055 ac_exception_model_name=sjlj
6056 elif test x$enable_sjlj_exceptions = xno; then
6057 ac_exception_model_name="call frame"
6058 else
6059 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6060 echo "$as_me: error: unable to detect exception model" >&2;}
6061 { (exit 1); exit 1; }; }
6062 fi
6063 ac_ext=c
6064 ac_cpp='$CPP $CPPFLAGS'
6065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6068
6069 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6070 echo "${ECHO_T}$ac_exception_model_name" >&6
6071
6072 # If we are non using SJLJ exceptions, and this host does not have support
6073 # for unwinding from a signal handler, enable checked dereferences and divides.
6074 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6075 CHECKREFSPEC=-fcheck-references
6076 DIVIDESPEC=-fuse-divide-subroutine
6077 EXCEPTIONSPEC=
6078 fi
6079
6080 # See if the user wants to disable java.net. This is the mildly
6081 # ugly way that we admit that target-side configuration sucks.
6082 # Check whether --enable-java-net or --disable-java-net was given.
6083 if test "${enable_java_net+set}" = set; then
6084 enableval="$enable_java_net"
6085
6086 fi;
6087
6088 # Whether java.net is built by default can depend on the target.
6089 if test -z "$enable_java_net"; then
6090 enable_java_net=${enable_java_net_default-yes}
6091 fi
6092 if test "$enable_java_net" = no; then
6093
6094 cat >>confdefs.h <<\_ACEOF
6095 #define DISABLE_JAVA_NET 1
6096 _ACEOF
6097
6098 fi
6099
6100 # See if the user wants to configure without libffi. Some
6101 # architectures don't support it, and default values are set in
6102 # configure.host.
6103
6104 # Check whether --with-libffi or --without-libffi was given.
6105 if test "${with_libffi+set}" = set; then
6106 withval="$with_libffi"
6107 :
6108 else
6109 with_libffi=${with_libffi_default-yes}
6110 fi;
6111
6112 LIBFFI=
6113 LIBFFIINCS=
6114 if test "$with_libffi" != no; then
6115
6116 cat >>confdefs.h <<\_ACEOF
6117 #define USE_LIBFFI 1
6118 _ACEOF
6119
6120 LIBFFI=../libffi/libffi_convenience.la
6121 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6122 fi
6123
6124
6125
6126 # See if the user wants to disable JVMPI support.
6127 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6128 if test "${enable_jvmpi+set}" = set; then
6129 enableval="$enable_jvmpi"
6130
6131 fi;
6132
6133 if test "$enable_jvmpi" != no; then
6134
6135 cat >>confdefs.h <<\_ACEOF
6136 #define ENABLE_JVMPI 1
6137 _ACEOF
6138
6139 fi
6140
6141 # If the target is an eCos system, use the appropriate eCos
6142 # I/O routines.
6143 # FIXME: this should not be a local option but a global target
6144 # system; at present there is no eCos target.
6145 TARGET_ECOS=${PROCESS-"no"}
6146
6147 # Check whether --with-ecos or --without-ecos was given.
6148 if test "${with_ecos+set}" = set; then
6149 withval="$with_ecos"
6150 TARGET_ECOS="$with_ecos"
6151
6152 fi;
6153
6154 supply_backtrace=no
6155
6156 PLATFORM_INNER_NAT_HDRS=
6157 case "$TARGET_ECOS" in
6158 no) case "$host" in
6159 *mingw*)
6160 PLATFORM=Win32
6161 PLATFORMNET=Win32
6162 PLATFORMH=win32.h
6163
6164 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6165 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6166 LD_PROG=`$CC --print-prog-name=ld`
6167 LD_VERSION=`$LD_PROG --version`
6168 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6169 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6170 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6171 LD_OK="ok"
6172 else
6173 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6174 LD_OK="ok"
6175 fi
6176 fi
6177 if test "x$LD_OK" != x; then
6178 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6179 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6180 else
6181 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6182 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6183 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6184 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6185
6186 cat >>confdefs.h <<\_ACEOF
6187 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6188 _ACEOF
6189
6190 fi
6191 ;;
6192 *)
6193 PLATFORM=Posix
6194 PLATFORMNET=Posix
6195 PLATFORMH=posix.h
6196 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6197 ;;
6198 esac
6199 ;;
6200 *)
6201 PLATFORM=Ecos
6202 PLATFORMNET=NoNet
6203
6204 cat >>confdefs.h <<\_ACEOF
6205 #define ECOS 1
6206 _ACEOF
6207
6208 PLATFORMH=posix.h
6209 ;;
6210 esac
6211
6212 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6213
6214
6215 ac_ext=c
6216 ac_cpp='$CPP $CPPFLAGS'
6217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6221 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6222 # On Suns, sometimes $CPP names a directory.
6223 if test -n "$CPP" && test -d "$CPP"; then
6224 CPP=
6225 fi
6226 if test -z "$CPP"; then
6227 if test "${ac_cv_prog_CPP+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 # Double quotes because CPP needs to be expanded
6231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6232 do
6233 ac_preproc_ok=false
6234 for ac_c_preproc_warn_flag in '' yes
6235 do
6236 # Use a header file that comes with gcc, so configuring glibc
6237 # with a fresh cross-compiler works.
6238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6239 # <limits.h> exists even on freestanding compilers.
6240 # On the NeXT, cc -E runs the code through the compiler's parser,
6241 # not just through cpp. "Syntax error" is here to catch this case.
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #ifdef __STDC__
6249 # include <limits.h>
6250 #else
6251 # include <assert.h>
6252 #endif
6253 Syntax error
6254 _ACEOF
6255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } >/dev/null; then
6263 if test -s conftest.err; then
6264 ac_cpp_err=$ac_c_preproc_warn_flag
6265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6266 else
6267 ac_cpp_err=
6268 fi
6269 else
6270 ac_cpp_err=yes
6271 fi
6272 if test -z "$ac_cpp_err"; then
6273 :
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 # Broken: fails on valid input.
6279 continue
6280 fi
6281 rm -f conftest.err conftest.$ac_ext
6282
6283 # OK, works on sane cases. Now check whether non-existent headers
6284 # can be detected and how.
6285 cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h. */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 #include <ac_nonexistent.h>
6292 _ACEOF
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null; then
6301 if test -s conftest.err; then
6302 ac_cpp_err=$ac_c_preproc_warn_flag
6303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6304 else
6305 ac_cpp_err=
6306 fi
6307 else
6308 ac_cpp_err=yes
6309 fi
6310 if test -z "$ac_cpp_err"; then
6311 # Broken: success on invalid input.
6312 continue
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317 # Passes both tests.
6318 ac_preproc_ok=:
6319 break
6320 fi
6321 rm -f conftest.err conftest.$ac_ext
6322
6323 done
6324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6325 rm -f conftest.err conftest.$ac_ext
6326 if $ac_preproc_ok; then
6327 break
6328 fi
6329
6330 done
6331 ac_cv_prog_CPP=$CPP
6332
6333 fi
6334 CPP=$ac_cv_prog_CPP
6335 else
6336 ac_cv_prog_CPP=$CPP
6337 fi
6338 echo "$as_me:$LINENO: result: $CPP" >&5
6339 echo "${ECHO_T}$CPP" >&6
6340 ac_preproc_ok=false
6341 for ac_c_preproc_warn_flag in '' yes
6342 do
6343 # Use a header file that comes with gcc, so configuring glibc
6344 # with a fresh cross-compiler works.
6345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6346 # <limits.h> exists even on freestanding compilers.
6347 # On the NeXT, cc -E runs the code through the compiler's parser,
6348 # not just through cpp. "Syntax error" is here to catch this case.
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #ifdef __STDC__
6356 # include <limits.h>
6357 #else
6358 # include <assert.h>
6359 #endif
6360 Syntax error
6361 _ACEOF
6362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6364 ac_status=$?
6365 grep -v '^ *+' conftest.er1 >conftest.err
6366 rm -f conftest.er1
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } >/dev/null; then
6370 if test -s conftest.err; then
6371 ac_cpp_err=$ac_c_preproc_warn_flag
6372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6373 else
6374 ac_cpp_err=
6375 fi
6376 else
6377 ac_cpp_err=yes
6378 fi
6379 if test -z "$ac_cpp_err"; then
6380 :
6381 else
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 # Broken: fails on valid input.
6386 continue
6387 fi
6388 rm -f conftest.err conftest.$ac_ext
6389
6390 # OK, works on sane cases. Now check whether non-existent headers
6391 # can be detected and how.
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h. */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 #include <ac_nonexistent.h>
6399 _ACEOF
6400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } >/dev/null; then
6408 if test -s conftest.err; then
6409 ac_cpp_err=$ac_c_preproc_warn_flag
6410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6411 else
6412 ac_cpp_err=
6413 fi
6414 else
6415 ac_cpp_err=yes
6416 fi
6417 if test -z "$ac_cpp_err"; then
6418 # Broken: success on invalid input.
6419 continue
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 # Passes both tests.
6425 ac_preproc_ok=:
6426 break
6427 fi
6428 rm -f conftest.err conftest.$ac_ext
6429
6430 done
6431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6432 rm -f conftest.err conftest.$ac_ext
6433 if $ac_preproc_ok; then
6434 :
6435 else
6436 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6437 See \`config.log' for more details." >&5
6438 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6439 See \`config.log' for more details." >&2;}
6440 { (exit 1); exit 1; }; }
6441 fi
6442
6443 ac_ext=c
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6448
6449
6450 echo "$as_me:$LINENO: checking for egrep" >&5
6451 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6452 if test "${ac_cv_prog_egrep+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6456 then ac_cv_prog_egrep='grep -E'
6457 else ac_cv_prog_egrep='egrep'
6458 fi
6459 fi
6460 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6461 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6462 EGREP=$ac_cv_prog_egrep
6463
6464
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <stdint.h>
6472
6473 _ACEOF
6474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475 $EGREP "uint32_t" >/dev/null 2>&1; then
6476
6477 cat >>confdefs.h <<\_ACEOF
6478 #define HAVE_INT32_DEFINED 1
6479 _ACEOF
6480
6481 fi
6482 rm -f conftest*
6483
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <inttypes.h>
6491
6492 _ACEOF
6493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6494 $EGREP "uint32_t" >/dev/null 2>&1; then
6495
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_INT32_DEFINED 1
6498 _ACEOF
6499
6500 fi
6501 rm -f conftest*
6502
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <sys/types.h>
6510
6511 _ACEOF
6512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6513 $EGREP "u_int32_t" >/dev/null 2>&1; then
6514
6515 cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_BSD_INT32_DEFINED 1
6517 _ACEOF
6518
6519 fi
6520 rm -f conftest*
6521
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <sys/config.h>
6529
6530 _ACEOF
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 $EGREP "u_int32_t" >/dev/null 2>&1; then
6533
6534 cat >>confdefs.h <<\_ACEOF
6535 #define HAVE_BSD_INT32_DEFINED 1
6536 _ACEOF
6537
6538 fi
6539 rm -f conftest*
6540
6541
6542
6543
6544 if test "$PLATFORM" = Win32; then
6545 USING_WIN32_PLATFORM_TRUE=
6546 USING_WIN32_PLATFORM_FALSE='#'
6547 else
6548 USING_WIN32_PLATFORM_TRUE='#'
6549 USING_WIN32_PLATFORM_FALSE=
6550 fi
6551
6552
6553
6554 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
6555 USING_POSIX_PLATFORM_TRUE=
6556 USING_POSIX_PLATFORM_FALSE='#'
6557 else
6558 USING_POSIX_PLATFORM_TRUE='#'
6559 USING_POSIX_PLATFORM_FALSE=
6560 fi
6561
6562
6563 case "$host" in
6564 *-darwin*) DARWIN_CRT=true ;;
6565 *) DARWIN_CRT=false ;;
6566 esac
6567
6568
6569 if $DARWIN_CRT; then
6570 USING_DARWIN_CRT_TRUE=
6571 USING_DARWIN_CRT_FALSE='#'
6572 else
6573 USING_DARWIN_CRT_TRUE='#'
6574 USING_DARWIN_CRT_FALSE=
6575 fi
6576
6577
6578 # These may not be defined in a non-ANS conformant embedded system.
6579 # FIXME: Should these case a runtime exception in that case?
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <time.h>
6587
6588 _ACEOF
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "mktime" >/dev/null 2>&1; then
6591
6592 cat >>confdefs.h <<\_ACEOF
6593 #define HAVE_MKTIME 1
6594 _ACEOF
6595
6596 fi
6597 rm -f conftest*
6598
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 #include <time.h>
6606
6607 _ACEOF
6608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6609 $EGREP "localtime" >/dev/null 2>&1; then
6610
6611 cat >>confdefs.h <<\_ACEOF
6612 #define HAVE_LOCALTIME 1
6613 _ACEOF
6614
6615 fi
6616 rm -f conftest*
6617
6618
6619 # Create the subdirectory for natFile.cc, or the attempt
6620 # to create the link will fail.
6621 test -d java || mkdir java
6622 test -d java/io || mkdir java/io
6623 test -d gnu || mkdir gnu
6624 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6625
6626
6627 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6628 test -d java/lang || mkdir java/lang
6629 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6630
6631 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6632
6633
6634 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
6635 test -d java/net || mkdir java/net
6636 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6637
6638 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
6639
6640
6641 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6642 test -d gnu/java || mkdir gnu/java
6643 test -d gnu/java/net || mkdir gnu/java/net
6644 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6645
6646 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6647
6648
6649 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6650 test -d gnu/java/nio || mkdir gnu/java/nio
6651 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6652
6653 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6654
6655 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6656 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6657
6658
6659 case "${host}" in
6660 *mingw*)
6661 SYSTEMSPEC="-lgdi32 -lws2_32"
6662 if test "${with_win32_nlsapi}" = "unicows"; then
6663 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6664 fi
6665 ;;
6666 *)
6667 SYSTEMSPEC=
6668 ;;
6669 esac
6670
6671
6672 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6673
6674
6675
6676 # Check whether --with-system-zlib or --without-system-zlib was given.
6677 if test "${with_system_zlib+set}" = set; then
6678 withval="$with_system_zlib"
6679
6680 fi;
6681 ZLIBSPEC=
6682
6683 ZLIBTESTSPEC=
6684
6685
6686 echo "$as_me:$LINENO: checking for X" >&5
6687 echo $ECHO_N "checking for X... $ECHO_C" >&6
6688
6689
6690 # Check whether --with-x or --without-x was given.
6691 if test "${with_x+set}" = set; then
6692 withval="$with_x"
6693
6694 fi;
6695 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6696 if test "x$with_x" = xno; then
6697 # The user explicitly disabled X.
6698 have_x=disabled
6699 else
6700 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6701 # Both variables are already set.
6702 have_x=yes
6703 else
6704 if test "${ac_cv_have_x+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 # One or both of the vars are not set, and there is no cached value.
6708 ac_x_includes=no ac_x_libraries=no
6709 rm -fr conftest.dir
6710 if mkdir conftest.dir; then
6711 cd conftest.dir
6712 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6713 cat >Imakefile <<'_ACEOF'
6714 acfindx:
6715 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6716 _ACEOF
6717 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6719 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6720 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6721 for ac_extension in a so sl; do
6722 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6723 test -f $ac_im_libdir/libX11.$ac_extension; then
6724 ac_im_usrlibdir=$ac_im_libdir; break
6725 fi
6726 done
6727 # Screen out bogus values from the imake configuration. They are
6728 # bogus both because they are the default anyway, and because
6729 # using them would break gcc on systems where it needs fixed includes.
6730 case $ac_im_incroot in
6731 /usr/include) ;;
6732 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6733 esac
6734 case $ac_im_usrlibdir in
6735 /usr/lib | /lib) ;;
6736 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6737 esac
6738 fi
6739 cd ..
6740 rm -fr conftest.dir
6741 fi
6742
6743 # Standard set of common directories for X headers.
6744 # Check X11 before X11Rn because it is often a symlink to the current release.
6745 ac_x_header_dirs='
6746 /usr/X11/include
6747 /usr/X11R6/include
6748 /usr/X11R5/include
6749 /usr/X11R4/include
6750
6751 /usr/include/X11
6752 /usr/include/X11R6
6753 /usr/include/X11R5
6754 /usr/include/X11R4
6755
6756 /usr/local/X11/include
6757 /usr/local/X11R6/include
6758 /usr/local/X11R5/include
6759 /usr/local/X11R4/include
6760
6761 /usr/local/include/X11
6762 /usr/local/include/X11R6
6763 /usr/local/include/X11R5
6764 /usr/local/include/X11R4
6765
6766 /usr/X386/include
6767 /usr/x386/include
6768 /usr/XFree86/include/X11
6769
6770 /usr/include
6771 /usr/local/include
6772 /usr/unsupported/include
6773 /usr/athena/include
6774 /usr/local/x11r5/include
6775 /usr/lpp/Xamples/include
6776
6777 /usr/openwin/include
6778 /usr/openwin/share/include'
6779
6780 if test "$ac_x_includes" = no; then
6781 # Guess where to find include files, by looking for Intrinsic.h.
6782 # First, try using that file with no special directory specified.
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <X11/Intrinsic.h>
6790 _ACEOF
6791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } >/dev/null; then
6799 if test -s conftest.err; then
6800 ac_cpp_err=$ac_c_preproc_warn_flag
6801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6802 else
6803 ac_cpp_err=
6804 fi
6805 else
6806 ac_cpp_err=yes
6807 fi
6808 if test -z "$ac_cpp_err"; then
6809 # We can compile using X headers with no special include directory.
6810 ac_x_includes=
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 for ac_dir in $ac_x_header_dirs; do
6816 if test -r "$ac_dir/X11/Intrinsic.h"; then
6817 ac_x_includes=$ac_dir
6818 break
6819 fi
6820 done
6821 fi
6822 rm -f conftest.err conftest.$ac_ext
6823 fi # $ac_x_includes = no
6824
6825 if test "$ac_x_libraries" = no; then
6826 # Check for the libraries.
6827 # See if we find them without any special options.
6828 # Don't add to $LIBS permanently.
6829 ac_save_LIBS=$LIBS
6830 LIBS="-lXt $LIBS"
6831 if test x$gcc_no_link = xyes; then
6832 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6834 { (exit 1); exit 1; }; }
6835 fi
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 #include <X11/Intrinsic.h>
6843 int
6844 main ()
6845 {
6846 XtMalloc (0)
6847 ;
6848 return 0;
6849 }
6850 _ACEOF
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_c_werror_flag"
6861 || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest$ac_exeext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 LIBS=$ac_save_LIBS
6874 # We can link X programs with no special library path.
6875 ac_x_libraries=
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880 LIBS=$ac_save_LIBS
6881 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6882 do
6883 # Don't even attempt the hair of trying to link an X program!
6884 for ac_extension in a so sl; do
6885 if test -r $ac_dir/libXt.$ac_extension; then
6886 ac_x_libraries=$ac_dir
6887 break 2
6888 fi
6889 done
6890 done
6891 fi
6892 rm -f conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 fi # $ac_x_libraries = no
6895
6896 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6897 # Didn't find X anywhere. Cache the known absence of X.
6898 ac_cv_have_x="have_x=no"
6899 else
6900 # Record where we found X for the cache.
6901 ac_cv_have_x="have_x=yes \
6902 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6903 fi
6904 fi
6905
6906 fi
6907 eval "$ac_cv_have_x"
6908 fi # $with_x != no
6909
6910 if test "$have_x" != yes; then
6911 echo "$as_me:$LINENO: result: $have_x" >&5
6912 echo "${ECHO_T}$have_x" >&6
6913 no_x=yes
6914 else
6915 # If each of the values was on the command line, it overrides each guess.
6916 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6917 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6918 # Update the cache value to reflect the command line values.
6919 ac_cv_have_x="have_x=yes \
6920 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6921 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6922 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6923 fi
6924
6925 if test "$no_x" = yes; then
6926 # Not all programs may use this symbol, but it does not hurt to define it.
6927
6928 cat >>confdefs.h <<\_ACEOF
6929 #define X_DISPLAY_MISSING 1
6930 _ACEOF
6931
6932 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6933 else
6934 if test -n "$x_includes"; then
6935 X_CFLAGS="$X_CFLAGS -I$x_includes"
6936 fi
6937
6938 # It would also be nice to do this for all -L options, not just this one.
6939 if test -n "$x_libraries"; then
6940 X_LIBS="$X_LIBS -L$x_libraries"
6941 # For Solaris; some versions of Sun CC require a space after -R and
6942 # others require no space. Words are not sufficient . . . .
6943 case `(uname -sr) 2>/dev/null` in
6944 "SunOS 5"*)
6945 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6946 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6947 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6948 if test x$gcc_no_link = xyes; then
6949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6951 { (exit 1); exit 1; }; }
6952 fi
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h. */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959
6960 int
6961 main ()
6962 {
6963
6964 ;
6965 return 0;
6966 }
6967 _ACEOF
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970 (eval $ac_link) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_c_werror_flag"
6978 || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_R_nospace=yes
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995 ac_R_nospace=no
6996 fi
6997 rm -f conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
6999 if test $ac_R_nospace = yes; then
7000 echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7002 X_LIBS="$X_LIBS -R$x_libraries"
7003 else
7004 LIBS="$ac_xsave_LIBS -R $x_libraries"
7005 if test x$gcc_no_link = xyes; then
7006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7008 { (exit 1); exit 1; }; }
7009 fi
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h. */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016
7017 int
7018 main ()
7019 {
7020
7021 ;
7022 return 0;
7023 }
7024 _ACEOF
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027 (eval $ac_link) 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_R_space=yes
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052 ac_R_space=no
7053 fi
7054 rm -f conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
7056 if test $ac_R_space = yes; then
7057 echo "$as_me:$LINENO: result: yes" >&5
7058 echo "${ECHO_T}yes" >&6
7059 X_LIBS="$X_LIBS -R $x_libraries"
7060 else
7061 echo "$as_me:$LINENO: result: neither works" >&5
7062 echo "${ECHO_T}neither works" >&6
7063 fi
7064 fi
7065 LIBS=$ac_xsave_LIBS
7066 esac
7067 fi
7068
7069 # Check for system-dependent libraries X programs must link with.
7070 # Do this before checking for the system-independent R6 libraries
7071 # (-lICE), since we may need -lsocket or whatever for X linking.
7072
7073 if test "$ISC" = yes; then
7074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7075 else
7076 # Martyn Johnson says this is needed for Ultrix, if the X
7077 # libraries were built with DECnet support. And Karl Berry says
7078 # the Alpha needs dnet_stub (dnet does not exist).
7079 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7080 if test x$gcc_no_link = xyes; then
7081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7082 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7083 { (exit 1); exit 1; }; }
7084 fi
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091
7092 /* Override any gcc2 internal prototype to avoid an error. */
7093 #ifdef __cplusplus
7094 extern "C"
7095 #endif
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7098 char XOpenDisplay ();
7099 int
7100 main ()
7101 {
7102 XOpenDisplay ();
7103 ;
7104 return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try='test -s conftest$ac_exeext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 :
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7135 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7136 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 ac_check_lib_save_LIBS=$LIBS
7140 LIBS="-ldnet $LIBS"
7141 if test x$gcc_no_link = xyes; then
7142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7144 { (exit 1); exit 1; }; }
7145 fi
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 #ifdef __cplusplus
7155 extern "C"
7156 #endif
7157 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7159 char dnet_ntoa ();
7160 int
7161 main ()
7162 {
7163 dnet_ntoa ();
7164 ;
7165 return 0;
7166 }
7167 _ACEOF
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest$ac_exeext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 ac_cv_lib_dnet_dnet_ntoa=yes
7191 else
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195 ac_cv_lib_dnet_dnet_ntoa=no
7196 fi
7197 rm -f conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7199 LIBS=$ac_check_lib_save_LIBS
7200 fi
7201 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7202 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7203 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7204 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7205 fi
7206
7207 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7208 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7209 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7210 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213 ac_check_lib_save_LIBS=$LIBS
7214 LIBS="-ldnet_stub $LIBS"
7215 if test x$gcc_no_link = xyes; then
7216 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7218 { (exit 1); exit 1; }; }
7219 fi
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226
7227 /* Override any gcc2 internal prototype to avoid an error. */
7228 #ifdef __cplusplus
7229 extern "C"
7230 #endif
7231 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7233 char dnet_ntoa ();
7234 int
7235 main ()
7236 {
7237 dnet_ntoa ();
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag"
7252 || test ! -s conftest.err'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; } &&
7258 { ac_try='test -s conftest$ac_exeext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 (eval $ac_try) 2>&5
7261 ac_status=$?
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_lib_dnet_stub_dnet_ntoa=no
7270 fi
7271 rm -f conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7276 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7277 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7278 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7279 fi
7280
7281 fi
7282 fi
7283 rm -f conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 LIBS="$ac_xsave_LIBS"
7286
7287 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7288 # to get the SysV transport functions.
7289 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7290 # needs -lnsl.
7291 # The nsl library prevents programs from opening the X display
7292 # on Irix 5.2, according to T.E. Dickey.
7293 # The functions gethostbyname, getservbyname, and inet_addr are
7294 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7295 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7296 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7297 if test "${ac_cv_func_gethostbyname+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300 if test x$gcc_no_link = xyes; then
7301 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7303 { (exit 1); exit 1; }; }
7304 fi
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7313 #define gethostbyname innocuous_gethostbyname
7314
7315 /* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char gethostbyname (); below.
7317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318 <limits.h> exists even on freestanding compilers. */
7319
7320 #ifdef __STDC__
7321 # include <limits.h>
7322 #else
7323 # include <assert.h>
7324 #endif
7325
7326 #undef gethostbyname
7327
7328 /* Override any gcc2 internal prototype to avoid an error. */
7329 #ifdef __cplusplus
7330 extern "C"
7331 {
7332 #endif
7333 /* We use char because int might match the return type of a gcc2
7334 builtin and then its argument prototype would still apply. */
7335 char gethostbyname ();
7336 /* The GNU C library defines this for functions which it implements
7337 to always fail with ENOSYS. Some functions are actually named
7338 something starting with __ and the normal name is an alias. */
7339 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7340 choke me
7341 #else
7342 char (*f) () = gethostbyname;
7343 #endif
7344 #ifdef __cplusplus
7345 }
7346 #endif
7347
7348 int
7349 main ()
7350 {
7351 return f != gethostbyname;
7352 ;
7353 return 0;
7354 }
7355 _ACEOF
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7358 (eval $ac_link) 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -z "$ac_c_werror_flag"
7366 || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest$ac_exeext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_cv_func_gethostbyname=yes
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7382
7383 ac_cv_func_gethostbyname=no
7384 fi
7385 rm -f conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7387 fi
7388 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7389 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7390
7391 if test $ac_cv_func_gethostbyname = no; then
7392 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7393 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7394 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 ac_check_lib_save_LIBS=$LIBS
7398 LIBS="-lnsl $LIBS"
7399 if test x$gcc_no_link = xyes; then
7400 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7401 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7402 { (exit 1); exit 1; }; }
7403 fi
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h. */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410
7411 /* Override any gcc2 internal prototype to avoid an error. */
7412 #ifdef __cplusplus
7413 extern "C"
7414 #endif
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7417 char gethostbyname ();
7418 int
7419 main ()
7420 {
7421 gethostbyname ();
7422 ;
7423 return 0;
7424 }
7425 _ACEOF
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>conftest.er1
7429 ac_status=$?
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -z "$ac_c_werror_flag"
7436 || test ! -s conftest.err'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest$ac_exeext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 ac_cv_lib_nsl_gethostbyname=yes
7449 else
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 ac_cv_lib_nsl_gethostbyname=no
7454 fi
7455 rm -f conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7457 LIBS=$ac_check_lib_save_LIBS
7458 fi
7459 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7460 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7461 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7463 fi
7464
7465 if test $ac_cv_lib_nsl_gethostbyname = no; then
7466 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7467 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7468 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 ac_check_lib_save_LIBS=$LIBS
7472 LIBS="-lbsd $LIBS"
7473 if test x$gcc_no_link = xyes; then
7474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7476 { (exit 1); exit 1; }; }
7477 fi
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 #ifdef __cplusplus
7487 extern "C"
7488 #endif
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7491 char gethostbyname ();
7492 int
7493 main ()
7494 {
7495 gethostbyname ();
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>conftest.er1
7503 ac_status=$?
7504 grep -v '^ *+' conftest.er1 >conftest.err
7505 rm -f conftest.er1
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try='test -s conftest$ac_exeext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_cv_lib_bsd_gethostbyname=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7526
7527 ac_cv_lib_bsd_gethostbyname=no
7528 fi
7529 rm -f conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7532 fi
7533 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7534 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7535 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7537 fi
7538
7539 fi
7540 fi
7541
7542 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7543 # socket/setsockopt and other routines are undefined under SCO ODT
7544 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7545 # on later versions), says Simon Leinen: it contains gethostby*
7546 # variants that don't use the name server (or something). -lsocket
7547 # must be given before -lnsl if both are needed. We assume that
7548 # if connect needs -lnsl, so does gethostbyname.
7549 echo "$as_me:$LINENO: checking for connect" >&5
7550 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7551 if test "${ac_cv_func_connect+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 if test x$gcc_no_link = xyes; then
7555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7557 { (exit 1); exit 1; }; }
7558 fi
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7567 #define connect innocuous_connect
7568
7569 /* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char connect (); below.
7571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7572 <limits.h> exists even on freestanding compilers. */
7573
7574 #ifdef __STDC__
7575 # include <limits.h>
7576 #else
7577 # include <assert.h>
7578 #endif
7579
7580 #undef connect
7581
7582 /* Override any gcc2 internal prototype to avoid an error. */
7583 #ifdef __cplusplus
7584 extern "C"
7585 {
7586 #endif
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7589 char connect ();
7590 /* The GNU C library defines this for functions which it implements
7591 to always fail with ENOSYS. Some functions are actually named
7592 something starting with __ and the normal name is an alias. */
7593 #if defined (__stub_connect) || defined (__stub___connect)
7594 choke me
7595 #else
7596 char (*f) () = connect;
7597 #endif
7598 #ifdef __cplusplus
7599 }
7600 #endif
7601
7602 int
7603 main ()
7604 {
7605 return f != connect;
7606 ;
7607 return 0;
7608 }
7609 _ACEOF
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612 (eval $ac_link) 2>conftest.er1
7613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -z "$ac_c_werror_flag"
7620 || test ! -s conftest.err'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; } &&
7626 { ac_try='test -s conftest$ac_exeext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_cv_func_connect=yes
7633 else
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7636
7637 ac_cv_func_connect=no
7638 fi
7639 rm -f conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7641 fi
7642 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7643 echo "${ECHO_T}$ac_cv_func_connect" >&6
7644
7645 if test $ac_cv_func_connect = no; then
7646 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7647 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7648 if test "${ac_cv_lib_socket_connect+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 ac_check_lib_save_LIBS=$LIBS
7652 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7653 if test x$gcc_no_link = xyes; then
7654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7656 { (exit 1); exit 1; }; }
7657 fi
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664
7665 /* Override any gcc2 internal prototype to avoid an error. */
7666 #ifdef __cplusplus
7667 extern "C"
7668 #endif
7669 /* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7671 char connect ();
7672 int
7673 main ()
7674 {
7675 connect ();
7676 ;
7677 return 0;
7678 }
7679 _ACEOF
7680 rm -f conftest.$ac_objext conftest$ac_exeext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7682 (eval $ac_link) 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag"
7690 || test ! -s conftest.err'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; } &&
7696 { ac_try='test -s conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 (eval $ac_try) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_lib_socket_connect=yes
7703 else
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707 ac_cv_lib_socket_connect=no
7708 fi
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7712 fi
7713 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7714 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7715 if test $ac_cv_lib_socket_connect = yes; then
7716 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7717 fi
7718
7719 fi
7720
7721 # Guillermo Gomez says -lposix is necessary on A/UX.
7722 echo "$as_me:$LINENO: checking for remove" >&5
7723 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7724 if test "${ac_cv_func_remove+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 if test x$gcc_no_link = xyes; then
7728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7730 { (exit 1); exit 1; }; }
7731 fi
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h. */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7740 #define remove innocuous_remove
7741
7742 /* System header to define __stub macros and hopefully few prototypes,
7743 which can conflict with char remove (); below.
7744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7745 <limits.h> exists even on freestanding compilers. */
7746
7747 #ifdef __STDC__
7748 # include <limits.h>
7749 #else
7750 # include <assert.h>
7751 #endif
7752
7753 #undef remove
7754
7755 /* Override any gcc2 internal prototype to avoid an error. */
7756 #ifdef __cplusplus
7757 extern "C"
7758 {
7759 #endif
7760 /* We use char because int might match the return type of a gcc2
7761 builtin and then its argument prototype would still apply. */
7762 char remove ();
7763 /* The GNU C library defines this for functions which it implements
7764 to always fail with ENOSYS. Some functions are actually named
7765 something starting with __ and the normal name is an alias. */
7766 #if defined (__stub_remove) || defined (__stub___remove)
7767 choke me
7768 #else
7769 char (*f) () = remove;
7770 #endif
7771 #ifdef __cplusplus
7772 }
7773 #endif
7774
7775 int
7776 main ()
7777 {
7778 return f != remove;
7779 ;
7780 return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_cv_func_remove=yes
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 ac_cv_func_remove=no
7811 fi
7812 rm -f conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814 fi
7815 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7816 echo "${ECHO_T}$ac_cv_func_remove" >&6
7817
7818 if test $ac_cv_func_remove = no; then
7819 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7820 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7821 if test "${ac_cv_lib_posix_remove+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 ac_check_lib_save_LIBS=$LIBS
7825 LIBS="-lposix $LIBS"
7826 if test x$gcc_no_link = xyes; then
7827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7829 { (exit 1); exit 1; }; }
7830 fi
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 #ifdef __cplusplus
7840 extern "C"
7841 #endif
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7844 char remove ();
7845 int
7846 main ()
7847 {
7848 remove ();
7849 ;
7850 return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855 (eval $ac_link) 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -z "$ac_c_werror_flag"
7863 || test ! -s conftest.err'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 (eval $ac_try) 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; } &&
7869 { ac_try='test -s conftest$ac_exeext'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 (eval $ac_try) 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 ac_cv_lib_posix_remove=yes
7876 else
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 ac_cv_lib_posix_remove=no
7881 fi
7882 rm -f conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7885 fi
7886 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7887 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7888 if test $ac_cv_lib_posix_remove = yes; then
7889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7890 fi
7891
7892 fi
7893
7894 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7895 echo "$as_me:$LINENO: checking for shmat" >&5
7896 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7897 if test "${ac_cv_func_shmat+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 if test x$gcc_no_link = xyes; then
7901 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7902 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7903 { (exit 1); exit 1; }; }
7904 fi
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7913 #define shmat innocuous_shmat
7914
7915 /* System header to define __stub macros and hopefully few prototypes,
7916 which can conflict with char shmat (); below.
7917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7918 <limits.h> exists even on freestanding compilers. */
7919
7920 #ifdef __STDC__
7921 # include <limits.h>
7922 #else
7923 # include <assert.h>
7924 #endif
7925
7926 #undef shmat
7927
7928 /* Override any gcc2 internal prototype to avoid an error. */
7929 #ifdef __cplusplus
7930 extern "C"
7931 {
7932 #endif
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935 char shmat ();
7936 /* The GNU C library defines this for functions which it implements
7937 to always fail with ENOSYS. Some functions are actually named
7938 something starting with __ and the normal name is an alias. */
7939 #if defined (__stub_shmat) || defined (__stub___shmat)
7940 choke me
7941 #else
7942 char (*f) () = shmat;
7943 #endif
7944 #ifdef __cplusplus
7945 }
7946 #endif
7947
7948 int
7949 main ()
7950 {
7951 return f != shmat;
7952 ;
7953 return 0;
7954 }
7955 _ACEOF
7956 rm -f conftest.$ac_objext conftest$ac_exeext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7958 (eval $ac_link) 2>conftest.er1
7959 ac_status=$?
7960 grep -v '^ *+' conftest.er1 >conftest.err
7961 rm -f conftest.er1
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_cv_func_shmat=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 ac_cv_func_shmat=no
7984 fi
7985 rm -f conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7987 fi
7988 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7989 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7990
7991 if test $ac_cv_func_shmat = no; then
7992 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7993 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7994 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997 ac_check_lib_save_LIBS=$LIBS
7998 LIBS="-lipc $LIBS"
7999 if test x$gcc_no_link = xyes; then
8000 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8001 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8002 { (exit 1); exit 1; }; }
8003 fi
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 #ifdef __cplusplus
8013 extern "C"
8014 #endif
8015 /* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8017 char shmat ();
8018 int
8019 main ()
8020 {
8021 shmat ();
8022 ;
8023 return 0;
8024 }
8025 _ACEOF
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8028 (eval $ac_link) 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag"
8036 || test ! -s conftest.err'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try='test -s conftest$ac_exeext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_lib_ipc_shmat=yes
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 ac_cv_lib_ipc_shmat=no
8054 fi
8055 rm -f conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 LIBS=$ac_check_lib_save_LIBS
8058 fi
8059 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8060 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8061 if test $ac_cv_lib_ipc_shmat = yes; then
8062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8063 fi
8064
8065 fi
8066 fi
8067
8068 # Check for libraries that X11R6 Xt/Xaw programs need.
8069 ac_save_LDFLAGS=$LDFLAGS
8070 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8071 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8072 # check for ICE first), but we must link in the order -lSM -lICE or
8073 # we get undefined symbols. So assume we have SM if we have ICE.
8074 # These have to be linked with before -lX11, unlike the other
8075 # libraries we check for below, so use a different variable.
8076 # John Interrante, Karl Berry
8077 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8078 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8079 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 ac_check_lib_save_LIBS=$LIBS
8083 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8084 if test x$gcc_no_link = xyes; then
8085 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8086 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8087 { (exit 1); exit 1; }; }
8088 fi
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h. */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095
8096 /* Override any gcc2 internal prototype to avoid an error. */
8097 #ifdef __cplusplus
8098 extern "C"
8099 #endif
8100 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8102 char IceConnectionNumber ();
8103 int
8104 main ()
8105 {
8106 IceConnectionNumber ();
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113 (eval $ac_link) 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag"
8121 || test ! -s conftest.err'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_cv_lib_ICE_IceConnectionNumber=yes
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138 ac_cv_lib_ICE_IceConnectionNumber=no
8139 fi
8140 rm -f conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
8142 LIBS=$ac_check_lib_save_LIBS
8143 fi
8144 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8145 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8146 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8147 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8148 fi
8149
8150 LDFLAGS=$ac_save_LDFLAGS
8151
8152 fi
8153
8154
8155 # determine whether to enable the cairo GTK Graphics2D backend
8156 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8157 if test "${enable_gtk_cairo+set}" = set; then
8158 enableval="$enable_gtk_cairo"
8159
8160 fi;
8161
8162
8163 if test "x${enable_gtk_cairo}" = xyes; then
8164 GTK_CAIRO_TRUE=
8165 GTK_CAIRO_FALSE='#'
8166 else
8167 GTK_CAIRO_TRUE='#'
8168 GTK_CAIRO_FALSE=
8169 fi
8170
8171 if test "x${enable_gtk_cairo}" = xyes
8172 then
8173
8174 succeeded=no
8175
8176 if test -z "$PKG_CONFIG"; then
8177 # Extract the first word of "pkg-config", so it can be a program name with args.
8178 set dummy pkg-config; ac_word=$2
8179 echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184 case $PKG_CONFIG in
8185 [\\/]* | ?:[\\/]*)
8186 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8187 ;;
8188 *)
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8199 fi
8200 done
8201 done
8202
8203 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8204 ;;
8205 esac
8206 fi
8207 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8208
8209 if test -n "$PKG_CONFIG"; then
8210 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8211 echo "${ECHO_T}$PKG_CONFIG" >&6
8212 else
8213 echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8215 fi
8216
8217 fi
8218
8219 if test "$PKG_CONFIG" = "no" ; then
8220 echo "*** The pkg-config script could not be found. Make sure it is"
8221 echo "*** in your path, or set the PKG_CONFIG environment variable"
8222 echo "*** to the full path to pkg-config."
8223 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8224 else
8225 PKG_CONFIG_MIN_VERSION=0.9.0
8226 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8227 echo "$as_me:$LINENO: checking for cairo" >&5
8228 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8229
8230 if $PKG_CONFIG --exists "cairo" ; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232 echo "${ECHO_T}yes" >&6
8233 succeeded=yes
8234
8235 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8236 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8237 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8238 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8239 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8240
8241 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8242 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8243 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8244 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8245 echo "${ECHO_T}$CAIRO_LIBS" >&6
8246 else
8247 CAIRO_CFLAGS=""
8248 CAIRO_LIBS=""
8249 ## If we have a custom action on failure, don't print errors, but
8250 ## do set a variable so people can do so.
8251 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8252 echo $CAIRO_PKG_ERRORS
8253 fi
8254
8255
8256
8257 else
8258 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8259 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8260 fi
8261 fi
8262
8263 if test $succeeded = yes; then
8264 :
8265 else
8266 { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8267 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8268 { (exit 1); exit 1; }; }
8269 fi
8270
8271
8272 succeeded=no
8273
8274 if test -z "$PKG_CONFIG"; then
8275 # Extract the first word of "pkg-config", so it can be a program name with args.
8276 set dummy pkg-config; ac_word=$2
8277 echo "$as_me:$LINENO: checking for $ac_word" >&5
8278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8279 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 case $PKG_CONFIG in
8283 [\\/]* | ?:[\\/]*)
8284 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8285 ;;
8286 *)
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8289 do
8290 IFS=$as_save_IFS
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 break 2
8297 fi
8298 done
8299 done
8300
8301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8302 ;;
8303 esac
8304 fi
8305 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8306
8307 if test -n "$PKG_CONFIG"; then
8308 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8309 echo "${ECHO_T}$PKG_CONFIG" >&6
8310 else
8311 echo "$as_me:$LINENO: result: no" >&5
8312 echo "${ECHO_T}no" >&6
8313 fi
8314
8315 fi
8316
8317 if test "$PKG_CONFIG" = "no" ; then
8318 echo "*** The pkg-config script could not be found. Make sure it is"
8319 echo "*** in your path, or set the PKG_CONFIG environment variable"
8320 echo "*** to the full path to pkg-config."
8321 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8322 else
8323 PKG_CONFIG_MIN_VERSION=0.9.0
8324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8325 echo "$as_me:$LINENO: checking for pangoft2" >&5
8326 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8327
8328 if $PKG_CONFIG --exists "pangoft2" ; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330 echo "${ECHO_T}yes" >&6
8331 succeeded=yes
8332
8333 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8334 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8335 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8336 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8337 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8338
8339 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8340 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8341 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8342 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8343 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8344 else
8345 PANGOFT2_CFLAGS=""
8346 PANGOFT2_LIBS=""
8347 ## If we have a custom action on failure, don't print errors, but
8348 ## do set a variable so people can do so.
8349 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8350 echo $PANGOFT2_PKG_ERRORS
8351 fi
8352
8353
8354
8355 else
8356 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8357 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8358 fi
8359 fi
8360
8361 if test $succeeded = yes; then
8362 :
8363 else
8364 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8365 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8366 { (exit 1); exit 1; }; }
8367 fi
8368
8369 fi
8370
8371
8372
8373
8374
8375 # FIXME: this should be _libs on some hosts.
8376 libsubdir=.libs
8377
8378 # extra LD Flags which are required for targets
8379 case "${host}" in
8380 *-darwin*)
8381 # on Darwin -single_module speeds up loading of the dynamic libraries.
8382 extra_ldflags_libjava=-Wl,-single_module
8383 ;;
8384 esac
8385
8386
8387 # Allow the GC to be disabled. Can be useful when debugging.
8388 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8389 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8390 # Check whether --enable-java-gc or --disable-java-gc was given.
8391 if test "${enable_java_gc+set}" = set; then
8392 enableval="$enable_java_gc"
8393 GC=$enableval
8394 else
8395 GC=boehm
8396 fi;
8397 GCLIBS=
8398 GCINCS=
8399 GCDEPS=
8400 GCSPEC=
8401 JC1GCSPEC=
8402 GCTESTSPEC=
8403 case "$GC" in
8404 boehm)
8405 echo "$as_me:$LINENO: result: boehm" >&5
8406 echo "${ECHO_T}boehm" >&6
8407 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8408 JC1GCSPEC='-fuse-boehm-gc'
8409 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8410 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8411 GCOBJS=boehm.lo
8412 GCHDR=boehm-gc.h
8413 # The POSIX thread support needs to know this.
8414
8415 cat >>confdefs.h <<\_ACEOF
8416 #define HAVE_BOEHM_GC 1
8417 _ACEOF
8418
8419 ;;
8420 no)
8421 echo "$as_me:$LINENO: result: none" >&5
8422 echo "${ECHO_T}none" >&6
8423 GCHDR=no-gc.h
8424 ;;
8425 *)
8426 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8427 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8428 { (exit 1); exit 1; }; }
8429 ;;
8430 esac
8431
8432
8433
8434
8435
8436
8437 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8438
8439
8440
8441 if test "$GC" = boehm; then
8442 USING_BOEHMGC_TRUE=
8443 USING_BOEHMGC_FALSE='#'
8444 else
8445 USING_BOEHMGC_TRUE='#'
8446 USING_BOEHMGC_FALSE=
8447 fi
8448
8449
8450
8451 if test "$GC" = no; then
8452 USING_NOGC_TRUE=
8453 USING_NOGC_FALSE='#'
8454 else
8455 USING_NOGC_TRUE='#'
8456 USING_NOGC_FALSE=
8457 fi
8458
8459
8460
8461 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8462 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8463 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8464 echo "$as_me:$LINENO: result: $THREADS" >&5
8465 echo "${ECHO_T}$THREADS" >&6
8466
8467 case "$THREADS" in
8468 no | none | single)
8469 THREADS=none
8470 ;;
8471 posix | posix95 | pthreads)
8472 THREADS=posix
8473 case "$host" in
8474 *-*-linux*)
8475
8476 cat >>confdefs.h <<\_ACEOF
8477 #define LINUX_THREADS 1
8478 _ACEOF
8479
8480 ;;
8481 esac
8482 ;;
8483 win32)
8484 ;;
8485 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8486 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8487 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8488 { (exit 1); exit 1; }; }
8489 ;;
8490 *)
8491 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8492 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8493 { (exit 1); exit 1; }; }
8494 ;;
8495 esac
8496
8497 THREADCXXFLAGS=
8498 THREADLDFLAGS=
8499 THREADLIBS=
8500 THREADINCS=
8501 THREADDEPS=
8502 THREADH=
8503 THREADSPEC=
8504 case "$THREADS" in
8505 posix)
8506 case "$host" in
8507 *-*-cygwin*)
8508 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8509 ;;
8510 *-*-freebsd[1234]*)
8511 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8512 # merely adds pthread_* functions) but it does have a -pthread switch
8513 # which is required at link-time to select -lc_r *instead* of -lc.
8514 THREADLDFLAGS=-pthread
8515 # Don't set THREADSPEC here as might be expected since -pthread is
8516 # not processed when found within a spec file, it must come from
8517 # the command line. For now, the user must provide the -pthread
8518 # switch to link code compiled with gcj. In future, consider adding
8519 # support for weak references to pthread_* functions ala gthr.h API.
8520 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8521 ;;
8522 *-*-freebsd*)
8523 # FreeBSD 5 implements a model much closer to other modern UNIX
8524 # which support threads. However, it still does not support
8525 # -lpthread.
8526 THREADLDFLAGS=-pthread
8527 THREADSPEC=-lc_r
8528 ;;
8529 alpha*-dec-osf*)
8530 THREADCXXFLAGS=-pthread
8531 # boehm-gc needs some functions from librt, so link that too.
8532 THREADLIBS='-lpthread -lrt'
8533 THREADSPEC='-lpthread -lrt'
8534 ;;
8535 *)
8536 THREADLIBS=-lpthread
8537 THREADSPEC=-lpthread
8538 ;;
8539 esac
8540 THREADH=posix-threads.h
8541 # MIT pthreads doesn't seem to have the mutexattr functions.
8542 # But for now we don't check for it. We just assume you aren't
8543 # using MIT pthreads.
8544
8545 cat >>confdefs.h <<\_ACEOF
8546 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8547 _ACEOF
8548
8549
8550 # If we're using the Boehm GC, then we happen to know that it
8551 # defines _REENTRANT, so we don't bother. Eww.
8552 if test "$GC" != boehm; then
8553
8554 cat >>confdefs.h <<\_ACEOF
8555 #define _REENTRANT 1
8556 _ACEOF
8557
8558 fi
8559
8560 cat >>confdefs.h <<\_ACEOF
8561 #define _POSIX_PTHREAD_SEMANTICS 1
8562 _ACEOF
8563
8564 ;;
8565
8566 win32)
8567 THREADH=win32-threads.h
8568 ;;
8569
8570 none)
8571 THREADH=no-threads.h
8572 ;;
8573 esac
8574 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584 if test "$THREADS" = posix; then
8585 USING_POSIX_THREADS_TRUE=
8586 USING_POSIX_THREADS_FALSE='#'
8587 else
8588 USING_POSIX_THREADS_TRUE='#'
8589 USING_POSIX_THREADS_FALSE=
8590 fi
8591
8592
8593
8594 if test "$THREADS" = win32; then
8595 USING_WIN32_THREADS_TRUE=
8596 USING_WIN32_THREADS_FALSE='#'
8597 else
8598 USING_WIN32_THREADS_TRUE='#'
8599 USING_WIN32_THREADS_FALSE=
8600 fi
8601
8602
8603
8604 if test "$THREADS" = none; then
8605 USING_NO_THREADS_TRUE=
8606 USING_NO_THREADS_FALSE='#'
8607 else
8608 USING_NO_THREADS_TRUE='#'
8609 USING_NO_THREADS_FALSE=
8610 fi
8611
8612
8613 if test -d sysdep; then true; else mkdir sysdep; fi
8614 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8615
8616 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8617
8618 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
8619
8620
8621 HASH_SYNC_SPEC=
8622 # Hash synchronization is only useful with posix threads right now.
8623 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8624 HASH_SYNC_SPEC=-fhash-synchronization
8625
8626 cat >>confdefs.h <<\_ACEOF
8627 #define JV_HASH_SYNCHRONIZATION 1
8628 _ACEOF
8629
8630 fi
8631
8632
8633
8634
8635 if test "$GCC" = yes; then
8636 USING_GCC_TRUE=
8637 USING_GCC_FALSE='#'
8638 else
8639 USING_GCC_TRUE='#'
8640 USING_GCC_FALSE=
8641 fi
8642
8643
8644 # We're in the tree with gcc, and need to include some of its headers.
8645 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8646
8647 if test "x${with_newlib}" = "xyes"; then
8648 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8649 # may not work correctly, because the compiler may not be able to
8650 # link executables.
8651
8652 # We assume newlib. This lets us hard-code the functions we know
8653 # we'll have.
8654
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_MEMMOVE 1
8657 _ACEOF
8658
8659
8660 cat >>confdefs.h <<\_ACEOF
8661 #define HAVE_MEMCPY 1
8662 _ACEOF
8663
8664
8665 cat >>confdefs.h <<\_ACEOF
8666 #define HAVE_STRERROR 1
8667 _ACEOF
8668
8669
8670 cat >>confdefs.h <<\_ACEOF
8671 #define HAVE_TIME 1
8672 _ACEOF
8673
8674
8675 cat >>confdefs.h <<\_ACEOF
8676 #define HAVE_GMTIME_R 1
8677 _ACEOF
8678
8679
8680 cat >>confdefs.h <<\_ACEOF
8681 #define HAVE_LOCALTIME_R 1
8682 _ACEOF
8683
8684
8685 cat >>confdefs.h <<\_ACEOF
8686 #define HAVE_USLEEP_DECL 1
8687 _ACEOF
8688
8689 # This is only for POSIX threads.
8690
8691 cat >>confdefs.h <<\_ACEOF
8692 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8693 _ACEOF
8694
8695 # We also assume we are using gcc, which provides alloca.
8696 cat >>confdefs.h <<\_ACEOF
8697 #define HAVE_ALLOCA 1
8698 _ACEOF
8699
8700
8701 # Assume we do not have getuid and friends.
8702
8703 cat >>confdefs.h <<\_ACEOF
8704 #define NO_GETUID 1
8705 _ACEOF
8706
8707 PLATFORMNET=NoNet
8708 else
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8742 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8743 access stat mkdir rename rmdir unlink realpath utime chmod \
8744 nl_langinfo setlocale \
8745 inet_pton uname inet_ntoa \
8746 fork execvp pipe sigaction ftruncate
8747 do
8748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8749 echo "$as_me:$LINENO: checking for $ac_func" >&5
8750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8751 if eval "test \"\${$as_ac_var+set}\" = set"; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 if test x$gcc_no_link = xyes; then
8755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8756 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8757 { (exit 1); exit 1; }; }
8758 fi
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8767 #define $ac_func innocuous_$ac_func
8768
8769 /* System header to define __stub macros and hopefully few prototypes,
8770 which can conflict with char $ac_func (); below.
8771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8772 <limits.h> exists even on freestanding compilers. */
8773
8774 #ifdef __STDC__
8775 # include <limits.h>
8776 #else
8777 # include <assert.h>
8778 #endif
8779
8780 #undef $ac_func
8781
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 #ifdef __cplusplus
8784 extern "C"
8785 {
8786 #endif
8787 /* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
8789 char $ac_func ();
8790 /* The GNU C library defines this for functions which it implements
8791 to always fail with ENOSYS. Some functions are actually named
8792 something starting with __ and the normal name is an alias. */
8793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8794 choke me
8795 #else
8796 char (*f) () = $ac_func;
8797 #endif
8798 #ifdef __cplusplus
8799 }
8800 #endif
8801
8802 int
8803 main ()
8804 {
8805 return f != $ac_func;
8806 ;
8807 return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag"
8820 || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 eval "$as_ac_var=yes"
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 eval "$as_ac_var=no"
8838 fi
8839 rm -f conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 fi
8842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8844 if test `eval echo '${'$as_ac_var'}'` = yes; then
8845 cat >>confdefs.h <<_ACEOF
8846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8847 _ACEOF
8848
8849 fi
8850 done
8851
8852
8853
8854 for ac_func in inet_aton inet_addr
8855 do
8856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8857 echo "$as_me:$LINENO: checking for $ac_func" >&5
8858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8859 if eval "test \"\${$as_ac_var+set}\" = set"; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 if test x$gcc_no_link = xyes; then
8863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8865 { (exit 1); exit 1; }; }
8866 fi
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8875 #define $ac_func innocuous_$ac_func
8876
8877 /* System header to define __stub macros and hopefully few prototypes,
8878 which can conflict with char $ac_func (); below.
8879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8880 <limits.h> exists even on freestanding compilers. */
8881
8882 #ifdef __STDC__
8883 # include <limits.h>
8884 #else
8885 # include <assert.h>
8886 #endif
8887
8888 #undef $ac_func
8889
8890 /* Override any gcc2 internal prototype to avoid an error. */
8891 #ifdef __cplusplus
8892 extern "C"
8893 {
8894 #endif
8895 /* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8897 char $ac_func ();
8898 /* The GNU C library defines this for functions which it implements
8899 to always fail with ENOSYS. Some functions are actually named
8900 something starting with __ and the normal name is an alias. */
8901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8902 choke me
8903 #else
8904 char (*f) () = $ac_func;
8905 #endif
8906 #ifdef __cplusplus
8907 }
8908 #endif
8909
8910 int
8911 main ()
8912 {
8913 return f != $ac_func;
8914 ;
8915 return 0;
8916 }
8917 _ACEOF
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920 (eval $ac_link) 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try='test -z "$ac_c_werror_flag"
8928 || test ! -s conftest.err'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest$ac_exeext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 eval "$as_ac_var=yes"
8941 else
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 eval "$as_ac_var=no"
8946 fi
8947 rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 fi
8950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8952 if test `eval echo '${'$as_ac_var'}'` = yes; then
8953 cat >>confdefs.h <<_ACEOF
8954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8955 _ACEOF
8956 break
8957 fi
8958 done
8959
8960 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8961 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8962 if test "${ac_cv_header_stdc+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 #include <stdlib.h>
8972 #include <stdarg.h>
8973 #include <string.h>
8974 #include <float.h>
8975
8976 int
8977 main ()
8978 {
8979
8980 ;
8981 return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8986 (eval $ac_compile) 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest.$ac_objext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_header_stdc=yes
9007 else
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 ac_cv_header_stdc=no
9012 fi
9013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9014
9015 if test $ac_cv_header_stdc = yes; then
9016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9017 cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h. */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 #include <string.h>
9024
9025 _ACEOF
9026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9027 $EGREP "memchr" >/dev/null 2>&1; then
9028 :
9029 else
9030 ac_cv_header_stdc=no
9031 fi
9032 rm -f conftest*
9033
9034 fi
9035
9036 if test $ac_cv_header_stdc = yes; then
9037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9038 cat >conftest.$ac_ext <<_ACEOF
9039 /* confdefs.h. */
9040 _ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9044 #include <stdlib.h>
9045
9046 _ACEOF
9047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9048 $EGREP "free" >/dev/null 2>&1; then
9049 :
9050 else
9051 ac_cv_header_stdc=no
9052 fi
9053 rm -f conftest*
9054
9055 fi
9056
9057 if test $ac_cv_header_stdc = yes; then
9058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9059 if test "$cross_compiling" = yes; then
9060 :
9061 else
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h. */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 #include <ctype.h>
9069 #if ((' ' & 0x0FF) == 0x020)
9070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9072 #else
9073 # define ISLOWER(c) \
9074 (('a' <= (c) && (c) <= 'i') \
9075 || ('j' <= (c) && (c) <= 'r') \
9076 || ('s' <= (c) && (c) <= 'z'))
9077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9078 #endif
9079
9080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9081 int
9082 main ()
9083 {
9084 int i;
9085 for (i = 0; i < 256; i++)
9086 if (XOR (islower (i), ISLOWER (i))
9087 || toupper (i) != TOUPPER (i))
9088 exit(2);
9089 exit (0);
9090 }
9091 _ACEOF
9092 rm -f conftest$ac_exeext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9094 (eval $ac_link) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 :
9104 else
9105 echo "$as_me: program exited with status $ac_status" >&5
9106 echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9108
9109 ( exit $ac_status )
9110 ac_cv_header_stdc=no
9111 fi
9112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9113 fi
9114 fi
9115 fi
9116 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9117 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9118 if test $ac_cv_header_stdc = yes; then
9119
9120 cat >>confdefs.h <<\_ACEOF
9121 #define STDC_HEADERS 1
9122 _ACEOF
9123
9124 fi
9125
9126 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9137 inttypes.h stdint.h unistd.h
9138 do
9139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9140 echo "$as_me:$LINENO: checking for $ac_header" >&5
9141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h. */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9152
9153 #include <$ac_header>
9154 _ACEOF
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 eval "$as_ac_Header=yes"
9178 else
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9181
9182 eval "$as_ac_Header=no"
9183 fi
9184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185 fi
9186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9189 cat >>confdefs.h <<_ACEOF
9190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9191 _ACEOF
9192
9193 fi
9194
9195 done
9196
9197
9198
9199
9200
9201 for ac_header in execinfo.h unistd.h dlfcn.h
9202 do
9203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9205 echo "$as_me:$LINENO: checking for $ac_header" >&5
9206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 fi
9210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9212 else
9213 # Is the header compilable?
9214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9216 cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h. */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 $ac_includes_default
9223 #include <$ac_header>
9224 _ACEOF
9225 rm -f conftest.$ac_objext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9227 (eval $ac_compile) 2>conftest.er1
9228 ac_status=$?
9229 grep -v '^ *+' conftest.er1 >conftest.err
9230 rm -f conftest.er1
9231 cat conftest.err >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try='test -z "$ac_c_werror_flag"
9235 || test ! -s conftest.err'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 (eval $ac_try) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; } &&
9241 { ac_try='test -s conftest.$ac_objext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_header_compiler=yes
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 ac_header_compiler=no
9253 fi
9254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9256 echo "${ECHO_T}$ac_header_compiler" >&6
9257
9258 # Is the header present?
9259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9261 cat >conftest.$ac_ext <<_ACEOF
9262 /* confdefs.h. */
9263 _ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9267 #include <$ac_header>
9268 _ACEOF
9269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9271 ac_status=$?
9272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } >/dev/null; then
9277 if test -s conftest.err; then
9278 ac_cpp_err=$ac_c_preproc_warn_flag
9279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9280 else
9281 ac_cpp_err=
9282 fi
9283 else
9284 ac_cpp_err=yes
9285 fi
9286 if test -z "$ac_cpp_err"; then
9287 ac_header_preproc=yes
9288 else
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9291
9292 ac_header_preproc=no
9293 fi
9294 rm -f conftest.err conftest.$ac_ext
9295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9296 echo "${ECHO_T}$ac_header_preproc" >&6
9297
9298 # So? What about this header?
9299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9300 yes:no: )
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9305 ac_header_preproc=yes
9306 ;;
9307 no:yes:* )
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9320 (
9321 cat <<\_ASBOX
9322 ## ---------------------------------- ##
9323 ## Report this to the libjava lists. ##
9324 ## ---------------------------------- ##
9325 _ASBOX
9326 ) |
9327 sed "s/^/$as_me: WARNING: /" >&2
9328 ;;
9329 esac
9330 echo "$as_me:$LINENO: checking for $ac_header" >&5
9331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 else
9335 eval "$as_ac_Header=\$ac_header_preproc"
9336 fi
9337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9339
9340 fi
9341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9342 cat >>confdefs.h <<_ACEOF
9343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9344 _ACEOF
9345
9346 fi
9347
9348 done
9349
9350 echo "$as_me:$LINENO: checking for backtrace" >&5
9351 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9352 if test "${ac_cv_func_backtrace+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355 if test x$gcc_no_link = xyes; then
9356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9358 { (exit 1); exit 1; }; }
9359 fi
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9368 #define backtrace innocuous_backtrace
9369
9370 /* System header to define __stub macros and hopefully few prototypes,
9371 which can conflict with char backtrace (); below.
9372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373 <limits.h> exists even on freestanding compilers. */
9374
9375 #ifdef __STDC__
9376 # include <limits.h>
9377 #else
9378 # include <assert.h>
9379 #endif
9380
9381 #undef backtrace
9382
9383 /* Override any gcc2 internal prototype to avoid an error. */
9384 #ifdef __cplusplus
9385 extern "C"
9386 {
9387 #endif
9388 /* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
9390 char backtrace ();
9391 /* The GNU C library defines this for functions which it implements
9392 to always fail with ENOSYS. Some functions are actually named
9393 something starting with __ and the normal name is an alias. */
9394 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9395 choke me
9396 #else
9397 char (*f) () = backtrace;
9398 #endif
9399 #ifdef __cplusplus
9400 }
9401 #endif
9402
9403 int
9404 main ()
9405 {
9406 return f != backtrace;
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_func_backtrace=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438 ac_cv_func_backtrace=no
9439 fi
9440 rm -f conftest.err conftest.$ac_objext \
9441 conftest$ac_exeext conftest.$ac_ext
9442 fi
9443 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9444 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9445 if test $ac_cv_func_backtrace = yes; then
9446
9447 case "$host" in
9448 ia64-*-linux*)
9449 # Has broken backtrace()
9450 ;;
9451 mips*-*-linux*)
9452 # Has broken backtrace(), but we supply our own.
9453 if test -d sysdep; then true; else mkdir -p sysdep; fi
9454 supply_backtrace=yes
9455
9456 cat >>confdefs.h <<\_ACEOF
9457 #define HAVE_BACKTRACE 1
9458 _ACEOF
9459
9460 ;;
9461 *)
9462
9463 cat >>confdefs.h <<\_ACEOF
9464 #define HAVE_BACKTRACE 1
9465 _ACEOF
9466
9467 ;;
9468 esac
9469
9470 else
9471
9472 case "$host" in
9473 *mingw*)
9474 # Has backtrace() defined in libgcj itself
9475
9476 cat >>confdefs.h <<\_ACEOF
9477 #define HAVE_BACKTRACE 1
9478 _ACEOF
9479
9480 ;;
9481 esac
9482
9483 fi
9484
9485
9486 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9487 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9488 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 ac_check_lib_save_LIBS=$LIBS
9492 LIBS="-ldl $LIBS"
9493 if test x$gcc_no_link = xyes; then
9494 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9496 { (exit 1); exit 1; }; }
9497 fi
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504
9505 /* Override any gcc2 internal prototype to avoid an error. */
9506 #ifdef __cplusplus
9507 extern "C"
9508 #endif
9509 /* We use char because int might match the return type of a gcc2
9510 builtin and then its argument prototype would still apply. */
9511 char dladdr ();
9512 int
9513 main ()
9514 {
9515 dladdr ();
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext conftest$ac_exeext
9521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9522 (eval $ac_link) 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try='test -z "$ac_c_werror_flag"
9530 || test ! -s conftest.err'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; } &&
9536 { ac_try='test -s conftest$ac_exeext'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_cv_lib_dl_dladdr=yes
9543 else
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 ac_cv_lib_dl_dladdr=no
9548 fi
9549 rm -f conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551 LIBS=$ac_check_lib_save_LIBS
9552 fi
9553 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9554 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9555 if test $ac_cv_lib_dl_dladdr = yes; then
9556
9557 if test "x${disable_dladdr}" = "xyes"; then
9558 #Broken dladdr().
9559 true
9560 else
9561
9562 cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_DLADDR 1
9564 _ACEOF
9565
9566 fi
9567
9568 fi
9569
9570 if test x"$build" = x"$host"; then
9571 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9572 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9573 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576 test "$cross_compiling" = yes &&
9577 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9578 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9579 { (exit 1); exit 1; }; }
9580 if test -r "/proc/self/exe"; then
9581 ac_cv_file__proc_self_exe=yes
9582 else
9583 ac_cv_file__proc_self_exe=no
9584 fi
9585 fi
9586 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9587 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9588 if test $ac_cv_file__proc_self_exe = yes; then
9589
9590 cat >>confdefs.h <<_ACEOF
9591 #define HAVE__PROC_SELF_EXE 1
9592 _ACEOF
9593
9594
9595
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_PROC_SELF_EXE 1
9598 _ACEOF
9599
9600 fi
9601
9602 else
9603 case $host in
9604 *-linux*)
9605
9606 cat >>confdefs.h <<\_ACEOF
9607 #define HAVE_PROC_SELF_EXE 1
9608 _ACEOF
9609
9610 ;;
9611 esac
9612 fi
9613
9614
9615 if test "X$prefix" = "XNONE"; then
9616 acl_final_prefix="$ac_default_prefix"
9617 else
9618 acl_final_prefix="$prefix"
9619 fi
9620 if test "X$exec_prefix" = "XNONE"; then
9621 acl_final_exec_prefix='${prefix}'
9622 else
9623 acl_final_exec_prefix="$exec_prefix"
9624 fi
9625 acl_save_prefix="$prefix"
9626 prefix="$acl_final_prefix"
9627 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9628 prefix="$acl_save_prefix"
9629
9630
9631 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9632 if test "${with_gnu_ld+set}" = set; then
9633 withval="$with_gnu_ld"
9634 test "$withval" = no || with_gnu_ld=yes
9635 else
9636 with_gnu_ld=no
9637 fi;
9638 # Prepare PATH_SEPARATOR.
9639 # The user is always right.
9640 if test "${PATH_SEPARATOR+set}" != set; then
9641 echo "#! /bin/sh" >conf$$.sh
9642 echo "exit 0" >>conf$$.sh
9643 chmod +x conf$$.sh
9644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9645 PATH_SEPARATOR=';'
9646 else
9647 PATH_SEPARATOR=:
9648 fi
9649 rm -f conf$$.sh
9650 fi
9651 ac_prog=ld
9652 if test "$GCC" = yes; then
9653 # Check if gcc -print-prog-name=ld gives a path.
9654 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9655 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9656 case $host in
9657 *-*-mingw*)
9658 # gcc leaves a trailing carriage return which upsets mingw
9659 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9660 *)
9661 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9662 esac
9663 case $ac_prog in
9664 # Accept absolute paths.
9665 [\\/]* | [A-Za-z]:[\\/]*)
9666 re_direlt='/[^/][^/]*/\.\./'
9667 # Canonicalize the path of ld
9668 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9669 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9670 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9671 done
9672 test -z "$LD" && LD="$ac_prog"
9673 ;;
9674 "")
9675 # If it fails, then pretend we aren't using GCC.
9676 ac_prog=ld
9677 ;;
9678 *)
9679 # If it is relative, then search for the first ld in PATH.
9680 with_gnu_ld=unknown
9681 ;;
9682 esac
9683 elif test "$with_gnu_ld" = yes; then
9684 echo "$as_me:$LINENO: checking for GNU ld" >&5
9685 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9686 else
9687 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9688 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9689 fi
9690 if test "${acl_cv_path_LD+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693 if test -z "$LD"; then
9694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9695 for ac_dir in $PATH; do
9696 test -z "$ac_dir" && ac_dir=.
9697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9698 acl_cv_path_LD="$ac_dir/$ac_prog"
9699 # Check to see if the program is GNU ld. I'd rather use --version,
9700 # but apparently some GNU ld's only accept -v.
9701 # Break only if it was the GNU/non-GNU ld that we prefer.
9702 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9703 test "$with_gnu_ld" != no && break
9704 else
9705 test "$with_gnu_ld" != yes && break
9706 fi
9707 fi
9708 done
9709 IFS="$ac_save_ifs"
9710 else
9711 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9712 fi
9713 fi
9714
9715 LD="$acl_cv_path_LD"
9716 if test -n "$LD"; then
9717 echo "$as_me:$LINENO: result: $LD" >&5
9718 echo "${ECHO_T}$LD" >&6
9719 else
9720 echo "$as_me:$LINENO: result: no" >&5
9721 echo "${ECHO_T}no" >&6
9722 fi
9723 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9724 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9725 { (exit 1); exit 1; }; }
9726 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9727 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9728 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9732 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9733 acl_cv_prog_gnu_ld=yes
9734 else
9735 acl_cv_prog_gnu_ld=no
9736 fi
9737 fi
9738 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9739 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9740 with_gnu_ld=$acl_cv_prog_gnu_ld
9741
9742
9743
9744 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9745 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9746 if test "${acl_cv_rpath+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749
9750 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9751 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9752 . ./conftest.sh
9753 rm -f ./conftest.sh
9754 acl_cv_rpath=done
9755
9756 fi
9757 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9758 echo "${ECHO_T}$acl_cv_rpath" >&6
9759 wl="$acl_cv_wl"
9760 libext="$acl_cv_libext"
9761 shlibext="$acl_cv_shlibext"
9762 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9763 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9764 hardcode_direct="$acl_cv_hardcode_direct"
9765 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9766 # Check whether --enable-rpath or --disable-rpath was given.
9767 if test "${enable_rpath+set}" = set; then
9768 enableval="$enable_rpath"
9769 :
9770 else
9771 enable_rpath=yes
9772 fi;
9773
9774
9775
9776
9777
9778
9779
9780 use_additional=yes
9781
9782 acl_save_prefix="$prefix"
9783 prefix="$acl_final_prefix"
9784 acl_save_exec_prefix="$exec_prefix"
9785 exec_prefix="$acl_final_exec_prefix"
9786
9787 eval additional_includedir=\"$includedir\"
9788 eval additional_libdir=\"$libdir\"
9789
9790 exec_prefix="$acl_save_exec_prefix"
9791 prefix="$acl_save_prefix"
9792
9793
9794 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9795 if test "${with_libiconv_prefix+set}" = set; then
9796 withval="$with_libiconv_prefix"
9797
9798 if test "X$withval" = "Xno"; then
9799 use_additional=no
9800 else
9801 if test "X$withval" = "X"; then
9802
9803 acl_save_prefix="$prefix"
9804 prefix="$acl_final_prefix"
9805 acl_save_exec_prefix="$exec_prefix"
9806 exec_prefix="$acl_final_exec_prefix"
9807
9808 eval additional_includedir=\"$includedir\"
9809 eval additional_libdir=\"$libdir\"
9810
9811 exec_prefix="$acl_save_exec_prefix"
9812 prefix="$acl_save_prefix"
9813
9814 else
9815 additional_includedir="$withval/include"
9816 additional_libdir="$withval/lib"
9817 fi
9818 fi
9819
9820 fi;
9821 LIBICONV=
9822 LTLIBICONV=
9823 INCICONV=
9824 rpathdirs=
9825 ltrpathdirs=
9826 names_already_handled=
9827 names_next_round='iconv '
9828 while test -n "$names_next_round"; do
9829 names_this_round="$names_next_round"
9830 names_next_round=
9831 for name in $names_this_round; do
9832 already_handled=
9833 for n in $names_already_handled; do
9834 if test "$n" = "$name"; then
9835 already_handled=yes
9836 break
9837 fi
9838 done
9839 if test -z "$already_handled"; then
9840 names_already_handled="$names_already_handled $name"
9841 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9842 eval value=\"\$HAVE_LIB$uppername\"
9843 if test -n "$value"; then
9844 if test "$value" = yes; then
9845 eval value=\"\$LIB$uppername\"
9846 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9847 eval value=\"\$LTLIB$uppername\"
9848 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9849 else
9850 :
9851 fi
9852 else
9853 found_dir=
9854 found_la=
9855 found_so=
9856 found_a=
9857 if test $use_additional = yes; then
9858 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9859 found_dir="$additional_libdir"
9860 found_so="$additional_libdir/lib$name.$shlibext"
9861 if test -f "$additional_libdir/lib$name.la"; then
9862 found_la="$additional_libdir/lib$name.la"
9863 fi
9864 else
9865 if test -f "$additional_libdir/lib$name.$libext"; then
9866 found_dir="$additional_libdir"
9867 found_a="$additional_libdir/lib$name.$libext"
9868 if test -f "$additional_libdir/lib$name.la"; then
9869 found_la="$additional_libdir/lib$name.la"
9870 fi
9871 fi
9872 fi
9873 fi
9874 if test "X$found_dir" = "X"; then
9875 for x in $LDFLAGS $LTLIBICONV; do
9876
9877 acl_save_prefix="$prefix"
9878 prefix="$acl_final_prefix"
9879 acl_save_exec_prefix="$exec_prefix"
9880 exec_prefix="$acl_final_exec_prefix"
9881 eval x=\"$x\"
9882 exec_prefix="$acl_save_exec_prefix"
9883 prefix="$acl_save_prefix"
9884
9885 case "$x" in
9886 -L*)
9887 dir=`echo "X$x" | sed -e 's/^X-L//'`
9888 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9889 found_dir="$dir"
9890 found_so="$dir/lib$name.$shlibext"
9891 if test -f "$dir/lib$name.la"; then
9892 found_la="$dir/lib$name.la"
9893 fi
9894 else
9895 if test -f "$dir/lib$name.$libext"; then
9896 found_dir="$dir"
9897 found_a="$dir/lib$name.$libext"
9898 if test -f "$dir/lib$name.la"; then
9899 found_la="$dir/lib$name.la"
9900 fi
9901 fi
9902 fi
9903 ;;
9904 esac
9905 if test "X$found_dir" != "X"; then
9906 break
9907 fi
9908 done
9909 fi
9910 if test "X$found_dir" != "X"; then
9911 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9912 if test "X$found_so" != "X"; then
9913 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9914 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9915 else
9916 haveit=
9917 for x in $ltrpathdirs; do
9918 if test "X$x" = "X$found_dir"; then
9919 haveit=yes
9920 break
9921 fi
9922 done
9923 if test -z "$haveit"; then
9924 ltrpathdirs="$ltrpathdirs $found_dir"
9925 fi
9926 if test "$hardcode_direct" = yes; then
9927 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9928 else
9929 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9930 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9931 haveit=
9932 for x in $rpathdirs; do
9933 if test "X$x" = "X$found_dir"; then
9934 haveit=yes
9935 break
9936 fi
9937 done
9938 if test -z "$haveit"; then
9939 rpathdirs="$rpathdirs $found_dir"
9940 fi
9941 else
9942 haveit=
9943 for x in $LDFLAGS $LIBICONV; do
9944
9945 acl_save_prefix="$prefix"
9946 prefix="$acl_final_prefix"
9947 acl_save_exec_prefix="$exec_prefix"
9948 exec_prefix="$acl_final_exec_prefix"
9949 eval x=\"$x\"
9950 exec_prefix="$acl_save_exec_prefix"
9951 prefix="$acl_save_prefix"
9952
9953 if test "X$x" = "X-L$found_dir"; then
9954 haveit=yes
9955 break
9956 fi
9957 done
9958 if test -z "$haveit"; then
9959 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9960 fi
9961 if test "$hardcode_minus_L" != no; then
9962 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9963 else
9964 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9965 fi
9966 fi
9967 fi
9968 fi
9969 else
9970 if test "X$found_a" != "X"; then
9971 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9972 else
9973 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9974 fi
9975 fi
9976 additional_includedir=
9977 case "$found_dir" in
9978 */lib | */lib/)
9979 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9980 additional_includedir="$basedir/include"
9981 ;;
9982 esac
9983 if test "X$additional_includedir" != "X"; then
9984 if test "X$additional_includedir" != "X/usr/include"; then
9985 haveit=
9986 if test "X$additional_includedir" = "X/usr/local/include"; then
9987 if test -n "$GCC"; then
9988 case $host_os in
9989 linux*) haveit=yes;;
9990 esac
9991 fi
9992 fi
9993 if test -z "$haveit"; then
9994 for x in $CPPFLAGS $INCICONV; do
9995
9996 acl_save_prefix="$prefix"
9997 prefix="$acl_final_prefix"
9998 acl_save_exec_prefix="$exec_prefix"
9999 exec_prefix="$acl_final_exec_prefix"
10000 eval x=\"$x\"
10001 exec_prefix="$acl_save_exec_prefix"
10002 prefix="$acl_save_prefix"
10003
10004 if test "X$x" = "X-I$additional_includedir"; then
10005 haveit=yes
10006 break
10007 fi
10008 done
10009 if test -z "$haveit"; then
10010 if test -d "$additional_includedir"; then
10011 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10012 fi
10013 fi
10014 fi
10015 fi
10016 fi
10017 if test -n "$found_la"; then
10018 save_libdir="$libdir"
10019 case "$found_la" in
10020 */* | *\\*) . "$found_la" ;;
10021 *) . "./$found_la" ;;
10022 esac
10023 libdir="$save_libdir"
10024 for dep in $dependency_libs; do
10025 case "$dep" in
10026 -L*)
10027 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10028 if test "X$additional_libdir" != "X/usr/lib"; then
10029 haveit=
10030 if test "X$additional_libdir" = "X/usr/local/lib"; then
10031 if test -n "$GCC"; then
10032 case $host_os in
10033 linux*) haveit=yes;;
10034 esac
10035 fi
10036 fi
10037 if test -z "$haveit"; then
10038 haveit=
10039 for x in $LDFLAGS $LIBICONV; do
10040
10041 acl_save_prefix="$prefix"
10042 prefix="$acl_final_prefix"
10043 acl_save_exec_prefix="$exec_prefix"
10044 exec_prefix="$acl_final_exec_prefix"
10045 eval x=\"$x\"
10046 exec_prefix="$acl_save_exec_prefix"
10047 prefix="$acl_save_prefix"
10048
10049 if test "X$x" = "X-L$additional_libdir"; then
10050 haveit=yes
10051 break
10052 fi
10053 done
10054 if test -z "$haveit"; then
10055 if test -d "$additional_libdir"; then
10056 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10057 fi
10058 fi
10059 haveit=
10060 for x in $LDFLAGS $LTLIBICONV; do
10061
10062 acl_save_prefix="$prefix"
10063 prefix="$acl_final_prefix"
10064 acl_save_exec_prefix="$exec_prefix"
10065 exec_prefix="$acl_final_exec_prefix"
10066 eval x=\"$x\"
10067 exec_prefix="$acl_save_exec_prefix"
10068 prefix="$acl_save_prefix"
10069
10070 if test "X$x" = "X-L$additional_libdir"; then
10071 haveit=yes
10072 break
10073 fi
10074 done
10075 if test -z "$haveit"; then
10076 if test -d "$additional_libdir"; then
10077 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10078 fi
10079 fi
10080 fi
10081 fi
10082 ;;
10083 -R*)
10084 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10085 if test "$enable_rpath" != no; then
10086 haveit=
10087 for x in $rpathdirs; do
10088 if test "X$x" = "X$dir"; then
10089 haveit=yes
10090 break
10091 fi
10092 done
10093 if test -z "$haveit"; then
10094 rpathdirs="$rpathdirs $dir"
10095 fi
10096 haveit=
10097 for x in $ltrpathdirs; do
10098 if test "X$x" = "X$dir"; then
10099 haveit=yes
10100 break
10101 fi
10102 done
10103 if test -z "$haveit"; then
10104 ltrpathdirs="$ltrpathdirs $dir"
10105 fi
10106 fi
10107 ;;
10108 -l*)
10109 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10110 ;;
10111 *.la)
10112 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10113 ;;
10114 *)
10115 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10116 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10117 ;;
10118 esac
10119 done
10120 fi
10121 else
10122 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10123 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10124 fi
10125 fi
10126 fi
10127 done
10128 done
10129 if test "X$rpathdirs" != "X"; then
10130 if test -n "$hardcode_libdir_separator"; then
10131 alldirs=
10132 for found_dir in $rpathdirs; do
10133 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10134 done
10135 acl_save_libdir="$libdir"
10136 libdir="$alldirs"
10137 eval flag=\"$hardcode_libdir_flag_spec\"
10138 libdir="$acl_save_libdir"
10139 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10140 else
10141 for found_dir in $rpathdirs; do
10142 acl_save_libdir="$libdir"
10143 libdir="$found_dir"
10144 eval flag=\"$hardcode_libdir_flag_spec\"
10145 libdir="$acl_save_libdir"
10146 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10147 done
10148 fi
10149 fi
10150 if test "X$ltrpathdirs" != "X"; then
10151 for found_dir in $ltrpathdirs; do
10152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10153 done
10154 fi
10155
10156
10157
10158
10159
10160
10161
10162 am_save_CPPFLAGS="$CPPFLAGS"
10163
10164 for element in $INCICONV; do
10165 haveit=
10166 for x in $CPPFLAGS; do
10167
10168 acl_save_prefix="$prefix"
10169 prefix="$acl_final_prefix"
10170 acl_save_exec_prefix="$exec_prefix"
10171 exec_prefix="$acl_final_exec_prefix"
10172 eval x=\"$x\"
10173 exec_prefix="$acl_save_exec_prefix"
10174 prefix="$acl_save_prefix"
10175
10176 if test "X$x" = "X$element"; then
10177 haveit=yes
10178 break
10179 fi
10180 done
10181 if test -z "$haveit"; then
10182 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10183 fi
10184 done
10185
10186
10187 echo "$as_me:$LINENO: checking for iconv" >&5
10188 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10189 if test "${am_cv_func_iconv+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192
10193 am_cv_func_iconv="no, consider installing GNU libiconv"
10194 am_cv_lib_iconv=no
10195 if test x$gcc_no_link = xyes; then
10196 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10197 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10198 { (exit 1); exit 1; }; }
10199 fi
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 #include <stdlib.h>
10207 #include <iconv.h>
10208 int
10209 main ()
10210 {
10211 iconv_t cd = iconv_open("","");
10212 iconv(cd,NULL,NULL,NULL,NULL);
10213 iconv_close(cd);
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10220 (eval $ac_link) 2>conftest.er1
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -z "$ac_c_werror_flag"
10228 || test ! -s conftest.err'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; } &&
10234 { ac_try='test -s conftest$ac_exeext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 am_cv_func_iconv=yes
10241 else
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 fi
10246 rm -f conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248 if test "$am_cv_func_iconv" != yes; then
10249 am_save_LIBS="$LIBS"
10250 LIBS="$LIBS $LIBICONV"
10251 if test x$gcc_no_link = xyes; then
10252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10254 { (exit 1); exit 1; }; }
10255 fi
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 #include <stdlib.h>
10263 #include <iconv.h>
10264 int
10265 main ()
10266 {
10267 iconv_t cd = iconv_open("","");
10268 iconv(cd,NULL,NULL,NULL,NULL);
10269 iconv_close(cd);
10270 ;
10271 return 0;
10272 }
10273 _ACEOF
10274 rm -f conftest.$ac_objext conftest$ac_exeext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276 (eval $ac_link) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 am_cv_lib_iconv=yes
10297 am_cv_func_iconv=yes
10298 else
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302 fi
10303 rm -f conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 LIBS="$am_save_LIBS"
10306 fi
10307
10308 fi
10309 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10310 echo "${ECHO_T}$am_cv_func_iconv" >&6
10311 if test "$am_cv_func_iconv" = yes; then
10312
10313 cat >>confdefs.h <<\_ACEOF
10314 #define HAVE_ICONV 1
10315 _ACEOF
10316
10317 fi
10318 if test "$am_cv_lib_iconv" = yes; then
10319 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10320 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10321 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10322 echo "${ECHO_T}$LIBICONV" >&6
10323 else
10324 CPPFLAGS="$am_save_CPPFLAGS"
10325 LIBICONV=
10326 LTLIBICONV=
10327 fi
10328
10329
10330
10331 if test "$am_cv_func_iconv" = yes; then
10332 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10333 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10334 if test "${am_cv_proto_iconv+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h. */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344
10345 #include <stdlib.h>
10346 #include <iconv.h>
10347 extern
10348 #ifdef __cplusplus
10349 "C"
10350 #endif
10351 #if defined(__STDC__) || defined(__cplusplus)
10352 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10353 #else
10354 size_t iconv();
10355 #endif
10356
10357 int
10358 main ()
10359 {
10360
10361 ;
10362 return 0;
10363 }
10364 _ACEOF
10365 rm -f conftest.$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>conftest.er1
10368 ac_status=$?
10369 grep -v '^ *+' conftest.er1 >conftest.err
10370 rm -f conftest.er1
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try='test -z "$ac_c_werror_flag"
10375 || test ! -s conftest.err'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; } &&
10381 { ac_try='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 am_cv_proto_iconv_arg1=""
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392 am_cv_proto_iconv_arg1="const"
10393 fi
10394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10395 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10396 fi
10397
10398 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10399 echo "$as_me:$LINENO: result: ${ac_t:-
10400 }$am_cv_proto_iconv" >&5
10401 echo "${ECHO_T}${ac_t:-
10402 }$am_cv_proto_iconv" >&6
10403
10404 cat >>confdefs.h <<_ACEOF
10405 #define ICONV_CONST $am_cv_proto_iconv_arg1
10406 _ACEOF
10407
10408 fi
10409
10410
10411 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10412 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10413 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416 if test x$gcc_no_link = xyes; then
10417 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10419 { (exit 1); exit 1; }; }
10420 fi
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427 #include <locale.h>
10428 int
10429 main ()
10430 {
10431 return LC_MESSAGES
10432 ;
10433 return 0;
10434 }
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438 (eval $ac_link) 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag"
10446 || test ! -s conftest.err'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 am_cv_val_LC_MESSAGES=yes
10459 else
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10462
10463 am_cv_val_LC_MESSAGES=no
10464 fi
10465 rm -f conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 fi
10468 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10469 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10470 if test $am_cv_val_LC_MESSAGES = yes; then
10471
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_LC_MESSAGES 1
10474 _ACEOF
10475
10476 fi
10477
10478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10480 if test "${ac_cv_struct_tm+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 #include <sys/types.h>
10490 #include <time.h>
10491
10492 int
10493 main ()
10494 {
10495 struct tm *tp; tp->tm_sec;
10496 ;
10497 return 0;
10498 }
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_struct_tm=time.h
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_cv_struct_tm=sys/time.h
10528 fi
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 fi
10531 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10532 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10533 if test $ac_cv_struct_tm = sys/time.h; then
10534
10535 cat >>confdefs.h <<\_ACEOF
10536 #define TM_IN_SYS_TIME 1
10537 _ACEOF
10538
10539 fi
10540
10541 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10542 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10543 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 #include <sys/types.h>
10553 #include <$ac_cv_struct_tm>
10554
10555
10556 int
10557 main ()
10558 {
10559 static struct tm ac_aggr;
10560 if (ac_aggr.tm_zone)
10561 return 0;
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568 (eval $ac_compile) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_member_struct_tm_tm_zone=yes
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h. */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 #include <sys/types.h>
10600 #include <$ac_cv_struct_tm>
10601
10602
10603 int
10604 main ()
10605 {
10606 static struct tm ac_aggr;
10607 if (sizeof ac_aggr.tm_zone)
10608 return 0;
10609 ;
10610 return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext
10614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10615 (eval $ac_compile) 2>conftest.er1
10616 ac_status=$?
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
10622 { ac_try='test -z "$ac_c_werror_flag"
10623 || test ! -s conftest.err'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; } &&
10629 { ac_try='test -s conftest.$ac_objext'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_member_struct_tm_tm_zone=yes
10636 else
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640 ac_cv_member_struct_tm_tm_zone=no
10641 fi
10642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10643 fi
10644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10645 fi
10646 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10647 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10648 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10649
10650 cat >>confdefs.h <<_ACEOF
10651 #define HAVE_STRUCT_TM_TM_ZONE 1
10652 _ACEOF
10653
10654
10655 fi
10656
10657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10658
10659 cat >>confdefs.h <<\_ACEOF
10660 #define HAVE_TM_ZONE 1
10661 _ACEOF
10662
10663 else
10664 echo "$as_me:$LINENO: checking for tzname" >&5
10665 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10666 if test "${ac_cv_var_tzname+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 if test x$gcc_no_link = xyes; then
10670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10672 { (exit 1); exit 1; }; }
10673 fi
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <time.h>
10681 #ifndef tzname /* For SGI. */
10682 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10683 #endif
10684
10685 int
10686 main ()
10687 {
10688 atoi(*tzname);
10689 ;
10690 return 0;
10691 }
10692 _ACEOF
10693 rm -f conftest.$ac_objext conftest$ac_exeext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_cv_var_tzname=yes
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 ac_cv_var_tzname=no
10721 fi
10722 rm -f conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724 fi
10725 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10726 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10727 if test $ac_cv_var_tzname = yes; then
10728
10729 cat >>confdefs.h <<\_ACEOF
10730 #define HAVE_TZNAME 1
10731 _ACEOF
10732
10733 fi
10734 fi
10735
10736
10737
10738
10739 for ac_func in gethostbyname_r
10740 do
10741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10742 echo "$as_me:$LINENO: checking for $ac_func" >&5
10743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10744 if eval "test \"\${$as_ac_var+set}\" = set"; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 if test x$gcc_no_link = xyes; then
10748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10750 { (exit 1); exit 1; }; }
10751 fi
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h. */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10760 #define $ac_func innocuous_$ac_func
10761
10762 /* System header to define __stub macros and hopefully few prototypes,
10763 which can conflict with char $ac_func (); below.
10764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10765 <limits.h> exists even on freestanding compilers. */
10766
10767 #ifdef __STDC__
10768 # include <limits.h>
10769 #else
10770 # include <assert.h>
10771 #endif
10772
10773 #undef $ac_func
10774
10775 /* Override any gcc2 internal prototype to avoid an error. */
10776 #ifdef __cplusplus
10777 extern "C"
10778 {
10779 #endif
10780 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10782 char $ac_func ();
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10787 choke me
10788 #else
10789 char (*f) () = $ac_func;
10790 #endif
10791 #ifdef __cplusplus
10792 }
10793 #endif
10794
10795 int
10796 main ()
10797 {
10798 return f != $ac_func;
10799 ;
10800 return 0;
10801 }
10802 _ACEOF
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag"
10813 || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest$ac_exeext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 eval "$as_ac_var=yes"
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 eval "$as_ac_var=no"
10831 fi
10832 rm -f conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 fi
10835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10837 if test `eval echo '${'$as_ac_var'}'` = yes; then
10838 cat >>confdefs.h <<_ACEOF
10839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10840 _ACEOF
10841
10842
10843 cat >>confdefs.h <<\_ACEOF
10844 #define HAVE_GETHOSTBYNAME_R 1
10845 _ACEOF
10846
10847 # There are two different kinds of gethostbyname_r.
10848 # We look for the one that returns `int'.
10849 # Hopefully this check is robust enough.
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #include <netdb.h>
10857
10858 _ACEOF
10859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10860 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10861
10862
10863 cat >>confdefs.h <<\_ACEOF
10864 #define GETHOSTBYNAME_R_RETURNS_INT 1
10865 _ACEOF
10866
10867 fi
10868 rm -f conftest*
10869
10870
10871 case " $GCINCS " in
10872 *" -D_REENTRANT "*) ;;
10873 *)
10874 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10875 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10876 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 else
10879 ac_ext=cc
10880 ac_cpp='$CXXCPP $CPPFLAGS'
10881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10884
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include <netdb.h>
10892 int
10893 main ()
10894 {
10895 gethostbyname_r("", 0, 0);
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10902 (eval $ac_compile) 2>conftest.er1
10903 ac_status=$?
10904 grep -v '^ *+' conftest.er1 >conftest.err
10905 rm -f conftest.er1
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -z "$ac_cxx_werror_flag"
10910 || test ! -s conftest.err'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest.$ac_objext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 libjava_cv_gethostbyname_r_needs_reentrant=no
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 CPPFLAGS_SAVE="$CPPFLAGS"
10928 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h. */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 #include <netdb.h>
10936 int
10937 main ()
10938 {
10939 gethostbyname_r("", 0, 0);
10940 ;
10941 return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946 (eval $ac_compile) 2>conftest.er1
10947 ac_status=$?
10948 grep -v '^ *+' conftest.er1 >conftest.err
10949 rm -f conftest.er1
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -z "$ac_cxx_werror_flag"
10954 || test ! -s conftest.err'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 libjava_cv_gethostbyname_r_needs_reentrant=yes
10967 else
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 libjava_cv_gethostbyname_r_needs_reentrant=fail
10972 fi
10973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10974 CPPFLAGS="$CPPFLAGS_SAVE"
10975
10976 fi
10977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10978 ac_ext=c
10979 ac_cpp='$CPP $CPPFLAGS'
10980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10983
10984
10985 fi
10986 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10987 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10988 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10989
10990 cat >>confdefs.h <<\_ACEOF
10991 #define _REENTRANT 1
10992 _ACEOF
10993
10994 fi
10995 ;;
10996 esac
10997
10998 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10999 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11000 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003 cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h. */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009
11010 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11011 # define _REENTRANT 1
11012 #endif
11013 #include <netdb.h>
11014 int
11015 main ()
11016 {
11017 struct hostent_data data;
11018 ;
11019 return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11024 (eval $ac_compile) 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag"
11032 || test ! -s conftest.err'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest.$ac_objext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 libjava_cv_struct_hostent_data=yes
11045 else
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049 libjava_cv_struct_hostent_data=no
11050 fi
11051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11052 fi
11053 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11054 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11055 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11056
11057 cat >>confdefs.h <<\_ACEOF
11058 #define HAVE_STRUCT_HOSTENT_DATA 1
11059 _ACEOF
11060
11061 fi
11062
11063 fi
11064 done
11065
11066
11067 # FIXME: libjava source code expects to find a prototype for
11068 # gethostbyaddr_r in netdb.h. The outer check ensures that
11069 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11070 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11071 # linkage check is enough, yet C++ code requires proper prototypes.)
11072 cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h. */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 #include <netdb.h>
11079
11080 _ACEOF
11081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11082 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11083
11084
11085 for ac_func in gethostbyaddr_r
11086 do
11087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11088 echo "$as_me:$LINENO: checking for $ac_func" >&5
11089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11090 if eval "test \"\${$as_ac_var+set}\" = set"; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 if test x$gcc_no_link = xyes; then
11094 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11096 { (exit 1); exit 1; }; }
11097 fi
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11107
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11112
11113 #ifdef __STDC__
11114 # include <limits.h>
11115 #else
11116 # include <assert.h>
11117 #endif
11118
11119 #undef $ac_func
11120
11121 /* Override any gcc2 internal prototype to avoid an error. */
11122 #ifdef __cplusplus
11123 extern "C"
11124 {
11125 #endif
11126 /* We use char because int might match the return type of a gcc2
11127 builtin and then its argument prototype would still apply. */
11128 char $ac_func ();
11129 /* The GNU C library defines this for functions which it implements
11130 to always fail with ENOSYS. Some functions are actually named
11131 something starting with __ and the normal name is an alias. */
11132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11133 choke me
11134 #else
11135 char (*f) () = $ac_func;
11136 #endif
11137 #ifdef __cplusplus
11138 }
11139 #endif
11140
11141 int
11142 main ()
11143 {
11144 return f != $ac_func;
11145 ;
11146 return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 eval "$as_ac_var=yes"
11172 else
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 eval "$as_ac_var=no"
11177 fi
11178 rm -f conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180 fi
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11183 if test `eval echo '${'$as_ac_var'}'` = yes; then
11184 cat >>confdefs.h <<_ACEOF
11185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11186 _ACEOF
11187
11188
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_GETHOSTBYADDR_R 1
11191 _ACEOF
11192
11193 # There are two different kinds of gethostbyaddr_r.
11194 # We look for the one that returns `int'.
11195 # Hopefully this check is robust enough.
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <netdb.h>
11203
11204 _ACEOF
11205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11206 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11207
11208
11209 cat >>confdefs.h <<\_ACEOF
11210 #define GETHOSTBYADDR_R_RETURNS_INT 1
11211 _ACEOF
11212
11213 fi
11214 rm -f conftest*
11215
11216 fi
11217 done
11218
11219 fi
11220 rm -f conftest*
11221
11222
11223
11224 for ac_func in gethostname
11225 do
11226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11227 echo "$as_me:$LINENO: checking for $ac_func" >&5
11228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11229 if eval "test \"\${$as_ac_var+set}\" = set"; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232 if test x$gcc_no_link = xyes; then
11233 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11235 { (exit 1); exit 1; }; }
11236 fi
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11245 #define $ac_func innocuous_$ac_func
11246
11247 /* System header to define __stub macros and hopefully few prototypes,
11248 which can conflict with char $ac_func (); below.
11249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11250 <limits.h> exists even on freestanding compilers. */
11251
11252 #ifdef __STDC__
11253 # include <limits.h>
11254 #else
11255 # include <assert.h>
11256 #endif
11257
11258 #undef $ac_func
11259
11260 /* Override any gcc2 internal prototype to avoid an error. */
11261 #ifdef __cplusplus
11262 extern "C"
11263 {
11264 #endif
11265 /* We use char because int might match the return type of a gcc2
11266 builtin and then its argument prototype would still apply. */
11267 char $ac_func ();
11268 /* The GNU C library defines this for functions which it implements
11269 to always fail with ENOSYS. Some functions are actually named
11270 something starting with __ and the normal name is an alias. */
11271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11272 choke me
11273 #else
11274 char (*f) () = $ac_func;
11275 #endif
11276 #ifdef __cplusplus
11277 }
11278 #endif
11279
11280 int
11281 main ()
11282 {
11283 return f != $ac_func;
11284 ;
11285 return 0;
11286 }
11287 _ACEOF
11288 rm -f conftest.$ac_objext conftest$ac_exeext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>conftest.er1
11291 ac_status=$?
11292 grep -v '^ *+' conftest.er1 >conftest.err
11293 rm -f conftest.er1
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } &&
11297 { ac_try='test -z "$ac_c_werror_flag"
11298 || test ! -s conftest.err'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try='test -s conftest$ac_exeext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 eval "$as_ac_var=yes"
11311 else
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 eval "$as_ac_var=no"
11316 fi
11317 rm -f conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 fi
11320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11322 if test `eval echo '${'$as_ac_var'}'` = yes; then
11323 cat >>confdefs.h <<_ACEOF
11324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11325 _ACEOF
11326
11327
11328 cat >>confdefs.h <<\_ACEOF
11329 #define HAVE_GETHOSTNAME 1
11330 _ACEOF
11331
11332 cat >conftest.$ac_ext <<_ACEOF
11333 /* confdefs.h. */
11334 _ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338 #include <unistd.h>
11339
11340 _ACEOF
11341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11342 $EGREP "gethostname" >/dev/null 2>&1; then
11343
11344
11345 cat >>confdefs.h <<\_ACEOF
11346 #define HAVE_GETHOSTNAME_DECL 1
11347 _ACEOF
11348
11349 fi
11350 rm -f conftest*
11351
11352 fi
11353 done
11354
11355
11356
11357 for ac_func in usleep
11358 do
11359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11360 echo "$as_me:$LINENO: checking for $ac_func" >&5
11361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11362 if eval "test \"\${$as_ac_var+set}\" = set"; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365 if test x$gcc_no_link = xyes; then
11366 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11367 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11368 { (exit 1); exit 1; }; }
11369 fi
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h. */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11378 #define $ac_func innocuous_$ac_func
11379
11380 /* System header to define __stub macros and hopefully few prototypes,
11381 which can conflict with char $ac_func (); below.
11382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11383 <limits.h> exists even on freestanding compilers. */
11384
11385 #ifdef __STDC__
11386 # include <limits.h>
11387 #else
11388 # include <assert.h>
11389 #endif
11390
11391 #undef $ac_func
11392
11393 /* Override any gcc2 internal prototype to avoid an error. */
11394 #ifdef __cplusplus
11395 extern "C"
11396 {
11397 #endif
11398 /* We use char because int might match the return type of a gcc2
11399 builtin and then its argument prototype would still apply. */
11400 char $ac_func ();
11401 /* The GNU C library defines this for functions which it implements
11402 to always fail with ENOSYS. Some functions are actually named
11403 something starting with __ and the normal name is an alias. */
11404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11405 choke me
11406 #else
11407 char (*f) () = $ac_func;
11408 #endif
11409 #ifdef __cplusplus
11410 }
11411 #endif
11412
11413 int
11414 main ()
11415 {
11416 return f != $ac_func;
11417 ;
11418 return 0;
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423 (eval $ac_link) 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -z "$ac_c_werror_flag"
11431 || test ! -s conftest.err'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; } &&
11437 { ac_try='test -s conftest$ac_exeext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 eval "$as_ac_var=yes"
11444 else
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 eval "$as_ac_var=no"
11449 fi
11450 rm -f conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 fi
11453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11455 if test `eval echo '${'$as_ac_var'}'` = yes; then
11456 cat >>confdefs.h <<_ACEOF
11457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11458 _ACEOF
11459
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h. */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 #include <unistd.h>
11467
11468 _ACEOF
11469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11470 $EGREP "usleep" >/dev/null 2>&1; then
11471
11472
11473 cat >>confdefs.h <<\_ACEOF
11474 #define HAVE_USLEEP_DECL 1
11475 _ACEOF
11476
11477 fi
11478 rm -f conftest*
11479
11480 fi
11481 done
11482
11483
11484 # Look for these functions in the thread library, but only bother
11485 # if using POSIX threads.
11486 if test "$THREADS" = posix; then
11487 save_LIBS="$LIBS"
11488 LIBS="$LIBS $THREADLIBS"
11489 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11490 # E.g., Solaris.
11491
11492
11493 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11494 do
11495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496 echo "$as_me:$LINENO: checking for $ac_func" >&5
11497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11498 if eval "test \"\${$as_ac_var+set}\" = set"; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501 if test x$gcc_no_link = xyes; then
11502 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11504 { (exit 1); exit 1; }; }
11505 fi
11506 cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h. */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11514 #define $ac_func innocuous_$ac_func
11515
11516 /* System header to define __stub macros and hopefully few prototypes,
11517 which can conflict with char $ac_func (); below.
11518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11519 <limits.h> exists even on freestanding compilers. */
11520
11521 #ifdef __STDC__
11522 # include <limits.h>
11523 #else
11524 # include <assert.h>
11525 #endif
11526
11527 #undef $ac_func
11528
11529 /* Override any gcc2 internal prototype to avoid an error. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 {
11533 #endif
11534 /* We use char because int might match the return type of a gcc2
11535 builtin and then its argument prototype would still apply. */
11536 char $ac_func ();
11537 /* The GNU C library defines this for functions which it implements
11538 to always fail with ENOSYS. Some functions are actually named
11539 something starting with __ and the normal name is an alias. */
11540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11541 choke me
11542 #else
11543 char (*f) () = $ac_func;
11544 #endif
11545 #ifdef __cplusplus
11546 }
11547 #endif
11548
11549 int
11550 main ()
11551 {
11552 return f != $ac_func;
11553 ;
11554 return 0;
11555 }
11556 _ACEOF
11557 rm -f conftest.$ac_objext conftest$ac_exeext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559 (eval $ac_link) 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -z "$ac_c_werror_flag"
11567 || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest$ac_exeext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 eval "$as_ac_var=yes"
11580 else
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11583
11584 eval "$as_ac_var=no"
11585 fi
11586 rm -f conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 fi
11589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11591 if test `eval echo '${'$as_ac_var'}'` = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11594 _ACEOF
11595
11596 fi
11597 done
11598
11599
11600 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11601 # Solaris 7 the name librt is preferred.
11602
11603 for ac_func in sched_yield
11604 do
11605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11606 echo "$as_me:$LINENO: checking for $ac_func" >&5
11607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11608 if eval "test \"\${$as_ac_var+set}\" = set"; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611 if test x$gcc_no_link = xyes; then
11612 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11613 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11614 { (exit 1); exit 1; }; }
11615 fi
11616 cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h. */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11624 #define $ac_func innocuous_$ac_func
11625
11626 /* System header to define __stub macros and hopefully few prototypes,
11627 which can conflict with char $ac_func (); below.
11628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11629 <limits.h> exists even on freestanding compilers. */
11630
11631 #ifdef __STDC__
11632 # include <limits.h>
11633 #else
11634 # include <assert.h>
11635 #endif
11636
11637 #undef $ac_func
11638
11639 /* Override any gcc2 internal prototype to avoid an error. */
11640 #ifdef __cplusplus
11641 extern "C"
11642 {
11643 #endif
11644 /* We use char because int might match the return type of a gcc2
11645 builtin and then its argument prototype would still apply. */
11646 char $ac_func ();
11647 /* The GNU C library defines this for functions which it implements
11648 to always fail with ENOSYS. Some functions are actually named
11649 something starting with __ and the normal name is an alias. */
11650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11651 choke me
11652 #else
11653 char (*f) () = $ac_func;
11654 #endif
11655 #ifdef __cplusplus
11656 }
11657 #endif
11658
11659 int
11660 main ()
11661 {
11662 return f != $ac_func;
11663 ;
11664 return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag"
11677 || test ! -s conftest.err'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest$ac_exeext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 eval "$as_ac_var=yes"
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 eval "$as_ac_var=no"
11695 fi
11696 rm -f conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698 fi
11699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11701 if test `eval echo '${'$as_ac_var'}'` = yes; then
11702 cat >>confdefs.h <<_ACEOF
11703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11704 _ACEOF
11705
11706 else
11707
11708 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11709 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11710 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 ac_check_lib_save_LIBS=$LIBS
11714 LIBS="-lrt $LIBS"
11715 if test x$gcc_no_link = xyes; then
11716 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11718 { (exit 1); exit 1; }; }
11719 fi
11720 cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h. */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726
11727 /* Override any gcc2 internal prototype to avoid an error. */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 /* We use char because int might match the return type of a gcc2
11732 builtin and then its argument prototype would still apply. */
11733 char sched_yield ();
11734 int
11735 main ()
11736 {
11737 sched_yield ();
11738 ;
11739 return 0;
11740 }
11741 _ACEOF
11742 rm -f conftest.$ac_objext conftest$ac_exeext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11744 (eval $ac_link) 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_c_werror_flag"
11752 || test ! -s conftest.err'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_cv_lib_rt_sched_yield=yes
11765 else
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 ac_cv_lib_rt_sched_yield=no
11770 fi
11771 rm -f conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11774 fi
11775 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11776 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11777 if test $ac_cv_lib_rt_sched_yield = yes; then
11778
11779 cat >>confdefs.h <<\_ACEOF
11780 #define HAVE_SCHED_YIELD 1
11781 _ACEOF
11782
11783 THREADLIBS="$THREADLIBS -lrt"
11784 THREADSPEC="$THREADSPEC -lrt"
11785 else
11786
11787 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11788 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11789 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792 ac_check_lib_save_LIBS=$LIBS
11793 LIBS="-lposix4 $LIBS"
11794 if test x$gcc_no_link = xyes; then
11795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11797 { (exit 1); exit 1; }; }
11798 fi
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h. */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805
11806 /* Override any gcc2 internal prototype to avoid an error. */
11807 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 /* We use char because int might match the return type of a gcc2
11811 builtin and then its argument prototype would still apply. */
11812 char sched_yield ();
11813 int
11814 main ()
11815 {
11816 sched_yield ();
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 rm -f conftest.$ac_objext conftest$ac_exeext
11822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11823 (eval $ac_link) 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag"
11831 || test ! -s conftest.err'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; } &&
11837 { ac_try='test -s conftest$ac_exeext'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 ac_cv_lib_posix4_sched_yield=yes
11844 else
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_cv_lib_posix4_sched_yield=no
11849 fi
11850 rm -f conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852 LIBS=$ac_check_lib_save_LIBS
11853 fi
11854 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11855 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11856 if test $ac_cv_lib_posix4_sched_yield = yes; then
11857
11858 cat >>confdefs.h <<\_ACEOF
11859 #define HAVE_SCHED_YIELD 1
11860 _ACEOF
11861
11862 THREADLIBS="$THREADLIBS -lposix4"
11863 THREADSPEC="$THREADSPEC -lposix4"
11864 fi
11865
11866 fi
11867
11868 fi
11869 done
11870
11871 LIBS="$save_LIBS"
11872
11873 # We can save a little space at runtime if the mutex has m_count
11874 # or __m_count. This is a nice hack for Linux.
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 #include <pthread.h>
11882 int
11883 main ()
11884 {
11885
11886 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11887
11888 ;
11889 return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11894 (eval $ac_compile) 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try='test -z "$ac_c_werror_flag"
11902 || test ! -s conftest.err'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } &&
11908 { ac_try='test -s conftest.$ac_objext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914
11915 cat >>confdefs.h <<\_ACEOF
11916 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11917 _ACEOF
11918
11919 else
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 #include <pthread.h>
11931 int
11932 main ()
11933 {
11934
11935 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11936
11937 ;
11938 return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11943 (eval $ac_compile) 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -z "$ac_c_werror_flag"
11951 || test ! -s conftest.err'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest.$ac_objext'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963
11964 cat >>confdefs.h <<\_ACEOF
11965 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11966 _ACEOF
11967
11968 else
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972 fi
11973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11974 fi
11975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11976 fi
11977
11978 # We require a way to get the time.
11979 time_found=no
11980
11981
11982
11983 for ac_func in gettimeofday time ftime
11984 do
11985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11986 echo "$as_me:$LINENO: checking for $ac_func" >&5
11987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11988 if eval "test \"\${$as_ac_var+set}\" = set"; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 else
11991 if test x$gcc_no_link = xyes; then
11992 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11994 { (exit 1); exit 1; }; }
11995 fi
11996 cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h. */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12004 #define $ac_func innocuous_$ac_func
12005
12006 /* System header to define __stub macros and hopefully few prototypes,
12007 which can conflict with char $ac_func (); below.
12008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12009 <limits.h> exists even on freestanding compilers. */
12010
12011 #ifdef __STDC__
12012 # include <limits.h>
12013 #else
12014 # include <assert.h>
12015 #endif
12016
12017 #undef $ac_func
12018
12019 /* Override any gcc2 internal prototype to avoid an error. */
12020 #ifdef __cplusplus
12021 extern "C"
12022 {
12023 #endif
12024 /* We use char because int might match the return type of a gcc2
12025 builtin and then its argument prototype would still apply. */
12026 char $ac_func ();
12027 /* The GNU C library defines this for functions which it implements
12028 to always fail with ENOSYS. Some functions are actually named
12029 something starting with __ and the normal name is an alias. */
12030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12031 choke me
12032 #else
12033 char (*f) () = $ac_func;
12034 #endif
12035 #ifdef __cplusplus
12036 }
12037 #endif
12038
12039 int
12040 main ()
12041 {
12042 return f != $ac_func;
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 rm -f conftest.$ac_objext conftest$ac_exeext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12049 (eval $ac_link) 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag"
12057 || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest$ac_exeext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 eval "$as_ac_var=yes"
12070 else
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 eval "$as_ac_var=no"
12075 fi
12076 rm -f conftest.err conftest.$ac_objext \
12077 conftest$ac_exeext conftest.$ac_ext
12078 fi
12079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12081 if test `eval echo '${'$as_ac_var'}'` = yes; then
12082 cat >>confdefs.h <<_ACEOF
12083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12084 _ACEOF
12085 time_found=yes
12086 fi
12087 done
12088
12089 if test "$time_found" = no; then
12090 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12091 echo "$as_me: error: no function found to get the time" >&2;}
12092 { (exit 1); exit 1; }; }
12093 fi
12094
12095
12096 for ac_func in memmove
12097 do
12098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12099 echo "$as_me:$LINENO: checking for $ac_func" >&5
12100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12101 if eval "test \"\${$as_ac_var+set}\" = set"; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 if test x$gcc_no_link = xyes; then
12105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12107 { (exit 1); exit 1; }; }
12108 fi
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h. */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117 #define $ac_func innocuous_$ac_func
12118
12119 /* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char $ac_func (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12123
12124 #ifdef __STDC__
12125 # include <limits.h>
12126 #else
12127 # include <assert.h>
12128 #endif
12129
12130 #undef $ac_func
12131
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 #ifdef __cplusplus
12134 extern "C"
12135 {
12136 #endif
12137 /* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12139 char $ac_func ();
12140 /* The GNU C library defines this for functions which it implements
12141 to always fail with ENOSYS. Some functions are actually named
12142 something starting with __ and the normal name is an alias. */
12143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12144 choke me
12145 #else
12146 char (*f) () = $ac_func;
12147 #endif
12148 #ifdef __cplusplus
12149 }
12150 #endif
12151
12152 int
12153 main ()
12154 {
12155 return f != $ac_func;
12156 ;
12157 return 0;
12158 }
12159 _ACEOF
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12162 (eval $ac_link) 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try='test -z "$ac_c_werror_flag"
12170 || test ! -s conftest.err'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; } &&
12176 { ac_try='test -s conftest$ac_exeext'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 eval "$as_ac_var=yes"
12183 else
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 eval "$as_ac_var=no"
12188 fi
12189 rm -f conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12191 fi
12192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12194 if test `eval echo '${'$as_ac_var'}'` = yes; then
12195 cat >>confdefs.h <<_ACEOF
12196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12197 _ACEOF
12198
12199 fi
12200 done
12201
12202
12203 # We require memcpy.
12204 memcpy_found=no
12205
12206 for ac_func in memcpy
12207 do
12208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12209 echo "$as_me:$LINENO: checking for $ac_func" >&5
12210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12211 if eval "test \"\${$as_ac_var+set}\" = set"; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214 if test x$gcc_no_link = xyes; then
12215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12217 { (exit 1); exit 1; }; }
12218 fi
12219 cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h. */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12227 #define $ac_func innocuous_$ac_func
12228
12229 /* System header to define __stub macros and hopefully few prototypes,
12230 which can conflict with char $ac_func (); below.
12231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12232 <limits.h> exists even on freestanding compilers. */
12233
12234 #ifdef __STDC__
12235 # include <limits.h>
12236 #else
12237 # include <assert.h>
12238 #endif
12239
12240 #undef $ac_func
12241
12242 /* Override any gcc2 internal prototype to avoid an error. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 {
12246 #endif
12247 /* We use char because int might match the return type of a gcc2
12248 builtin and then its argument prototype would still apply. */
12249 char $ac_func ();
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12254 choke me
12255 #else
12256 char (*f) () = $ac_func;
12257 #endif
12258 #ifdef __cplusplus
12259 }
12260 #endif
12261
12262 int
12263 main ()
12264 {
12265 return f != $ac_func;
12266 ;
12267 return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272 (eval $ac_link) 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag"
12280 || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest$ac_exeext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 eval "$as_ac_var=yes"
12293 else
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297 eval "$as_ac_var=no"
12298 fi
12299 rm -f conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
12301 fi
12302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12304 if test `eval echo '${'$as_ac_var'}'` = yes; then
12305 cat >>confdefs.h <<_ACEOF
12306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12307 _ACEOF
12308 memcpy_found=yes
12309 fi
12310 done
12311
12312 if test "$memcpy_found" = no; then
12313 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12314 echo "$as_me: error: memcpy is required" >&2;}
12315 { (exit 1); exit 1; }; }
12316 fi
12317
12318 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12319 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323 ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-ldl $LIBS"
12325 if test x$gcc_no_link = xyes; then
12326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12328 { (exit 1); exit 1; }; }
12329 fi
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h. */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336
12337 /* Override any gcc2 internal prototype to avoid an error. */
12338 #ifdef __cplusplus
12339 extern "C"
12340 #endif
12341 /* We use char because int might match the return type of a gcc2
12342 builtin and then its argument prototype would still apply. */
12343 char dlopen ();
12344 int
12345 main ()
12346 {
12347 dlopen ();
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_cv_lib_dl_dlopen=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_cv_lib_dl_dlopen=no
12380 fi
12381 rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12384 fi
12385 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12386 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12387 if test $ac_cv_lib_dl_dlopen = yes; then
12388
12389
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_DLOPEN 1
12392 _ACEOF
12393
12394 fi
12395
12396
12397 # Some library-finding code we stole from Tcl.
12398 #--------------------------------------------------------------------
12399 # Check for the existence of the -lsocket and -lnsl libraries.
12400 # The order here is important, so that they end up in the right
12401 # order in the command line generated by make. Here are some
12402 # special considerations:
12403 # 1. Use "connect" and "accept" to check for -lsocket, and
12404 # "gethostbyname" to check for -lnsl.
12405 # 2. Use each function name only once: can't redo a check because
12406 # autoconf caches the results of the last check and won't redo it.
12407 # 3. Use -lnsl and -lsocket only if they supply procedures that
12408 # aren't already present in the normal libraries. This is because
12409 # IRIX 5.2 has libraries, but they aren't needed and they're
12410 # bogus: they goof up name resolution if used.
12411 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12412 # To get around this problem, check for both libraries together
12413 # if -lsocket doesn't work by itself.
12414 #--------------------------------------------------------------------
12415
12416 echo "$as_me:$LINENO: checking for socket libraries" >&5
12417 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12418 if test "${gcj_cv_lib_sockets+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421 gcj_cv_lib_sockets=
12422 gcj_checkBoth=0
12423 unset ac_cv_func_connect
12424 echo "$as_me:$LINENO: checking for connect" >&5
12425 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12426 if test "${ac_cv_func_connect+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429 if test x$gcc_no_link = xyes; then
12430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12432 { (exit 1); exit 1; }; }
12433 fi
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h. */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12442 #define connect innocuous_connect
12443
12444 /* System header to define __stub macros and hopefully few prototypes,
12445 which can conflict with char connect (); below.
12446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12447 <limits.h> exists even on freestanding compilers. */
12448
12449 #ifdef __STDC__
12450 # include <limits.h>
12451 #else
12452 # include <assert.h>
12453 #endif
12454
12455 #undef connect
12456
12457 /* Override any gcc2 internal prototype to avoid an error. */
12458 #ifdef __cplusplus
12459 extern "C"
12460 {
12461 #endif
12462 /* We use char because int might match the return type of a gcc2
12463 builtin and then its argument prototype would still apply. */
12464 char connect ();
12465 /* The GNU C library defines this for functions which it implements
12466 to always fail with ENOSYS. Some functions are actually named
12467 something starting with __ and the normal name is an alias. */
12468 #if defined (__stub_connect) || defined (__stub___connect)
12469 choke me
12470 #else
12471 char (*f) () = connect;
12472 #endif
12473 #ifdef __cplusplus
12474 }
12475 #endif
12476
12477 int
12478 main ()
12479 {
12480 return f != connect;
12481 ;
12482 return 0;
12483 }
12484 _ACEOF
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487 (eval $ac_link) 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -z "$ac_c_werror_flag"
12495 || test ! -s conftest.err'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_func_connect=yes
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512 ac_cv_func_connect=no
12513 fi
12514 rm -f conftest.err conftest.$ac_objext \
12515 conftest$ac_exeext conftest.$ac_ext
12516 fi
12517 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12518 echo "${ECHO_T}$ac_cv_func_connect" >&6
12519 if test $ac_cv_func_connect = yes; then
12520 gcj_checkSocket=0
12521 else
12522 gcj_checkSocket=1
12523 fi
12524
12525 if test "$gcj_checkSocket" = 1; then
12526 unset ac_cv_func_connect
12527 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12528 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12529 if test "${ac_cv_lib_socket_main+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532 ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-lsocket $LIBS"
12534 if test x$gcc_no_link = xyes; then
12535 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12537 { (exit 1); exit 1; }; }
12538 fi
12539 cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h. */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545
12546
12547 int
12548 main ()
12549 {
12550 main ();
12551 ;
12552 return 0;
12553 }
12554 _ACEOF
12555 rm -f conftest.$ac_objext conftest$ac_exeext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12557 (eval $ac_link) 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest$ac_exeext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_lib_socket_main=yes
12578 else
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582 ac_cv_lib_socket_main=no
12583 fi
12584 rm -f conftest.err conftest.$ac_objext \
12585 conftest$ac_exeext conftest.$ac_ext
12586 LIBS=$ac_check_lib_save_LIBS
12587 fi
12588 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12589 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12590 if test $ac_cv_lib_socket_main = yes; then
12591 gcj_cv_lib_sockets="-lsocket"
12592 else
12593 gcj_checkBoth=1
12594 fi
12595
12596 fi
12597 if test "$gcj_checkBoth" = 1; then
12598 gcj_oldLibs=$LIBS
12599 LIBS="$LIBS -lsocket -lnsl"
12600 unset ac_cv_func_accept
12601 echo "$as_me:$LINENO: checking for accept" >&5
12602 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12603 if test "${ac_cv_func_accept+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 else
12606 if test x$gcc_no_link = xyes; then
12607 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12608 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12609 { (exit 1); exit 1; }; }
12610 fi
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h. */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12619 #define accept innocuous_accept
12620
12621 /* System header to define __stub macros and hopefully few prototypes,
12622 which can conflict with char accept (); below.
12623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624 <limits.h> exists even on freestanding compilers. */
12625
12626 #ifdef __STDC__
12627 # include <limits.h>
12628 #else
12629 # include <assert.h>
12630 #endif
12631
12632 #undef accept
12633
12634 /* Override any gcc2 internal prototype to avoid an error. */
12635 #ifdef __cplusplus
12636 extern "C"
12637 {
12638 #endif
12639 /* We use char because int might match the return type of a gcc2
12640 builtin and then its argument prototype would still apply. */
12641 char accept ();
12642 /* The GNU C library defines this for functions which it implements
12643 to always fail with ENOSYS. Some functions are actually named
12644 something starting with __ and the normal name is an alias. */
12645 #if defined (__stub_accept) || defined (__stub___accept)
12646 choke me
12647 #else
12648 char (*f) () = accept;
12649 #endif
12650 #ifdef __cplusplus
12651 }
12652 #endif
12653
12654 int
12655 main ()
12656 {
12657 return f != accept;
12658 ;
12659 return 0;
12660 }
12661 _ACEOF
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_c_werror_flag"
12672 || test ! -s conftest.err'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest$ac_exeext'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 ac_cv_func_accept=yes
12685 else
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12688
12689 ac_cv_func_accept=no
12690 fi
12691 rm -f conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693 fi
12694 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12695 echo "${ECHO_T}$ac_cv_func_accept" >&6
12696 if test $ac_cv_func_accept = yes; then
12697 gcj_checkNsl=0
12698 gcj_cv_lib_sockets="-lsocket -lnsl"
12699 fi
12700
12701 unset ac_cv_func_accept
12702 LIBS=$gcj_oldLibs
12703 fi
12704 unset ac_cv_func_gethostbyname
12705 gcj_oldLibs=$LIBS
12706 LIBS="$LIBS $gcj_cv_lib_sockets"
12707 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12708 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12709 if test "${ac_cv_func_gethostbyname+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712 if test x$gcc_no_link = xyes; then
12713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12715 { (exit 1); exit 1; }; }
12716 fi
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12725 #define gethostbyname innocuous_gethostbyname
12726
12727 /* System header to define __stub macros and hopefully few prototypes,
12728 which can conflict with char gethostbyname (); below.
12729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12730 <limits.h> exists even on freestanding compilers. */
12731
12732 #ifdef __STDC__
12733 # include <limits.h>
12734 #else
12735 # include <assert.h>
12736 #endif
12737
12738 #undef gethostbyname
12739
12740 /* Override any gcc2 internal prototype to avoid an error. */
12741 #ifdef __cplusplus
12742 extern "C"
12743 {
12744 #endif
12745 /* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12747 char gethostbyname ();
12748 /* The GNU C library defines this for functions which it implements
12749 to always fail with ENOSYS. Some functions are actually named
12750 something starting with __ and the normal name is an alias. */
12751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12752 choke me
12753 #else
12754 char (*f) () = gethostbyname;
12755 #endif
12756 #ifdef __cplusplus
12757 }
12758 #endif
12759
12760 int
12761 main ()
12762 {
12763 return f != gethostbyname;
12764 ;
12765 return 0;
12766 }
12767 _ACEOF
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12770 (eval $ac_link) 2>conftest.er1
12771 ac_status=$?
12772 grep -v '^ *+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } &&
12777 { ac_try='test -z "$ac_c_werror_flag"
12778 || test ! -s conftest.err'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 ac_cv_func_gethostbyname=yes
12791 else
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12794
12795 ac_cv_func_gethostbyname=no
12796 fi
12797 rm -f conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12799 fi
12800 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12801 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12802 if test $ac_cv_func_gethostbyname = yes; then
12803 :
12804 else
12805 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12806 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12807 if test "${ac_cv_lib_nsl_main+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 ac_check_lib_save_LIBS=$LIBS
12811 LIBS="-lnsl $LIBS"
12812 if test x$gcc_no_link = xyes; then
12813 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12815 { (exit 1); exit 1; }; }
12816 fi
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823
12824
12825 int
12826 main ()
12827 {
12828 main ();
12829 ;
12830 return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835 (eval $ac_link) 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_cv_lib_nsl_main=yes
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 ac_cv_lib_nsl_main=no
12861 fi
12862 rm -f conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12864 LIBS=$ac_check_lib_save_LIBS
12865 fi
12866 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12867 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12868 if test $ac_cv_lib_nsl_main = yes; then
12869 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12870 fi
12871
12872 fi
12873
12874 unset ac_cv_func_gethostbyname
12875 LIBS=$gcj_oldLIBS
12876
12877 fi
12878 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12879 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12880 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12881
12882 if test "$with_system_zlib" = yes; then
12883 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12884 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12885 if test "${ac_cv_lib_z_deflate+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 else
12888 ac_check_lib_save_LIBS=$LIBS
12889 LIBS="-lz $LIBS"
12890 if test x$gcc_no_link = xyes; then
12891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12893 { (exit 1); exit 1; }; }
12894 fi
12895 cat >conftest.$ac_ext <<_ACEOF
12896 /* confdefs.h. */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12901
12902 /* Override any gcc2 internal prototype to avoid an error. */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */
12908 char deflate ();
12909 int
12910 main ()
12911 {
12912 deflate ();
12913 ;
12914 return 0;
12915 }
12916 _ACEOF
12917 rm -f conftest.$ac_objext conftest$ac_exeext
12918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12919 (eval $ac_link) 2>conftest.er1
12920 ac_status=$?
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } &&
12926 { ac_try='test -z "$ac_c_werror_flag"
12927 || test ! -s conftest.err'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; } &&
12933 { ac_try='test -s conftest$ac_exeext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_lib_z_deflate=yes
12940 else
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 ac_cv_lib_z_deflate=no
12945 fi
12946 rm -f conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12948 LIBS=$ac_check_lib_save_LIBS
12949 fi
12950 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12951 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12952 if test $ac_cv_lib_z_deflate = yes; then
12953 ZLIBSPEC=-lz
12954 else
12955 ZLIBSPEC=
12956 fi
12957
12958 fi
12959
12960 # Test for Gtk stuff, if asked for.
12961 if test "$use_gtk_awt" = yes; then
12962
12963 succeeded=no
12964
12965 if test -z "$PKG_CONFIG"; then
12966 # Extract the first word of "pkg-config", so it can be a program name with args.
12967 set dummy pkg-config; ac_word=$2
12968 echo "$as_me:$LINENO: checking for $ac_word" >&5
12969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973 case $PKG_CONFIG in
12974 [\\/]* | ?:[\\/]*)
12975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12976 ;;
12977 *)
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12980 do
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
12984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12985 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 break 2
12988 fi
12989 done
12990 done
12991
12992 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12993 ;;
12994 esac
12995 fi
12996 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12997
12998 if test -n "$PKG_CONFIG"; then
12999 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13000 echo "${ECHO_T}$PKG_CONFIG" >&6
13001 else
13002 echo "$as_me:$LINENO: result: no" >&5
13003 echo "${ECHO_T}no" >&6
13004 fi
13005
13006 fi
13007
13008 if test "$PKG_CONFIG" = "no" ; then
13009 echo "*** The pkg-config script could not be found. Make sure it is"
13010 echo "*** in your path, or set the PKG_CONFIG environment variable"
13011 echo "*** to the full path to pkg-config."
13012 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13013 else
13014 PKG_CONFIG_MIN_VERSION=0.9.0
13015 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13016 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13017 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13018
13019 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13020 echo "$as_me:$LINENO: result: yes" >&5
13021 echo "${ECHO_T}yes" >&6
13022 succeeded=yes
13023
13024 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13025 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13026 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13027 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13028 echo "${ECHO_T}$GTK_CFLAGS" >&6
13029
13030 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13031 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13032 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13033 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13034 echo "${ECHO_T}$GTK_LIBS" >&6
13035 else
13036 GTK_CFLAGS=""
13037 GTK_LIBS=""
13038 ## If we have a custom action on failure, don't print errors, but
13039 ## do set a variable so people can do so.
13040 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13041 echo $GTK_PKG_ERRORS
13042 fi
13043
13044
13045
13046 else
13047 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13048 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13049 fi
13050 fi
13051
13052 if test $succeeded = yes; then
13053 :
13054 else
13055 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
13056 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
13057 { (exit 1); exit 1; }; }
13058 fi
13059
13060
13061
13062
13063
13064 succeeded=no
13065
13066 if test -z "$PKG_CONFIG"; then
13067 # Extract the first word of "pkg-config", so it can be a program name with args.
13068 set dummy pkg-config; ac_word=$2
13069 echo "$as_me:$LINENO: checking for $ac_word" >&5
13070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13071 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 else
13074 case $PKG_CONFIG in
13075 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13077 ;;
13078 *)
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080 for as_dir in $PATH
13081 do
13082 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13086 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2
13089 fi
13090 done
13091 done
13092
13093 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13094 ;;
13095 esac
13096 fi
13097 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13098
13099 if test -n "$PKG_CONFIG"; then
13100 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13101 echo "${ECHO_T}$PKG_CONFIG" >&6
13102 else
13103 echo "$as_me:$LINENO: result: no" >&5
13104 echo "${ECHO_T}no" >&6
13105 fi
13106
13107 fi
13108
13109 if test "$PKG_CONFIG" = "no" ; then
13110 echo "*** The pkg-config script could not be found. Make sure it is"
13111 echo "*** in your path, or set the PKG_CONFIG environment variable"
13112 echo "*** to the full path to pkg-config."
13113 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13114 else
13115 PKG_CONFIG_MIN_VERSION=0.9.0
13116 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13117 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13118 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13119
13120 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13121 echo "$as_me:$LINENO: result: yes" >&5
13122 echo "${ECHO_T}yes" >&6
13123 succeeded=yes
13124
13125 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13126 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13127 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13128 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13129 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13130
13131 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13132 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13133 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13134 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13135 echo "${ECHO_T}$GLIB_LIBS" >&6
13136 else
13137 GLIB_CFLAGS=""
13138 GLIB_LIBS=""
13139 ## If we have a custom action on failure, don't print errors, but
13140 ## do set a variable so people can do so.
13141 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13142 echo $GLIB_PKG_ERRORS
13143 fi
13144
13145
13146
13147 else
13148 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13149 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13150 fi
13151 fi
13152
13153 if test $succeeded = yes; then
13154 :
13155 else
13156 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
13157 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
13158 { (exit 1); exit 1; }; }
13159 fi
13160
13161
13162
13163
13164
13165 succeeded=no
13166
13167 if test -z "$PKG_CONFIG"; then
13168 # Extract the first word of "pkg-config", so it can be a program name with args.
13169 set dummy pkg-config; ac_word=$2
13170 echo "$as_me:$LINENO: checking for $ac_word" >&5
13171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13172 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175 case $PKG_CONFIG in
13176 [\\/]* | ?:[\\/]*)
13177 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13178 ;;
13179 *)
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13182 do
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13187 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13190 fi
13191 done
13192 done
13193
13194 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13195 ;;
13196 esac
13197 fi
13198 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13199
13200 if test -n "$PKG_CONFIG"; then
13201 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13202 echo "${ECHO_T}$PKG_CONFIG" >&6
13203 else
13204 echo "$as_me:$LINENO: result: no" >&5
13205 echo "${ECHO_T}no" >&6
13206 fi
13207
13208 fi
13209
13210 if test "$PKG_CONFIG" = "no" ; then
13211 echo "*** The pkg-config script could not be found. Make sure it is"
13212 echo "*** in your path, or set the PKG_CONFIG environment variable"
13213 echo "*** to the full path to pkg-config."
13214 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13215 else
13216 PKG_CONFIG_MIN_VERSION=0.9.0
13217 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13218 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13219 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13220
13221 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13222 echo "$as_me:$LINENO: result: yes" >&5
13223 echo "${ECHO_T}yes" >&6
13224 succeeded=yes
13225
13226 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13227 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13228 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13229 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13230 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13231
13232 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13233 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13234 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13235 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13236 echo "${ECHO_T}$LIBART_LIBS" >&6
13237 else
13238 LIBART_CFLAGS=""
13239 LIBART_LIBS=""
13240 ## If we have a custom action on failure, don't print errors, but
13241 ## do set a variable so people can do so.
13242 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13243 echo $LIBART_PKG_ERRORS
13244 fi
13245
13246
13247
13248 else
13249 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13250 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13251 fi
13252 fi
13253
13254 if test $succeeded = yes; then
13255 :
13256 else
13257 { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
13258 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
13259 { (exit 1); exit 1; }; }
13260 fi
13261
13262
13263
13264
13265 # We require the XTest Extension to support java.awt.Robot.
13266 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13267 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13268 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271 ac_check_lib_save_LIBS=$LIBS
13272 LIBS="-lXtst ${X_LIBS} $LIBS"
13273 if test x$gcc_no_link = xyes; then
13274 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13275 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13276 { (exit 1); exit 1; }; }
13277 fi
13278 cat >conftest.$ac_ext <<_ACEOF
13279 /* confdefs.h. */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284
13285 /* Override any gcc2 internal prototype to avoid an error. */
13286 #ifdef __cplusplus
13287 extern "C"
13288 #endif
13289 /* We use char because int might match the return type of a gcc2
13290 builtin and then its argument prototype would still apply. */
13291 char XTestQueryExtension ();
13292 int
13293 main ()
13294 {
13295 XTestQueryExtension ();
13296 ;
13297 return 0;
13298 }
13299 _ACEOF
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13302 (eval $ac_link) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -z "$ac_c_werror_flag"
13310 || test ! -s conftest.err'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; } &&
13316 { ac_try='test -s conftest$ac_exeext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 ac_cv_lib_Xtst_XTestQueryExtension=yes
13323 else
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13326
13327 ac_cv_lib_Xtst_XTestQueryExtension=no
13328 fi
13329 rm -f conftest.err conftest.$ac_objext \
13330 conftest$ac_exeext conftest.$ac_ext
13331 LIBS=$ac_check_lib_save_LIBS
13332 fi
13333 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13334 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13335 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13336 true
13337 else
13338 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13339 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13340 { (exit 1); exit 1; }; }
13341 fi
13342
13343 fi
13344
13345 # On Solaris, and maybe other architectures, the Boehm collector
13346 # requires -ldl.
13347 if test "$GC" = boehm; then
13348 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13349 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13350 if test "${ac_cv_lib_dl_main+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353 ac_check_lib_save_LIBS=$LIBS
13354 LIBS="-ldl $LIBS"
13355 if test x$gcc_no_link = xyes; then
13356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13358 { (exit 1); exit 1; }; }
13359 fi
13360 cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h. */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366
13367
13368 int
13369 main ()
13370 {
13371 main ();
13372 ;
13373 return 0;
13374 }
13375 _ACEOF
13376 rm -f conftest.$ac_objext conftest$ac_exeext
13377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13378 (eval $ac_link) 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try='test -z "$ac_c_werror_flag"
13386 || test ! -s conftest.err'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; } &&
13392 { ac_try='test -s conftest$ac_exeext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_cv_lib_dl_main=yes
13399 else
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403 ac_cv_lib_dl_main=no
13404 fi
13405 rm -f conftest.err conftest.$ac_objext \
13406 conftest$ac_exeext conftest.$ac_ext
13407 LIBS=$ac_check_lib_save_LIBS
13408 fi
13409 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13410 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13411 if test $ac_cv_lib_dl_main = yes; then
13412 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13413 fi
13414
13415 fi
13416 fi
13417
13418
13419 if test "$supply_backtrace" = yes; then
13420 SUPPLY_BACKTRACE_TRUE=
13421 SUPPLY_BACKTRACE_FALSE='#'
13422 else
13423 SUPPLY_BACKTRACE_TRUE='#'
13424 SUPPLY_BACKTRACE_FALSE=
13425 fi
13426
13427
13428 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13429 case $build in
13430 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13431 *) CLASSPATH_SEPARATOR=':' ;;
13432 esac
13433
13434
13435 # We must search the source tree for java.lang, since we still don't
13436 # have libgcj.jar nor java/lang/*.class
13437 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13438 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13439
13440 # Since some classes depend on this one, we need its source available
13441 # before we can do any GCJ compilation test :-(
13442 if test ! -f gnu/classpath/Configuration.java; then
13443 test -d gnu || mkdir gnu
13444 test -d gnu/classpath || mkdir gnu/classpath
13445 sed -e "s,@LIBGCJDEBUG@,$LIBGCJDEBUG," \
13446 -e "s,@TOOLKIT@,$TOOLKIT," \
13447 < $srcdir/gnu/classpath/Configuration.java.in \
13448 > gnu/classpath/Configuration.java
13449 # We do not want to redirect the output of the grep below to /dev/null,
13450 # but we add /dev/null to the input list so that grep will print the
13451 # filename of Configuration.java in case it finds any matches.
13452 if grep @ gnu/classpath/Configuration.java /dev/null; then
13453 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13454 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13455 { (exit 1); exit 1; }; }
13456 fi
13457 fi
13458
13459 if test -n "$ac_tool_prefix"; then
13460 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13461 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13462 echo "$as_me:$LINENO: checking for $ac_word" >&5
13463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13464 if test "${ac_cv_prog_GCJ+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467 if test -n "$GCJ"; then
13468 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13469 else
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13472 do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13477 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481 done
13482 done
13483
13484 fi
13485 fi
13486 GCJ=$ac_cv_prog_GCJ
13487 if test -n "$GCJ"; then
13488 echo "$as_me:$LINENO: result: $GCJ" >&5
13489 echo "${ECHO_T}$GCJ" >&6
13490 else
13491 echo "$as_me:$LINENO: result: no" >&5
13492 echo "${ECHO_T}no" >&6
13493 fi
13494
13495 fi
13496 if test -z "$ac_cv_prog_GCJ"; then
13497 ac_ct_GCJ=$GCJ
13498 # Extract the first word of "gcj", so it can be a program name with args.
13499 set dummy gcj; ac_word=$2
13500 echo "$as_me:$LINENO: checking for $ac_word" >&5
13501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13502 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505 if test -n "$ac_ct_GCJ"; then
13506 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13507 else
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13510 do
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
13514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13515 ac_cv_prog_ac_ct_GCJ="gcj"
13516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13518 fi
13519 done
13520 done
13521
13522 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13523 fi
13524 fi
13525 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13526 if test -n "$ac_ct_GCJ"; then
13527 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13528 echo "${ECHO_T}$ac_ct_GCJ" >&6
13529 else
13530 echo "$as_me:$LINENO: result: no" >&5
13531 echo "${ECHO_T}no" >&6
13532 fi
13533
13534 GCJ=$ac_ct_GCJ
13535 else
13536 GCJ="$ac_cv_prog_GCJ"
13537 fi
13538
13539 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13540
13541
13542
13543
13544 # Now remove it.
13545 rm -f gnu/classpath/Configuration.java
13546
13547 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13548
13549 echo "$as_me:$LINENO: checking for void *" >&5
13550 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13551 if test "${ac_cv_type_void_p+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13561 int
13562 main ()
13563 {
13564 if ((void * *) 0)
13565 return 0;
13566 if (sizeof (void *))
13567 return 0;
13568 ;
13569 return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_type_void_p=yes
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13598
13599 ac_cv_type_void_p=no
13600 fi
13601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13602 fi
13603 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13604 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13605
13606 echo "$as_me:$LINENO: checking size of void *" >&5
13607 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13608 if test "${ac_cv_sizeof_void_p+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611 if test "$ac_cv_type_void_p" = yes; then
13612 # The cast to unsigned long works around a bug in the HP C Compiler
13613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13615 # This bug is HP SR number 8606223364.
13616 if test "$cross_compiling" = yes; then
13617 # Depending upon the size, compute the lo and hi bounds.
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h. */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 $ac_includes_default
13625 int
13626 main ()
13627 {
13628 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13629 test_array [0] = 0
13630
13631 ;
13632 return 0;
13633 }
13634 _ACEOF
13635 rm -f conftest.$ac_objext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13637 (eval $ac_compile) 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_lo=0 ac_mid=0
13658 while :; do
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 $ac_includes_default
13666 int
13667 main ()
13668 {
13669 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13670 test_array [0] = 0
13671
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -z "$ac_c_werror_flag"
13686 || test ! -s conftest.err'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; } &&
13692 { ac_try='test -s conftest.$ac_objext'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_hi=$ac_mid; break
13699 else
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703 ac_lo=`expr $ac_mid + 1`
13704 if test $ac_lo -le $ac_mid; then
13705 ac_lo= ac_hi=
13706 break
13707 fi
13708 ac_mid=`expr 2 '*' $ac_mid + 1`
13709 fi
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 done
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h. */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13723 int
13724 main ()
13725 {
13726 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13727 test_array [0] = 0
13728
13729 ;
13730 return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>conftest.er1
13736 ac_status=$?
13737 grep -v '^ *+' conftest.er1 >conftest.err
13738 rm -f conftest.er1
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag"
13743 || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_hi=-1 ac_mid=-1
13756 while :; do
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 $ac_includes_default
13764 int
13765 main ()
13766 {
13767 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13768 test_array [0] = 0
13769
13770 ;
13771 return 0;
13772 }
13773 _ACEOF
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_lo=$ac_mid; break
13797 else
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801 ac_hi=`expr '(' $ac_mid ')' - 1`
13802 if test $ac_mid -le $ac_hi; then
13803 ac_lo= ac_hi=
13804 break
13805 fi
13806 ac_mid=`expr 2 '*' $ac_mid`
13807 fi
13808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809 done
13810 else
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13813
13814 ac_lo= ac_hi=
13815 fi
13816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817 fi
13818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819 # Binary search between lo and hi bounds.
13820 while test "x$ac_lo" != "x$ac_hi"; do
13821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 $ac_includes_default
13829 int
13830 main ()
13831 {
13832 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13833 test_array [0] = 0
13834
13835 ;
13836 return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest.$ac_objext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_hi=$ac_mid
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_lo=`expr '(' $ac_mid ')' + 1`
13867 fi
13868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13869 done
13870 case $ac_lo in
13871 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13873 See \`config.log' for more details." >&5
13874 echo "$as_me: error: cannot compute sizeof (void *), 77
13875 See \`config.log' for more details." >&2;}
13876 { (exit 1); exit 1; }; } ;;
13877 esac
13878 else
13879 if test "$cross_compiling" = yes; then
13880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13881 See \`config.log' for more details." >&5
13882 echo "$as_me: error: cannot run test program while cross compiling
13883 See \`config.log' for more details." >&2;}
13884 { (exit 1); exit 1; }; }
13885 else
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h. */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 $ac_includes_default
13893 long longval () { return (long) (sizeof (void *)); }
13894 unsigned long ulongval () { return (long) (sizeof (void *)); }
13895 #include <stdio.h>
13896 #include <stdlib.h>
13897 int
13898 main ()
13899 {
13900
13901 FILE *f = fopen ("conftest.val", "w");
13902 if (! f)
13903 exit (1);
13904 if (((long) (sizeof (void *))) < 0)
13905 {
13906 long i = longval ();
13907 if (i != ((long) (sizeof (void *))))
13908 exit (1);
13909 fprintf (f, "%ld\n", i);
13910 }
13911 else
13912 {
13913 unsigned long i = ulongval ();
13914 if (i != ((long) (sizeof (void *))))
13915 exit (1);
13916 fprintf (f, "%lu\n", i);
13917 }
13918 exit (ferror (f) || fclose (f) != 0);
13919
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 rm -f conftest$ac_exeext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 ac_cv_sizeof_void_p=`cat conftest.val`
13936 else
13937 echo "$as_me: program exited with status $ac_status" >&5
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 ( exit $ac_status )
13942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13943 See \`config.log' for more details." >&5
13944 echo "$as_me: error: cannot compute sizeof (void *), 77
13945 See \`config.log' for more details." >&2;}
13946 { (exit 1); exit 1; }; }
13947 fi
13948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13949 fi
13950 fi
13951 rm -f conftest.val
13952 else
13953 ac_cv_sizeof_void_p=0
13954 fi
13955 fi
13956 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13957 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13958 cat >>confdefs.h <<_ACEOF
13959 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13960 _ACEOF
13961
13962
13963
13964 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13965 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13966 if test "${ac_cv_c_bigendian+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969 # See if sys/param.h defines the BYTE_ORDER macro.
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h. */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 #include <sys/types.h>
13977 #include <sys/param.h>
13978
13979 int
13980 main ()
13981 {
13982 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13983 bogus endian macros
13984 #endif
13985
13986 ;
13987 return 0;
13988 }
13989 _ACEOF
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992 (eval $ac_compile) 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } &&
13999 { ac_try='test -z "$ac_c_werror_flag"
14000 || test ! -s conftest.err'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14003 ac_status=$?
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; } &&
14006 { ac_try='test -s conftest.$ac_objext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 # It does; now see whether it defined to BIG_ENDIAN or not.
14013 cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h. */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 #include <sys/types.h>
14020 #include <sys/param.h>
14021
14022 int
14023 main ()
14024 {
14025 #if BYTE_ORDER != BIG_ENDIAN
14026 not big endian
14027 #endif
14028
14029 ;
14030 return 0;
14031 }
14032 _ACEOF
14033 rm -f conftest.$ac_objext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035 (eval $ac_compile) 2>conftest.er1
14036 ac_status=$?
14037 grep -v '^ *+' conftest.er1 >conftest.err
14038 rm -f conftest.er1
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -z "$ac_c_werror_flag"
14043 || test ! -s conftest.err'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; } &&
14049 { ac_try='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_cv_c_bigendian=yes
14056 else
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14059
14060 ac_cv_c_bigendian=no
14061 fi
14062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14063 else
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 # It does not; compile a test program.
14068 if test "$cross_compiling" = yes; then
14069 # try to guess the endianness by grepping values into an object file
14070 ac_cv_c_bigendian=unknown
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h. */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14078 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14079 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14080 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14081 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14082 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14083 int
14084 main ()
14085 {
14086 _ascii (); _ebcdic ();
14087 ;
14088 return 0;
14089 }
14090 _ACEOF
14091 rm -f conftest.$ac_objext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093 (eval $ac_compile) 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_c_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14114 ac_cv_c_bigendian=yes
14115 fi
14116 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14117 if test "$ac_cv_c_bigendian" = unknown; then
14118 ac_cv_c_bigendian=no
14119 else
14120 # finding both strings is unlikely to happen, but who knows?
14121 ac_cv_c_bigendian=unknown
14122 fi
14123 fi
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 fi
14129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14130 else
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h. */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 int
14138 main ()
14139 {
14140 /* Are we little or big endian? From Harbison&Steele. */
14141 union
14142 {
14143 long l;
14144 char c[sizeof (long)];
14145 } u;
14146 u.l = 1;
14147 exit (u.c[sizeof (long) - 1] == 1);
14148 }
14149 _ACEOF
14150 rm -f conftest$ac_exeext
14151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14152 (eval $ac_link) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_c_bigendian=no
14162 else
14163 echo "$as_me: program exited with status $ac_status" >&5
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 ( exit $ac_status )
14168 ac_cv_c_bigendian=yes
14169 fi
14170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14171 fi
14172 fi
14173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14174 fi
14175 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14176 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14177 case $ac_cv_c_bigendian in
14178 yes)
14179
14180 cat >>confdefs.h <<\_ACEOF
14181 #define WORDS_BIGENDIAN 1
14182 _ACEOF
14183 ;;
14184 no)
14185 ;;
14186 *)
14187 { { echo "$as_me:$LINENO: error: unknown endianness
14188 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14189 echo "$as_me: error: unknown endianness
14190 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14191 { (exit 1); exit 1; }; } ;;
14192 esac
14193
14194
14195 ZLIBS=
14196 SYS_ZLIBS=
14197 ZINCS=
14198
14199 if test -z "$ZLIBSPEC"; then
14200 # Use zlib from the GCC tree.
14201 ZINCS='-I$(top_srcdir)/../zlib'
14202 ZLIBS=../zlib/libzgcj_convenience.la
14203 else
14204 # System's zlib.
14205 SYS_ZLIBS="$ZLIBSPEC"
14206 fi
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218 if test "$NATIVE" = yes; then
14219 NATIVE_TRUE=
14220 NATIVE_FALSE='#'
14221 else
14222 NATIVE_TRUE='#'
14223 NATIVE_FALSE=
14224 fi
14225
14226
14227
14228 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14229 NEEDS_DATA_START_TRUE=
14230 NEEDS_DATA_START_FALSE='#'
14231 else
14232 NEEDS_DATA_START_TRUE='#'
14233 NEEDS_DATA_START_FALSE=
14234 fi
14235
14236
14237
14238 # Process the option "--enable-version-specific-runtime-libs"
14239 # Calculate toolexeclibdir
14240 case ${version_specific_libs} in
14241 yes)
14242 # Need the gcc compiler version to know where to install libraries
14243 # and header files if --enable-version-specific-runtime-libs option
14244 # is selected.
14245 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14246 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14247 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14248 toolexeclibdir=$toolexecmainlibdir
14249 ;;
14250 no)
14251 if test -n "$with_cross_host" &&
14252 test x"$with_cross_host" != x"no"; then
14253 # Install a library built with a cross compiler in tooldir, not libdir.
14254 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14255 toolexecmainlibdir='$(toolexecdir)/lib'
14256 else
14257 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14258 toolexecmainlibdir='$(libdir)'
14259 fi
14260 multi_os_directory=`$CC -print-multi-os-directory`
14261 case $multi_os_directory in
14262 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14263 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14264 esac
14265 ;;
14266 esac
14267
14268
14269
14270
14271 # Determine gcj version number.
14272 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14273 GCJVERSION=$gcjversion
14274
14275
14276 cat >>confdefs.h <<_ACEOF
14277 #define GCJVERSION "$GCJVERSION"
14278 _ACEOF
14279
14280
14281
14282 cat >>confdefs.h <<\_ACEOF
14283 #define JV_VERSION "1.4.2"
14284 _ACEOF
14285
14286
14287 cat >>confdefs.h <<\_ACEOF
14288 #define JV_API_VERSION "1.4"
14289 _ACEOF
14290
14291
14292
14293 case "${with_gxx_include_dir}" in
14294 yes)
14295 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14296 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14297 { (exit 1); exit 1; }; }
14298 ;;
14299 no | "")
14300 case "${enable_version_specific_runtime_libs}" in
14301 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14302 *)
14303 libstdcxx_incdir='c++/$(gcc_version)'
14304 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14305 esac ;;
14306 *) gxx_include_dir=${with_gxx_include_dir} ;;
14307 esac
14308
14309
14310
14311
14312 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14313 # On that system, sys/ioctl.h will not include sys/filio.h unless
14314 # BSD_COMP is defined; just including sys/filio.h is simpler.
14315 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14316 # for now. If you change this, you also must update natFile.cc.
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14338 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14339 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14340 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14341 dirent.h
14342 do
14343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345 echo "$as_me:$LINENO: checking for $ac_header" >&5
14346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 fi
14350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14352 else
14353 # Is the header compilable?
14354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h. */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 $ac_includes_default
14363 #include <$ac_header>
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367 (eval $ac_compile) 2>conftest.er1
14368 ac_status=$?
14369 grep -v '^ *+' conftest.er1 >conftest.err
14370 rm -f conftest.er1
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } &&
14374 { ac_try='test -z "$ac_c_werror_flag"
14375 || test ! -s conftest.err'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; } &&
14381 { ac_try='test -s conftest.$ac_objext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 ac_header_compiler=yes
14388 else
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 ac_header_compiler=no
14393 fi
14394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14396 echo "${ECHO_T}$ac_header_compiler" >&6
14397
14398 # Is the header present?
14399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14401 cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h. */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 #include <$ac_header>
14408 _ACEOF
14409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14411 ac_status=$?
14412 grep -v '^ *+' conftest.er1 >conftest.err
14413 rm -f conftest.er1
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } >/dev/null; then
14417 if test -s conftest.err; then
14418 ac_cpp_err=$ac_c_preproc_warn_flag
14419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14420 else
14421 ac_cpp_err=
14422 fi
14423 else
14424 ac_cpp_err=yes
14425 fi
14426 if test -z "$ac_cpp_err"; then
14427 ac_header_preproc=yes
14428 else
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432 ac_header_preproc=no
14433 fi
14434 rm -f conftest.err conftest.$ac_ext
14435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14436 echo "${ECHO_T}$ac_header_preproc" >&6
14437
14438 # So? What about this header?
14439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14440 yes:no: )
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14445 ac_header_preproc=yes
14446 ;;
14447 no:yes:* )
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14460 (
14461 cat <<\_ASBOX
14462 ## ---------------------------------- ##
14463 ## Report this to the libjava lists. ##
14464 ## ---------------------------------- ##
14465 _ASBOX
14466 ) |
14467 sed "s/^/$as_me: WARNING: /" >&2
14468 ;;
14469 esac
14470 echo "$as_me:$LINENO: checking for $ac_header" >&5
14471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475 eval "$as_ac_Header=\$ac_header_preproc"
14476 fi
14477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14479
14480 fi
14481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14482 cat >>confdefs.h <<_ACEOF
14483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14484 _ACEOF
14485
14486 fi
14487
14488 done
14489
14490
14491 for ac_header in inttypes.h
14492 do
14493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14495 echo "$as_me:$LINENO: checking for $ac_header" >&5
14496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 fi
14500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14502 else
14503 # Is the header compilable?
14504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14506 cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h. */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 $ac_includes_default
14513 #include <$ac_header>
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517 (eval $ac_compile) 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 ac_header_compiler=yes
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_header_compiler=no
14543 fi
14544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14546 echo "${ECHO_T}$ac_header_compiler" >&6
14547
14548 # Is the header present?
14549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 #include <$ac_header>
14558 _ACEOF
14559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } >/dev/null; then
14567 if test -s conftest.err; then
14568 ac_cpp_err=$ac_c_preproc_warn_flag
14569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14570 else
14571 ac_cpp_err=
14572 fi
14573 else
14574 ac_cpp_err=yes
14575 fi
14576 if test -z "$ac_cpp_err"; then
14577 ac_header_preproc=yes
14578 else
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14581
14582 ac_header_preproc=no
14583 fi
14584 rm -f conftest.err conftest.$ac_ext
14585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14586 echo "${ECHO_T}$ac_header_preproc" >&6
14587
14588 # So? What about this header?
14589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14590 yes:no: )
14591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14595 ac_header_preproc=yes
14596 ;;
14597 no:yes:* )
14598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14610 (
14611 cat <<\_ASBOX
14612 ## ---------------------------------- ##
14613 ## Report this to the libjava lists. ##
14614 ## ---------------------------------- ##
14615 _ASBOX
14616 ) |
14617 sed "s/^/$as_me: WARNING: /" >&2
14618 ;;
14619 esac
14620 echo "$as_me:$LINENO: checking for $ac_header" >&5
14621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625 eval "$as_ac_Header=\$ac_header_preproc"
14626 fi
14627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14629
14630 fi
14631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14632 cat >>confdefs.h <<_ACEOF
14633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14634 _ACEOF
14635
14636
14637 cat >>confdefs.h <<\_ACEOF
14638 #define HAVE_INTTYPES_H 1
14639 _ACEOF
14640
14641
14642 cat >>confdefs.h <<\_ACEOF
14643 #define JV_HAVE_INTTYPES_H 1
14644 _ACEOF
14645
14646
14647 fi
14648
14649 done
14650
14651 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14652 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14653 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656 cat >conftest.$ac_ext <<_ACEOF
14657 /* confdefs.h. */
14658 _ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h. */
14662 #include <sys/types.h>
14663 #include <sys/wait.h>
14664 #ifndef WEXITSTATUS
14665 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14666 #endif
14667 #ifndef WIFEXITED
14668 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14669 #endif
14670
14671 int
14672 main ()
14673 {
14674 int s;
14675 wait (&s);
14676 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14677 ;
14678 return 0;
14679 }
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683 (eval $ac_compile) 2>conftest.er1
14684 ac_status=$?
14685 grep -v '^ *+' conftest.er1 >conftest.err
14686 rm -f conftest.er1
14687 cat conftest.err >&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -z "$ac_c_werror_flag"
14691 || test ! -s conftest.err'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest.$ac_objext'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14700 ac_status=$?
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }; then
14703 ac_cv_header_sys_wait_h=yes
14704 else
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 ac_cv_header_sys_wait_h=no
14709 fi
14710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14711 fi
14712 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14713 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14714 if test $ac_cv_header_sys_wait_h = yes; then
14715
14716 cat >>confdefs.h <<\_ACEOF
14717 #define HAVE_SYS_WAIT_H 1
14718 _ACEOF
14719
14720 fi
14721
14722
14723 echo "$as_me:$LINENO: checking for ssize_t" >&5
14724 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14725 if test "${ac_cv_type_ssize_t+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728 cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h. */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 $ac_includes_default
14735 int
14736 main ()
14737 {
14738 if ((ssize_t *) 0)
14739 return 0;
14740 if (sizeof (ssize_t))
14741 return 0;
14742 ;
14743 return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748 (eval $ac_compile) 2>conftest.er1
14749 ac_status=$?
14750 grep -v '^ *+' conftest.er1 >conftest.err
14751 rm -f conftest.er1
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -z "$ac_c_werror_flag"
14756 || test ! -s conftest.err'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; } &&
14762 { ac_try='test -s conftest.$ac_objext'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; }; then
14768 ac_cv_type_ssize_t=yes
14769 else
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_cv_type_ssize_t=no
14774 fi
14775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14776 fi
14777 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14778 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14779 if test $ac_cv_type_ssize_t = yes; then
14780 :
14781 else
14782
14783 cat >>confdefs.h <<_ACEOF
14784 #define ssize_t int
14785 _ACEOF
14786
14787 fi
14788
14789
14790 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14791 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14792 cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h. */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <sys/types.h>
14799 #if STDC_HEADERS
14800 #include <stdlib.h>
14801 #include <stddef.h>
14802 #endif
14803 #if HAVE_NETINET_IN_H
14804 #include <netinet/in.h>
14805 #endif
14806 int
14807 main ()
14808 {
14809 in_addr_t foo;
14810 ;
14811 return 0;
14812 }
14813 _ACEOF
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836
14837 cat >>confdefs.h <<\_ACEOF
14838 #define HAVE_IN_ADDR_T 1
14839 _ACEOF
14840
14841 echo "$as_me:$LINENO: result: yes" >&5
14842 echo "${ECHO_T}yes" >&6
14843 else
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 echo "$as_me:$LINENO: result: no" >&5
14848 echo "${ECHO_T}no" >&6
14849 fi
14850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14851
14852 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14853 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h. */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 #include <netinet/in.h>
14861 int
14862 main ()
14863 {
14864 struct ip_mreq mreq;
14865 ;
14866 return 0;
14867 }
14868 _ACEOF
14869 rm -f conftest.$ac_objext
14870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14871 (eval $ac_compile) 2>conftest.er1
14872 ac_status=$?
14873 grep -v '^ *+' conftest.er1 >conftest.err
14874 rm -f conftest.er1
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } &&
14878 { ac_try='test -z "$ac_c_werror_flag"
14879 || test ! -s conftest.err'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } &&
14885 { ac_try='test -s conftest.$ac_objext'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891
14892 cat >>confdefs.h <<\_ACEOF
14893 #define HAVE_STRUCT_IP_MREQ 1
14894 _ACEOF
14895
14896 echo "$as_me:$LINENO: result: yes" >&5
14897 echo "${ECHO_T}yes" >&6
14898 else
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 echo "$as_me:$LINENO: result: no" >&5
14903 echo "${ECHO_T}no" >&6
14904 fi
14905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14906
14907 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14908 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14909 cat >conftest.$ac_ext <<_ACEOF
14910 /* confdefs.h. */
14911 _ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14915 #include <netinet/in.h>
14916 int
14917 main ()
14918 {
14919 struct ipv6_mreq mreq6;
14920 ;
14921 return 0;
14922 }
14923 _ACEOF
14924 rm -f conftest.$ac_objext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926 (eval $ac_compile) 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -z "$ac_c_werror_flag"
14934 || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest.$ac_objext'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14946
14947 cat >>confdefs.h <<\_ACEOF
14948 #define HAVE_STRUCT_IPV6_MREQ 1
14949 _ACEOF
14950
14951 echo "$as_me:$LINENO: result: yes" >&5
14952 echo "${ECHO_T}yes" >&6
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14956
14957 echo "$as_me:$LINENO: result: no" >&5
14958 echo "${ECHO_T}no" >&6
14959 fi
14960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14961
14962 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14963 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14964 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 #include <netinet/in.h>
14971 int
14972 main ()
14973 {
14974 struct sockaddr_in6 addr6;
14975 ;
14976 return 0;
14977 }
14978 _ACEOF
14979 rm -f conftest.$ac_objext
14980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14981 (eval $ac_compile) 2>conftest.er1
14982 ac_status=$?
14983 grep -v '^ *+' conftest.er1 >conftest.err
14984 rm -f conftest.er1
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try='test -z "$ac_c_werror_flag"
14989 || test ! -s conftest.err'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; } &&
14995 { ac_try='test -s conftest.$ac_objext'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15001
15002 cat >>confdefs.h <<\_ACEOF
15003 #define HAVE_INET6 1
15004 _ACEOF
15005
15006 echo "$as_me:$LINENO: result: yes" >&5
15007 echo "${ECHO_T}yes" >&6
15008 else
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012 echo "$as_me:$LINENO: result: no" >&5
15013 echo "${ECHO_T}no" >&6
15014 fi
15015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016
15017 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15018 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15019 cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h. */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 #define _POSIX_PII_SOCKET
15026 #include <sys/types.h>
15027 #include <sys/socket.h>
15028 int
15029 main ()
15030 {
15031 socklen_t x = 5;
15032 ;
15033 return 0;
15034 }
15035 _ACEOF
15036 rm -f conftest.$ac_objext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15038 (eval $ac_compile) 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag"
15046 || test ! -s conftest.err'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; } &&
15052 { ac_try='test -s conftest.$ac_objext'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058
15059 cat >>confdefs.h <<\_ACEOF
15060 #define HAVE_SOCKLEN_T 1
15061 _ACEOF
15062
15063 echo "$as_me:$LINENO: result: yes" >&5
15064 echo "${ECHO_T}yes" >&6
15065 else
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15068
15069 echo "$as_me:$LINENO: result: no" >&5
15070 echo "${ECHO_T}no" >&6
15071 fi
15072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15073
15074 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15075 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <time.h>
15083 int
15084 main ()
15085 {
15086 struct tm tim; tim.tm_gmtoff = 0;
15087 ;
15088 return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093 (eval $ac_compile) 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag"
15101 || test ! -s conftest.err'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; } &&
15107 { ac_try='test -s conftest.$ac_objext'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113
15114 cat >>confdefs.h <<\_ACEOF
15115 #define STRUCT_TM_HAS_GMTOFF 1
15116 _ACEOF
15117
15118 echo "$as_me:$LINENO: result: yes" >&5
15119 echo "${ECHO_T}yes" >&6
15120 else
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 echo "$as_me:$LINENO: result: no" >&5
15125 echo "${ECHO_T}no" >&6
15126 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15127 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h. */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 #include <time.h>
15135 int
15136 main ()
15137 {
15138 void i(){long z2 = 2*timezone;}
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 rm -f conftest.$ac_objext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15145 (eval $ac_compile) 2>conftest.er1
15146 ac_status=$?
15147 grep -v '^ *+' conftest.er1 >conftest.err
15148 rm -f conftest.er1
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -z "$ac_c_werror_flag"
15153 || test ! -s conftest.err'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; } &&
15159 { ac_try='test -s conftest.$ac_objext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165
15166 cat >>confdefs.h <<\_ACEOF
15167 #define HAVE_TIMEZONE 1
15168 _ACEOF
15169
15170 echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6
15172 else
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176 echo "$as_me:$LINENO: result: no" >&5
15177 echo "${ECHO_T}no" >&6
15178 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15179 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15180 cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h. */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 #include <time.h>
15187 int
15188 main ()
15189 {
15190 long z2 = _timezone;
15191 ;
15192 return 0;
15193 }
15194 _ACEOF
15195 rm -f conftest.$ac_objext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15197 (eval $ac_compile) 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
15204 { ac_try='test -z "$ac_c_werror_flag"
15205 || test ! -s conftest.err'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try='test -s conftest.$ac_objext'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15214 ac_status=$?
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_UNDERSCORE_TIMEZONE 1
15220 _ACEOF
15221
15222 echo "$as_me:$LINENO: result: yes" >&5
15223 echo "${ECHO_T}yes" >&6
15224 else
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228 echo "$as_me:$LINENO: result: no" >&5
15229 echo "${ECHO_T}no" >&6
15230 fi
15231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15232 fi
15233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15234 fi
15235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15236
15237 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15238 # for constant arguments. Useless!
15239 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15240 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15241 if test "${ac_cv_working_alloca_h+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244 if test x$gcc_no_link = xyes; then
15245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15247 { (exit 1); exit 1; }; }
15248 fi
15249 cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h. */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 #include <alloca.h>
15256 int
15257 main ()
15258 {
15259 char *p = (char *) alloca (2 * sizeof (int));
15260 ;
15261 return 0;
15262 }
15263 _ACEOF
15264 rm -f conftest.$ac_objext conftest$ac_exeext
15265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15266 (eval $ac_link) 2>conftest.er1
15267 ac_status=$?
15268 grep -v '^ *+' conftest.er1 >conftest.err
15269 rm -f conftest.er1
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -z "$ac_c_werror_flag"
15274 || test ! -s conftest.err'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } &&
15280 { ac_try='test -s conftest$ac_exeext'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15286 ac_cv_working_alloca_h=yes
15287 else
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291 ac_cv_working_alloca_h=no
15292 fi
15293 rm -f conftest.err conftest.$ac_objext \
15294 conftest$ac_exeext conftest.$ac_ext
15295 fi
15296 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15297 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15298 if test $ac_cv_working_alloca_h = yes; then
15299
15300 cat >>confdefs.h <<\_ACEOF
15301 #define HAVE_ALLOCA_H 1
15302 _ACEOF
15303
15304 fi
15305
15306 echo "$as_me:$LINENO: checking for alloca" >&5
15307 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15308 if test "${ac_cv_func_alloca_works+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 else
15311 if test x$gcc_no_link = xyes; then
15312 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15313 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15314 { (exit 1); exit 1; }; }
15315 fi
15316 cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h. */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 #ifdef __GNUC__
15323 # define alloca __builtin_alloca
15324 #else
15325 # ifdef _MSC_VER
15326 # include <malloc.h>
15327 # define alloca _alloca
15328 # else
15329 # if HAVE_ALLOCA_H
15330 # include <alloca.h>
15331 # else
15332 # ifdef _AIX
15333 #pragma alloca
15334 # else
15335 # ifndef alloca /* predefined by HP cc +Olibcalls */
15336 char *alloca ();
15337 # endif
15338 # endif
15339 # endif
15340 # endif
15341 #endif
15342
15343 int
15344 main ()
15345 {
15346 char *p = (char *) alloca (1);
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15353 (eval $ac_link) 2>conftest.er1
15354 ac_status=$?
15355 grep -v '^ *+' conftest.er1 >conftest.err
15356 rm -f conftest.er1
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -z "$ac_c_werror_flag"
15361 || test ! -s conftest.err'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; } &&
15367 { ac_try='test -s conftest$ac_exeext'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
15373 ac_cv_func_alloca_works=yes
15374 else
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378 ac_cv_func_alloca_works=no
15379 fi
15380 rm -f conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15382 fi
15383 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15384 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15385
15386 if test $ac_cv_func_alloca_works = yes; then
15387
15388 cat >>confdefs.h <<\_ACEOF
15389 #define HAVE_ALLOCA 1
15390 _ACEOF
15391
15392 else
15393 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15394 # that cause trouble. Some versions do not even contain alloca or
15395 # contain a buggy version. If you still want to use their alloca,
15396 # use ar to extract alloca.o from them instead of compiling alloca.c.
15397
15398 ALLOCA=alloca.$ac_objext
15399
15400 cat >>confdefs.h <<\_ACEOF
15401 #define C_ALLOCA 1
15402 _ACEOF
15403
15404
15405 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15406 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15407 if test "${ac_cv_os_cray+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 #if defined(CRAY) && ! defined(CRAY2)
15417 webecray
15418 #else
15419 wenotbecray
15420 #endif
15421
15422 _ACEOF
15423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15424 $EGREP "webecray" >/dev/null 2>&1; then
15425 ac_cv_os_cray=yes
15426 else
15427 ac_cv_os_cray=no
15428 fi
15429 rm -f conftest*
15430
15431 fi
15432 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15433 echo "${ECHO_T}$ac_cv_os_cray" >&6
15434 if test $ac_cv_os_cray = yes; then
15435 for ac_func in _getb67 GETB67 getb67; do
15436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15437 echo "$as_me:$LINENO: checking for $ac_func" >&5
15438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15439 if eval "test \"\${$as_ac_var+set}\" = set"; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 else
15442 if test x$gcc_no_link = xyes; then
15443 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15444 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15445 { (exit 1); exit 1; }; }
15446 fi
15447 cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h. */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15455 #define $ac_func innocuous_$ac_func
15456
15457 /* System header to define __stub macros and hopefully few prototypes,
15458 which can conflict with char $ac_func (); below.
15459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15460 <limits.h> exists even on freestanding compilers. */
15461
15462 #ifdef __STDC__
15463 # include <limits.h>
15464 #else
15465 # include <assert.h>
15466 #endif
15467
15468 #undef $ac_func
15469
15470 /* Override any gcc2 internal prototype to avoid an error. */
15471 #ifdef __cplusplus
15472 extern "C"
15473 {
15474 #endif
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477 char $ac_func ();
15478 /* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15482 choke me
15483 #else
15484 char (*f) () = $ac_func;
15485 #endif
15486 #ifdef __cplusplus
15487 }
15488 #endif
15489
15490 int
15491 main ()
15492 {
15493 return f != $ac_func;
15494 ;
15495 return 0;
15496 }
15497 _ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15500 (eval $ac_link) 2>conftest.er1
15501 ac_status=$?
15502 grep -v '^ *+' conftest.er1 >conftest.err
15503 rm -f conftest.er1
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } &&
15507 { ac_try='test -z "$ac_c_werror_flag"
15508 || test ! -s conftest.err'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; } &&
15514 { ac_try='test -s conftest$ac_exeext'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 eval "$as_ac_var=yes"
15521 else
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525 eval "$as_ac_var=no"
15526 fi
15527 rm -f conftest.err conftest.$ac_objext \
15528 conftest$ac_exeext conftest.$ac_ext
15529 fi
15530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15532 if test `eval echo '${'$as_ac_var'}'` = yes; then
15533
15534 cat >>confdefs.h <<_ACEOF
15535 #define CRAY_STACKSEG_END $ac_func
15536 _ACEOF
15537
15538 break
15539 fi
15540
15541 done
15542 fi
15543
15544 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15545 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15546 if test "${ac_cv_c_stack_direction+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15548 else
15549 if test "$cross_compiling" = yes; then
15550 ac_cv_c_stack_direction=0
15551 else
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h. */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 int
15559 find_stack_direction ()
15560 {
15561 static char *addr = 0;
15562 auto char dummy;
15563 if (addr == 0)
15564 {
15565 addr = &dummy;
15566 return find_stack_direction ();
15567 }
15568 else
15569 return (&dummy > addr) ? 1 : -1;
15570 }
15571
15572 int
15573 main ()
15574 {
15575 exit (find_stack_direction () < 0);
15576 }
15577 _ACEOF
15578 rm -f conftest$ac_exeext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 ac_cv_c_stack_direction=1
15590 else
15591 echo "$as_me: program exited with status $ac_status" >&5
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15594
15595 ( exit $ac_status )
15596 ac_cv_c_stack_direction=-1
15597 fi
15598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15599 fi
15600 fi
15601 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15602 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15603
15604 cat >>confdefs.h <<_ACEOF
15605 #define STACK_DIRECTION $ac_cv_c_stack_direction
15606 _ACEOF
15607
15608
15609 fi
15610
15611 if test x$gcc_no_link = xyes; then
15612 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15613 ac_cv_func_mmap_fixed_mapped=no
15614 fi
15615 fi
15616 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
15617
15618
15619 for ac_header in stdlib.h unistd.h
15620 do
15621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15623 echo "$as_me:$LINENO: checking for $ac_header" >&5
15624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 fi
15628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15630 else
15631 # Is the header compilable?
15632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h. */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15641 #include <$ac_header>
15642 _ACEOF
15643 rm -f conftest.$ac_objext
15644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15645 (eval $ac_compile) 2>conftest.er1
15646 ac_status=$?
15647 grep -v '^ *+' conftest.er1 >conftest.err
15648 rm -f conftest.er1
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag"
15653 || test ! -s conftest.err'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; } &&
15659 { ac_try='test -s conftest.$ac_objext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
15665 ac_header_compiler=yes
15666 else
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15669
15670 ac_header_compiler=no
15671 fi
15672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15674 echo "${ECHO_T}$ac_header_compiler" >&6
15675
15676 # Is the header present?
15677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h. */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 #include <$ac_header>
15686 _ACEOF
15687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15689 ac_status=$?
15690 grep -v '^ *+' conftest.er1 >conftest.err
15691 rm -f conftest.er1
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } >/dev/null; then
15695 if test -s conftest.err; then
15696 ac_cpp_err=$ac_c_preproc_warn_flag
15697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15698 else
15699 ac_cpp_err=
15700 fi
15701 else
15702 ac_cpp_err=yes
15703 fi
15704 if test -z "$ac_cpp_err"; then
15705 ac_header_preproc=yes
15706 else
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 ac_header_preproc=no
15711 fi
15712 rm -f conftest.err conftest.$ac_ext
15713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15714 echo "${ECHO_T}$ac_header_preproc" >&6
15715
15716 # So? What about this header?
15717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15718 yes:no: )
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15723 ac_header_preproc=yes
15724 ;;
15725 no:yes:* )
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15738 (
15739 cat <<\_ASBOX
15740 ## ---------------------------------- ##
15741 ## Report this to the libjava lists. ##
15742 ## ---------------------------------- ##
15743 _ASBOX
15744 ) |
15745 sed "s/^/$as_me: WARNING: /" >&2
15746 ;;
15747 esac
15748 echo "$as_me:$LINENO: checking for $ac_header" >&5
15749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753 eval "$as_ac_Header=\$ac_header_preproc"
15754 fi
15755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15757
15758 fi
15759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15762 _ACEOF
15763
15764 fi
15765
15766 done
15767
15768
15769 for ac_func in getpagesize
15770 do
15771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15772 echo "$as_me:$LINENO: checking for $ac_func" >&5
15773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15774 if eval "test \"\${$as_ac_var+set}\" = set"; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777 if test x$gcc_no_link = xyes; then
15778 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15779 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15780 { (exit 1); exit 1; }; }
15781 fi
15782 cat >conftest.$ac_ext <<_ACEOF
15783 /* confdefs.h. */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15790 #define $ac_func innocuous_$ac_func
15791
15792 /* System header to define __stub macros and hopefully few prototypes,
15793 which can conflict with char $ac_func (); below.
15794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15795 <limits.h> exists even on freestanding compilers. */
15796
15797 #ifdef __STDC__
15798 # include <limits.h>
15799 #else
15800 # include <assert.h>
15801 #endif
15802
15803 #undef $ac_func
15804
15805 /* Override any gcc2 internal prototype to avoid an error. */
15806 #ifdef __cplusplus
15807 extern "C"
15808 {
15809 #endif
15810 /* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15812 char $ac_func ();
15813 /* The GNU C library defines this for functions which it implements
15814 to always fail with ENOSYS. Some functions are actually named
15815 something starting with __ and the normal name is an alias. */
15816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15817 choke me
15818 #else
15819 char (*f) () = $ac_func;
15820 #endif
15821 #ifdef __cplusplus
15822 }
15823 #endif
15824
15825 int
15826 main ()
15827 {
15828 return f != $ac_func;
15829 ;
15830 return 0;
15831 }
15832 _ACEOF
15833 rm -f conftest.$ac_objext conftest$ac_exeext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15835 (eval $ac_link) 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -z "$ac_c_werror_flag"
15843 || test ! -s conftest.err'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest$ac_exeext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 eval "$as_ac_var=yes"
15856 else
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15859
15860 eval "$as_ac_var=no"
15861 fi
15862 rm -f conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864 fi
15865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15867 if test `eval echo '${'$as_ac_var'}'` = yes; then
15868 cat >>confdefs.h <<_ACEOF
15869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15870 _ACEOF
15871
15872 fi
15873 done
15874
15875 echo "$as_me:$LINENO: checking for working mmap" >&5
15876 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15877 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 else
15880 if test "$cross_compiling" = yes; then
15881 ac_cv_func_mmap_fixed_mapped=no
15882 else
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h. */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 $ac_includes_default
15890 /* malloc might have been renamed as rpl_malloc. */
15891 #undef malloc
15892
15893 /* Thanks to Mike Haertel and Jim Avera for this test.
15894 Here is a matrix of mmap possibilities:
15895 mmap private not fixed
15896 mmap private fixed at somewhere currently unmapped
15897 mmap private fixed at somewhere already mapped
15898 mmap shared not fixed
15899 mmap shared fixed at somewhere currently unmapped
15900 mmap shared fixed at somewhere already mapped
15901 For private mappings, we should verify that changes cannot be read()
15902 back from the file, nor mmap's back from the file at a different
15903 address. (There have been systems where private was not correctly
15904 implemented like the infamous i386 svr4.0, and systems where the
15905 VM page cache was not coherent with the file system buffer cache
15906 like early versions of FreeBSD and possibly contemporary NetBSD.)
15907 For shared mappings, we should conversely verify that changes get
15908 propagated back to all the places they're supposed to be.
15909
15910 Grep wants private fixed already mapped.
15911 The main things grep needs to know about mmap are:
15912 * does it exist and is it safe to write into the mmap'd area
15913 * how to use it (BSD variants) */
15914
15915 #include <fcntl.h>
15916 #include <sys/mman.h>
15917
15918 #if !STDC_HEADERS && !HAVE_STDLIB_H
15919 char *malloc ();
15920 #endif
15921
15922 /* This mess was copied from the GNU getpagesize.h. */
15923 #if !HAVE_GETPAGESIZE
15924 /* Assume that all systems that can run configure have sys/param.h. */
15925 # if !HAVE_SYS_PARAM_H
15926 # define HAVE_SYS_PARAM_H 1
15927 # endif
15928
15929 # ifdef _SC_PAGESIZE
15930 # define getpagesize() sysconf(_SC_PAGESIZE)
15931 # else /* no _SC_PAGESIZE */
15932 # if HAVE_SYS_PARAM_H
15933 # include <sys/param.h>
15934 # ifdef EXEC_PAGESIZE
15935 # define getpagesize() EXEC_PAGESIZE
15936 # else /* no EXEC_PAGESIZE */
15937 # ifdef NBPG
15938 # define getpagesize() NBPG * CLSIZE
15939 # ifndef CLSIZE
15940 # define CLSIZE 1
15941 # endif /* no CLSIZE */
15942 # else /* no NBPG */
15943 # ifdef NBPC
15944 # define getpagesize() NBPC
15945 # else /* no NBPC */
15946 # ifdef PAGESIZE
15947 # define getpagesize() PAGESIZE
15948 # endif /* PAGESIZE */
15949 # endif /* no NBPC */
15950 # endif /* no NBPG */
15951 # endif /* no EXEC_PAGESIZE */
15952 # else /* no HAVE_SYS_PARAM_H */
15953 # define getpagesize() 8192 /* punt totally */
15954 # endif /* no HAVE_SYS_PARAM_H */
15955 # endif /* no _SC_PAGESIZE */
15956
15957 #endif /* no HAVE_GETPAGESIZE */
15958
15959 int
15960 main ()
15961 {
15962 char *data, *data2, *data3;
15963 int i, pagesize;
15964 int fd;
15965
15966 pagesize = getpagesize ();
15967
15968 /* First, make a file with some known garbage in it. */
15969 data = (char *) malloc (pagesize);
15970 if (!data)
15971 exit (1);
15972 for (i = 0; i < pagesize; ++i)
15973 *(data + i) = rand ();
15974 umask (0);
15975 fd = creat ("conftest.mmap", 0600);
15976 if (fd < 0)
15977 exit (1);
15978 if (write (fd, data, pagesize) != pagesize)
15979 exit (1);
15980 close (fd);
15981
15982 /* Next, try to mmap the file at a fixed address which already has
15983 something else allocated at it. If we can, also make sure that
15984 we see the same garbage. */
15985 fd = open ("conftest.mmap", O_RDWR);
15986 if (fd < 0)
15987 exit (1);
15988 data2 = (char *) malloc (2 * pagesize);
15989 if (!data2)
15990 exit (1);
15991 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15992 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15993 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15994 exit (1);
15995 for (i = 0; i < pagesize; ++i)
15996 if (*(data + i) != *(data2 + i))
15997 exit (1);
15998
15999 /* Finally, make sure that changes to the mapped area do not
16000 percolate back to the file as seen by read(). (This is a bug on
16001 some variants of i386 svr4.0.) */
16002 for (i = 0; i < pagesize; ++i)
16003 *(data2 + i) = *(data2 + i) + 1;
16004 data3 = (char *) malloc (pagesize);
16005 if (!data3)
16006 exit (1);
16007 if (read (fd, data3, pagesize) != pagesize)
16008 exit (1);
16009 for (i = 0; i < pagesize; ++i)
16010 if (*(data + i) != *(data3 + i))
16011 exit (1);
16012 close (fd);
16013 exit (0);
16014 }
16015 _ACEOF
16016 rm -f conftest$ac_exeext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16018 (eval $ac_link) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 ac_cv_func_mmap_fixed_mapped=yes
16028 else
16029 echo "$as_me: program exited with status $ac_status" >&5
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 ( exit $ac_status )
16034 ac_cv_func_mmap_fixed_mapped=no
16035 fi
16036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16037 fi
16038 fi
16039 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16040 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16041 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16042
16043 cat >>confdefs.h <<\_ACEOF
16044 #define HAVE_MMAP 1
16045 _ACEOF
16046
16047 fi
16048 rm -f conftest.mmap
16049
16050 fi
16051
16052 for ac_prog in perl
16053 do
16054 # Extract the first word of "$ac_prog", so it can be a program name with args.
16055 set dummy $ac_prog; ac_word=$2
16056 echo "$as_me:$LINENO: checking for $ac_word" >&5
16057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16058 if test "${ac_cv_prog_PERL+set}" = set; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 else
16061 if test -n "$PERL"; then
16062 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16063 else
16064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16065 for as_dir in $PATH
16066 do
16067 IFS=$as_save_IFS
16068 test -z "$as_dir" && as_dir=.
16069 for ac_exec_ext in '' $ac_executable_extensions; do
16070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16071 ac_cv_prog_PERL="$ac_prog"
16072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16073 break 2
16074 fi
16075 done
16076 done
16077
16078 fi
16079 fi
16080 PERL=$ac_cv_prog_PERL
16081 if test -n "$PERL"; then
16082 echo "$as_me:$LINENO: result: $PERL" >&5
16083 echo "${ECHO_T}$PERL" >&6
16084 else
16085 echo "$as_me:$LINENO: result: no" >&5
16086 echo "${ECHO_T}no" >&6
16087 fi
16088
16089 test -n "$PERL" && break
16090 done
16091 test -n "$PERL" || PERL="false"
16092
16093
16094 SYSDEP_SOURCES=
16095 SIGNAL_HANDLER_AUX=
16096
16097 case "${host}" in
16098 i?86-*-linux*)
16099 SIGNAL_HANDLER=include/i386-signal.h
16100 ;;
16101 sparc*-sun-solaris*)
16102 SIGNAL_HANDLER=include/sparc-signal.h
16103 ;;
16104 # ia64-*)
16105 # SYSDEP_SOURCES=sysdep/ia64.c
16106 # test -d sysdep || mkdir sysdep
16107 # ;;
16108 hppa*-*-linux*)
16109 SIGNAL_HANDLER=include/pa-signal.h
16110 ;;
16111 ia64-*-linux*)
16112 SIGNAL_HANDLER=include/dwarf2-signal.h
16113 ;;
16114 powerpc*-*-linux*)
16115 SIGNAL_HANDLER=include/powerpc-signal.h
16116 ;;
16117 alpha*-*-linux*)
16118 SIGNAL_HANDLER=include/dwarf2-signal.h
16119 ;;
16120 s390*-*-linux*)
16121 SIGNAL_HANDLER=include/s390-signal.h
16122 ;;
16123 x86_64*-*-linux*)
16124 SIGNAL_HANDLER=include/x86_64-signal.h
16125 SIGNAL_HANDLER_AUX=include/i386-signal.h
16126 ;;
16127 sparc*-*-linux*)
16128 SIGNAL_HANDLER=include/dwarf2-signal.h
16129 ;;
16130 sh*-*-linux*)
16131 SIGNAL_HANDLER=include/sh-signal.h
16132 ;;
16133 *mingw*)
16134 SIGNAL_HANDLER=include/win32-signal.h
16135 ;;
16136 mips*-*-linux*)
16137 SIGNAL_HANDLER=include/mips-signal.h
16138 ;;
16139 *-*-darwin*)
16140 SIGNAL_HANDLER=include/darwin-signal.h
16141 ;;
16142 *)
16143 SIGNAL_HANDLER=include/default-signal.h
16144 ;;
16145 esac
16146
16147 # If we're using sjlj exceptions, forget what we just learned.
16148 if test "$enable_sjlj_exceptions" = yes; then
16149 SIGNAL_HANDLER=include/default-signal.h
16150 SIGNAL_HANDLER_AUX=
16151 fi
16152
16153
16154
16155 if test -z "$SIGNAL_HANDLER_AUX"; then
16156 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16157 fi
16158
16159 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16160
16161
16162 if test "${multilib}" = "yes"; then
16163 multilib_arg="--enable-multilib"
16164 else
16165 multilib_arg=
16166 fi
16167
16168
16169
16170 here=`${PWDCMD-pwd}`
16171
16172
16173 # We get this from the environment.
16174
16175
16176 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16177
16178
16179 ac_config_commands="$ac_config_commands default"
16180
16181
16182 cat >confcache <<\_ACEOF
16183 # This file is a shell script that caches the results of configure
16184 # tests run on this system so they can be shared between configure
16185 # scripts and configure runs, see configure's option --config-cache.
16186 # It is not useful on other systems. If it contains results you don't
16187 # want to keep, you may remove or edit it.
16188 #
16189 # config.status only pays attention to the cache file if you give it
16190 # the --recheck option to rerun configure.
16191 #
16192 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16193 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16194 # following values.
16195
16196 _ACEOF
16197
16198 # The following way of writing the cache mishandles newlines in values,
16199 # but we know of no workaround that is simple, portable, and efficient.
16200 # So, don't put newlines in cache variables' values.
16201 # Ultrix sh set writes to stderr and can't be redirected directly,
16202 # and sets the high bit in the cache file unless we assign to the vars.
16203 {
16204 (set) 2>&1 |
16205 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16206 *ac_space=\ *)
16207 # `set' does not quote correctly, so add quotes (double-quote
16208 # substitution turns \\\\ into \\, and sed turns \\ into \).
16209 sed -n \
16210 "s/'/'\\\\''/g;
16211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16212 ;;
16213 *)
16214 # `set' quotes correctly as required by POSIX, so do not add quotes.
16215 sed -n \
16216 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16217 ;;
16218 esac;
16219 } |
16220 sed '
16221 t clear
16222 : clear
16223 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16224 t end
16225 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16226 : end' >>confcache
16227 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16228 if test -w $cache_file; then
16229 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16230 cat confcache >$cache_file
16231 else
16232 echo "not updating unwritable cache $cache_file"
16233 fi
16234 fi
16235 rm -f confcache
16236
16237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16238 # Let make expand exec_prefix.
16239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16240
16241 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16242 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16243 # trailing colons and then remove the whole line if VPATH becomes empty
16244 # (actually we leave an empty line to preserve line numbers).
16245 if test "x$srcdir" = x.; then
16246 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16247 s/:*\$(srcdir):*/:/;
16248 s/:*\${srcdir}:*/:/;
16249 s/:*@srcdir@:*/:/;
16250 s/^\([^=]*=[ ]*\):*/\1/;
16251 s/:*$//;
16252 s/^[^=]*=[ ]*$//;
16253 }'
16254 fi
16255
16256 DEFS=-DHAVE_CONFIG_H
16257
16258 ac_libobjs=
16259 ac_ltlibobjs=
16260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16261 # 1. Remove the extension, and $U if already installed.
16262 ac_i=`echo "$ac_i" |
16263 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16264 # 2. Add them.
16265 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16266 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16267 done
16268 LIBOBJS=$ac_libobjs
16269
16270 LTLIBOBJS=$ac_ltlibobjs
16271
16272
16273 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16274 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16275 Usually this means the macro was only invoked conditionally." >&5
16276 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16277 Usually this means the macro was only invoked conditionally." >&2;}
16278 { (exit 1); exit 1; }; }
16279 fi
16280 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16281 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16282 Usually this means the macro was only invoked conditionally." >&5
16283 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16284 Usually this means the macro was only invoked conditionally." >&2;}
16285 { (exit 1); exit 1; }; }
16286 fi
16287 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16288 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16289 Usually this means the macro was only invoked conditionally." >&5
16290 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16291 Usually this means the macro was only invoked conditionally." >&2;}
16292 { (exit 1); exit 1; }; }
16293 fi
16294 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16295 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16296 Usually this means the macro was only invoked conditionally." >&5
16297 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16298 Usually this means the macro was only invoked conditionally." >&2;}
16299 { (exit 1); exit 1; }; }
16300 fi
16301 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16302 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16303 Usually this means the macro was only invoked conditionally." >&5
16304 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16305 Usually this means the macro was only invoked conditionally." >&2;}
16306 { (exit 1); exit 1; }; }
16307 fi
16308 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16309 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16310 Usually this means the macro was only invoked conditionally." >&5
16311 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16312 Usually this means the macro was only invoked conditionally." >&2;}
16313 { (exit 1); exit 1; }; }
16314 fi
16315 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16316 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16317 Usually this means the macro was only invoked conditionally." >&5
16318 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16319 Usually this means the macro was only invoked conditionally." >&2;}
16320 { (exit 1); exit 1; }; }
16321 fi
16322 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16323 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16324 Usually this means the macro was only invoked conditionally." >&5
16325 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16326 Usually this means the macro was only invoked conditionally." >&2;}
16327 { (exit 1); exit 1; }; }
16328 fi
16329 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16330 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16331 Usually this means the macro was only invoked conditionally." >&5
16332 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16333 Usually this means the macro was only invoked conditionally." >&2;}
16334 { (exit 1); exit 1; }; }
16335 fi
16336 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16337 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16338 Usually this means the macro was only invoked conditionally." >&5
16339 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16340 Usually this means the macro was only invoked conditionally." >&2;}
16341 { (exit 1); exit 1; }; }
16342 fi
16343 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16344 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16345 Usually this means the macro was only invoked conditionally." >&5
16346 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16347 Usually this means the macro was only invoked conditionally." >&2;}
16348 { (exit 1); exit 1; }; }
16349 fi
16350 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16351 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16352 Usually this means the macro was only invoked conditionally." >&5
16353 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16354 Usually this means the macro was only invoked conditionally." >&2;}
16355 { (exit 1); exit 1; }; }
16356 fi
16357 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16358 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16359 Usually this means the macro was only invoked conditionally." >&5
16360 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16361 Usually this means the macro was only invoked conditionally." >&2;}
16362 { (exit 1); exit 1; }; }
16363 fi
16364 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16365 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16366 Usually this means the macro was only invoked conditionally." >&5
16367 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16368 Usually this means the macro was only invoked conditionally." >&2;}
16369 { (exit 1); exit 1; }; }
16370 fi
16371 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16372 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16373 Usually this means the macro was only invoked conditionally." >&5
16374 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16375 Usually this means the macro was only invoked conditionally." >&2;}
16376 { (exit 1); exit 1; }; }
16377 fi
16378 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16379 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16380 Usually this means the macro was only invoked conditionally." >&5
16381 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16382 Usually this means the macro was only invoked conditionally." >&2;}
16383 { (exit 1); exit 1; }; }
16384 fi
16385 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16386 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16387 Usually this means the macro was only invoked conditionally." >&5
16388 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16389 Usually this means the macro was only invoked conditionally." >&2;}
16390 { (exit 1); exit 1; }; }
16391 fi
16392 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16393 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16394 Usually this means the macro was only invoked conditionally." >&5
16395 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16396 Usually this means the macro was only invoked conditionally." >&2;}
16397 { (exit 1); exit 1; }; }
16398 fi
16399 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16400 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16401 Usually this means the macro was only invoked conditionally." >&5
16402 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16403 Usually this means the macro was only invoked conditionally." >&2;}
16404 { (exit 1); exit 1; }; }
16405 fi
16406 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16407 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16408 Usually this means the macro was only invoked conditionally." >&5
16409 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16410 Usually this means the macro was only invoked conditionally." >&2;}
16411 { (exit 1); exit 1; }; }
16412 fi
16413 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16414 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16415 Usually this means the macro was only invoked conditionally." >&5
16416 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16417 Usually this means the macro was only invoked conditionally." >&2;}
16418 { (exit 1); exit 1; }; }
16419 fi
16420 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16421 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16422 Usually this means the macro was only invoked conditionally." >&5
16423 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16424 Usually this means the macro was only invoked conditionally." >&2;}
16425 { (exit 1); exit 1; }; }
16426 fi
16427
16428 : ${CONFIG_STATUS=./config.status}
16429 ac_clean_files_save=$ac_clean_files
16430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16433 cat >$CONFIG_STATUS <<_ACEOF
16434 #! $SHELL
16435 # Generated by $as_me.
16436 # Run this file to recreate the current configuration.
16437 # Compiler output produced by configure, useful for debugging
16438 # configure, is in config.log if it exists.
16439
16440 debug=false
16441 ac_cs_recheck=false
16442 ac_cs_silent=false
16443 SHELL=\${CONFIG_SHELL-$SHELL}
16444 _ACEOF
16445
16446 cat >>$CONFIG_STATUS <<\_ACEOF
16447 ## --------------------- ##
16448 ## M4sh Initialization. ##
16449 ## --------------------- ##
16450
16451 # Be Bourne compatible
16452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16453 emulate sh
16454 NULLCMD=:
16455 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16456 # is contrary to our usage. Disable this feature.
16457 alias -g '${1+"$@"}'='"$@"'
16458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16459 set -o posix
16460 fi
16461 DUALCASE=1; export DUALCASE # for MKS sh
16462
16463 # Support unset when possible.
16464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16465 as_unset=unset
16466 else
16467 as_unset=false
16468 fi
16469
16470
16471 # Work around bugs in pre-3.0 UWIN ksh.
16472 $as_unset ENV MAIL MAILPATH
16473 PS1='$ '
16474 PS2='> '
16475 PS4='+ '
16476
16477 # NLS nuisances.
16478 for as_var in \
16479 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16480 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16481 LC_TELEPHONE LC_TIME
16482 do
16483 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16484 eval $as_var=C; export $as_var
16485 else
16486 $as_unset $as_var
16487 fi
16488 done
16489
16490 # Required to use basename.
16491 if expr a : '\(a\)' >/dev/null 2>&1; then
16492 as_expr=expr
16493 else
16494 as_expr=false
16495 fi
16496
16497 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16498 as_basename=basename
16499 else
16500 as_basename=false
16501 fi
16502
16503
16504 # Name of the executable.
16505 as_me=`$as_basename "$0" ||
16506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16507 X"$0" : 'X\(//\)$' \| \
16508 X"$0" : 'X\(/\)$' \| \
16509 . : '\(.\)' 2>/dev/null ||
16510 echo X/"$0" |
16511 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16512 /^X\/\(\/\/\)$/{ s//\1/; q; }
16513 /^X\/\(\/\).*/{ s//\1/; q; }
16514 s/.*/./; q'`
16515
16516
16517 # PATH needs CR, and LINENO needs CR and PATH.
16518 # Avoid depending upon Character Ranges.
16519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16522 as_cr_digits='0123456789'
16523 as_cr_alnum=$as_cr_Letters$as_cr_digits
16524
16525 # The user is always right.
16526 if test "${PATH_SEPARATOR+set}" != set; then
16527 echo "#! /bin/sh" >conf$$.sh
16528 echo "exit 0" >>conf$$.sh
16529 chmod +x conf$$.sh
16530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16531 PATH_SEPARATOR=';'
16532 else
16533 PATH_SEPARATOR=:
16534 fi
16535 rm -f conf$$.sh
16536 fi
16537
16538
16539 as_lineno_1=$LINENO
16540 as_lineno_2=$LINENO
16541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16542 test "x$as_lineno_1" != "x$as_lineno_2" &&
16543 test "x$as_lineno_3" = "x$as_lineno_2" || {
16544 # Find who we are. Look in the path if we contain no path at all
16545 # relative or not.
16546 case $0 in
16547 *[\\/]* ) as_myself=$0 ;;
16548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549 for as_dir in $PATH
16550 do
16551 IFS=$as_save_IFS
16552 test -z "$as_dir" && as_dir=.
16553 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16554 done
16555
16556 ;;
16557 esac
16558 # We did not find ourselves, most probably we were run as `sh COMMAND'
16559 # in which case we are not to be found in the path.
16560 if test "x$as_myself" = x; then
16561 as_myself=$0
16562 fi
16563 if test ! -f "$as_myself"; then
16564 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16565 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16566 { (exit 1); exit 1; }; }
16567 fi
16568 case $CONFIG_SHELL in
16569 '')
16570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16572 do
16573 IFS=$as_save_IFS
16574 test -z "$as_dir" && as_dir=.
16575 for as_base in sh bash ksh sh5; do
16576 case $as_dir in
16577 /*)
16578 if ("$as_dir/$as_base" -c '
16579 as_lineno_1=$LINENO
16580 as_lineno_2=$LINENO
16581 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16582 test "x$as_lineno_1" != "x$as_lineno_2" &&
16583 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16584 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16585 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16586 CONFIG_SHELL=$as_dir/$as_base
16587 export CONFIG_SHELL
16588 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16589 fi;;
16590 esac
16591 done
16592 done
16593 ;;
16594 esac
16595
16596 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16597 # uniformly replaced by the line number. The first 'sed' inserts a
16598 # line-number line before each line; the second 'sed' does the real
16599 # work. The second script uses 'N' to pair each line-number line
16600 # with the numbered line, and appends trailing '-' during
16601 # substitution so that $LINENO is not a special case at line end.
16602 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16603 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16604 sed '=' <$as_myself |
16605 sed '
16606 N
16607 s,$,-,
16608 : loop
16609 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16610 t loop
16611 s,-$,,
16612 s,^['$as_cr_digits']*\n,,
16613 ' >$as_me.lineno &&
16614 chmod +x $as_me.lineno ||
16615 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16616 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16617 { (exit 1); exit 1; }; }
16618
16619 # Don't try to exec as it changes $[0], causing all sort of problems
16620 # (the dirname of $[0] is not the place where we might find the
16621 # original and so on. Autoconf is especially sensible to this).
16622 . ./$as_me.lineno
16623 # Exit status is that of the last command.
16624 exit
16625 }
16626
16627
16628 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16629 *c*,-n*) ECHO_N= ECHO_C='
16630 ' ECHO_T=' ' ;;
16631 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16632 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16633 esac
16634
16635 if expr a : '\(a\)' >/dev/null 2>&1; then
16636 as_expr=expr
16637 else
16638 as_expr=false
16639 fi
16640
16641 rm -f conf$$ conf$$.exe conf$$.file
16642 echo >conf$$.file
16643 if ln -s conf$$.file conf$$ 2>/dev/null; then
16644 # We could just check for DJGPP; but this test a) works b) is more generic
16645 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16646 if test -f conf$$.exe; then
16647 # Don't use ln at all; we don't have any links
16648 as_ln_s='cp -p'
16649 else
16650 as_ln_s='ln -s'
16651 fi
16652 elif ln conf$$.file conf$$ 2>/dev/null; then
16653 as_ln_s=ln
16654 else
16655 as_ln_s='cp -p'
16656 fi
16657 rm -f conf$$ conf$$.exe conf$$.file
16658
16659 if mkdir -p . 2>/dev/null; then
16660 as_mkdir_p=:
16661 else
16662 test -d ./-p && rmdir ./-p
16663 as_mkdir_p=false
16664 fi
16665
16666 as_executable_p="test -f"
16667
16668 # Sed expression to map a string onto a valid CPP name.
16669 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16670
16671 # Sed expression to map a string onto a valid variable name.
16672 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16673
16674
16675 # IFS
16676 # We need space, tab and new line, in precisely that order.
16677 as_nl='
16678 '
16679 IFS=" $as_nl"
16680
16681 # CDPATH.
16682 $as_unset CDPATH
16683
16684 exec 6>&1
16685
16686 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16687 # report actual input values of CONFIG_FILES etc. instead of their
16688 # values after options handling. Logging --version etc. is OK.
16689 exec 5>>config.log
16690 {
16691 echo
16692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16693 ## Running $as_me. ##
16694 _ASBOX
16695 } >&5
16696 cat >&5 <<_CSEOF
16697
16698 This file was extended by libjava $as_me version-unused, which was
16699 generated by GNU Autoconf 2.59. Invocation command line was
16700
16701 CONFIG_FILES = $CONFIG_FILES
16702 CONFIG_HEADERS = $CONFIG_HEADERS
16703 CONFIG_LINKS = $CONFIG_LINKS
16704 CONFIG_COMMANDS = $CONFIG_COMMANDS
16705 $ $0 $@
16706
16707 _CSEOF
16708 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16709 echo >&5
16710 _ACEOF
16711
16712 # Files that config.status was made for.
16713 if test -n "$ac_config_files"; then
16714 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16715 fi
16716
16717 if test -n "$ac_config_headers"; then
16718 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16719 fi
16720
16721 if test -n "$ac_config_links"; then
16722 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16723 fi
16724
16725 if test -n "$ac_config_commands"; then
16726 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16727 fi
16728
16729 cat >>$CONFIG_STATUS <<\_ACEOF
16730
16731 ac_cs_usage="\
16732 \`$as_me' instantiates files from templates according to the
16733 current configuration.
16734
16735 Usage: $0 [OPTIONS] [FILE]...
16736
16737 -h, --help print this help, then exit
16738 -V, --version print version number, then exit
16739 -q, --quiet do not print progress messages
16740 -d, --debug don't remove temporary files
16741 --recheck update $as_me by reconfiguring in the same conditions
16742 --file=FILE[:TEMPLATE]
16743 instantiate the configuration file FILE
16744 --header=FILE[:TEMPLATE]
16745 instantiate the configuration header FILE
16746
16747 Configuration files:
16748 $config_files
16749
16750 Configuration headers:
16751 $config_headers
16752
16753 Configuration links:
16754 $config_links
16755
16756 Configuration commands:
16757 $config_commands
16758
16759 Report bugs to <bug-autoconf@gnu.org>."
16760 _ACEOF
16761
16762 cat >>$CONFIG_STATUS <<_ACEOF
16763 ac_cs_version="\\
16764 libjava config.status version-unused
16765 configured by $0, generated by GNU Autoconf 2.59,
16766 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16767
16768 Copyright (C) 2003 Free Software Foundation, Inc.
16769 This config.status script is free software; the Free Software Foundation
16770 gives unlimited permission to copy, distribute and modify it."
16771 srcdir=$srcdir
16772 INSTALL="$INSTALL"
16773 _ACEOF
16774
16775 cat >>$CONFIG_STATUS <<\_ACEOF
16776 # If no file are specified by the user, then we need to provide default
16777 # value. By we need to know if files were specified by the user.
16778 ac_need_defaults=:
16779 while test $# != 0
16780 do
16781 case $1 in
16782 --*=*)
16783 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16784 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16785 ac_shift=:
16786 ;;
16787 -*)
16788 ac_option=$1
16789 ac_optarg=$2
16790 ac_shift=shift
16791 ;;
16792 *) # This is not an option, so the user has probably given explicit
16793 # arguments.
16794 ac_option=$1
16795 ac_need_defaults=false;;
16796 esac
16797
16798 case $ac_option in
16799 # Handling of the options.
16800 _ACEOF
16801 cat >>$CONFIG_STATUS <<\_ACEOF
16802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16803 ac_cs_recheck=: ;;
16804 --version | --vers* | -V )
16805 echo "$ac_cs_version"; exit 0 ;;
16806 --he | --h)
16807 # Conflict between --help and --header
16808 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16809 Try \`$0 --help' for more information." >&5
16810 echo "$as_me: error: ambiguous option: $1
16811 Try \`$0 --help' for more information." >&2;}
16812 { (exit 1); exit 1; }; };;
16813 --help | --hel | -h )
16814 echo "$ac_cs_usage"; exit 0 ;;
16815 --debug | --d* | -d )
16816 debug=: ;;
16817 --file | --fil | --fi | --f )
16818 $ac_shift
16819 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16820 ac_need_defaults=false;;
16821 --header | --heade | --head | --hea )
16822 $ac_shift
16823 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16824 ac_need_defaults=false;;
16825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16826 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16827 ac_cs_silent=: ;;
16828
16829 # This is an error.
16830 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16831 Try \`$0 --help' for more information." >&5
16832 echo "$as_me: error: unrecognized option: $1
16833 Try \`$0 --help' for more information." >&2;}
16834 { (exit 1); exit 1; }; } ;;
16835
16836 *) ac_config_targets="$ac_config_targets $1" ;;
16837
16838 esac
16839 shift
16840 done
16841
16842 ac_configure_extra_args=
16843
16844 if $ac_cs_silent; then
16845 exec 6>/dev/null
16846 ac_configure_extra_args="$ac_configure_extra_args --silent"
16847 fi
16848
16849 _ACEOF
16850 cat >>$CONFIG_STATUS <<_ACEOF
16851 if \$ac_cs_recheck; then
16852 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16853 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16854 fi
16855
16856 _ACEOF
16857
16858 cat >>$CONFIG_STATUS <<_ACEOF
16859 #
16860 # INIT-COMMANDS section.
16861 #
16862
16863 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16864 srcdir=${srcdir}
16865 host=${host}
16866 target=${target}
16867 with_multisubdir=${with_multisubdir}
16868 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16869 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16870 libgcj_basedir=${libgcj_basedir}
16871 CC="${CC}"
16872 CXX="${CXX}"
16873 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16874
16875
16876 _ACEOF
16877
16878
16879
16880 cat >>$CONFIG_STATUS <<\_ACEOF
16881 for ac_config_target in $ac_config_targets
16882 do
16883 case "$ac_config_target" in
16884 # Handling of arguments.
16885 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16886 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16887 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16888 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16889 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16890 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16891 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16892 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16893 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16894 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16895 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16896 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16897 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
16898 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16899 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16900 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16901 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16902 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16903 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16904 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16905 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16906 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16907 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
16908 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16909 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16910 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16911 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16912 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16913 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16914 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16915 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16916 { (exit 1); exit 1; }; };;
16917 esac
16918 done
16919
16920 # If the user did not use the arguments to specify the items to instantiate,
16921 # then the envvar interface is used. Set only those that are not.
16922 # We use the long form for the default assignment because of an extremely
16923 # bizarre bug on SunOS 4.1.3.
16924 if $ac_need_defaults; then
16925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16927 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16928 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16929 fi
16930
16931 # Have a temporary directory for convenience. Make it in the build tree
16932 # simply because there is no reason to put it here, and in addition,
16933 # creating and moving files from /tmp can sometimes cause problems.
16934 # Create a temporary directory, and hook for its removal unless debugging.
16935 $debug ||
16936 {
16937 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16938 trap '{ (exit 1); exit 1; }' 1 2 13 15
16939 }
16940
16941 # Create a (secure) tmp directory for tmp files.
16942
16943 {
16944 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16945 test -n "$tmp" && test -d "$tmp"
16946 } ||
16947 {
16948 tmp=./confstat$$-$RANDOM
16949 (umask 077 && mkdir $tmp)
16950 } ||
16951 {
16952 echo "$me: cannot create a temporary directory in ." >&2
16953 { (exit 1); exit 1; }
16954 }
16955
16956 _ACEOF
16957
16958 cat >>$CONFIG_STATUS <<_ACEOF
16959
16960 #
16961 # CONFIG_FILES section.
16962 #
16963
16964 # No need to generate the scripts if there are no CONFIG_FILES.
16965 # This happens for instance when ./config.status config.h
16966 if test -n "\$CONFIG_FILES"; then
16967 # Protect against being on the right side of a sed subst in config.status.
16968 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16969 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16970 s,@SHELL@,$SHELL,;t t
16971 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16972 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16973 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16974 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16975 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16976 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16977 s,@exec_prefix@,$exec_prefix,;t t
16978 s,@prefix@,$prefix,;t t
16979 s,@program_transform_name@,$program_transform_name,;t t
16980 s,@bindir@,$bindir,;t t
16981 s,@sbindir@,$sbindir,;t t
16982 s,@libexecdir@,$libexecdir,;t t
16983 s,@datadir@,$datadir,;t t
16984 s,@sysconfdir@,$sysconfdir,;t t
16985 s,@sharedstatedir@,$sharedstatedir,;t t
16986 s,@localstatedir@,$localstatedir,;t t
16987 s,@libdir@,$libdir,;t t
16988 s,@includedir@,$includedir,;t t
16989 s,@oldincludedir@,$oldincludedir,;t t
16990 s,@infodir@,$infodir,;t t
16991 s,@mandir@,$mandir,;t t
16992 s,@build_alias@,$build_alias,;t t
16993 s,@host_alias@,$host_alias,;t t
16994 s,@target_alias@,$target_alias,;t t
16995 s,@DEFS@,$DEFS,;t t
16996 s,@ECHO_C@,$ECHO_C,;t t
16997 s,@ECHO_N@,$ECHO_N,;t t
16998 s,@ECHO_T@,$ECHO_T,;t t
16999 s,@LIBS@,$LIBS,;t t
17000 s,@build@,$build,;t t
17001 s,@build_cpu@,$build_cpu,;t t
17002 s,@build_vendor@,$build_vendor,;t t
17003 s,@build_os@,$build_os,;t t
17004 s,@build_subdir@,$build_subdir,;t t
17005 s,@host_subdir@,$host_subdir,;t t
17006 s,@target_subdir@,$target_subdir,;t t
17007 s,@libgcj_basedir@,$libgcj_basedir,;t t
17008 s,@host@,$host,;t t
17009 s,@host_cpu@,$host_cpu,;t t
17010 s,@host_vendor@,$host_vendor,;t t
17011 s,@host_os@,$host_os,;t t
17012 s,@target@,$target,;t t
17013 s,@target_cpu@,$target_cpu,;t t
17014 s,@target_vendor@,$target_vendor,;t t
17015 s,@target_os@,$target_os,;t t
17016 s,@target_noncanonical@,$target_noncanonical,;t t
17017 s,@LN_S@,$LN_S,;t t
17018 s,@mkinstalldirs@,$mkinstalldirs,;t t
17019 s,@CC@,$CC,;t t
17020 s,@ac_ct_CC@,$ac_ct_CC,;t t
17021 s,@EXEEXT@,$EXEEXT,;t t
17022 s,@OBJEXT@,$OBJEXT,;t t
17023 s,@CXX@,$CXX,;t t
17024 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17025 s,@CFLAGS@,$CFLAGS,;t t
17026 s,@CXXFLAGS@,$CXXFLAGS,;t t
17027 s,@LDFLAGS@,$LDFLAGS,;t t
17028 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17029 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17030 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17031 s,@CYGPATH_W@,$CYGPATH_W,;t t
17032 s,@PACKAGE@,$PACKAGE,;t t
17033 s,@VERSION@,$VERSION,;t t
17034 s,@ACLOCAL@,$ACLOCAL,;t t
17035 s,@AUTOCONF@,$AUTOCONF,;t t
17036 s,@AUTOMAKE@,$AUTOMAKE,;t t
17037 s,@AUTOHEADER@,$AUTOHEADER,;t t
17038 s,@MAKEINFO@,$MAKEINFO,;t t
17039 s,@install_sh@,$install_sh,;t t
17040 s,@STRIP@,$STRIP,;t t
17041 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17042 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17043 s,@mkdir_p@,$mkdir_p,;t t
17044 s,@AWK@,$AWK,;t t
17045 s,@SET_MAKE@,$SET_MAKE,;t t
17046 s,@am__leading_dot@,$am__leading_dot,;t t
17047 s,@AMTAR@,$AMTAR,;t t
17048 s,@am__tar@,$am__tar,;t t
17049 s,@am__untar@,$am__untar,;t t
17050 s,@DEPDIR@,$DEPDIR,;t t
17051 s,@am__include@,$am__include,;t t
17052 s,@am__quote@,$am__quote,;t t
17053 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17054 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17055 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17056 s,@CCDEPMODE@,$CCDEPMODE,;t t
17057 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17058 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17059 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17060 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17061 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17062 s,@AS@,$AS,;t t
17063 s,@ac_ct_AS@,$ac_ct_AS,;t t
17064 s,@AR@,$AR,;t t
17065 s,@ac_ct_AR@,$ac_ct_AR,;t t
17066 s,@RANLIB@,$RANLIB,;t t
17067 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17068 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17069 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17070 s,@MAINT@,$MAINT,;t t
17071 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17072 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17073 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17074 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17075 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17076 s,@TOOLKIT@,$TOOLKIT,;t t
17077 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17078 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17079 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17080 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17081 s,@GCJH@,$GCJH,;t t
17082 s,@ZIP@,$ZIP,;t t
17083 s,@INCLTDL@,$INCLTDL,;t t
17084 s,@LIBLTDL@,$LIBLTDL,;t t
17085 s,@DIRLTDL@,$DIRLTDL,;t t
17086 s,@LIBTOOL@,$LIBTOOL,;t t
17087 s,@CXXCPP@,$CXXCPP,;t t
17088 s,@CPPFLAGS@,$CPPFLAGS,;t t
17089 s,@GCJ@,$GCJ,;t t
17090 s,@GCJFLAGS@,$GCJFLAGS,;t t
17091 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17092 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17093 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17094 s,@subdirs@,$subdirs,;t t
17095 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17096 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17097 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17098 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17099 s,@JAVA_HOME@,$JAVA_HOME,;t t
17100 s,@INTERPRETER@,$INTERPRETER,;t t
17101 s,@LIBFFI@,$LIBFFI,;t t
17102 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17103 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17104 s,@CPP@,$CPP,;t t
17105 s,@EGREP@,$EGREP,;t t
17106 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17107 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17108 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17109 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17110 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17111 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17112 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17113 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17114 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17115 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17116 s,@X_CFLAGS@,$X_CFLAGS,;t t
17117 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17118 s,@X_LIBS@,$X_LIBS,;t t
17119 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17120 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17121 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17122 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17123 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17124 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17125 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17126 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17127 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17128 s,@GCLIBS@,$GCLIBS,;t t
17129 s,@GCINCS@,$GCINCS,;t t
17130 s,@GCDEPS@,$GCDEPS,;t t
17131 s,@GCSPEC@,$GCSPEC,;t t
17132 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17133 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17134 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17135 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17136 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17137 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17138 s,@THREADLIBS@,$THREADLIBS,;t t
17139 s,@THREADINCS@,$THREADINCS,;t t
17140 s,@THREADDEPS@,$THREADDEPS,;t t
17141 s,@THREADSPEC@,$THREADSPEC,;t t
17142 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17143 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17144 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17145 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17146 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17147 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17148 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17149 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17150 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17151 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17152 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17153 s,@LIBICONV@,$LIBICONV,;t t
17154 s,@LTLIBICONV@,$LTLIBICONV,;t t
17155 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17156 s,@GTK_LIBS@,$GTK_LIBS,;t t
17157 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17158 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17159 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17160 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17161 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17162 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17163 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17164 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17165 s,@ZLIBS@,$ZLIBS,;t t
17166 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17167 s,@ZINCS@,$ZINCS,;t t
17168 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17169 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17170 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17171 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17172 s,@IEEESPEC@,$IEEESPEC,;t t
17173 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17174 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17175 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17176 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17177 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17178 s,@toolexecdir@,$toolexecdir,;t t
17179 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17180 s,@toolexeclibdir@,$toolexeclibdir,;t t
17181 s,@GCJVERSION@,$GCJVERSION,;t t
17182 s,@gxx_include_dir@,$gxx_include_dir,;t t
17183 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17184 s,@ALLOCA@,$ALLOCA,;t t
17185 s,@PERL@,$PERL,;t t
17186 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17187 s,@here@,$here,;t t
17188 s,@LIBOBJS@,$LIBOBJS,;t t
17189 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17190 CEOF
17191
17192 _ACEOF
17193
17194 cat >>$CONFIG_STATUS <<\_ACEOF
17195 # Split the substitutions into bite-sized pieces for seds with
17196 # small command number limits, like on Digital OSF/1 and HP-UX.
17197 ac_max_sed_lines=48
17198 ac_sed_frag=1 # Number of current file.
17199 ac_beg=1 # First line for current file.
17200 ac_end=$ac_max_sed_lines # Line after last line for current file.
17201 ac_more_lines=:
17202 ac_sed_cmds=
17203 while $ac_more_lines; do
17204 if test $ac_beg -gt 1; then
17205 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17206 else
17207 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17208 fi
17209 if test ! -s $tmp/subs.frag; then
17210 ac_more_lines=false
17211 else
17212 # The purpose of the label and of the branching condition is to
17213 # speed up the sed processing (if there are no `@' at all, there
17214 # is no need to browse any of the substitutions).
17215 # These are the two extra sed commands mentioned above.
17216 (echo ':t
17217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17218 if test -z "$ac_sed_cmds"; then
17219 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17220 else
17221 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17222 fi
17223 ac_sed_frag=`expr $ac_sed_frag + 1`
17224 ac_beg=$ac_end
17225 ac_end=`expr $ac_end + $ac_max_sed_lines`
17226 fi
17227 done
17228 if test -z "$ac_sed_cmds"; then
17229 ac_sed_cmds=cat
17230 fi
17231 fi # test -n "$CONFIG_FILES"
17232
17233 _ACEOF
17234 cat >>$CONFIG_STATUS <<\_ACEOF
17235 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17236 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17237 case $ac_file in
17238 - | *:- | *:-:* ) # input from stdin
17239 cat >$tmp/stdin
17240 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17241 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17242 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17244 * ) ac_file_in=$ac_file.in ;;
17245 esac
17246
17247 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17248 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17250 X"$ac_file" : 'X\(//\)[^/]' \| \
17251 X"$ac_file" : 'X\(//\)$' \| \
17252 X"$ac_file" : 'X\(/\)' \| \
17253 . : '\(.\)' 2>/dev/null ||
17254 echo X"$ac_file" |
17255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17257 /^X\(\/\/\)$/{ s//\1/; q; }
17258 /^X\(\/\).*/{ s//\1/; q; }
17259 s/.*/./; q'`
17260 { if $as_mkdir_p; then
17261 mkdir -p "$ac_dir"
17262 else
17263 as_dir="$ac_dir"
17264 as_dirs=
17265 while test ! -d "$as_dir"; do
17266 as_dirs="$as_dir $as_dirs"
17267 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17269 X"$as_dir" : 'X\(//\)[^/]' \| \
17270 X"$as_dir" : 'X\(//\)$' \| \
17271 X"$as_dir" : 'X\(/\)' \| \
17272 . : '\(.\)' 2>/dev/null ||
17273 echo X"$as_dir" |
17274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17276 /^X\(\/\/\)$/{ s//\1/; q; }
17277 /^X\(\/\).*/{ s//\1/; q; }
17278 s/.*/./; q'`
17279 done
17280 test ! -n "$as_dirs" || mkdir $as_dirs
17281 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17282 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17283 { (exit 1); exit 1; }; }; }
17284
17285 ac_builddir=.
17286
17287 if test "$ac_dir" != .; then
17288 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17289 # A "../" for each directory in $ac_dir_suffix.
17290 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17291 else
17292 ac_dir_suffix= ac_top_builddir=
17293 fi
17294
17295 case $srcdir in
17296 .) # No --srcdir option. We are building in place.
17297 ac_srcdir=.
17298 if test -z "$ac_top_builddir"; then
17299 ac_top_srcdir=.
17300 else
17301 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17302 fi ;;
17303 [\\/]* | ?:[\\/]* ) # Absolute path.
17304 ac_srcdir=$srcdir$ac_dir_suffix;
17305 ac_top_srcdir=$srcdir ;;
17306 *) # Relative path.
17307 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17308 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17309 esac
17310
17311 # Do not use `cd foo && pwd` to compute absolute paths, because
17312 # the directories may not exist.
17313 case `pwd` in
17314 .) ac_abs_builddir="$ac_dir";;
17315 *)
17316 case "$ac_dir" in
17317 .) ac_abs_builddir=`pwd`;;
17318 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17319 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17320 esac;;
17321 esac
17322 case $ac_abs_builddir in
17323 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17324 *)
17325 case ${ac_top_builddir}. in
17326 .) ac_abs_top_builddir=$ac_abs_builddir;;
17327 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17328 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17329 esac;;
17330 esac
17331 case $ac_abs_builddir in
17332 .) ac_abs_srcdir=$ac_srcdir;;
17333 *)
17334 case $ac_srcdir in
17335 .) ac_abs_srcdir=$ac_abs_builddir;;
17336 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17337 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17338 esac;;
17339 esac
17340 case $ac_abs_builddir in
17341 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17342 *)
17343 case $ac_top_srcdir in
17344 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17345 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17346 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17347 esac;;
17348 esac
17349
17350
17351 case $INSTALL in
17352 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17353 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17354 esac
17355
17356 if test x"$ac_file" != x-; then
17357 { echo "$as_me:$LINENO: creating $ac_file" >&5
17358 echo "$as_me: creating $ac_file" >&6;}
17359 rm -f "$ac_file"
17360 fi
17361 # Let's still pretend it is `configure' which instantiates (i.e., don't
17362 # use $as_me), people would be surprised to read:
17363 # /* config.h. Generated by config.status. */
17364 if test x"$ac_file" = x-; then
17365 configure_input=
17366 else
17367 configure_input="$ac_file. "
17368 fi
17369 configure_input=$configure_input"Generated from `echo $ac_file_in |
17370 sed 's,.*/,,'` by configure."
17371
17372 # First look for the input files in the build tree, otherwise in the
17373 # src tree.
17374 ac_file_inputs=`IFS=:
17375 for f in $ac_file_in; do
17376 case $f in
17377 -) echo $tmp/stdin ;;
17378 [\\/$]*)
17379 # Absolute (can't be DOS-style, as IFS=:)
17380 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17381 echo "$as_me: error: cannot find input file: $f" >&2;}
17382 { (exit 1); exit 1; }; }
17383 echo "$f";;
17384 *) # Relative
17385 if test -f "$f"; then
17386 # Build tree
17387 echo "$f"
17388 elif test -f "$srcdir/$f"; then
17389 # Source tree
17390 echo "$srcdir/$f"
17391 else
17392 # /dev/null tree
17393 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17394 echo "$as_me: error: cannot find input file: $f" >&2;}
17395 { (exit 1); exit 1; }; }
17396 fi;;
17397 esac
17398 done` || { (exit 1); exit 1; }
17399 _ACEOF
17400 cat >>$CONFIG_STATUS <<_ACEOF
17401 sed "$ac_vpsub
17402 $extrasub
17403 _ACEOF
17404 cat >>$CONFIG_STATUS <<\_ACEOF
17405 :t
17406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17407 s,@configure_input@,$configure_input,;t t
17408 s,@srcdir@,$ac_srcdir,;t t
17409 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17410 s,@top_srcdir@,$ac_top_srcdir,;t t
17411 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17412 s,@builddir@,$ac_builddir,;t t
17413 s,@abs_builddir@,$ac_abs_builddir,;t t
17414 s,@top_builddir@,$ac_top_builddir,;t t
17415 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17416 s,@INSTALL@,$ac_INSTALL,;t t
17417 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17418 rm -f $tmp/stdin
17419 if test x"$ac_file" != x-; then
17420 mv $tmp/out $ac_file
17421 else
17422 cat $tmp/out
17423 rm -f $tmp/out
17424 fi
17425
17426 done
17427 _ACEOF
17428 cat >>$CONFIG_STATUS <<\_ACEOF
17429
17430 #
17431 # CONFIG_HEADER section.
17432 #
17433
17434 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17435 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17436 #
17437 # ac_d sets the value in "#define NAME VALUE" lines.
17438 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17439 ac_dB='[ ].*$,\1#\2'
17440 ac_dC=' '
17441 ac_dD=',;t'
17442 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17443 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17444 ac_uB='$,\1#\2define\3'
17445 ac_uC=' '
17446 ac_uD=',;t'
17447
17448 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17450 case $ac_file in
17451 - | *:- | *:-:* ) # input from stdin
17452 cat >$tmp/stdin
17453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17457 * ) ac_file_in=$ac_file.in ;;
17458 esac
17459
17460 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17461 echo "$as_me: creating $ac_file" >&6;}
17462
17463 # First look for the input files in the build tree, otherwise in the
17464 # src tree.
17465 ac_file_inputs=`IFS=:
17466 for f in $ac_file_in; do
17467 case $f in
17468 -) echo $tmp/stdin ;;
17469 [\\/$]*)
17470 # Absolute (can't be DOS-style, as IFS=:)
17471 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17472 echo "$as_me: error: cannot find input file: $f" >&2;}
17473 { (exit 1); exit 1; }; }
17474 # Do quote $f, to prevent DOS paths from being IFS'd.
17475 echo "$f";;
17476 *) # Relative
17477 if test -f "$f"; then
17478 # Build tree
17479 echo "$f"
17480 elif test -f "$srcdir/$f"; then
17481 # Source tree
17482 echo "$srcdir/$f"
17483 else
17484 # /dev/null tree
17485 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17486 echo "$as_me: error: cannot find input file: $f" >&2;}
17487 { (exit 1); exit 1; }; }
17488 fi;;
17489 esac
17490 done` || { (exit 1); exit 1; }
17491 # Remove the trailing spaces.
17492 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17493
17494 _ACEOF
17495
17496 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17497 # `conftest.undefs', that substitutes the proper values into
17498 # config.h.in to produce config.h. The first handles `#define'
17499 # templates, and the second `#undef' templates.
17500 # And first: Protect against being on the right side of a sed subst in
17501 # config.status. Protect against being in an unquoted here document
17502 # in config.status.
17503 rm -f conftest.defines conftest.undefs
17504 # Using a here document instead of a string reduces the quoting nightmare.
17505 # Putting comments in sed scripts is not portable.
17506 #
17507 # `end' is used to avoid that the second main sed command (meant for
17508 # 0-ary CPP macros) applies to n-ary macro definitions.
17509 # See the Autoconf documentation for `clear'.
17510 cat >confdef2sed.sed <<\_ACEOF
17511 s/[\\&,]/\\&/g
17512 s,[\\$`],\\&,g
17513 t clear
17514 : clear
17515 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17516 t end
17517 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17518 : end
17519 _ACEOF
17520 # If some macros were called several times there might be several times
17521 # the same #defines, which is useless. Nevertheless, we may not want to
17522 # sort them, since we want the *last* AC-DEFINE to be honored.
17523 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17524 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17525 rm -f confdef2sed.sed
17526
17527 # This sed command replaces #undef with comments. This is necessary, for
17528 # example, in the case of _POSIX_SOURCE, which is predefined and required
17529 # on some systems where configure will not decide to define it.
17530 cat >>conftest.undefs <<\_ACEOF
17531 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17532 _ACEOF
17533
17534 # Break up conftest.defines because some shells have a limit on the size
17535 # of here documents, and old seds have small limits too (100 cmds).
17536 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17537 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17538 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17539 echo ' :' >>$CONFIG_STATUS
17540 rm -f conftest.tail
17541 while grep . conftest.defines >/dev/null
17542 do
17543 # Write a limited-size here document to $tmp/defines.sed.
17544 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17545 # Speed up: don't consider the non `#define' lines.
17546 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17547 # Work around the forget-to-reset-the-flag bug.
17548 echo 't clr' >>$CONFIG_STATUS
17549 echo ': clr' >>$CONFIG_STATUS
17550 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17551 echo 'CEOF
17552 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17553 rm -f $tmp/in
17554 mv $tmp/out $tmp/in
17555 ' >>$CONFIG_STATUS
17556 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17557 rm -f conftest.defines
17558 mv conftest.tail conftest.defines
17559 done
17560 rm -f conftest.defines
17561 echo ' fi # grep' >>$CONFIG_STATUS
17562 echo >>$CONFIG_STATUS
17563
17564 # Break up conftest.undefs because some shells have a limit on the size
17565 # of here documents, and old seds have small limits too (100 cmds).
17566 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17567 rm -f conftest.tail
17568 while grep . conftest.undefs >/dev/null
17569 do
17570 # Write a limited-size here document to $tmp/undefs.sed.
17571 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17572 # Speed up: don't consider the non `#undef'
17573 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17574 # Work around the forget-to-reset-the-flag bug.
17575 echo 't clr' >>$CONFIG_STATUS
17576 echo ': clr' >>$CONFIG_STATUS
17577 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17578 echo 'CEOF
17579 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17580 rm -f $tmp/in
17581 mv $tmp/out $tmp/in
17582 ' >>$CONFIG_STATUS
17583 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17584 rm -f conftest.undefs
17585 mv conftest.tail conftest.undefs
17586 done
17587 rm -f conftest.undefs
17588
17589 cat >>$CONFIG_STATUS <<\_ACEOF
17590 # Let's still pretend it is `configure' which instantiates (i.e., don't
17591 # use $as_me), people would be surprised to read:
17592 # /* config.h. Generated by config.status. */
17593 if test x"$ac_file" = x-; then
17594 echo "/* Generated by configure. */" >$tmp/config.h
17595 else
17596 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17597 fi
17598 cat $tmp/in >>$tmp/config.h
17599 rm -f $tmp/in
17600 if test x"$ac_file" != x-; then
17601 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17602 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17603 echo "$as_me: $ac_file is unchanged" >&6;}
17604 else
17605 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17607 X"$ac_file" : 'X\(//\)[^/]' \| \
17608 X"$ac_file" : 'X\(//\)$' \| \
17609 X"$ac_file" : 'X\(/\)' \| \
17610 . : '\(.\)' 2>/dev/null ||
17611 echo X"$ac_file" |
17612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17614 /^X\(\/\/\)$/{ s//\1/; q; }
17615 /^X\(\/\).*/{ s//\1/; q; }
17616 s/.*/./; q'`
17617 { if $as_mkdir_p; then
17618 mkdir -p "$ac_dir"
17619 else
17620 as_dir="$ac_dir"
17621 as_dirs=
17622 while test ! -d "$as_dir"; do
17623 as_dirs="$as_dir $as_dirs"
17624 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17626 X"$as_dir" : 'X\(//\)[^/]' \| \
17627 X"$as_dir" : 'X\(//\)$' \| \
17628 X"$as_dir" : 'X\(/\)' \| \
17629 . : '\(.\)' 2>/dev/null ||
17630 echo X"$as_dir" |
17631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17633 /^X\(\/\/\)$/{ s//\1/; q; }
17634 /^X\(\/\).*/{ s//\1/; q; }
17635 s/.*/./; q'`
17636 done
17637 test ! -n "$as_dirs" || mkdir $as_dirs
17638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17639 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17640 { (exit 1); exit 1; }; }; }
17641
17642 rm -f $ac_file
17643 mv $tmp/config.h $ac_file
17644 fi
17645 else
17646 cat $tmp/config.h
17647 rm -f $tmp/config.h
17648 fi
17649 # Compute $ac_file's index in $config_headers.
17650 _am_stamp_count=1
17651 for _am_header in $config_headers :; do
17652 case $_am_header in
17653 $ac_file | $ac_file:* )
17654 break ;;
17655 * )
17656 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17657 esac
17658 done
17659 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17660 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17661 X$ac_file : 'X\(//\)[^/]' \| \
17662 X$ac_file : 'X\(//\)$' \| \
17663 X$ac_file : 'X\(/\)' \| \
17664 . : '\(.\)' 2>/dev/null ||
17665 echo X$ac_file |
17666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17668 /^X\(\/\/\)$/{ s//\1/; q; }
17669 /^X\(\/\).*/{ s//\1/; q; }
17670 s/.*/./; q'`/stamp-h$_am_stamp_count
17671 done
17672 _ACEOF
17673 cat >>$CONFIG_STATUS <<\_ACEOF
17674
17675 #
17676 # CONFIG_LINKS section.
17677 #
17678
17679 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17680 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17681 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17682
17683 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17684 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17685
17686 if test ! -r $srcdir/$ac_source; then
17687 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17688 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17689 { (exit 1); exit 1; }; }
17690 fi
17691 rm -f $ac_dest
17692
17693 # Make relative symlinks.
17694 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17695 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17696 X"$ac_dest" : 'X\(//\)[^/]' \| \
17697 X"$ac_dest" : 'X\(//\)$' \| \
17698 X"$ac_dest" : 'X\(/\)' \| \
17699 . : '\(.\)' 2>/dev/null ||
17700 echo X"$ac_dest" |
17701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17703 /^X\(\/\/\)$/{ s//\1/; q; }
17704 /^X\(\/\).*/{ s//\1/; q; }
17705 s/.*/./; q'`
17706 { if $as_mkdir_p; then
17707 mkdir -p "$ac_dest_dir"
17708 else
17709 as_dir="$ac_dest_dir"
17710 as_dirs=
17711 while test ! -d "$as_dir"; do
17712 as_dirs="$as_dir $as_dirs"
17713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17715 X"$as_dir" : 'X\(//\)[^/]' \| \
17716 X"$as_dir" : 'X\(//\)$' \| \
17717 X"$as_dir" : 'X\(/\)' \| \
17718 . : '\(.\)' 2>/dev/null ||
17719 echo X"$as_dir" |
17720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17722 /^X\(\/\/\)$/{ s//\1/; q; }
17723 /^X\(\/\).*/{ s//\1/; q; }
17724 s/.*/./; q'`
17725 done
17726 test ! -n "$as_dirs" || mkdir $as_dirs
17727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17728 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17729 { (exit 1); exit 1; }; }; }
17730
17731 ac_builddir=.
17732
17733 if test "$ac_dest_dir" != .; then
17734 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17735 # A "../" for each directory in $ac_dir_suffix.
17736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17737 else
17738 ac_dir_suffix= ac_top_builddir=
17739 fi
17740
17741 case $srcdir in
17742 .) # No --srcdir option. We are building in place.
17743 ac_srcdir=.
17744 if test -z "$ac_top_builddir"; then
17745 ac_top_srcdir=.
17746 else
17747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17748 fi ;;
17749 [\\/]* | ?:[\\/]* ) # Absolute path.
17750 ac_srcdir=$srcdir$ac_dir_suffix;
17751 ac_top_srcdir=$srcdir ;;
17752 *) # Relative path.
17753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17755 esac
17756
17757 # Do not use `cd foo && pwd` to compute absolute paths, because
17758 # the directories may not exist.
17759 case `pwd` in
17760 .) ac_abs_builddir="$ac_dest_dir";;
17761 *)
17762 case "$ac_dest_dir" in
17763 .) ac_abs_builddir=`pwd`;;
17764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17765 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17766 esac;;
17767 esac
17768 case $ac_abs_builddir in
17769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17770 *)
17771 case ${ac_top_builddir}. in
17772 .) ac_abs_top_builddir=$ac_abs_builddir;;
17773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17775 esac;;
17776 esac
17777 case $ac_abs_builddir in
17778 .) ac_abs_srcdir=$ac_srcdir;;
17779 *)
17780 case $ac_srcdir in
17781 .) ac_abs_srcdir=$ac_abs_builddir;;
17782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17784 esac;;
17785 esac
17786 case $ac_abs_builddir in
17787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17788 *)
17789 case $ac_top_srcdir in
17790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17793 esac;;
17794 esac
17795
17796
17797 case $srcdir in
17798 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17799 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17800 esac
17801
17802 # Try a symlink, then a hard link, then a copy.
17803 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17804 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17805 cp -p $srcdir/$ac_source $ac_dest ||
17806 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17807 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17808 { (exit 1); exit 1; }; }
17809 done
17810 _ACEOF
17811 cat >>$CONFIG_STATUS <<\_ACEOF
17812
17813 #
17814 # CONFIG_COMMANDS section.
17815 #
17816 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17819 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17820 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17821 X"$ac_dest" : 'X\(//\)[^/]' \| \
17822 X"$ac_dest" : 'X\(//\)$' \| \
17823 X"$ac_dest" : 'X\(/\)' \| \
17824 . : '\(.\)' 2>/dev/null ||
17825 echo X"$ac_dest" |
17826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17828 /^X\(\/\/\)$/{ s//\1/; q; }
17829 /^X\(\/\).*/{ s//\1/; q; }
17830 s/.*/./; q'`
17831 { if $as_mkdir_p; then
17832 mkdir -p "$ac_dir"
17833 else
17834 as_dir="$ac_dir"
17835 as_dirs=
17836 while test ! -d "$as_dir"; do
17837 as_dirs="$as_dir $as_dirs"
17838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17840 X"$as_dir" : 'X\(//\)[^/]' \| \
17841 X"$as_dir" : 'X\(//\)$' \| \
17842 X"$as_dir" : 'X\(/\)' \| \
17843 . : '\(.\)' 2>/dev/null ||
17844 echo X"$as_dir" |
17845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17847 /^X\(\/\/\)$/{ s//\1/; q; }
17848 /^X\(\/\).*/{ s//\1/; q; }
17849 s/.*/./; q'`
17850 done
17851 test ! -n "$as_dirs" || mkdir $as_dirs
17852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17854 { (exit 1); exit 1; }; }; }
17855
17856 ac_builddir=.
17857
17858 if test "$ac_dir" != .; then
17859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17860 # A "../" for each directory in $ac_dir_suffix.
17861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17862 else
17863 ac_dir_suffix= ac_top_builddir=
17864 fi
17865
17866 case $srcdir in
17867 .) # No --srcdir option. We are building in place.
17868 ac_srcdir=.
17869 if test -z "$ac_top_builddir"; then
17870 ac_top_srcdir=.
17871 else
17872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17873 fi ;;
17874 [\\/]* | ?:[\\/]* ) # Absolute path.
17875 ac_srcdir=$srcdir$ac_dir_suffix;
17876 ac_top_srcdir=$srcdir ;;
17877 *) # Relative path.
17878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17880 esac
17881
17882 # Do not use `cd foo && pwd` to compute absolute paths, because
17883 # the directories may not exist.
17884 case `pwd` in
17885 .) ac_abs_builddir="$ac_dir";;
17886 *)
17887 case "$ac_dir" in
17888 .) ac_abs_builddir=`pwd`;;
17889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17891 esac;;
17892 esac
17893 case $ac_abs_builddir in
17894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17895 *)
17896 case ${ac_top_builddir}. in
17897 .) ac_abs_top_builddir=$ac_abs_builddir;;
17898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17900 esac;;
17901 esac
17902 case $ac_abs_builddir in
17903 .) ac_abs_srcdir=$ac_srcdir;;
17904 *)
17905 case $ac_srcdir in
17906 .) ac_abs_srcdir=$ac_abs_builddir;;
17907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17909 esac;;
17910 esac
17911 case $ac_abs_builddir in
17912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17913 *)
17914 case $ac_top_srcdir in
17915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17918 esac;;
17919 esac
17920
17921
17922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17923 echo "$as_me: executing $ac_dest commands" >&6;}
17924 case $ac_dest in
17925 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17926 # Strip MF so we end up with the name of the file.
17927 mf=`echo "$mf" | sed -e 's/:.*$//'`
17928 # Check whether this is an Automake generated Makefile or not.
17929 # We used to match only the files named `Makefile.in', but
17930 # some people rename them; so instead we look at the file content.
17931 # Grep'ing the first line is not enough: some people post-process
17932 # each Makefile.in and add a new line on top of each file to say so.
17933 # So let's grep whole file.
17934 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17935 dirpart=`(dirname "$mf") 2>/dev/null ||
17936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17937 X"$mf" : 'X\(//\)[^/]' \| \
17938 X"$mf" : 'X\(//\)$' \| \
17939 X"$mf" : 'X\(/\)' \| \
17940 . : '\(.\)' 2>/dev/null ||
17941 echo X"$mf" |
17942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17944 /^X\(\/\/\)$/{ s//\1/; q; }
17945 /^X\(\/\).*/{ s//\1/; q; }
17946 s/.*/./; q'`
17947 else
17948 continue
17949 fi
17950 # Extract the definition of DEPDIR, am__include, and am__quote
17951 # from the Makefile without running `make'.
17952 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17953 test -z "$DEPDIR" && continue
17954 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17955 test -z "am__include" && continue
17956 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17957 # When using ansi2knr, U may be empty or an underscore; expand it
17958 U=`sed -n 's/^U = //p' < "$mf"`
17959 # Find all dependency output files, they are included files with
17960 # $(DEPDIR) in their names. We invoke sed twice because it is the
17961 # simplest approach to changing $(DEPDIR) to its actual value in the
17962 # expansion.
17963 for file in `sed -n "
17964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17966 # Make sure the directory exists.
17967 test -f "$dirpart/$file" && continue
17968 fdir=`(dirname "$file") 2>/dev/null ||
17969 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17970 X"$file" : 'X\(//\)[^/]' \| \
17971 X"$file" : 'X\(//\)$' \| \
17972 X"$file" : 'X\(/\)' \| \
17973 . : '\(.\)' 2>/dev/null ||
17974 echo X"$file" |
17975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17977 /^X\(\/\/\)$/{ s//\1/; q; }
17978 /^X\(\/\).*/{ s//\1/; q; }
17979 s/.*/./; q'`
17980 { if $as_mkdir_p; then
17981 mkdir -p $dirpart/$fdir
17982 else
17983 as_dir=$dirpart/$fdir
17984 as_dirs=
17985 while test ! -d "$as_dir"; do
17986 as_dirs="$as_dir $as_dirs"
17987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17989 X"$as_dir" : 'X\(//\)[^/]' \| \
17990 X"$as_dir" : 'X\(//\)$' \| \
17991 X"$as_dir" : 'X\(/\)' \| \
17992 . : '\(.\)' 2>/dev/null ||
17993 echo X"$as_dir" |
17994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17996 /^X\(\/\/\)$/{ s//\1/; q; }
17997 /^X\(\/\).*/{ s//\1/; q; }
17998 s/.*/./; q'`
17999 done
18000 test ! -n "$as_dirs" || mkdir $as_dirs
18001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18002 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18003 { (exit 1); exit 1; }; }; }
18004
18005 # echo "creating $dirpart/$file"
18006 echo '# dummy' > "$dirpart/$file"
18007 done
18008 done
18009 ;;
18010 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18011 case " $CONFIG_FILES " in
18012 *" Makefile "*)
18013 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18014 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18015 ;;
18016 esac
18017 for ac_multi_file in $CONFIG_FILES; do
18018 case $ac_multi_file in
18019 */Makefile)
18020 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18021 esac
18022 done
18023 ;;
18024 esac
18025 done
18026 _ACEOF
18027
18028 cat >>$CONFIG_STATUS <<\_ACEOF
18029
18030 { (exit 0); exit 0; }
18031 _ACEOF
18032 chmod +x $CONFIG_STATUS
18033 ac_clean_files=$ac_clean_files_save
18034
18035
18036 # configure is writing to config.log, and then calls config.status.
18037 # config.status does its own redirection, appending to config.log.
18038 # Unfortunately, on DOS this fails, as config.log is still kept open
18039 # by configure, so config.status won't be able to write to it; its
18040 # output is simply discarded. So we exec the FD to /dev/null,
18041 # effectively closing config.log, so it can be properly (re)opened and
18042 # appended to by config.status. When coming back to configure, we
18043 # need to make the FD available again.
18044 if test "$no_create" != yes; then
18045 ac_cs_success=:
18046 ac_config_status_args=
18047 test "$silent" = yes &&
18048 ac_config_status_args="$ac_config_status_args --quiet"
18049 exec 5>/dev/null
18050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18051 exec 5>>config.log
18052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18053 # would make configure fail if this is the last instruction.
18054 $ac_cs_success || { (exit 1); exit 1; }
18055 fi
18056
18057 #
18058 # CONFIG_SUBDIRS section.
18059 #
18060 if test "$no_recursion" != yes; then
18061
18062 # Remove --cache-file and --srcdir arguments so they do not pile up.
18063 ac_sub_configure_args=
18064 ac_prev=
18065 for ac_arg in $ac_configure_args; do
18066 if test -n "$ac_prev"; then
18067 ac_prev=
18068 continue
18069 fi
18070 case $ac_arg in
18071 -cache-file | --cache-file | --cache-fil | --cache-fi \
18072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18073 ac_prev=cache_file ;;
18074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18076 | --c=*)
18077 ;;
18078 --config-cache | -C)
18079 ;;
18080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18081 ac_prev=srcdir ;;
18082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18083 ;;
18084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18085 ac_prev=prefix ;;
18086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18087 ;;
18088 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18089 esac
18090 done
18091
18092 # Always prepend --prefix to ensure using the same prefix
18093 # in subdir configurations.
18094 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18095
18096 ac_popdir=`pwd`
18097 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18098
18099 # Do not complain, so a configure script can configure whichever
18100 # parts of a large source tree are present.
18101 test -d $srcdir/$ac_dir || continue
18102
18103 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18104 echo "$as_me: configuring in $ac_dir" >&6;}
18105 { if $as_mkdir_p; then
18106 mkdir -p "$ac_dir"
18107 else
18108 as_dir="$ac_dir"
18109 as_dirs=
18110 while test ! -d "$as_dir"; do
18111 as_dirs="$as_dir $as_dirs"
18112 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18114 X"$as_dir" : 'X\(//\)[^/]' \| \
18115 X"$as_dir" : 'X\(//\)$' \| \
18116 X"$as_dir" : 'X\(/\)' \| \
18117 . : '\(.\)' 2>/dev/null ||
18118 echo X"$as_dir" |
18119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18121 /^X\(\/\/\)$/{ s//\1/; q; }
18122 /^X\(\/\).*/{ s//\1/; q; }
18123 s/.*/./; q'`
18124 done
18125 test ! -n "$as_dirs" || mkdir $as_dirs
18126 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18127 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18128 { (exit 1); exit 1; }; }; }
18129
18130 ac_builddir=.
18131
18132 if test "$ac_dir" != .; then
18133 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18134 # A "../" for each directory in $ac_dir_suffix.
18135 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18136 else
18137 ac_dir_suffix= ac_top_builddir=
18138 fi
18139
18140 case $srcdir in
18141 .) # No --srcdir option. We are building in place.
18142 ac_srcdir=.
18143 if test -z "$ac_top_builddir"; then
18144 ac_top_srcdir=.
18145 else
18146 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18147 fi ;;
18148 [\\/]* | ?:[\\/]* ) # Absolute path.
18149 ac_srcdir=$srcdir$ac_dir_suffix;
18150 ac_top_srcdir=$srcdir ;;
18151 *) # Relative path.
18152 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18153 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18154 esac
18155
18156 # Do not use `cd foo && pwd` to compute absolute paths, because
18157 # the directories may not exist.
18158 case `pwd` in
18159 .) ac_abs_builddir="$ac_dir";;
18160 *)
18161 case "$ac_dir" in
18162 .) ac_abs_builddir=`pwd`;;
18163 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18164 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18165 esac;;
18166 esac
18167 case $ac_abs_builddir in
18168 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18169 *)
18170 case ${ac_top_builddir}. in
18171 .) ac_abs_top_builddir=$ac_abs_builddir;;
18172 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18173 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18174 esac;;
18175 esac
18176 case $ac_abs_builddir in
18177 .) ac_abs_srcdir=$ac_srcdir;;
18178 *)
18179 case $ac_srcdir in
18180 .) ac_abs_srcdir=$ac_abs_builddir;;
18181 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18182 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18183 esac;;
18184 esac
18185 case $ac_abs_builddir in
18186 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18187 *)
18188 case $ac_top_srcdir in
18189 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18190 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18191 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18192 esac;;
18193 esac
18194
18195
18196 cd $ac_dir
18197
18198 # Check for guested configure; otherwise get Cygnus style configure.
18199 if test -f $ac_srcdir/configure.gnu; then
18200 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18201 elif test -f $ac_srcdir/configure; then
18202 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18203 elif test -f $ac_srcdir/configure.in; then
18204 ac_sub_configure=$ac_configure
18205 else
18206 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18207 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18208 ac_sub_configure=
18209 fi
18210
18211 # The recursion is here.
18212 if test -n "$ac_sub_configure"; then
18213 # Make the cache file name correct relative to the subdirectory.
18214 case $cache_file in
18215 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18216 *) # Relative path.
18217 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18218 esac
18219
18220 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18221 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18222 # The eval makes quoting arguments work.
18223 eval $ac_sub_configure $ac_sub_configure_args \
18224 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18225 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18226 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18227 { (exit 1); exit 1; }; }
18228 fi
18229
18230 cd $ac_popdir
18231 done
18232 fi
18233