OSDN Git Service

74dfc0967ab029d971f1ef319e621b948213a0fa
[pf3gnuchains/gcc-fork.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_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE 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 LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM 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 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 THREADSTARTFILESPEC 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 USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC 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-multilib       build many library versions (default)
853   --enable-version-specific-runtime-libs
854                           specify that runtime libraries should be installed
855                           in a compiler-specific directory
856   --enable-plugin         build gcjwebplugin web browser plugin
857   --enable-gconf-peer     compile GConf native peers for util.preferences
858   --enable-java-maintainer-mode
859                           allow rebuilding of .class and .h files
860   --disable-dependency-tracking  speeds up one-time build
861   --enable-dependency-tracking   do not reject slow dependency extractors
862   --enable-maintainer-mode  enable make rules and dependencies not useful
863                           (and sometimes confusing) to the casual installer
864   --enable-libgcj-debug   enable runtime debugging code
865   --enable-java-awt       list of AWT peer implementations to be built
866   --enable-shared=PKGS  build shared libraries default=yes
867   --enable-static=PKGS  build static libraries default=yes
868   --enable-fast-install=PKGS  optimize for fast installation default=yes
869   --disable-libtool-lock  avoid locking (might break parallel builds)
870   --disable-getenv-properties
871                           don't set system properties from GCJ_PROPERTIES
872   --enable-hash-synchronization
873                           use global hash table for monitor locks
874   --enable-gc-debug       include full support for pointer backtracing etc.
875   --enable-interpreter    enable interpreter
876   --enable-sjlj-exceptions
877                           force use of builtin_setjmp for exceptions
878   --disable-java-net      disable java.net
879   --disable-jvmpi         disable JVMPI support
880   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
881   --disable-rpath         do not hardcode runtime library paths
882   --enable-tls            Use thread-local storage [default=yes]
883
884 Optional Packages:
885   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
886   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
887   --with-build-libsubdir=DIR  Directory where to find libraries for build system
888   --with-target-subdir=SUBDIR
889                           configure in a subdirectory
890   --with-cross-host=HOST  configure with a cross compiler from HOST
891   --with-newlib           configure with newlib
892   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
893   --with-gnu-ld           assume the C compiler uses GNU ld default=no
894   --with-pic              try to use only PIC/non-PIC objects default=use both
895   --with-ecj-jar=FILE     use preinstalled ecj jar
896   --with-java-home=DIRECTORY
897                           value of java.home system property
898   --with-win32-nlsapi=ansi or unicows or unicode
899                           native MinGW libgcj Win32 OS API (default is ansi)
900   --without-libffi        don't use libffi
901   --with-ecos             enable runtime eCos target support
902   --with-system-zlib      use installed libz
903   --with-x                use the X Window System
904   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
905   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
906
907 Some influential environment variables:
908   CC          C compiler command
909   CFLAGS      C compiler flags
910   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
911               nonstandard directory <lib dir>
912   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
913               headers in a nonstandard directory <include dir>
914   CXX         C++ compiler command
915   CXXFLAGS    C++ compiler flags
916   CXXCPP      C++ preprocessor
917   CPP         C preprocessor
918
919 Use these variables to override the choices made by `configure' or to help
920 it to find libraries and programs with nonstandard names/locations.
921
922 _ACEOF
923 fi
924
925 if test "$ac_init_help" = "recursive"; then
926   # If there are subdirs, report their specific --help.
927   ac_popdir=`pwd`
928   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929     test -d $ac_dir || continue
930     ac_builddir=.
931
932 if test "$ac_dir" != .; then
933   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
934   # A "../" for each directory in $ac_dir_suffix.
935   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936 else
937   ac_dir_suffix= ac_top_builddir=
938 fi
939
940 case $srcdir in
941   .)  # No --srcdir option.  We are building in place.
942     ac_srcdir=.
943     if test -z "$ac_top_builddir"; then
944        ac_top_srcdir=.
945     else
946        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
947     fi ;;
948   [\\/]* | ?:[\\/]* )  # Absolute path.
949     ac_srcdir=$srcdir$ac_dir_suffix;
950     ac_top_srcdir=$srcdir ;;
951   *) # Relative path.
952     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
953     ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 esac
955
956 # Do not use `cd foo && pwd` to compute absolute paths, because
957 # the directories may not exist.
958 case `pwd` in
959 .) ac_abs_builddir="$ac_dir";;
960 *)
961   case "$ac_dir" in
962   .) ac_abs_builddir=`pwd`;;
963   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
964   *) ac_abs_builddir=`pwd`/"$ac_dir";;
965   esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *)
970   case ${ac_top_builddir}. in
971   .) ac_abs_top_builddir=$ac_abs_builddir;;
972   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
973   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974   esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_srcdir=$ac_srcdir;;
978 *)
979   case $ac_srcdir in
980   .) ac_abs_srcdir=$ac_abs_builddir;;
981   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
982   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983   esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *)
988   case $ac_top_srcdir in
989   .) ac_abs_top_srcdir=$ac_abs_builddir;;
990   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
991   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992   esac;;
993 esac
994
995     cd $ac_dir
996     # Check for guested configure; otherwise get Cygnus style configure.
997     if test -f $ac_srcdir/configure.gnu; then
998       echo
999       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1000     elif test -f $ac_srcdir/configure; then
1001       echo
1002       $SHELL $ac_srcdir/configure  --help=recursive
1003     elif test -f $ac_srcdir/configure.ac ||
1004            test -f $ac_srcdir/configure.in; then
1005       echo
1006       $ac_configure --help
1007     else
1008       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009     fi
1010     cd $ac_popdir
1011   done
1012 fi
1013
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1016   cat <<\_ACEOF
1017 libjava configure version-unused
1018 generated by GNU Autoconf 2.59
1019
1020 Copyright (C) 2003 Free Software Foundation, Inc.
1021 This configure script is free software; the Free Software Foundation
1022 gives unlimited permission to copy, distribute and modify it.
1023 _ACEOF
1024   exit 0
1025 fi
1026 exec 5>config.log
1027 cat >&5 <<_ACEOF
1028 This file contains any messages produced by compilers while
1029 running configure, to aid debugging if configure makes a mistake.
1030
1031 It was created by libjava $as_me version-unused, which was
1032 generated by GNU Autoconf 2.59.  Invocation command line was
1033
1034   $ $0 $@
1035
1036 _ACEOF
1037 {
1038 cat <<_ASUNAME
1039 ## --------- ##
1040 ## Platform. ##
1041 ## --------- ##
1042
1043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1048
1049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1051
1052 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1053 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1056 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1057 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1058 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1059
1060 _ASUNAME
1061
1062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063 for as_dir in $PATH
1064 do
1065   IFS=$as_save_IFS
1066   test -z "$as_dir" && as_dir=.
1067   echo "PATH: $as_dir"
1068 done
1069
1070 } >&5
1071
1072 cat >&5 <<_ACEOF
1073
1074
1075 ## ----------- ##
1076 ## Core tests. ##
1077 ## ----------- ##
1078
1079 _ACEOF
1080
1081
1082 # Keep a trace of the command line.
1083 # Strip out --no-create and --no-recursion so they do not pile up.
1084 # Strip out --silent because we don't want to record it for future runs.
1085 # Also quote any args containing shell meta-characters.
1086 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_configure_args=
1088 ac_configure_args0=
1089 ac_configure_args1=
1090 ac_sep=
1091 ac_must_keep_next=false
1092 for ac_pass in 1 2
1093 do
1094   for ac_arg
1095   do
1096     case $ac_arg in
1097     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1098     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099     | -silent | --silent | --silen | --sile | --sil)
1100       continue ;;
1101     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103     esac
1104     case $ac_pass in
1105     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1106     2)
1107       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1108       if test $ac_must_keep_next = true; then
1109         ac_must_keep_next=false # Got value, back to normal.
1110       else
1111         case $ac_arg in
1112           *=* | --config-cache | -C | -disable-* | --disable-* \
1113           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1114           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1115           | -with-* | --with-* | -without-* | --without-* | --x)
1116             case "$ac_configure_args0 " in
1117               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118             esac
1119             ;;
1120           -* ) ac_must_keep_next=true ;;
1121         esac
1122       fi
1123       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124       # Get rid of the leading space.
1125       ac_sep=" "
1126       ;;
1127     esac
1128   done
1129 done
1130 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1132
1133 # When interrupted or exit'd, cleanup temporary files, and complete
1134 # config.log.  We remove comments because anyway the quotes in there
1135 # would cause problems or look ugly.
1136 # WARNING: Be sure not to use single quotes in there, as some shells,
1137 # such as our DU 5.0 friend, will then `close' the trap.
1138 trap 'exit_status=$?
1139   # Save into config.log some information that might help in debugging.
1140   {
1141     echo
1142
1143     cat <<\_ASBOX
1144 ## ---------------- ##
1145 ## Cache variables. ##
1146 ## ---------------- ##
1147 _ASBOX
1148     echo
1149     # The following way of writing the cache mishandles newlines in values,
1150 {
1151   (set) 2>&1 |
1152     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153     *ac_space=\ *)
1154       sed -n \
1155         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157       ;;
1158     *)
1159       sed -n \
1160         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161       ;;
1162     esac;
1163 }
1164     echo
1165
1166     cat <<\_ASBOX
1167 ## ----------------- ##
1168 ## Output variables. ##
1169 ## ----------------- ##
1170 _ASBOX
1171     echo
1172     for ac_var in $ac_subst_vars
1173     do
1174       eval ac_val=$`echo $ac_var`
1175       echo "$ac_var='"'"'$ac_val'"'"'"
1176     done | sort
1177     echo
1178
1179     if test -n "$ac_subst_files"; then
1180       cat <<\_ASBOX
1181 ## ------------- ##
1182 ## Output files. ##
1183 ## ------------- ##
1184 _ASBOX
1185       echo
1186       for ac_var in $ac_subst_files
1187       do
1188         eval ac_val=$`echo $ac_var`
1189         echo "$ac_var='"'"'$ac_val'"'"'"
1190       done | sort
1191       echo
1192     fi
1193
1194     if test -s confdefs.h; then
1195       cat <<\_ASBOX
1196 ## ----------- ##
1197 ## confdefs.h. ##
1198 ## ----------- ##
1199 _ASBOX
1200       echo
1201       sed "/^$/d" confdefs.h | sort
1202       echo
1203     fi
1204     test "$ac_signal" != 0 &&
1205       echo "$as_me: caught signal $ac_signal"
1206     echo "$as_me: exit $exit_status"
1207   } >&5
1208   rm -f core *.core &&
1209   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210     exit $exit_status
1211      ' 0
1212 for ac_signal in 1 2 13 15; do
1213   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214 done
1215 ac_signal=0
1216
1217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1218 rm -rf conftest* confdefs.h
1219 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220 echo >confdefs.h
1221
1222 # Predefined preprocessor variables.
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_NAME "$PACKAGE_NAME"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_STRING "$PACKAGE_STRING"
1241 _ACEOF
1242
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246 _ACEOF
1247
1248
1249 # Let the site file select an alternate cache file if it wants to.
1250 # Prefer explicitly selected file to automatically selected ones.
1251 if test -z "$CONFIG_SITE"; then
1252   if test "x$prefix" != xNONE; then
1253     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1254   else
1255     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256   fi
1257 fi
1258 for ac_site_file in $CONFIG_SITE; do
1259   if test -r "$ac_site_file"; then
1260     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261 echo "$as_me: loading site script $ac_site_file" >&6;}
1262     sed 's/^/| /' "$ac_site_file" >&5
1263     . "$ac_site_file"
1264   fi
1265 done
1266
1267 if test -r "$cache_file"; then
1268   # Some versions of bash will fail to source /dev/null (special
1269   # files actually), so we avoid doing that.
1270   if test -f "$cache_file"; then
1271     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272 echo "$as_me: loading cache $cache_file" >&6;}
1273     case $cache_file in
1274       [\\/]* | ?:[\\/]* ) . $cache_file;;
1275       *)                      . ./$cache_file;;
1276     esac
1277   fi
1278 else
1279   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280 echo "$as_me: creating cache $cache_file" >&6;}
1281   >$cache_file
1282 fi
1283
1284 # Check that the precious variables saved in the cache have kept the same
1285 # value.
1286 ac_cache_corrupted=false
1287 for ac_var in `(set) 2>&1 |
1288                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290   eval ac_new_set=\$ac_env_${ac_var}_set
1291   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292   eval ac_new_val="\$ac_env_${ac_var}_value"
1293   case $ac_old_set,$ac_new_set in
1294     set,)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,set)
1299       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301       ac_cache_corrupted=: ;;
1302     ,);;
1303     *)
1304       if test "x$ac_old_val" != "x$ac_new_val"; then
1305         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1308 echo "$as_me:   former value:  $ac_old_val" >&2;}
1309         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1310 echo "$as_me:   current value: $ac_new_val" >&2;}
1311         ac_cache_corrupted=:
1312       fi;;
1313   esac
1314   # Pass precious variables to config.status.
1315   if test "$ac_new_set" = set; then
1316     case $ac_new_val in
1317     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319     *) ac_arg=$ac_var=$ac_new_val ;;
1320     esac
1321     case " $ac_configure_args " in
1322       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1323       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324     esac
1325   fi
1326 done
1327 if $ac_cache_corrupted; then
1328   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332    { (exit 1); exit 1; }; }
1333 fi
1334
1335 ac_ext=c
1336 ac_cpp='$CPP $CPPFLAGS'
1337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370 ac_aux_dir=
1371 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1372   if test -f $ac_dir/install-sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install-sh -c"
1375     break
1376   elif test -f $ac_dir/install.sh; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/install.sh -c"
1379     break
1380   elif test -f $ac_dir/shtool; then
1381     ac_aux_dir=$ac_dir
1382     ac_install_sh="$ac_aux_dir/shtool install -c"
1383     break
1384   fi
1385 done
1386 if test -z "$ac_aux_dir"; then
1387   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1389    { (exit 1); exit 1; }; }
1390 fi
1391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399    { (exit 1); exit 1; }; }
1400
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408   ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412    { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427  case ${build_alias} in
1428   "") build_noncanonical=${build} ;;
1429   *) build_noncanonical=${build_alias} ;;
1430 esac
1431
1432  case ${host_alias} in
1433   "") host_noncanonical=${build_noncanonical} ;;
1434   *) host_noncanonical=${host_alias} ;;
1435 esac
1436
1437  case ${target_alias} in
1438   "") target_noncanonical=${host_noncanonical} ;;
1439   *) target_noncanonical=${target_alias} ;;
1440 esac
1441
1442
1443 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1444 # have matching libraries, they should use host libraries: Makefile.tpl
1445 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1446 # However, they still use the build modules, because the corresponding
1447 # host modules (e.g. bison) are only built for the host when bootstrap
1448 # finishes. So:
1449 # - build_subdir is where we find build modules, and never changes.
1450 # - build_libsubdir is where we find build libraries, and can be overridden.
1451
1452 # Prefix 'build-' so this never conflicts with target_subdir.
1453 build_subdir="build-${build_noncanonical}"
1454
1455 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1456 if test "${with_build_libsubdir+set}" = set; then
1457   withval="$with_build_libsubdir"
1458   build_libsubdir="$withval"
1459 else
1460   build_libsubdir="$build_subdir"
1461 fi;
1462 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1463 if ( test $srcdir = . && test -d gcc ) \
1464    || test -d $srcdir/../host-${host_noncanonical}; then
1465   host_subdir="host-${host_noncanonical}"
1466 else
1467   host_subdir=.
1468 fi
1469 # No prefix.
1470 target_subdir=${target_noncanonical}
1471
1472
1473 # We use these options to decide which functions to include.
1474
1475 # Check whether --with-target-subdir or --without-target-subdir was given.
1476 if test "${with_target_subdir+set}" = set; then
1477   withval="$with_target_subdir"
1478
1479 fi;
1480
1481 # We may get other options which we don't document:
1482 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1483
1484 # Find the rest of the source tree framework.
1485 # Default to --enable-multilib
1486 # Check whether --enable-multilib or --disable-multilib was given.
1487 if test "${enable_multilib+set}" = set; then
1488   enableval="$enable_multilib"
1489   case "$enableval" in
1490   yes) multilib=yes ;;
1491   no)  multilib=no ;;
1492   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1493 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1494    { (exit 1); exit 1; }; } ;;
1495  esac
1496 else
1497   multilib=yes
1498 fi;
1499
1500 # We may get other options which we leave undocumented:
1501 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1502 # See config-ml.in if you want the gory details.
1503
1504 if test "$srcdir" = "."; then
1505   if test "$with_target_subdir" != "."; then
1506     multi_basedir="$srcdir/$with_multisrctop../.."
1507   else
1508     multi_basedir="$srcdir/$with_multisrctop.."
1509   fi
1510 else
1511   multi_basedir="$srcdir/.."
1512 fi
1513
1514
1515 # Even if the default multilib is not a cross compilation,
1516 # it may be that some of the other multilibs are.
1517 if test $cross_compiling = no && test $multilib = yes \
1518    && test "x${with_multisubdir}" != x ; then
1519    cross_compiling=maybe
1520 fi
1521
1522           ac_config_commands="$ac_config_commands default-1"
1523
1524
1525 echo "$as_me:$LINENO: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528   echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530   ac_cv_host_alias=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532   ac_cv_host_alias=$ac_cv_build_alias
1533 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1534   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536    { (exit 1); exit 1; }; }
1537
1538 fi
1539 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1541 host=$ac_cv_host
1542 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547 echo "$as_me:$LINENO: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552   ac_cv_target_alias=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554   ac_cv_target_alias=$ac_cv_host_alias
1555 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1556   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558    { (exit 1); exit 1; }; }
1559
1560 fi
1561 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target=$ac_cv_target
1564 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569 # The aliases save the names the user supplied, while $host etc.
1570 # will get canonicalized.
1571 test -n "$target_alias" &&
1572   test "$program_prefix$program_suffix$program_transform_name" = \
1573     NONENONEs,x,x, &&
1574   program_prefix=${target_alias}-
1575  case ${build_alias} in
1576   "") build_noncanonical=${build} ;;
1577   *) build_noncanonical=${build_alias} ;;
1578 esac
1579
1580  case ${target_alias} in
1581   "") target_noncanonical=${host_noncanonical} ;;
1582   *) target_noncanonical=${target_alias} ;;
1583 esac
1584
1585
1586
1587
1588 # This works around the fact that libtool configuration may change LD
1589 # for this particular configuration, but some shells, instead of
1590 # keeping the changes in LD private, export them just because LD is
1591 # exported.
1592 ORIGINAL_LD_FOR_MULTILIBS=$LD
1593
1594 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1595 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1596 LN_S=$as_ln_s
1597 if test "$LN_S" = "ln -s"; then
1598   echo "$as_me:$LINENO: result: yes" >&5
1599 echo "${ECHO_T}yes" >&6
1600 else
1601   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1602 echo "${ECHO_T}no, using $LN_S" >&6
1603 fi
1604
1605
1606 # This works around an automake problem.
1607 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1608
1609
1610
1611 # Check whether --with-cross-host or --without-cross-host was given.
1612 if test "${with_cross_host+set}" = set; then
1613   withval="$with_cross_host"
1614
1615 fi;
1616
1617
1618 # Check whether --with-newlib or --without-newlib was given.
1619 if test "${with_newlib+set}" = set; then
1620   withval="$with_newlib"
1621
1622 fi;
1623
1624 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1625 if test "${enable_version_specific_runtime_libs+set}" = set; then
1626   enableval="$enable_version_specific_runtime_libs"
1627   case "$enableval" in
1628       yes) version_specific_libs=yes ;;
1629       no)  version_specific_libs=no ;;
1630       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1631 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1632    { (exit 1); exit 1; }; };;
1633      esac
1634 else
1635   version_specific_libs=no
1636
1637 fi;
1638
1639 # Check whether --enable-plugin or --disable-plugin was given.
1640 if test "${enable_plugin+set}" = set; then
1641   enableval="$enable_plugin"
1642   case "$enableval" in
1643       yes) plugin_enabled=yes ;;
1644       no)  plugin_enabled=no ;;
1645       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1646 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1647    { (exit 1); exit 1; }; };;
1648      esac
1649 else
1650   plugin_enabled=no
1651
1652 fi;
1653
1654 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1655 if test "${enable_gconf_peer+set}" = set; then
1656   enableval="$enable_gconf_peer"
1657   case "$enableval" in
1658       yes) gconf_enabled=yes ;;
1659       no)  gconf_enabled=no ;;
1660       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1661 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1662    { (exit 1); exit 1; }; };;
1663      esac
1664 else
1665   gconf_enabled=no
1666
1667 fi;
1668
1669 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1670 if test "${enable_java_maintainer_mode+set}" = set; then
1671   enableval="$enable_java_maintainer_mode"
1672
1673 fi;
1674
1675
1676 if test "$enable_java_maintainer_mode" = yes; then
1677   JAVA_MAINTAINER_MODE_TRUE=
1678   JAVA_MAINTAINER_MODE_FALSE='#'
1679 else
1680   JAVA_MAINTAINER_MODE_TRUE='#'
1681   JAVA_MAINTAINER_MODE_FALSE=
1682 fi
1683
1684
1685 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1686
1687
1688 # (1) We use an abnormal CXX (without library references), so we
1689 # must cache it under a different name.
1690 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1691 # the non-multilib-adjusted value will be used in multilibs.
1692 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1693 # (4) As another side effect, automake doesn't automatically include them
1694 # in Makefile.in.
1695 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1696 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1697 # used in later tests.  This may not be necessary in libjava; I don't know.
1698
1699
1700 save_CXXFLAGS="$CXXFLAGS"
1701 CXXFLAGS="$CXXFLAGS -fno-builtin"
1702 ac_ext=c
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   if test -n "$CC"; then
1716   ac_cv_prog_CC="$CC" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727     break 2
1728   fi
1729 done
1730 done
1731
1732 fi
1733 fi
1734 CC=$ac_cv_prog_CC
1735 if test -n "$CC"; then
1736   echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743 fi
1744 if test -z "$ac_cv_prog_CC"; then
1745   ac_ct_CC=$CC
1746   # Extract the first word of "gcc", so it can be a program name with args.
1747 set dummy gcc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$ac_ct_CC"; then
1754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_ac_ct_CC="gcc"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781   CC=$ac_ct_CC
1782 else
1783   CC="$ac_cv_prog_CC"
1784 fi
1785
1786 if test -z "$CC"; then
1787   if test -n "$ac_tool_prefix"; then
1788   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}cc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$CC"; then
1796   ac_cv_prog_CC="$CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_CC="${ac_tool_prefix}cc"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 CC=$ac_cv_prog_CC
1815 if test -n "$CC"; then
1816   echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823 fi
1824 if test -z "$ac_cv_prog_CC"; then
1825   ac_ct_CC=$CC
1826   # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$ac_ct_CC"; then
1834   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_ac_ct_CC="cc"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861   CC=$ac_ct_CC
1862 else
1863   CC="$ac_cv_prog_CC"
1864 fi
1865
1866 fi
1867 if test -z "$CC"; then
1868   # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$CC"; then
1876   ac_cv_prog_CC="$CC" # Let the user override the test.
1877 else
1878   ac_prog_rejected=no
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   for ac_exec_ext in '' $ac_executable_extensions; do
1885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1887        ac_prog_rejected=yes
1888        continue
1889      fi
1890     ac_cv_prog_CC="cc"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897 if test $ac_prog_rejected = yes; then
1898   # We found a bogon in the path, so make sure we never use it.
1899   set dummy $ac_cv_prog_CC
1900   shift
1901   if test $# != 0; then
1902     # We chose a different compiler from the bogus one.
1903     # However, it has the same basename, so the bogon will be chosen
1904     # first if we set CC to just the basename; use the full file name.
1905     shift
1906     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1907   fi
1908 fi
1909 fi
1910 fi
1911 CC=$ac_cv_prog_CC
1912 if test -n "$CC"; then
1913   echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920 fi
1921 if test -z "$CC"; then
1922   if test -n "$ac_tool_prefix"; then
1923   for ac_prog in cl
1924   do
1925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   if test -n "$CC"; then
1933   ac_cv_prog_CC="$CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940   for ac_exec_ext in '' $ac_executable_extensions; do
1941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944     break 2
1945   fi
1946 done
1947 done
1948
1949 fi
1950 fi
1951 CC=$ac_cv_prog_CC
1952 if test -n "$CC"; then
1953   echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1955 else
1956   echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1958 fi
1959
1960     test -n "$CC" && break
1961   done
1962 fi
1963 if test -z "$CC"; then
1964   ac_ct_CC=$CC
1965   for ac_prog in cl
1966 do
1967   # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy $ac_prog; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$ac_ct_CC"; then
1975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984     ac_cv_prog_ac_ct_CC="$ac_prog"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990
1991 fi
1992 fi
1993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1994 if test -n "$ac_ct_CC"; then
1995   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1996 echo "${ECHO_T}$ac_ct_CC" >&6
1997 else
1998   echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002   test -n "$ac_ct_CC" && break
2003 done
2004
2005   CC=$ac_ct_CC
2006 fi
2007
2008 fi
2009
2010
2011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: no acceptable C compiler found in \$PATH
2014 See \`config.log' for more details." >&2;}
2015    { (exit 1); exit 1; }; }
2016
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019      "checking for C compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022   (eval $ac_compiler --version </dev/null >&5) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027   (eval $ac_compiler -v </dev/null >&5) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032   (eval $ac_compiler -V </dev/null >&5) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }
2036
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h.  */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h.  */
2043
2044 int
2045 main ()
2046 {
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 # FIXME: Cleanup?
2053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2054   (eval $ac_link) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }; then
2058   gcc_no_link=no
2059 else
2060   gcc_no_link=yes
2061 fi
2062
2063 if test x$gcc_no_link = xyes; then
2064   # Setting cross_compile will disable run tests; it will
2065   # also disable AC_CHECK_FILE but that's generally
2066   # correct if we can't link.
2067   cross_compiling=yes
2068   EXEEXT=
2069 else
2070   cat >conftest.$ac_ext <<_ACEOF
2071 /* confdefs.h.  */
2072 _ACEOF
2073 cat confdefs.h >>conftest.$ac_ext
2074 cat >>conftest.$ac_ext <<_ACEOF
2075 /* end confdefs.h.  */
2076
2077 int
2078 main ()
2079 {
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 ac_clean_files_save=$ac_clean_files
2086 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087 # Try to create an executable without -o first, disregard a.out.
2088 # It will help us diagnose broken compilers, and finding out an intuition
2089 # of exeext.
2090 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094   (eval $ac_link_default) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; then
2098   # Find the output, starting from the most likely.  This scheme is
2099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 # resort.
2101
2102 # Be careful to initialize this variable, since it used to be cached.
2103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 ac_cv_exeext=
2105 # b.out is created by i960 compilers.
2106 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107 do
2108   test -f "$ac_file" || continue
2109   case $ac_file in
2110     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111         ;;
2112     conftest.$ac_ext )
2113         # This is the source file.
2114         ;;
2115     [ab].out )
2116         # We found the default executable, but exeext='' is most
2117         # certainly right.
2118         break;;
2119     *.* )
2120         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121         # FIXME: I believe we export ac_cv_exeext for Libtool,
2122         # but it would be cool to find out if it's true.  Does anybody
2123         # maintain Libtool? --akim.
2124         export ac_cv_exeext
2125         break;;
2126     * )
2127         break;;
2128   esac
2129 done
2130 else
2131   echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&2;}
2138    { (exit 77); exit 77; }; }
2139 fi
2140
2141 ac_exeext=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2144
2145 # Check the compiler produces executables we can run.  If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152   if { ac_try='./$ac_file'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158     cross_compiling=no
2159   else
2160     if test "$cross_compiling" = maybe; then
2161         cross_compiling=yes
2162     else
2163         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&2;}
2169    { (exit 1); exit 1; }; }
2170     fi
2171   fi
2172 fi
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2175
2176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run.  If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2184
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188   (eval $ac_link) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }; then
2192   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2195 # `rm'.
2196 for ac_file in conftest.exe conftest conftest.*; do
2197   test -f "$ac_file" || continue
2198   case $ac_file in
2199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201           export ac_cv_exeext
2202           break;;
2203     * ) break;;
2204   esac
2205 done
2206 else
2207   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 rm -f conftest$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216 echo "${ECHO_T}$ac_cv_exeext" >&6
2217
2218 rm -f conftest.$ac_ext
2219 EXEEXT=$ac_cv_exeext
2220 ac_exeext=$EXEEXT
2221 fi
2222 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2223 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2224 if test "${ac_cv_objext+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h.  */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h.  */
2233
2234 int
2235 main ()
2236 {
2237
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 rm -f conftest.o conftest.obj
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244   (eval $ac_compile) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; then
2248   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2251     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2252        break;;
2253   esac
2254 done
2255 else
2256   echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2262 See \`config.log' for more details." >&2;}
2263    { (exit 1); exit 1; }; }
2264 fi
2265
2266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2267 fi
2268 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2269 echo "${ECHO_T}$ac_cv_objext" >&6
2270 OBJEXT=$ac_cv_objext
2271 ac_objext=$OBJEXT
2272 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h.  */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h.  */
2283
2284 int
2285 main ()
2286 {
2287 #ifndef __GNUC__
2288        choke me
2289 #endif
2290
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 rm -f conftest.$ac_objext
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297   (eval $ac_compile) 2>conftest.er1
2298   ac_status=$?
2299   grep -v '^ *+' conftest.er1 >conftest.err
2300   rm -f conftest.er1
2301   cat conftest.err >&5
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); } &&
2304          { ac_try='test -z "$ac_c_werror_flag"
2305                          || test ! -s conftest.err'
2306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307   (eval $ac_try) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; } &&
2311          { ac_try='test -s conftest.$ac_objext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   ac_compiler_gnu=yes
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 ac_compiler_gnu=no
2323 fi
2324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2326
2327 fi
2328 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2329 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2330 GCC=`test $ac_compiler_gnu = yes && echo yes`
2331 ac_test_CFLAGS=${CFLAGS+set}
2332 ac_save_CFLAGS=$CFLAGS
2333 CFLAGS="-g"
2334 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_g+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345
2346 int
2347 main ()
2348 {
2349
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356   (eval $ac_compile) 2>conftest.er1
2357   ac_status=$?
2358   grep -v '^ *+' conftest.er1 >conftest.err
2359   rm -f conftest.er1
2360   cat conftest.err >&5
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); } &&
2363          { ac_try='test -z "$ac_c_werror_flag"
2364                          || test ! -s conftest.err'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; } &&
2370          { ac_try='test -s conftest.$ac_objext'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; }; then
2376   ac_cv_prog_cc_g=yes
2377 else
2378   echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 ac_cv_prog_cc_g=no
2382 fi
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388   CFLAGS=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390   if test "$GCC" = yes; then
2391     CFLAGS="-g -O2"
2392   else
2393     CFLAGS="-g"
2394   fi
2395 else
2396   if test "$GCC" = yes; then
2397     CFLAGS="-O2"
2398   else
2399     CFLAGS=
2400   fi
2401 fi
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   ac_cv_prog_cc_stdc=no
2408 ac_save_CC=$CC
2409 cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h.  */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h.  */
2415 #include <stdarg.h>
2416 #include <stdio.h>
2417 #include <sys/types.h>
2418 #include <sys/stat.h>
2419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2420 struct buf { int x; };
2421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2422 static char *e (p, i)
2423      char **p;
2424      int i;
2425 {
2426   return p[i];
2427 }
2428 static char *f (char * (*g) (char **, int), char **p, ...)
2429 {
2430   char *s;
2431   va_list v;
2432   va_start (v,p);
2433   s = g (p, va_arg (v,int));
2434   va_end (v);
2435   return s;
2436 }
2437
2438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2439    function prototypes and stuff, but not '\xHH' hex character constants.
2440    These don't provoke an error unfortunately, instead are silently treated
2441    as 'x'.  The following induces an error, until -std1 is added to get
2442    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2443    array size at least.  It's necessary to write '\x00'==0 to get something
2444    that's true only with -std1.  */
2445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2446
2447 int test (int i, double x);
2448 struct s1 {int (*f) (int a);};
2449 struct s2 {int (*f) (double a);};
2450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2451 int argc;
2452 char **argv;
2453 int
2454 main ()
2455 {
2456 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 # Don't try gcc -ansi; that turns off useful extensions and
2462 # breaks some systems' header files.
2463 # AIX                   -qlanglvl=ansi
2464 # Ultrix and OSF/1      -std1
2465 # HP-UX 10.20 and later -Ae
2466 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2467 # SVR4                  -Xc -D__EXTENSIONS__
2468 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2469 do
2470   CC="$ac_save_CC $ac_arg"
2471   rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473   (eval $ac_compile) 2>conftest.er1
2474   ac_status=$?
2475   grep -v '^ *+' conftest.er1 >conftest.err
2476   rm -f conftest.er1
2477   cat conftest.err >&5
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -z "$ac_c_werror_flag"
2481                          || test ! -s conftest.err'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; } &&
2487          { ac_try='test -s conftest.$ac_objext'
2488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489   (eval $ac_try) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; }; then
2493   ac_cv_prog_cc_stdc=$ac_arg
2494 break
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 fi
2500 rm -f conftest.err conftest.$ac_objext
2501 done
2502 rm -f conftest.$ac_ext conftest.$ac_objext
2503 CC=$ac_save_CC
2504
2505 fi
2506
2507 case "x$ac_cv_prog_cc_stdc" in
2508   x|xno)
2509     echo "$as_me:$LINENO: result: none needed" >&5
2510 echo "${ECHO_T}none needed" >&6 ;;
2511   *)
2512     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2513 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2514     CC="$CC $ac_cv_prog_cc_stdc" ;;
2515 esac
2516
2517 # Some people use a C++ compiler to compile C.  Since we use `exit',
2518 # in C++ we need to declare it.  In case someone uses the same compiler
2519 # for both compiling C and C++ we need to have the C++ compiler decide
2520 # the declaration of exit, since it's the most demanding environment.
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #ifndef __cplusplus
2523   choke me
2524 #endif
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528   (eval $ac_compile) 2>conftest.er1
2529   ac_status=$?
2530   grep -v '^ *+' conftest.er1 >conftest.err
2531   rm -f conftest.er1
2532   cat conftest.err >&5
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -z "$ac_c_werror_flag"
2536                          || test ! -s conftest.err'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest.$ac_objext'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548   for ac_declaration in \
2549    '' \
2550    'extern "C" void std::exit (int) throw (); using std::exit;' \
2551    'extern "C" void std::exit (int); using std::exit;' \
2552    'extern "C" void exit (int) throw ();' \
2553    'extern "C" void exit (int);' \
2554    'void exit (int);'
2555 do
2556   cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562 $ac_declaration
2563 #include <stdlib.h>
2564 int
2565 main ()
2566 {
2567 exit (42);
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574   (eval $ac_compile) 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag"
2582                          || test ! -s conftest.err'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   :
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 continue
2600 fi
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602   cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608 $ac_declaration
2609 int
2610 main ()
2611 {
2612 exit (42);
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -z "$ac_c_werror_flag"
2627                          || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   break
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649   echo '#ifdef __cplusplus' >>confdefs.h
2650   echo $ac_declaration      >>confdefs.h
2651   echo '#endif'             >>confdefs.h
2652 fi
2653
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 fi
2659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_ext=c
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665
2666 ac_ext=cc
2667 ac_cpp='$CXXCPP $CPPFLAGS'
2668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2673   do
2674     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_CXX+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   if test -n "$CXX"; then
2682   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689   for ac_exec_ext in '' $ac_executable_extensions; do
2690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696 done
2697
2698 fi
2699 fi
2700 CXX=$ac_cv_prog_CXX
2701 if test -n "$CXX"; then
2702   echo "$as_me:$LINENO: result: $CXX" >&5
2703 echo "${ECHO_T}$CXX" >&6
2704 else
2705   echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2707 fi
2708
2709     test -n "$CXX" && break
2710   done
2711 fi
2712 if test -z "$CXX"; then
2713   ac_ct_CXX=$CXX
2714   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2715 do
2716   # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   if test -n "$ac_ct_CXX"; then
2724   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731   for ac_exec_ext in '' $ac_executable_extensions; do
2732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733     ac_cv_prog_ac_ct_CXX="$ac_prog"
2734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738 done
2739
2740 fi
2741 fi
2742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2743 if test -n "$ac_ct_CXX"; then
2744   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2745 echo "${ECHO_T}$ac_ct_CXX" >&6
2746 else
2747   echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2749 fi
2750
2751   test -n "$ac_ct_CXX" && break
2752 done
2753 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2754
2755   CXX=$ac_ct_CXX
2756 fi
2757
2758
2759 # Provide some information about the compiler.
2760 echo "$as_me:$LINENO:" \
2761      "checking for C++ compiler version" >&5
2762 ac_compiler=`set X $ac_compile; echo $2`
2763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2764   (eval $ac_compiler --version </dev/null >&5) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }
2768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2769   (eval $ac_compiler -v </dev/null >&5) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }
2773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2774   (eval $ac_compiler -V </dev/null >&5) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }
2778
2779 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2780 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2781 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794 #ifndef __GNUC__
2795        choke me
2796 #endif
2797
2798   ;
2799   return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804   (eval $ac_compile) 2>conftest.er1
2805   ac_status=$?
2806   grep -v '^ *+' conftest.er1 >conftest.err
2807   rm -f conftest.er1
2808   cat conftest.err >&5
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); } &&
2811          { ac_try='test -z "$ac_cxx_werror_flag"
2812                          || test ! -s conftest.err'
2813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814   (eval $ac_try) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; } &&
2818          { ac_try='test -s conftest.$ac_objext'
2819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; }; then
2824   ac_compiler_gnu=yes
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 ac_compiler_gnu=no
2830 fi
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2833
2834 fi
2835 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2837 GXX=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CXXFLAGS=${CXXFLAGS+set}
2839 ac_save_CXXFLAGS=$CXXFLAGS
2840 CXXFLAGS="-g"
2841 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2842 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cxx_g+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h.  */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h.  */
2852
2853 int
2854 main ()
2855 {
2856
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_cxx_werror_flag"
2871                          || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   ac_cv_prog_cxx_g=yes
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 ac_cv_prog_cxx_g=no
2889 fi
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 fi
2892 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2893 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2894 if test "$ac_test_CXXFLAGS" = set; then
2895   CXXFLAGS=$ac_save_CXXFLAGS
2896 elif test $ac_cv_prog_cxx_g = yes; then
2897   if test "$GXX" = yes; then
2898     CXXFLAGS="-g -O2"
2899   else
2900     CXXFLAGS="-g"
2901   fi
2902 else
2903   if test "$GXX" = yes; then
2904     CXXFLAGS="-O2"
2905   else
2906     CXXFLAGS=
2907   fi
2908 fi
2909 for ac_declaration in \
2910    '' \
2911    'extern "C" void std::exit (int) throw (); using std::exit;' \
2912    'extern "C" void std::exit (int); using std::exit;' \
2913    'extern "C" void exit (int) throw ();' \
2914    'extern "C" void exit (int);' \
2915    'void exit (int);'
2916 do
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923 $ac_declaration
2924 #include <stdlib.h>
2925 int
2926 main ()
2927 {
2928 exit (42);
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935   (eval $ac_compile) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } &&
2942          { ac_try='test -z "$ac_cxx_werror_flag"
2943                          || test ! -s conftest.err'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   :
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963   cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969 $ac_declaration
2970 int
2971 main ()
2972 {
2973 exit (42);
2974   ;
2975   return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980   (eval $ac_compile) 2>conftest.er1
2981   ac_status=$?
2982   grep -v '^ *+' conftest.er1 >conftest.err
2983   rm -f conftest.er1
2984   cat conftest.err >&5
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); } &&
2987          { ac_try='test -z "$ac_cxx_werror_flag"
2988                          || test ! -s conftest.err'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; } &&
2994          { ac_try='test -s conftest.$ac_objext'
2995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996   (eval $ac_try) 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); }; }; then
3000   break
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 fi
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 done
3008 rm -f conftest*
3009 if test -n "$ac_declaration"; then
3010   echo '#ifdef __cplusplus' >>confdefs.h
3011   echo $ac_declaration      >>confdefs.h
3012   echo '#endif'             >>confdefs.h
3013 fi
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3021 CXXFLAGS="$save_CXXFLAGS"
3022
3023
3024
3025
3026
3027 am__api_version="1.9"
3028 # Find a good install program.  We prefer a C program (faster),
3029 # so one script is as good as another.  But avoid the broken or
3030 # incompatible versions:
3031 # SysV /etc/install, /usr/sbin/install
3032 # SunOS /usr/etc/install
3033 # IRIX /sbin/install
3034 # AIX /bin/install
3035 # AmigaOS /C/install, which installs bootblocks on floppy discs
3036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3039 # OS/2's system install, which has a completely different semantic
3040 # ./install, which can be erroneously created by make from ./install.sh.
3041 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3043 if test -z "$INSTALL"; then
3044 if test "${ac_cv_path_install+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052   # Account for people who put trailing slashes in PATH elements.
3053 case $as_dir/ in
3054   ./ | .// | /cC/* | \
3055   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3056   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3057   /usr/ucb/* ) ;;
3058   *)
3059     # OSF1 and SCO ODT 3.0 have their own names for install.
3060     # Don't use installbsd from OSF since it installs stuff as root
3061     # by default.
3062     for ac_prog in ginstall scoinst install; do
3063       for ac_exec_ext in '' $ac_executable_extensions; do
3064         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3065           if test $ac_prog = install &&
3066             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3067             # AIX install.  It has an incompatible calling convention.
3068             :
3069           elif test $ac_prog = install &&
3070             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3071             # program-specific install script used by HP pwplus--don't use.
3072             :
3073           else
3074             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3075             break 3
3076           fi
3077         fi
3078       done
3079     done
3080     ;;
3081 esac
3082 done
3083
3084
3085 fi
3086   if test "${ac_cv_path_install+set}" = set; then
3087     INSTALL=$ac_cv_path_install
3088   else
3089     # As a last resort, use the slow shell script.  We don't cache a
3090     # path for INSTALL within a source directory, because that will
3091     # break other packages using the cache if that directory is
3092     # removed, or if the path is relative.
3093     INSTALL=$ac_install_sh
3094   fi
3095 fi
3096 echo "$as_me:$LINENO: result: $INSTALL" >&5
3097 echo "${ECHO_T}$INSTALL" >&6
3098
3099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3100 # It thinks the first close brace ends the variable substitution.
3101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3102
3103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3104
3105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3106
3107 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3109 # Just in case
3110 sleep 1
3111 echo timestamp > conftest.file
3112 # Do `set' in a subshell so we don't clobber the current shell's
3113 # arguments.  Must try -L first in case configure is actually a
3114 # symlink; some systems play weird games with the mod time of symlinks
3115 # (eg FreeBSD returns the mod time of the symlink's containing
3116 # directory).
3117 if (
3118    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3119    if test "$*" = "X"; then
3120       # -L didn't work.
3121       set X `ls -t $srcdir/configure conftest.file`
3122    fi
3123    rm -f conftest.file
3124    if test "$*" != "X $srcdir/configure conftest.file" \
3125       && test "$*" != "X conftest.file $srcdir/configure"; then
3126
3127       # If neither matched, then we have a broken ls.  This can happen
3128       # if, for instance, CONFIG_SHELL is bash and it inherits a
3129       # broken ls alias from the environment.  This has actually
3130       # happened.  Such a system could not be considered "sane".
3131       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3132 alias in your environment" >&5
3133 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3134 alias in your environment" >&2;}
3135    { (exit 1); exit 1; }; }
3136    fi
3137
3138    test "$2" = conftest.file
3139    )
3140 then
3141    # Ok.
3142    :
3143 else
3144    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3145 Check your system clock" >&5
3146 echo "$as_me: error: newly created file is older than distributed files!
3147 Check your system clock" >&2;}
3148    { (exit 1); exit 1; }; }
3149 fi
3150 echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3152 test "$program_prefix" != NONE &&
3153   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE &&
3156   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3157 # Double any \ or $.  echo might interpret backslashes.
3158 # By default was `s,x,x', remove it if useless.
3159 cat <<\_ACEOF >conftest.sed
3160 s/[\\$]/&&/g;s/;s,x,x,$//
3161 _ACEOF
3162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3163 rm conftest.sed
3164
3165 # expand $ac_aux_dir to an absolute path
3166 am_aux_dir=`cd $ac_aux_dir && pwd`
3167
3168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3169 # Use eval to expand $SHELL
3170 if eval "$MISSING --run true"; then
3171   am_missing_run="$MISSING --run "
3172 else
3173   am_missing_run=
3174   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3176 fi
3177
3178 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3179   # We used to keeping the `.' as first argument, in order to
3180   # allow $(mkdir_p) to be used without argument.  As in
3181   #   $(mkdir_p) $(somedir)
3182   # where $(somedir) is conditionally defined.  However this is wrong
3183   # for two reasons:
3184   #  1. if the package is installed by a user who cannot write `.'
3185   #     make install will fail,
3186   #  2. the above comment should most certainly read
3187   #     $(mkdir_p) $(DESTDIR)$(somedir)
3188   #     so it does not work when $(somedir) is undefined and
3189   #     $(DESTDIR) is not.
3190   #  To support the latter case, we have to write
3191   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3192   #  so the `.' trick is pointless.
3193   mkdir_p='mkdir -p --'
3194 else
3195   # On NextStep and OpenStep, the `mkdir' command does not
3196   # recognize any option.  It will interpret all options as
3197   # directories to create, and then abort because `.' already
3198   # exists.
3199   for d in ./-p ./--version;
3200   do
3201     test -d $d && rmdir $d
3202   done
3203   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3204   if test -f "$ac_aux_dir/mkinstalldirs"; then
3205     mkdir_p='$(mkinstalldirs)'
3206   else
3207     mkdir_p='$(install_sh) -d'
3208   fi
3209 fi
3210
3211 for ac_prog in gawk mawk nawk awk
3212 do
3213   # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy $ac_prog; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_AWK+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   if test -n "$AWK"; then
3221   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   for ac_exec_ext in '' $ac_executable_extensions; do
3229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_prog_AWK="$ac_prog"
3231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235 done
3236
3237 fi
3238 fi
3239 AWK=$ac_cv_prog_AWK
3240 if test -n "$AWK"; then
3241   echo "$as_me:$LINENO: result: $AWK" >&5
3242 echo "${ECHO_T}$AWK" >&6
3243 else
3244   echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3246 fi
3247
3248   test -n "$AWK" && break
3249 done
3250
3251 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3252 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3253 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3254 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   cat >conftest.make <<\_ACEOF
3258 all:
3259         @echo 'ac_maketemp="$(MAKE)"'
3260 _ACEOF
3261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3262 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3263 if test -n "$ac_maketemp"; then
3264   eval ac_cv_prog_make_${ac_make}_set=yes
3265 else
3266   eval ac_cv_prog_make_${ac_make}_set=no
3267 fi
3268 rm -f conftest.make
3269 fi
3270 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3271   echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3273   SET_MAKE=
3274 else
3275   echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277   SET_MAKE="MAKE=${MAKE-make}"
3278 fi
3279
3280 rm -rf .tst 2>/dev/null
3281 mkdir .tst 2>/dev/null
3282 if test -d .tst; then
3283   am__leading_dot=.
3284 else
3285   am__leading_dot=_
3286 fi
3287 rmdir .tst 2>/dev/null
3288
3289 DEPDIR="${am__leading_dot}deps"
3290
3291           ac_config_commands="$ac_config_commands depfiles"
3292
3293
3294 am_make=${MAKE-make}
3295 cat > confinc << 'END'
3296 am__doit:
3297         @echo done
3298 .PHONY: am__doit
3299 END
3300 # If we don't find an include directive, just comment out the code.
3301 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3302 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3303 am__include="#"
3304 am__quote=
3305 _am_result=none
3306 # First try GNU make style include.
3307 echo "include confinc" > confmf
3308 # We grep out `Entering directory' and `Leaving directory'
3309 # messages which can occur if `w' ends up in MAKEFLAGS.
3310 # In particular we don't look at `^make:' because GNU make might
3311 # be invoked under some other name (usually "gmake"), in which
3312 # case it prints its new name instead of `make'.
3313 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3314    am__include=include
3315    am__quote=
3316    _am_result=GNU
3317 fi
3318 # Now try BSD make style include.
3319 if test "$am__include" = "#"; then
3320    echo '.include "confinc"' > confmf
3321    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3322       am__include=.include
3323       am__quote="\""
3324       _am_result=BSD
3325    fi
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: result: $_am_result" >&5
3330 echo "${ECHO_T}$_am_result" >&6
3331 rm -f confinc confmf
3332
3333 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3334 if test "${enable_dependency_tracking+set}" = set; then
3335   enableval="$enable_dependency_tracking"
3336
3337 fi;
3338 if test "x$enable_dependency_tracking" != xno; then
3339   am_depcomp="$ac_aux_dir/depcomp"
3340   AMDEPBACKSLASH='\'
3341 fi
3342
3343
3344 if test "x$enable_dependency_tracking" != xno; then
3345   AMDEP_TRUE=
3346   AMDEP_FALSE='#'
3347 else
3348   AMDEP_TRUE='#'
3349   AMDEP_FALSE=
3350 fi
3351
3352
3353
3354 # test to see if srcdir already configured
3355 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3356    test -f $srcdir/config.status; then
3357   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3358 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3359    { (exit 1); exit 1; }; }
3360 fi
3361
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364   if (cygpath --version) >/dev/null 2>/dev/null; then
3365     CYGPATH_W='cygpath -w'
3366   else
3367     CYGPATH_W=echo
3368   fi
3369 fi
3370
3371
3372 # Define the identity of the package.
3373  PACKAGE='libjava'
3374  VERSION='version-unused'
3375
3376
3377 cat >>confdefs.h <<_ACEOF
3378 #define PACKAGE "$PACKAGE"
3379 _ACEOF
3380
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define VERSION "$VERSION"
3384 _ACEOF
3385
3386 # Some tools Automake needs.
3387
3388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3389
3390
3391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3392
3393
3394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3395
3396
3397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3398
3399
3400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3401
3402 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3403
3404 # Installed binaries are usually stripped using `strip' when the user
3405 # run `make install-strip'.  However `strip' might not be the right
3406 # tool to use in cross-compilation environments, therefore Automake
3407 # will honor the `STRIP' environment variable to overrule this program.
3408 if test "$cross_compiling" != no; then
3409   if test -n "$ac_tool_prefix"; then
3410   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}strip; ac_word=$2
3412 echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_STRIP+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   if test -n "$STRIP"; then
3418   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423   IFS=$as_save_IFS
3424   test -z "$as_dir" && as_dir=.
3425   for ac_exec_ext in '' $ac_executable_extensions; do
3426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429     break 2
3430   fi
3431 done
3432 done
3433
3434 fi
3435 fi
3436 STRIP=$ac_cv_prog_STRIP
3437 if test -n "$STRIP"; then
3438   echo "$as_me:$LINENO: result: $STRIP" >&5
3439 echo "${ECHO_T}$STRIP" >&6
3440 else
3441   echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 fi
3444
3445 fi
3446 if test -z "$ac_cv_prog_STRIP"; then
3447   ac_ct_STRIP=$STRIP
3448   # Extract the first word of "strip", so it can be a program name with args.
3449 set dummy strip; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   if test -n "$ac_ct_STRIP"; then
3456   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463   for ac_exec_ext in '' $ac_executable_extensions; do
3464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465     ac_cv_prog_ac_ct_STRIP="strip"
3466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470 done
3471
3472   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3473 fi
3474 fi
3475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3476 if test -n "$ac_ct_STRIP"; then
3477   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3478 echo "${ECHO_T}$ac_ct_STRIP" >&6
3479 else
3480   echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482 fi
3483
3484   STRIP=$ac_ct_STRIP
3485 else
3486   STRIP="$ac_cv_prog_STRIP"
3487 fi
3488
3489 fi
3490 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3491
3492 # We need awk for the "check" target.  The system "awk" is bad on
3493 # some platforms.
3494 # Always define AMTAR for backward compatibility.
3495
3496 AMTAR=${AMTAR-"${am_missing_run}tar"}
3497
3498 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3499
3500
3501
3502
3503 depcc="$CC"   am_compiler_list=
3504
3505 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3506 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3507 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3511   # We make a subdir and do the tests there.  Otherwise we can end up
3512   # making bogus files that we don't know about and never remove.  For
3513   # instance it was reported that on HP-UX the gcc test will end up
3514   # making a dummy file named `D' -- because `-MD' means `put the output
3515   # in D'.
3516   mkdir conftest.dir
3517   # Copy depcomp to subdir because otherwise we won't find it if we're
3518   # using a relative directory.
3519   cp "$am_depcomp" conftest.dir
3520   cd conftest.dir
3521   # We will build objects and dependencies in a subdirectory because
3522   # it helps to detect inapplicable dependency modes.  For instance
3523   # both Tru64's cc and ICC support -MD to output dependencies as a
3524   # side effect of compilation, but ICC will put the dependencies in
3525   # the current directory while Tru64 will put them in the object
3526   # directory.
3527   mkdir sub
3528
3529   am_cv_CC_dependencies_compiler_type=none
3530   if test "$am_compiler_list" = ""; then
3531      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3532   fi
3533   for depmode in $am_compiler_list; do
3534     # Setup a source with many dependencies, because some compilers
3535     # like to wrap large dependency lists on column 80 (with \), and
3536     # we should not choose a depcomp mode which is confused by this.
3537     #
3538     # We need to recreate these files for each test, as the compiler may
3539     # overwrite some of them when testing with obscure command lines.
3540     # This happens at least with the AIX C compiler.
3541     : > sub/conftest.c
3542     for i in 1 2 3 4 5 6; do
3543       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3544       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3545       # Solaris 8's {/usr,}/bin/sh.
3546       touch sub/conftst$i.h
3547     done
3548     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3549
3550     case $depmode in
3551     nosideeffect)
3552       # after this tag, mechanisms are not by side-effect, so they'll
3553       # only be used when explicitly requested
3554       if test "x$enable_dependency_tracking" = xyes; then
3555         continue
3556       else
3557         break
3558       fi
3559       ;;
3560     none) break ;;
3561     esac
3562     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3563     # mode.  It turns out that the SunPro C++ compiler does not properly
3564     # handle `-M -o', and we need to detect this.
3565     if depmode=$depmode \
3566        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3567        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3568        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3569          >/dev/null 2>conftest.err &&
3570        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3571        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3572        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3573       # icc doesn't choke on unknown options, it will just issue warnings
3574       # or remarks (even with -Werror).  So we grep stderr for any message
3575       # that says an option was ignored or not supported.
3576       # When given -MP, icc 7.0 and 7.1 complain thusly:
3577       #   icc: Command line warning: ignoring option '-M'; no argument required
3578       # The diagnosis changed in icc 8.0:
3579       #   icc: Command line remark: option '-MP' not supported
3580       if (grep 'ignoring option' conftest.err ||
3581           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3582         am_cv_CC_dependencies_compiler_type=$depmode
3583         break
3584       fi
3585     fi
3586   done
3587
3588   cd ..
3589   rm -rf conftest.dir
3590 else
3591   am_cv_CC_dependencies_compiler_type=none
3592 fi
3593
3594 fi
3595 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3596 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3598
3599
3600
3601 if
3602   test "x$enable_dependency_tracking" != xno \
3603   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604   am__fastdepCC_TRUE=
3605   am__fastdepCC_FALSE='#'
3606 else
3607   am__fastdepCC_TRUE='#'
3608   am__fastdepCC_FALSE=
3609 fi
3610
3611
3612 depcc="$CXX"  am_compiler_list=
3613
3614 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3615 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3616 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3620   # We make a subdir and do the tests there.  Otherwise we can end up
3621   # making bogus files that we don't know about and never remove.  For
3622   # instance it was reported that on HP-UX the gcc test will end up
3623   # making a dummy file named `D' -- because `-MD' means `put the output
3624   # in D'.
3625   mkdir conftest.dir
3626   # Copy depcomp to subdir because otherwise we won't find it if we're
3627   # using a relative directory.
3628   cp "$am_depcomp" conftest.dir
3629   cd conftest.dir
3630   # We will build objects and dependencies in a subdirectory because
3631   # it helps to detect inapplicable dependency modes.  For instance
3632   # both Tru64's cc and ICC support -MD to output dependencies as a
3633   # side effect of compilation, but ICC will put the dependencies in
3634   # the current directory while Tru64 will put them in the object
3635   # directory.
3636   mkdir sub
3637
3638   am_cv_CXX_dependencies_compiler_type=none
3639   if test "$am_compiler_list" = ""; then
3640      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641   fi
3642   for depmode in $am_compiler_list; do
3643     # Setup a source with many dependencies, because some compilers
3644     # like to wrap large dependency lists on column 80 (with \), and
3645     # we should not choose a depcomp mode which is confused by this.
3646     #
3647     # We need to recreate these files for each test, as the compiler may
3648     # overwrite some of them when testing with obscure command lines.
3649     # This happens at least with the AIX C compiler.
3650     : > sub/conftest.c
3651     for i in 1 2 3 4 5 6; do
3652       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3654       # Solaris 8's {/usr,}/bin/sh.
3655       touch sub/conftst$i.h
3656     done
3657     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3658
3659     case $depmode in
3660     nosideeffect)
3661       # after this tag, mechanisms are not by side-effect, so they'll
3662       # only be used when explicitly requested
3663       if test "x$enable_dependency_tracking" = xyes; then
3664         continue
3665       else
3666         break
3667       fi
3668       ;;
3669     none) break ;;
3670     esac
3671     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3672     # mode.  It turns out that the SunPro C++ compiler does not properly
3673     # handle `-M -o', and we need to detect this.
3674     if depmode=$depmode \
3675        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3676        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3677        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3678          >/dev/null 2>conftest.err &&
3679        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3680        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3681        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3682       # icc doesn't choke on unknown options, it will just issue warnings
3683       # or remarks (even with -Werror).  So we grep stderr for any message
3684       # that says an option was ignored or not supported.
3685       # When given -MP, icc 7.0 and 7.1 complain thusly:
3686       #   icc: Command line warning: ignoring option '-M'; no argument required
3687       # The diagnosis changed in icc 8.0:
3688       #   icc: Command line remark: option '-MP' not supported
3689       if (grep 'ignoring option' conftest.err ||
3690           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3691         am_cv_CXX_dependencies_compiler_type=$depmode
3692         break
3693       fi
3694     fi
3695   done
3696
3697   cd ..
3698   rm -rf conftest.dir
3699 else
3700   am_cv_CXX_dependencies_compiler_type=none
3701 fi
3702
3703 fi
3704 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3705 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3706 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3707
3708
3709
3710 if
3711   test "x$enable_dependency_tracking" != xno \
3712   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3713   am__fastdepCXX_TRUE=
3714   am__fastdepCXX_FALSE='#'
3715 else
3716   am__fastdepCXX_TRUE='#'
3717   am__fastdepCXX_FALSE=
3718 fi
3719
3720
3721
3722
3723 if test -n "$ac_tool_prefix"; then
3724   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3725 set dummy ${ac_tool_prefix}as; ac_word=$2
3726 echo "$as_me:$LINENO: checking for $ac_word" >&5
3727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3728 if test "${ac_cv_prog_AS+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   if test -n "$AS"; then
3732   ac_cv_prog_AS="$AS" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737   IFS=$as_save_IFS
3738   test -z "$as_dir" && as_dir=.
3739   for ac_exec_ext in '' $ac_executable_extensions; do
3740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741     ac_cv_prog_AS="${ac_tool_prefix}as"
3742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743     break 2
3744   fi
3745 done
3746 done
3747
3748 fi
3749 fi
3750 AS=$ac_cv_prog_AS
3751 if test -n "$AS"; then
3752   echo "$as_me:$LINENO: result: $AS" >&5
3753 echo "${ECHO_T}$AS" >&6
3754 else
3755   echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757 fi
3758
3759 fi
3760 if test -z "$ac_cv_prog_AS"; then
3761   ac_ct_AS=$AS
3762   # Extract the first word of "as", so it can be a program name with args.
3763 set dummy as; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   if test -n "$ac_ct_AS"; then
3770   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777   for ac_exec_ext in '' $ac_executable_extensions; do
3778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779     ac_cv_prog_ac_ct_AS="as"
3780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781     break 2
3782   fi
3783 done
3784 done
3785
3786 fi
3787 fi
3788 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3789 if test -n "$ac_ct_AS"; then
3790   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3791 echo "${ECHO_T}$ac_ct_AS" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797   AS=$ac_ct_AS
3798 else
3799   AS="$ac_cv_prog_AS"
3800 fi
3801
3802 if test -n "$ac_tool_prefix"; then
3803   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}ld; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_LD+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   if test -n "$LD"; then
3811   ac_cv_prog_LD="$LD" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_prog_LD="${ac_tool_prefix}ld"
3821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825 done
3826
3827 fi
3828 fi
3829 LD=$ac_cv_prog_LD
3830 if test -n "$LD"; then
3831   echo "$as_me:$LINENO: result: $LD" >&5
3832 echo "${ECHO_T}$LD" >&6
3833 else
3834   echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 fi
3837
3838 fi
3839 if test -z "$ac_cv_prog_LD"; then
3840   ac_ct_LD=$LD
3841   # Extract the first word of "ld", so it can be a program name with args.
3842 set dummy ld; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   if test -n "$ac_ct_LD"; then
3849   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856   for ac_exec_ext in '' $ac_executable_extensions; do
3857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     ac_cv_prog_ac_ct_LD="ld"
3859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863 done
3864
3865 fi
3866 fi
3867 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3868 if test -n "$ac_ct_LD"; then
3869   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3870 echo "${ECHO_T}$ac_ct_LD" >&6
3871 else
3872   echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874 fi
3875
3876   LD=$ac_ct_LD
3877 else
3878   LD="$ac_cv_prog_LD"
3879 fi
3880
3881 if test -n "$ac_tool_prefix"; then
3882   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}ar; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_AR+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   if test -n "$AR"; then
3890   ac_cv_prog_AR="$AR" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897   for ac_exec_ext in '' $ac_executable_extensions; do
3898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899     ac_cv_prog_AR="${ac_tool_prefix}ar"
3900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901     break 2
3902   fi
3903 done
3904 done
3905
3906 fi
3907 fi
3908 AR=$ac_cv_prog_AR
3909 if test -n "$AR"; then
3910   echo "$as_me:$LINENO: result: $AR" >&5
3911 echo "${ECHO_T}$AR" >&6
3912 else
3913   echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 fi
3916
3917 fi
3918 if test -z "$ac_cv_prog_AR"; then
3919   ac_ct_AR=$AR
3920   # Extract the first word of "ar", so it can be a program name with args.
3921 set dummy ar; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   if test -n "$ac_ct_AR"; then
3928   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935   for ac_exec_ext in '' $ac_executable_extensions; do
3936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_prog_ac_ct_AR="ar"
3938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942 done
3943
3944 fi
3945 fi
3946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3947 if test -n "$ac_ct_AR"; then
3948   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3949 echo "${ECHO_T}$ac_ct_AR" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3953 fi
3954
3955   AR=$ac_ct_AR
3956 else
3957   AR="$ac_cv_prog_AR"
3958 fi
3959
3960 if test -n "$ac_tool_prefix"; then
3961   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_RANLIB+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if test -n "$RANLIB"; then
3969   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985 fi
3986 fi
3987 RANLIB=$ac_cv_prog_RANLIB
3988 if test -n "$RANLIB"; then
3989   echo "$as_me:$LINENO: result: $RANLIB" >&5
3990 echo "${ECHO_T}$RANLIB" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996 fi
3997 if test -z "$ac_cv_prog_RANLIB"; then
3998   ac_ct_RANLIB=$RANLIB
3999   # Extract the first word of "ranlib", so it can be a program name with args.
4000 set dummy ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if test -n "$ac_ct_RANLIB"; then
4007   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_ac_ct_RANLIB="ranlib"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4024 fi
4025 fi
4026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027 if test -n "$ac_ct_RANLIB"; then
4028   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4030 else
4031   echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033 fi
4034
4035   RANLIB=$ac_ct_RANLIB
4036 else
4037   RANLIB="$ac_cv_prog_RANLIB"
4038 fi
4039
4040 for ac_prog in gawk mawk nawk awk
4041 do
4042   # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_AWK+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test -n "$AWK"; then
4050   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_exec_ext in '' $ac_executable_extensions; do
4058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059     ac_cv_prog_AWK="$ac_prog"
4060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064 done
4065
4066 fi
4067 fi
4068 AWK=$ac_cv_prog_AWK
4069 if test -n "$AWK"; then
4070   echo "$as_me:$LINENO: result: $AWK" >&5
4071 echo "${ECHO_T}$AWK" >&6
4072 else
4073   echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4075 fi
4076
4077   test -n "$AWK" && break
4078 done
4079
4080 for ac_prog in jar fastjar gjar
4081 do
4082   # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_JAR+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$JAR"; then
4090   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_JAR="$ac_prog"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 JAR=$ac_cv_prog_JAR
4109 if test -n "$JAR"; then
4110   echo "$as_me:$LINENO: result: $JAR" >&5
4111 echo "${ECHO_T}$JAR" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117   test -n "$JAR" && break
4118 done
4119 test -n "$JAR" || JAR="no"
4120
4121 # Extract the first word of "zip", so it can be a program name with args.
4122 set dummy zip; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_path_ZIP+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   case $ZIP in
4129   [\\/]* | ?:[\\/]*)
4130   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4131   ;;
4132   *)
4133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_exec_ext in '' $ac_executable_extensions; do
4139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142     break 2
4143   fi
4144 done
4145 done
4146
4147   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4148   ;;
4149 esac
4150 fi
4151 ZIP=$ac_cv_path_ZIP
4152
4153 if test -n "$ZIP"; then
4154   echo "$as_me:$LINENO: result: $ZIP" >&5
4155 echo "${ECHO_T}$ZIP" >&6
4156 else
4157   echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4159 fi
4160
4161 # Extract the first word of "unzip", so it can be a program name with args.
4162 set dummy unzip; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_path_UNZIP+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   case $UNZIP in
4169   [\\/]* | ?:[\\/]*)
4170   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4171   ;;
4172   *)
4173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185 done
4186
4187   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4188   ;;
4189 esac
4190 fi
4191 UNZIP=$ac_cv_path_UNZIP
4192
4193 if test -n "$UNZIP"; then
4194   echo "$as_me:$LINENO: result: $UNZIP" >&5
4195 echo "${ECHO_T}$UNZIP" >&6
4196 else
4197   echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201 # Prefer the jar we found, but fall back to our jar script.
4202 if test "$JAR" = no; then
4203   if test "$ZIP" = no; then
4204     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4205 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4206    { (exit 1); exit 1; }; }
4207   else
4208     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4209     JAR=`pwd`/scripts/jar
4210   fi
4211 fi
4212
4213 # Find a good install program.  We prefer a C program (faster),
4214 # so one script is as good as another.  But avoid the broken or
4215 # incompatible versions:
4216 # SysV /etc/install, /usr/sbin/install
4217 # SunOS /usr/etc/install
4218 # IRIX /sbin/install
4219 # AIX /bin/install
4220 # AmigaOS /C/install, which installs bootblocks on floppy discs
4221 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4224 # OS/2's system install, which has a completely different semantic
4225 # ./install, which can be erroneously created by make from ./install.sh.
4226 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4227 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4228 if test -z "$INSTALL"; then
4229 if test "${ac_cv_path_install+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235   IFS=$as_save_IFS
4236   test -z "$as_dir" && as_dir=.
4237   # Account for people who put trailing slashes in PATH elements.
4238 case $as_dir/ in
4239   ./ | .// | /cC/* | \
4240   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4241   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4242   /usr/ucb/* ) ;;
4243   *)
4244     # OSF1 and SCO ODT 3.0 have their own names for install.
4245     # Don't use installbsd from OSF since it installs stuff as root
4246     # by default.
4247     for ac_prog in ginstall scoinst install; do
4248       for ac_exec_ext in '' $ac_executable_extensions; do
4249         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4250           if test $ac_prog = install &&
4251             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4252             # AIX install.  It has an incompatible calling convention.
4253             :
4254           elif test $ac_prog = install &&
4255             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4256             # program-specific install script used by HP pwplus--don't use.
4257             :
4258           else
4259             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4260             break 3
4261           fi
4262         fi
4263       done
4264     done
4265     ;;
4266 esac
4267 done
4268
4269
4270 fi
4271   if test "${ac_cv_path_install+set}" = set; then
4272     INSTALL=$ac_cv_path_install
4273   else
4274     # As a last resort, use the slow shell script.  We don't cache a
4275     # path for INSTALL within a source directory, because that will
4276     # break other packages using the cache if that directory is
4277     # removed, or if the path is relative.
4278     INSTALL=$ac_install_sh
4279   fi
4280 fi
4281 echo "$as_me:$LINENO: result: $INSTALL" >&5
4282 echo "${ECHO_T}$INSTALL" >&6
4283
4284 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4285 # It thinks the first close brace ends the variable substitution.
4286 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4287
4288 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4289
4290 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4291
4292
4293 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4294 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4295     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4296 if test "${enable_maintainer_mode+set}" = set; then
4297   enableval="$enable_maintainer_mode"
4298   USE_MAINTAINER_MODE=$enableval
4299 else
4300   USE_MAINTAINER_MODE=no
4301 fi;
4302   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4303 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4304
4305
4306 if test $USE_MAINTAINER_MODE = yes; then
4307   MAINTAINER_MODE_TRUE=
4308   MAINTAINER_MODE_FALSE='#'
4309 else
4310   MAINTAINER_MODE_TRUE='#'
4311   MAINTAINER_MODE_FALSE=
4312 fi
4313
4314   MAINT=$MAINTAINER_MODE_TRUE
4315
4316
4317
4318
4319
4320 # configure.host sets the following important variables
4321 #       libgcj_cflags    - host specific C compiler flags
4322 #       libgcj_cxxflags  - host specific C++ compiler flags
4323 #       libgcj_javaflags - host specific Java compiler flags
4324
4325 libgcj_cflags=
4326 libgcj_cxxflags=
4327 libgcj_javaflags=
4328
4329 . ${srcdir}/configure.host
4330
4331 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4332 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4333 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4337 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4338   acl_cv_prog_gnu_ld=yes
4339 else
4340   acl_cv_prog_gnu_ld=no
4341 fi
4342 fi
4343 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4344 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4345 with_gnu_ld=$acl_cv_prog_gnu_ld
4346
4347 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4348 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4349 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352
4353 acl_cv_prog_gnu_ld_symbolic=no
4354
4355 if test x"$with_gnu_ld" = x"yes"; then
4356   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4357     acl_cv_prog_gnu_ld_symbolic=yes
4358   fi
4359 fi
4360 fi
4361 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4362 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4363 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4364   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4365 else
4366   SYMBOLIC_LDFLAGS=''
4367 fi
4368
4369 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4370 if test -z "$libgcj_ld_symbolic"; then
4371   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4372 fi
4373
4374 LIBGCJ_CFLAGS="${libgcj_cflags}"
4375 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4376 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4377 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4378 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4379
4380
4381
4382
4383
4384
4385 # Only use libltdl for non-newlib builds.
4386 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4387    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4388 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4389 library_names_spec=
4390 libname_spec='lib$name'
4391 soname_spec=
4392 shrext=".so"
4393 postinstall_cmds=
4394 postuninstall_cmds=
4395 finish_cmds=
4396 finish_eval=
4397 shlibpath_var=
4398 shlibpath_overrides_runpath=unknown
4399 version_type=none
4400 dynamic_linker="$host_os ld.so"
4401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4402 if test "$GCC" = yes; then
4403   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4404   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4405     # if the path contains ";" then we assume it to be the separator
4406     # otherwise default to the standard path separator (i.e. ":") - it is
4407     # assumed that no part of a normal pathname contains ";" but that should
4408     # okay in the real world where ";" in dirpaths is itself problematic.
4409     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4410   else
4411     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4412   fi
4413 else
4414   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4415 fi
4416 need_lib_prefix=unknown
4417 hardcode_into_libs=no
4418
4419 # when you set need_version to no, make sure it does not cause -set_version
4420 # flags to be left without arguments
4421 need_version=unknown
4422
4423 case $host_os in
4424 aix3*)
4425   version_type=linux
4426   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4427   shlibpath_var=LIBPATH
4428
4429   # AIX 3 has no versioning support, so we append a major version to the name.
4430   soname_spec='${libname}${release}${shared_ext}$major'
4431   ;;
4432
4433 aix4* | aix5*)
4434   version_type=linux
4435   need_lib_prefix=no
4436   need_version=no
4437   hardcode_into_libs=yes
4438   if test "$host_cpu" = ia64; then
4439     # AIX 5 supports IA64
4440     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4441     shlibpath_var=LD_LIBRARY_PATH
4442   else
4443     # With GCC up to 2.95.x, collect2 would create an import file
4444     # for dependence libraries.  The import file would start with
4445     # the line `#! .'.  This would cause the generated library to
4446     # depend on `.', always an invalid library.  This was fixed in
4447     # development snapshots of GCC prior to 3.0.
4448     case $host_os in
4449       aix4 | aix4.[01] | aix4.[01].*)
4450       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4451            echo ' yes '
4452            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4453         :
4454       else
4455         can_build_shared=no
4456       fi
4457       ;;
4458     esac
4459     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4460     # soname into executable. Probably we can add versioning support to
4461     # collect2, so additional links can be useful in future.
4462     if test "$aix_use_runtimelinking" = yes; then
4463       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4464       # instead of lib<name>.a to let people know that these are not
4465       # typical AIX shared libraries.
4466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4467     else
4468       # We preserve .a as extension for shared libraries through AIX4.2
4469       # and later when we are not doing run time linking.
4470       library_names_spec='${libname}${release}.a $libname.a'
4471       soname_spec='${libname}${release}${shared_ext}$major'
4472     fi
4473     shlibpath_var=LIBPATH
4474   fi
4475   ;;
4476
4477 amigaos*)
4478   library_names_spec='$libname.ixlibrary $libname.a'
4479   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4480   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4481   ;;
4482
4483 beos*)
4484   library_names_spec='${libname}${shared_ext}'
4485   dynamic_linker="$host_os ld.so"
4486   shlibpath_var=LIBRARY_PATH
4487   ;;
4488
4489 bsdi4*)
4490   version_type=linux
4491   need_version=no
4492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4493   soname_spec='${libname}${release}${shared_ext}$major'
4494   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4495   shlibpath_var=LD_LIBRARY_PATH
4496   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4497   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4498   # the default ld.so.conf also contains /usr/contrib/lib and
4499   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4500   # libtool to hard-code these into programs
4501   ;;
4502
4503 cygwin* | mingw* | pw32*)
4504   version_type=windows
4505   shrext=".dll"
4506   need_version=no
4507   need_lib_prefix=no
4508
4509   case $GCC,$host_os in
4510   yes,cygwin* | yes,mingw* | yes,pw32*)
4511     library_names_spec='$libname.dll.a'
4512     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4513     postinstall_cmds='base_file=`basename \${file}`~
4514       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4515       dldir=$destdir/`dirname \$dlpath`~
4516       test -d \$dldir || mkdir -p \$dldir~
4517       $install_prog $dir/$dlname \$dldir/$dlname'
4518     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4519       dlpath=$dir/\$dldll~
4520        $rm \$dlpath'
4521     shlibpath_overrides_runpath=yes
4522
4523     case $host_os in
4524     cygwin*)
4525       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4526       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4527       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4528       ;;
4529     mingw*)
4530       # MinGW DLLs use traditional 'lib' prefix
4531       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4532       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4533       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4534         # It is most probably a Windows format PATH printed by
4535         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4536         # path with ; separators, and with drive letters. We can handle the
4537         # drive letters (cygwin fileutils understands them), so leave them,
4538         # especially as we might pass files found there to a mingw objdump,
4539         # which wouldn't understand a cygwinified path. Ahh.
4540         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4541       else
4542         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4543       fi
4544       ;;
4545     pw32*)
4546       # pw32 DLLs use 'pw' prefix rather than 'lib'
4547       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4548       ;;
4549     esac
4550     ;;
4551
4552   *)
4553     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4554     ;;
4555   esac
4556   dynamic_linker='Win32 ld.exe'
4557   # FIXME: first we should search . and the directory the executable is in
4558   shlibpath_var=PATH
4559   ;;
4560
4561 darwin* | rhapsody*)
4562   dynamic_linker="$host_os dyld"
4563   version_type=darwin
4564   need_lib_prefix=no
4565   need_version=no
4566   # FIXME: Relying on posixy $() will cause problems for
4567   #        cross-compilation, but unfortunately the echo tests do not
4568   #        yet detect zsh echo's removal of \ escapes.
4569   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4570   soname_spec='${libname}${release}${major}$shared_ext'
4571   shlibpath_overrides_runpath=yes
4572   shlibpath_var=DYLD_LIBRARY_PATH
4573   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4574   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4575   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4576   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4577   fi
4578   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4579   ;;
4580
4581 dgux*)
4582   version_type=linux
4583   need_lib_prefix=no
4584   need_version=no
4585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4586   soname_spec='${libname}${release}${shared_ext}$major'
4587   shlibpath_var=LD_LIBRARY_PATH
4588   ;;
4589
4590 freebsd1*)
4591   dynamic_linker=no
4592   ;;
4593
4594 freebsd*)
4595   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4596   version_type=freebsd-$objformat
4597   case $version_type in
4598     freebsd-elf*)
4599       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4600       need_version=no
4601       need_lib_prefix=no
4602       ;;
4603     freebsd-*)
4604       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4605       need_version=yes
4606       ;;
4607   esac
4608   shlibpath_var=LD_LIBRARY_PATH
4609   case $host_os in
4610   freebsd2*)
4611     shlibpath_overrides_runpath=yes
4612     ;;
4613   freebsd3.01* | freebsdelf3.01*)
4614     shlibpath_overrides_runpath=yes
4615     hardcode_into_libs=yes
4616     ;;
4617   *) # from 3.2 on
4618     shlibpath_overrides_runpath=no
4619     hardcode_into_libs=yes
4620     ;;
4621   esac
4622   ;;
4623
4624 gnu*)
4625   version_type=linux
4626   need_lib_prefix=no
4627   need_version=no
4628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4629   soname_spec='${libname}${release}${shared_ext}$major'
4630   shlibpath_var=LD_LIBRARY_PATH
4631   hardcode_into_libs=yes
4632   ;;
4633
4634 hpux9* | hpux10* | hpux11*)
4635   # Give a soname corresponding to the major version so that dld.sl refuses to
4636   # link against other versions.
4637   version_type=sunos
4638   need_lib_prefix=no
4639   need_version=no
4640   case "$host_cpu" in
4641   ia64*)
4642     shrext='.so'
4643     hardcode_into_libs=yes
4644     dynamic_linker="$host_os dld.so"
4645     shlibpath_var=LD_LIBRARY_PATH
4646     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4648     soname_spec='${libname}${release}${shared_ext}$major'
4649     if test "X$HPUX_IA64_MODE" = X32; then
4650       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4651     else
4652       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4653     fi
4654     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4655     ;;
4656    hppa*64*)
4657      shrext='.sl'
4658      hardcode_into_libs=yes
4659      dynamic_linker="$host_os dld.sl"
4660      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4661      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4662      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4663      soname_spec='${libname}${release}${shared_ext}$major'
4664      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4665      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4666      ;;
4667    *)
4668     shrext='.sl'
4669     dynamic_linker="$host_os dld.sl"
4670     shlibpath_var=SHLIB_PATH
4671     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4673     soname_spec='${libname}${release}${shared_ext}$major'
4674     ;;
4675   esac
4676   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4677   postinstall_cmds='chmod 555 $lib'
4678   ;;
4679
4680 irix5* | irix6* | nonstopux*)
4681   case $host_os in
4682     nonstopux*) version_type=nonstopux ;;
4683     *)
4684         if test "$lt_cv_prog_gnu_ld" = yes; then
4685                 version_type=linux
4686         else
4687                 version_type=irix
4688         fi ;;
4689   esac
4690   need_lib_prefix=no
4691   need_version=no
4692   soname_spec='${libname}${release}${shared_ext}$major'
4693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4694   case $host_os in
4695   irix5* | nonstopux*)
4696     libsuff= shlibsuff=
4697     ;;
4698   *)
4699     case $LD in # libtool.m4 will add one of these switches to LD
4700     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4701       libsuff= shlibsuff= libmagic=32-bit;;
4702     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4703       libsuff=32 shlibsuff=N32 libmagic=N32;;
4704     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4705       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4706     *) libsuff= shlibsuff= libmagic=never-match;;
4707     esac
4708     ;;
4709   esac
4710   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4711   shlibpath_overrides_runpath=no
4712   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4713   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4714   hardcode_into_libs=yes
4715   ;;
4716
4717 # No shared lib support for Linux oldld, aout, or coff.
4718 linux*oldld* | linux*aout* | linux*coff*)
4719   dynamic_linker=no
4720   ;;
4721
4722 # This must be Linux ELF.
4723 linux*|k*bsd*-gnu)
4724   version_type=linux
4725   need_lib_prefix=no
4726   need_version=no
4727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4728   soname_spec='${libname}${release}${shared_ext}$major'
4729   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4730   shlibpath_var=LD_LIBRARY_PATH
4731   shlibpath_overrides_runpath=no
4732   # This implies no fast_install, which is unacceptable.
4733   # Some rework will be needed to allow for fast_install
4734   # before this can be enabled.
4735   hardcode_into_libs=yes
4736
4737   # We used to test for /lib/ld.so.1 and disable shared libraries on
4738   # powerpc, because MkLinux only supported shared libraries with the
4739   # GNU dynamic linker.  Since this was broken with cross compilers,
4740   # most powerpc-linux boxes support dynamic linking these days and
4741   # people can always --disable-shared, the test was removed, and we
4742   # assume the GNU/Linux dynamic linker is in use.
4743   dynamic_linker='GNU/Linux ld.so'
4744   ;;
4745
4746 netbsd*)
4747   version_type=sunos
4748   need_lib_prefix=no
4749   need_version=no
4750   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4751     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4752     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4753     dynamic_linker='NetBSD (a.out) ld.so'
4754   else
4755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4756     soname_spec='${libname}${release}${shared_ext}$major'
4757     dynamic_linker='NetBSD ld.elf_so'
4758   fi
4759   shlibpath_var=LD_LIBRARY_PATH
4760   shlibpath_overrides_runpath=yes
4761   hardcode_into_libs=yes
4762   ;;
4763
4764 newsos6)
4765   version_type=linux
4766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4767   shlibpath_var=LD_LIBRARY_PATH
4768   shlibpath_overrides_runpath=yes
4769   ;;
4770
4771 nto-qnx)
4772   version_type=linux
4773   need_lib_prefix=no
4774   need_version=no
4775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4776   soname_spec='${libname}${release}${shared_ext}$major'
4777   shlibpath_var=LD_LIBRARY_PATH
4778   shlibpath_overrides_runpath=yes
4779   ;;
4780
4781 openbsd*)
4782   version_type=sunos
4783   need_lib_prefix=no
4784   need_version=no
4785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4787   shlibpath_var=LD_LIBRARY_PATH
4788   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4789     case $host_os in
4790       openbsd2.[89] | openbsd2.[89].*)
4791         shlibpath_overrides_runpath=no
4792         ;;
4793       *)
4794         shlibpath_overrides_runpath=yes
4795         ;;
4796       esac
4797   else
4798     shlibpath_overrides_runpath=yes
4799   fi
4800   ;;
4801
4802 os2*)
4803   libname_spec='$name'
4804   shrext=".dll"
4805   need_lib_prefix=no
4806   library_names_spec='$libname${shared_ext} $libname.a'
4807   dynamic_linker='OS/2 ld.exe'
4808   shlibpath_var=LIBPATH
4809   ;;
4810
4811 osf3* | osf4* | osf5*)
4812   version_type=osf
4813   need_lib_prefix=no
4814   need_version=no
4815   soname_spec='${libname}${release}${shared_ext}$major'
4816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4817   shlibpath_var=LD_LIBRARY_PATH
4818   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4819   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4820   ;;
4821
4822 sco3.2v5*)
4823   version_type=osf
4824   soname_spec='${libname}${release}${shared_ext}$major'
4825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4826   shlibpath_var=LD_LIBRARY_PATH
4827   ;;
4828
4829 solaris*)
4830   version_type=linux
4831   need_lib_prefix=no
4832   need_version=no
4833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4834   soname_spec='${libname}${release}${shared_ext}$major'
4835   shlibpath_var=LD_LIBRARY_PATH
4836   shlibpath_overrides_runpath=yes
4837   hardcode_into_libs=yes
4838   # ldd complains unless libraries are executable
4839   postinstall_cmds='chmod +x $lib'
4840   ;;
4841
4842 sunos4*)
4843   version_type=sunos
4844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4845   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4846   shlibpath_var=LD_LIBRARY_PATH
4847   shlibpath_overrides_runpath=yes
4848   if test "$with_gnu_ld" = yes; then
4849     need_lib_prefix=no
4850   fi
4851   need_version=yes
4852   ;;
4853
4854 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4855   version_type=linux
4856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4857   soname_spec='${libname}${release}${shared_ext}$major'
4858   shlibpath_var=LD_LIBRARY_PATH
4859   case $host_vendor in
4860     sni)
4861       shlibpath_overrides_runpath=no
4862       need_lib_prefix=no
4863       export_dynamic_flag_spec='${wl}-Blargedynsym'
4864       runpath_var=LD_RUN_PATH
4865       ;;
4866     siemens)
4867       need_lib_prefix=no
4868       ;;
4869     motorola)
4870       need_lib_prefix=no
4871       need_version=no
4872       shlibpath_overrides_runpath=no
4873       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4874       ;;
4875   esac
4876   ;;
4877
4878 sysv4*MP*)
4879   if test -d /usr/nec ;then
4880     version_type=linux
4881     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4882     soname_spec='$libname${shared_ext}.$major'
4883     shlibpath_var=LD_LIBRARY_PATH
4884   fi
4885   ;;
4886
4887 uts4*)
4888   version_type=linux
4889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4890   soname_spec='${libname}${release}${shared_ext}$major'
4891   shlibpath_var=LD_LIBRARY_PATH
4892   ;;
4893
4894 *)
4895   dynamic_linker=no
4896   ;;
4897 esac
4898 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4899 echo "${ECHO_T}$dynamic_linker" >&6
4900 test "$dynamic_linker" = no && can_build_shared=no
4901
4902
4903 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4904 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4905 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   libltdl_cv_shlibpath_var="$shlibpath_var"
4909 fi
4910 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4911 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4912 if test -n "$libltdl_cv_shlibpath_var"; then
4913
4914 cat >>confdefs.h <<_ACEOF
4915 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4916 _ACEOF
4917
4918 fi
4919
4920 fi
4921
4922                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4923
4924
4925 # See if the user has requested runtime debugging.
4926 LIBGCJDEBUG="disable"
4927
4928 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4929 if test "${enable_libgcj_debug+set}" = set; then
4930   enableval="$enable_libgcj_debug"
4931   if test "$enable_libgcj_debug" = yes; then
4932
4933 cat >>confdefs.h <<\_ACEOF
4934 #define DEBUG 1
4935 _ACEOF
4936
4937     LIBGCJDEBUG="enable"
4938   fi
4939 fi;
4940
4941
4942 # Check whether --with-escher or --without-escher was given.
4943 if test "${with_escher+set}" = set; then
4944   withval="$with_escher"
4945
4946 fi;
4947 case "$with_escher" in
4948 "")
4949         use_escher=false
4950         ;;
4951 "no")
4952         use_escher=false
4953         ;;
4954 "yes")
4955         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
4956 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
4957    { (exit 1); exit 1; }; }
4958         ;;
4959 *)
4960         use_escher=true
4961         ;;
4962 esac
4963
4964 # Determine which AWT peer libraries to build
4965 # Check whether --enable-java-awt or --disable-java-awt was given.
4966 if test "${enable_java_awt+set}" = set; then
4967   enableval="$enable_java_awt"
4968
4969 fi;
4970
4971 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4972 use_xlib_awt=""
4973 use_gtk_awt=""
4974 use_qt_awt=""
4975 use_x_awt=""
4976 # The default toolkit to use is the first one specified.
4977 TOOLKIT=
4978
4979
4980 for peer in $peerlibs ; do
4981   case $peer in
4982     xlib)
4983       if test "$no_x" = yes; then
4984         echo "*** xlib peers requested but no X library available" 1>&2
4985         exit 1
4986       else
4987         use_xlib_awt="yes"
4988         if test -z "$TOOLKIT"; then
4989            TOOLKIT=gnu.awt.xlib.XToolkit
4990         fi
4991       fi
4992       ;;
4993     gtk)
4994       if test "$no_x" = yes; then
4995          echo "*** gtk peers requested but no X library available" 1>&2
4996          exit 1
4997       else
4998          use_gtk_awt=yes
4999          if test -z "$TOOLKIT"; then
5000             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5001          fi
5002       fi
5003       ;;
5004     qt)
5005       if test "$no_x" = yes; then
5006          # Perhaps we should admit the possibility of embedded Qt.
5007          echo "*** Qt peers requested but no X library available" 1>&2
5008          exit 1
5009       else
5010          use_qt_awt=yes
5011          if test -z "$TOOLKIT"; then
5012             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5013          fi
5014       fi
5015       ;;
5016     x)
5017       use_x_awt=yes
5018       if test -z "$TOOLKIT"; then
5019          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5020       fi
5021       ;;
5022     no)
5023       use_xlib_awt=
5024       use_gtk_awt=
5025       use_qt_awt=
5026       use_x_awt=
5027       break
5028       ;;
5029     *)
5030       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5031       exit 1
5032   esac
5033 done
5034
5035
5036
5037 if test "$use_xlib_awt" = yes; then
5038   XLIB_AWT_TRUE=
5039   XLIB_AWT_FALSE='#'
5040 else
5041   XLIB_AWT_TRUE='#'
5042   XLIB_AWT_FALSE=
5043 fi
5044
5045
5046
5047 if test "$use_x_awt" = yes; then
5048   X_AWT_TRUE=
5049   X_AWT_FALSE='#'
5050 else
5051   X_AWT_TRUE='#'
5052   X_AWT_FALSE=
5053 fi
5054
5055
5056
5057 cat >>confdefs.h <<_ACEOF
5058 #define AWT_TOOLKIT "$TOOLKIT"
5059 _ACEOF
5060
5061
5062
5063 cat >>confdefs.h <<_ACEOF
5064 #define LIBGCJ_PREFIX "$prefix"
5065 _ACEOF
5066
5067
5068 # Create standard.omit based on decisions we just made.
5069 cp $srcdir/standard.omit.in standard.omit
5070 if test "$use_xlib_awt" != yes; then
5071    echo gnu/awt/xlib >> standard.omit
5072    echo gnu/gcj/xlib >> standard.omit
5073 fi
5074 if test "$use_x_awt" != yes; then
5075    echo gnu/java/awt/peer/x >> standard.omit
5076 fi
5077
5078 if test -z "${with_multisubdir}"; then
5079    builddotdot=.
5080 else
5081    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5082 fi
5083
5084 NATIVE=yes
5085
5086 # Which gcj and host gcj (for ecjx) do we use?
5087 which_gcj=default
5088 host_exeext=${ac_exeext}
5089 GCJ_FOR_ECJX=
5090 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5091 if test -n "${with_cross_host}"; then
5092   # We are being configured with a cross compiler. We can't
5093   # use ac_exeext, because that is for the target platform.
5094   NATIVE=no
5095   cross_host_exeext=
5096   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5097   case "${with_cross_host}" in
5098      *mingw* | *cygwin*)
5099          cross_host_exeext=.exe
5100      ;;
5101   esac
5102   host_exeext=${cross_host_exeext}
5103   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5104      if test x"$build_noncanonical" = x"$with_cross_host"; then
5105         # Ordinary cross (host!=target and host=build)
5106         which_gcj=built
5107      else
5108         # Canadian cross (host!=target and host!=build)
5109         which_gcj=cross
5110      fi
5111   else
5112      which_gcj=cross
5113   fi
5114 else
5115   # We are being configured with a native or crossed-native compiler
5116   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5117      if test x"$build" = x"$host"; then
5118         # True native build (host=target and host=build)
5119         which_gcj=built
5120      else
5121         # Crossed-native build (host=target and host!=build)
5122         which_gcj=cross
5123      fi
5124   else
5125      which_gcj=path
5126   fi
5127 fi
5128 case "${which_gcj}" in
5129    built)
5130       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5131       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5132    ;;
5133    cross)
5134       if test "x${with_newlib}" = "xyes"; then
5135          # FIXME (comment): Why is this needed?
5136          GCC_UNWIND_INCLUDE=
5137          GCJ="${target_noncanonical}-gcj"
5138       else
5139          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5140       fi
5141       GCJH="$built_gcc_dir/gcjh"
5142    ;;
5143    path)
5144       GCJ="gcj -B`${PWDCMD-pwd}`/"
5145       GCJH=gcjh
5146    ;;
5147 esac
5148
5149
5150
5151
5152
5153 # Create it, so that compile/link tests don't fail
5154 test -f libgcj.spec || touch libgcj.spec
5155
5156
5157
5158 # Set up to configure Classpath.
5159 # FIXME: no supported way to pass args in autoconf.
5160 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5161 # Disable tool wrappers to avoid ltdl.h configure check.
5162 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5163 ac_configure_args="$ac_configure_args --disable-load-library"
5164 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5165 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5166 dir1=`cd $srcdir && pwd`
5167 dir2=`pwd`
5168 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5169 ac_configure_args="$ac_configure_args --disable-core-jni"
5170 ac_configure_args="$ac_configure_args --disable-examples"
5171 ac_configure_args="$ac_configure_args --with-glibj=build"
5172 if test "$plugin_enabled" != yes; then
5173   ac_configure_args="$ac_configure_args --disable-plugin"
5174 fi
5175 if test "$gconf_enabled" != yes; then
5176   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5177   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5178 fi
5179 if test "$use_gtk_awt" != yes; then
5180   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5181 fi
5182 if test "$use_qt_awt" != yes; then
5183   ac_configure_args="$ac_configure_args --disable-qt-peer"
5184 else
5185   # We need this as qt is disabled by default in classpath.
5186   ac_configure_args="$ac_configure_args --enable-qt-peer"
5187 fi
5188 if test "$use_x_awt" != yes; then
5189   ac_configure_args="$ac_configure_args --without-escher"
5190 else
5191   # We need this as escher is disabled by default in classpath.
5192   if test "$use_escher" != true; then
5193     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5194 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5195    { (exit 1); exit 1; }; }
5196   else
5197     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5198   fi
5199 fi
5200 # -Werror causes unavoidable problems in code using alsa.
5201 ac_configure_args="$ac_configure_args --disable-Werror"
5202
5203 # Only use libltdl for non-newlib builds.
5204 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5205      case $enable_ltdl_convenience in
5206   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5207 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5208    { (exit 1); exit 1; }; } ;;
5209   "") enable_ltdl_convenience=yes
5210       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5211   esac
5212   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5213   INCLTDL='-I${top_srcdir}/''libltdl'
5214
5215
5216    DIRLTDL=libltdl
5217
5218 cat >>confdefs.h <<\_ACEOF
5219 #define USE_LTDL 1
5220 _ACEOF
5221
5222    # Sigh.  Libtool's macro doesn't do the right thing.
5223    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5224    # FIXME: this is a hack.
5225    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5226    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5227 fi
5228
5229
5230
5231 # Check whether --enable-shared or --disable-shared was given.
5232 if test "${enable_shared+set}" = set; then
5233   enableval="$enable_shared"
5234   p=${PACKAGE-default}
5235 case $enableval in
5236 yes) enable_shared=yes ;;
5237 no) enable_shared=no ;;
5238 *)
5239   enable_shared=no
5240   # Look at the argument we got.  We use all the common list separators.
5241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5242   for pkg in $enableval; do
5243     if test "X$pkg" = "X$p"; then
5244       enable_shared=yes
5245     fi
5246   done
5247   IFS="$ac_save_ifs"
5248   ;;
5249 esac
5250 else
5251   enable_shared=yes
5252 fi;
5253 # Check whether --enable-static or --disable-static was given.
5254 if test "${enable_static+set}" = set; then
5255   enableval="$enable_static"
5256   p=${PACKAGE-default}
5257 case $enableval in
5258 yes) enable_static=yes ;;
5259 no) enable_static=no ;;
5260 *)
5261   enable_static=no
5262   # Look at the argument we got.  We use all the common list separators.
5263   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5264   for pkg in $enableval; do
5265     if test "X$pkg" = "X$p"; then
5266       enable_static=yes
5267     fi
5268   done
5269   IFS="$ac_save_ifs"
5270   ;;
5271 esac
5272 else
5273   enable_static=yes
5274 fi;
5275 # Check whether --enable-fast-install or --disable-fast-install was given.
5276 if test "${enable_fast_install+set}" = set; then
5277   enableval="$enable_fast_install"
5278   p=${PACKAGE-default}
5279 case $enableval in
5280 yes) enable_fast_install=yes ;;
5281 no) enable_fast_install=no ;;
5282 *)
5283   enable_fast_install=no
5284   # Look at the argument we got.  We use all the common list separators.
5285   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5286   for pkg in $enableval; do
5287     if test "X$pkg" = "X$p"; then
5288       enable_fast_install=yes
5289     fi
5290   done
5291   IFS="$ac_save_ifs"
5292   ;;
5293 esac
5294 else
5295   enable_fast_install=yes
5296 fi;
5297
5298 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5299 if test "${with_gnu_ld+set}" = set; then
5300   withval="$with_gnu_ld"
5301   test "$withval" = no || with_gnu_ld=yes
5302 else
5303   with_gnu_ld=no
5304 fi;
5305 ac_prog=ld
5306 if test "$GCC" = yes; then
5307   # Check if gcc -print-prog-name=ld gives a path.
5308   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5309 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5310   case $host in
5311   *-*-mingw*)
5312     # gcc leaves a trailing carriage return which upsets mingw
5313     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5314   *)
5315     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5316   esac
5317   case $ac_prog in
5318     # Accept absolute paths.
5319     [\\/]* | [A-Za-z]:[\\/]*)
5320       re_direlt='/[^/][^/]*/\.\./'
5321       # Canonicalize the path of ld
5322       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5323       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5324         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5325       done
5326       test -z "$LD" && LD="$ac_prog"
5327       ;;
5328   "")
5329     # If it fails, then pretend we aren't using GCC.
5330     ac_prog=ld
5331     ;;
5332   *)
5333     # If it is relative, then search for the first ld in PATH.
5334     with_gnu_ld=unknown
5335     ;;
5336   esac
5337 elif test "$with_gnu_ld" = yes; then
5338   echo "$as_me:$LINENO: checking for GNU ld" >&5
5339 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5340 else
5341   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5342 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5343 fi
5344 if test "${lt_cv_path_LD+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   if test -z "$LD"; then
5348   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5349   for ac_dir in $PATH; do
5350     test -z "$ac_dir" && ac_dir=.
5351     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5352       lt_cv_path_LD="$ac_dir/$ac_prog"
5353       # Check to see if the program is GNU ld.  I'd rather use --version,
5354       # but apparently some GNU ld's only accept -v.
5355       # Break only if it was the GNU/non-GNU ld that we prefer.
5356       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5357         test "$with_gnu_ld" != no && break
5358       else
5359         test "$with_gnu_ld" != yes && break
5360       fi
5361     fi
5362   done
5363   IFS="$ac_save_ifs"
5364 else
5365   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5366 fi
5367 fi
5368
5369 LD="$lt_cv_path_LD"
5370 if test -n "$LD"; then
5371   echo "$as_me:$LINENO: result: $LD" >&5
5372 echo "${ECHO_T}$LD" >&6
5373 else
5374   echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5378 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5379    { (exit 1); exit 1; }; }
5380 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5381 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5382 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5386 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5387   lt_cv_prog_gnu_ld=yes
5388 else
5389   lt_cv_prog_gnu_ld=no
5390 fi
5391 fi
5392 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5393 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5394 with_gnu_ld=$lt_cv_prog_gnu_ld
5395
5396
5397 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5398 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5399 if test "${lt_cv_ld_reload_flag+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   lt_cv_ld_reload_flag='-r'
5403 fi
5404 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5405 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5406 reload_flag=$lt_cv_ld_reload_flag
5407 test -n "$reload_flag" && reload_flag=" $reload_flag"
5408
5409 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5410 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5411 if test "${lt_cv_path_NM+set}" = set; then
5412   echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414   if test -n "$NM"; then
5415   # Let the user override the test.
5416   lt_cv_path_NM="$NM"
5417 else
5418   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5419   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5420     test -z "$ac_dir" && ac_dir=.
5421     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5422     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5423       # Check to see if the nm accepts a BSD-compat flag.
5424       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5425       #   nm: unknown option "B" ignored
5426       # Tru64's nm complains that /dev/null is an invalid object file
5427       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5428         lt_cv_path_NM="$tmp_nm -B"
5429         break
5430       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5431         lt_cv_path_NM="$tmp_nm -p"
5432         break
5433       else
5434         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5435         continue # so that we can try to find one that supports BSD flags
5436       fi
5437     fi
5438   done
5439   IFS="$ac_save_ifs"
5440   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5441 fi
5442 fi
5443
5444 NM="$lt_cv_path_NM"
5445 echo "$as_me:$LINENO: result: $NM" >&5
5446 echo "${ECHO_T}$NM" >&6
5447
5448 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5449 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5450 if test "${lt_cv_deplibs_check_method+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   lt_cv_file_magic_cmd='$MAGIC_CMD'
5454 lt_cv_file_magic_test_file=
5455 lt_cv_deplibs_check_method='unknown'
5456 # Need to set the preceding variable on all platforms that support
5457 # interlibrary dependencies.
5458 # 'none' -- dependencies not supported.
5459 # `unknown' -- same as none, but documents that we really don't know.
5460 # 'pass_all' -- all dependencies passed with no checks.
5461 # 'test_compile' -- check by making test program.
5462 # 'file_magic [regex]' -- check by looking for files in library path
5463 # which responds to the $file_magic_cmd with a given egrep regex.
5464 # If you have `file' or equivalent on your system and you're not sure
5465 # whether `pass_all' will *always* work, you probably want this one.
5466
5467 case $host_os in
5468 aix*)
5469   lt_cv_deplibs_check_method=pass_all
5470   ;;
5471
5472 beos*)
5473   lt_cv_deplibs_check_method=pass_all
5474   ;;
5475
5476 bsdi4*)
5477   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5478   lt_cv_file_magic_cmd='/usr/bin/file -L'
5479   lt_cv_file_magic_test_file=/shlib/libc.so
5480   ;;
5481
5482 cygwin* | mingw* |pw32*)
5483   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5484   lt_cv_file_magic_cmd='$OBJDUMP -f'
5485   ;;
5486
5487 darwin* | rhapsody*)
5488   # this will be overwritten by pass_all, but leave it in just in case
5489   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5490   lt_cv_file_magic_cmd='/usr/bin/file -L'
5491   case "$host_os" in
5492   rhapsody* | darwin1.012)
5493     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5494     ;;
5495   *) # Darwin 1.3 on
5496     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5497     ;;
5498   esac
5499   lt_cv_deplibs_check_method=pass_all
5500   ;;
5501
5502 freebsd* | kfreebsd*-gnu)
5503   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5504     case $host_cpu in
5505     i*86 )
5506       # Not sure whether the presence of OpenBSD here was a mistake.
5507       # Let's accept both of them until this is cleared up.
5508       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5509       lt_cv_file_magic_cmd=/usr/bin/file
5510       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5511       ;;
5512     esac
5513   else
5514     lt_cv_deplibs_check_method=pass_all
5515   fi
5516   ;;
5517
5518 gnu*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 hpux10.20*|hpux11*)
5523   case $host_cpu in
5524   hppa*)
5525     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5526     lt_cv_file_magic_cmd=/usr/bin/file
5527     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5528     ;;
5529   ia64*)
5530     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5531     lt_cv_file_magic_cmd=/usr/bin/file
5532     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5533     ;;
5534   esac
5535   ;;
5536
5537 irix5* | irix6*)
5538   case $host_os in
5539   irix5*)
5540     # this will be overridden with pass_all, but let us keep it just in case
5541     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5542     ;;
5543   *)
5544     case $LD in
5545     *-32|*"-32 ") libmagic=32-bit;;
5546     *-n32|*"-n32 ") libmagic=N32;;
5547     *-64|*"-64 ") libmagic=64-bit;;
5548     *) libmagic=never-match;;
5549     esac
5550     # this will be overridden with pass_all, but let us keep it just in case
5551     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5552     ;;
5553   esac
5554   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5555   lt_cv_deplibs_check_method=pass_all
5556   ;;
5557
5558 # This must be Linux ELF.
5559 linux-gnu*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562
5563 netbsd* | knetbsd*-gnu)
5564   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5565     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5566   else
5567     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5568   fi
5569   ;;
5570
5571 newsos6)
5572   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5573   lt_cv_file_magic_cmd=/usr/bin/file
5574   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5575   ;;
5576
5577 osf3* | osf4* | osf5*)
5578   # this will be overridden with pass_all, but let us keep it just in case
5579   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5580   lt_cv_file_magic_test_file=/shlib/libc.so
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583
5584 sco3.2v5*)
5585   lt_cv_deplibs_check_method=pass_all
5586   ;;
5587
5588 solaris*)
5589   lt_cv_deplibs_check_method=pass_all
5590   lt_cv_file_magic_test_file=/lib/libc.so
5591   ;;
5592
5593 sysv5uw[78]* | sysv4*uw2*)
5594   lt_cv_deplibs_check_method=pass_all
5595   ;;
5596
5597 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5598   case $host_vendor in
5599   ncr)
5600     lt_cv_deplibs_check_method=pass_all
5601     ;;
5602   motorola)
5603     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]'
5604     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5605     ;;
5606   esac
5607   ;;
5608 esac
5609
5610 fi
5611 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5612 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5613 file_magic_cmd=$lt_cv_file_magic_cmd
5614 deplibs_check_method=$lt_cv_deplibs_check_method
5615
5616
5617
5618
5619 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5620
5621 # find the maximum length of command line arguments
5622 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5623 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5624 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627     i=0
5628   teststring="ABCD"
5629
5630   case $build_os in
5631   msdosdjgpp*)
5632     # On DJGPP, this test can blow up pretty badly due to problems in libc
5633     # (any single argument exceeding 2000 bytes causes a buffer overrun
5634     # during glob expansion).  Even if it were fixed, the result of this
5635     # check would be larger than it should be.
5636     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5637     ;;
5638
5639   cygwin* | mingw*)
5640     # On Win9x/ME, this test blows up -- it succeeds, but takes
5641     # about 5 minutes as the teststring grows exponentially.
5642     # Worse, since 9x/ME are not pre-emptively multitasking,
5643     # you end up with a "frozen" computer, even though with patience
5644     # the test eventually succeeds (with a max line length of 256k).
5645     # Instead, let's just punt: use the minimum linelength reported by
5646     # all of the supported platforms: 8192 (on NT/2K/XP).
5647     lt_cv_sys_max_cmd_len=8192;
5648     ;;
5649
5650   amigaos*)
5651     # On AmigaOS with pdksh, this test takes hours, literally.
5652     # So we just punt and use a minimum line length of 8192.
5653     lt_cv_sys_max_cmd_len=8192;
5654     ;;
5655
5656   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5657     # This has been around since 386BSD, at least.  Likely further.
5658     if test -x /sbin/sysctl; then
5659       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5660     elif test -x /usr/sbin/sysctl; then
5661       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5662     else
5663       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5664     fi
5665     # And add a safety zone
5666     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5667     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5668     ;;
5669   esac
5670
5671 fi
5672
5673 if test -n "$lt_cv_sys_max_cmd_len" ; then
5674   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5675 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5676 else
5677   echo "$as_me:$LINENO: result: none" >&5
5678 echo "${ECHO_T}none" >&6
5679 fi
5680
5681
5682 # Only perform the check for file, if the check method requires it
5683 case $deplibs_check_method in
5684 file_magic*)
5685   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5686     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5687 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5688 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   case $MAGIC_CMD in
5692   /*)
5693   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5694   ;;
5695   ?:/*)
5696   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5697   ;;
5698   *)
5699   ac_save_MAGIC_CMD="$MAGIC_CMD"
5700   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5701   ac_dummy="/usr/bin:$PATH"
5702   for ac_dir in $ac_dummy; do
5703     test -z "$ac_dir" && ac_dir=.
5704     if test -f $ac_dir/${ac_tool_prefix}file; then
5705       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5706       if test -n "$file_magic_test_file"; then
5707         case $deplibs_check_method in
5708         "file_magic "*)
5709           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5710           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5711           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5712             egrep "$file_magic_regex" > /dev/null; then
5713             :
5714           else
5715             cat <<EOF 1>&2
5716
5717 *** Warning: the command libtool uses to detect shared libraries,
5718 *** $file_magic_cmd, produces output that libtool cannot recognize.
5719 *** The result is that libtool may fail to recognize shared libraries
5720 *** as such.  This will affect the creation of libtool libraries that
5721 *** depend on shared libraries, but programs linked with such libtool
5722 *** libraries will work regardless of this problem.  Nevertheless, you
5723 *** may want to report the problem to your system manager and/or to
5724 *** bug-libtool@gnu.org
5725
5726 EOF
5727           fi ;;
5728         esac
5729       fi
5730       break
5731     fi
5732   done
5733   IFS="$ac_save_ifs"
5734   MAGIC_CMD="$ac_save_MAGIC_CMD"
5735   ;;
5736 esac
5737 fi
5738
5739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5740 if test -n "$MAGIC_CMD"; then
5741   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5742 echo "${ECHO_T}$MAGIC_CMD" >&6
5743 else
5744   echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6
5746 fi
5747
5748 if test -z "$lt_cv_path_MAGIC_CMD"; then
5749   if test -n "$ac_tool_prefix"; then
5750     echo "$as_me:$LINENO: checking for file" >&5
5751 echo $ECHO_N "checking for file... $ECHO_C" >&6
5752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   case $MAGIC_CMD in
5756   /*)
5757   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5758   ;;
5759   ?:/*)
5760   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5761   ;;
5762   *)
5763   ac_save_MAGIC_CMD="$MAGIC_CMD"
5764   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5765   ac_dummy="/usr/bin:$PATH"
5766   for ac_dir in $ac_dummy; do
5767     test -z "$ac_dir" && ac_dir=.
5768     if test -f $ac_dir/file; then
5769       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5770       if test -n "$file_magic_test_file"; then
5771         case $deplibs_check_method in
5772         "file_magic "*)
5773           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5774           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5775           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5776             egrep "$file_magic_regex" > /dev/null; then
5777             :
5778           else
5779             cat <<EOF 1>&2
5780
5781 *** Warning: the command libtool uses to detect shared libraries,
5782 *** $file_magic_cmd, produces output that libtool cannot recognize.
5783 *** The result is that libtool may fail to recognize shared libraries
5784 *** as such.  This will affect the creation of libtool libraries that
5785 *** depend on shared libraries, but programs linked with such libtool
5786 *** libraries will work regardless of this problem.  Nevertheless, you
5787 *** may want to report the problem to your system manager and/or to
5788 *** bug-libtool@gnu.org
5789
5790 EOF
5791           fi ;;
5792         esac
5793       fi
5794       break
5795     fi
5796   done
5797   IFS="$ac_save_ifs"
5798   MAGIC_CMD="$ac_save_MAGIC_CMD"
5799   ;;
5800 esac
5801 fi
5802
5803 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5804 if test -n "$MAGIC_CMD"; then
5805   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5806 echo "${ECHO_T}$MAGIC_CMD" >&6
5807 else
5808   echo "$as_me:$LINENO: result: no" >&5
5809 echo "${ECHO_T}no" >&6
5810 fi
5811
5812   else
5813     MAGIC_CMD=:
5814   fi
5815 fi
5816
5817   fi
5818   ;;
5819 esac
5820
5821 if test -n "$ac_tool_prefix"; then
5822   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5824 echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5826 if test "${ac_cv_prog_RANLIB+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   if test -n "$RANLIB"; then
5830   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845
5846 fi
5847 fi
5848 RANLIB=$ac_cv_prog_RANLIB
5849 if test -n "$RANLIB"; then
5850   echo "$as_me:$LINENO: result: $RANLIB" >&5
5851 echo "${ECHO_T}$RANLIB" >&6
5852 else
5853   echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5855 fi
5856
5857 fi
5858 if test -z "$ac_cv_prog_RANLIB"; then
5859   ac_ct_RANLIB=$RANLIB
5860   # Extract the first word of "ranlib", so it can be a program name with args.
5861 set dummy ranlib; ac_word=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867   if test -n "$ac_ct_RANLIB"; then
5868   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875   for ac_exec_ext in '' $ac_executable_extensions; do
5876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_prog_ac_ct_RANLIB="ranlib"
5878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882 done
5883
5884   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5885 fi
5886 fi
5887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5888 if test -n "$ac_ct_RANLIB"; then
5889   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5890 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5891 else
5892   echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5894 fi
5895
5896   RANLIB=$ac_ct_RANLIB
5897 else
5898   RANLIB="$ac_cv_prog_RANLIB"
5899 fi
5900
5901 if test -n "$ac_tool_prefix"; then
5902   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}strip; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_STRIP+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   if test -n "$STRIP"; then
5910   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925
5926 fi
5927 fi
5928 STRIP=$ac_cv_prog_STRIP
5929 if test -n "$STRIP"; then
5930   echo "$as_me:$LINENO: result: $STRIP" >&5
5931 echo "${ECHO_T}$STRIP" >&6
5932 else
5933   echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5935 fi
5936
5937 fi
5938 if test -z "$ac_cv_prog_STRIP"; then
5939   ac_ct_STRIP=$STRIP
5940   # Extract the first word of "strip", so it can be a program name with args.
5941 set dummy strip; ac_word=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   if test -n "$ac_ct_STRIP"; then
5948   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955   for ac_exec_ext in '' $ac_executable_extensions; do
5956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957     ac_cv_prog_ac_ct_STRIP="strip"
5958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962 done
5963
5964   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5965 fi
5966 fi
5967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5968 if test -n "$ac_ct_STRIP"; then
5969   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5970 echo "${ECHO_T}$ac_ct_STRIP" >&6
5971 else
5972   echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5974 fi
5975
5976   STRIP=$ac_ct_STRIP
5977 else
5978   STRIP="$ac_cv_prog_STRIP"
5979 fi
5980
5981
5982 # Check for any special flags to pass to ltconfig.
5983 libtool_flags="--cache-file=$cache_file"
5984 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5985 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5986 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5987 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5988 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5989
5990
5991 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5992 if test "${enable_libtool_lock+set}" = set; then
5993   enableval="$enable_libtool_lock"
5994
5995 fi;
5996 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5997 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5998
5999
6000 # Check whether --with-pic or --without-pic was given.
6001 if test "${with_pic+set}" = set; then
6002   withval="$with_pic"
6003   pic_mode="$withval"
6004 else
6005   pic_mode=default
6006 fi;
6007 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6008 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6009
6010 # Some flags need to be propagated to the compiler or linker for good
6011 # libtool support.
6012 case $host in
6013 *-*-irix6*)
6014   # Find out which ABI we are using.
6015   echo '#line 6015 "configure"' > conftest.$ac_ext
6016   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6017   (eval $ac_compile) 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }; then
6021    if test "$lt_cv_prog_gnu_ld" = yes; then
6022     case `/usr/bin/file conftest.$ac_objext` in
6023     *32-bit*)
6024       LD="${LD-ld} -melf32bsmip"
6025       ;;
6026     *N32*)
6027       LD="${LD-ld} -melf32bmipn32"
6028       ;;
6029     *64-bit*)
6030       LD="${LD-ld} -melf64bmip"
6031       ;;
6032     esac
6033    else
6034     case `/usr/bin/file conftest.$ac_objext` in
6035     *32-bit*)
6036       LD="${LD-ld} -32"
6037       ;;
6038     *N32*)
6039       LD="${LD-ld} -n32"
6040       ;;
6041     *64-bit*)
6042       LD="${LD-ld} -64"
6043       ;;
6044     esac
6045    fi
6046   fi
6047   rm -rf conftest*
6048   ;;
6049
6050 ia64-*-hpux*)
6051   # Find out which ABI we are using.
6052   echo 'int i;' > conftest.$ac_ext
6053   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6054   (eval $ac_compile) 2>&5
6055   ac_status=$?
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); }; then
6058     case "`/usr/bin/file conftest.o`" in
6059     *ELF-32*)
6060       HPUX_IA64_MODE="32"
6061       ;;
6062     *ELF-64*)
6063       HPUX_IA64_MODE="64"
6064       ;;
6065     esac
6066   fi
6067   rm -rf conftest*
6068   ;;
6069
6070 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6071   # Find out which ABI we are using.
6072   echo 'int i;' > conftest.$ac_ext
6073   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074   (eval $ac_compile) 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; then
6078     case "`/usr/bin/file conftest.o`" in
6079     *32-bit*)
6080       case $host in
6081         x86_64-*linux*)
6082           LD="${LD-ld} -m elf_i386"
6083           ;;
6084         ppc64-*linux*|powerpc64-*linux*)
6085           LD="${LD-ld} -m elf32ppclinux"
6086           ;;
6087         s390x-*linux*)
6088           LD="${LD-ld} -m elf_s390"
6089           ;;
6090         sparc64-*linux*)
6091           LD="${LD-ld} -m elf32_sparc"
6092           ;;
6093       esac
6094       ;;
6095     *64-bit*)
6096       case $host in
6097         x86_64-*linux*)
6098           LD="${LD-ld} -m elf_x86_64"
6099           ;;
6100         ppc*-*linux*|powerpc*-*linux*)
6101           LD="${LD-ld} -m elf64ppc"
6102           ;;
6103         s390*-*linux*)
6104           LD="${LD-ld} -m elf64_s390"
6105           ;;
6106         sparc*-*linux*)
6107           LD="${LD-ld} -m elf64_sparc"
6108           ;;
6109       esac
6110       ;;
6111     esac
6112   fi
6113   rm -rf conftest*
6114   ;;
6115
6116 *-*-sco3.2v5*)
6117   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6118   SAVE_CFLAGS="$CFLAGS"
6119   CFLAGS="$CFLAGS -belf"
6120   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6121 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6122 if test "${lt_cv_cc_needs_belf+set}" = set; then
6123   echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125
6126
6127      ac_ext=c
6128 ac_cpp='$CPP $CPPFLAGS'
6129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133      if test x$gcc_no_link = xyes; then
6134   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6135 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6136    { (exit 1); exit 1; }; }
6137 fi
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144
6145 int
6146 main ()
6147 {
6148
6149   ;
6150   return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest.$ac_objext conftest$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155   (eval $ac_link) 2>conftest.er1
6156   ac_status=$?
6157   grep -v '^ *+' conftest.er1 >conftest.err
6158   rm -f conftest.er1
6159   cat conftest.err >&5
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } &&
6162          { ac_try='test -z "$ac_c_werror_flag"
6163                          || test ! -s conftest.err'
6164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165   (eval $ac_try) 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); }; } &&
6169          { ac_try='test -s conftest$ac_exeext'
6170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171   (eval $ac_try) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); }; }; then
6175   lt_cv_cc_needs_belf=yes
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 lt_cv_cc_needs_belf=no
6181 fi
6182 rm -f conftest.err conftest.$ac_objext \
6183       conftest$ac_exeext conftest.$ac_ext
6184      ac_ext=c
6185 ac_cpp='$CPP $CPPFLAGS'
6186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189
6190 fi
6191 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6192 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6193   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6194     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6195     CFLAGS="$SAVE_CFLAGS"
6196   fi
6197   ;;
6198
6199
6200 esac
6201
6202
6203 # Save cache, so that ltconfig can load it
6204 cat >confcache <<\_ACEOF
6205 # This file is a shell script that caches the results of configure
6206 # tests run on this system so they can be shared between configure
6207 # scripts and configure runs, see configure's option --config-cache.
6208 # It is not useful on other systems.  If it contains results you don't
6209 # want to keep, you may remove or edit it.
6210 #
6211 # config.status only pays attention to the cache file if you give it
6212 # the --recheck option to rerun configure.
6213 #
6214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6216 # following values.
6217
6218 _ACEOF
6219
6220 # The following way of writing the cache mishandles newlines in values,
6221 # but we know of no workaround that is simple, portable, and efficient.
6222 # So, don't put newlines in cache variables' values.
6223 # Ultrix sh set writes to stderr and can't be redirected directly,
6224 # and sets the high bit in the cache file unless we assign to the vars.
6225 {
6226   (set) 2>&1 |
6227     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6228     *ac_space=\ *)
6229       # `set' does not quote correctly, so add quotes (double-quote
6230       # substitution turns \\\\ into \\, and sed turns \\ into \).
6231       sed -n \
6232         "s/'/'\\\\''/g;
6233           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6234       ;;
6235     *)
6236       # `set' quotes correctly as required by POSIX, so do not add quotes.
6237       sed -n \
6238         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6239       ;;
6240     esac;
6241 } |
6242   sed '
6243      t clear
6244      : clear
6245      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6246      t end
6247      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6248      : end' >>confcache
6249 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6250   if test -w $cache_file; then
6251     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6252     cat confcache >$cache_file
6253   else
6254     echo "not updating unwritable cache $cache_file"
6255   fi
6256 fi
6257 rm -f confcache
6258
6259 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6260 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6261 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6262 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6263 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6264 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6265 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6266 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6267 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6268 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6269 echo "$as_me: error: libtool configure failed" >&2;}
6270    { (exit 1); exit 1; }; }
6271
6272 # Reload cache, that may have been modified by ltconfig
6273 if test -r "$cache_file"; then
6274   # Some versions of bash will fail to source /dev/null (special
6275   # files actually), so we avoid doing that.
6276   if test -f "$cache_file"; then
6277     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6278 echo "$as_me: loading cache $cache_file" >&6;}
6279     case $cache_file in
6280       [\\/]* | ?:[\\/]* ) . $cache_file;;
6281       *)                      . ./$cache_file;;
6282     esac
6283   fi
6284 else
6285   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6286 echo "$as_me: creating cache $cache_file" >&6;}
6287   >$cache_file
6288 fi
6289
6290
6291 # This can be used to rebuild libtool when needed
6292 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6293
6294 # Always use our own libtool.
6295 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6296
6297 # Redirect the config.log output again, so that the ltconfig log is not
6298 # clobbered by the next message.
6299 exec 5>>./config.log
6300
6301 ac_ext=cc
6302 ac_cpp='$CXXCPP $CPPFLAGS'
6303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6306 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6307 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6308 if test -z "$CXXCPP"; then
6309   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312       # Double quotes because CXXCPP needs to be expanded
6313     for CXXCPP in "$CXX -E" "/lib/cpp"
6314     do
6315       ac_preproc_ok=false
6316 for ac_cxx_preproc_warn_flag in '' yes
6317 do
6318   # Use a header file that comes with gcc, so configuring glibc
6319   # with a fresh cross-compiler works.
6320   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6321   # <limits.h> exists even on freestanding compilers.
6322   # On the NeXT, cc -E runs the code through the compiler's parser,
6323   # not just through cpp. "Syntax error" is here to catch this case.
6324   cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330 #ifdef __STDC__
6331 # include <limits.h>
6332 #else
6333 # include <assert.h>
6334 #endif
6335                      Syntax error
6336 _ACEOF
6337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6339   ac_status=$?
6340   grep -v '^ *+' conftest.er1 >conftest.err
6341   rm -f conftest.er1
6342   cat conftest.err >&5
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } >/dev/null; then
6345   if test -s conftest.err; then
6346     ac_cpp_err=$ac_cxx_preproc_warn_flag
6347     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6348   else
6349     ac_cpp_err=
6350   fi
6351 else
6352   ac_cpp_err=yes
6353 fi
6354 if test -z "$ac_cpp_err"; then
6355   :
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360   # Broken: fails on valid input.
6361 continue
6362 fi
6363 rm -f conftest.err conftest.$ac_ext
6364
6365   # OK, works on sane cases.  Now check whether non-existent headers
6366   # can be detected and how.
6367   cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h.  */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h.  */
6373 #include <ac_nonexistent.h>
6374 _ACEOF
6375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6377   ac_status=$?
6378   grep -v '^ *+' conftest.er1 >conftest.err
6379   rm -f conftest.er1
6380   cat conftest.err >&5
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); } >/dev/null; then
6383   if test -s conftest.err; then
6384     ac_cpp_err=$ac_cxx_preproc_warn_flag
6385     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6386   else
6387     ac_cpp_err=
6388   fi
6389 else
6390   ac_cpp_err=yes
6391 fi
6392 if test -z "$ac_cpp_err"; then
6393   # Broken: success on invalid input.
6394 continue
6395 else
6396   echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399   # Passes both tests.
6400 ac_preproc_ok=:
6401 break
6402 fi
6403 rm -f conftest.err conftest.$ac_ext
6404
6405 done
6406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6407 rm -f conftest.err conftest.$ac_ext
6408 if $ac_preproc_ok; then
6409   break
6410 fi
6411
6412     done
6413     ac_cv_prog_CXXCPP=$CXXCPP
6414
6415 fi
6416   CXXCPP=$ac_cv_prog_CXXCPP
6417 else
6418   ac_cv_prog_CXXCPP=$CXXCPP
6419 fi
6420 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6421 echo "${ECHO_T}$CXXCPP" >&6
6422 ac_preproc_ok=false
6423 for ac_cxx_preproc_warn_flag in '' yes
6424 do
6425   # Use a header file that comes with gcc, so configuring glibc
6426   # with a fresh cross-compiler works.
6427   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6428   # <limits.h> exists even on freestanding compilers.
6429   # On the NeXT, cc -E runs the code through the compiler's parser,
6430   # not just through cpp. "Syntax error" is here to catch this case.
6431   cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437 #ifdef __STDC__
6438 # include <limits.h>
6439 #else
6440 # include <assert.h>
6441 #endif
6442                      Syntax error
6443 _ACEOF
6444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } >/dev/null; then
6452   if test -s conftest.err; then
6453     ac_cpp_err=$ac_cxx_preproc_warn_flag
6454     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6455   else
6456     ac_cpp_err=
6457   fi
6458 else
6459   ac_cpp_err=yes
6460 fi
6461 if test -z "$ac_cpp_err"; then
6462   :
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467   # Broken: fails on valid input.
6468 continue
6469 fi
6470 rm -f conftest.err conftest.$ac_ext
6471
6472   # OK, works on sane cases.  Now check whether non-existent headers
6473   # can be detected and how.
6474   cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h.  */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h.  */
6480 #include <ac_nonexistent.h>
6481 _ACEOF
6482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6484   ac_status=$?
6485   grep -v '^ *+' conftest.er1 >conftest.err
6486   rm -f conftest.er1
6487   cat conftest.err >&5
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } >/dev/null; then
6490   if test -s conftest.err; then
6491     ac_cpp_err=$ac_cxx_preproc_warn_flag
6492     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6493   else
6494     ac_cpp_err=
6495   fi
6496 else
6497   ac_cpp_err=yes
6498 fi
6499 if test -z "$ac_cpp_err"; then
6500   # Broken: success on invalid input.
6501 continue
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506   # Passes both tests.
6507 ac_preproc_ok=:
6508 break
6509 fi
6510 rm -f conftest.err conftest.$ac_ext
6511
6512 done
6513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6514 rm -f conftest.err conftest.$ac_ext
6515 if $ac_preproc_ok; then
6516   :
6517 else
6518   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6519 See \`config.log' for more details." >&5
6520 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6521 See \`config.log' for more details." >&2;}
6522    { (exit 1); exit 1; }; }
6523 fi
6524
6525 ac_ext=c
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6530
6531
6532
6533 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6534 lt_save_CC="$CC"
6535 lt_save_CFLAGS="$CFLAGS"
6536 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6537 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6538 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6539 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6540 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6541 deplibs_check_method="$deplibs_check_method" \
6542 file_magic_cmd="$file_magic_cmd" \
6543 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6544 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6545 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6546 echo "$as_me: error: libtool tag configuration failed" >&2;}
6547    { (exit 1); exit 1; }; }
6548 CC="$lt_save_CC"
6549 CFLAGS="$lt_save_CFLAGS"
6550
6551 # Redirect the config.log output again, so that the ltconfig log is not
6552 # clobbered by the next message.
6553 exec 5>>./config.log
6554
6555
6556
6557
6558
6559
6560
6561 for ac_prog in gcj
6562 do
6563   # Extract the first word of "$ac_prog", so it can be a program name with args.
6564 set dummy $ac_prog; ac_word=$2
6565 echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6567 if test "${ac_cv_prog_GCJ+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   if test -n "$GCJ"; then
6571   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576   IFS=$as_save_IFS
6577   test -z "$as_dir" && as_dir=.
6578   for ac_exec_ext in '' $ac_executable_extensions; do
6579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580     ac_cv_prog_GCJ="$ac_prog"
6581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582     break 2
6583   fi
6584 done
6585 done
6586
6587 fi
6588 fi
6589 GCJ=$ac_cv_prog_GCJ
6590 if test -n "$GCJ"; then
6591   echo "$as_me:$LINENO: result: $GCJ" >&5
6592 echo "${ECHO_T}$GCJ" >&6
6593 else
6594   echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6
6596 fi
6597
6598   test -n "$GCJ" && break
6599 done
6600 test -n "$GCJ" || GCJ="gcj"
6601
6602 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6603 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6604    { (exit 1); exit 1; }; }
6605 if test "x${GCJFLAGS-unset}" = xunset; then
6606    GCJFLAGS="-g -O2"
6607 fi
6608
6609
6610 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6611
6612 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6613 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6614 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6618   # We make a subdir and do the tests there.  Otherwise we can end up
6619   # making bogus files that we don't know about and never remove.  For
6620   # instance it was reported that on HP-UX the gcc test will end up
6621   # making a dummy file named `D' -- because `-MD' means `put the output
6622   # in D'.
6623   mkdir conftest.dir
6624   # Copy depcomp to subdir because otherwise we won't find it if we're
6625   # using a relative directory.
6626   cp "$am_depcomp" conftest.dir
6627   cd conftest.dir
6628   # We will build objects and dependencies in a subdirectory because
6629   # it helps to detect inapplicable dependency modes.  For instance
6630   # both Tru64's cc and ICC support -MD to output dependencies as a
6631   # side effect of compilation, but ICC will put the dependencies in
6632   # the current directory while Tru64 will put them in the object
6633   # directory.
6634   mkdir sub
6635
6636   am_cv_GCJ_dependencies_compiler_type=none
6637   if test "$am_compiler_list" = ""; then
6638      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6639   fi
6640   for depmode in $am_compiler_list; do
6641     # Setup a source with many dependencies, because some compilers
6642     # like to wrap large dependency lists on column 80 (with \), and
6643     # we should not choose a depcomp mode which is confused by this.
6644     #
6645     # We need to recreate these files for each test, as the compiler may
6646     # overwrite some of them when testing with obscure command lines.
6647     # This happens at least with the AIX C compiler.
6648     : > sub/conftest.c
6649     for i in 1 2 3 4 5 6; do
6650       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6651       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6652       # Solaris 8's {/usr,}/bin/sh.
6653       touch sub/conftst$i.h
6654     done
6655     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6656
6657     case $depmode in
6658     nosideeffect)
6659       # after this tag, mechanisms are not by side-effect, so they'll
6660       # only be used when explicitly requested
6661       if test "x$enable_dependency_tracking" = xyes; then
6662         continue
6663       else
6664         break
6665       fi
6666       ;;
6667     none) break ;;
6668     esac
6669     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6670     # mode.  It turns out that the SunPro C++ compiler does not properly
6671     # handle `-M -o', and we need to detect this.
6672     if depmode=$depmode \
6673        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6674        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6675        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6676          >/dev/null 2>conftest.err &&
6677        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6678        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6679        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6680       # icc doesn't choke on unknown options, it will just issue warnings
6681       # or remarks (even with -Werror).  So we grep stderr for any message
6682       # that says an option was ignored or not supported.
6683       # When given -MP, icc 7.0 and 7.1 complain thusly:
6684       #   icc: Command line warning: ignoring option '-M'; no argument required
6685       # The diagnosis changed in icc 8.0:
6686       #   icc: Command line remark: option '-MP' not supported
6687       if (grep 'ignoring option' conftest.err ||
6688           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6689         am_cv_GCJ_dependencies_compiler_type=$depmode
6690         break
6691       fi
6692     fi
6693   done
6694
6695   cd ..
6696   rm -rf conftest.dir
6697 else
6698   am_cv_GCJ_dependencies_compiler_type=none
6699 fi
6700
6701 fi
6702 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6703 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6704 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6705
6706
6707
6708 if
6709   test "x$enable_dependency_tracking" != xno \
6710   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6711   am__fastdepGCJ_TRUE=
6712   am__fastdepGCJ_FALSE='#'
6713 else
6714   am__fastdepGCJ_TRUE='#'
6715   am__fastdepGCJ_FALSE=
6716 fi
6717
6718
6719
6720
6721 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6722 lt_save_CC="$CC"
6723 lt_save_CFLAGS="$CFLAGS"
6724 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6725 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6726 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6727 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6728 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6729 deplibs_check_method="$deplibs_check_method" \
6730 file_magic_cmd="$file_magic_cmd" \
6731 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6732 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6733 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6734 echo "$as_me: error: libtool tag configuration failed" >&2;}
6735    { (exit 1); exit 1; }; }
6736 CC="$lt_save_CC"
6737 CFLAGS="$lt_save_CFLAGS"
6738
6739 # Redirect the config.log output again, so that the ltconfig log is not
6740 # clobbered by the next message.
6741 exec 5>>./config.log
6742
6743
6744
6745 if test "x$CC" != xcc; then
6746   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6747 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6748 else
6749   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6750 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6751 fi
6752 set dummy $CC; ac_cc=`echo $2 |
6753                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6754 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h.  */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h.  */
6763
6764 int
6765 main ()
6766 {
6767
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 # Make sure it works both with $CC and with simple cc.
6773 # We do the test twice because some compilers refuse to overwrite an
6774 # existing .o file with -o, though they will create one.
6775 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6776 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); } &&
6781    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); };
6786 then
6787   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6788   if test "x$CC" != xcc; then
6789     # Test first that cc exists at all.
6790     if { ac_try='cc -c conftest.$ac_ext >&5'
6791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792   (eval $ac_try) 2>&5
6793   ac_status=$?
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); }; }; then
6796       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6797       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); } &&
6802          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803   (eval $ac_try) 2>&5
6804   ac_status=$?
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); };
6807       then
6808         # cc works too.
6809         :
6810       else
6811         # cc exists but doesn't like -o.
6812         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6813       fi
6814     fi
6815   fi
6816 else
6817   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6818 fi
6819 rm -f conftest*
6820
6821 fi
6822 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6823   echo "$as_me:$LINENO: result: yes" >&5
6824 echo "${ECHO_T}yes" >&6
6825 else
6826   echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6
6828
6829 cat >>confdefs.h <<\_ACEOF
6830 #define NO_MINUS_C_MINUS_O 1
6831 _ACEOF
6832
6833 fi
6834
6835 # FIXME: we rely on the cache variable name because
6836 # there is no other way.
6837 set dummy $CC
6838 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6839 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6840    # Losing compiler, so override with the script.
6841    # FIXME: It is wrong to rewrite CC.
6842    # But if we don't then we get into trouble of one sort or another.
6843    # A longer-term fix would be to have automake use am__CC in this case,
6844    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6845    CC="$am_aux_dir/compile $CC"
6846 fi
6847
6848
6849
6850
6851 subdirs="$subdirs classpath libltdl"
6852
6853
6854 # The -no-testsuite modules omit the test subdir.
6855
6856
6857 if test -d $srcdir/testsuite; then
6858   TESTSUBDIR_TRUE=
6859   TESTSUBDIR_FALSE='#'
6860 else
6861   TESTSUBDIR_TRUE='#'
6862   TESTSUBDIR_FALSE=
6863 fi
6864
6865
6866 # Should the runtime set system properties by examining the
6867 # environment variable GCJ_PROPERTIES?
6868 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6869 if test "${enable_getenv_properties+set}" = set; then
6870   enableval="$enable_getenv_properties"
6871
6872 fi;
6873
6874 # Whether GCJ_PROPERTIES is used depends on the target.
6875 if test -z "$enable_getenv_properties"; then
6876    enable_getenv_properties=${enable_getenv_properties_default-yes}
6877 fi
6878 if test "$enable_getenv_properties" = no; then
6879
6880 cat >>confdefs.h <<\_ACEOF
6881 #define DISABLE_GETENV_PROPERTIES 1
6882 _ACEOF
6883
6884 fi
6885
6886 # Whether we should use arguments to main()
6887 if test -z "$enable_main_args"; then
6888    enable_main_args=${enable_main_args_default-yes}
6889 fi
6890 if test "$enable_main_args" = no; then
6891
6892 cat >>confdefs.h <<\_ACEOF
6893 #define DISABLE_MAIN_ARGS 1
6894 _ACEOF
6895
6896 fi
6897
6898
6899 # Should we use hashtable-based synchronization?
6900 # Currently works only for Linux X86/ia64
6901 # Typically faster and more space-efficient
6902 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6903 if test "${enable_hash_synchronization+set}" = set; then
6904   enableval="$enable_hash_synchronization"
6905
6906 fi;
6907
6908 if test -z "$enable_hash_synchronization"; then
6909    enable_hash_synchronization=$enable_hash_synchronization_default
6910 fi
6911
6912
6913 install_ecj_jar=no
6914 ECJ_BUILD_JAR=
6915 ECJ_JAR=
6916
6917 # Check whether --with-ecj-jar or --without-ecj-jar was given.
6918 if test "${with_ecj_jar+set}" = set; then
6919   withval="$with_ecj_jar"
6920   ECJ_JAR=$withval
6921 else
6922   if test -f $multi_basedir/ecj.jar; then
6923            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
6924            ECJ_JAR='$(jardir)/ecj.jar'
6925            install_ecj_jar=yes
6926          fi
6927 fi;
6928
6929
6930
6931
6932 if test "$ECJ_JAR" != ""; then
6933   BUILD_ECJ1_TRUE=
6934   BUILD_ECJ1_FALSE='#'
6935 else
6936   BUILD_ECJ1_TRUE='#'
6937   BUILD_ECJ1_FALSE=
6938 fi
6939
6940
6941
6942 if test $install_ecj_jar = yes; then
6943   INSTALL_ECJ_JAR_TRUE=
6944   INSTALL_ECJ_JAR_FALSE='#'
6945 else
6946   INSTALL_ECJ_JAR_TRUE='#'
6947   INSTALL_ECJ_JAR_FALSE=
6948 fi
6949
6950
6951
6952 # Check whether --with-java-home or --without-java-home was given.
6953 if test "${with_java_home+set}" = set; then
6954   withval="$with_java_home"
6955   JAVA_HOME="${withval}"
6956 else
6957   JAVA_HOME=""
6958 fi;
6959
6960
6961 if test ! -z "$JAVA_HOME"; then
6962   JAVA_HOME_SET_TRUE=
6963   JAVA_HOME_SET_FALSE='#'
6964 else
6965   JAVA_HOME_SET_TRUE='#'
6966   JAVA_HOME_SET_FALSE=
6967 fi
6968
6969
6970
6971 # What is the native OS API for MinGW?
6972
6973 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6974 if test "${with_win32_nlsapi+set}" = set; then
6975   withval="$with_win32_nlsapi"
6976   case "${withval}" in
6977   ansi) with_win32_nlsapi=ansi ;;
6978   unicows) with_win32_nlsapi=unicows ;;
6979   unicode) with_win32_nlsapi=unicode ;;
6980   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6981 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6982    { (exit 1); exit 1; }; } ;;
6983 esac
6984 else
6985   with_win32_nlsapi=ansi
6986 fi;
6987
6988 case "${with_win32_nlsapi}" in
6989   unicows | unicode)
6990
6991 cat >>confdefs.h <<\_ACEOF
6992 #define MINGW_LIBGCJ_UNICODE 1
6993 _ACEOF
6994
6995     ;;
6996 esac
6997
6998 # configure.host sets slow_pthread_self if the synchronization code should
6999 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7000 if test "${slow_pthread_self}" = "yes"; then
7001
7002 cat >>confdefs.h <<\_ACEOF
7003 #define SLOW_PTHREAD_SELF 1
7004 _ACEOF
7005
7006 fi
7007
7008 # Check for gc debugging.  This option is handled both here and in the GC.
7009 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7010 if test "${enable_gc_debug+set}" = set; then
7011   enableval="$enable_gc_debug"
7012    if test "$enable_gc_debug" = "yes"; then
7013
7014 cat >>confdefs.h <<\_ACEOF
7015 #define LIBGCJ_GC_DEBUG 1
7016 _ACEOF
7017
7018   fi
7019 fi;
7020
7021 # See if the user has the interpreter included.
7022 # Check whether --enable-interpreter or --disable-interpreter was given.
7023 if test "${enable_interpreter+set}" = set; then
7024   enableval="$enable_interpreter"
7025   if test "$enable_interpreter" = yes; then
7026     # This can also be set in configure.host.
7027     libgcj_interpreter=yes
7028   elif test "$enable_interpreter" = no; then
7029     libgcj_interpreter=no
7030   fi
7031 fi;
7032
7033 if test "$libgcj_interpreter" = yes; then
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define INTERPRETER 1
7037 _ACEOF
7038
7039 fi
7040 INTERPRETER="$libgcj_interpreter"
7041
7042
7043 echo "$as_me:$LINENO: checking for exception model to use" >&5
7044 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7045 ac_ext=cc
7046 ac_cpp='$CXXCPP $CPPFLAGS'
7047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7050
7051 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7052 if test "${enable_sjlj_exceptions+set}" = set; then
7053   enableval="$enable_sjlj_exceptions"
7054   :
7055 else
7056   cat > conftest.$ac_ext << EOF
7057 #line 7057 "configure"
7058 struct S { ~S(); };
7059 void bar();
7060 void foo()
7061 {
7062   S s;
7063   bar();
7064 }
7065 EOF
7066 old_CXXFLAGS="$CXXFLAGS"
7067 CXXFLAGS=-S
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069   (eval $ac_compile) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; then
7073   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7074     enable_sjlj_exceptions=yes
7075   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7076     enable_sjlj_exceptions=no
7077   fi
7078 fi
7079 CXXFLAGS="$old_CXXFLAGS"
7080 rm -f conftest*
7081 fi;
7082 if test x$enable_sjlj_exceptions = xyes; then
7083
7084 cat >>confdefs.h <<\_ACEOF
7085 #define SJLJ_EXCEPTIONS 1
7086 _ACEOF
7087
7088   ac_exception_model_name=sjlj
7089 elif test x$enable_sjlj_exceptions = xno; then
7090   ac_exception_model_name="call frame"
7091 else
7092   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7093 echo "$as_me: error: unable to detect exception model" >&2;}
7094    { (exit 1); exit 1; }; }
7095 fi
7096 ac_ext=c
7097 ac_cpp='$CPP $CPPFLAGS'
7098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7101
7102 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7103 echo "${ECHO_T}$ac_exception_model_name" >&6
7104
7105 # If we are non using SJLJ exceptions, and this host does not have support
7106 # for unwinding from a signal handler, enable checked dereferences and divides.
7107 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7108   CHECKREFSPEC=-fcheck-references
7109   DIVIDESPEC=-fuse-divide-subroutine
7110   EXCEPTIONSPEC=
7111 fi
7112
7113 # See if the user wants to disable java.net.  This is the mildly
7114 # ugly way that we admit that target-side configuration sucks.
7115 # Check whether --enable-java-net or --disable-java-net was given.
7116 if test "${enable_java_net+set}" = set; then
7117   enableval="$enable_java_net"
7118
7119 fi;
7120
7121 # Whether java.net is built by default can depend on the target.
7122 if test -z "$enable_java_net"; then
7123    enable_java_net=${enable_java_net_default-yes}
7124 fi
7125 if test "$enable_java_net" = no; then
7126
7127 cat >>confdefs.h <<\_ACEOF
7128 #define DISABLE_JAVA_NET 1
7129 _ACEOF
7130
7131 fi
7132
7133 # See if the user wants to configure without libffi.  Some
7134 # architectures don't support it, and default values are set in
7135 # configure.host.
7136
7137 # Check whether --with-libffi or --without-libffi was given.
7138 if test "${with_libffi+set}" = set; then
7139   withval="$with_libffi"
7140   :
7141 else
7142   with_libffi=${with_libffi_default-yes}
7143 fi;
7144
7145 LIBFFI=
7146 LIBFFIINCS=
7147 if test "$with_libffi" != no; then
7148
7149 cat >>confdefs.h <<\_ACEOF
7150 #define USE_LIBFFI 1
7151 _ACEOF
7152
7153    LIBFFI=../libffi/libffi_convenience.la
7154    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7155 fi
7156
7157
7158
7159 # See if the user wants to disable JVMPI support.
7160 # Check whether --enable-jvmpi or --disable-jvmpi was given.
7161 if test "${enable_jvmpi+set}" = set; then
7162   enableval="$enable_jvmpi"
7163
7164 fi;
7165
7166 if test "$enable_jvmpi" != no; then
7167
7168 cat >>confdefs.h <<\_ACEOF
7169 #define ENABLE_JVMPI 1
7170 _ACEOF
7171
7172 fi
7173
7174 # If the target is an eCos system, use the appropriate eCos
7175 # I/O routines.
7176 # FIXME: this should not be a local option but a global target
7177 # system; at present there is no eCos target.
7178 TARGET_ECOS=${PROCESS-"no"}
7179
7180 # Check whether --with-ecos or --without-ecos was given.
7181 if test "${with_ecos+set}" = set; then
7182   withval="$with_ecos"
7183   TARGET_ECOS="$with_ecos"
7184
7185 fi;
7186
7187 case "$TARGET_ECOS" in
7188    no) case "$host" in
7189       *mingw*)
7190             PLATFORM=Win32
7191             PLATFORMNET=Win32
7192             PLATFORMH=win32.h
7193
7194 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7195 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7196 LD_PROG=`$CC --print-prog-name=ld`
7197 LD_VERSION=`$LD_PROG --version`
7198 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7199 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7200 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7201   LD_OK="ok"
7202 else
7203   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7204     LD_OK="ok"
7205   fi
7206 fi
7207 if test "x$LD_OK" != x; then
7208   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7209 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7210 else
7211   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7212 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7213   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7214 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7215
7216 cat >>confdefs.h <<\_ACEOF
7217 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7218 _ACEOF
7219
7220 fi
7221       ;;
7222       *)
7223             PLATFORM=Posix
7224             PLATFORMNET=Posix
7225             PLATFORMH=posix.h
7226       ;;
7227       esac
7228       ;;
7229    *)
7230       PLATFORM=Ecos
7231       PLATFORMNET=NoNet
7232
7233 cat >>confdefs.h <<\_ACEOF
7234 #define ECOS 1
7235 _ACEOF
7236
7237       PLATFORMH=posix.h
7238       ;;
7239 esac
7240
7241           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7242
7243
7244 ac_ext=c
7245 ac_cpp='$CPP $CPPFLAGS'
7246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7249 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7250 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7251 # On Suns, sometimes $CPP names a directory.
7252 if test -n "$CPP" && test -d "$CPP"; then
7253   CPP=
7254 fi
7255 if test -z "$CPP"; then
7256   if test "${ac_cv_prog_CPP+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259       # Double quotes because CPP needs to be expanded
7260     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7261     do
7262       ac_preproc_ok=false
7263 for ac_c_preproc_warn_flag in '' yes
7264 do
7265   # Use a header file that comes with gcc, so configuring glibc
7266   # with a fresh cross-compiler works.
7267   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7268   # <limits.h> exists even on freestanding compilers.
7269   # On the NeXT, cc -E runs the code through the compiler's parser,
7270   # not just through cpp. "Syntax error" is here to catch this case.
7271   cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h.  */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h.  */
7277 #ifdef __STDC__
7278 # include <limits.h>
7279 #else
7280 # include <assert.h>
7281 #endif
7282                      Syntax error
7283 _ACEOF
7284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7286   ac_status=$?
7287   grep -v '^ *+' conftest.er1 >conftest.err
7288   rm -f conftest.er1
7289   cat conftest.err >&5
7290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291   (exit $ac_status); } >/dev/null; then
7292   if test -s conftest.err; then
7293     ac_cpp_err=$ac_c_preproc_warn_flag
7294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7295   else
7296     ac_cpp_err=
7297   fi
7298 else
7299   ac_cpp_err=yes
7300 fi
7301 if test -z "$ac_cpp_err"; then
7302   :
7303 else
7304   echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307   # Broken: fails on valid input.
7308 continue
7309 fi
7310 rm -f conftest.err conftest.$ac_ext
7311
7312   # OK, works on sane cases.  Now check whether non-existent headers
7313   # can be detected and how.
7314   cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h.  */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h.  */
7320 #include <ac_nonexistent.h>
7321 _ACEOF
7322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7324   ac_status=$?
7325   grep -v '^ *+' conftest.er1 >conftest.err
7326   rm -f conftest.er1
7327   cat conftest.err >&5
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); } >/dev/null; then
7330   if test -s conftest.err; then
7331     ac_cpp_err=$ac_c_preproc_warn_flag
7332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7333   else
7334     ac_cpp_err=
7335   fi
7336 else
7337   ac_cpp_err=yes
7338 fi
7339 if test -z "$ac_cpp_err"; then
7340   # Broken: success on invalid input.
7341 continue
7342 else
7343   echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346   # Passes both tests.
7347 ac_preproc_ok=:
7348 break
7349 fi
7350 rm -f conftest.err conftest.$ac_ext
7351
7352 done
7353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7354 rm -f conftest.err conftest.$ac_ext
7355 if $ac_preproc_ok; then
7356   break
7357 fi
7358
7359     done
7360     ac_cv_prog_CPP=$CPP
7361
7362 fi
7363   CPP=$ac_cv_prog_CPP
7364 else
7365   ac_cv_prog_CPP=$CPP
7366 fi
7367 echo "$as_me:$LINENO: result: $CPP" >&5
7368 echo "${ECHO_T}$CPP" >&6
7369 ac_preproc_ok=false
7370 for ac_c_preproc_warn_flag in '' yes
7371 do
7372   # Use a header file that comes with gcc, so configuring glibc
7373   # with a fresh cross-compiler works.
7374   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7375   # <limits.h> exists even on freestanding compilers.
7376   # On the NeXT, cc -E runs the code through the compiler's parser,
7377   # not just through cpp. "Syntax error" is here to catch this case.
7378   cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h.  */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h.  */
7384 #ifdef __STDC__
7385 # include <limits.h>
7386 #else
7387 # include <assert.h>
7388 #endif
7389                      Syntax error
7390 _ACEOF
7391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7392   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7393   ac_status=$?
7394   grep -v '^ *+' conftest.er1 >conftest.err
7395   rm -f conftest.er1
7396   cat conftest.err >&5
7397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398   (exit $ac_status); } >/dev/null; then
7399   if test -s conftest.err; then
7400     ac_cpp_err=$ac_c_preproc_warn_flag
7401     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7402   else
7403     ac_cpp_err=
7404   fi
7405 else
7406   ac_cpp_err=yes
7407 fi
7408 if test -z "$ac_cpp_err"; then
7409   :
7410 else
7411   echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414   # Broken: fails on valid input.
7415 continue
7416 fi
7417 rm -f conftest.err conftest.$ac_ext
7418
7419   # OK, works on sane cases.  Now check whether non-existent headers
7420   # can be detected and how.
7421   cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h.  */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h.  */
7427 #include <ac_nonexistent.h>
7428 _ACEOF
7429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7431   ac_status=$?
7432   grep -v '^ *+' conftest.er1 >conftest.err
7433   rm -f conftest.er1
7434   cat conftest.err >&5
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); } >/dev/null; then
7437   if test -s conftest.err; then
7438     ac_cpp_err=$ac_c_preproc_warn_flag
7439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7440   else
7441     ac_cpp_err=
7442   fi
7443 else
7444   ac_cpp_err=yes
7445 fi
7446 if test -z "$ac_cpp_err"; then
7447   # Broken: success on invalid input.
7448 continue
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453   # Passes both tests.
7454 ac_preproc_ok=:
7455 break
7456 fi
7457 rm -f conftest.err conftest.$ac_ext
7458
7459 done
7460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7461 rm -f conftest.err conftest.$ac_ext
7462 if $ac_preproc_ok; then
7463   :
7464 else
7465   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7466 See \`config.log' for more details." >&5
7467 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7468 See \`config.log' for more details." >&2;}
7469    { (exit 1); exit 1; }; }
7470 fi
7471
7472 ac_ext=c
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478
7479 echo "$as_me:$LINENO: checking for egrep" >&5
7480 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7481 if test "${ac_cv_prog_egrep+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7485     then ac_cv_prog_egrep='grep -E'
7486     else ac_cv_prog_egrep='egrep'
7487     fi
7488 fi
7489 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7490 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7491  EGREP=$ac_cv_prog_egrep
7492
7493
7494 cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h.  */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h.  */
7500 #include <stdint.h>
7501
7502 _ACEOF
7503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7504   $EGREP "uint32_t" >/dev/null 2>&1; then
7505
7506 cat >>confdefs.h <<\_ACEOF
7507 #define HAVE_INT32_DEFINED 1
7508 _ACEOF
7509
7510 fi
7511 rm -f conftest*
7512
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519 #include <inttypes.h>
7520
7521 _ACEOF
7522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523   $EGREP "uint32_t" >/dev/null 2>&1; then
7524
7525 cat >>confdefs.h <<\_ACEOF
7526 #define HAVE_INT32_DEFINED 1
7527 _ACEOF
7528
7529 fi
7530 rm -f conftest*
7531
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538 #include <sys/types.h>
7539
7540 _ACEOF
7541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542   $EGREP "u_int32_t" >/dev/null 2>&1; then
7543
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_BSD_INT32_DEFINED 1
7546 _ACEOF
7547
7548 fi
7549 rm -f conftest*
7550
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557 #include <sys/config.h>
7558
7559 _ACEOF
7560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561   $EGREP "u_int32_t" >/dev/null 2>&1; then
7562
7563 cat >>confdefs.h <<\_ACEOF
7564 #define HAVE_BSD_INT32_DEFINED 1
7565 _ACEOF
7566
7567 fi
7568 rm -f conftest*
7569
7570
7571
7572
7573 if test "$PLATFORM" = Win32; then
7574   USING_WIN32_PLATFORM_TRUE=
7575   USING_WIN32_PLATFORM_FALSE='#'
7576 else
7577   USING_WIN32_PLATFORM_TRUE='#'
7578   USING_WIN32_PLATFORM_FALSE=
7579 fi
7580
7581
7582
7583 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7584   USING_POSIX_PLATFORM_TRUE=
7585   USING_POSIX_PLATFORM_FALSE='#'
7586 else
7587   USING_POSIX_PLATFORM_TRUE='#'
7588   USING_POSIX_PLATFORM_FALSE=
7589 fi
7590
7591
7592 case "$host" in
7593   *-darwin*) DARWIN_CRT=true ;;
7594   *) DARWIN_CRT=false ;;
7595 esac
7596
7597
7598 if $DARWIN_CRT; then
7599   USING_DARWIN_CRT_TRUE=
7600   USING_DARWIN_CRT_FALSE='#'
7601 else
7602   USING_DARWIN_CRT_TRUE='#'
7603   USING_DARWIN_CRT_FALSE=
7604 fi
7605
7606
7607 # These may not be defined in a non-ANS conformant embedded system.
7608 # FIXME: Should these case a runtime exception in that case?
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h.  */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h.  */
7615 #include <time.h>
7616
7617 _ACEOF
7618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7619   $EGREP "mktime" >/dev/null 2>&1; then
7620
7621 cat >>confdefs.h <<\_ACEOF
7622 #define HAVE_MKTIME 1
7623 _ACEOF
7624
7625 fi
7626 rm -f conftest*
7627
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h.  */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h.  */
7634 #include <time.h>
7635
7636 _ACEOF
7637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7638   $EGREP "localtime" >/dev/null 2>&1; then
7639
7640 cat >>confdefs.h <<\_ACEOF
7641 #define HAVE_LOCALTIME 1
7642 _ACEOF
7643
7644 fi
7645 rm -f conftest*
7646
7647
7648 # Create the subdirectory for natFile.cc, or the attempt
7649 # to create the link will fail.
7650 test -d java || mkdir java
7651 test -d java/io || mkdir java/io
7652 test -d gnu || mkdir gnu
7653           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7654
7655
7656 # Likewise for natConcreteProcess.cc.
7657 test -d java/lang || mkdir java/lang
7658           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7659
7660
7661 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7662 test -d java/net || mkdir java/net
7663           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7664
7665           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7666
7667
7668 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7669 test -d gnu/java || mkdir gnu/java
7670 test -d gnu/java/net || mkdir gnu/java/net
7671           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7672
7673           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7674
7675
7676 # Likewise for natVMPipe.cc and natVMSelector.cc.
7677 test -d gnu/java/nio || mkdir gnu/java/nio
7678           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
7679
7680           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
7681
7682
7683 # Likewise for natFileChannelImpl.cc
7684 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7685           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7686
7687
7688 case "${host}" in
7689     *mingw*)
7690       SYSTEMSPEC="-lgdi32 -lws2_32"
7691       if test "${with_win32_nlsapi}" = "unicows"; then
7692         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7693       fi
7694     ;;
7695     *)
7696       SYSTEMSPEC=
7697     ;;
7698 esac
7699
7700
7701 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7702
7703
7704
7705 # Check whether --with-system-zlib or --without-system-zlib was given.
7706 if test "${with_system_zlib+set}" = set; then
7707   withval="$with_system_zlib"
7708
7709 fi;
7710 ZLIBSPEC=
7711
7712 ZLIBTESTSPEC=
7713
7714
7715 echo "$as_me:$LINENO: checking for X" >&5
7716 echo $ECHO_N "checking for X... $ECHO_C" >&6
7717
7718
7719 # Check whether --with-x or --without-x was given.
7720 if test "${with_x+set}" = set; then
7721   withval="$with_x"
7722
7723 fi;
7724 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7725 if test "x$with_x" = xno; then
7726   # The user explicitly disabled X.
7727   have_x=disabled
7728 else
7729   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7730     # Both variables are already set.
7731     have_x=yes
7732   else
7733     if test "${ac_cv_have_x+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   # One or both of the vars are not set, and there is no cached value.
7737 ac_x_includes=no ac_x_libraries=no
7738 rm -fr conftest.dir
7739 if mkdir conftest.dir; then
7740   cd conftest.dir
7741   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7742   cat >Imakefile <<'_ACEOF'
7743 acfindx:
7744         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7745 _ACEOF
7746   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7747     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7748     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7749     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7750     for ac_extension in a so sl; do
7751       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7752          test -f $ac_im_libdir/libX11.$ac_extension; then
7753         ac_im_usrlibdir=$ac_im_libdir; break
7754       fi
7755     done
7756     # Screen out bogus values from the imake configuration.  They are
7757     # bogus both because they are the default anyway, and because
7758     # using them would break gcc on systems where it needs fixed includes.
7759     case $ac_im_incroot in
7760         /usr/include) ;;
7761         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7762     esac
7763     case $ac_im_usrlibdir in
7764         /usr/lib | /lib) ;;
7765         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7766     esac
7767   fi
7768   cd ..
7769   rm -fr conftest.dir
7770 fi
7771
7772 # Standard set of common directories for X headers.
7773 # Check X11 before X11Rn because it is often a symlink to the current release.
7774 ac_x_header_dirs='
7775 /usr/X11/include
7776 /usr/X11R6/include
7777 /usr/X11R5/include
7778 /usr/X11R4/include
7779
7780 /usr/include/X11
7781 /usr/include/X11R6
7782 /usr/include/X11R5
7783 /usr/include/X11R4
7784
7785 /usr/local/X11/include
7786 /usr/local/X11R6/include
7787 /usr/local/X11R5/include
7788 /usr/local/X11R4/include
7789
7790 /usr/local/include/X11
7791 /usr/local/include/X11R6
7792 /usr/local/include/X11R5
7793 /usr/local/include/X11R4
7794
7795 /usr/X386/include
7796 /usr/x386/include
7797 /usr/XFree86/include/X11
7798
7799 /usr/include
7800 /usr/local/include
7801 /usr/unsupported/include
7802 /usr/athena/include
7803 /usr/local/x11r5/include
7804 /usr/lpp/Xamples/include
7805
7806 /usr/openwin/include
7807 /usr/openwin/share/include'
7808
7809 if test "$ac_x_includes" = no; then
7810   # Guess where to find include files, by looking for Xlib.h.
7811   # First, try using that file with no special directory specified.
7812   cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h.  */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h.  */
7818 #include <X11/Xlib.h>
7819 _ACEOF
7820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7822   ac_status=$?
7823   grep -v '^ *+' conftest.er1 >conftest.err
7824   rm -f conftest.er1
7825   cat conftest.err >&5
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); } >/dev/null; then
7828   if test -s conftest.err; then
7829     ac_cpp_err=$ac_c_preproc_warn_flag
7830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7831   else
7832     ac_cpp_err=
7833   fi
7834 else
7835   ac_cpp_err=yes
7836 fi
7837 if test -z "$ac_cpp_err"; then
7838   # We can compile using X headers with no special include directory.
7839 ac_x_includes=
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844   for ac_dir in $ac_x_header_dirs; do
7845   if test -r "$ac_dir/X11/Xlib.h"; then
7846     ac_x_includes=$ac_dir
7847     break
7848   fi
7849 done
7850 fi
7851 rm -f conftest.err conftest.$ac_ext
7852 fi # $ac_x_includes = no
7853
7854 if test "$ac_x_libraries" = no; then
7855   # Check for the libraries.
7856   # See if we find them without any special options.
7857   # Don't add to $LIBS permanently.
7858   ac_save_LIBS=$LIBS
7859   LIBS="-lXt $LIBS"
7860   if test x$gcc_no_link = xyes; then
7861   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7863    { (exit 1); exit 1; }; }
7864 fi
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h.  */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h.  */
7871 #include <X11/Xlib.h>
7872 int
7873 main ()
7874 {
7875 XrmInitialize ()
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>conftest.er1
7883   ac_status=$?
7884   grep -v '^ *+' conftest.er1 >conftest.err
7885   rm -f conftest.er1
7886   cat conftest.err >&5
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); } &&
7889          { ac_try='test -z "$ac_c_werror_flag"
7890                          || test ! -s conftest.err'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; } &&
7896          { ac_try='test -s conftest$ac_exeext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   LIBS=$ac_save_LIBS
7903 # We can link X programs with no special library path.
7904 ac_x_libraries=
7905 else
7906   echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909 LIBS=$ac_save_LIBS
7910 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7911 do
7912   # Don't even attempt the hair of trying to link an X program!
7913   for ac_extension in a so sl; do
7914     if test -r $ac_dir/libXt.$ac_extension; then
7915       ac_x_libraries=$ac_dir
7916       break 2
7917     fi
7918   done
7919 done
7920 fi
7921 rm -f conftest.err conftest.$ac_objext \
7922       conftest$ac_exeext conftest.$ac_ext
7923 fi # $ac_x_libraries = no
7924
7925 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7926   # Didn't find X anywhere.  Cache the known absence of X.
7927   ac_cv_have_x="have_x=no"
7928 else
7929   # Record where we found X for the cache.
7930   ac_cv_have_x="have_x=yes \
7931                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7932 fi
7933 fi
7934
7935   fi
7936   eval "$ac_cv_have_x"
7937 fi # $with_x != no
7938
7939 if test "$have_x" != yes; then
7940   echo "$as_me:$LINENO: result: $have_x" >&5
7941 echo "${ECHO_T}$have_x" >&6
7942   no_x=yes
7943 else
7944   # If each of the values was on the command line, it overrides each guess.
7945   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7946   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7947   # Update the cache value to reflect the command line values.
7948   ac_cv_have_x="have_x=yes \
7949                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7950   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7951 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7952 fi
7953
7954 if test "$no_x" = yes; then
7955   # Not all programs may use this symbol, but it does not hurt to define it.
7956
7957 cat >>confdefs.h <<\_ACEOF
7958 #define X_DISPLAY_MISSING 1
7959 _ACEOF
7960
7961   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7962 else
7963   if test -n "$x_includes"; then
7964     X_CFLAGS="$X_CFLAGS -I$x_includes"
7965   fi
7966
7967   # It would also be nice to do this for all -L options, not just this one.
7968   if test -n "$x_libraries"; then
7969     X_LIBS="$X_LIBS -L$x_libraries"
7970     # For Solaris; some versions of Sun CC require a space after -R and
7971     # others require no space.  Words are not sufficient . . . .
7972     case `(uname -sr) 2>/dev/null` in
7973     "SunOS 5"*)
7974       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7975 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7976       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7977       if test x$gcc_no_link = xyes; then
7978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7980    { (exit 1); exit 1; }; }
7981 fi
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988
7989 int
7990 main ()
7991 {
7992
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999   (eval $ac_link) 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag"
8007                          || test ! -s conftest.err'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; } &&
8013          { ac_try='test -s conftest$ac_exeext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   ac_R_nospace=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_R_nospace=no
8025 fi
8026 rm -f conftest.err conftest.$ac_objext \
8027       conftest$ac_exeext conftest.$ac_ext
8028       if test $ac_R_nospace = yes; then
8029         echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8031         X_LIBS="$X_LIBS -R$x_libraries"
8032       else
8033         LIBS="$ac_xsave_LIBS -R $x_libraries"
8034         if test x$gcc_no_link = xyes; then
8035   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8037    { (exit 1); exit 1; }; }
8038 fi
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h.  */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h.  */
8045
8046 int
8047 main ()
8048 {
8049
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext conftest$ac_exeext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8056   (eval $ac_link) 2>conftest.er1
8057   ac_status=$?
8058   grep -v '^ *+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } &&
8063          { ac_try='test -z "$ac_c_werror_flag"
8064                          || test ! -s conftest.err'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; } &&
8070          { ac_try='test -s conftest$ac_exeext'
8071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   ac_R_space=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 ac_R_space=no
8082 fi
8083 rm -f conftest.err conftest.$ac_objext \
8084       conftest$ac_exeext conftest.$ac_ext
8085         if test $ac_R_space = yes; then
8086           echo "$as_me:$LINENO: result: yes" >&5
8087 echo "${ECHO_T}yes" >&6
8088           X_LIBS="$X_LIBS -R $x_libraries"
8089         else
8090           echo "$as_me:$LINENO: result: neither works" >&5
8091 echo "${ECHO_T}neither works" >&6
8092         fi
8093       fi
8094       LIBS=$ac_xsave_LIBS
8095     esac
8096   fi
8097
8098   # Check for system-dependent libraries X programs must link with.
8099   # Do this before checking for the system-independent R6 libraries
8100   # (-lICE), since we may need -lsocket or whatever for X linking.
8101
8102   if test "$ISC" = yes; then
8103     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8104   else
8105     # Martyn Johnson says this is needed for Ultrix, if the X
8106     # libraries were built with DECnet support.  And Karl Berry says
8107     # the Alpha needs dnet_stub (dnet does not exist).
8108     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8109     if test x$gcc_no_link = xyes; then
8110   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8112    { (exit 1); exit 1; }; }
8113 fi
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120
8121 /* Override any gcc2 internal prototype to avoid an error.  */
8122 #ifdef __cplusplus
8123 extern "C"
8124 #endif
8125 /* We use char because int might match the return type of a gcc2
8126    builtin and then its argument prototype would still apply.  */
8127 char XOpenDisplay ();
8128 int
8129 main ()
8130 {
8131 XOpenDisplay ();
8132   ;
8133   return 0;
8134 }
8135 _ACEOF
8136 rm -f conftest.$ac_objext conftest$ac_exeext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8138   (eval $ac_link) 2>conftest.er1
8139   ac_status=$?
8140   grep -v '^ *+' conftest.er1 >conftest.err
8141   rm -f conftest.er1
8142   cat conftest.err >&5
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); } &&
8145          { ac_try='test -z "$ac_c_werror_flag"
8146                          || test ! -s conftest.err'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; } &&
8152          { ac_try='test -s conftest$ac_exeext'
8153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154   (eval $ac_try) 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; }; then
8158   :
8159 else
8160   echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8162
8163 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8164 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8165 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8166   echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168   ac_check_lib_save_LIBS=$LIBS
8169 LIBS="-ldnet  $LIBS"
8170 if test x$gcc_no_link = xyes; then
8171   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8172 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8173    { (exit 1); exit 1; }; }
8174 fi
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181
8182 /* Override any gcc2 internal prototype to avoid an error.  */
8183 #ifdef __cplusplus
8184 extern "C"
8185 #endif
8186 /* We use char because int might match the return type of a gcc2
8187    builtin and then its argument prototype would still apply.  */
8188 char dnet_ntoa ();
8189 int
8190 main ()
8191 {
8192 dnet_ntoa ();
8193   ;
8194   return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8199   (eval $ac_link) 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -z "$ac_c_werror_flag"
8207                          || test ! -s conftest.err'
8208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209   (eval $ac_try) 2>&5
8210   ac_status=$?
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); }; } &&
8213          { ac_try='test -s conftest$ac_exeext'
8214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215   (eval $ac_try) 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; }; then
8219   ac_cv_lib_dnet_dnet_ntoa=yes
8220 else
8221   echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224 ac_cv_lib_dnet_dnet_ntoa=no
8225 fi
8226 rm -f conftest.err conftest.$ac_objext \
8227       conftest$ac_exeext conftest.$ac_ext
8228 LIBS=$ac_check_lib_save_LIBS
8229 fi
8230 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8231 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8232 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8233   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8234 fi
8235
8236     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8237       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8238 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8239 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   ac_check_lib_save_LIBS=$LIBS
8243 LIBS="-ldnet_stub  $LIBS"
8244 if test x$gcc_no_link = xyes; then
8245   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8247    { (exit 1); exit 1; }; }
8248 fi
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h.  */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h.  */
8255
8256 /* Override any gcc2 internal prototype to avoid an error.  */
8257 #ifdef __cplusplus
8258 extern "C"
8259 #endif
8260 /* We use char because int might match the return type of a gcc2
8261    builtin and then its argument prototype would still apply.  */
8262 char dnet_ntoa ();
8263 int
8264 main ()
8265 {
8266 dnet_ntoa ();
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273   (eval $ac_link) 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } &&
8280          { ac_try='test -z "$ac_c_werror_flag"
8281                          || test ! -s conftest.err'
8282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283   (eval $ac_try) 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); }; } &&
8287          { ac_try='test -s conftest$ac_exeext'
8288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289   (eval $ac_try) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; }; then
8293   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8294 else
8295   echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8297
8298 ac_cv_lib_dnet_stub_dnet_ntoa=no
8299 fi
8300 rm -f conftest.err conftest.$ac_objext \
8301       conftest$ac_exeext conftest.$ac_ext
8302 LIBS=$ac_check_lib_save_LIBS
8303 fi
8304 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8305 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8306 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8307   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8308 fi
8309
8310     fi
8311 fi
8312 rm -f conftest.err conftest.$ac_objext \
8313       conftest$ac_exeext conftest.$ac_ext
8314     LIBS="$ac_xsave_LIBS"
8315
8316     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8317     # to get the SysV transport functions.
8318     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8319     # needs -lnsl.
8320     # The nsl library prevents programs from opening the X display
8321     # on Irix 5.2, according to T.E. Dickey.
8322     # The functions gethostbyname, getservbyname, and inet_addr are
8323     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8324     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8325 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8326 if test "${ac_cv_func_gethostbyname+set}" = set; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   if test x$gcc_no_link = xyes; then
8330   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8332    { (exit 1); exit 1; }; }
8333 fi
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8342 #define gethostbyname innocuous_gethostbyname
8343
8344 /* System header to define __stub macros and hopefully few prototypes,
8345     which can conflict with char gethostbyname (); below.
8346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8347     <limits.h> exists even on freestanding compilers.  */
8348
8349 #ifdef __STDC__
8350 # include <limits.h>
8351 #else
8352 # include <assert.h>
8353 #endif
8354
8355 #undef gethostbyname
8356
8357 /* Override any gcc2 internal prototype to avoid an error.  */
8358 #ifdef __cplusplus
8359 extern "C"
8360 {
8361 #endif
8362 /* We use char because int might match the return type of a gcc2
8363    builtin and then its argument prototype would still apply.  */
8364 char gethostbyname ();
8365 /* The GNU C library defines this for functions which it implements
8366     to always fail with ENOSYS.  Some functions are actually named
8367     something starting with __ and the normal name is an alias.  */
8368 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8369 choke me
8370 #else
8371 char (*f) () = gethostbyname;
8372 #endif
8373 #ifdef __cplusplus
8374 }
8375 #endif
8376
8377 int
8378 main ()
8379 {
8380 return f != gethostbyname;
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387   (eval $ac_link) 2>conftest.er1
8388   ac_status=$?
8389   grep -v '^ *+' conftest.er1 >conftest.err
8390   rm -f conftest.er1
8391   cat conftest.err >&5
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } &&
8394          { ac_try='test -z "$ac_c_werror_flag"
8395                          || test ! -s conftest.err'
8396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397   (eval $ac_try) 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; } &&
8401          { ac_try='test -s conftest$ac_exeext'
8402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403   (eval $ac_try) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; }; then
8407   ac_cv_func_gethostbyname=yes
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_cv_func_gethostbyname=no
8413 fi
8414 rm -f conftest.err conftest.$ac_objext \
8415       conftest$ac_exeext conftest.$ac_ext
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8418 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8419
8420     if test $ac_cv_func_gethostbyname = no; then
8421       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8422 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8423 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8424   echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426   ac_check_lib_save_LIBS=$LIBS
8427 LIBS="-lnsl  $LIBS"
8428 if test x$gcc_no_link = xyes; then
8429   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8431    { (exit 1); exit 1; }; }
8432 fi
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439
8440 /* Override any gcc2 internal prototype to avoid an error.  */
8441 #ifdef __cplusplus
8442 extern "C"
8443 #endif
8444 /* We use char because int might match the return type of a gcc2
8445    builtin and then its argument prototype would still apply.  */
8446 char gethostbyname ();
8447 int
8448 main ()
8449 {
8450 gethostbyname ();
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457   (eval $ac_link) 2>conftest.er1
8458   ac_status=$?
8459   grep -v '^ *+' conftest.er1 >conftest.err
8460   rm -f conftest.er1
8461   cat conftest.err >&5
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); } &&
8464          { ac_try='test -z "$ac_c_werror_flag"
8465                          || test ! -s conftest.err'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; } &&
8471          { ac_try='test -s conftest$ac_exeext'
8472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473   (eval $ac_try) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; }; then
8477   ac_cv_lib_nsl_gethostbyname=yes
8478 else
8479   echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482 ac_cv_lib_nsl_gethostbyname=no
8483 fi
8484 rm -f conftest.err conftest.$ac_objext \
8485       conftest$ac_exeext conftest.$ac_ext
8486 LIBS=$ac_check_lib_save_LIBS
8487 fi
8488 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8489 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8490 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8491   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8492 fi
8493
8494       if test $ac_cv_lib_nsl_gethostbyname = no; then
8495         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8496 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8497 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   ac_check_lib_save_LIBS=$LIBS
8501 LIBS="-lbsd  $LIBS"
8502 if test x$gcc_no_link = xyes; then
8503   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8505    { (exit 1); exit 1; }; }
8506 fi
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h.  */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h.  */
8513
8514 /* Override any gcc2 internal prototype to avoid an error.  */
8515 #ifdef __cplusplus
8516 extern "C"
8517 #endif
8518 /* We use char because int might match the return type of a gcc2
8519    builtin and then its argument prototype would still apply.  */
8520 char gethostbyname ();
8521 int
8522 main ()
8523 {
8524 gethostbyname ();
8525   ;
8526   return 0;
8527 }
8528 _ACEOF
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531   (eval $ac_link) 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } &&
8538          { ac_try='test -z "$ac_c_werror_flag"
8539                          || test ! -s conftest.err'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; } &&
8545          { ac_try='test -s conftest$ac_exeext'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; }; then
8551   ac_cv_lib_bsd_gethostbyname=yes
8552 else
8553   echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 ac_cv_lib_bsd_gethostbyname=no
8557 fi
8558 rm -f conftest.err conftest.$ac_objext \
8559       conftest$ac_exeext conftest.$ac_ext
8560 LIBS=$ac_check_lib_save_LIBS
8561 fi
8562 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8563 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8564 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8565   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8566 fi
8567
8568       fi
8569     fi
8570
8571     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8572     # socket/setsockopt and other routines are undefined under SCO ODT
8573     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8574     # on later versions), says Simon Leinen: it contains gethostby*
8575     # variants that don't use the name server (or something).  -lsocket
8576     # must be given before -lnsl if both are needed.  We assume that
8577     # if connect needs -lnsl, so does gethostbyname.
8578     echo "$as_me:$LINENO: checking for connect" >&5
8579 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8580 if test "${ac_cv_func_connect+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   if test x$gcc_no_link = xyes; then
8584   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8586    { (exit 1); exit 1; }; }
8587 fi
8588 cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8596 #define connect innocuous_connect
8597
8598 /* System header to define __stub macros and hopefully few prototypes,
8599     which can conflict with char connect (); below.
8600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601     <limits.h> exists even on freestanding compilers.  */
8602
8603 #ifdef __STDC__
8604 # include <limits.h>
8605 #else
8606 # include <assert.h>
8607 #endif
8608
8609 #undef connect
8610
8611 /* Override any gcc2 internal prototype to avoid an error.  */
8612 #ifdef __cplusplus
8613 extern "C"
8614 {
8615 #endif
8616 /* We use char because int might match the return type of a gcc2
8617    builtin and then its argument prototype would still apply.  */
8618 char connect ();
8619 /* The GNU C library defines this for functions which it implements
8620     to always fail with ENOSYS.  Some functions are actually named
8621     something starting with __ and the normal name is an alias.  */
8622 #if defined (__stub_connect) || defined (__stub___connect)
8623 choke me
8624 #else
8625 char (*f) () = connect;
8626 #endif
8627 #ifdef __cplusplus
8628 }
8629 #endif
8630
8631 int
8632 main ()
8633 {
8634 return f != connect;
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641   (eval $ac_link) 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } &&
8648          { ac_try='test -z "$ac_c_werror_flag"
8649                          || test ! -s conftest.err'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; } &&
8655          { ac_try='test -s conftest$ac_exeext'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; }; then
8661   ac_cv_func_connect=yes
8662 else
8663   echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 ac_cv_func_connect=no
8667 fi
8668 rm -f conftest.err conftest.$ac_objext \
8669       conftest$ac_exeext conftest.$ac_ext
8670 fi
8671 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8672 echo "${ECHO_T}$ac_cv_func_connect" >&6
8673
8674     if test $ac_cv_func_connect = no; then
8675       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8676 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8677 if test "${ac_cv_lib_socket_connect+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8682 if test x$gcc_no_link = xyes; then
8683   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8684 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8685    { (exit 1); exit 1; }; }
8686 fi
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693
8694 /* Override any gcc2 internal prototype to avoid an error.  */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699    builtin and then its argument prototype would still apply.  */
8700 char connect ();
8701 int
8702 main ()
8703 {
8704 connect ();
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711   (eval $ac_link) 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } &&
8718          { ac_try='test -z "$ac_c_werror_flag"
8719                          || test ! -s conftest.err'
8720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721   (eval $ac_try) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }; } &&
8725          { ac_try='test -s conftest$ac_exeext'
8726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727   (eval $ac_try) 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; }; then
8731   ac_cv_lib_socket_connect=yes
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 ac_cv_lib_socket_connect=no
8737 fi
8738 rm -f conftest.err conftest.$ac_objext \
8739       conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8743 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8744 if test $ac_cv_lib_socket_connect = yes; then
8745   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8746 fi
8747
8748     fi
8749
8750     # Guillermo Gomez says -lposix is necessary on A/UX.
8751     echo "$as_me:$LINENO: checking for remove" >&5
8752 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8753 if test "${ac_cv_func_remove+set}" = set; then
8754   echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756   if test x$gcc_no_link = xyes; then
8757   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8759    { (exit 1); exit 1; }; }
8760 fi
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8769 #define remove innocuous_remove
8770
8771 /* System header to define __stub macros and hopefully few prototypes,
8772     which can conflict with char remove (); below.
8773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774     <limits.h> exists even on freestanding compilers.  */
8775
8776 #ifdef __STDC__
8777 # include <limits.h>
8778 #else
8779 # include <assert.h>
8780 #endif
8781
8782 #undef remove
8783
8784 /* Override any gcc2 internal prototype to avoid an error.  */
8785 #ifdef __cplusplus
8786 extern "C"
8787 {
8788 #endif
8789 /* We use char because int might match the return type of a gcc2
8790    builtin and then its argument prototype would still apply.  */
8791 char remove ();
8792 /* The GNU C library defines this for functions which it implements
8793     to always fail with ENOSYS.  Some functions are actually named
8794     something starting with __ and the normal name is an alias.  */
8795 #if defined (__stub_remove) || defined (__stub___remove)
8796 choke me
8797 #else
8798 char (*f) () = remove;
8799 #endif
8800 #ifdef __cplusplus
8801 }
8802 #endif
8803
8804 int
8805 main ()
8806 {
8807 return f != remove;
8808   ;
8809   return 0;
8810 }
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814   (eval $ac_link) 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } &&
8821          { ac_try='test -z "$ac_c_werror_flag"
8822                          || test ! -s conftest.err'
8823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824   (eval $ac_try) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); }; } &&
8828          { ac_try='test -s conftest$ac_exeext'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; }; then
8834   ac_cv_func_remove=yes
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ac_cv_func_remove=no
8840 fi
8841 rm -f conftest.err conftest.$ac_objext \
8842       conftest$ac_exeext conftest.$ac_ext
8843 fi
8844 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8845 echo "${ECHO_T}$ac_cv_func_remove" >&6
8846
8847     if test $ac_cv_func_remove = no; then
8848       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8849 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8850 if test "${ac_cv_lib_posix_remove+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lposix  $LIBS"
8855 if test x$gcc_no_link = xyes; then
8856   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8858    { (exit 1); exit 1; }; }
8859 fi
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866
8867 /* Override any gcc2 internal prototype to avoid an error.  */
8868 #ifdef __cplusplus
8869 extern "C"
8870 #endif
8871 /* We use char because int might match the return type of a gcc2
8872    builtin and then its argument prototype would still apply.  */
8873 char remove ();
8874 int
8875 main ()
8876 {
8877 remove ();
8878   ;
8879   return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884   (eval $ac_link) 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -z "$ac_c_werror_flag"
8892                          || test ! -s conftest.err'
8893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894   (eval $ac_try) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }; } &&
8898          { ac_try='test -s conftest$ac_exeext'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   ac_cv_lib_posix_remove=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ac_cv_lib_posix_remove=no
8910 fi
8911 rm -f conftest.err conftest.$ac_objext \
8912       conftest$ac_exeext conftest.$ac_ext
8913 LIBS=$ac_check_lib_save_LIBS
8914 fi
8915 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8916 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8917 if test $ac_cv_lib_posix_remove = yes; then
8918   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8919 fi
8920
8921     fi
8922
8923     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8924     echo "$as_me:$LINENO: checking for shmat" >&5
8925 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8926 if test "${ac_cv_func_shmat+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929   if test x$gcc_no_link = xyes; then
8930   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8931 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8932    { (exit 1); exit 1; }; }
8933 fi
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8942 #define shmat innocuous_shmat
8943
8944 /* System header to define __stub macros and hopefully few prototypes,
8945     which can conflict with char shmat (); below.
8946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8947     <limits.h> exists even on freestanding compilers.  */
8948
8949 #ifdef __STDC__
8950 # include <limits.h>
8951 #else
8952 # include <assert.h>
8953 #endif
8954
8955 #undef shmat
8956
8957 /* Override any gcc2 internal prototype to avoid an error.  */
8958 #ifdef __cplusplus
8959 extern "C"
8960 {
8961 #endif
8962 /* We use char because int might match the return type of a gcc2
8963    builtin and then its argument prototype would still apply.  */
8964 char shmat ();
8965 /* The GNU C library defines this for functions which it implements
8966     to always fail with ENOSYS.  Some functions are actually named
8967     something starting with __ and the normal name is an alias.  */
8968 #if defined (__stub_shmat) || defined (__stub___shmat)
8969 choke me
8970 #else
8971 char (*f) () = shmat;
8972 #endif
8973 #ifdef __cplusplus
8974 }
8975 #endif
8976
8977 int
8978 main ()
8979 {
8980 return f != shmat;
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>conftest.er1
8988   ac_status=$?
8989   grep -v '^ *+' conftest.er1 >conftest.err
8990   rm -f conftest.er1
8991   cat conftest.err >&5
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); } &&
8994          { ac_try='test -z "$ac_c_werror_flag"
8995                          || test ! -s conftest.err'
8996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997   (eval $ac_try) 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; } &&
9001          { ac_try='test -s conftest$ac_exeext'
9002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003   (eval $ac_try) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); }; }; then
9007   ac_cv_func_shmat=yes
9008 else
9009   echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012 ac_cv_func_shmat=no
9013 fi
9014 rm -f conftest.err conftest.$ac_objext \
9015       conftest$ac_exeext conftest.$ac_ext
9016 fi
9017 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9018 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9019
9020     if test $ac_cv_func_shmat = no; then
9021       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9022 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9023 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-lipc  $LIBS"
9028 if test x$gcc_no_link = xyes; then
9029   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9031    { (exit 1); exit 1; }; }
9032 fi
9033 cat >conftest.$ac_ext <<_ACEOF
9034 /* confdefs.h.  */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h.  */
9039
9040 /* Override any gcc2 internal prototype to avoid an error.  */
9041 #ifdef __cplusplus
9042 extern "C"
9043 #endif
9044 /* We use char because int might match the return type of a gcc2
9045    builtin and then its argument prototype would still apply.  */
9046 char shmat ();
9047 int
9048 main ()
9049 {
9050 shmat ();
9051   ;
9052   return 0;
9053 }
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057   (eval $ac_link) 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -z "$ac_c_werror_flag"
9065                          || test ! -s conftest.err'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; } &&
9071          { ac_try='test -s conftest$ac_exeext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_cv_lib_ipc_shmat=yes
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 ac_cv_lib_ipc_shmat=no
9083 fi
9084 rm -f conftest.err conftest.$ac_objext \
9085       conftest$ac_exeext conftest.$ac_ext
9086 LIBS=$ac_check_lib_save_LIBS
9087 fi
9088 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9089 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9090 if test $ac_cv_lib_ipc_shmat = yes; then
9091   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9092 fi
9093
9094     fi
9095   fi
9096
9097   # Check for libraries that X11R6 Xt/Xaw programs need.
9098   ac_save_LDFLAGS=$LDFLAGS
9099   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9100   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9101   # check for ICE first), but we must link in the order -lSM -lICE or
9102   # we get undefined symbols.  So assume we have SM if we have ICE.
9103   # These have to be linked with before -lX11, unlike the other
9104   # libraries we check for below, so use a different variable.
9105   # John Interrante, Karl Berry
9106   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9107 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9108 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   ac_check_lib_save_LIBS=$LIBS
9112 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9113 if test x$gcc_no_link = xyes; then
9114   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9116    { (exit 1); exit 1; }; }
9117 fi
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124
9125 /* Override any gcc2 internal prototype to avoid an error.  */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 /* We use char because int might match the return type of a gcc2
9130    builtin and then its argument prototype would still apply.  */
9131 char IceConnectionNumber ();
9132 int
9133 main ()
9134 {
9135 IceConnectionNumber ();
9136   ;
9137   return 0;
9138 }
9139 _ACEOF
9140 rm -f conftest.$ac_objext conftest$ac_exeext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9142   (eval $ac_link) 2>conftest.er1
9143   ac_status=$?
9144   grep -v '^ *+' conftest.er1 >conftest.err
9145   rm -f conftest.er1
9146   cat conftest.err >&5
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); } &&
9149          { ac_try='test -z "$ac_c_werror_flag"
9150                          || test ! -s conftest.err'
9151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152   (eval $ac_try) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; } &&
9156          { ac_try='test -s conftest$ac_exeext'
9157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158   (eval $ac_try) 2>&5
9159   ac_status=$?
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); }; }; then
9162   ac_cv_lib_ICE_IceConnectionNumber=yes
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167 ac_cv_lib_ICE_IceConnectionNumber=no
9168 fi
9169 rm -f conftest.err conftest.$ac_objext \
9170       conftest$ac_exeext conftest.$ac_ext
9171 LIBS=$ac_check_lib_save_LIBS
9172 fi
9173 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9174 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9175 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9176   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9177 fi
9178
9179   LDFLAGS=$ac_save_LDFLAGS
9180
9181 fi
9182
9183
9184 # FIXME: this should be _libs on some hosts.
9185 libsubdir=.libs
9186
9187 # extra LD Flags which are required for targets
9188 case "${host}" in
9189 *-*-darwin[0-7].*)
9190     # For now we have to disable it on darwin[8-9] because it slows down
9191     # the linking phase. A possible bug in ld?
9192     # on Darwin -single_module speeds up loading of the dynamic libraries.
9193     extra_ldflags_libjava=-Wl,-single_module
9194     ;;
9195 esac
9196
9197
9198 # Allow the GC to be disabled.  Can be useful when debugging.
9199 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9200 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9201 # Check whether --enable-java-gc or --disable-java-gc was given.
9202 if test "${enable_java_gc+set}" = set; then
9203   enableval="$enable_java_gc"
9204   GC=$enableval
9205 else
9206   GC=boehm
9207 fi;
9208 GCLIBS=
9209 GCINCS=
9210 GCDEPS=
9211 GCSPEC=
9212 JC1GCSPEC=
9213 GCTESTSPEC=
9214 case "$GC" in
9215  boehm)
9216     echo "$as_me:$LINENO: result: boehm" >&5
9217 echo "${ECHO_T}boehm" >&6
9218     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9219     JC1GCSPEC='-fuse-boehm-gc'
9220     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9221     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9222     GCOBJS=boehm.lo
9223     GCHDR=boehm-gc.h
9224     # The POSIX thread support needs to know this.
9225
9226 cat >>confdefs.h <<\_ACEOF
9227 #define HAVE_BOEHM_GC 1
9228 _ACEOF
9229
9230     ;;
9231  no)
9232     echo "$as_me:$LINENO: result: none" >&5
9233 echo "${ECHO_T}none" >&6
9234     GCHDR=no-gc.h
9235     ;;
9236  *)
9237     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9238 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9239    { (exit 1); exit 1; }; }
9240     ;;
9241 esac
9242
9243
9244
9245
9246
9247
9248           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9249
9250
9251
9252 if test "$GC" = boehm; then
9253   USING_BOEHMGC_TRUE=
9254   USING_BOEHMGC_FALSE='#'
9255 else
9256   USING_BOEHMGC_TRUE='#'
9257   USING_BOEHMGC_FALSE=
9258 fi
9259
9260
9261
9262 if test "$GC" = no; then
9263   USING_NOGC_TRUE=
9264   USING_NOGC_FALSE='#'
9265 else
9266   USING_NOGC_TRUE='#'
9267   USING_NOGC_FALSE=
9268 fi
9269
9270
9271
9272 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9273 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9274 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9275 echo "$as_me:$LINENO: result: $THREADS" >&5
9276 echo "${ECHO_T}$THREADS" >&6
9277
9278 case "$THREADS" in
9279  no | none | single)
9280     THREADS=none
9281     ;;
9282  posix | posix95 | pthreads)
9283     THREADS=posix
9284     case "$host" in
9285      *-*-linux*)
9286
9287 cat >>confdefs.h <<\_ACEOF
9288 #define LINUX_THREADS 1
9289 _ACEOF
9290
9291         ;;
9292     esac
9293     ;;
9294  win32)
9295     ;;
9296  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9297     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9298 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9299    { (exit 1); exit 1; }; }
9300     ;;
9301  *)
9302     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9303 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9304    { (exit 1); exit 1; }; }
9305     ;;
9306 esac
9307
9308 THREADCXXFLAGS=
9309 THREADLDFLAGS=
9310 THREADLIBS=
9311 THREADINCS=
9312 THREADDEPS=
9313 THREADH=
9314 THREADSPEC=
9315 THREADSTARTFILESPEC=
9316 case "$THREADS" in
9317  posix)
9318     case "$host" in
9319      *-*-cygwin*)
9320         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9321         ;;
9322      *-*-freebsd[1234]*)
9323         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9324         # merely adds pthread_* functions) but it does have a -pthread switch
9325         # which is required at link-time to select -lc_r *instead* of -lc.
9326         THREADLDFLAGS=-pthread
9327         # Don't set THREADSPEC here as might be expected since -pthread is
9328         # not processed when found within a spec file, it must come from
9329         # the command line.  For now, the user must provide the -pthread
9330         # switch to link code compiled with gcj.  In future, consider adding
9331         # support for weak references to pthread_* functions ala gthr.h API.
9332         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9333         ;;
9334      *-*-freebsd*)
9335         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9336         # systems which support threads and -lpthread.
9337         THREADLDFLAGS=-pthread
9338         THREADSPEC=-lpthread
9339         ;;
9340      alpha*-dec-osf* | hppa*-hp-hpux*)
9341         THREADCXXFLAGS=-pthread
9342         # boehm-gc needs some functions from librt, so link that too.
9343         THREADLIBS='-lpthread -lrt'
9344         THREADSPEC='-lpthread -lrt'
9345         ;;
9346      *)
9347         THREADLIBS=-lpthread
9348         THREADSPEC=-lpthread
9349         ;;
9350     esac
9351     THREADH=posix-threads.h
9352     # MIT pthreads doesn't seem to have the mutexattr functions.
9353     # But for now we don't check for it.  We just assume you aren't
9354     # using MIT pthreads.
9355
9356 cat >>confdefs.h <<\_ACEOF
9357 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9358 _ACEOF
9359
9360
9361     # If we're using the Boehm GC, then we happen to know that it
9362     # defines _REENTRANT, so we don't bother.  Eww.
9363     if test "$GC" != boehm; then
9364
9365 cat >>confdefs.h <<\_ACEOF
9366 #define _REENTRANT 1
9367 _ACEOF
9368
9369     fi
9370
9371 cat >>confdefs.h <<\_ACEOF
9372 #define _POSIX_PTHREAD_SEMANTICS 1
9373 _ACEOF
9374
9375     ;;
9376
9377  win32)
9378     THREADH=win32-threads.h
9379     THREADCXXFLAGS=-mthreads
9380     # We need thread-safe exception handling so _CRT_MT should be set to 1.
9381     # But we do not want the executables created to be dependent on
9382     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9383     # exception handling contexts.  The following kludge achieves this effect
9384     # and causes a dummy __mingwthr_key_dtor() to be linked in from
9385     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
9386     # A workaround is to explicitly use -mthreads while linking Java programs.
9387     # See PR libgcj/28263.
9388     #
9389     # FIXME: In Java we are able to detect thread death at the end of
9390     # Thread.run() so we should be able to clean up the exception handling
9391     # contexts ourselves.
9392     THREADSTARTFILESPEC='crtmt%O%s'
9393     ;;
9394
9395  none)
9396     THREADH=no-threads.h
9397     ;;
9398 esac
9399           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410 if test "$THREADS" = posix; then
9411   USING_POSIX_THREADS_TRUE=
9412   USING_POSIX_THREADS_FALSE='#'
9413 else
9414   USING_POSIX_THREADS_TRUE='#'
9415   USING_POSIX_THREADS_FALSE=
9416 fi
9417
9418
9419
9420 if test "$THREADS" = win32; then
9421   USING_WIN32_THREADS_TRUE=
9422   USING_WIN32_THREADS_FALSE='#'
9423 else
9424   USING_WIN32_THREADS_TRUE='#'
9425   USING_WIN32_THREADS_FALSE=
9426 fi
9427
9428
9429
9430 if test "$THREADS" = none; then
9431   USING_NO_THREADS_TRUE=
9432   USING_NO_THREADS_FALSE='#'
9433 else
9434   USING_NO_THREADS_TRUE='#'
9435   USING_NO_THREADS_FALSE=
9436 fi
9437
9438
9439
9440 if test "$use_libgcj_bc" = yes; then
9441   USE_LIBGCJ_BC_TRUE=
9442   USE_LIBGCJ_BC_FALSE='#'
9443 else
9444   USE_LIBGCJ_BC_TRUE='#'
9445   USE_LIBGCJ_BC_FALSE=
9446 fi
9447
9448
9449 if test -d sysdep; then true; else mkdir sysdep; fi
9450           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9451
9452           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9453
9454           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9455
9456
9457 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9458 if test "$use_libgcj_bc" = yes; then
9459   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9460 fi
9461
9462
9463 HASH_SYNC_SPEC=
9464 # Hash synchronization is only useful with posix threads right now.
9465 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9466    HASH_SYNC_SPEC=-fhash-synchronization
9467
9468 cat >>confdefs.h <<\_ACEOF
9469 #define JV_HASH_SYNCHRONIZATION 1
9470 _ACEOF
9471
9472 fi
9473
9474
9475
9476
9477 if test "$GCC" = yes; then
9478   USING_GCC_TRUE=
9479   USING_GCC_FALSE='#'
9480 else
9481   USING_GCC_TRUE='#'
9482   USING_GCC_FALSE=
9483 fi
9484
9485
9486 # We're in the tree with gcc, and need to include some of its headers.
9487 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
9488
9489 if test "x${with_newlib}" = "xyes"; then
9490    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9491    # may not work correctly, because the compiler may not be able to
9492    # link executables.
9493
9494    # We assume newlib.  This lets us hard-code the functions we know
9495    # we'll have.
9496
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_MEMMOVE 1
9499 _ACEOF
9500
9501
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_MEMCPY 1
9504 _ACEOF
9505
9506
9507 cat >>confdefs.h <<\_ACEOF
9508 #define HAVE_STRERROR 1
9509 _ACEOF
9510
9511
9512 cat >>confdefs.h <<\_ACEOF
9513 #define HAVE_TIME 1
9514 _ACEOF
9515
9516
9517 cat >>confdefs.h <<\_ACEOF
9518 #define HAVE_GMTIME_R 1
9519 _ACEOF
9520
9521
9522 cat >>confdefs.h <<\_ACEOF
9523 #define HAVE_LOCALTIME_R 1
9524 _ACEOF
9525
9526
9527 cat >>confdefs.h <<\_ACEOF
9528 #define HAVE_USLEEP_DECL 1
9529 _ACEOF
9530
9531    # This is only for POSIX threads.
9532
9533 cat >>confdefs.h <<\_ACEOF
9534 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9535 _ACEOF
9536
9537    # We also assume we are using gcc, which provides alloca.
9538    cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_ALLOCA 1
9540 _ACEOF
9541
9542
9543    # Assume we do not have getuid and friends.
9544
9545 cat >>confdefs.h <<\_ACEOF
9546 #define NO_GETUID 1
9547 _ACEOF
9548
9549    PLATFORMNET=NoNet
9550 else
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9587                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9588                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9589                    nl_langinfo setlocale \
9590                    inet_pton uname inet_ntoa \
9591                    fork execvp pipe sigaction ftruncate mmap \
9592                    getifaddrs
9593 do
9594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9595 echo "$as_me:$LINENO: checking for $ac_func" >&5
9596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9597 if eval "test \"\${$as_ac_var+set}\" = set"; then
9598   echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600   if test x$gcc_no_link = xyes; then
9601   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9602 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9603    { (exit 1); exit 1; }; }
9604 fi
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h.  */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h.  */
9611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9613 #define $ac_func innocuous_$ac_func
9614
9615 /* System header to define __stub macros and hopefully few prototypes,
9616     which can conflict with char $ac_func (); below.
9617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9618     <limits.h> exists even on freestanding compilers.  */
9619
9620 #ifdef __STDC__
9621 # include <limits.h>
9622 #else
9623 # include <assert.h>
9624 #endif
9625
9626 #undef $ac_func
9627
9628 /* Override any gcc2 internal prototype to avoid an error.  */
9629 #ifdef __cplusplus
9630 extern "C"
9631 {
9632 #endif
9633 /* We use char because int might match the return type of a gcc2
9634    builtin and then its argument prototype would still apply.  */
9635 char $ac_func ();
9636 /* The GNU C library defines this for functions which it implements
9637     to always fail with ENOSYS.  Some functions are actually named
9638     something starting with __ and the normal name is an alias.  */
9639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9640 choke me
9641 #else
9642 char (*f) () = $ac_func;
9643 #endif
9644 #ifdef __cplusplus
9645 }
9646 #endif
9647
9648 int
9649 main ()
9650 {
9651 return f != $ac_func;
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658   (eval $ac_link) 2>conftest.er1
9659   ac_status=$?
9660   grep -v '^ *+' conftest.er1 >conftest.err
9661   rm -f conftest.er1
9662   cat conftest.err >&5
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } &&
9665          { ac_try='test -z "$ac_c_werror_flag"
9666                          || test ! -s conftest.err'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; } &&
9672          { ac_try='test -s conftest$ac_exeext'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   eval "$as_ac_var=yes"
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683 eval "$as_ac_var=no"
9684 fi
9685 rm -f conftest.err conftest.$ac_objext \
9686       conftest$ac_exeext conftest.$ac_ext
9687 fi
9688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9690 if test `eval echo '${'$as_ac_var'}'` = yes; then
9691   cat >>confdefs.h <<_ACEOF
9692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9693 _ACEOF
9694
9695 fi
9696 done
9697
9698
9699
9700 for ac_func in inet_aton inet_addr
9701 do
9702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9703 echo "$as_me:$LINENO: checking for $ac_func" >&5
9704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9705 if eval "test \"\${$as_ac_var+set}\" = set"; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708   if test x$gcc_no_link = xyes; then
9709   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9711    { (exit 1); exit 1; }; }
9712 fi
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h.  */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h.  */
9719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9721 #define $ac_func innocuous_$ac_func
9722
9723 /* System header to define __stub macros and hopefully few prototypes,
9724     which can conflict with char $ac_func (); below.
9725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9726     <limits.h> exists even on freestanding compilers.  */
9727
9728 #ifdef __STDC__
9729 # include <limits.h>
9730 #else
9731 # include <assert.h>
9732 #endif
9733
9734 #undef $ac_func
9735
9736 /* Override any gcc2 internal prototype to avoid an error.  */
9737 #ifdef __cplusplus
9738 extern "C"
9739 {
9740 #endif
9741 /* We use char because int might match the return type of a gcc2
9742    builtin and then its argument prototype would still apply.  */
9743 char $ac_func ();
9744 /* The GNU C library defines this for functions which it implements
9745     to always fail with ENOSYS.  Some functions are actually named
9746     something starting with __ and the normal name is an alias.  */
9747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9748 choke me
9749 #else
9750 char (*f) () = $ac_func;
9751 #endif
9752 #ifdef __cplusplus
9753 }
9754 #endif
9755
9756 int
9757 main ()
9758 {
9759 return f != $ac_func;
9760   ;
9761   return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766   (eval $ac_link) 2>conftest.er1
9767   ac_status=$?
9768   grep -v '^ *+' conftest.er1 >conftest.err
9769   rm -f conftest.er1
9770   cat conftest.err >&5
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); } &&
9773          { ac_try='test -z "$ac_c_werror_flag"
9774                          || test ! -s conftest.err'
9775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776   (eval $ac_try) 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; } &&
9780          { ac_try='test -s conftest$ac_exeext'
9781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782   (eval $ac_try) 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); }; }; then
9786   eval "$as_ac_var=yes"
9787 else
9788   echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9790
9791 eval "$as_ac_var=no"
9792 fi
9793 rm -f conftest.err conftest.$ac_objext \
9794       conftest$ac_exeext conftest.$ac_ext
9795 fi
9796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9798 if test `eval echo '${'$as_ac_var'}'` = yes; then
9799   cat >>confdefs.h <<_ACEOF
9800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9801 _ACEOF
9802  break
9803 fi
9804 done
9805
9806    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9808 if test "${ac_cv_header_stdc+set}" = set; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817 #include <stdlib.h>
9818 #include <stdarg.h>
9819 #include <string.h>
9820 #include <float.h>
9821
9822 int
9823 main ()
9824 {
9825
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832   (eval $ac_compile) 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } &&
9839          { ac_try='test -z "$ac_c_werror_flag"
9840                          || test ! -s conftest.err'
9841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842   (eval $ac_try) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; } &&
9846          { ac_try='test -s conftest.$ac_objext'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   ac_cv_header_stdc=yes
9853 else
9854   echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 ac_cv_header_stdc=no
9858 fi
9859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9860
9861 if test $ac_cv_header_stdc = yes; then
9862   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9863   cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869 #include <string.h>
9870
9871 _ACEOF
9872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9873   $EGREP "memchr" >/dev/null 2>&1; then
9874   :
9875 else
9876   ac_cv_header_stdc=no
9877 fi
9878 rm -f conftest*
9879
9880 fi
9881
9882 if test $ac_cv_header_stdc = yes; then
9883   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9884   cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h.  */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h.  */
9890 #include <stdlib.h>
9891
9892 _ACEOF
9893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9894   $EGREP "free" >/dev/null 2>&1; then
9895   :
9896 else
9897   ac_cv_header_stdc=no
9898 fi
9899 rm -f conftest*
9900
9901 fi
9902
9903 if test $ac_cv_header_stdc = yes; then
9904   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9905   if test "$cross_compiling" = yes; then
9906   :
9907 else
9908   cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h.  */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h.  */
9914 #include <ctype.h>
9915 #if ((' ' & 0x0FF) == 0x020)
9916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9918 #else
9919 # define ISLOWER(c) \
9920                    (('a' <= (c) && (c) <= 'i') \
9921                      || ('j' <= (c) && (c) <= 'r') \
9922                      || ('s' <= (c) && (c) <= 'z'))
9923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9924 #endif
9925
9926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9927 int
9928 main ()
9929 {
9930   int i;
9931   for (i = 0; i < 256; i++)
9932     if (XOR (islower (i), ISLOWER (i))
9933         || toupper (i) != TOUPPER (i))
9934       exit(2);
9935   exit (0);
9936 }
9937 _ACEOF
9938 rm -f conftest$ac_exeext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940   (eval $ac_link) 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945   (eval $ac_try) 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); }; }; then
9949   :
9950 else
9951   echo "$as_me: program exited with status $ac_status" >&5
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 ( exit $ac_status )
9956 ac_cv_header_stdc=no
9957 fi
9958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9959 fi
9960 fi
9961 fi
9962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9964 if test $ac_cv_header_stdc = yes; then
9965
9966 cat >>confdefs.h <<\_ACEOF
9967 #define STDC_HEADERS 1
9968 _ACEOF
9969
9970 fi
9971
9972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9983                   inttypes.h stdint.h unistd.h
9984 do
9985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9986 echo "$as_me:$LINENO: checking for $ac_header" >&5
9987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9989   echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991   cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997 $ac_includes_default
9998
9999 #include <$ac_header>
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003   (eval $ac_compile) 2>conftest.er1
10004   ac_status=$?
10005   grep -v '^ *+' conftest.er1 >conftest.err
10006   rm -f conftest.er1
10007   cat conftest.err >&5
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); } &&
10010          { ac_try='test -z "$ac_c_werror_flag"
10011                          || test ! -s conftest.err'
10012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013   (eval $ac_try) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); }; } &&
10017          { ac_try='test -s conftest.$ac_objext'
10018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019   (eval $ac_try) 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; }; then
10023   eval "$as_ac_Header=yes"
10024 else
10025   echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028 eval "$as_ac_Header=no"
10029 fi
10030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10031 fi
10032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10035   cat >>confdefs.h <<_ACEOF
10036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10037 _ACEOF
10038
10039 fi
10040
10041 done
10042
10043
10044
10045
10046
10047 for ac_header in execinfo.h unistd.h dlfcn.h
10048 do
10049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10051   echo "$as_me:$LINENO: checking for $ac_header" >&5
10052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 fi
10056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10058 else
10059   # Is the header compilable?
10060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h.  */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h.  */
10068 $ac_includes_default
10069 #include <$ac_header>
10070 _ACEOF
10071 rm -f conftest.$ac_objext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10073   (eval $ac_compile) 2>conftest.er1
10074   ac_status=$?
10075   grep -v '^ *+' conftest.er1 >conftest.err
10076   rm -f conftest.er1
10077   cat conftest.err >&5
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); } &&
10080          { ac_try='test -z "$ac_c_werror_flag"
10081                          || test ! -s conftest.err'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; } &&
10087          { ac_try='test -s conftest.$ac_objext'
10088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089   (eval $ac_try) 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; }; then
10093   ac_header_compiler=yes
10094 else
10095   echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10097
10098 ac_header_compiler=no
10099 fi
10100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10102 echo "${ECHO_T}$ac_header_compiler" >&6
10103
10104 # Is the header present?
10105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h.  */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h.  */
10113 #include <$ac_header>
10114 _ACEOF
10115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10117   ac_status=$?
10118   grep -v '^ *+' conftest.er1 >conftest.err
10119   rm -f conftest.er1
10120   cat conftest.err >&5
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } >/dev/null; then
10123   if test -s conftest.err; then
10124     ac_cpp_err=$ac_c_preproc_warn_flag
10125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10126   else
10127     ac_cpp_err=
10128   fi
10129 else
10130   ac_cpp_err=yes
10131 fi
10132 if test -z "$ac_cpp_err"; then
10133   ac_header_preproc=yes
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138   ac_header_preproc=no
10139 fi
10140 rm -f conftest.err conftest.$ac_ext
10141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10142 echo "${ECHO_T}$ac_header_preproc" >&6
10143
10144 # So?  What about this header?
10145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10146   yes:no: )
10147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10151     ac_header_preproc=yes
10152     ;;
10153   no:yes:* )
10154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10166     (
10167       cat <<\_ASBOX
10168 ## ---------------------------------- ##
10169 ## Report this to the libjava lists.  ##
10170 ## ---------------------------------- ##
10171 _ASBOX
10172     ) |
10173       sed "s/^/$as_me: WARNING:     /" >&2
10174     ;;
10175 esac
10176 echo "$as_me:$LINENO: checking for $ac_header" >&5
10177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10179   echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181   eval "$as_ac_Header=\$ac_header_preproc"
10182 fi
10183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10185
10186 fi
10187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10188   cat >>confdefs.h <<_ACEOF
10189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10190 _ACEOF
10191
10192 fi
10193
10194 done
10195
10196    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10197    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10198 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10199 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10200   echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202   ac_check_lib_save_LIBS=$LIBS
10203 LIBS="-ldl  $LIBS"
10204 if test x$gcc_no_link = xyes; then
10205   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10207    { (exit 1); exit 1; }; }
10208 fi
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h.  */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h.  */
10215
10216 /* Override any gcc2 internal prototype to avoid an error.  */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 /* We use char because int might match the return type of a gcc2
10221    builtin and then its argument prototype would still apply.  */
10222 char dladdr ();
10223 int
10224 main ()
10225 {
10226 dladdr ();
10227   ;
10228   return 0;
10229 }
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233   (eval $ac_link) 2>conftest.er1
10234   ac_status=$?
10235   grep -v '^ *+' conftest.er1 >conftest.err
10236   rm -f conftest.er1
10237   cat conftest.err >&5
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); } &&
10240          { ac_try='test -z "$ac_c_werror_flag"
10241                          || test ! -s conftest.err'
10242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243   (eval $ac_try) 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; } &&
10247          { ac_try='test -s conftest$ac_exeext'
10248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249   (eval $ac_try) 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; }; then
10253   ac_cv_lib_dl_dladdr=yes
10254 else
10255   echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258 ac_cv_lib_dl_dladdr=no
10259 fi
10260 rm -f conftest.err conftest.$ac_objext \
10261       conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10263 fi
10264 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10265 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10266 if test $ac_cv_lib_dl_dladdr = yes; then
10267
10268
10269 cat >>confdefs.h <<\_ACEOF
10270 #define HAVE_DLADDR 1
10271 _ACEOF
10272
10273 else
10274
10275        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10276 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10277 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10278   echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280   ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-ldld  $LIBS"
10282 if test x$gcc_no_link = xyes; then
10283   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10285    { (exit 1); exit 1; }; }
10286 fi
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293
10294 /* Override any gcc2 internal prototype to avoid an error.  */
10295 #ifdef __cplusplus
10296 extern "C"
10297 #endif
10298 /* We use char because int might match the return type of a gcc2
10299    builtin and then its argument prototype would still apply.  */
10300 char dladdr ();
10301 int
10302 main ()
10303 {
10304 dladdr ();
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
10309 rm -f conftest.$ac_objext conftest$ac_exeext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10311   (eval $ac_link) 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } &&
10318          { ac_try='test -z "$ac_c_werror_flag"
10319                          || test ! -s conftest.err'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; } &&
10325          { ac_try='test -s conftest$ac_exeext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   ac_cv_lib_dld_dladdr=yes
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 ac_cv_lib_dld_dladdr=no
10337 fi
10338 rm -f conftest.err conftest.$ac_objext \
10339       conftest$ac_exeext conftest.$ac_ext
10340 LIBS=$ac_check_lib_save_LIBS
10341 fi
10342 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10343 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10344 if test $ac_cv_lib_dld_dladdr = yes; then
10345
10346
10347 cat >>confdefs.h <<\_ACEOF
10348 #define HAVE_DLADDR 1
10349 _ACEOF
10350
10351 fi
10352
10353 fi
10354
10355
10356    if test x"$cross_compiling" = x"no"; then
10357      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10358 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10359 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   test "$cross_compiling" = yes &&
10363   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10364 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10365    { (exit 1); exit 1; }; }
10366 if test -r "/proc/self/exe"; then
10367   ac_cv_file__proc_self_exe=yes
10368 else
10369   ac_cv_file__proc_self_exe=no
10370 fi
10371 fi
10372 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10373 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10374 if test $ac_cv_file__proc_self_exe = yes; then
10375
10376 cat >>confdefs.h <<_ACEOF
10377 #define HAVE__PROC_SELF_EXE 1
10378 _ACEOF
10379
10380
10381
10382 cat >>confdefs.h <<\_ACEOF
10383 #define HAVE_PROC_SELF_EXE 1
10384 _ACEOF
10385
10386 fi
10387
10388    else
10389      case $host in
10390      *-linux*)
10391
10392 cat >>confdefs.h <<\_ACEOF
10393 #define HAVE_PROC_SELF_EXE 1
10394 _ACEOF
10395
10396        ;;
10397      esac
10398    fi
10399
10400
10401       if test "X$prefix" = "XNONE"; then
10402     acl_final_prefix="$ac_default_prefix"
10403   else
10404     acl_final_prefix="$prefix"
10405   fi
10406   if test "X$exec_prefix" = "XNONE"; then
10407     acl_final_exec_prefix='${prefix}'
10408   else
10409     acl_final_exec_prefix="$exec_prefix"
10410   fi
10411   acl_save_prefix="$prefix"
10412   prefix="$acl_final_prefix"
10413   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10414   prefix="$acl_save_prefix"
10415
10416
10417 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10418 if test "${with_gnu_ld+set}" = set; then
10419   withval="$with_gnu_ld"
10420   test "$withval" = no || with_gnu_ld=yes
10421 else
10422   with_gnu_ld=no
10423 fi;
10424 # Prepare PATH_SEPARATOR.
10425 # The user is always right.
10426 if test "${PATH_SEPARATOR+set}" != set; then
10427   echo "#! /bin/sh" >conf$$.sh
10428   echo  "exit 0"   >>conf$$.sh
10429   chmod +x conf$$.sh
10430   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10431     PATH_SEPARATOR=';'
10432   else
10433     PATH_SEPARATOR=:
10434   fi
10435   rm -f conf$$.sh
10436 fi
10437 ac_prog=ld
10438 if test "$GCC" = yes; then
10439   # Check if gcc -print-prog-name=ld gives a path.
10440   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10441 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10442   case $host in
10443   *-*-mingw*)
10444     # gcc leaves a trailing carriage return which upsets mingw
10445     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10446   *)
10447     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10448   esac
10449   case $ac_prog in
10450     # Accept absolute paths.
10451     [\\/]* | [A-Za-z]:[\\/]*)
10452       re_direlt='/[^/][^/]*/\.\./'
10453       # Canonicalize the path of ld
10454       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10455       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10456         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10457       done
10458       test -z "$LD" && LD="$ac_prog"
10459       ;;
10460   "")
10461     # If it fails, then pretend we aren't using GCC.
10462     ac_prog=ld
10463     ;;
10464   *)
10465     # If it is relative, then search for the first ld in PATH.
10466     with_gnu_ld=unknown
10467     ;;
10468   esac
10469 elif test "$with_gnu_ld" = yes; then
10470   echo "$as_me:$LINENO: checking for GNU ld" >&5
10471 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10472 else
10473   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10474 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10475 fi
10476 if test "${acl_cv_path_LD+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   if test -z "$LD"; then
10480   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10481   for ac_dir in $PATH; do
10482     test -z "$ac_dir" && ac_dir=.
10483     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10484       acl_cv_path_LD="$ac_dir/$ac_prog"
10485       # Check to see if the program is GNU ld.  I'd rather use --version,
10486       # but apparently some GNU ld's only accept -v.
10487       # Break only if it was the GNU/non-GNU ld that we prefer.
10488       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10489         test "$with_gnu_ld" != no && break
10490       else
10491         test "$with_gnu_ld" != yes && break
10492       fi
10493     fi
10494   done
10495   IFS="$ac_save_ifs"
10496 else
10497   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10498 fi
10499 fi
10500
10501 LD="$acl_cv_path_LD"
10502 if test -n "$LD"; then
10503   echo "$as_me:$LINENO: result: $LD" >&5
10504 echo "${ECHO_T}$LD" >&6
10505 else
10506   echo "$as_me:$LINENO: result: no" >&5
10507 echo "${ECHO_T}no" >&6
10508 fi
10509 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10510 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10511    { (exit 1); exit 1; }; }
10512 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10513 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10514 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10518 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10519   acl_cv_prog_gnu_ld=yes
10520 else
10521   acl_cv_prog_gnu_ld=no
10522 fi
10523 fi
10524 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10525 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10526 with_gnu_ld=$acl_cv_prog_gnu_ld
10527
10528
10529
10530                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10531 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10532 if test "${acl_cv_rpath+set}" = set; then
10533   echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535
10536     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10537     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10538     . ./conftest.sh
10539     rm -f ./conftest.sh
10540     acl_cv_rpath=done
10541
10542 fi
10543 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10544 echo "${ECHO_T}$acl_cv_rpath" >&6
10545   wl="$acl_cv_wl"
10546   libext="$acl_cv_libext"
10547   shlibext="$acl_cv_shlibext"
10548   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10549   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10550   hardcode_direct="$acl_cv_hardcode_direct"
10551   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10552     # Check whether --enable-rpath or --disable-rpath was given.
10553 if test "${enable_rpath+set}" = set; then
10554   enableval="$enable_rpath"
10555   :
10556 else
10557   enable_rpath=yes
10558 fi;
10559
10560
10561
10562
10563
10564
10565
10566     use_additional=yes
10567
10568   acl_save_prefix="$prefix"
10569   prefix="$acl_final_prefix"
10570   acl_save_exec_prefix="$exec_prefix"
10571   exec_prefix="$acl_final_exec_prefix"
10572
10573     eval additional_includedir=\"$includedir\"
10574     eval additional_libdir=\"$libdir\"
10575
10576   exec_prefix="$acl_save_exec_prefix"
10577   prefix="$acl_save_prefix"
10578
10579
10580 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10581 if test "${with_libiconv_prefix+set}" = set; then
10582   withval="$with_libiconv_prefix"
10583
10584     if test "X$withval" = "Xno"; then
10585       use_additional=no
10586     else
10587       if test "X$withval" = "X"; then
10588
10589   acl_save_prefix="$prefix"
10590   prefix="$acl_final_prefix"
10591   acl_save_exec_prefix="$exec_prefix"
10592   exec_prefix="$acl_final_exec_prefix"
10593
10594           eval additional_includedir=\"$includedir\"
10595           eval additional_libdir=\"$libdir\"
10596
10597   exec_prefix="$acl_save_exec_prefix"
10598   prefix="$acl_save_prefix"
10599
10600       else
10601         additional_includedir="$withval/include"
10602         additional_libdir="$withval/lib"
10603       fi
10604     fi
10605
10606 fi;
10607       LIBICONV=
10608   LTLIBICONV=
10609   INCICONV=
10610   rpathdirs=
10611   ltrpathdirs=
10612   names_already_handled=
10613   names_next_round='iconv '
10614   while test -n "$names_next_round"; do
10615     names_this_round="$names_next_round"
10616     names_next_round=
10617     for name in $names_this_round; do
10618       already_handled=
10619       for n in $names_already_handled; do
10620         if test "$n" = "$name"; then
10621           already_handled=yes
10622           break
10623         fi
10624       done
10625       if test -z "$already_handled"; then
10626         names_already_handled="$names_already_handled $name"
10627                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10628         eval value=\"\$HAVE_LIB$uppername\"
10629         if test -n "$value"; then
10630           if test "$value" = yes; then
10631             eval value=\"\$LIB$uppername\"
10632             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10633             eval value=\"\$LTLIB$uppername\"
10634             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10635           else
10636                                     :
10637           fi
10638         else
10639                               found_dir=
10640           found_la=
10641           found_so=
10642           found_a=
10643           if test $use_additional = yes; then
10644             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10645               found_dir="$additional_libdir"
10646               found_so="$additional_libdir/lib$name.$shlibext"
10647               if test -f "$additional_libdir/lib$name.la"; then
10648                 found_la="$additional_libdir/lib$name.la"
10649               fi
10650             else
10651               if test -f "$additional_libdir/lib$name.$libext"; then
10652                 found_dir="$additional_libdir"
10653                 found_a="$additional_libdir/lib$name.$libext"
10654                 if test -f "$additional_libdir/lib$name.la"; then
10655                   found_la="$additional_libdir/lib$name.la"
10656                 fi
10657               fi
10658             fi
10659           fi
10660           if test "X$found_dir" = "X"; then
10661             for x in $LDFLAGS $LTLIBICONV; do
10662
10663   acl_save_prefix="$prefix"
10664   prefix="$acl_final_prefix"
10665   acl_save_exec_prefix="$exec_prefix"
10666   exec_prefix="$acl_final_exec_prefix"
10667   eval x=\"$x\"
10668   exec_prefix="$acl_save_exec_prefix"
10669   prefix="$acl_save_prefix"
10670
10671               case "$x" in
10672                 -L*)
10673                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10674                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10675                     found_dir="$dir"
10676                     found_so="$dir/lib$name.$shlibext"
10677                     if test -f "$dir/lib$name.la"; then
10678                       found_la="$dir/lib$name.la"
10679                     fi
10680                   else
10681                     if test -f "$dir/lib$name.$libext"; then
10682                       found_dir="$dir"
10683                       found_a="$dir/lib$name.$libext"
10684                       if test -f "$dir/lib$name.la"; then
10685                         found_la="$dir/lib$name.la"
10686                       fi
10687                     fi
10688                   fi
10689                   ;;
10690               esac
10691               if test "X$found_dir" != "X"; then
10692                 break
10693               fi
10694             done
10695           fi
10696           if test "X$found_dir" != "X"; then
10697                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10698             if test "X$found_so" != "X"; then
10699                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10700                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10701               else
10702                                                                                 haveit=
10703                 for x in $ltrpathdirs; do
10704                   if test "X$x" = "X$found_dir"; then
10705                     haveit=yes
10706                     break
10707                   fi
10708                 done
10709                 if test -z "$haveit"; then
10710                   ltrpathdirs="$ltrpathdirs $found_dir"
10711                 fi
10712                                 if test "$hardcode_direct" = yes; then
10713                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10714                 else
10715                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10716                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10717                                                             haveit=
10718                     for x in $rpathdirs; do
10719                       if test "X$x" = "X$found_dir"; then
10720                         haveit=yes
10721                         break
10722                       fi
10723                     done
10724                     if test -z "$haveit"; then
10725                       rpathdirs="$rpathdirs $found_dir"
10726                     fi
10727                   else
10728                                                                                 haveit=
10729                     for x in $LDFLAGS $LIBICONV; do
10730
10731   acl_save_prefix="$prefix"
10732   prefix="$acl_final_prefix"
10733   acl_save_exec_prefix="$exec_prefix"
10734   exec_prefix="$acl_final_exec_prefix"
10735   eval x=\"$x\"
10736   exec_prefix="$acl_save_exec_prefix"
10737   prefix="$acl_save_prefix"
10738
10739                       if test "X$x" = "X-L$found_dir"; then
10740                         haveit=yes
10741                         break
10742                       fi
10743                     done
10744                     if test -z "$haveit"; then
10745                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10746                     fi
10747                     if test "$hardcode_minus_L" != no; then
10748                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10749                     else
10750                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10751                     fi
10752                   fi
10753                 fi
10754               fi
10755             else
10756               if test "X$found_a" != "X"; then
10757                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10758               else
10759                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10760               fi
10761             fi
10762                         additional_includedir=
10763             case "$found_dir" in
10764               */lib | */lib/)
10765                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10766                 additional_includedir="$basedir/include"
10767                 ;;
10768             esac
10769             if test "X$additional_includedir" != "X"; then
10770                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10771                 haveit=
10772                 if test "X$additional_includedir" = "X/usr/local/include"; then
10773                   if test -n "$GCC"; then
10774                     case $host_os in
10775                       linux*) haveit=yes;;
10776                     esac
10777                   fi
10778                 fi
10779                 if test -z "$haveit"; then
10780                   for x in $CPPFLAGS $INCICONV; do
10781
10782   acl_save_prefix="$prefix"
10783   prefix="$acl_final_prefix"
10784   acl_save_exec_prefix="$exec_prefix"
10785   exec_prefix="$acl_final_exec_prefix"
10786   eval x=\"$x\"
10787   exec_prefix="$acl_save_exec_prefix"
10788   prefix="$acl_save_prefix"
10789
10790                     if test "X$x" = "X-I$additional_includedir"; then
10791                       haveit=yes
10792                       break
10793                     fi
10794                   done
10795                   if test -z "$haveit"; then
10796                     if test -d "$additional_includedir"; then
10797                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10798                     fi
10799                   fi
10800                 fi
10801               fi
10802             fi
10803                         if test -n "$found_la"; then
10804                                                         save_libdir="$libdir"
10805               case "$found_la" in
10806                 */* | *\\*) . "$found_la" ;;
10807                 *) . "./$found_la" ;;
10808               esac
10809               libdir="$save_libdir"
10810                             for dep in $dependency_libs; do
10811                 case "$dep" in
10812                   -L*)
10813                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10814                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10815                       haveit=
10816                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10817                         if test -n "$GCC"; then
10818                           case $host_os in
10819                             linux*) haveit=yes;;
10820                           esac
10821                         fi
10822                       fi
10823                       if test -z "$haveit"; then
10824                         haveit=
10825                         for x in $LDFLAGS $LIBICONV; do
10826
10827   acl_save_prefix="$prefix"
10828   prefix="$acl_final_prefix"
10829   acl_save_exec_prefix="$exec_prefix"
10830   exec_prefix="$acl_final_exec_prefix"
10831   eval x=\"$x\"
10832   exec_prefix="$acl_save_exec_prefix"
10833   prefix="$acl_save_prefix"
10834
10835                           if test "X$x" = "X-L$additional_libdir"; then
10836                             haveit=yes
10837                             break
10838                           fi
10839                         done
10840                         if test -z "$haveit"; then
10841                           if test -d "$additional_libdir"; then
10842                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10843                           fi
10844                         fi
10845                         haveit=
10846                         for x in $LDFLAGS $LTLIBICONV; do
10847
10848   acl_save_prefix="$prefix"
10849   prefix="$acl_final_prefix"
10850   acl_save_exec_prefix="$exec_prefix"
10851   exec_prefix="$acl_final_exec_prefix"
10852   eval x=\"$x\"
10853   exec_prefix="$acl_save_exec_prefix"
10854   prefix="$acl_save_prefix"
10855
10856                           if test "X$x" = "X-L$additional_libdir"; then
10857                             haveit=yes
10858                             break
10859                           fi
10860                         done
10861                         if test -z "$haveit"; then
10862                           if test -d "$additional_libdir"; then
10863                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10864                           fi
10865                         fi
10866                       fi
10867                     fi
10868                     ;;
10869                   -R*)
10870                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10871                     if test "$enable_rpath" != no; then
10872                                                                   haveit=
10873                       for x in $rpathdirs; do
10874                         if test "X$x" = "X$dir"; then
10875                           haveit=yes
10876                           break
10877                         fi
10878                       done
10879                       if test -z "$haveit"; then
10880                         rpathdirs="$rpathdirs $dir"
10881                       fi
10882                                                                   haveit=
10883                       for x in $ltrpathdirs; do
10884                         if test "X$x" = "X$dir"; then
10885                           haveit=yes
10886                           break
10887                         fi
10888                       done
10889                       if test -z "$haveit"; then
10890                         ltrpathdirs="$ltrpathdirs $dir"
10891                       fi
10892                     fi
10893                     ;;
10894                   -l*)
10895                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10896                     ;;
10897                   *.la)
10898                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10899                     ;;
10900                   *)
10901                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10902                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10903                     ;;
10904                 esac
10905               done
10906             fi
10907           else
10908                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10909             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10910           fi
10911         fi
10912       fi
10913     done
10914   done
10915   if test "X$rpathdirs" != "X"; then
10916     if test -n "$hardcode_libdir_separator"; then
10917                         alldirs=
10918       for found_dir in $rpathdirs; do
10919         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10920       done
10921             acl_save_libdir="$libdir"
10922       libdir="$alldirs"
10923       eval flag=\"$hardcode_libdir_flag_spec\"
10924       libdir="$acl_save_libdir"
10925       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10926     else
10927             for found_dir in $rpathdirs; do
10928         acl_save_libdir="$libdir"
10929         libdir="$found_dir"
10930         eval flag=\"$hardcode_libdir_flag_spec\"
10931         libdir="$acl_save_libdir"
10932         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10933       done
10934     fi
10935   fi
10936   if test "X$ltrpathdirs" != "X"; then
10937             for found_dir in $ltrpathdirs; do
10938       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10939     done
10940   fi
10941
10942
10943
10944
10945
10946
10947
10948           am_save_CPPFLAGS="$CPPFLAGS"
10949
10950   for element in $INCICONV; do
10951     haveit=
10952     for x in $CPPFLAGS; do
10953
10954   acl_save_prefix="$prefix"
10955   prefix="$acl_final_prefix"
10956   acl_save_exec_prefix="$exec_prefix"
10957   exec_prefix="$acl_final_exec_prefix"
10958   eval x=\"$x\"
10959   exec_prefix="$acl_save_exec_prefix"
10960   prefix="$acl_save_prefix"
10961
10962       if test "X$x" = "X$element"; then
10963         haveit=yes
10964         break
10965       fi
10966     done
10967     if test -z "$haveit"; then
10968       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10969     fi
10970   done
10971
10972
10973   echo "$as_me:$LINENO: checking for iconv" >&5
10974 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10975 if test "${am_cv_func_iconv+set}" = set; then
10976   echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10978
10979     am_cv_func_iconv="no, consider installing GNU libiconv"
10980     am_cv_lib_iconv=no
10981     if test x$gcc_no_link = xyes; then
10982   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10984    { (exit 1); exit 1; }; }
10985 fi
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h.  */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h.  */
10992 #include <stdlib.h>
10993 #include <iconv.h>
10994 int
10995 main ()
10996 {
10997 iconv_t cd = iconv_open("","");
10998        iconv(cd,NULL,NULL,NULL,NULL);
10999        iconv_close(cd);
11000   ;
11001   return 0;
11002 }
11003 _ACEOF
11004 rm -f conftest.$ac_objext conftest$ac_exeext
11005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11006   (eval $ac_link) 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -z "$ac_c_werror_flag"
11014                          || test ! -s conftest.err'
11015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016   (eval $ac_try) 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; } &&
11020          { ac_try='test -s conftest$ac_exeext'
11021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022   (eval $ac_try) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; }; then
11026   am_cv_func_iconv=yes
11027 else
11028   echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031 fi
11032 rm -f conftest.err conftest.$ac_objext \
11033       conftest$ac_exeext conftest.$ac_ext
11034     if test "$am_cv_func_iconv" != yes; then
11035       am_save_LIBS="$LIBS"
11036       LIBS="$LIBS $LIBICONV"
11037       if test x$gcc_no_link = xyes; then
11038   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11040    { (exit 1); exit 1; }; }
11041 fi
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h.  */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h.  */
11048 #include <stdlib.h>
11049 #include <iconv.h>
11050 int
11051 main ()
11052 {
11053 iconv_t cd = iconv_open("","");
11054          iconv(cd,NULL,NULL,NULL,NULL);
11055          iconv_close(cd);
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062   (eval $ac_link) 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } &&
11069          { ac_try='test -z "$ac_c_werror_flag"
11070                          || test ! -s conftest.err'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; } &&
11076          { ac_try='test -s conftest$ac_exeext'
11077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078   (eval $ac_try) 2>&5
11079   ac_status=$?
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); }; }; then
11082   am_cv_lib_iconv=yes
11083         am_cv_func_iconv=yes
11084 else
11085   echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088 fi
11089 rm -f conftest.err conftest.$ac_objext \
11090       conftest$ac_exeext conftest.$ac_ext
11091       LIBS="$am_save_LIBS"
11092     fi
11093
11094 fi
11095 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11096 echo "${ECHO_T}$am_cv_func_iconv" >&6
11097   if test "$am_cv_func_iconv" = yes; then
11098
11099 cat >>confdefs.h <<\_ACEOF
11100 #define HAVE_ICONV 1
11101 _ACEOF
11102
11103   fi
11104   if test "$am_cv_lib_iconv" = yes; then
11105     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11106 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11107     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11108 echo "${ECHO_T}$LIBICONV" >&6
11109   else
11110             CPPFLAGS="$am_save_CPPFLAGS"
11111     LIBICONV=
11112     LTLIBICONV=
11113   fi
11114
11115
11116
11117   if test "$am_cv_func_iconv" = yes; then
11118     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11119 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11120     if test "${am_cv_proto_iconv+set}" = set; then
11121   echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123
11124       cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h.  */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h.  */
11130
11131 #include <stdlib.h>
11132 #include <iconv.h>
11133 extern
11134 #ifdef __cplusplus
11135 "C"
11136 #endif
11137 #if defined(__STDC__) || defined(__cplusplus)
11138 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11139 #else
11140 size_t iconv();
11141 #endif
11142
11143 int
11144 main ()
11145 {
11146
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153   (eval $ac_compile) 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -z "$ac_c_werror_flag"
11161                          || test ! -s conftest.err'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest.$ac_objext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   am_cv_proto_iconv_arg1=""
11174 else
11175   echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 am_cv_proto_iconv_arg1="const"
11179 fi
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11181       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);"
11182 fi
11183
11184     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11185     echo "$as_me:$LINENO: result: ${ac_t:-
11186          }$am_cv_proto_iconv" >&5
11187 echo "${ECHO_T}${ac_t:-
11188          }$am_cv_proto_iconv" >&6
11189
11190 cat >>confdefs.h <<_ACEOF
11191 #define ICONV_CONST $am_cv_proto_iconv_arg1
11192 _ACEOF
11193
11194   fi
11195
11196
11197   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11198 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11199 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11200   echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202   if test x$gcc_no_link = xyes; then
11203   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11205    { (exit 1); exit 1; }; }
11206 fi
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h.  */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h.  */
11213 #include <locale.h>
11214 int
11215 main ()
11216 {
11217 return LC_MESSAGES
11218   ;
11219   return 0;
11220 }
11221 _ACEOF
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224   (eval $ac_link) 2>conftest.er1
11225   ac_status=$?
11226   grep -v '^ *+' conftest.er1 >conftest.err
11227   rm -f conftest.er1
11228   cat conftest.err >&5
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } &&
11231          { ac_try='test -z "$ac_c_werror_flag"
11232                          || test ! -s conftest.err'
11233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234   (eval $ac_try) 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); }; } &&
11238          { ac_try='test -s conftest$ac_exeext'
11239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240   (eval $ac_try) 2>&5
11241   ac_status=$?
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); }; }; then
11244   am_cv_val_LC_MESSAGES=yes
11245 else
11246   echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11248
11249 am_cv_val_LC_MESSAGES=no
11250 fi
11251 rm -f conftest.err conftest.$ac_objext \
11252       conftest$ac_exeext conftest.$ac_ext
11253 fi
11254 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11255 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11256   if test $am_cv_val_LC_MESSAGES = yes; then
11257
11258 cat >>confdefs.h <<\_ACEOF
11259 #define HAVE_LC_MESSAGES 1
11260 _ACEOF
11261
11262   fi
11263
11264    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11265 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11266 if test "${ac_cv_struct_tm+set}" = set; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269   cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 #include <sys/types.h>
11276 #include <time.h>
11277
11278 int
11279 main ()
11280 {
11281 struct tm *tp; tp->tm_sec;
11282   ;
11283   return 0;
11284 }
11285 _ACEOF
11286 rm -f conftest.$ac_objext
11287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11288   (eval $ac_compile) 2>conftest.er1
11289   ac_status=$?
11290   grep -v '^ *+' conftest.er1 >conftest.err
11291   rm -f conftest.er1
11292   cat conftest.err >&5
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); } &&
11295          { ac_try='test -z "$ac_c_werror_flag"
11296                          || test ! -s conftest.err'
11297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298   (eval $ac_try) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; } &&
11302          { ac_try='test -s conftest.$ac_objext'
11303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304   (eval $ac_try) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }; }; then
11308   ac_cv_struct_tm=time.h
11309 else
11310   echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11312
11313 ac_cv_struct_tm=sys/time.h
11314 fi
11315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11316 fi
11317 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11318 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11319 if test $ac_cv_struct_tm = sys/time.h; then
11320
11321 cat >>confdefs.h <<\_ACEOF
11322 #define TM_IN_SYS_TIME 1
11323 _ACEOF
11324
11325 fi
11326
11327 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11328 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11329 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11330   echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
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 <sys/types.h>
11339 #include <$ac_cv_struct_tm>
11340
11341
11342 int
11343 main ()
11344 {
11345 static struct tm ac_aggr;
11346 if (ac_aggr.tm_zone)
11347 return 0;
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 rm -f conftest.$ac_objext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11354   (eval $ac_compile) 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -z "$ac_c_werror_flag"
11362                          || test ! -s conftest.err'
11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364   (eval $ac_try) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; } &&
11368          { ac_try='test -s conftest.$ac_objext'
11369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370   (eval $ac_try) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); }; }; then
11374   ac_cv_member_struct_tm_tm_zone=yes
11375 else
11376   echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h.  */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h.  */
11385 #include <sys/types.h>
11386 #include <$ac_cv_struct_tm>
11387
11388
11389 int
11390 main ()
11391 {
11392 static struct tm ac_aggr;
11393 if (sizeof ac_aggr.tm_zone)
11394 return 0;
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 rm -f conftest.$ac_objext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11401   (eval $ac_compile) 2>conftest.er1
11402   ac_status=$?
11403   grep -v '^ *+' conftest.er1 >conftest.err
11404   rm -f conftest.er1
11405   cat conftest.err >&5
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); } &&
11408          { ac_try='test -z "$ac_c_werror_flag"
11409                          || test ! -s conftest.err'
11410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411   (eval $ac_try) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; } &&
11415          { ac_try='test -s conftest.$ac_objext'
11416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417   (eval $ac_try) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; }; then
11421   ac_cv_member_struct_tm_tm_zone=yes
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 ac_cv_member_struct_tm_tm_zone=no
11427 fi
11428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11429 fi
11430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11431 fi
11432 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11433 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11434 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11435
11436 cat >>confdefs.h <<_ACEOF
11437 #define HAVE_STRUCT_TM_TM_ZONE 1
11438 _ACEOF
11439
11440
11441 fi
11442
11443 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11444
11445 cat >>confdefs.h <<\_ACEOF
11446 #define HAVE_TM_ZONE 1
11447 _ACEOF
11448
11449 else
11450   echo "$as_me:$LINENO: checking for tzname" >&5
11451 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11452 if test "${ac_cv_var_tzname+set}" = set; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   if test x$gcc_no_link = xyes; then
11456   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11458    { (exit 1); exit 1; }; }
11459 fi
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 <time.h>
11467 #ifndef tzname /* For SGI.  */
11468 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11469 #endif
11470
11471 int
11472 main ()
11473 {
11474 atoi(*tzname);
11475   ;
11476   return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext conftest$ac_exeext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11481   (eval $ac_link) 2>conftest.er1
11482   ac_status=$?
11483   grep -v '^ *+' conftest.er1 >conftest.err
11484   rm -f conftest.er1
11485   cat conftest.err >&5
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } &&
11488          { ac_try='test -z "$ac_c_werror_flag"
11489                          || test ! -s conftest.err'
11490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491   (eval $ac_try) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; } &&
11495          { ac_try='test -s conftest$ac_exeext'
11496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497   (eval $ac_try) 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); }; }; then
11501   ac_cv_var_tzname=yes
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 ac_cv_var_tzname=no
11507 fi
11508 rm -f conftest.err conftest.$ac_objext \
11509       conftest$ac_exeext conftest.$ac_ext
11510 fi
11511 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11512 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11513   if test $ac_cv_var_tzname = yes; then
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_TZNAME 1
11517 _ACEOF
11518
11519   fi
11520 fi
11521
11522
11523
11524
11525 for ac_func in gethostbyname_r
11526 do
11527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11528 echo "$as_me:$LINENO: checking for $ac_func" >&5
11529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11530 if eval "test \"\${$as_ac_var+set}\" = set"; then
11531   echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533   if test x$gcc_no_link = xyes; then
11534   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11535 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11536    { (exit 1); exit 1; }; }
11537 fi
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11546 #define $ac_func innocuous_$ac_func
11547
11548 /* System header to define __stub macros and hopefully few prototypes,
11549     which can conflict with char $ac_func (); below.
11550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11551     <limits.h> exists even on freestanding compilers.  */
11552
11553 #ifdef __STDC__
11554 # include <limits.h>
11555 #else
11556 # include <assert.h>
11557 #endif
11558
11559 #undef $ac_func
11560
11561 /* Override any gcc2 internal prototype to avoid an error.  */
11562 #ifdef __cplusplus
11563 extern "C"
11564 {
11565 #endif
11566 /* We use char because int might match the return type of a gcc2
11567    builtin and then its argument prototype would still apply.  */
11568 char $ac_func ();
11569 /* The GNU C library defines this for functions which it implements
11570     to always fail with ENOSYS.  Some functions are actually named
11571     something starting with __ and the normal name is an alias.  */
11572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11573 choke me
11574 #else
11575 char (*f) () = $ac_func;
11576 #endif
11577 #ifdef __cplusplus
11578 }
11579 #endif
11580
11581 int
11582 main ()
11583 {
11584 return f != $ac_func;
11585   ;
11586   return 0;
11587 }
11588 _ACEOF
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11591   (eval $ac_link) 2>conftest.er1
11592   ac_status=$?
11593   grep -v '^ *+' conftest.er1 >conftest.err
11594   rm -f conftest.er1
11595   cat conftest.err >&5
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -z "$ac_c_werror_flag"
11599                          || test ! -s conftest.err'
11600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601   (eval $ac_try) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; } &&
11605          { ac_try='test -s conftest$ac_exeext'
11606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607   (eval $ac_try) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); }; }; then
11611   eval "$as_ac_var=yes"
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 eval "$as_ac_var=no"
11617 fi
11618 rm -f conftest.err conftest.$ac_objext \
11619       conftest$ac_exeext conftest.$ac_ext
11620 fi
11621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11623 if test `eval echo '${'$as_ac_var'}'` = yes; then
11624   cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626 _ACEOF
11627
11628
11629 cat >>confdefs.h <<\_ACEOF
11630 #define HAVE_GETHOSTBYNAME_R 1
11631 _ACEOF
11632
11633      # There are two different kinds of gethostbyname_r.
11634      # We look for the one that returns `int'.
11635      # Hopefully this check is robust enough.
11636      cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h.  */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h.  */
11642 #include <netdb.h>
11643
11644 _ACEOF
11645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11646   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11647
11648
11649 cat >>confdefs.h <<\_ACEOF
11650 #define GETHOSTBYNAME_R_RETURNS_INT 1
11651 _ACEOF
11652
11653 fi
11654 rm -f conftest*
11655
11656
11657      case " $GCINCS " in
11658      *" -D_REENTRANT "*) ;;
11659      *)
11660                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11661 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11662 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11663   echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665    ac_ext=cc
11666 ac_cpp='$CXXCPP $CPPFLAGS'
11667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11670
11671           cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h.  */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h.  */
11677 #include <netdb.h>
11678 int
11679 main ()
11680 {
11681 gethostbyname_r("", 0, 0);
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 rm -f conftest.$ac_objext
11687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688   (eval $ac_compile) 2>conftest.er1
11689   ac_status=$?
11690   grep -v '^ *+' conftest.er1 >conftest.err
11691   rm -f conftest.er1
11692   cat conftest.err >&5
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } &&
11695          { ac_try='test -z "$ac_cxx_werror_flag"
11696                          || test ! -s conftest.err'
11697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698   (eval $ac_try) 2>&5
11699   ac_status=$?
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); }; } &&
11702          { ac_try='test -s conftest.$ac_objext'
11703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704   (eval $ac_try) 2>&5
11705   ac_status=$?
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); }; }; then
11708   libjava_cv_gethostbyname_r_needs_reentrant=no
11709 else
11710   echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713                 CPPFLAGS_SAVE="$CPPFLAGS"
11714                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11715                 cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 #include <netdb.h>
11722 int
11723 main ()
11724 {
11725 gethostbyname_r("", 0, 0);
11726   ;
11727   return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest.$ac_objext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732   (eval $ac_compile) 2>conftest.er1
11733   ac_status=$?
11734   grep -v '^ *+' conftest.er1 >conftest.err
11735   rm -f conftest.er1
11736   cat conftest.err >&5
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } &&
11739          { ac_try='test -z "$ac_cxx_werror_flag"
11740                          || test ! -s conftest.err'
11741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742   (eval $ac_try) 2>&5
11743   ac_status=$?
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); }; } &&
11746          { ac_try='test -s conftest.$ac_objext'
11747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748   (eval $ac_try) 2>&5
11749   ac_status=$?
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); }; }; then
11752   libjava_cv_gethostbyname_r_needs_reentrant=yes
11753 else
11754   echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11756
11757 libjava_cv_gethostbyname_r_needs_reentrant=fail
11758 fi
11759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11760                 CPPFLAGS="$CPPFLAGS_SAVE"
11761
11762 fi
11763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11764           ac_ext=c
11765 ac_cpp='$CPP $CPPFLAGS'
11766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11769
11770
11771 fi
11772 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11773 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11774         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11775
11776 cat >>confdefs.h <<\_ACEOF
11777 #define _REENTRANT 1
11778 _ACEOF
11779
11780         fi
11781      ;;
11782      esac
11783
11784      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11785 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11786 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789         cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h.  */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h.  */
11795
11796 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11797 # define _REENTRANT 1
11798 #endif
11799 #include <netdb.h>
11800 int
11801 main ()
11802 {
11803 struct hostent_data data;
11804   ;
11805   return 0;
11806 }
11807 _ACEOF
11808 rm -f conftest.$ac_objext
11809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11810   (eval $ac_compile) 2>conftest.er1
11811   ac_status=$?
11812   grep -v '^ *+' conftest.er1 >conftest.err
11813   rm -f conftest.er1
11814   cat conftest.err >&5
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); } &&
11817          { ac_try='test -z "$ac_c_werror_flag"
11818                          || test ! -s conftest.err'
11819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820   (eval $ac_try) 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; } &&
11824          { ac_try='test -s conftest.$ac_objext'
11825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826   (eval $ac_try) 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }; }; then
11830   libjava_cv_struct_hostent_data=yes
11831 else
11832   echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11834
11835 libjava_cv_struct_hostent_data=no
11836 fi
11837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11838 fi
11839 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11840 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11841      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11842
11843 cat >>confdefs.h <<\_ACEOF
11844 #define HAVE_STRUCT_HOSTENT_DATA 1
11845 _ACEOF
11846
11847      fi
11848
11849 fi
11850 done
11851
11852
11853    # FIXME: libjava source code expects to find a prototype for
11854    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11855    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11856    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11857    # linkage check is enough, yet C++ code requires proper prototypes.)
11858    cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h.  */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h.  */
11864 #include <netdb.h>
11865
11866 _ACEOF
11867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11868   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11869
11870
11871 for ac_func in gethostbyaddr_r
11872 do
11873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11874 echo "$as_me:$LINENO: checking for $ac_func" >&5
11875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11876 if eval "test \"\${$as_ac_var+set}\" = set"; then
11877   echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879   if test x$gcc_no_link = xyes; then
11880   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11882    { (exit 1); exit 1; }; }
11883 fi
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h.  */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h.  */
11890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11892 #define $ac_func innocuous_$ac_func
11893
11894 /* System header to define __stub macros and hopefully few prototypes,
11895     which can conflict with char $ac_func (); below.
11896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11897     <limits.h> exists even on freestanding compilers.  */
11898
11899 #ifdef __STDC__
11900 # include <limits.h>
11901 #else
11902 # include <assert.h>
11903 #endif
11904
11905 #undef $ac_func
11906
11907 /* Override any gcc2 internal prototype to avoid an error.  */
11908 #ifdef __cplusplus
11909 extern "C"
11910 {
11911 #endif
11912 /* We use char because int might match the return type of a gcc2
11913    builtin and then its argument prototype would still apply.  */
11914 char $ac_func ();
11915 /* The GNU C library defines this for functions which it implements
11916     to always fail with ENOSYS.  Some functions are actually named
11917     something starting with __ and the normal name is an alias.  */
11918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11919 choke me
11920 #else
11921 char (*f) () = $ac_func;
11922 #endif
11923 #ifdef __cplusplus
11924 }
11925 #endif
11926
11927 int
11928 main ()
11929 {
11930 return f != $ac_func;
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 rm -f conftest.$ac_objext conftest$ac_exeext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11937   (eval $ac_link) 2>conftest.er1
11938   ac_status=$?
11939   grep -v '^ *+' conftest.er1 >conftest.err
11940   rm -f conftest.er1
11941   cat conftest.err >&5
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); } &&
11944          { ac_try='test -z "$ac_c_werror_flag"
11945                          || test ! -s conftest.err'
11946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947   (eval $ac_try) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; } &&
11951          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11957   eval "$as_ac_var=yes"
11958 else
11959   echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 eval "$as_ac_var=no"
11963 fi
11964 rm -f conftest.err conftest.$ac_objext \
11965       conftest$ac_exeext conftest.$ac_ext
11966 fi
11967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11969 if test `eval echo '${'$as_ac_var'}'` = yes; then
11970   cat >>confdefs.h <<_ACEOF
11971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11972 _ACEOF
11973
11974
11975 cat >>confdefs.h <<\_ACEOF
11976 #define HAVE_GETHOSTBYADDR_R 1
11977 _ACEOF
11978
11979      # There are two different kinds of gethostbyaddr_r.
11980      # We look for the one that returns `int'.
11981      # Hopefully this check is robust enough.
11982      cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h.  */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h.  */
11988 #include <netdb.h>
11989
11990 _ACEOF
11991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11992   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11993
11994
11995 cat >>confdefs.h <<\_ACEOF
11996 #define GETHOSTBYADDR_R_RETURNS_INT 1
11997 _ACEOF
11998
11999 fi
12000 rm -f conftest*
12001
12002 fi
12003 done
12004
12005 fi
12006 rm -f conftest*
12007
12008
12009
12010 for ac_func in gethostname
12011 do
12012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12013 echo "$as_me:$LINENO: checking for $ac_func" >&5
12014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12015 if eval "test \"\${$as_ac_var+set}\" = set"; then
12016   echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018   if test x$gcc_no_link = xyes; then
12019   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12021    { (exit 1); exit 1; }; }
12022 fi
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h.  */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h.  */
12029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12031 #define $ac_func innocuous_$ac_func
12032
12033 /* System header to define __stub macros and hopefully few prototypes,
12034     which can conflict with char $ac_func (); below.
12035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036     <limits.h> exists even on freestanding compilers.  */
12037
12038 #ifdef __STDC__
12039 # include <limits.h>
12040 #else
12041 # include <assert.h>
12042 #endif
12043
12044 #undef $ac_func
12045
12046 /* Override any gcc2 internal prototype to avoid an error.  */
12047 #ifdef __cplusplus
12048 extern "C"
12049 {
12050 #endif
12051 /* We use char because int might match the return type of a gcc2
12052    builtin and then its argument prototype would still apply.  */
12053 char $ac_func ();
12054 /* The GNU C library defines this for functions which it implements
12055     to always fail with ENOSYS.  Some functions are actually named
12056     something starting with __ and the normal name is an alias.  */
12057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12058 choke me
12059 #else
12060 char (*f) () = $ac_func;
12061 #endif
12062 #ifdef __cplusplus
12063 }
12064 #endif
12065
12066 int
12067 main ()
12068 {
12069 return f != $ac_func;
12070   ;
12071   return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076   (eval $ac_link) 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } &&
12083          { ac_try='test -z "$ac_c_werror_flag"
12084                          || test ! -s conftest.err'
12085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086   (eval $ac_try) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; } &&
12090          { ac_try='test -s conftest$ac_exeext'
12091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092   (eval $ac_try) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; }; then
12096   eval "$as_ac_var=yes"
12097 else
12098   echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12100
12101 eval "$as_ac_var=no"
12102 fi
12103 rm -f conftest.err conftest.$ac_objext \
12104       conftest$ac_exeext conftest.$ac_ext
12105 fi
12106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12108 if test `eval echo '${'$as_ac_var'}'` = yes; then
12109   cat >>confdefs.h <<_ACEOF
12110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12111 _ACEOF
12112
12113
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_GETHOSTNAME 1
12116 _ACEOF
12117
12118      cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 #include <unistd.h>
12125
12126 _ACEOF
12127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12128   $EGREP "gethostname" >/dev/null 2>&1; then
12129
12130
12131 cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_GETHOSTNAME_DECL 1
12133 _ACEOF
12134
12135 fi
12136 rm -f conftest*
12137
12138 fi
12139 done
12140
12141
12142
12143 for ac_func in usleep
12144 do
12145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12146 echo "$as_me:$LINENO: checking for $ac_func" >&5
12147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12148 if eval "test \"\${$as_ac_var+set}\" = set"; then
12149   echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151   if test x$gcc_no_link = xyes; then
12152   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12154    { (exit 1); exit 1; }; }
12155 fi
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12164 #define $ac_func innocuous_$ac_func
12165
12166 /* System header to define __stub macros and hopefully few prototypes,
12167     which can conflict with char $ac_func (); below.
12168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169     <limits.h> exists even on freestanding compilers.  */
12170
12171 #ifdef __STDC__
12172 # include <limits.h>
12173 #else
12174 # include <assert.h>
12175 #endif
12176
12177 #undef $ac_func
12178
12179 /* Override any gcc2 internal prototype to avoid an error.  */
12180 #ifdef __cplusplus
12181 extern "C"
12182 {
12183 #endif
12184 /* We use char because int might match the return type of a gcc2
12185    builtin and then its argument prototype would still apply.  */
12186 char $ac_func ();
12187 /* The GNU C library defines this for functions which it implements
12188     to always fail with ENOSYS.  Some functions are actually named
12189     something starting with __ and the normal name is an alias.  */
12190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12191 choke me
12192 #else
12193 char (*f) () = $ac_func;
12194 #endif
12195 #ifdef __cplusplus
12196 }
12197 #endif
12198
12199 int
12200 main ()
12201 {
12202 return f != $ac_func;
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209   (eval $ac_link) 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -z "$ac_c_werror_flag"
12217                          || test ! -s conftest.err'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; } &&
12223          { ac_try='test -s conftest$ac_exeext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   eval "$as_ac_var=yes"
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 eval "$as_ac_var=no"
12235 fi
12236 rm -f conftest.err conftest.$ac_objext \
12237       conftest$ac_exeext conftest.$ac_ext
12238 fi
12239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12241 if test `eval echo '${'$as_ac_var'}'` = yes; then
12242   cat >>confdefs.h <<_ACEOF
12243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 _ACEOF
12245
12246      cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h.  */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h.  */
12252 #include <unistd.h>
12253
12254 _ACEOF
12255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12256   $EGREP "usleep" >/dev/null 2>&1; then
12257
12258
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_USLEEP_DECL 1
12261 _ACEOF
12262
12263 fi
12264 rm -f conftest*
12265
12266 fi
12267 done
12268
12269
12270    # Look for these functions in the thread library, but only bother
12271    # if using POSIX threads.
12272    if test "$THREADS" = posix; then
12273       save_LIBS="$LIBS"
12274       LIBS="$LIBS $THREADLIBS"
12275       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12276       # E.g., Solaris.
12277
12278
12279 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12280 do
12281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12282 echo "$as_me:$LINENO: checking for $ac_func" >&5
12283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12284 if eval "test \"\${$as_ac_var+set}\" = set"; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287   if test x$gcc_no_link = xyes; then
12288   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12290    { (exit 1); exit 1; }; }
12291 fi
12292 cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12300 #define $ac_func innocuous_$ac_func
12301
12302 /* System header to define __stub macros and hopefully few prototypes,
12303     which can conflict with char $ac_func (); below.
12304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12305     <limits.h> exists even on freestanding compilers.  */
12306
12307 #ifdef __STDC__
12308 # include <limits.h>
12309 #else
12310 # include <assert.h>
12311 #endif
12312
12313 #undef $ac_func
12314
12315 /* Override any gcc2 internal prototype to avoid an error.  */
12316 #ifdef __cplusplus
12317 extern "C"
12318 {
12319 #endif
12320 /* We use char because int might match the return type of a gcc2
12321    builtin and then its argument prototype would still apply.  */
12322 char $ac_func ();
12323 /* The GNU C library defines this for functions which it implements
12324     to always fail with ENOSYS.  Some functions are actually named
12325     something starting with __ and the normal name is an alias.  */
12326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12327 choke me
12328 #else
12329 char (*f) () = $ac_func;
12330 #endif
12331 #ifdef __cplusplus
12332 }
12333 #endif
12334
12335 int
12336 main ()
12337 {
12338 return f != $ac_func;
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345   (eval $ac_link) 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } &&
12352          { ac_try='test -z "$ac_c_werror_flag"
12353                          || test ! -s conftest.err'
12354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355   (eval $ac_try) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); }; } &&
12359          { ac_try='test -s conftest$ac_exeext'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; }; then
12365   eval "$as_ac_var=yes"
12366 else
12367   echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12369
12370 eval "$as_ac_var=no"
12371 fi
12372 rm -f conftest.err conftest.$ac_objext \
12373       conftest$ac_exeext conftest.$ac_ext
12374 fi
12375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12377 if test `eval echo '${'$as_ac_var'}'` = yes; then
12378   cat >>confdefs.h <<_ACEOF
12379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12380 _ACEOF
12381
12382 fi
12383 done
12384
12385
12386       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12387       # Solaris 7 the name librt is preferred.
12388
12389 for ac_func in sched_yield
12390 do
12391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12392 echo "$as_me:$LINENO: checking for $ac_func" >&5
12393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12394 if eval "test \"\${$as_ac_var+set}\" = set"; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   if test x$gcc_no_link = xyes; then
12398   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12399 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12400    { (exit 1); exit 1; }; }
12401 fi
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h.  */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h.  */
12408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12410 #define $ac_func innocuous_$ac_func
12411
12412 /* System header to define __stub macros and hopefully few prototypes,
12413     which can conflict with char $ac_func (); below.
12414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12415     <limits.h> exists even on freestanding compilers.  */
12416
12417 #ifdef __STDC__
12418 # include <limits.h>
12419 #else
12420 # include <assert.h>
12421 #endif
12422
12423 #undef $ac_func
12424
12425 /* Override any gcc2 internal prototype to avoid an error.  */
12426 #ifdef __cplusplus
12427 extern "C"
12428 {
12429 #endif
12430 /* We use char because int might match the return type of a gcc2
12431    builtin and then its argument prototype would still apply.  */
12432 char $ac_func ();
12433 /* The GNU C library defines this for functions which it implements
12434     to always fail with ENOSYS.  Some functions are actually named
12435     something starting with __ and the normal name is an alias.  */
12436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12437 choke me
12438 #else
12439 char (*f) () = $ac_func;
12440 #endif
12441 #ifdef __cplusplus
12442 }
12443 #endif
12444
12445 int
12446 main ()
12447 {
12448 return f != $ac_func;
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12455   (eval $ac_link) 2>conftest.er1
12456   ac_status=$?
12457   grep -v '^ *+' conftest.er1 >conftest.err
12458   rm -f conftest.er1
12459   cat conftest.err >&5
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } &&
12462          { ac_try='test -z "$ac_c_werror_flag"
12463                          || test ! -s conftest.err'
12464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465   (eval $ac_try) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; } &&
12469          { ac_try='test -s conftest$ac_exeext'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475   eval "$as_ac_var=yes"
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12479
12480 eval "$as_ac_var=no"
12481 fi
12482 rm -f conftest.err conftest.$ac_objext \
12483       conftest$ac_exeext conftest.$ac_ext
12484 fi
12485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12487 if test `eval echo '${'$as_ac_var'}'` = yes; then
12488   cat >>confdefs.h <<_ACEOF
12489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12490 _ACEOF
12491
12492 else
12493
12494         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12495 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12496 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12497   echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499   ac_check_lib_save_LIBS=$LIBS
12500 LIBS="-lrt  $LIBS"
12501 if test x$gcc_no_link = xyes; then
12502   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12504    { (exit 1); exit 1; }; }
12505 fi
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512
12513 /* Override any gcc2 internal prototype to avoid an error.  */
12514 #ifdef __cplusplus
12515 extern "C"
12516 #endif
12517 /* We use char because int might match the return type of a gcc2
12518    builtin and then its argument prototype would still apply.  */
12519 char sched_yield ();
12520 int
12521 main ()
12522 {
12523 sched_yield ();
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530   (eval $ac_link) 2>conftest.er1
12531   ac_status=$?
12532   grep -v '^ *+' conftest.er1 >conftest.err
12533   rm -f conftest.er1
12534   cat conftest.err >&5
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); } &&
12537          { ac_try='test -z "$ac_c_werror_flag"
12538                          || test ! -s conftest.err'
12539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540   (eval $ac_try) 2>&5
12541   ac_status=$?
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); }; } &&
12544          { ac_try='test -s conftest$ac_exeext'
12545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546   (eval $ac_try) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_cv_lib_rt_sched_yield=yes
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 ac_cv_lib_rt_sched_yield=no
12556 fi
12557 rm -f conftest.err conftest.$ac_objext \
12558       conftest$ac_exeext conftest.$ac_ext
12559 LIBS=$ac_check_lib_save_LIBS
12560 fi
12561 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12562 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12563 if test $ac_cv_lib_rt_sched_yield = yes; then
12564
12565           cat >>confdefs.h <<\_ACEOF
12566 #define HAVE_SCHED_YIELD 1
12567 _ACEOF
12568
12569           THREADLIBS="$THREADLIBS -lrt"
12570           THREADSPEC="$THREADSPEC -lrt"
12571 else
12572
12573           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12574 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12575 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12576   echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578   ac_check_lib_save_LIBS=$LIBS
12579 LIBS="-lposix4  $LIBS"
12580 if test x$gcc_no_link = xyes; then
12581   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12582 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12583    { (exit 1); exit 1; }; }
12584 fi
12585 cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h.  */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h.  */
12591
12592 /* Override any gcc2 internal prototype to avoid an error.  */
12593 #ifdef __cplusplus
12594 extern "C"
12595 #endif
12596 /* We use char because int might match the return type of a gcc2
12597    builtin and then its argument prototype would still apply.  */
12598 char sched_yield ();
12599 int
12600 main ()
12601 {
12602 sched_yield ();
12603   ;
12604   return 0;
12605 }
12606 _ACEOF
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609   (eval $ac_link) 2>conftest.er1
12610   ac_status=$?
12611   grep -v '^ *+' conftest.er1 >conftest.err
12612   rm -f conftest.er1
12613   cat conftest.err >&5
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); } &&
12616          { ac_try='test -z "$ac_c_werror_flag"
12617                          || test ! -s conftest.err'
12618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619   (eval $ac_try) 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); }; } &&
12623          { ac_try='test -s conftest$ac_exeext'
12624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625   (eval $ac_try) 2>&5
12626   ac_status=$?
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); }; }; then
12629   ac_cv_lib_posix4_sched_yield=yes
12630 else
12631   echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634 ac_cv_lib_posix4_sched_yield=no
12635 fi
12636 rm -f conftest.err conftest.$ac_objext \
12637       conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12639 fi
12640 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12641 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12642 if test $ac_cv_lib_posix4_sched_yield = yes; then
12643
12644             cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_SCHED_YIELD 1
12646 _ACEOF
12647
12648             THREADLIBS="$THREADLIBS -lposix4"
12649             THREADSPEC="$THREADSPEC -lposix4"
12650 fi
12651
12652 fi
12653
12654 fi
12655 done
12656
12657
12658       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12659 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12660 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12661   echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663   ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lrt  $LIBS"
12665 if test x$gcc_no_link = xyes; then
12666   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12668    { (exit 1); exit 1; }; }
12669 fi
12670 cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h.  */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h.  */
12676
12677 /* Override any gcc2 internal prototype to avoid an error.  */
12678 #ifdef __cplusplus
12679 extern "C"
12680 #endif
12681 /* We use char because int might match the return type of a gcc2
12682    builtin and then its argument prototype would still apply.  */
12683 char clock_gettime ();
12684 int
12685 main ()
12686 {
12687 clock_gettime ();
12688   ;
12689   return 0;
12690 }
12691 _ACEOF
12692 rm -f conftest.$ac_objext conftest$ac_exeext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12694   (eval $ac_link) 2>conftest.er1
12695   ac_status=$?
12696   grep -v '^ *+' conftest.er1 >conftest.err
12697   rm -f conftest.er1
12698   cat conftest.err >&5
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } &&
12701          { ac_try='test -z "$ac_c_werror_flag"
12702                          || test ! -s conftest.err'
12703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704   (eval $ac_try) 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; } &&
12708          { ac_try='test -s conftest$ac_exeext'
12709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710   (eval $ac_try) 2>&5
12711   ac_status=$?
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); }; }; then
12714   ac_cv_lib_rt_clock_gettime=yes
12715 else
12716   echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12718
12719 ac_cv_lib_rt_clock_gettime=no
12720 fi
12721 rm -f conftest.err conftest.$ac_objext \
12722       conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12724 fi
12725 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12726 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12727 if test $ac_cv_lib_rt_clock_gettime = yes; then
12728
12729
12730 cat >>confdefs.h <<\_ACEOF
12731 #define HAVE_CLOCK_GETTIME 1
12732 _ACEOF
12733
12734          case "$THREADSPEC" in
12735            *-lrt*) ;;
12736            *)
12737              THREADSPEC="$THREADSPEC -lrt"
12738              THREADLIBS="$THREADLIBS -lrt"
12739              ;;
12740          esac
12741 fi
12742
12743
12744       LIBS="$save_LIBS"
12745
12746       # We can save a little space at runtime if the mutex has m_count
12747       # or __m_count.  This is a nice hack for Linux.
12748       cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754 #include <pthread.h>
12755 int
12756 main ()
12757 {
12758
12759           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12760
12761   ;
12762   return 0;
12763 }
12764 _ACEOF
12765 rm -f conftest.$ac_objext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767   (eval $ac_compile) 2>conftest.er1
12768   ac_status=$?
12769   grep -v '^ *+' conftest.er1 >conftest.err
12770   rm -f conftest.er1
12771   cat conftest.err >&5
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); } &&
12774          { ac_try='test -z "$ac_c_werror_flag"
12775                          || test ! -s conftest.err'
12776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777   (eval $ac_try) 2>&5
12778   ac_status=$?
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); }; } &&
12781          { ac_try='test -s conftest.$ac_objext'
12782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783   (eval $ac_try) 2>&5
12784   ac_status=$?
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); }; }; then
12787
12788 cat >>confdefs.h <<\_ACEOF
12789 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12790 _ACEOF
12791
12792 else
12793   echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12795
12796
12797         cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h.  */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h.  */
12803 #include <pthread.h>
12804 int
12805 main ()
12806 {
12807
12808             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 rm -f conftest.$ac_objext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816   (eval $ac_compile) 2>conftest.er1
12817   ac_status=$?
12818   grep -v '^ *+' conftest.er1 >conftest.err
12819   rm -f conftest.er1
12820   cat conftest.err >&5
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } &&
12823          { ac_try='test -z "$ac_c_werror_flag"
12824                          || test ! -s conftest.err'
12825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826   (eval $ac_try) 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; } &&
12830          { ac_try='test -s conftest.$ac_objext'
12831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; }; then
12836
12837 cat >>confdefs.h <<\_ACEOF
12838 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12839 _ACEOF
12840
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845 fi
12846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12847 fi
12848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12849    fi
12850
12851    # We require a way to get the time.
12852    time_found=no
12853
12854
12855
12856 for ac_func in gettimeofday time ftime
12857 do
12858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12859 echo "$as_me:$LINENO: checking for $ac_func" >&5
12860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12861 if eval "test \"\${$as_ac_var+set}\" = set"; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864   if test x$gcc_no_link = xyes; then
12865   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12867    { (exit 1); exit 1; }; }
12868 fi
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12877 #define $ac_func innocuous_$ac_func
12878
12879 /* System header to define __stub macros and hopefully few prototypes,
12880     which can conflict with char $ac_func (); below.
12881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12882     <limits.h> exists even on freestanding compilers.  */
12883
12884 #ifdef __STDC__
12885 # include <limits.h>
12886 #else
12887 # include <assert.h>
12888 #endif
12889
12890 #undef $ac_func
12891
12892 /* Override any gcc2 internal prototype to avoid an error.  */
12893 #ifdef __cplusplus
12894 extern "C"
12895 {
12896 #endif
12897 /* We use char because int might match the return type of a gcc2
12898    builtin and then its argument prototype would still apply.  */
12899 char $ac_func ();
12900 /* The GNU C library defines this for functions which it implements
12901     to always fail with ENOSYS.  Some functions are actually named
12902     something starting with __ and the normal name is an alias.  */
12903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12904 choke me
12905 #else
12906 char (*f) () = $ac_func;
12907 #endif
12908 #ifdef __cplusplus
12909 }
12910 #endif
12911
12912 int
12913 main ()
12914 {
12915 return f != $ac_func;
12916   ;
12917   return 0;
12918 }
12919 _ACEOF
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12922   (eval $ac_link) 2>conftest.er1
12923   ac_status=$?
12924   grep -v '^ *+' conftest.er1 >conftest.err
12925   rm -f conftest.er1
12926   cat conftest.err >&5
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); } &&
12929          { ac_try='test -z "$ac_c_werror_flag"
12930                          || test ! -s conftest.err'
12931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932   (eval $ac_try) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; } &&
12936          { ac_try='test -s conftest$ac_exeext'
12937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938   (eval $ac_try) 2>&5
12939   ac_status=$?
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); }; }; then
12942   eval "$as_ac_var=yes"
12943 else
12944   echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12946
12947 eval "$as_ac_var=no"
12948 fi
12949 rm -f conftest.err conftest.$ac_objext \
12950       conftest$ac_exeext conftest.$ac_ext
12951 fi
12952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12954 if test `eval echo '${'$as_ac_var'}'` = yes; then
12955   cat >>confdefs.h <<_ACEOF
12956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12957 _ACEOF
12958  time_found=yes
12959 fi
12960 done
12961
12962    if test "$time_found" = no; then
12963       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12964 echo "$as_me: error: no function found to get the time" >&2;}
12965    { (exit 1); exit 1; }; }
12966    fi
12967
12968
12969 for ac_func in memmove
12970 do
12971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12972 echo "$as_me:$LINENO: checking for $ac_func" >&5
12973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12974 if eval "test \"\${$as_ac_var+set}\" = set"; then
12975   echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977   if test x$gcc_no_link = xyes; then
12978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12980    { (exit 1); exit 1; }; }
12981 fi
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h.  */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h.  */
12988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12990 #define $ac_func innocuous_$ac_func
12991
12992 /* System header to define __stub macros and hopefully few prototypes,
12993     which can conflict with char $ac_func (); below.
12994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12995     <limits.h> exists even on freestanding compilers.  */
12996
12997 #ifdef __STDC__
12998 # include <limits.h>
12999 #else
13000 # include <assert.h>
13001 #endif
13002
13003 #undef $ac_func
13004
13005 /* Override any gcc2 internal prototype to avoid an error.  */
13006 #ifdef __cplusplus
13007 extern "C"
13008 {
13009 #endif
13010 /* We use char because int might match the return type of a gcc2
13011    builtin and then its argument prototype would still apply.  */
13012 char $ac_func ();
13013 /* The GNU C library defines this for functions which it implements
13014     to always fail with ENOSYS.  Some functions are actually named
13015     something starting with __ and the normal name is an alias.  */
13016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13017 choke me
13018 #else
13019 char (*f) () = $ac_func;
13020 #endif
13021 #ifdef __cplusplus
13022 }
13023 #endif
13024
13025 int
13026 main ()
13027 {
13028 return f != $ac_func;
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13035   (eval $ac_link) 2>conftest.er1
13036   ac_status=$?
13037   grep -v '^ *+' conftest.er1 >conftest.err
13038   rm -f conftest.er1
13039   cat conftest.err >&5
13040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041   (exit $ac_status); } &&
13042          { ac_try='test -z "$ac_c_werror_flag"
13043                          || test ! -s conftest.err'
13044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045   (eval $ac_try) 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; } &&
13049          { ac_try='test -s conftest$ac_exeext'
13050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051   (eval $ac_try) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; }; then
13055   eval "$as_ac_var=yes"
13056 else
13057   echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13059
13060 eval "$as_ac_var=no"
13061 fi
13062 rm -f conftest.err conftest.$ac_objext \
13063       conftest$ac_exeext conftest.$ac_ext
13064 fi
13065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13067 if test `eval echo '${'$as_ac_var'}'` = yes; then
13068   cat >>confdefs.h <<_ACEOF
13069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13070 _ACEOF
13071
13072 fi
13073 done
13074
13075
13076    # We require memcpy.
13077    memcpy_found=no
13078
13079 for ac_func in memcpy
13080 do
13081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13082 echo "$as_me:$LINENO: checking for $ac_func" >&5
13083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13084 if eval "test \"\${$as_ac_var+set}\" = set"; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   if test x$gcc_no_link = xyes; then
13088   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13090    { (exit 1); exit 1; }; }
13091 fi
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h.  */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h.  */
13098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13100 #define $ac_func innocuous_$ac_func
13101
13102 /* System header to define __stub macros and hopefully few prototypes,
13103     which can conflict with char $ac_func (); below.
13104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13105     <limits.h> exists even on freestanding compilers.  */
13106
13107 #ifdef __STDC__
13108 # include <limits.h>
13109 #else
13110 # include <assert.h>
13111 #endif
13112
13113 #undef $ac_func
13114
13115 /* Override any gcc2 internal prototype to avoid an error.  */
13116 #ifdef __cplusplus
13117 extern "C"
13118 {
13119 #endif
13120 /* We use char because int might match the return type of a gcc2
13121    builtin and then its argument prototype would still apply.  */
13122 char $ac_func ();
13123 /* The GNU C library defines this for functions which it implements
13124     to always fail with ENOSYS.  Some functions are actually named
13125     something starting with __ and the normal name is an alias.  */
13126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13127 choke me
13128 #else
13129 char (*f) () = $ac_func;
13130 #endif
13131 #ifdef __cplusplus
13132 }
13133 #endif
13134
13135 int
13136 main ()
13137 {
13138 return f != $ac_func;
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145   (eval $ac_link) 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } &&
13152          { ac_try='test -z "$ac_c_werror_flag"
13153                          || test ! -s conftest.err'
13154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155   (eval $ac_try) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; } &&
13159          { ac_try='test -s conftest$ac_exeext'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }; then
13165   eval "$as_ac_var=yes"
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170 eval "$as_ac_var=no"
13171 fi
13172 rm -f conftest.err conftest.$ac_objext \
13173       conftest$ac_exeext conftest.$ac_ext
13174 fi
13175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13177 if test `eval echo '${'$as_ac_var'}'` = yes; then
13178   cat >>confdefs.h <<_ACEOF
13179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13180 _ACEOF
13181  memcpy_found=yes
13182 fi
13183 done
13184
13185    if test "$memcpy_found" = no; then
13186       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13187 echo "$as_me: error: memcpy is required" >&2;}
13188    { (exit 1); exit 1; }; }
13189    fi
13190    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13191    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13192 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13193 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13194   echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196   ac_check_lib_save_LIBS=$LIBS
13197 LIBS="-ldl  $LIBS"
13198 if test x$gcc_no_link = xyes; then
13199   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13200 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13201    { (exit 1); exit 1; }; }
13202 fi
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h.  */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h.  */
13209
13210 /* Override any gcc2 internal prototype to avoid an error.  */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 /* We use char because int might match the return type of a gcc2
13215    builtin and then its argument prototype would still apply.  */
13216 char dlopen ();
13217 int
13218 main ()
13219 {
13220 dlopen ();
13221   ;
13222   return 0;
13223 }
13224 _ACEOF
13225 rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13227   (eval $ac_link) 2>conftest.er1
13228   ac_status=$?
13229   grep -v '^ *+' conftest.er1 >conftest.err
13230   rm -f conftest.er1
13231   cat conftest.err >&5
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -z "$ac_c_werror_flag"
13235                          || test ! -s conftest.err'
13236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237   (eval $ac_try) 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; } &&
13241          { ac_try='test -s conftest$ac_exeext'
13242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243   (eval $ac_try) 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); }; }; then
13247   ac_cv_lib_dl_dlopen=yes
13248 else
13249   echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252 ac_cv_lib_dl_dlopen=no
13253 fi
13254 rm -f conftest.err conftest.$ac_objext \
13255       conftest$ac_exeext conftest.$ac_ext
13256 LIBS=$ac_check_lib_save_LIBS
13257 fi
13258 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13259 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13260 if test $ac_cv_lib_dl_dlopen = yes; then
13261
13262
13263 cat >>confdefs.h <<\_ACEOF
13264 #define HAVE_DLOPEN 1
13265 _ACEOF
13266
13267 else
13268
13269        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13270 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13271 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13272   echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274   ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-ldld  $LIBS"
13276 if test x$gcc_no_link = xyes; then
13277   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13278 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13279    { (exit 1); exit 1; }; }
13280 fi
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287
13288 /* Override any gcc2 internal prototype to avoid an error.  */
13289 #ifdef __cplusplus
13290 extern "C"
13291 #endif
13292 /* We use char because int might match the return type of a gcc2
13293    builtin and then its argument prototype would still apply.  */
13294 char dlopen ();
13295 int
13296 main ()
13297 {
13298 dlopen ();
13299   ;
13300   return 0;
13301 }
13302 _ACEOF
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305   (eval $ac_link) 2>conftest.er1
13306   ac_status=$?
13307   grep -v '^ *+' conftest.er1 >conftest.err
13308   rm -f conftest.er1
13309   cat conftest.err >&5
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); } &&
13312          { ac_try='test -z "$ac_c_werror_flag"
13313                          || test ! -s conftest.err'
13314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315   (eval $ac_try) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; } &&
13319          { ac_try='test -s conftest$ac_exeext'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   ac_cv_lib_dld_dlopen=yes
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330 ac_cv_lib_dld_dlopen=no
13331 fi
13332 rm -f conftest.err conftest.$ac_objext \
13333       conftest$ac_exeext conftest.$ac_ext
13334 LIBS=$ac_check_lib_save_LIBS
13335 fi
13336 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13337 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13338 if test $ac_cv_lib_dld_dlopen = yes; then
13339
13340
13341 cat >>confdefs.h <<\_ACEOF
13342 #define HAVE_DLOPEN 1
13343 _ACEOF
13344
13345 fi
13346
13347 fi
13348
13349
13350    # Some library-finding code we stole from Tcl.
13351    #--------------------------------------------------------------------
13352    #    Check for the existence of the -lsocket and -lnsl libraries.
13353    #    The order here is important, so that they end up in the right
13354    #    order in the command line generated by make.  Here are some
13355    #    special considerations:
13356    #    1. Use "connect" and "accept" to check for -lsocket, and
13357    #       "gethostbyname" to check for -lnsl.
13358    #    2. Use each function name only once:  can't redo a check because
13359    #       autoconf caches the results of the last check and won't redo it.
13360    #    3. Use -lnsl and -lsocket only if they supply procedures that
13361    #       aren't already present in the normal libraries.  This is because
13362    #       IRIX 5.2 has libraries, but they aren't needed and they're
13363    #       bogus:  they goof up name resolution if used.
13364    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13365    #       To get around this problem, check for both libraries together
13366    #       if -lsocket doesn't work by itself.
13367    #--------------------------------------------------------------------
13368
13369    echo "$as_me:$LINENO: checking for socket libraries" >&5
13370 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13371 if test "${gcj_cv_lib_sockets+set}" = set; then
13372   echo $ECHO_N "(cached) $ECHO_C" >&6
13373 else
13374   gcj_cv_lib_sockets=
13375      gcj_checkBoth=0
13376      unset ac_cv_func_connect
13377      echo "$as_me:$LINENO: checking for connect" >&5
13378 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13379 if test "${ac_cv_func_connect+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   if test x$gcc_no_link = xyes; then
13383   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13385    { (exit 1); exit 1; }; }
13386 fi
13387 cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h.  */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h.  */
13393 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13395 #define connect innocuous_connect
13396
13397 /* System header to define __stub macros and hopefully few prototypes,
13398     which can conflict with char connect (); below.
13399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13400     <limits.h> exists even on freestanding compilers.  */
13401
13402 #ifdef __STDC__
13403 # include <limits.h>
13404 #else
13405 # include <assert.h>
13406 #endif
13407
13408 #undef connect
13409
13410 /* Override any gcc2 internal prototype to avoid an error.  */
13411 #ifdef __cplusplus
13412 extern "C"
13413 {
13414 #endif
13415 /* We use char because int might match the return type of a gcc2
13416    builtin and then its argument prototype would still apply.  */
13417 char connect ();
13418 /* The GNU C library defines this for functions which it implements
13419     to always fail with ENOSYS.  Some functions are actually named
13420     something starting with __ and the normal name is an alias.  */
13421 #if defined (__stub_connect) || defined (__stub___connect)
13422 choke me
13423 #else
13424 char (*f) () = connect;
13425 #endif
13426 #ifdef __cplusplus
13427 }
13428 #endif
13429
13430 int
13431 main ()
13432 {
13433 return f != connect;
13434   ;
13435   return 0;
13436 }
13437 _ACEOF
13438 rm -f conftest.$ac_objext conftest$ac_exeext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13440   (eval $ac_link) 2>conftest.er1
13441   ac_status=$?
13442   grep -v '^ *+' conftest.er1 >conftest.err
13443   rm -f conftest.er1
13444   cat conftest.err >&5
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } &&
13447          { ac_try='test -z "$ac_c_werror_flag"
13448                          || test ! -s conftest.err'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; } &&
13454          { ac_try='test -s conftest$ac_exeext'
13455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456   (eval $ac_try) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; }; then
13460   ac_cv_func_connect=yes
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465 ac_cv_func_connect=no
13466 fi
13467 rm -f conftest.err conftest.$ac_objext \
13468       conftest$ac_exeext conftest.$ac_ext
13469 fi
13470 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13471 echo "${ECHO_T}$ac_cv_func_connect" >&6
13472 if test $ac_cv_func_connect = yes; then
13473   gcj_checkSocket=0
13474 else
13475   gcj_checkSocket=1
13476 fi
13477
13478      if test "$gcj_checkSocket" = 1; then
13479          unset ac_cv_func_connect
13480          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13481 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13482 if test "${ac_cv_lib_socket_main+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   ac_check_lib_save_LIBS=$LIBS
13486 LIBS="-lsocket  $LIBS"
13487 if test x$gcc_no_link = xyes; then
13488   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13490    { (exit 1); exit 1; }; }
13491 fi
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498
13499
13500 int
13501 main ()
13502 {
13503 main ();
13504   ;
13505   return 0;
13506 }
13507 _ACEOF
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510   (eval $ac_link) 2>conftest.er1
13511   ac_status=$?
13512   grep -v '^ *+' conftest.er1 >conftest.err
13513   rm -f conftest.er1
13514   cat conftest.err >&5
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -z "$ac_c_werror_flag"
13518                          || test ! -s conftest.err'
13519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520   (eval $ac_try) 2>&5
13521   ac_status=$?
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); }; } &&
13524          { ac_try='test -s conftest$ac_exeext'
13525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526   (eval $ac_try) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; }; then
13530   ac_cv_lib_socket_main=yes
13531 else
13532   echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13534
13535 ac_cv_lib_socket_main=no
13536 fi
13537 rm -f conftest.err conftest.$ac_objext \
13538       conftest$ac_exeext conftest.$ac_ext
13539 LIBS=$ac_check_lib_save_LIBS
13540 fi
13541 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13542 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13543 if test $ac_cv_lib_socket_main = yes; then
13544   gcj_cv_lib_sockets="-lsocket"
13545 else
13546   gcj_checkBoth=1
13547 fi
13548
13549      fi
13550      if test "$gcj_checkBoth" = 1; then
13551          gcj_oldLibs=$LIBS
13552          LIBS="$LIBS -lsocket -lnsl"
13553          unset ac_cv_func_accept
13554          echo "$as_me:$LINENO: checking for accept" >&5
13555 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13556 if test "${ac_cv_func_accept+set}" = set; then
13557   echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559   if test x$gcc_no_link = xyes; then
13560   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13562    { (exit 1); exit 1; }; }
13563 fi
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h.  */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h.  */
13570 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13572 #define accept innocuous_accept
13573
13574 /* System header to define __stub macros and hopefully few prototypes,
13575     which can conflict with char accept (); below.
13576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13577     <limits.h> exists even on freestanding compilers.  */
13578
13579 #ifdef __STDC__
13580 # include <limits.h>
13581 #else
13582 # include <assert.h>
13583 #endif
13584
13585 #undef accept
13586
13587 /* Override any gcc2 internal prototype to avoid an error.  */
13588 #ifdef __cplusplus
13589 extern "C"
13590 {
13591 #endif
13592 /* We use char because int might match the return type of a gcc2
13593    builtin and then its argument prototype would still apply.  */
13594 char accept ();
13595 /* The GNU C library defines this for functions which it implements
13596     to always fail with ENOSYS.  Some functions are actually named
13597     something starting with __ and the normal name is an alias.  */
13598 #if defined (__stub_accept) || defined (__stub___accept)
13599 choke me
13600 #else
13601 char (*f) () = accept;
13602 #endif
13603 #ifdef __cplusplus
13604 }
13605 #endif
13606
13607 int
13608 main ()
13609 {
13610 return f != accept;
13611   ;
13612   return 0;
13613 }
13614 _ACEOF
13615 rm -f conftest.$ac_objext conftest$ac_exeext
13616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13617   (eval $ac_link) 2>conftest.er1
13618   ac_status=$?
13619   grep -v '^ *+' conftest.er1 >conftest.err
13620   rm -f conftest.er1
13621   cat conftest.err >&5
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); } &&
13624          { ac_try='test -z "$ac_c_werror_flag"
13625                          || test ! -s conftest.err'
13626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627   (eval $ac_try) 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); }; } &&
13631          { ac_try='test -s conftest$ac_exeext'
13632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633   (eval $ac_try) 2>&5
13634   ac_status=$?
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); }; }; then
13637   ac_cv_func_accept=yes
13638 else
13639   echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13641
13642 ac_cv_func_accept=no
13643 fi
13644 rm -f conftest.err conftest.$ac_objext \
13645       conftest$ac_exeext conftest.$ac_ext
13646 fi
13647 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13648 echo "${ECHO_T}$ac_cv_func_accept" >&6
13649 if test $ac_cv_func_accept = yes; then
13650   gcj_checkNsl=0
13651                         gcj_cv_lib_sockets="-lsocket -lnsl"
13652 fi
13653
13654          unset ac_cv_func_accept
13655          LIBS=$gcj_oldLibs
13656      fi
13657      unset ac_cv_func_gethostbyname
13658      gcj_oldLibs=$LIBS
13659      LIBS="$LIBS $gcj_cv_lib_sockets"
13660      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13661 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13662 if test "${ac_cv_func_gethostbyname+set}" = set; then
13663   echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665   if test x$gcc_no_link = xyes; then
13666   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13668    { (exit 1); exit 1; }; }
13669 fi
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h.  */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h.  */
13676 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13678 #define gethostbyname innocuous_gethostbyname
13679
13680 /* System header to define __stub macros and hopefully few prototypes,
13681     which can conflict with char gethostbyname (); below.
13682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13683     <limits.h> exists even on freestanding compilers.  */
13684
13685 #ifdef __STDC__
13686 # include <limits.h>
13687 #else
13688 # include <assert.h>
13689 #endif
13690
13691 #undef gethostbyname
13692
13693 /* Override any gcc2 internal prototype to avoid an error.  */
13694 #ifdef __cplusplus
13695 extern "C"
13696 {
13697 #endif
13698 /* We use char because int might match the return type of a gcc2
13699    builtin and then its argument prototype would still apply.  */
13700 char gethostbyname ();
13701 /* The GNU C library defines this for functions which it implements
13702     to always fail with ENOSYS.  Some functions are actually named
13703     something starting with __ and the normal name is an alias.  */
13704 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13705 choke me
13706 #else
13707 char (*f) () = gethostbyname;
13708 #endif
13709 #ifdef __cplusplus
13710 }
13711 #endif
13712
13713 int
13714 main ()
13715 {
13716 return f != gethostbyname;
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723   (eval $ac_link) 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } &&
13730          { ac_try='test -z "$ac_c_werror_flag"
13731                          || test ! -s conftest.err'
13732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733   (eval $ac_try) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; } &&
13737          { ac_try='test -s conftest$ac_exeext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ac_cv_func_gethostbyname=yes
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ac_cv_func_gethostbyname=no
13749 fi
13750 rm -f conftest.err conftest.$ac_objext \
13751       conftest$ac_exeext conftest.$ac_ext
13752 fi
13753 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13754 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13755 if test $ac_cv_func_gethostbyname = yes; then
13756   :
13757 else
13758   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13759 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13760 if test "${ac_cv_lib_nsl_main+set}" = set; then
13761   echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763   ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-lnsl  $LIBS"
13765 if test x$gcc_no_link = xyes; then
13766   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13768    { (exit 1); exit 1; }; }
13769 fi
13770 cat >conftest.$ac_ext <<_ACEOF
13771 /* confdefs.h.  */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h.  */
13776
13777
13778 int
13779 main ()
13780 {
13781 main ();
13782   ;
13783   return 0;
13784 }
13785 _ACEOF
13786 rm -f conftest.$ac_objext conftest$ac_exeext
13787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13788   (eval $ac_link) 2>conftest.er1
13789   ac_status=$?
13790   grep -v '^ *+' conftest.er1 >conftest.err
13791   rm -f conftest.er1
13792   cat conftest.err >&5
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); } &&
13795          { ac_try='test -z "$ac_c_werror_flag"
13796                          || test ! -s conftest.err'
13797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798   (eval $ac_try) 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); }; } &&
13802          { ac_try='test -s conftest$ac_exeext'
13803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804   (eval $ac_try) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; }; then
13808   ac_cv_lib_nsl_main=yes
13809 else
13810   echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813 ac_cv_lib_nsl_main=no
13814 fi
13815 rm -f conftest.err conftest.$ac_objext \
13816       conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13818 fi
13819 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13820 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13821 if test $ac_cv_lib_nsl_main = yes; then
13822   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13823 fi
13824
13825 fi
13826
13827      unset ac_cv_func_gethostbyname
13828      LIBS=$gcj_oldLIBS
13829
13830 fi
13831 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13832 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13833    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13834
13835    if test "$with_system_zlib" = yes; then
13836       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13837 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13838 if test "${ac_cv_lib_z_deflate+set}" = set; then
13839   echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841   ac_check_lib_save_LIBS=$LIBS
13842 LIBS="-lz  $LIBS"
13843 if test x$gcc_no_link = xyes; then
13844   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13846    { (exit 1); exit 1; }; }
13847 fi
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854
13855 /* Override any gcc2 internal prototype to avoid an error.  */
13856 #ifdef __cplusplus
13857 extern "C"
13858 #endif
13859 /* We use char because int might match the return type of a gcc2
13860    builtin and then its argument prototype would still apply.  */
13861 char deflate ();
13862 int
13863 main ()
13864 {
13865 deflate ();
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872   (eval $ac_link) 2>conftest.er1
13873   ac_status=$?
13874   grep -v '^ *+' conftest.er1 >conftest.err
13875   rm -f conftest.er1
13876   cat conftest.err >&5
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } &&
13879          { ac_try='test -z "$ac_c_werror_flag"
13880                          || test ! -s conftest.err'
13881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882   (eval $ac_try) 2>&5
13883   ac_status=$?
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); }; } &&
13886          { ac_try='test -s conftest$ac_exeext'
13887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888   (eval $ac_try) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; }; then
13892   ac_cv_lib_z_deflate=yes
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 ac_cv_lib_z_deflate=no
13898 fi
13899 rm -f conftest.err conftest.$ac_objext \
13900       conftest$ac_exeext conftest.$ac_ext
13901 LIBS=$ac_check_lib_save_LIBS
13902 fi
13903 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13904 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13905 if test $ac_cv_lib_z_deflate = yes; then
13906   ZLIBSPEC=-lz
13907 else
13908   ZLIBSPEC=
13909 fi
13910
13911    fi
13912
13913    # Test for Gtk stuff, if asked for.
13914    if test "$use_gtk_awt" = yes; then
13915
13916   succeeded=no
13917
13918   if test -z "$PKG_CONFIG"; then
13919     # Extract the first word of "pkg-config", so it can be a program name with args.
13920 set dummy pkg-config; ac_word=$2
13921 echo "$as_me:$LINENO: checking for $ac_word" >&5
13922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13923 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   case $PKG_CONFIG in
13927   [\\/]* | ?:[\\/]*)
13928   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13929   ;;
13930   *)
13931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13932 for as_dir in $PATH
13933 do
13934   IFS=$as_save_IFS
13935   test -z "$as_dir" && as_dir=.
13936   for ac_exec_ext in '' $ac_executable_extensions; do
13937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13938     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13940     break 2
13941   fi
13942 done
13943 done
13944
13945   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13946   ;;
13947 esac
13948 fi
13949 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13950
13951 if test -n "$PKG_CONFIG"; then
13952   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13953 echo "${ECHO_T}$PKG_CONFIG" >&6
13954 else
13955   echo "$as_me:$LINENO: result: no" >&5
13956 echo "${ECHO_T}no" >&6
13957 fi
13958
13959   fi
13960
13961   if test "$PKG_CONFIG" = "no" ; then
13962      echo "*** The pkg-config script could not be found. Make sure it is"
13963      echo "*** in your path, or set the PKG_CONFIG environment variable"
13964      echo "*** to the full path to pkg-config."
13965      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13966   else
13967      PKG_CONFIG_MIN_VERSION=0.9.0
13968      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13969         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13970 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13971
13972         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13973             echo "$as_me:$LINENO: result: yes" >&5
13974 echo "${ECHO_T}yes" >&6
13975             succeeded=yes
13976
13977             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13978 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13979             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13980             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13981 echo "${ECHO_T}$GTK_CFLAGS" >&6
13982
13983             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13984 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13985             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13986             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13987 echo "${ECHO_T}$GTK_LIBS" >&6
13988         else
13989             GTK_CFLAGS=""
13990             GTK_LIBS=""
13991             ## If we have a custom action on failure, don't print errors, but
13992             ## do set a variable so people can do so.
13993             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13994             echo $GTK_PKG_ERRORS
13995         fi
13996
13997
13998
13999      else
14000         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14001         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14002      fi
14003   fi
14004
14005   if test $succeeded = yes; then
14006      :
14007   else
14008      { { 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
14009 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;}
14010    { (exit 1); exit 1; }; }
14011   fi
14012
14013
14014
14015
14016
14017   succeeded=no
14018
14019   if test -z "$PKG_CONFIG"; then
14020     # Extract the first word of "pkg-config", so it can be a program name with args.
14021 set dummy pkg-config; ac_word=$2
14022 echo "$as_me:$LINENO: checking for $ac_word" >&5
14023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14025   echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027   case $PKG_CONFIG in
14028   [\\/]* | ?:[\\/]*)
14029   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14030   ;;
14031   *)
14032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033 for as_dir in $PATH
14034 do
14035   IFS=$as_save_IFS
14036   test -z "$as_dir" && as_dir=.
14037   for ac_exec_ext in '' $ac_executable_extensions; do
14038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14039     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14041     break 2
14042   fi
14043 done
14044 done
14045
14046   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14047   ;;
14048 esac
14049 fi
14050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14051
14052 if test -n "$PKG_CONFIG"; then
14053   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14054 echo "${ECHO_T}$PKG_CONFIG" >&6
14055 else
14056   echo "$as_me:$LINENO: result: no" >&5
14057 echo "${ECHO_T}no" >&6
14058 fi
14059
14060   fi
14061
14062   if test "$PKG_CONFIG" = "no" ; then
14063      echo "*** The pkg-config script could not be found. Make sure it is"
14064      echo "*** in your path, or set the PKG_CONFIG environment variable"
14065      echo "*** to the full path to pkg-config."
14066      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14067   else
14068      PKG_CONFIG_MIN_VERSION=0.9.0
14069      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14070         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14071 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
14072
14073         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14074             echo "$as_me:$LINENO: result: yes" >&5
14075 echo "${ECHO_T}yes" >&6
14076             succeeded=yes
14077
14078             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14079 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14080             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14081             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14082 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14083
14084             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14085 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14086             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14087             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14088 echo "${ECHO_T}$GLIB_LIBS" >&6
14089         else
14090             GLIB_CFLAGS=""
14091             GLIB_LIBS=""
14092             ## If we have a custom action on failure, don't print errors, but
14093             ## do set a variable so people can do so.
14094             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14095             echo $GLIB_PKG_ERRORS
14096         fi
14097
14098
14099
14100      else
14101         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14102         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14103      fi
14104   fi
14105
14106   if test $succeeded = yes; then
14107      :
14108   else
14109      { { 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
14110 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;}
14111    { (exit 1); exit 1; }; }
14112   fi
14113
14114
14115
14116
14117
14118   succeeded=no
14119
14120   if test -z "$PKG_CONFIG"; then
14121     # Extract the first word of "pkg-config", so it can be a program name with args.
14122 set dummy pkg-config; ac_word=$2
14123 echo "$as_me:$LINENO: checking for $ac_word" >&5
14124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   case $PKG_CONFIG in
14129   [\\/]* | ?:[\\/]*)
14130   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14131   ;;
14132   *)
14133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134 for as_dir in $PATH
14135 do
14136   IFS=$as_save_IFS
14137   test -z "$as_dir" && as_dir=.
14138   for ac_exec_ext in '' $ac_executable_extensions; do
14139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14140     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14142     break 2
14143   fi
14144 done
14145 done
14146
14147   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14148   ;;
14149 esac
14150 fi
14151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14152
14153 if test -n "$PKG_CONFIG"; then
14154   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14155 echo "${ECHO_T}$PKG_CONFIG" >&6
14156 else
14157   echo "$as_me:$LINENO: result: no" >&5
14158 echo "${ECHO_T}no" >&6
14159 fi
14160
14161   fi
14162
14163   if test "$PKG_CONFIG" = "no" ; then
14164      echo "*** The pkg-config script could not be found. Make sure it is"
14165      echo "*** in your path, or set the PKG_CONFIG environment variable"
14166      echo "*** to the full path to pkg-config."
14167      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14168   else
14169      PKG_CONFIG_MIN_VERSION=0.9.0
14170      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14171         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14172 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14173
14174         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14175             echo "$as_me:$LINENO: result: yes" >&5
14176 echo "${ECHO_T}yes" >&6
14177             succeeded=yes
14178
14179             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14180 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14181             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14182             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14183 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14184
14185             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14186 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14187             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14188             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14189 echo "${ECHO_T}$LIBART_LIBS" >&6
14190         else
14191             LIBART_CFLAGS=""
14192             LIBART_LIBS=""
14193             ## If we have a custom action on failure, don't print errors, but
14194             ## do set a variable so people can do so.
14195             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14196             echo $LIBART_PKG_ERRORS
14197         fi
14198
14199
14200
14201      else
14202         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14203         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14204      fi
14205   fi
14206
14207   if test $succeeded = yes; then
14208      :
14209   else
14210      { { 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
14211 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;}
14212    { (exit 1); exit 1; }; }
14213   fi
14214
14215
14216
14217
14218       # We require the XTest Extension to support java.awt.Robot.
14219       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14220 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14221 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   ac_check_lib_save_LIBS=$LIBS
14225 LIBS="-lXtst ${X_LIBS} $LIBS"
14226 if test x$gcc_no_link = xyes; then
14227   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14229    { (exit 1); exit 1; }; }
14230 fi
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237
14238 /* Override any gcc2 internal prototype to avoid an error.  */
14239 #ifdef __cplusplus
14240 extern "C"
14241 #endif
14242 /* We use char because int might match the return type of a gcc2
14243    builtin and then its argument prototype would still apply.  */
14244 char XTestQueryExtension ();
14245 int
14246 main ()
14247 {
14248 XTestQueryExtension ();
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14255   (eval $ac_link) 2>conftest.er1
14256   ac_status=$?
14257   grep -v '^ *+' conftest.er1 >conftest.err
14258   rm -f conftest.er1
14259   cat conftest.err >&5
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); } &&
14262          { ac_try='test -z "$ac_c_werror_flag"
14263                          || test ! -s conftest.err'
14264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265   (eval $ac_try) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; } &&
14269          { ac_try='test -s conftest$ac_exeext'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }; then
14275   ac_cv_lib_Xtst_XTestQueryExtension=yes
14276 else
14277   echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14279
14280 ac_cv_lib_Xtst_XTestQueryExtension=no
14281 fi
14282 rm -f conftest.err conftest.$ac_objext \
14283       conftest$ac_exeext conftest.$ac_ext
14284 LIBS=$ac_check_lib_save_LIBS
14285 fi
14286 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14287 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14288 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14289   true
14290 else
14291   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14292 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14293    { (exit 1); exit 1; }; }
14294 fi
14295
14296    fi
14297
14298    # On Solaris, and maybe other architectures, the Boehm collector
14299    # requires -ldl.
14300    if test "$GC" = boehm; then
14301       echo "$as_me:$LINENO: checking for main in -ldl" >&5
14302 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14303 if test "${ac_cv_lib_dl_main+set}" = set; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306   ac_check_lib_save_LIBS=$LIBS
14307 LIBS="-ldl  $LIBS"
14308 if test x$gcc_no_link = xyes; then
14309   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14310 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14311    { (exit 1); exit 1; }; }
14312 fi
14313 cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319
14320
14321 int
14322 main ()
14323 {
14324 main ();
14325   ;
14326   return 0;
14327 }
14328 _ACEOF
14329 rm -f conftest.$ac_objext conftest$ac_exeext
14330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331   (eval $ac_link) 2>conftest.er1
14332   ac_status=$?
14333   grep -v '^ *+' conftest.er1 >conftest.err
14334   rm -f conftest.er1
14335   cat conftest.err >&5
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); } &&
14338          { ac_try='test -z "$ac_c_werror_flag"
14339                          || test ! -s conftest.err'
14340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341   (eval $ac_try) 2>&5
14342   ac_status=$?
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; } &&
14345          { ac_try='test -s conftest$ac_exeext'
14346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347   (eval $ac_try) 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); }; }; then
14351   ac_cv_lib_dl_main=yes
14352 else
14353   echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14355
14356 ac_cv_lib_dl_main=no
14357 fi
14358 rm -f conftest.err conftest.$ac_objext \
14359       conftest$ac_exeext conftest.$ac_ext
14360 LIBS=$ac_check_lib_save_LIBS
14361 fi
14362 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14363 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14364 if test $ac_cv_lib_dl_main = yes; then
14365   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14366 fi
14367
14368    fi
14369 fi
14370
14371 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14372 case $build in
14373     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14374     *)         CLASSPATH_SEPARATOR=':' ;;
14375 esac
14376
14377
14378 # We must search the source tree for java.lang, since we still don't
14379 # have libgcj.jar nor java/lang/*.class
14380 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14381 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14382
14383 # Since some classes depend on this one, we need its source available
14384 # before we can do any GCJ compilation test :-(
14385 if test ! -f gnu/classpath/Configuration.java; then
14386   test -d gnu || mkdir gnu
14387   test -d gnu/classpath || mkdir gnu/classpath
14388   # Note that it is not crucial that all the values here be correct.
14389   sed -e "s,@prefix@,$prefix," \
14390       -e "s,@VERSION@,$VERSION," \
14391       -e "s,@LIBDEBUG@,false," \
14392       -e "s,@INIT_LOAD_LIBRARY@,false," \
14393       -e "s,@@,$LIBGCJDEBUG," \
14394       -e "s,@default_toolkit@,$TOOLKIT," \
14395       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14396       -e "s,@GTK_CAIRO_ENABLED@,false," \
14397         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14398         > gnu/classpath/Configuration.java
14399   # We do not want to redirect the output of the grep below to /dev/null,
14400   # but we add /dev/null to the input list so that grep will print the
14401   # filename of Configuration.java in case it finds any matches.
14402   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14403     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14404 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14405    { (exit 1); exit 1; }; }
14406   fi
14407 fi
14408
14409 if test -n "$ac_tool_prefix"; then
14410   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14411 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14412 echo "$as_me:$LINENO: checking for $ac_word" >&5
14413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14414 if test "${ac_cv_prog_GCJ+set}" = set; then
14415   echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417   if test -n "$GCJ"; then
14418   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14419 else
14420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 for as_dir in $PATH
14422 do
14423   IFS=$as_save_IFS
14424   test -z "$as_dir" && as_dir=.
14425   for ac_exec_ext in '' $ac_executable_extensions; do
14426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14427     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14429     break 2
14430   fi
14431 done
14432 done
14433
14434 fi
14435 fi
14436 GCJ=$ac_cv_prog_GCJ
14437 if test -n "$GCJ"; then
14438   echo "$as_me:$LINENO: result: $GCJ" >&5
14439 echo "${ECHO_T}$GCJ" >&6
14440 else
14441   echo "$as_me:$LINENO: result: no" >&5
14442 echo "${ECHO_T}no" >&6
14443 fi
14444
14445 fi
14446 if test -z "$ac_cv_prog_GCJ"; then
14447   ac_ct_GCJ=$GCJ
14448   # Extract the first word of "gcj", so it can be a program name with args.
14449 set dummy gcj; ac_word=$2
14450 echo "$as_me:$LINENO: checking for $ac_word" >&5
14451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14452 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14453   echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455   if test -n "$ac_ct_GCJ"; then
14456   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14457 else
14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459 for as_dir in $PATH
14460 do
14461   IFS=$as_save_IFS
14462   test -z "$as_dir" && as_dir=.
14463   for ac_exec_ext in '' $ac_executable_extensions; do
14464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14465     ac_cv_prog_ac_ct_GCJ="gcj"
14466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14467     break 2
14468   fi
14469 done
14470 done
14471
14472   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14473 fi
14474 fi
14475 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14476 if test -n "$ac_ct_GCJ"; then
14477   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14478 echo "${ECHO_T}$ac_ct_GCJ" >&6
14479 else
14480   echo "$as_me:$LINENO: result: no" >&5
14481 echo "${ECHO_T}no" >&6
14482 fi
14483
14484   GCJ=$ac_ct_GCJ
14485 else
14486   GCJ="$ac_cv_prog_GCJ"
14487 fi
14488
14489   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14490
14491
14492
14493
14494 # Now remove it.
14495 rm -f gnu/classpath/Configuration.java
14496
14497 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14498
14499 echo "$as_me:$LINENO: checking for void *" >&5
14500 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14501 if test "${ac_cv_type_void_p+set}" = set; then
14502   echo $ECHO_N "(cached) $ECHO_C" >&6
14503 else
14504   cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510 $ac_includes_default
14511 int
14512 main ()
14513 {
14514 if ((void * *) 0)
14515   return 0;
14516 if (sizeof (void *))
14517   return 0;
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524   (eval $ac_compile) 2>conftest.er1
14525   ac_status=$?
14526   grep -v '^ *+' conftest.er1 >conftest.err
14527   rm -f conftest.er1
14528   cat conftest.err >&5
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); } &&
14531          { ac_try='test -z "$ac_c_werror_flag"
14532                          || test ! -s conftest.err'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; } &&
14538          { ac_try='test -s conftest.$ac_objext'
14539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540   (eval $ac_try) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544   ac_cv_type_void_p=yes
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 ac_cv_type_void_p=no
14550 fi
14551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14552 fi
14553 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14554 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14555
14556 echo "$as_me:$LINENO: checking size of void *" >&5
14557 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14558 if test "${ac_cv_sizeof_void_p+set}" = set; then
14559   echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561   if test "$ac_cv_type_void_p" = yes; then
14562   # The cast to unsigned long works around a bug in the HP C Compiler
14563   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14564   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14565   # This bug is HP SR number 8606223364.
14566   if test "$cross_compiling" = yes; then
14567   # Depending upon the size, compute the lo and hi bounds.
14568 cat >conftest.$ac_ext <<_ACEOF
14569 /* confdefs.h.  */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h.  */
14574 $ac_includes_default
14575 int
14576 main ()
14577 {
14578 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14579 test_array [0] = 0
14580
14581   ;
14582   return 0;
14583 }
14584 _ACEOF
14585 rm -f conftest.$ac_objext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587   (eval $ac_compile) 2>conftest.er1
14588   ac_status=$?
14589   grep -v '^ *+' conftest.er1 >conftest.err
14590   rm -f conftest.er1
14591   cat conftest.err >&5
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); } &&
14594          { ac_try='test -z "$ac_c_werror_flag"
14595                          || test ! -s conftest.err'
14596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597   (eval $ac_try) 2>&5
14598   ac_status=$?
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); }; } &&
14601          { ac_try='test -s conftest.$ac_objext'
14602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603   (eval $ac_try) 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; }; then
14607   ac_lo=0 ac_mid=0
14608   while :; do
14609     cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615 $ac_includes_default
14616 int
14617 main ()
14618 {
14619 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14620 test_array [0] = 0
14621
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628   (eval $ac_compile) 2>conftest.er1
14629   ac_status=$?
14630   grep -v '^ *+' conftest.er1 >conftest.err
14631   rm -f conftest.er1
14632   cat conftest.err >&5
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); } &&
14635          { ac_try='test -z "$ac_c_werror_flag"
14636                          || test ! -s conftest.err'
14637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638   (eval $ac_try) 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; } &&
14642          { ac_try='test -s conftest.$ac_objext'
14643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644   (eval $ac_try) 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); }; }; then
14648   ac_hi=$ac_mid; break
14649 else
14650   echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 ac_lo=`expr $ac_mid + 1`
14654                     if test $ac_lo -le $ac_mid; then
14655                       ac_lo= ac_hi=
14656                       break
14657                     fi
14658                     ac_mid=`expr 2 '*' $ac_mid + 1`
14659 fi
14660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14661   done
14662 else
14663   echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14665
14666 cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672 $ac_includes_default
14673 int
14674 main ()
14675 {
14676 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14677 test_array [0] = 0
14678
14679   ;
14680   return 0;
14681 }
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14685   (eval $ac_compile) 2>conftest.er1
14686   ac_status=$?
14687   grep -v '^ *+' conftest.er1 >conftest.err
14688   rm -f conftest.er1
14689   cat conftest.err >&5
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } &&
14692          { ac_try='test -z "$ac_c_werror_flag"
14693                          || test ! -s conftest.err'
14694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695   (eval $ac_try) 2>&5
14696   ac_status=$?
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); }; } &&
14699          { ac_try='test -s conftest.$ac_objext'
14700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701   (eval $ac_try) 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); }; }; then
14705   ac_hi=-1 ac_mid=-1
14706   while :; do
14707     cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 $ac_includes_default
14714 int
14715 main ()
14716 {
14717 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14718 test_array [0] = 0
14719
14720   ;
14721   return 0;
14722 }
14723 _ACEOF
14724 rm -f conftest.$ac_objext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14726   (eval $ac_compile) 2>conftest.er1
14727   ac_status=$?
14728   grep -v '^ *+' conftest.er1 >conftest.err
14729   rm -f conftest.er1
14730   cat conftest.err >&5
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } &&
14733          { ac_try='test -z "$ac_c_werror_flag"
14734                          || test ! -s conftest.err'
14735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736   (eval $ac_try) 2>&5
14737   ac_status=$?
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); }; } &&
14740          { ac_try='test -s conftest.$ac_objext'
14741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742   (eval $ac_try) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; }; then
14746   ac_lo=$ac_mid; break
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 ac_hi=`expr '(' $ac_mid ')' - 1`
14752                        if test $ac_mid -le $ac_hi; then
14753                          ac_lo= ac_hi=
14754                          break
14755                        fi
14756                        ac_mid=`expr 2 '*' $ac_mid`
14757 fi
14758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14759   done
14760 else
14761   echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 ac_lo= ac_hi=
14765 fi
14766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14767 fi
14768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14769 # Binary search between lo and hi bounds.
14770 while test "x$ac_lo" != "x$ac_hi"; do
14771   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14772   cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h.  */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h.  */
14778 $ac_includes_default
14779 int
14780 main ()
14781 {
14782 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14783 test_array [0] = 0
14784
14785   ;
14786   return 0;
14787 }
14788 _ACEOF
14789 rm -f conftest.$ac_objext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791   (eval $ac_compile) 2>conftest.er1
14792   ac_status=$?
14793   grep -v '^ *+' conftest.er1 >conftest.err
14794   rm -f conftest.er1
14795   cat conftest.err >&5
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } &&
14798          { ac_try='test -z "$ac_c_werror_flag"
14799                          || test ! -s conftest.err'
14800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801   (eval $ac_try) 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; } &&
14805          { ac_try='test -s conftest.$ac_objext'
14806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807   (eval $ac_try) 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; }; then
14811   ac_hi=$ac_mid
14812 else
14813   echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815
14816 ac_lo=`expr '(' $ac_mid ')' + 1`
14817 fi
14818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14819 done
14820 case $ac_lo in
14821 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14822 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14823 See \`config.log' for more details." >&5
14824 echo "$as_me: error: cannot compute sizeof (void *), 77
14825 See \`config.log' for more details." >&2;}
14826    { (exit 1); exit 1; }; } ;;
14827 esac
14828 else
14829   if test "$cross_compiling" = yes; then
14830   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14831 See \`config.log' for more details." >&5
14832 echo "$as_me: error: cannot run test program while cross compiling
14833 See \`config.log' for more details." >&2;}
14834    { (exit 1); exit 1; }; }
14835 else
14836   cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h.  */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h.  */
14842 $ac_includes_default
14843 long longval () { return (long) (sizeof (void *)); }
14844 unsigned long ulongval () { return (long) (sizeof (void *)); }
14845 #include <stdio.h>
14846 #include <stdlib.h>
14847 int
14848 main ()
14849 {
14850
14851   FILE *f = fopen ("conftest.val", "w");
14852   if (! f)
14853     exit (1);
14854   if (((long) (sizeof (void *))) < 0)
14855     {
14856       long i = longval ();
14857       if (i != ((long) (sizeof (void *))))
14858         exit (1);
14859       fprintf (f, "%ld\n", i);
14860     }
14861   else
14862     {
14863       unsigned long i = ulongval ();
14864       if (i != ((long) (sizeof (void *))))
14865         exit (1);
14866       fprintf (f, "%lu\n", i);
14867     }
14868   exit (ferror (f) || fclose (f) != 0);
14869
14870   ;
14871   return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876   (eval $ac_link) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
14885   ac_cv_sizeof_void_p=`cat conftest.val`
14886 else
14887   echo "$as_me: program exited with status $ac_status" >&5
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 ( exit $ac_status )
14892 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14893 See \`config.log' for more details." >&5
14894 echo "$as_me: error: cannot compute sizeof (void *), 77
14895 See \`config.log' for more details." >&2;}
14896    { (exit 1); exit 1; }; }
14897 fi
14898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14899 fi
14900 fi
14901 rm -f conftest.val
14902 else
14903   ac_cv_sizeof_void_p=0
14904 fi
14905 fi
14906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14907 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14908 cat >>confdefs.h <<_ACEOF
14909 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14910 _ACEOF
14911
14912
14913
14914 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14915 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14916 if test "${ac_cv_c_bigendian+set}" = set; then
14917   echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919   # See if sys/param.h defines the BYTE_ORDER macro.
14920 cat >conftest.$ac_ext <<_ACEOF
14921 /* confdefs.h.  */
14922 _ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h.  */
14926 #include <sys/types.h>
14927 #include <sys/param.h>
14928
14929 int
14930 main ()
14931 {
14932 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14933  bogus endian macros
14934 #endif
14935
14936   ;
14937   return 0;
14938 }
14939 _ACEOF
14940 rm -f conftest.$ac_objext
14941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14942   (eval $ac_compile) 2>conftest.er1
14943   ac_status=$?
14944   grep -v '^ *+' conftest.er1 >conftest.err
14945   rm -f conftest.er1
14946   cat conftest.err >&5
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); } &&
14949          { ac_try='test -z "$ac_c_werror_flag"
14950                          || test ! -s conftest.err'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; } &&
14956          { ac_try='test -s conftest.$ac_objext'
14957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958   (eval $ac_try) 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; }; then
14962   # It does; now see whether it defined to BIG_ENDIAN or not.
14963 cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h.  */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h.  */
14969 #include <sys/types.h>
14970 #include <sys/param.h>
14971
14972 int
14973 main ()
14974 {
14975 #if BYTE_ORDER != BIG_ENDIAN
14976  not big endian
14977 #endif
14978
14979   ;
14980   return 0;
14981 }
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985   (eval $ac_compile) 2>conftest.er1
14986   ac_status=$?
14987   grep -v '^ *+' conftest.er1 >conftest.err
14988   rm -f conftest.er1
14989   cat conftest.err >&5
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } &&
14992          { ac_try='test -z "$ac_c_werror_flag"
14993                          || test ! -s conftest.err'
14994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995   (eval $ac_try) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); }; } &&
14999          { ac_try='test -s conftest.$ac_objext'
15000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001   (eval $ac_try) 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; }; then
15005   ac_cv_c_bigendian=yes
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010 ac_cv_c_bigendian=no
15011 fi
15012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15013 else
15014   echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15016
15017 # It does not; compile a test program.
15018 if test "$cross_compiling" = yes; then
15019   # try to guess the endianness by grepping values into an object file
15020   ac_cv_c_bigendian=unknown
15021   cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h.  */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h.  */
15027 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15028 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15029 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15030 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15031 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15032 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15033 int
15034 main ()
15035 {
15036  _ascii (); _ebcdic ();
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043   (eval $ac_compile) 2>conftest.er1
15044   ac_status=$?
15045   grep -v '^ *+' conftest.er1 >conftest.err
15046   rm -f conftest.er1
15047   cat conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } &&
15050          { ac_try='test -z "$ac_c_werror_flag"
15051                          || test ! -s conftest.err'
15052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053   (eval $ac_try) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; } &&
15057          { ac_try='test -s conftest.$ac_objext'
15058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059   (eval $ac_try) 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15064   ac_cv_c_bigendian=yes
15065 fi
15066 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15067   if test "$ac_cv_c_bigendian" = unknown; then
15068     ac_cv_c_bigendian=no
15069   else
15070     # finding both strings is unlikely to happen, but who knows?
15071     ac_cv_c_bigendian=unknown
15072   fi
15073 fi
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 fi
15079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15080 else
15081   cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h.  */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h.  */
15087 int
15088 main ()
15089 {
15090   /* Are we little or big endian?  From Harbison&Steele.  */
15091   union
15092   {
15093     long l;
15094     char c[sizeof (long)];
15095   } u;
15096   u.l = 1;
15097   exit (u.c[sizeof (long) - 1] == 1);
15098 }
15099 _ACEOF
15100 rm -f conftest$ac_exeext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15102   (eval $ac_link) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107   (eval $ac_try) 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; }; then
15111   ac_cv_c_bigendian=no
15112 else
15113   echo "$as_me: program exited with status $ac_status" >&5
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 ( exit $ac_status )
15118 ac_cv_c_bigendian=yes
15119 fi
15120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15121 fi
15122 fi
15123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15124 fi
15125 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15126 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15127 case $ac_cv_c_bigendian in
15128   yes)
15129
15130 cat >>confdefs.h <<\_ACEOF
15131 #define WORDS_BIGENDIAN 1
15132 _ACEOF
15133  ;;
15134   no)
15135      ;;
15136   *)
15137     { { echo "$as_me:$LINENO: error: unknown endianness
15138 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15139 echo "$as_me: error: unknown endianness
15140 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15141    { (exit 1); exit 1; }; } ;;
15142 esac
15143
15144
15145 ZLIBS=
15146 SYS_ZLIBS=
15147 ZINCS=
15148
15149 if test -z "$ZLIBSPEC"; then
15150    # Use zlib from the GCC tree.
15151    ZINCS='-I$(top_srcdir)/../zlib'
15152    ZLIBS=../zlib/libzgcj_convenience.la
15153 else
15154    # System's zlib.
15155    SYS_ZLIBS="$ZLIBSPEC"
15156 fi
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168 if test "$NATIVE" = yes; then
15169   NATIVE_TRUE=
15170   NATIVE_FALSE='#'
15171 else
15172   NATIVE_TRUE='#'
15173   NATIVE_FALSE=
15174 fi
15175
15176
15177
15178 if test "$enable_shared" = yes; then
15179   ENABLE_SHARED_TRUE=
15180   ENABLE_SHARED_FALSE='#'
15181 else
15182   ENABLE_SHARED_TRUE='#'
15183   ENABLE_SHARED_FALSE=
15184 fi
15185
15186
15187
15188 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15189   NEEDS_DATA_START_TRUE=
15190   NEEDS_DATA_START_FALSE='#'
15191 else
15192   NEEDS_DATA_START_TRUE='#'
15193   NEEDS_DATA_START_FALSE=
15194 fi
15195
15196
15197
15198 # Process the option "--enable-version-specific-runtime-libs"
15199 # Calculate toolexeclibdir
15200 case ${version_specific_libs} in
15201   yes)
15202     # Need the gcc compiler version to know where to install libraries
15203     # and header files if --enable-version-specific-runtime-libs option
15204     # is selected.
15205     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15206     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15207     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15208     toolexeclibdir=$toolexecmainlibdir
15209     ;;
15210   no)
15211     if test -n "$with_cross_host" &&
15212        test x"$with_cross_host" != x"no"; then
15213       # Install a library built with a cross compiler in tooldir, not libdir.
15214       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15215       toolexecmainlibdir='$(toolexecdir)/lib'
15216     else
15217       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15218       toolexecmainlibdir='$(libdir)'
15219     fi
15220     multi_os_directory=`$CC -print-multi-os-directory`
15221     case $multi_os_directory in
15222       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15223       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15224     esac
15225     ;;
15226 esac
15227
15228
15229
15230
15231 # Determine where the standard .db file and GNU Classpath JNI
15232 # libraries are found.
15233 multi_os_directory=`$CC -print-multi-os-directory`
15234 case $multi_os_directory in
15235   .)
15236    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15237    ;;
15238   *)
15239    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15240    ;;
15241 esac
15242
15243
15244 # Determine gcj version number.
15245 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15246 GCJVERSION=$gcjversion
15247
15248
15249 cat >>confdefs.h <<_ACEOF
15250 #define GCJVERSION "$GCJVERSION"
15251 _ACEOF
15252
15253
15254
15255 cat >>confdefs.h <<\_ACEOF
15256 #define JV_VERSION "1.5.0"
15257 _ACEOF
15258
15259
15260 cat >>confdefs.h <<\_ACEOF
15261 #define JV_API_VERSION "1.5"
15262 _ACEOF
15263
15264
15265
15266 case "${with_gxx_include_dir}" in
15267   yes)
15268     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15269 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15270    { (exit 1); exit 1; }; }
15271     ;;
15272   no | "")
15273     case "${enable_version_specific_runtime_libs}" in
15274       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15275       *)
15276         libstdcxx_incdir='c++/$(gcc_version)'
15277         gxx_include_dir='include/$(libstdcxx_incdir)'
15278         if test -n "$with_cross_host" &&
15279            test x"$with_cross_host" != x"no"; then
15280           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15281         else
15282           gxx_include_dir='${prefix}/'"$gxx_include_dir"
15283         fi;;
15284     esac ;;
15285   *) gxx_include_dir=${with_gxx_include_dir} ;;
15286 esac
15287
15288
15289
15290
15291 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15292 # On that system, sys/ioctl.h will not include sys/filio.h unless
15293 # BSD_COMP is defined; just including sys/filio.h is simpler.
15294 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15295 # for now.  If you change this, you also must update natFile.cc.
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15320                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15321                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15322                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
15323                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
15324 do
15325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15327   echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15330   echo $ECHO_N "(cached) $ECHO_C" >&6
15331 fi
15332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15334 else
15335   # Is the header compilable?
15336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h.  */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h.  */
15344 $ac_includes_default
15345 #include <$ac_header>
15346 _ACEOF
15347 rm -f conftest.$ac_objext
15348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15349   (eval $ac_compile) 2>conftest.er1
15350   ac_status=$?
15351   grep -v '^ *+' conftest.er1 >conftest.err
15352   rm -f conftest.er1
15353   cat conftest.err >&5
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); } &&
15356          { ac_try='test -z "$ac_c_werror_flag"
15357                          || test ! -s conftest.err'
15358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359   (eval $ac_try) 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); }; } &&
15363          { ac_try='test -s conftest.$ac_objext'
15364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365   (eval $ac_try) 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; }; then
15369   ac_header_compiler=yes
15370 else
15371   echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15373
15374 ac_header_compiler=no
15375 fi
15376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15378 echo "${ECHO_T}$ac_header_compiler" >&6
15379
15380 # Is the header present?
15381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h.  */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h.  */
15389 #include <$ac_header>
15390 _ACEOF
15391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15392   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15393   ac_status=$?
15394   grep -v '^ *+' conftest.er1 >conftest.err
15395   rm -f conftest.er1
15396   cat conftest.err >&5
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } >/dev/null; then
15399   if test -s conftest.err; then
15400     ac_cpp_err=$ac_c_preproc_warn_flag
15401     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15402   else
15403     ac_cpp_err=
15404   fi
15405 else
15406   ac_cpp_err=yes
15407 fi
15408 if test -z "$ac_cpp_err"; then
15409   ac_header_preproc=yes
15410 else
15411   echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414   ac_header_preproc=no
15415 fi
15416 rm -f conftest.err conftest.$ac_ext
15417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15418 echo "${ECHO_T}$ac_header_preproc" >&6
15419
15420 # So?  What about this header?
15421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15422   yes:no: )
15423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15427     ac_header_preproc=yes
15428     ;;
15429   no:yes:* )
15430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15442     (
15443       cat <<\_ASBOX
15444 ## ---------------------------------- ##
15445 ## Report this to the libjava lists.  ##
15446 ## ---------------------------------- ##
15447 _ASBOX
15448     ) |
15449       sed "s/^/$as_me: WARNING:     /" >&2
15450     ;;
15451 esac
15452 echo "$as_me:$LINENO: checking for $ac_header" >&5
15453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15455   echo $ECHO_N "(cached) $ECHO_C" >&6
15456 else
15457   eval "$as_ac_Header=\$ac_header_preproc"
15458 fi
15459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15461
15462 fi
15463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15464   cat >>confdefs.h <<_ACEOF
15465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15466 _ACEOF
15467
15468 fi
15469
15470 done
15471
15472
15473 for ac_header in inttypes.h
15474 do
15475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15477   echo "$as_me:$LINENO: checking for $ac_header" >&5
15478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15480   echo $ECHO_N "(cached) $ECHO_C" >&6
15481 fi
15482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15484 else
15485   # Is the header compilable?
15486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h.  */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h.  */
15494 $ac_includes_default
15495 #include <$ac_header>
15496 _ACEOF
15497 rm -f conftest.$ac_objext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499   (eval $ac_compile) 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag"
15507                          || test ! -s conftest.err'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; } &&
15513          { ac_try='test -s conftest.$ac_objext'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519   ac_header_compiler=yes
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524 ac_header_compiler=no
15525 fi
15526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15528 echo "${ECHO_T}$ac_header_compiler" >&6
15529
15530 # Is the header present?
15531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h.  */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h.  */
15539 #include <$ac_header>
15540 _ACEOF
15541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15543   ac_status=$?
15544   grep -v '^ *+' conftest.er1 >conftest.err
15545   rm -f conftest.er1
15546   cat conftest.err >&5
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); } >/dev/null; then
15549   if test -s conftest.err; then
15550     ac_cpp_err=$ac_c_preproc_warn_flag
15551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15552   else
15553     ac_cpp_err=
15554   fi
15555 else
15556   ac_cpp_err=yes
15557 fi
15558 if test -z "$ac_cpp_err"; then
15559   ac_header_preproc=yes
15560 else
15561   echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15563
15564   ac_header_preproc=no
15565 fi
15566 rm -f conftest.err conftest.$ac_ext
15567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15568 echo "${ECHO_T}$ac_header_preproc" >&6
15569
15570 # So?  What about this header?
15571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15572   yes:no: )
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15577     ac_header_preproc=yes
15578     ;;
15579   no:yes:* )
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15583 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15587 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15590     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15592     (
15593       cat <<\_ASBOX
15594 ## ---------------------------------- ##
15595 ## Report this to the libjava lists.  ##
15596 ## ---------------------------------- ##
15597 _ASBOX
15598     ) |
15599       sed "s/^/$as_me: WARNING:     /" >&2
15600     ;;
15601 esac
15602 echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15605   echo $ECHO_N "(cached) $ECHO_C" >&6
15606 else
15607   eval "$as_ac_Header=\$ac_header_preproc"
15608 fi
15609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15611
15612 fi
15613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15614   cat >>confdefs.h <<_ACEOF
15615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15616 _ACEOF
15617
15618
15619 cat >>confdefs.h <<\_ACEOF
15620 #define HAVE_INTTYPES_H 1
15621 _ACEOF
15622
15623
15624 cat >>confdefs.h <<\_ACEOF
15625 #define JV_HAVE_INTTYPES_H 1
15626 _ACEOF
15627
15628
15629 fi
15630
15631 done
15632
15633 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15634 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15635 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15636   echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638   cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 #include <sys/types.h>
15645 #include <sys/wait.h>
15646 #ifndef WEXITSTATUS
15647 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15648 #endif
15649 #ifndef WIFEXITED
15650 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15651 #endif
15652
15653 int
15654 main ()
15655 {
15656   int s;
15657   wait (&s);
15658   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15659   ;
15660   return 0;
15661 }
15662 _ACEOF
15663 rm -f conftest.$ac_objext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15665   (eval $ac_compile) 2>conftest.er1
15666   ac_status=$?
15667   grep -v '^ *+' conftest.er1 >conftest.err
15668   rm -f conftest.er1
15669   cat conftest.err >&5
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); } &&
15672          { ac_try='test -z "$ac_c_werror_flag"
15673                          || test ! -s conftest.err'
15674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675   (eval $ac_try) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; } &&
15679          { ac_try='test -s conftest.$ac_objext'
15680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681   (eval $ac_try) 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); }; }; then
15685   ac_cv_header_sys_wait_h=yes
15686 else
15687   echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15689
15690 ac_cv_header_sys_wait_h=no
15691 fi
15692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15693 fi
15694 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15695 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15696 if test $ac_cv_header_sys_wait_h = yes; then
15697
15698 cat >>confdefs.h <<\_ACEOF
15699 #define HAVE_SYS_WAIT_H 1
15700 _ACEOF
15701
15702 fi
15703
15704
15705 echo "$as_me:$LINENO: checking for ssize_t" >&5
15706 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15707 if test "${ac_cv_type_ssize_t+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h.  */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h.  */
15716 $ac_includes_default
15717 int
15718 main ()
15719 {
15720 if ((ssize_t *) 0)
15721   return 0;
15722 if (sizeof (ssize_t))
15723   return 0;
15724   ;
15725   return 0;
15726 }
15727 _ACEOF
15728 rm -f conftest.$ac_objext
15729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15730   (eval $ac_compile) 2>conftest.er1
15731   ac_status=$?
15732   grep -v '^ *+' conftest.er1 >conftest.err
15733   rm -f conftest.er1
15734   cat conftest.err >&5
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); } &&
15737          { ac_try='test -z "$ac_c_werror_flag"
15738                          || test ! -s conftest.err'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; } &&
15744          { ac_try='test -s conftest.$ac_objext'
15745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746   (eval $ac_try) 2>&5
15747   ac_status=$?
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); }; }; then
15750   ac_cv_type_ssize_t=yes
15751 else
15752   echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 ac_cv_type_ssize_t=no
15756 fi
15757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758 fi
15759 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15760 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15761 if test $ac_cv_type_ssize_t = yes; then
15762   :
15763 else
15764
15765 cat >>confdefs.h <<_ACEOF
15766 #define ssize_t int
15767 _ACEOF
15768
15769 fi
15770
15771
15772 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15773 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h.  */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h.  */
15780 #include <sys/types.h>
15781 #if STDC_HEADERS
15782 #include <stdlib.h>
15783 #include <stddef.h>
15784 #endif
15785 #if HAVE_NETINET_IN_H
15786 #include <netinet/in.h>
15787 #endif
15788 int
15789 main ()
15790 {
15791 in_addr_t foo;
15792   ;
15793   return 0;
15794 }
15795 _ACEOF
15796 rm -f conftest.$ac_objext
15797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15798   (eval $ac_compile) 2>conftest.er1
15799   ac_status=$?
15800   grep -v '^ *+' conftest.er1 >conftest.err
15801   rm -f conftest.er1
15802   cat conftest.err >&5
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } &&
15805          { ac_try='test -z "$ac_c_werror_flag"
15806                          || test ! -s conftest.err'
15807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808   (eval $ac_try) 2>&5
15809   ac_status=$?
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); }; } &&
15812          { ac_try='test -s conftest.$ac_objext'
15813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814   (eval $ac_try) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); }; }; then
15818
15819 cat >>confdefs.h <<\_ACEOF
15820 #define HAVE_IN_ADDR_T 1
15821 _ACEOF
15822
15823    echo "$as_me:$LINENO: result: yes" >&5
15824 echo "${ECHO_T}yes" >&6
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 echo "$as_me:$LINENO: result: no" >&5
15830 echo "${ECHO_T}no" >&6
15831 fi
15832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15833
15834 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15835 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15836 cat >conftest.$ac_ext <<_ACEOF
15837 /* confdefs.h.  */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h.  */
15842 #include <netinet/in.h>
15843 int
15844 main ()
15845 {
15846 struct ip_mreq mreq;
15847   ;
15848   return 0;
15849 }
15850 _ACEOF
15851 rm -f conftest.$ac_objext
15852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15853   (eval $ac_compile) 2>conftest.er1
15854   ac_status=$?
15855   grep -v '^ *+' conftest.er1 >conftest.err
15856   rm -f conftest.er1
15857   cat conftest.err >&5
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); } &&
15860          { ac_try='test -z "$ac_c_werror_flag"
15861                          || test ! -s conftest.err'
15862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863   (eval $ac_try) 2>&5
15864   ac_status=$?
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); }; } &&
15867          { ac_try='test -s conftest.$ac_objext'
15868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869   (eval $ac_try) 2>&5
15870   ac_status=$?
15871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872   (exit $ac_status); }; }; then
15873
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HAVE_STRUCT_IP_MREQ 1
15876 _ACEOF
15877
15878    echo "$as_me:$LINENO: result: yes" >&5
15879 echo "${ECHO_T}yes" >&6
15880 else
15881   echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15883
15884 echo "$as_me:$LINENO: result: no" >&5
15885 echo "${ECHO_T}no" >&6
15886 fi
15887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15888
15889 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15890 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h.  */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h.  */
15897 #include <netinet/in.h>
15898 int
15899 main ()
15900 {
15901 struct ipv6_mreq mreq6;
15902   ;
15903   return 0;
15904 }
15905 _ACEOF
15906 rm -f conftest.$ac_objext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908   (eval $ac_compile) 2>conftest.er1
15909   ac_status=$?
15910   grep -v '^ *+' conftest.er1 >conftest.err
15911   rm -f conftest.er1
15912   cat conftest.err >&5
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); } &&
15915          { ac_try='test -z "$ac_c_werror_flag"
15916                          || test ! -s conftest.err'
15917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918   (eval $ac_try) 2>&5
15919   ac_status=$?
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); }; } &&
15922          { ac_try='test -s conftest.$ac_objext'
15923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924   (eval $ac_try) 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; }; then
15928
15929 cat >>confdefs.h <<\_ACEOF
15930 #define HAVE_STRUCT_IPV6_MREQ 1
15931 _ACEOF
15932
15933    echo "$as_me:$LINENO: result: yes" >&5
15934 echo "${ECHO_T}yes" >&6
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939 echo "$as_me:$LINENO: result: no" >&5
15940 echo "${ECHO_T}no" >&6
15941 fi
15942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15943
15944 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15945 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15946 cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h.  */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h.  */
15952 #include <netinet/in.h>
15953 int
15954 main ()
15955 {
15956 struct sockaddr_in6 addr6;
15957   ;
15958   return 0;
15959 }
15960 _ACEOF
15961 rm -f conftest.$ac_objext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15963   (eval $ac_compile) 2>conftest.er1
15964   ac_status=$?
15965   grep -v '^ *+' conftest.er1 >conftest.err
15966   rm -f conftest.er1
15967   cat conftest.err >&5
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } &&
15970          { ac_try='test -z "$ac_c_werror_flag"
15971                          || test ! -s conftest.err'
15972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973   (eval $ac_try) 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); }; } &&
15977          { ac_try='test -s conftest.$ac_objext'
15978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979   (eval $ac_try) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); }; }; then
15983
15984 cat >>confdefs.h <<\_ACEOF
15985 #define HAVE_INET6 1
15986 _ACEOF
15987
15988    echo "$as_me:$LINENO: result: yes" >&5
15989 echo "${ECHO_T}yes" >&6
15990 else
15991   echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15993
15994 echo "$as_me:$LINENO: result: no" >&5
15995 echo "${ECHO_T}no" >&6
15996 fi
15997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15998
15999 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16000 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
16001 cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h.  */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h.  */
16007 #define _POSIX_PII_SOCKET
16008 #include <sys/types.h>
16009 #include <sys/socket.h>
16010 int
16011 main ()
16012 {
16013 socklen_t x = 5;
16014   ;
16015   return 0;
16016 }
16017 _ACEOF
16018 rm -f conftest.$ac_objext
16019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16020   (eval $ac_compile) 2>conftest.er1
16021   ac_status=$?
16022   grep -v '^ *+' conftest.er1 >conftest.err
16023   rm -f conftest.er1
16024   cat conftest.err >&5
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); } &&
16027          { ac_try='test -z "$ac_c_werror_flag"
16028                          || test ! -s conftest.err'
16029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030   (eval $ac_try) 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); }; } &&
16034          { ac_try='test -s conftest.$ac_objext'
16035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036   (eval $ac_try) 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); }; }; then
16040
16041 cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_SOCKLEN_T 1
16043 _ACEOF
16044
16045    echo "$as_me:$LINENO: result: yes" >&5
16046 echo "${ECHO_T}yes" >&6
16047 else
16048   echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16050
16051 echo "$as_me:$LINENO: result: no" >&5
16052 echo "${ECHO_T}no" >&6
16053 fi
16054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16055
16056 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16057 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h.  */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h.  */
16064 #include <time.h>
16065 int
16066 main ()
16067 {
16068 struct tm tim; tim.tm_gmtoff = 0;
16069   ;
16070   return 0;
16071 }
16072 _ACEOF
16073 rm -f conftest.$ac_objext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16075   (eval $ac_compile) 2>conftest.er1
16076   ac_status=$?
16077   grep -v '^ *+' conftest.er1 >conftest.err
16078   rm -f conftest.er1
16079   cat conftest.err >&5
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); } &&
16082          { ac_try='test -z "$ac_c_werror_flag"
16083                          || test ! -s conftest.err'
16084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085   (eval $ac_try) 2>&5
16086   ac_status=$?
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); }; } &&
16089          { ac_try='test -s conftest.$ac_objext'
16090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091   (eval $ac_try) 2>&5
16092   ac_status=$?
16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094   (exit $ac_status); }; }; then
16095
16096 cat >>confdefs.h <<\_ACEOF
16097 #define STRUCT_TM_HAS_GMTOFF 1
16098 _ACEOF
16099
16100    echo "$as_me:$LINENO: result: yes" >&5
16101 echo "${ECHO_T}yes" >&6
16102 else
16103   echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16105
16106 echo "$as_me:$LINENO: result: no" >&5
16107 echo "${ECHO_T}no" >&6
16108    echo "$as_me:$LINENO: checking for global timezone variable" >&5
16109 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16110                cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h.  */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h.  */
16116 #include <time.h>
16117 int
16118 main ()
16119 {
16120 void i(){long z2 = 2*timezone;}
16121   ;
16122   return 0;
16123 }
16124 _ACEOF
16125 rm -f conftest.$ac_objext
16126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16127   (eval $ac_compile) 2>conftest.er1
16128   ac_status=$?
16129   grep -v '^ *+' conftest.er1 >conftest.err
16130   rm -f conftest.er1
16131   cat conftest.err >&5
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); } &&
16134          { ac_try='test -z "$ac_c_werror_flag"
16135                          || test ! -s conftest.err'
16136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137   (eval $ac_try) 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; } &&
16141          { ac_try='test -s conftest.$ac_objext'
16142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143   (eval $ac_try) 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); }; }; then
16147
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_TIMEZONE 1
16150 _ACEOF
16151
16152       echo "$as_me:$LINENO: result: yes" >&5
16153 echo "${ECHO_T}yes" >&6
16154 else
16155   echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158 echo "$as_me:$LINENO: result: no" >&5
16159 echo "${ECHO_T}no" >&6
16160        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16161 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16162               cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h.  */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h.  */
16168 #include <time.h>
16169 int
16170 main ()
16171 {
16172 long z2 = _timezone;
16173   ;
16174   return 0;
16175 }
16176 _ACEOF
16177 rm -f conftest.$ac_objext
16178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16179   (eval $ac_compile) 2>conftest.er1
16180   ac_status=$?
16181   grep -v '^ *+' conftest.er1 >conftest.err
16182   rm -f conftest.er1
16183   cat conftest.err >&5
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); } &&
16186          { ac_try='test -z "$ac_c_werror_flag"
16187                          || test ! -s conftest.err'
16188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189   (eval $ac_try) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; } &&
16193          { ac_try='test -s conftest.$ac_objext'
16194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195   (eval $ac_try) 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; }; then
16199
16200 cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_UNDERSCORE_TIMEZONE 1
16202 _ACEOF
16203
16204           echo "$as_me:$LINENO: result: yes" >&5
16205 echo "${ECHO_T}yes" >&6
16206 else
16207   echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16209
16210 echo "$as_me:$LINENO: result: no" >&5
16211 echo "${ECHO_T}no" >&6
16212 fi
16213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16214 fi
16215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16216 fi
16217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16218
16219 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16220 # for constant arguments.  Useless!
16221 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16222 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16223 if test "${ac_cv_working_alloca_h+set}" = set; then
16224   echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226   if test x$gcc_no_link = xyes; then
16227   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16229    { (exit 1); exit 1; }; }
16230 fi
16231 cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h.  */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h.  */
16237 #include <alloca.h>
16238 int
16239 main ()
16240 {
16241 char *p = (char *) alloca (2 * sizeof (int));
16242   ;
16243   return 0;
16244 }
16245 _ACEOF
16246 rm -f conftest.$ac_objext conftest$ac_exeext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16248   (eval $ac_link) 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } &&
16255          { ac_try='test -z "$ac_c_werror_flag"
16256                          || test ! -s conftest.err'
16257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258   (eval $ac_try) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); }; } &&
16262          { ac_try='test -s conftest$ac_exeext'
16263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264   (eval $ac_try) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); }; }; then
16268   ac_cv_working_alloca_h=yes
16269 else
16270   echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273 ac_cv_working_alloca_h=no
16274 fi
16275 rm -f conftest.err conftest.$ac_objext \
16276       conftest$ac_exeext conftest.$ac_ext
16277 fi
16278 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16279 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16280 if test $ac_cv_working_alloca_h = yes; then
16281
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_ALLOCA_H 1
16284 _ACEOF
16285
16286 fi
16287
16288 echo "$as_me:$LINENO: checking for alloca" >&5
16289 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16290 if test "${ac_cv_func_alloca_works+set}" = set; then
16291   echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293   if test x$gcc_no_link = xyes; then
16294   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16296    { (exit 1); exit 1; }; }
16297 fi
16298 cat >conftest.$ac_ext <<_ACEOF
16299 /* confdefs.h.  */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h.  */
16304 #ifdef __GNUC__
16305 # define alloca __builtin_alloca
16306 #else
16307 # ifdef _MSC_VER
16308 #  include <malloc.h>
16309 #  define alloca _alloca
16310 # else
16311 #  if HAVE_ALLOCA_H
16312 #   include <alloca.h>
16313 #  else
16314 #   ifdef _AIX
16315  #pragma alloca
16316 #   else
16317 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16318 char *alloca ();
16319 #    endif
16320 #   endif
16321 #  endif
16322 # endif
16323 #endif
16324
16325 int
16326 main ()
16327 {
16328 char *p = (char *) alloca (1);
16329   ;
16330   return 0;
16331 }
16332 _ACEOF
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16335   (eval $ac_link) 2>conftest.er1
16336   ac_status=$?
16337   grep -v '^ *+' conftest.er1 >conftest.err
16338   rm -f conftest.er1
16339   cat conftest.err >&5
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); } &&
16342          { ac_try='test -z "$ac_c_werror_flag"
16343                          || test ! -s conftest.err'
16344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345   (eval $ac_try) 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; } &&
16349          { ac_try='test -s conftest$ac_exeext'
16350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351   (eval $ac_try) 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; }; then
16355   ac_cv_func_alloca_works=yes
16356 else
16357   echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360 ac_cv_func_alloca_works=no
16361 fi
16362 rm -f conftest.err conftest.$ac_objext \
16363       conftest$ac_exeext conftest.$ac_ext
16364 fi
16365 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16366 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16367
16368 if test $ac_cv_func_alloca_works = yes; then
16369
16370 cat >>confdefs.h <<\_ACEOF
16371 #define HAVE_ALLOCA 1
16372 _ACEOF
16373
16374 else
16375   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16376 # that cause trouble.  Some versions do not even contain alloca or
16377 # contain a buggy version.  If you still want to use their alloca,
16378 # use ar to extract alloca.o from them instead of compiling alloca.c.
16379
16380 ALLOCA=alloca.$ac_objext
16381
16382 cat >>confdefs.h <<\_ACEOF
16383 #define C_ALLOCA 1
16384 _ACEOF
16385
16386
16387 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16388 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16389 if test "${ac_cv_os_cray+set}" = set; then
16390   echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392   cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h.  */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h.  */
16398 #if defined(CRAY) && ! defined(CRAY2)
16399 webecray
16400 #else
16401 wenotbecray
16402 #endif
16403
16404 _ACEOF
16405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16406   $EGREP "webecray" >/dev/null 2>&1; then
16407   ac_cv_os_cray=yes
16408 else
16409   ac_cv_os_cray=no
16410 fi
16411 rm -f conftest*
16412
16413 fi
16414 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16415 echo "${ECHO_T}$ac_cv_os_cray" >&6
16416 if test $ac_cv_os_cray = yes; then
16417   for ac_func in _getb67 GETB67 getb67; do
16418     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16419 echo "$as_me:$LINENO: checking for $ac_func" >&5
16420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16421 if eval "test \"\${$as_ac_var+set}\" = set"; then
16422   echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424   if test x$gcc_no_link = xyes; then
16425   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16426 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16427    { (exit 1); exit 1; }; }
16428 fi
16429 cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h.  */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h.  */
16435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16437 #define $ac_func innocuous_$ac_func
16438
16439 /* System header to define __stub macros and hopefully few prototypes,
16440     which can conflict with char $ac_func (); below.
16441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16442     <limits.h> exists even on freestanding compilers.  */
16443
16444 #ifdef __STDC__
16445 # include <limits.h>
16446 #else
16447 # include <assert.h>
16448 #endif
16449
16450 #undef $ac_func
16451
16452 /* Override any gcc2 internal prototype to avoid an error.  */
16453 #ifdef __cplusplus
16454 extern "C"
16455 {
16456 #endif
16457 /* We use char because int might match the return type of a gcc2
16458    builtin and then its argument prototype would still apply.  */
16459 char $ac_func ();
16460 /* The GNU C library defines this for functions which it implements
16461     to always fail with ENOSYS.  Some functions are actually named
16462     something starting with __ and the normal name is an alias.  */
16463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16464 choke me
16465 #else
16466 char (*f) () = $ac_func;
16467 #endif
16468 #ifdef __cplusplus
16469 }
16470 #endif
16471
16472 int
16473 main ()
16474 {
16475 return f != $ac_func;
16476   ;
16477   return 0;
16478 }
16479 _ACEOF
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16482   (eval $ac_link) 2>conftest.er1
16483   ac_status=$?
16484   grep -v '^ *+' conftest.er1 >conftest.err
16485   rm -f conftest.er1
16486   cat conftest.err >&5
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); } &&
16489          { ac_try='test -z "$ac_c_werror_flag"
16490                          || test ! -s conftest.err'
16491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492   (eval $ac_try) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); }; } &&
16496          { ac_try='test -s conftest$ac_exeext'
16497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498   (eval $ac_try) 2>&5
16499   ac_status=$?
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); }; }; then
16502   eval "$as_ac_var=yes"
16503 else
16504   echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507 eval "$as_ac_var=no"
16508 fi
16509 rm -f conftest.err conftest.$ac_objext \
16510       conftest$ac_exeext conftest.$ac_ext
16511 fi
16512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16514 if test `eval echo '${'$as_ac_var'}'` = yes; then
16515
16516 cat >>confdefs.h <<_ACEOF
16517 #define CRAY_STACKSEG_END $ac_func
16518 _ACEOF
16519
16520     break
16521 fi
16522
16523   done
16524 fi
16525
16526 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16527 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16528 if test "${ac_cv_c_stack_direction+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   if test "$cross_compiling" = yes; then
16532   ac_cv_c_stack_direction=0
16533 else
16534   cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h.  */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h.  */
16540 int
16541 find_stack_direction ()
16542 {
16543   static char *addr = 0;
16544   auto char dummy;
16545   if (addr == 0)
16546     {
16547       addr = &dummy;
16548       return find_stack_direction ();
16549     }
16550   else
16551     return (&dummy > addr) ? 1 : -1;
16552 }
16553
16554 int
16555 main ()
16556 {
16557   exit (find_stack_direction () < 0);
16558 }
16559 _ACEOF
16560 rm -f conftest$ac_exeext
16561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562   (eval $ac_link) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567   (eval $ac_try) 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; }; then
16571   ac_cv_c_stack_direction=1
16572 else
16573   echo "$as_me: program exited with status $ac_status" >&5
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577 ( exit $ac_status )
16578 ac_cv_c_stack_direction=-1
16579 fi
16580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16581 fi
16582 fi
16583 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16584 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16585
16586 cat >>confdefs.h <<_ACEOF
16587 #define STACK_DIRECTION $ac_cv_c_stack_direction
16588 _ACEOF
16589
16590
16591 fi
16592
16593
16594 for ac_prog in perl
16595 do
16596   # Extract the first word of "$ac_prog", so it can be a program name with args.
16597 set dummy $ac_prog; ac_word=$2
16598 echo "$as_me:$LINENO: checking for $ac_word" >&5
16599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16600 if test "${ac_cv_prog_PERL+set}" = set; then
16601   echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603   if test -n "$PERL"; then
16604   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16605 else
16606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16607 for as_dir in $PATH
16608 do
16609   IFS=$as_save_IFS
16610   test -z "$as_dir" && as_dir=.
16611   for ac_exec_ext in '' $ac_executable_extensions; do
16612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16613     ac_cv_prog_PERL="$ac_prog"
16614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16615     break 2
16616   fi
16617 done
16618 done
16619
16620 fi
16621 fi
16622 PERL=$ac_cv_prog_PERL
16623 if test -n "$PERL"; then
16624   echo "$as_me:$LINENO: result: $PERL" >&5
16625 echo "${ECHO_T}$PERL" >&6
16626 else
16627   echo "$as_me:$LINENO: result: no" >&5
16628 echo "${ECHO_T}no" >&6
16629 fi
16630
16631   test -n "$PERL" && break
16632 done
16633 test -n "$PERL" || PERL="false"
16634
16635
16636 SYSDEP_SOURCES=
16637 SIGNAL_HANDLER_AUX=
16638
16639 case "${host}" in
16640  i?86-*-linux*)
16641     SIGNAL_HANDLER=include/i386-signal.h
16642     ;;
16643  sparc*-sun-solaris*)
16644     SIGNAL_HANDLER=include/sparc-signal.h
16645     ;;
16646 # ia64-*)
16647 #    SYSDEP_SOURCES=sysdep/ia64.c
16648 #    test -d sysdep || mkdir sysdep
16649 #    ;;
16650  hppa*-*-linux*)
16651     SIGNAL_HANDLER=include/pa-signal.h
16652     ;;
16653  hppa*-hp-hpux*)
16654     SIGNAL_HANDLER=include/hppa-signal.h
16655     ;;
16656  ia64-*-linux*)
16657     SIGNAL_HANDLER=include/dwarf2-signal.h
16658     ;;
16659  powerpc*-*-linux*)
16660     SIGNAL_HANDLER=include/powerpc-signal.h
16661     ;;
16662  alpha*-*-linux*)
16663     SIGNAL_HANDLER=include/dwarf2-signal.h
16664     ;;
16665  s390*-*-linux*)
16666     SIGNAL_HANDLER=include/s390-signal.h
16667     ;;
16668  x86_64*-*-linux*)
16669     SIGNAL_HANDLER=include/x86_64-signal.h
16670     SIGNAL_HANDLER_AUX=include/i386-signal.h
16671     ;;
16672  sparc*-*-linux*)
16673     SIGNAL_HANDLER=include/dwarf2-signal.h
16674     ;;
16675  sh*-*-linux*)
16676     SIGNAL_HANDLER=include/sh-signal.h
16677     ;;
16678  *mingw*)
16679     SIGNAL_HANDLER=include/win32-signal.h
16680     ;;
16681  mips*-*-linux*)
16682     SIGNAL_HANDLER=include/mips-signal.h
16683     ;;
16684  powerpc*-*-darwin*)
16685     SIGNAL_HANDLER=include/darwin-signal.h
16686     ;;
16687  *)
16688     SIGNAL_HANDLER=include/default-signal.h
16689     ;;
16690 esac
16691
16692 # If we're using sjlj exceptions, forget what we just learned.
16693 if test "$enable_sjlj_exceptions" = yes; then
16694    SIGNAL_HANDLER=include/default-signal.h
16695    SIGNAL_HANDLER_AUX=
16696 fi
16697
16698
16699
16700 if test -z "$SIGNAL_HANDLER_AUX"; then
16701   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16702 fi
16703
16704                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16705
16706
16707 if test "${multilib}" = "yes"; then
16708   multilib_arg="--enable-multilib"
16709 else
16710   multilib_arg=
16711 fi
16712
16713 # See if we support thread-local storage.
16714
16715    # Check whether --enable-tls or --disable-tls was given.
16716 if test "${enable_tls+set}" = set; then
16717   enableval="$enable_tls"
16718
16719       case "$enableval" in
16720        yes|no) ;;
16721        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16722 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16723    { (exit 1); exit 1; }; } ;;
16724       esac
16725
16726 else
16727   enable_tls=yes
16728 fi;
16729
16730   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16731 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16732 if test "${have_tls+set}" = set; then
16733   echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735
16736     if test "$cross_compiling" = yes; then
16737   if test x$gcc_no_link = xyes; then
16738   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16740    { (exit 1); exit 1; }; }
16741 fi
16742 cat >conftest.$ac_ext <<_ACEOF
16743 __thread int a; int b; int main() { return a = b; }
16744 _ACEOF
16745 rm -f conftest.$ac_objext conftest$ac_exeext
16746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16747   (eval $ac_link) 2>conftest.er1
16748   ac_status=$?
16749   grep -v '^ *+' conftest.er1 >conftest.err
16750   rm -f conftest.er1
16751   cat conftest.err >&5
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); } &&
16754          { ac_try='test -z "$ac_c_werror_flag"
16755                          || test ! -s conftest.err'
16756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757   (eval $ac_try) 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; } &&
16761          { ac_try='test -s conftest$ac_exeext'
16762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763   (eval $ac_try) 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); }; }; then
16767   have_tls=yes
16768 else
16769   echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16771
16772 have_tls=no
16773 fi
16774 rm -f conftest.err conftest.$ac_objext \
16775       conftest$ac_exeext conftest.$ac_ext
16776
16777 else
16778   cat >conftest.$ac_ext <<_ACEOF
16779 __thread int a; int b; int main() { return a = b; }
16780 _ACEOF
16781 rm -f conftest$ac_exeext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16783   (eval $ac_link) 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788   (eval $ac_try) 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; }; then
16792                       save_LDFLAGS="$LDFLAGS"
16793       LDFLAGS="-static $LDFLAGS"
16794       if test x$gcc_no_link = xyes; then
16795   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16797    { (exit 1); exit 1; }; }
16798 fi
16799 cat >conftest.$ac_ext <<_ACEOF
16800 int main() { return 0; }
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804   (eval $ac_link) 2>conftest.er1
16805   ac_status=$?
16806   grep -v '^ *+' conftest.er1 >conftest.err
16807   rm -f conftest.er1
16808   cat conftest.err >&5
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); } &&
16811          { ac_try='test -z "$ac_c_werror_flag"
16812                          || test ! -s conftest.err'
16813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814   (eval $ac_try) 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); }; } &&
16818          { ac_try='test -s conftest$ac_exeext'
16819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820   (eval $ac_try) 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; }; then
16824   if test "$cross_compiling" = yes; then
16825   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16826 See \`config.log' for more details." >&5
16827 echo "$as_me: error: cannot run test program while cross compiling
16828 See \`config.log' for more details." >&2;}
16829    { (exit 1); exit 1; }; }
16830 else
16831   cat >conftest.$ac_ext <<_ACEOF
16832 __thread int a; int b; int main() { return a = b; }
16833 _ACEOF
16834 rm -f conftest$ac_exeext
16835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16836   (eval $ac_link) 2>&5
16837   ac_status=$?
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841   (eval $ac_try) 2>&5
16842   ac_status=$?
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); }; }; then
16845   have_tls=yes
16846 else
16847   echo "$as_me: program exited with status $ac_status" >&5
16848 echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16850
16851 ( exit $ac_status )
16852 have_tls=no
16853 fi
16854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16855 fi
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 have_tls=yes
16861 fi
16862 rm -f conftest.err conftest.$ac_objext \
16863       conftest$ac_exeext conftest.$ac_ext
16864       LDFLAGS="$save_LDFLAGS"
16865 else
16866   echo "$as_me: program exited with status $ac_status" >&5
16867 echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 ( exit $ac_status )
16871 have_tls=no
16872 fi
16873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16874 fi
16875 fi
16876 echo "$as_me:$LINENO: result: $have_tls" >&5
16877 echo "${ECHO_T}$have_tls" >&6
16878   if test "$enable_tls $have_tls" = "yes yes"; then
16879
16880 cat >>confdefs.h <<\_ACEOF
16881 #define HAVE_TLS 1
16882 _ACEOF
16883
16884   fi
16885
16886 # For _Unwind_GetIPInfo.
16887
16888
16889
16890   ac_ext=cc
16891 ac_cpp='$CXXCPP $CPPFLAGS'
16892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16895
16896   ac_save_CXXFLAGS="$CXXFLAGS"
16897   CXXFLAGS="$CXXFLAGS -fno-exceptions"
16898   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16899 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16900   if test "${gcc_cv_getipinfo+set}" = set; then
16901   echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903
16904   if test x$gcc_no_link = xyes; then
16905   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16906 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16907    { (exit 1); exit 1; }; }
16908 fi
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h.  */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h.  */
16915 extern "C" { extern void _Unwind_GetIPInfo(); }
16916 int
16917 main ()
16918 {
16919 _Unwind_GetIPInfo();
16920   ;
16921   return 0;
16922 }
16923 _ACEOF
16924 rm -f conftest.$ac_objext conftest$ac_exeext
16925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16926   (eval $ac_link) 2>conftest.er1
16927   ac_status=$?
16928   grep -v '^ *+' conftest.er1 >conftest.err
16929   rm -f conftest.er1
16930   cat conftest.err >&5
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); } &&
16933          { ac_try='test -z "$ac_cxx_werror_flag"
16934                          || test ! -s conftest.err'
16935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936   (eval $ac_try) 2>&5
16937   ac_status=$?
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); }; } &&
16940          { ac_try='test -s conftest$ac_exeext'
16941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942   (eval $ac_try) 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }; }; then
16946   gcc_cv_getipinfo=yes
16947 else
16948   echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 gcc_cv_getipinfo=no
16952 fi
16953 rm -f conftest.err conftest.$ac_objext \
16954       conftest$ac_exeext conftest.$ac_ext
16955
16956 fi
16957
16958   if test $gcc_cv_getipinfo = yes; then
16959
16960 cat >>confdefs.h <<\_ACEOF
16961 #define HAVE_GETIPINFO 1
16962 _ACEOF
16963
16964   fi
16965   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
16966 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
16967   CXXFLAGS="$ac_save_CXXFLAGS"
16968   ac_ext=c
16969 ac_cpp='$CPP $CPPFLAGS'
16970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16973
16974
16975
16976 # Check if linker supports static linking on a per library basis
16977 LD_START_STATIC_SPEC=
16978 LD_FINISH_STATIC_SPEC=
16979 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16980   if $LD --help 2>&1 | grep -q -e -non_shared ; then
16981     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16982     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16983   fi
16984 fi
16985
16986
16987
16988 here=`${PWDCMD-pwd}`
16989
16990
16991 # We get this from the environment.
16992
16993
16994                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16995
16996
16997           ac_config_files="$ac_config_files scripts/jar"
16998
16999
17000           ac_config_commands="$ac_config_commands default"
17001
17002
17003 cat >confcache <<\_ACEOF
17004 # This file is a shell script that caches the results of configure
17005 # tests run on this system so they can be shared between configure
17006 # scripts and configure runs, see configure's option --config-cache.
17007 # It is not useful on other systems.  If it contains results you don't
17008 # want to keep, you may remove or edit it.
17009 #
17010 # config.status only pays attention to the cache file if you give it
17011 # the --recheck option to rerun configure.
17012 #
17013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17015 # following values.
17016
17017 _ACEOF
17018
17019 # The following way of writing the cache mishandles newlines in values,
17020 # but we know of no workaround that is simple, portable, and efficient.
17021 # So, don't put newlines in cache variables' values.
17022 # Ultrix sh set writes to stderr and can't be redirected directly,
17023 # and sets the high bit in the cache file unless we assign to the vars.
17024 {
17025   (set) 2>&1 |
17026     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17027     *ac_space=\ *)
17028       # `set' does not quote correctly, so add quotes (double-quote
17029       # substitution turns \\\\ into \\, and sed turns \\ into \).
17030       sed -n \
17031         "s/'/'\\\\''/g;
17032           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17033       ;;
17034     *)
17035       # `set' quotes correctly as required by POSIX, so do not add quotes.
17036       sed -n \
17037         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17038       ;;
17039     esac;
17040 } |
17041   sed '
17042      t clear
17043      : clear
17044      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17045      t end
17046      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17047      : end' >>confcache
17048 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17049   if test -w $cache_file; then
17050     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17051     cat confcache >$cache_file
17052   else
17053     echo "not updating unwritable cache $cache_file"
17054   fi
17055 fi
17056 rm -f confcache
17057
17058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17059 # Let make expand exec_prefix.
17060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17061
17062 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17063 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17064 # trailing colons and then remove the whole line if VPATH becomes empty
17065 # (actually we leave an empty line to preserve line numbers).
17066 if test "x$srcdir" = x.; then
17067   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17068 s/:*\$(srcdir):*/:/;
17069 s/:*\${srcdir}:*/:/;
17070 s/:*@srcdir@:*/:/;
17071 s/^\([^=]*=[     ]*\):*/\1/;
17072 s/:*$//;
17073 s/^[^=]*=[       ]*$//;
17074 }'
17075 fi
17076
17077 DEFS=-DHAVE_CONFIG_H
17078
17079 ac_libobjs=
17080 ac_ltlibobjs=
17081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17082   # 1. Remove the extension, and $U if already installed.
17083   ac_i=`echo "$ac_i" |
17084          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17085   # 2. Add them.
17086   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17087   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17088 done
17089 LIBOBJS=$ac_libobjs
17090
17091 LTLIBOBJS=$ac_ltlibobjs
17092
17093
17094 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17095   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17096 Usually this means the macro was only invoked conditionally." >&5
17097 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17098 Usually this means the macro was only invoked conditionally." >&2;}
17099    { (exit 1); exit 1; }; }
17100 fi
17101 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17102   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17103 Usually this means the macro was only invoked conditionally." >&5
17104 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17105 Usually this means the macro was only invoked conditionally." >&2;}
17106    { (exit 1); exit 1; }; }
17107 fi
17108 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17109   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17110 Usually this means the macro was only invoked conditionally." >&5
17111 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17112 Usually this means the macro was only invoked conditionally." >&2;}
17113    { (exit 1); exit 1; }; }
17114 fi
17115 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17116   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17117 Usually this means the macro was only invoked conditionally." >&5
17118 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17119 Usually this means the macro was only invoked conditionally." >&2;}
17120    { (exit 1); exit 1; }; }
17121 fi
17122 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17123   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17124 Usually this means the macro was only invoked conditionally." >&5
17125 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17126 Usually this means the macro was only invoked conditionally." >&2;}
17127    { (exit 1); exit 1; }; }
17128 fi
17129 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17130   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17131 Usually this means the macro was only invoked conditionally." >&5
17132 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17133 Usually this means the macro was only invoked conditionally." >&2;}
17134    { (exit 1); exit 1; }; }
17135 fi
17136 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17137   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17138 Usually this means the macro was only invoked conditionally." >&5
17139 echo "$as_me: error: conditional \"X_AWT\" was never defined.
17140 Usually this means the macro was only invoked conditionally." >&2;}
17141    { (exit 1); exit 1; }; }
17142 fi
17143 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17144   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17145 Usually this means the macro was only invoked conditionally." >&5
17146 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17147 Usually this means the macro was only invoked conditionally." >&2;}
17148    { (exit 1); exit 1; }; }
17149 fi
17150 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17151   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17152 Usually this means the macro was only invoked conditionally." >&5
17153 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17154 Usually this means the macro was only invoked conditionally." >&2;}
17155    { (exit 1); exit 1; }; }
17156 fi
17157 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17158   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17159 Usually this means the macro was only invoked conditionally." >&5
17160 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
17161 Usually this means the macro was only invoked conditionally." >&2;}
17162    { (exit 1); exit 1; }; }
17163 fi
17164 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17165   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17166 Usually this means the macro was only invoked conditionally." >&5
17167 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17168 Usually this means the macro was only invoked conditionally." >&2;}
17169    { (exit 1); exit 1; }; }
17170 fi
17171 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17172   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17173 Usually this means the macro was only invoked conditionally." >&5
17174 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17175 Usually this means the macro was only invoked conditionally." >&2;}
17176    { (exit 1); exit 1; }; }
17177 fi
17178 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17179   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17180 Usually this means the macro was only invoked conditionally." >&5
17181 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17182 Usually this means the macro was only invoked conditionally." >&2;}
17183    { (exit 1); exit 1; }; }
17184 fi
17185 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17186   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17187 Usually this means the macro was only invoked conditionally." >&5
17188 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17189 Usually this means the macro was only invoked conditionally." >&2;}
17190    { (exit 1); exit 1; }; }
17191 fi
17192 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17193   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17194 Usually this means the macro was only invoked conditionally." >&5
17195 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17196 Usually this means the macro was only invoked conditionally." >&2;}
17197    { (exit 1); exit 1; }; }
17198 fi
17199 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17200   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17201 Usually this means the macro was only invoked conditionally." >&5
17202 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17203 Usually this means the macro was only invoked conditionally." >&2;}
17204    { (exit 1); exit 1; }; }
17205 fi
17206 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17207   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17208 Usually this means the macro was only invoked conditionally." >&5
17209 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17210 Usually this means the macro was only invoked conditionally." >&2;}
17211    { (exit 1); exit 1; }; }
17212 fi
17213 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17214   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17215 Usually this means the macro was only invoked conditionally." >&5
17216 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17217 Usually this means the macro was only invoked conditionally." >&2;}
17218    { (exit 1); exit 1; }; }
17219 fi
17220 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17221   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17222 Usually this means the macro was only invoked conditionally." >&5
17223 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17224 Usually this means the macro was only invoked conditionally." >&2;}
17225    { (exit 1); exit 1; }; }
17226 fi
17227 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17228   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17229 Usually this means the macro was only invoked conditionally." >&5
17230 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17231 Usually this means the macro was only invoked conditionally." >&2;}
17232    { (exit 1); exit 1; }; }
17233 fi
17234 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17235   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17236 Usually this means the macro was only invoked conditionally." >&5
17237 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17238 Usually this means the macro was only invoked conditionally." >&2;}
17239    { (exit 1); exit 1; }; }
17240 fi
17241 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17242   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17243 Usually this means the macro was only invoked conditionally." >&5
17244 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17245 Usually this means the macro was only invoked conditionally." >&2;}
17246    { (exit 1); exit 1; }; }
17247 fi
17248 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17249   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17250 Usually this means the macro was only invoked conditionally." >&5
17251 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17252 Usually this means the macro was only invoked conditionally." >&2;}
17253    { (exit 1); exit 1; }; }
17254 fi
17255 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17256   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17257 Usually this means the macro was only invoked conditionally." >&5
17258 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17259 Usually this means the macro was only invoked conditionally." >&2;}
17260    { (exit 1); exit 1; }; }
17261 fi
17262 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17263   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17264 Usually this means the macro was only invoked conditionally." >&5
17265 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17266 Usually this means the macro was only invoked conditionally." >&2;}
17267    { (exit 1); exit 1; }; }
17268 fi
17269
17270 : ${CONFIG_STATUS=./config.status}
17271 ac_clean_files_save=$ac_clean_files
17272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17273 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17274 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17275 cat >$CONFIG_STATUS <<_ACEOF
17276 #! $SHELL
17277 # Generated by $as_me.
17278 # Run this file to recreate the current configuration.
17279 # Compiler output produced by configure, useful for debugging
17280 # configure, is in config.log if it exists.
17281
17282 debug=false
17283 ac_cs_recheck=false
17284 ac_cs_silent=false
17285 SHELL=\${CONFIG_SHELL-$SHELL}
17286 _ACEOF
17287
17288 cat >>$CONFIG_STATUS <<\_ACEOF
17289 ## --------------------- ##
17290 ## M4sh Initialization.  ##
17291 ## --------------------- ##
17292
17293 # Be Bourne compatible
17294 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17295   emulate sh
17296   NULLCMD=:
17297   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17298   # is contrary to our usage.  Disable this feature.
17299   alias -g '${1+"$@"}'='"$@"'
17300 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17301   set -o posix
17302 fi
17303 DUALCASE=1; export DUALCASE # for MKS sh
17304
17305 # Support unset when possible.
17306 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17307   as_unset=unset
17308 else
17309   as_unset=false
17310 fi
17311
17312
17313 # Work around bugs in pre-3.0 UWIN ksh.
17314 $as_unset ENV MAIL MAILPATH
17315 PS1='$ '
17316 PS2='> '
17317 PS4='+ '
17318
17319 # NLS nuisances.
17320 for as_var in \
17321   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17322   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17323   LC_TELEPHONE LC_TIME
17324 do
17325   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17326     eval $as_var=C; export $as_var
17327   else
17328     $as_unset $as_var
17329   fi
17330 done
17331
17332 # Required to use basename.
17333 if expr a : '\(a\)' >/dev/null 2>&1; then
17334   as_expr=expr
17335 else
17336   as_expr=false
17337 fi
17338
17339 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17340   as_basename=basename
17341 else
17342   as_basename=false
17343 fi
17344
17345
17346 # Name of the executable.
17347 as_me=`$as_basename "$0" ||
17348 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17349          X"$0" : 'X\(//\)$' \| \
17350          X"$0" : 'X\(/\)$' \| \
17351          .     : '\(.\)' 2>/dev/null ||
17352 echo X/"$0" |
17353     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17354           /^X\/\(\/\/\)$/{ s//\1/; q; }
17355           /^X\/\(\/\).*/{ s//\1/; q; }
17356           s/.*/./; q'`
17357
17358
17359 # PATH needs CR, and LINENO needs CR and PATH.
17360 # Avoid depending upon Character Ranges.
17361 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17362 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17363 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17364 as_cr_digits='0123456789'
17365 as_cr_alnum=$as_cr_Letters$as_cr_digits
17366
17367 # The user is always right.
17368 if test "${PATH_SEPARATOR+set}" != set; then
17369   echo "#! /bin/sh" >conf$$.sh
17370   echo  "exit 0"   >>conf$$.sh
17371   chmod +x conf$$.sh
17372   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17373     PATH_SEPARATOR=';'
17374   else
17375     PATH_SEPARATOR=:
17376   fi
17377   rm -f conf$$.sh
17378 fi
17379
17380
17381   as_lineno_1=$LINENO
17382   as_lineno_2=$LINENO
17383   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17384   test "x$as_lineno_1" != "x$as_lineno_2" &&
17385   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17386   # Find who we are.  Look in the path if we contain no path at all
17387   # relative or not.
17388   case $0 in
17389     *[\\/]* ) as_myself=$0 ;;
17390     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17391 for as_dir in $PATH
17392 do
17393   IFS=$as_save_IFS
17394   test -z "$as_dir" && as_dir=.
17395   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17396 done
17397
17398        ;;
17399   esac
17400   # We did not find ourselves, most probably we were run as `sh COMMAND'
17401   # in which case we are not to be found in the path.
17402   if test "x$as_myself" = x; then
17403     as_myself=$0
17404   fi
17405   if test ! -f "$as_myself"; then
17406     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17407 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17408    { (exit 1); exit 1; }; }
17409   fi
17410   case $CONFIG_SHELL in
17411   '')
17412     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17413 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17414 do
17415   IFS=$as_save_IFS
17416   test -z "$as_dir" && as_dir=.
17417   for as_base in sh bash ksh sh5; do
17418          case $as_dir in
17419          /*)
17420            if ("$as_dir/$as_base" -c '
17421   as_lineno_1=$LINENO
17422   as_lineno_2=$LINENO
17423   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17424   test "x$as_lineno_1" != "x$as_lineno_2" &&
17425   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17426              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17427              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17428              CONFIG_SHELL=$as_dir/$as_base
17429              export CONFIG_SHELL
17430              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17431            fi;;
17432          esac
17433        done
17434 done
17435 ;;
17436   esac
17437
17438   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17439   # uniformly replaced by the line number.  The first 'sed' inserts a
17440   # line-number line before each line; the second 'sed' does the real
17441   # work.  The second script uses 'N' to pair each line-number line
17442   # with the numbered line, and appends trailing '-' during
17443   # substitution so that $LINENO is not a special case at line end.
17444   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17445   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17446   sed '=' <$as_myself |
17447     sed '
17448       N
17449       s,$,-,
17450       : loop
17451       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17452       t loop
17453       s,-$,,
17454       s,^['$as_cr_digits']*\n,,
17455     ' >$as_me.lineno &&
17456   chmod +x $as_me.lineno ||
17457     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17458 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17459    { (exit 1); exit 1; }; }
17460
17461   # Don't try to exec as it changes $[0], causing all sort of problems
17462   # (the dirname of $[0] is not the place where we might find the
17463   # original and so on.  Autoconf is especially sensible to this).
17464   . ./$as_me.lineno
17465   # Exit status is that of the last command.
17466   exit
17467 }
17468
17469
17470 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17471   *c*,-n*) ECHO_N= ECHO_C='
17472 ' ECHO_T='      ' ;;
17473   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17474   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17475 esac
17476
17477 if expr a : '\(a\)' >/dev/null 2>&1; then
17478   as_expr=expr
17479 else
17480   as_expr=false
17481 fi
17482
17483 rm -f conf$$ conf$$.exe conf$$.file
17484 echo >conf$$.file
17485 if ln -s conf$$.file conf$$ 2>/dev/null; then
17486   # We could just check for DJGPP; but this test a) works b) is more generic
17487   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17488   if test -f conf$$.exe; then
17489     # Don't use ln at all; we don't have any links
17490     as_ln_s='cp -p'
17491   else
17492     as_ln_s='ln -s'
17493   fi
17494 elif ln conf$$.file conf$$ 2>/dev/null; then
17495   as_ln_s=ln
17496 else
17497   as_ln_s='cp -p'
17498 fi
17499 rm -f conf$$ conf$$.exe conf$$.file
17500
17501 if mkdir -p . 2>/dev/null; then
17502   as_mkdir_p=:
17503 else
17504   test -d ./-p && rmdir ./-p
17505   as_mkdir_p=false
17506 fi
17507
17508 as_executable_p="test -f"
17509
17510 # Sed expression to map a string onto a valid CPP name.
17511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17512
17513 # Sed expression to map a string onto a valid variable name.
17514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17515
17516
17517 # IFS
17518 # We need space, tab and new line, in precisely that order.
17519 as_nl='
17520 '
17521 IFS="   $as_nl"
17522
17523 # CDPATH.
17524 $as_unset CDPATH
17525
17526 exec 6>&1
17527
17528 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17529 # report actual input values of CONFIG_FILES etc. instead of their
17530 # values after options handling.  Logging --version etc. is OK.
17531 exec 5>>config.log
17532 {
17533   echo
17534   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17535 ## Running $as_me. ##
17536 _ASBOX
17537 } >&5
17538 cat >&5 <<_CSEOF
17539
17540 This file was extended by libjava $as_me version-unused, which was
17541 generated by GNU Autoconf 2.59.  Invocation command line was
17542
17543   CONFIG_FILES    = $CONFIG_FILES
17544   CONFIG_HEADERS  = $CONFIG_HEADERS
17545   CONFIG_LINKS    = $CONFIG_LINKS
17546   CONFIG_COMMANDS = $CONFIG_COMMANDS
17547   $ $0 $@
17548
17549 _CSEOF
17550 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17551 echo >&5
17552 _ACEOF
17553
17554 # Files that config.status was made for.
17555 if test -n "$ac_config_files"; then
17556   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17557 fi
17558
17559 if test -n "$ac_config_headers"; then
17560   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17561 fi
17562
17563 if test -n "$ac_config_links"; then
17564   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17565 fi
17566
17567 if test -n "$ac_config_commands"; then
17568   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17569 fi
17570
17571 cat >>$CONFIG_STATUS <<\_ACEOF
17572
17573 ac_cs_usage="\
17574 \`$as_me' instantiates files from templates according to the
17575 current configuration.
17576
17577 Usage: $0 [OPTIONS] [FILE]...
17578
17579   -h, --help       print this help, then exit
17580   -V, --version    print version number, then exit
17581   -q, --quiet      do not print progress messages
17582   -d, --debug      don't remove temporary files
17583       --recheck    update $as_me by reconfiguring in the same conditions
17584   --file=FILE[:TEMPLATE]
17585                    instantiate the configuration file FILE
17586   --header=FILE[:TEMPLATE]
17587                    instantiate the configuration header FILE
17588
17589 Configuration files:
17590 $config_files
17591
17592 Configuration headers:
17593 $config_headers
17594
17595 Configuration links:
17596 $config_links
17597
17598 Configuration commands:
17599 $config_commands
17600
17601 Report bugs to <bug-autoconf@gnu.org>."
17602 _ACEOF
17603
17604 cat >>$CONFIG_STATUS <<_ACEOF
17605 ac_cs_version="\\
17606 libjava config.status version-unused
17607 configured by $0, generated by GNU Autoconf 2.59,
17608   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17609
17610 Copyright (C) 2003 Free Software Foundation, Inc.
17611 This config.status script is free software; the Free Software Foundation
17612 gives unlimited permission to copy, distribute and modify it."
17613 srcdir=$srcdir
17614 INSTALL="$INSTALL"
17615 _ACEOF
17616
17617 cat >>$CONFIG_STATUS <<\_ACEOF
17618 # If no file are specified by the user, then we need to provide default
17619 # value.  By we need to know if files were specified by the user.
17620 ac_need_defaults=:
17621 while test $# != 0
17622 do
17623   case $1 in
17624   --*=*)
17625     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17626     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17627     ac_shift=:
17628     ;;
17629   -*)
17630     ac_option=$1
17631     ac_optarg=$2
17632     ac_shift=shift
17633     ;;
17634   *) # This is not an option, so the user has probably given explicit
17635      # arguments.
17636      ac_option=$1
17637      ac_need_defaults=false;;
17638   esac
17639
17640   case $ac_option in
17641   # Handling of the options.
17642 _ACEOF
17643 cat >>$CONFIG_STATUS <<\_ACEOF
17644   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17645     ac_cs_recheck=: ;;
17646   --version | --vers* | -V )
17647     echo "$ac_cs_version"; exit 0 ;;
17648   --he | --h)
17649     # Conflict between --help and --header
17650     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17651 Try \`$0 --help' for more information." >&5
17652 echo "$as_me: error: ambiguous option: $1
17653 Try \`$0 --help' for more information." >&2;}
17654    { (exit 1); exit 1; }; };;
17655   --help | --hel | -h )
17656     echo "$ac_cs_usage"; exit 0 ;;
17657   --debug | --d* | -d )
17658     debug=: ;;
17659   --file | --fil | --fi | --f )
17660     $ac_shift
17661     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17662     ac_need_defaults=false;;
17663   --header | --heade | --head | --hea )
17664     $ac_shift
17665     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17666     ac_need_defaults=false;;
17667   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17668   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17669     ac_cs_silent=: ;;
17670
17671   # This is an error.
17672   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17673 Try \`$0 --help' for more information." >&5
17674 echo "$as_me: error: unrecognized option: $1
17675 Try \`$0 --help' for more information." >&2;}
17676    { (exit 1); exit 1; }; } ;;
17677
17678   *) ac_config_targets="$ac_config_targets $1" ;;
17679
17680   esac
17681   shift
17682 done
17683
17684 ac_configure_extra_args=
17685
17686 if $ac_cs_silent; then
17687   exec 6>/dev/null
17688   ac_configure_extra_args="$ac_configure_extra_args --silent"
17689 fi
17690
17691 _ACEOF
17692 cat >>$CONFIG_STATUS <<_ACEOF
17693 if \$ac_cs_recheck; then
17694   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17695   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17696 fi
17697
17698 _ACEOF
17699
17700 cat >>$CONFIG_STATUS <<_ACEOF
17701 #
17702 # INIT-COMMANDS section.
17703 #
17704
17705
17706 srcdir="$srcdir"
17707 host="$host"
17708 target="$target"
17709 with_multisubdir="$with_multisubdir"
17710 with_multisrctop="$with_multisrctop"
17711 with_target_subdir="$with_target_subdir"
17712 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17713 multi_basedir="$multi_basedir"
17714 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17715 CC="$CC"
17716 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17717 srcdir=${srcdir}
17718 host=${host}
17719 target=${target}
17720 with_multisubdir=${with_multisubdir}
17721 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17722 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17723 multi_basedir=${multi_basedir}
17724 CC="${CC}"
17725 CXX="${CXX}"
17726 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17727
17728
17729 _ACEOF
17730
17731
17732
17733 cat >>$CONFIG_STATUS <<\_ACEOF
17734 for ac_config_target in $ac_config_targets
17735 do
17736   case "$ac_config_target" in
17737   # Handling of arguments.
17738   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17739   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17740   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17741   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17742   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17743   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17744   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17745   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17746   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17747   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17748   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17749   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
17750   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17751   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17752   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17753   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
17754   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
17755   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17756   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17757   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17758   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17759   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17760   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17761   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17762   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17763   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17764   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17765   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17766   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17767   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17768   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17770    { (exit 1); exit 1; }; };;
17771   esac
17772 done
17773
17774 # If the user did not use the arguments to specify the items to instantiate,
17775 # then the envvar interface is used.  Set only those that are not.
17776 # We use the long form for the default assignment because of an extremely
17777 # bizarre bug on SunOS 4.1.3.
17778 if $ac_need_defaults; then
17779   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17780   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17781   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17782   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17783 fi
17784
17785 # Have a temporary directory for convenience.  Make it in the build tree
17786 # simply because there is no reason to put it here, and in addition,
17787 # creating and moving files from /tmp can sometimes cause problems.
17788 # Create a temporary directory, and hook for its removal unless debugging.
17789 $debug ||
17790 {
17791   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17792   trap '{ (exit 1); exit 1; }' 1 2 13 15
17793 }
17794
17795 # Create a (secure) tmp directory for tmp files.
17796
17797 {
17798   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17799   test -n "$tmp" && test -d "$tmp"
17800 }  ||
17801 {
17802   tmp=./confstat$$-$RANDOM
17803   (umask 077 && mkdir $tmp)
17804 } ||
17805 {
17806    echo "$me: cannot create a temporary directory in ." >&2
17807    { (exit 1); exit 1; }
17808 }
17809
17810 _ACEOF
17811
17812 cat >>$CONFIG_STATUS <<_ACEOF
17813
17814 #
17815 # CONFIG_FILES section.
17816 #
17817
17818 # No need to generate the scripts if there are no CONFIG_FILES.
17819 # This happens for instance when ./config.status config.h
17820 if test -n "\$CONFIG_FILES"; then
17821   # Protect against being on the right side of a sed subst in config.status.
17822   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17823    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17824 s,@SHELL@,$SHELL,;t t
17825 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17826 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17827 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17828 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17829 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17830 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17831 s,@exec_prefix@,$exec_prefix,;t t
17832 s,@prefix@,$prefix,;t t
17833 s,@program_transform_name@,$program_transform_name,;t t
17834 s,@bindir@,$bindir,;t t
17835 s,@sbindir@,$sbindir,;t t
17836 s,@libexecdir@,$libexecdir,;t t
17837 s,@datadir@,$datadir,;t t
17838 s,@sysconfdir@,$sysconfdir,;t t
17839 s,@sharedstatedir@,$sharedstatedir,;t t
17840 s,@localstatedir@,$localstatedir,;t t
17841 s,@libdir@,$libdir,;t t
17842 s,@includedir@,$includedir,;t t
17843 s,@oldincludedir@,$oldincludedir,;t t
17844 s,@infodir@,$infodir,;t t
17845 s,@mandir@,$mandir,;t t
17846 s,@build_alias@,$build_alias,;t t
17847 s,@host_alias@,$host_alias,;t t
17848 s,@target_alias@,$target_alias,;t t
17849 s,@DEFS@,$DEFS,;t t
17850 s,@ECHO_C@,$ECHO_C,;t t
17851 s,@ECHO_N@,$ECHO_N,;t t
17852 s,@ECHO_T@,$ECHO_T,;t t
17853 s,@LIBS@,$LIBS,;t t
17854 s,@build@,$build,;t t
17855 s,@build_cpu@,$build_cpu,;t t
17856 s,@build_vendor@,$build_vendor,;t t
17857 s,@build_os@,$build_os,;t t
17858 s,@build_libsubdir@,$build_libsubdir,;t t
17859 s,@build_subdir@,$build_subdir,;t t
17860 s,@host_subdir@,$host_subdir,;t t
17861 s,@target_subdir@,$target_subdir,;t t
17862 s,@multi_basedir@,$multi_basedir,;t t
17863 s,@host@,$host,;t t
17864 s,@host_cpu@,$host_cpu,;t t
17865 s,@host_vendor@,$host_vendor,;t t
17866 s,@host_os@,$host_os,;t t
17867 s,@target@,$target,;t t
17868 s,@target_cpu@,$target_cpu,;t t
17869 s,@target_vendor@,$target_vendor,;t t
17870 s,@target_os@,$target_os,;t t
17871 s,@target_noncanonical@,$target_noncanonical,;t t
17872 s,@LN_S@,$LN_S,;t t
17873 s,@mkinstalldirs@,$mkinstalldirs,;t t
17874 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
17875 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
17876 s,@CC@,$CC,;t t
17877 s,@ac_ct_CC@,$ac_ct_CC,;t t
17878 s,@EXEEXT@,$EXEEXT,;t t
17879 s,@OBJEXT@,$OBJEXT,;t t
17880 s,@CXX@,$CXX,;t t
17881 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17882 s,@CFLAGS@,$CFLAGS,;t t
17883 s,@CXXFLAGS@,$CXXFLAGS,;t t
17884 s,@LDFLAGS@,$LDFLAGS,;t t
17885 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17886 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17887 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17888 s,@CYGPATH_W@,$CYGPATH_W,;t t
17889 s,@PACKAGE@,$PACKAGE,;t t
17890 s,@VERSION@,$VERSION,;t t
17891 s,@ACLOCAL@,$ACLOCAL,;t t
17892 s,@AUTOCONF@,$AUTOCONF,;t t
17893 s,@AUTOMAKE@,$AUTOMAKE,;t t
17894 s,@AUTOHEADER@,$AUTOHEADER,;t t
17895 s,@MAKEINFO@,$MAKEINFO,;t t
17896 s,@install_sh@,$install_sh,;t t
17897 s,@STRIP@,$STRIP,;t t
17898 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17899 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17900 s,@mkdir_p@,$mkdir_p,;t t
17901 s,@AWK@,$AWK,;t t
17902 s,@SET_MAKE@,$SET_MAKE,;t t
17903 s,@am__leading_dot@,$am__leading_dot,;t t
17904 s,@AMTAR@,$AMTAR,;t t
17905 s,@am__tar@,$am__tar,;t t
17906 s,@am__untar@,$am__untar,;t t
17907 s,@DEPDIR@,$DEPDIR,;t t
17908 s,@am__include@,$am__include,;t t
17909 s,@am__quote@,$am__quote,;t t
17910 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17911 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17912 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17913 s,@CCDEPMODE@,$CCDEPMODE,;t t
17914 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17915 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17916 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17917 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17918 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17919 s,@AS@,$AS,;t t
17920 s,@ac_ct_AS@,$ac_ct_AS,;t t
17921 s,@LD@,$LD,;t t
17922 s,@ac_ct_LD@,$ac_ct_LD,;t t
17923 s,@AR@,$AR,;t t
17924 s,@ac_ct_AR@,$ac_ct_AR,;t t
17925 s,@RANLIB@,$RANLIB,;t t
17926 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17927 s,@JAR@,$JAR,;t t
17928 s,@ZIP@,$ZIP,;t t
17929 s,@UNZIP@,$UNZIP,;t t
17930 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17931 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17932 s,@MAINT@,$MAINT,;t t
17933 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17934 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17935 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17936 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17937 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
17938 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17939 s,@TOOLKIT@,$TOOLKIT,;t t
17940 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17941 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17942 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
17943 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
17944 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
17945 s,@GCJH@,$GCJH,;t t
17946 s,@host_exeext@,$host_exeext,;t t
17947 s,@INCLTDL@,$INCLTDL,;t t
17948 s,@LIBLTDL@,$LIBLTDL,;t t
17949 s,@DIRLTDL@,$DIRLTDL,;t t
17950 s,@LIBTOOL@,$LIBTOOL,;t t
17951 s,@CXXCPP@,$CXXCPP,;t t
17952 s,@CPPFLAGS@,$CPPFLAGS,;t t
17953 s,@GCJ@,$GCJ,;t t
17954 s,@GCJFLAGS@,$GCJFLAGS,;t t
17955 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17956 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17957 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17958 s,@subdirs@,$subdirs,;t t
17959 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17960 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17961 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
17962 s,@ECJ_JAR@,$ECJ_JAR,;t t
17963 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
17964 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
17965 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
17966 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
17967 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17968 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17969 s,@JAVA_HOME@,$JAVA_HOME,;t t
17970 s,@INTERPRETER@,$INTERPRETER,;t t
17971 s,@LIBFFI@,$LIBFFI,;t t
17972 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17973 s,@PLATFORM@,$PLATFORM,;t t
17974 s,@CPP@,$CPP,;t t
17975 s,@EGREP@,$EGREP,;t t
17976 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17977 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17978 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17979 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17980 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17981 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17982 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17983 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17984 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17985 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17986 s,@X_CFLAGS@,$X_CFLAGS,;t t
17987 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17988 s,@X_LIBS@,$X_LIBS,;t t
17989 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17990 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17991 s,@GCLIBS@,$GCLIBS,;t t
17992 s,@GCINCS@,$GCINCS,;t t
17993 s,@GCDEPS@,$GCDEPS,;t t
17994 s,@GCSPEC@,$GCSPEC,;t t
17995 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17996 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17997 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17998 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17999 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18000 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18001 s,@THREADLIBS@,$THREADLIBS,;t t
18002 s,@THREADINCS@,$THREADINCS,;t t
18003 s,@THREADDEPS@,$THREADDEPS,;t t
18004 s,@THREADSPEC@,$THREADSPEC,;t t
18005 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
18006 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18007 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18008 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18009 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18010 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18011 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18012 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18013 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
18014 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18015 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18016 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
18017 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18018 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18019 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18020 s,@LIBICONV@,$LIBICONV,;t t
18021 s,@LTLIBICONV@,$LTLIBICONV,;t t
18022 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18023 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18024 s,@GTK_LIBS@,$GTK_LIBS,;t t
18025 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18026 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18027 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18028 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18029 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18030 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18031 s,@ZLIBS@,$ZLIBS,;t t
18032 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18033 s,@ZINCS@,$ZINCS,;t t
18034 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18035 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18036 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18037 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18038 s,@IEEESPEC@,$IEEESPEC,;t t
18039 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18040 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
18041 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18042 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
18043 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18044 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18045 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18046 s,@toolexecdir@,$toolexecdir,;t t
18047 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18048 s,@toolexeclibdir@,$toolexeclibdir,;t t
18049 s,@dbexecdir@,$dbexecdir,;t t
18050 s,@GCJVERSION@,$GCJVERSION,;t t
18051 s,@gxx_include_dir@,$gxx_include_dir,;t t
18052 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18053 s,@ALLOCA@,$ALLOCA,;t t
18054 s,@PERL@,$PERL,;t t
18055 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18056 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18057 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18058 s,@here@,$here,;t t
18059 s,@LIBOBJS@,$LIBOBJS,;t t
18060 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18061 CEOF
18062
18063 _ACEOF
18064
18065   cat >>$CONFIG_STATUS <<\_ACEOF
18066   # Split the substitutions into bite-sized pieces for seds with
18067   # small command number limits, like on Digital OSF/1 and HP-UX.
18068   ac_max_sed_lines=48
18069   ac_sed_frag=1 # Number of current file.
18070   ac_beg=1 # First line for current file.
18071   ac_end=$ac_max_sed_lines # Line after last line for current file.
18072   ac_more_lines=:
18073   ac_sed_cmds=
18074   while $ac_more_lines; do
18075     if test $ac_beg -gt 1; then
18076       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18077     else
18078       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18079     fi
18080     if test ! -s $tmp/subs.frag; then
18081       ac_more_lines=false
18082     else
18083       # The purpose of the label and of the branching condition is to
18084       # speed up the sed processing (if there are no `@' at all, there
18085       # is no need to browse any of the substitutions).
18086       # These are the two extra sed commands mentioned above.
18087       (echo ':t
18088   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18089       if test -z "$ac_sed_cmds"; then
18090         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18091       else
18092         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18093       fi
18094       ac_sed_frag=`expr $ac_sed_frag + 1`
18095       ac_beg=$ac_end
18096       ac_end=`expr $ac_end + $ac_max_sed_lines`
18097     fi
18098   done
18099   if test -z "$ac_sed_cmds"; then
18100     ac_sed_cmds=cat
18101   fi
18102 fi # test -n "$CONFIG_FILES"
18103
18104 _ACEOF
18105 cat >>$CONFIG_STATUS <<\_ACEOF
18106 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18107   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18108   case $ac_file in
18109   - | *:- | *:-:* ) # input from stdin
18110         cat >$tmp/stdin
18111         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18112         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18113   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18114         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18115   * )   ac_file_in=$ac_file.in ;;
18116   esac
18117
18118   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18119   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18121          X"$ac_file" : 'X\(//\)[^/]' \| \
18122          X"$ac_file" : 'X\(//\)$' \| \
18123          X"$ac_file" : 'X\(/\)' \| \
18124          .     : '\(.\)' 2>/dev/null ||
18125 echo X"$ac_file" |
18126     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18127           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18128           /^X\(\/\/\)$/{ s//\1/; q; }
18129           /^X\(\/\).*/{ s//\1/; q; }
18130           s/.*/./; q'`
18131   { if $as_mkdir_p; then
18132     mkdir -p "$ac_dir"
18133   else
18134     as_dir="$ac_dir"
18135     as_dirs=
18136     while test ! -d "$as_dir"; do
18137       as_dirs="$as_dir $as_dirs"
18138       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18140          X"$as_dir" : 'X\(//\)[^/]' \| \
18141          X"$as_dir" : 'X\(//\)$' \| \
18142          X"$as_dir" : 'X\(/\)' \| \
18143          .     : '\(.\)' 2>/dev/null ||
18144 echo X"$as_dir" |
18145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18146           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18147           /^X\(\/\/\)$/{ s//\1/; q; }
18148           /^X\(\/\).*/{ s//\1/; q; }
18149           s/.*/./; q'`
18150     done
18151     test ! -n "$as_dirs" || mkdir $as_dirs
18152   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18153 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18154    { (exit 1); exit 1; }; }; }
18155
18156   ac_builddir=.
18157
18158 if test "$ac_dir" != .; then
18159   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18160   # A "../" for each directory in $ac_dir_suffix.
18161   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18162 else
18163   ac_dir_suffix= ac_top_builddir=
18164 fi
18165
18166 case $srcdir in
18167   .)  # No --srcdir option.  We are building in place.
18168     ac_srcdir=.
18169     if test -z "$ac_top_builddir"; then
18170        ac_top_srcdir=.
18171     else
18172        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18173     fi ;;
18174   [\\/]* | ?:[\\/]* )  # Absolute path.
18175     ac_srcdir=$srcdir$ac_dir_suffix;
18176     ac_top_srcdir=$srcdir ;;
18177   *) # Relative path.
18178     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18179     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18180 esac
18181
18182 # Do not use `cd foo && pwd` to compute absolute paths, because
18183 # the directories may not exist.
18184 case `pwd` in
18185 .) ac_abs_builddir="$ac_dir";;
18186 *)
18187   case "$ac_dir" in
18188   .) ac_abs_builddir=`pwd`;;
18189   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18190   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18191   esac;;
18192 esac
18193 case $ac_abs_builddir in
18194 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18195 *)
18196   case ${ac_top_builddir}. in
18197   .) ac_abs_top_builddir=$ac_abs_builddir;;
18198   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18199   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18200   esac;;
18201 esac
18202 case $ac_abs_builddir in
18203 .) ac_abs_srcdir=$ac_srcdir;;
18204 *)
18205   case $ac_srcdir in
18206   .) ac_abs_srcdir=$ac_abs_builddir;;
18207   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18208   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18209   esac;;
18210 esac
18211 case $ac_abs_builddir in
18212 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18213 *)
18214   case $ac_top_srcdir in
18215   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18216   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18217   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18218   esac;;
18219 esac
18220
18221
18222   case $INSTALL in
18223   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18224   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18225   esac
18226
18227   if test x"$ac_file" != x-; then
18228     { echo "$as_me:$LINENO: creating $ac_file" >&5
18229 echo "$as_me: creating $ac_file" >&6;}
18230     rm -f "$ac_file"
18231   fi
18232   # Let's still pretend it is `configure' which instantiates (i.e., don't
18233   # use $as_me), people would be surprised to read:
18234   #    /* config.h.  Generated by config.status.  */
18235   if test x"$ac_file" = x-; then
18236     configure_input=
18237   else
18238     configure_input="$ac_file.  "
18239   fi
18240   configure_input=$configure_input"Generated from `echo $ac_file_in |
18241                                      sed 's,.*/,,'` by configure."
18242
18243   # First look for the input files in the build tree, otherwise in the
18244   # src tree.
18245   ac_file_inputs=`IFS=:
18246     for f in $ac_file_in; do
18247       case $f in
18248       -) echo $tmp/stdin ;;
18249       [\\/$]*)
18250          # Absolute (can't be DOS-style, as IFS=:)
18251          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18252 echo "$as_me: error: cannot find input file: $f" >&2;}
18253    { (exit 1); exit 1; }; }
18254          echo "$f";;
18255       *) # Relative
18256          if test -f "$f"; then
18257            # Build tree
18258            echo "$f"
18259          elif test -f "$srcdir/$f"; then
18260            # Source tree
18261            echo "$srcdir/$f"
18262          else
18263            # /dev/null tree
18264            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18265 echo "$as_me: error: cannot find input file: $f" >&2;}
18266    { (exit 1); exit 1; }; }
18267          fi;;
18268       esac
18269     done` || { (exit 1); exit 1; }
18270 _ACEOF
18271 cat >>$CONFIG_STATUS <<_ACEOF
18272   sed "$ac_vpsub
18273 $extrasub
18274 _ACEOF
18275 cat >>$CONFIG_STATUS <<\_ACEOF
18276 :t
18277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18278 s,@configure_input@,$configure_input,;t t
18279 s,@srcdir@,$ac_srcdir,;t t
18280 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18281 s,@top_srcdir@,$ac_top_srcdir,;t t
18282 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18283 s,@builddir@,$ac_builddir,;t t
18284 s,@abs_builddir@,$ac_abs_builddir,;t t
18285 s,@top_builddir@,$ac_top_builddir,;t t
18286 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18287 s,@INSTALL@,$ac_INSTALL,;t t
18288 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18289   rm -f $tmp/stdin
18290   if test x"$ac_file" != x-; then
18291     mv $tmp/out $ac_file
18292   else
18293     cat $tmp/out
18294     rm -f $tmp/out
18295   fi
18296
18297   # Run the commands associated with the file.
18298   case $ac_file in
18299     scripts/jar ) chmod +x scripts/jar ;;
18300   esac
18301 done
18302 _ACEOF
18303 cat >>$CONFIG_STATUS <<\_ACEOF
18304
18305 #
18306 # CONFIG_HEADER section.
18307 #
18308
18309 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18310 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18311 #
18312 # ac_d sets the value in "#define NAME VALUE" lines.
18313 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18314 ac_dB='[         ].*$,\1#\2'
18315 ac_dC=' '
18316 ac_dD=',;t'
18317 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18318 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18319 ac_uB='$,\1#\2define\3'
18320 ac_uC=' '
18321 ac_uD=',;t'
18322
18323 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18324   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18325   case $ac_file in
18326   - | *:- | *:-:* ) # input from stdin
18327         cat >$tmp/stdin
18328         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18329         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18330   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18331         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18332   * )   ac_file_in=$ac_file.in ;;
18333   esac
18334
18335   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18336 echo "$as_me: creating $ac_file" >&6;}
18337
18338   # First look for the input files in the build tree, otherwise in the
18339   # src tree.
18340   ac_file_inputs=`IFS=:
18341     for f in $ac_file_in; do
18342       case $f in
18343       -) echo $tmp/stdin ;;
18344       [\\/$]*)
18345          # Absolute (can't be DOS-style, as IFS=:)
18346          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18347 echo "$as_me: error: cannot find input file: $f" >&2;}
18348    { (exit 1); exit 1; }; }
18349          # Do quote $f, to prevent DOS paths from being IFS'd.
18350          echo "$f";;
18351       *) # Relative
18352          if test -f "$f"; then
18353            # Build tree
18354            echo "$f"
18355          elif test -f "$srcdir/$f"; then
18356            # Source tree
18357            echo "$srcdir/$f"
18358          else
18359            # /dev/null tree
18360            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18361 echo "$as_me: error: cannot find input file: $f" >&2;}
18362    { (exit 1); exit 1; }; }
18363          fi;;
18364       esac
18365     done` || { (exit 1); exit 1; }
18366   # Remove the trailing spaces.
18367   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18368
18369 _ACEOF
18370
18371 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18372 # `conftest.undefs', that substitutes the proper values into
18373 # config.h.in to produce config.h.  The first handles `#define'
18374 # templates, and the second `#undef' templates.
18375 # And first: Protect against being on the right side of a sed subst in
18376 # config.status.  Protect against being in an unquoted here document
18377 # in config.status.
18378 rm -f conftest.defines conftest.undefs
18379 # Using a here document instead of a string reduces the quoting nightmare.
18380 # Putting comments in sed scripts is not portable.
18381 #
18382 # `end' is used to avoid that the second main sed command (meant for
18383 # 0-ary CPP macros) applies to n-ary macro definitions.
18384 # See the Autoconf documentation for `clear'.
18385 cat >confdef2sed.sed <<\_ACEOF
18386 s/[\\&,]/\\&/g
18387 s,[\\$`],\\&,g
18388 t clear
18389 : clear
18390 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18391 t end
18392 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18393 : end
18394 _ACEOF
18395 # If some macros were called several times there might be several times
18396 # the same #defines, which is useless.  Nevertheless, we may not want to
18397 # sort them, since we want the *last* AC-DEFINE to be honored.
18398 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18399 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18400 rm -f confdef2sed.sed
18401
18402 # This sed command replaces #undef with comments.  This is necessary, for
18403 # example, in the case of _POSIX_SOURCE, which is predefined and required
18404 # on some systems where configure will not decide to define it.
18405 cat >>conftest.undefs <<\_ACEOF
18406 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18407 _ACEOF
18408
18409 # Break up conftest.defines because some shells have a limit on the size
18410 # of here documents, and old seds have small limits too (100 cmds).
18411 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18412 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18413 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18414 echo '  :' >>$CONFIG_STATUS
18415 rm -f conftest.tail
18416 while grep . conftest.defines >/dev/null
18417 do
18418   # Write a limited-size here document to $tmp/defines.sed.
18419   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18420   # Speed up: don't consider the non `#define' lines.
18421   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18422   # Work around the forget-to-reset-the-flag bug.
18423   echo 't clr' >>$CONFIG_STATUS
18424   echo ': clr' >>$CONFIG_STATUS
18425   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18426   echo 'CEOF
18427   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18428   rm -f $tmp/in
18429   mv $tmp/out $tmp/in
18430 ' >>$CONFIG_STATUS
18431   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18432   rm -f conftest.defines
18433   mv conftest.tail conftest.defines
18434 done
18435 rm -f conftest.defines
18436 echo '  fi # grep' >>$CONFIG_STATUS
18437 echo >>$CONFIG_STATUS
18438
18439 # Break up conftest.undefs because some shells have a limit on the size
18440 # of here documents, and old seds have small limits too (100 cmds).
18441 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18442 rm -f conftest.tail
18443 while grep . conftest.undefs >/dev/null
18444 do
18445   # Write a limited-size here document to $tmp/undefs.sed.
18446   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18447   # Speed up: don't consider the non `#undef'
18448   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18449   # Work around the forget-to-reset-the-flag bug.
18450   echo 't clr' >>$CONFIG_STATUS
18451   echo ': clr' >>$CONFIG_STATUS
18452   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18453   echo 'CEOF
18454   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18455   rm -f $tmp/in
18456   mv $tmp/out $tmp/in
18457 ' >>$CONFIG_STATUS
18458   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18459   rm -f conftest.undefs
18460   mv conftest.tail conftest.undefs
18461 done
18462 rm -f conftest.undefs
18463
18464 cat >>$CONFIG_STATUS <<\_ACEOF
18465   # Let's still pretend it is `configure' which instantiates (i.e., don't
18466   # use $as_me), people would be surprised to read:
18467   #    /* config.h.  Generated by config.status.  */
18468   if test x"$ac_file" = x-; then
18469     echo "/* Generated by configure.  */" >$tmp/config.h
18470   else
18471     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18472   fi
18473   cat $tmp/in >>$tmp/config.h
18474   rm -f $tmp/in
18475   if test x"$ac_file" != x-; then
18476     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18477       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18478 echo "$as_me: $ac_file is unchanged" >&6;}
18479     else
18480       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18482          X"$ac_file" : 'X\(//\)[^/]' \| \
18483          X"$ac_file" : 'X\(//\)$' \| \
18484          X"$ac_file" : 'X\(/\)' \| \
18485          .     : '\(.\)' 2>/dev/null ||
18486 echo X"$ac_file" |
18487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18488           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18489           /^X\(\/\/\)$/{ s//\1/; q; }
18490           /^X\(\/\).*/{ s//\1/; q; }
18491           s/.*/./; q'`
18492       { if $as_mkdir_p; then
18493     mkdir -p "$ac_dir"
18494   else
18495     as_dir="$ac_dir"
18496     as_dirs=
18497     while test ! -d "$as_dir"; do
18498       as_dirs="$as_dir $as_dirs"
18499       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18501          X"$as_dir" : 'X\(//\)[^/]' \| \
18502          X"$as_dir" : 'X\(//\)$' \| \
18503          X"$as_dir" : 'X\(/\)' \| \
18504          .     : '\(.\)' 2>/dev/null ||
18505 echo X"$as_dir" |
18506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18508           /^X\(\/\/\)$/{ s//\1/; q; }
18509           /^X\(\/\).*/{ s//\1/; q; }
18510           s/.*/./; q'`
18511     done
18512     test ! -n "$as_dirs" || mkdir $as_dirs
18513   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18515    { (exit 1); exit 1; }; }; }
18516
18517       rm -f $ac_file
18518       mv $tmp/config.h $ac_file
18519     fi
18520   else
18521     cat $tmp/config.h
18522     rm -f $tmp/config.h
18523   fi
18524 # Compute $ac_file's index in $config_headers.
18525 _am_stamp_count=1
18526 for _am_header in $config_headers :; do
18527   case $_am_header in
18528     $ac_file | $ac_file:* )
18529       break ;;
18530     * )
18531       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18532   esac
18533 done
18534 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18535 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18536          X$ac_file : 'X\(//\)[^/]' \| \
18537          X$ac_file : 'X\(//\)$' \| \
18538          X$ac_file : 'X\(/\)' \| \
18539          .     : '\(.\)' 2>/dev/null ||
18540 echo X$ac_file |
18541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18542           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18543           /^X\(\/\/\)$/{ s//\1/; q; }
18544           /^X\(\/\).*/{ s//\1/; q; }
18545           s/.*/./; q'`/stamp-h$_am_stamp_count
18546 done
18547 _ACEOF
18548 cat >>$CONFIG_STATUS <<\_ACEOF
18549
18550 #
18551 # CONFIG_LINKS section.
18552 #
18553
18554 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18555   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18556   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18557
18558   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18559 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18560
18561   if test ! -r $srcdir/$ac_source; then
18562     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18563 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18564    { (exit 1); exit 1; }; }
18565   fi
18566   rm -f $ac_dest
18567
18568   # Make relative symlinks.
18569   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18570 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18571          X"$ac_dest" : 'X\(//\)[^/]' \| \
18572          X"$ac_dest" : 'X\(//\)$' \| \
18573          X"$ac_dest" : 'X\(/\)' \| \
18574          .     : '\(.\)' 2>/dev/null ||
18575 echo X"$ac_dest" |
18576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18577           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18578           /^X\(\/\/\)$/{ s//\1/; q; }
18579           /^X\(\/\).*/{ s//\1/; q; }
18580           s/.*/./; q'`
18581   { if $as_mkdir_p; then
18582     mkdir -p "$ac_dest_dir"
18583   else
18584     as_dir="$ac_dest_dir"
18585     as_dirs=
18586     while test ! -d "$as_dir"; do
18587       as_dirs="$as_dir $as_dirs"
18588       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18590          X"$as_dir" : 'X\(//\)[^/]' \| \
18591          X"$as_dir" : 'X\(//\)$' \| \
18592          X"$as_dir" : 'X\(/\)' \| \
18593          .     : '\(.\)' 2>/dev/null ||
18594 echo X"$as_dir" |
18595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18597           /^X\(\/\/\)$/{ s//\1/; q; }
18598           /^X\(\/\).*/{ s//\1/; q; }
18599           s/.*/./; q'`
18600     done
18601     test ! -n "$as_dirs" || mkdir $as_dirs
18602   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18603 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18604    { (exit 1); exit 1; }; }; }
18605
18606   ac_builddir=.
18607
18608 if test "$ac_dest_dir" != .; then
18609   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18610   # A "../" for each directory in $ac_dir_suffix.
18611   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18612 else
18613   ac_dir_suffix= ac_top_builddir=
18614 fi
18615
18616 case $srcdir in
18617   .)  # No --srcdir option.  We are building in place.
18618     ac_srcdir=.
18619     if test -z "$ac_top_builddir"; then
18620        ac_top_srcdir=.
18621     else
18622        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18623     fi ;;
18624   [\\/]* | ?:[\\/]* )  # Absolute path.
18625     ac_srcdir=$srcdir$ac_dir_suffix;
18626     ac_top_srcdir=$srcdir ;;
18627   *) # Relative path.
18628     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18629     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18630 esac
18631
18632 # Do not use `cd foo && pwd` to compute absolute paths, because
18633 # the directories may not exist.
18634 case `pwd` in
18635 .) ac_abs_builddir="$ac_dest_dir";;
18636 *)
18637   case "$ac_dest_dir" in
18638   .) ac_abs_builddir=`pwd`;;
18639   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18640   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18641   esac;;
18642 esac
18643 case $ac_abs_builddir in
18644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18645 *)
18646   case ${ac_top_builddir}. in
18647   .) ac_abs_top_builddir=$ac_abs_builddir;;
18648   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18649   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18650   esac;;
18651 esac
18652 case $ac_abs_builddir in
18653 .) ac_abs_srcdir=$ac_srcdir;;
18654 *)
18655   case $ac_srcdir in
18656   .) ac_abs_srcdir=$ac_abs_builddir;;
18657   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18658   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18659   esac;;
18660 esac
18661 case $ac_abs_builddir in
18662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18663 *)
18664   case $ac_top_srcdir in
18665   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18666   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18667   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18668   esac;;
18669 esac
18670
18671
18672   case $srcdir in
18673   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18674       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18675   esac
18676
18677   # Try a symlink, then a hard link, then a copy.
18678   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18679     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18680     cp -p $srcdir/$ac_source $ac_dest ||
18681     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18682 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18683    { (exit 1); exit 1; }; }
18684 done
18685 _ACEOF
18686 cat >>$CONFIG_STATUS <<\_ACEOF
18687
18688 #
18689 # CONFIG_COMMANDS section.
18690 #
18691 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18692   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18693   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18694   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18695 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18696          X"$ac_dest" : 'X\(//\)[^/]' \| \
18697          X"$ac_dest" : 'X\(//\)$' \| \
18698          X"$ac_dest" : 'X\(/\)' \| \
18699          .     : '\(.\)' 2>/dev/null ||
18700 echo X"$ac_dest" |
18701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18703           /^X\(\/\/\)$/{ s//\1/; q; }
18704           /^X\(\/\).*/{ s//\1/; q; }
18705           s/.*/./; q'`
18706   { if $as_mkdir_p; then
18707     mkdir -p "$ac_dir"
18708   else
18709     as_dir="$ac_dir"
18710     as_dirs=
18711     while test ! -d "$as_dir"; do
18712       as_dirs="$as_dir $as_dirs"
18713       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18715          X"$as_dir" : 'X\(//\)[^/]' \| \
18716          X"$as_dir" : 'X\(//\)$' \| \
18717          X"$as_dir" : 'X\(/\)' \| \
18718          .     : '\(.\)' 2>/dev/null ||
18719 echo X"$as_dir" |
18720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18722           /^X\(\/\/\)$/{ s//\1/; q; }
18723           /^X\(\/\).*/{ s//\1/; q; }
18724           s/.*/./; q'`
18725     done
18726     test ! -n "$as_dirs" || mkdir $as_dirs
18727   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18729    { (exit 1); exit 1; }; }; }
18730
18731   ac_builddir=.
18732
18733 if test "$ac_dir" != .; then
18734   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18735   # A "../" for each directory in $ac_dir_suffix.
18736   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18737 else
18738   ac_dir_suffix= ac_top_builddir=
18739 fi
18740
18741 case $srcdir in
18742   .)  # No --srcdir option.  We are building in place.
18743     ac_srcdir=.
18744     if test -z "$ac_top_builddir"; then
18745        ac_top_srcdir=.
18746     else
18747        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18748     fi ;;
18749   [\\/]* | ?:[\\/]* )  # Absolute path.
18750     ac_srcdir=$srcdir$ac_dir_suffix;
18751     ac_top_srcdir=$srcdir ;;
18752   *) # Relative path.
18753     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18754     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18755 esac
18756
18757 # Do not use `cd foo && pwd` to compute absolute paths, because
18758 # the directories may not exist.
18759 case `pwd` in
18760 .) ac_abs_builddir="$ac_dir";;
18761 *)
18762   case "$ac_dir" in
18763   .) ac_abs_builddir=`pwd`;;
18764   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18765   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18766   esac;;
18767 esac
18768 case $ac_abs_builddir in
18769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18770 *)
18771   case ${ac_top_builddir}. in
18772   .) ac_abs_top_builddir=$ac_abs_builddir;;
18773   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18774   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18775   esac;;
18776 esac
18777 case $ac_abs_builddir in
18778 .) ac_abs_srcdir=$ac_srcdir;;
18779 *)
18780   case $ac_srcdir in
18781   .) ac_abs_srcdir=$ac_abs_builddir;;
18782   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18783   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18784   esac;;
18785 esac
18786 case $ac_abs_builddir in
18787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18788 *)
18789   case $ac_top_srcdir in
18790   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18791   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18792   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18793   esac;;
18794 esac
18795
18796
18797   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18798 echo "$as_me: executing $ac_dest commands" >&6;}
18799   case $ac_dest in
18800     default-1 )
18801 # Only add multilib support code if we just rebuilt the top-level
18802 # Makefile.
18803 case " $CONFIG_FILES " in
18804  *" Makefile "*)
18805    ac_file=Makefile . ${multi_basedir}/config-ml.in
18806    ;;
18807 esac ;;
18808     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18809   # Strip MF so we end up with the name of the file.
18810   mf=`echo "$mf" | sed -e 's/:.*$//'`
18811   # Check whether this is an Automake generated Makefile or not.
18812   # We used to match only the files named `Makefile.in', but
18813   # some people rename them; so instead we look at the file content.
18814   # Grep'ing the first line is not enough: some people post-process
18815   # each Makefile.in and add a new line on top of each file to say so.
18816   # So let's grep whole file.
18817   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18818     dirpart=`(dirname "$mf") 2>/dev/null ||
18819 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18820          X"$mf" : 'X\(//\)[^/]' \| \
18821          X"$mf" : 'X\(//\)$' \| \
18822          X"$mf" : 'X\(/\)' \| \
18823          .     : '\(.\)' 2>/dev/null ||
18824 echo X"$mf" |
18825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18827           /^X\(\/\/\)$/{ s//\1/; q; }
18828           /^X\(\/\).*/{ s//\1/; q; }
18829           s/.*/./; q'`
18830   else
18831     continue
18832   fi
18833   # Extract the definition of DEPDIR, am__include, and am__quote
18834   # from the Makefile without running `make'.
18835   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18836   test -z "$DEPDIR" && continue
18837   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18838   test -z "am__include" && continue
18839   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18840   # When using ansi2knr, U may be empty or an underscore; expand it
18841   U=`sed -n 's/^U = //p' < "$mf"`
18842   # Find all dependency output files, they are included files with
18843   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18844   # simplest approach to changing $(DEPDIR) to its actual value in the
18845   # expansion.
18846   for file in `sed -n "
18847     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18848        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18849     # Make sure the directory exists.
18850     test -f "$dirpart/$file" && continue
18851     fdir=`(dirname "$file") 2>/dev/null ||
18852 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18853          X"$file" : 'X\(//\)[^/]' \| \
18854          X"$file" : 'X\(//\)$' \| \
18855          X"$file" : 'X\(/\)' \| \
18856          .     : '\(.\)' 2>/dev/null ||
18857 echo X"$file" |
18858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18859           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18860           /^X\(\/\/\)$/{ s//\1/; q; }
18861           /^X\(\/\).*/{ s//\1/; q; }
18862           s/.*/./; q'`
18863     { if $as_mkdir_p; then
18864     mkdir -p $dirpart/$fdir
18865   else
18866     as_dir=$dirpart/$fdir
18867     as_dirs=
18868     while test ! -d "$as_dir"; do
18869       as_dirs="$as_dir $as_dirs"
18870       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18872          X"$as_dir" : 'X\(//\)[^/]' \| \
18873          X"$as_dir" : 'X\(//\)$' \| \
18874          X"$as_dir" : 'X\(/\)' \| \
18875          .     : '\(.\)' 2>/dev/null ||
18876 echo X"$as_dir" |
18877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18879           /^X\(\/\/\)$/{ s//\1/; q; }
18880           /^X\(\/\).*/{ s//\1/; q; }
18881           s/.*/./; q'`
18882     done
18883     test ! -n "$as_dirs" || mkdir $as_dirs
18884   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18885 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18886    { (exit 1); exit 1; }; }; }
18887
18888     # echo "creating $dirpart/$file"
18889     echo '# dummy' > "$dirpart/$file"
18890   done
18891 done
18892  ;;
18893     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18894 case " $CONFIG_FILES " in
18895  *" Makefile "*)
18896    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18897    ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
18898    ;;
18899 esac
18900 for ac_multi_file in $CONFIG_FILES; do
18901   case $ac_multi_file in
18902   */Makefile)
18903     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18904   esac
18905 done
18906  ;;
18907   esac
18908 done
18909 _ACEOF
18910
18911 cat >>$CONFIG_STATUS <<\_ACEOF
18912
18913 { (exit 0); exit 0; }
18914 _ACEOF
18915 chmod +x $CONFIG_STATUS
18916 ac_clean_files=$ac_clean_files_save
18917
18918
18919 # configure is writing to config.log, and then calls config.status.
18920 # config.status does its own redirection, appending to config.log.
18921 # Unfortunately, on DOS this fails, as config.log is still kept open
18922 # by configure, so config.status won't be able to write to it; its
18923 # output is simply discarded.  So we exec the FD to /dev/null,
18924 # effectively closing config.log, so it can be properly (re)opened and
18925 # appended to by config.status.  When coming back to configure, we
18926 # need to make the FD available again.
18927 if test "$no_create" != yes; then
18928   ac_cs_success=:
18929   ac_config_status_args=
18930   test "$silent" = yes &&
18931     ac_config_status_args="$ac_config_status_args --quiet"
18932   exec 5>/dev/null
18933   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18934   exec 5>>config.log
18935   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18936   # would make configure fail if this is the last instruction.
18937   $ac_cs_success || { (exit 1); exit 1; }
18938 fi
18939
18940 #
18941 # CONFIG_SUBDIRS section.
18942 #
18943 if test "$no_recursion" != yes; then
18944
18945   # Remove --cache-file and --srcdir arguments so they do not pile up.
18946   ac_sub_configure_args=
18947   ac_prev=
18948   for ac_arg in $ac_configure_args; do
18949     if test -n "$ac_prev"; then
18950       ac_prev=
18951       continue
18952     fi
18953     case $ac_arg in
18954     -cache-file | --cache-file | --cache-fil | --cache-fi \
18955     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18956       ac_prev=cache_file ;;
18957     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18958     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18959     | --c=*)
18960       ;;
18961     --config-cache | -C)
18962       ;;
18963     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18964       ac_prev=srcdir ;;
18965     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18966       ;;
18967     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18968       ac_prev=prefix ;;
18969     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18970       ;;
18971     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18972     esac
18973   done
18974
18975   # Always prepend --prefix to ensure using the same prefix
18976   # in subdir configurations.
18977   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18978
18979   ac_popdir=`pwd`
18980   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18981
18982     # Do not complain, so a configure script can configure whichever
18983     # parts of a large source tree are present.
18984     test -d $srcdir/$ac_dir || continue
18985
18986     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18987 echo "$as_me: configuring in $ac_dir" >&6;}
18988     { if $as_mkdir_p; then
18989     mkdir -p "$ac_dir"
18990   else
18991     as_dir="$ac_dir"
18992     as_dirs=
18993     while test ! -d "$as_dir"; do
18994       as_dirs="$as_dir $as_dirs"
18995       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18997          X"$as_dir" : 'X\(//\)[^/]' \| \
18998          X"$as_dir" : 'X\(//\)$' \| \
18999          X"$as_dir" : 'X\(/\)' \| \
19000          .     : '\(.\)' 2>/dev/null ||
19001 echo X"$as_dir" |
19002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19004           /^X\(\/\/\)$/{ s//\1/; q; }
19005           /^X\(\/\).*/{ s//\1/; q; }
19006           s/.*/./; q'`
19007     done
19008     test ! -n "$as_dirs" || mkdir $as_dirs
19009   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19011    { (exit 1); exit 1; }; }; }
19012
19013     ac_builddir=.
19014
19015 if test "$ac_dir" != .; then
19016   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19017   # A "../" for each directory in $ac_dir_suffix.
19018   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19019 else
19020   ac_dir_suffix= ac_top_builddir=
19021 fi
19022
19023 case $srcdir in
19024   .)  # No --srcdir option.  We are building in place.
19025     ac_srcdir=.
19026     if test -z "$ac_top_builddir"; then
19027        ac_top_srcdir=.
19028     else
19029        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19030     fi ;;
19031   [\\/]* | ?:[\\/]* )  # Absolute path.
19032     ac_srcdir=$srcdir$ac_dir_suffix;
19033     ac_top_srcdir=$srcdir ;;
19034   *) # Relative path.
19035     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19036     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19037 esac
19038
19039 # Do not use `cd foo && pwd` to compute absolute paths, because
19040 # the directories may not exist.
19041 case `pwd` in
19042 .) ac_abs_builddir="$ac_dir";;
19043 *)
19044   case "$ac_dir" in
19045   .) ac_abs_builddir=`pwd`;;
19046   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19047   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19048   esac;;
19049 esac
19050 case $ac_abs_builddir in
19051 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19052 *)
19053   case ${ac_top_builddir}. in
19054   .) ac_abs_top_builddir=$ac_abs_builddir;;
19055   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19056   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19057   esac;;
19058 esac
19059 case $ac_abs_builddir in
19060 .) ac_abs_srcdir=$ac_srcdir;;
19061 *)
19062   case $ac_srcdir in
19063   .) ac_abs_srcdir=$ac_abs_builddir;;
19064   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19065   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19066   esac;;
19067 esac
19068 case $ac_abs_builddir in
19069 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19070 *)
19071   case $ac_top_srcdir in
19072   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19073   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19074   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19075   esac;;
19076 esac
19077
19078
19079     cd $ac_dir
19080
19081     # Check for guested configure; otherwise get Cygnus style configure.
19082     if test -f $ac_srcdir/configure.gnu; then
19083       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19084     elif test -f $ac_srcdir/configure; then
19085       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19086     elif test -f $ac_srcdir/configure.in; then
19087       ac_sub_configure=$ac_configure
19088     else
19089       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19090 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19091       ac_sub_configure=
19092     fi
19093
19094     # The recursion is here.
19095     if test -n "$ac_sub_configure"; then
19096       # Make the cache file name correct relative to the subdirectory.
19097       case $cache_file in
19098       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19099       *) # Relative path.
19100         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
19101       esac
19102
19103       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19104 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19105       # The eval makes quoting arguments work.
19106       eval $ac_sub_configure $ac_sub_configure_args \
19107            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19108         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19109 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19110    { (exit 1); exit 1; }; }
19111     fi
19112
19113     cd $ac_popdir
19114   done
19115 fi
19116